Tkinter menus from keyboard
Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per the universal standard. Can this be done? -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter menus from keyboard
2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per the universal standard. Can this be done? Set the underline option to the index of the desired letter -- http://mail.python.org/mailman/listinfo/python-list -- -- Guilherme H. Polo Goncalves -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter menus from keyboard
Guilherme Polo wrote: Set the underline option to the index of the desired letter Elegant simplicity in the dropdowns. Thanks! Now, how about main menu underscores? -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter menus from keyboard
On Wed, 26 Mar 2008 13:45:29 +0100, Guilherme Polo [EMAIL PROTECTED] wrote: 2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: Tkinter defaults to, for example, Alt+f = File (if File is your first menu name starting with f). I'd like to assign my own letters and have them underscored, per the universal standard. Can this be done? Set the underline option to the index of the desired letter BTW, this standard is not universal at all: e.g, there is no such convention on Macs. Not (only...) nitpicking: if your application has to run on a Mac, it may look weird if you use this option... But I never tested how it was handled on Macs. My $0.02... -- python -c print ''.join([chr(154 - ord(c)) for c in 'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-']) -- http://mail.python.org/mailman/listinfo/python-list
Re: Tkinter menus from keyboard
Eric Brunel wrote: BTW, this standard is not universal at all: e.g, there is no such convention on Macs. Thanks for the info. It's standard on Windows and Linux/KDE. GNOME, anyone? -- http://mail.python.org/mailman/listinfo/python-list