in reply to Tk::BrowseEntry eats click binding

Umm.. according to 'man Tk::Widget',
$widget->toplevel Returns the reference of the top-level window containing $w +idget.
Which sounds to me like your $b->toplevel->bind .. is binding to the MainWindow that the BrowseEntry is in, eg. your $main widget. I'm assuming $b is your BrowseEntry Widget, which you don't say.
Why not just do  $combo->bind( .. ) to add a ButtonRelease to your BrowseEntry widget?

Apologies if I've understood this wrong, please post the rest of the code so we can see what its doing.

C.

Replies are listed 'Best First'.
Re: Re: Tk::BrowseEntry eats click binding
by tall_man (Parson) on Jan 22, 2003 at 15:14 UTC
    ...please post the rest of the code so we can see what its doing.

    The example program I posted is complete. It just shows that the binding is overridden. You can try it by running the program and clicking on the window -- no callback. If you move the binding to after the lines where the BrowseEntry is created, the callback will work.

    The second one-line snippet is from the Tk::BrowseEntry code itself, which is on CPAN.