in reply to tk menu commands dont work while button pressed
Believe it or not, the answer is really simple
Try
instead of$menu->Post($x, $y);
According to the Mastering Perl/Tk book (Steve Lidie & Nancy Walsh):$menu->post($x, $y);
The post and Post MethodsI tried... it worked.The lower-level mechanism is the Menu post method, which posts a menu at a specific screen coordinate. The Post method works like post, but additioinally activates a specific menu item.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tk menu commands dont work while button pressed
by mpage (Initiate) on Jan 23, 2009 at 22:14 UTC |