Menu events handling

Y

Yves Daoust

Hi,

I am rather new to Python but a skilled programmer anyway.

I am working on a prototype application that has a main menu with
cascaded sub-menus and commands. I'd like that even handlers be called
whenever the user sweeps the mouse cursor over a menu item or clicks
any menu item (command or not).

I have assigned functions as 'command' or 'postcommand' options of my
menu objects, but this does not give the intended effect.

I have tried to bind different events (<Enter> / <Activate> /
<FocusIn>...) to these, but none seems to work (even after setting
'takefocus' to true).

Can anyone help ?

Yves
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top