Tkinter menus from keyboard

M

MartinRinehart

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?
 
G

Guilherme Polo

2008/3/26 said:
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
 
M

MartinRinehart

Guilherme said:
Set the underline option to the index of the desired letter

Elegant simplicity in the dropdowns. Thanks!

Now, how about main menu underscores?
 
E

Eric Brunel

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...
 
M

MartinRinehart

Eric said:
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?
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top