About Tkinter <<MenuSelect>>?
Jerry Gitomer
jgitomer at erols.com
Wed Sep 12 22:47:39 EDT 2001
limodou wrote:
> Guys:
> I'm learning Tkinter now. And I want to make the Tkinter
> menu just
> like the menu in generic application in Windows. When I'm
> selecting menus, the statusbar should show the message attach
> to the menu. I'v read the manual of Tk, and found that there is
> an event <<MenuSelect>> binding to menu. I decided to use this
> event. But I could not get which menu is being selected. I
> tried to use index('active'), but I always get None. So I have
> no idea about this, I want your help.
>
> BTW, because I ran the program in Windows, so I don't know if
> it will be right in Linux. Any one have any advice?
>
You will find a program called GuiAppD.py in the Pmw\contrib
directory that does what you want.
--
Jerry Gitomer
Once I learned how to spell DBA, I became one
More information about the Python-list
mailing list