Help

Joshua Macy amused at webamused.com
Thu Apr 13 19:41:36 EDT 2000


T Zimmerman wrote:
> 
> I have left several posts concerning Tkinter Meta keys, and yet to get a
> response from anyone. If this doesnt work for anyone else than it is a bug.
> Otherwise there is something wrong on my end. The following script should
> allow the use of 'alt-f' to access the 'File' menu. This does not work on
> any of the NT boxes in my office. If this does or does not work for someone
> please let me know.
> 
> Thanks,
> T Zimmerman
> tzman at bhmi.com
> 
> ==================================================================
> import Tkinter
> 
> root = Tkinter.Tk()
> 
> button = Tkinter.Menubutton(text = 'File', underline = 0)
> button.pack()
> menu = Tkinter.Menu(button)
> button.configure(menu = menu)
> menu.add_command(label = 'Hello World', underline = 0)
> 
> root.mainloop()
> ==================================================================


  It works for me on Linux.  Hitting alt-F selects the File menu. 
Hitting alt-H doesn't do anything visible, I presume because the command
isn't bound to anything.  I'll try it on my NT box at work tomorrow if
you'd like.

 Joshua



More information about the Python-list mailing list