Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: tk menu commands dont work while button pressed

by Sandy (Deacon)
on Jan 23, 2009 at 22:04 UTC ( #738603=note: print w/ replies, xml ) Need Help??


in reply to tk menu commands dont work while button pressed

Believe it or not, the answer is really simple

Try

$menu->Post($x, $y);
instead of
$menu->post($x, $y);
According to the Mastering Perl/Tk book (Steve Lidie & Nancy Walsh):
The post and Post Methods

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.

I tried... it worked.


Comment on Re: tk menu commands dont work while button pressed
Select or Download Code
Re^2: tk menu commands dont work while button pressed
by mpage (Initiate) on Jan 23, 2009 at 22:14 UTC
    Sweet! Just like you say, thanks. Matt

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://738603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-08-01 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (4 votes), past polls