Thanks for your reply! I'm just here to say that I figured out (sort of) what was causing the problem ...
my $mw = MainWindow->new(); my $widget = $mw->SomeWidget(\%some_options)->pack()->focus(); &add_edit_popup($mw, $widget); $mw->MainLoop;
This will fail. However ...
my $mw = MainWindow->new(); my $widget = $mw->SomeWidget(\%some_options)->pack(); &add_edit_popup($mw, $widget); $mw->MainLoop;
This will succeed. The difference is not placing the focus() call in the declaration of the widget. If you do it later in the code using ...
$widget->focus();Then you're golden!
I'm sure there's a perfectly good explanation for this behavior. What that might be is beyond my Perl knowledge.
Anyway, BIG thanks to all for your help!
In reply to Re^5: Right-click Edit/Paste in TK Browse Entry
by phatWares
in thread Right-click Edit/Paste in TK Browse Entry
by ron7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |