[issue7526] tkinter menubutton underline behaviour varies between tkinter * and tkinter.ttk *

Guilherme Polo report at bugs.python.org
Thu Dec 24 17:55:28 CET 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

I get the same behavior while using ttk in wish8.5, so this is not 
related to the ttk.py module.

But, after looking this sample you posted, it looks like you want 
something like this instead:

from tkinter import Tk, Menu

root = Tk()
menu = Menu()
root['menu'] = menu

filemenu = Menu(menu)
menu.add_cascade(label="File", menu=filemenu, underline=0)
filemenu.add_command(label="New", accelerator="Ctrl+N")

root.geometry("300x300")
root.mainloop()

----------
nosy: +gpolo
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7526>
_______________________________________


More information about the Python-bugs-list mailing list