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

2009-12-24 Thread Guilherme Polo

Guilherme Polo ggp...@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 rep...@bugs.python.org
http://bugs.python.org/issue7526
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-12-18 Thread kurt

Changes by kurt kurt.forrester@gmail.com:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7526
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-12-16 Thread kurt

New submission from kurt kurt.forrester@gmail.com:

I am using the Menubutton to provide an accelerator effect via the
underline option.

When I import the basic widget via from tkinter import * the widget
performs as expected (F_ile) is activated on pressing Alt+F and the menu
is presented.

Conversely when using the ttk widget via from tkinter.ttk import * the
Alt+F key combination does not activate the Menubutton widget. In
addition to this pressing F10 does not activate the menubar.

This is on Ubuntu Karmic, Python 3.1.1+ (r311:74480, Nov  2 2009,
14:49:22) [GCC 4.4.1] on linux2

By commenting out the import of the Menubutton at the top of the script
you can hopefully see the behaviour I have described. This
ApplicationMenu class is called in another script (self.root.MenuBar =
ApplicationMenu(self.root)).

--
components: Tkinter
files: __init__.py
messages: 96491
nosy: kurtforrester
severity: normal
status: open
title: tkinter menubutton underline behaviour varies between tkinter * and 
tkinter.ttk *
versions: Python 3.1
Added file: http://bugs.python.org/file15577/__init__.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7526
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com