Tkinter menus from keyboard

Eric Brunel see.signature at no.spam
Wed Mar 26 11:54:21 EDT 2008


On Wed, 26 Mar 2008 13:45:29 +0100, Guilherme Polo <ggpolo at gmail.com>  
wrote:

> 2008/3/26, MartinRinehart at gmail.com <MartinRinehart at gmail.com>:
>> 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+-'])"



More information about the Python-list mailing list