[Tkinter-discuss] OptionMenu Cannot Receive Keyboard Focus?
Lowe, Paul J (AS)
paul.lowe at ngc.com
Wed May 26 21:07:39 CEST 2010
Thanks! This really worked!
From: tkinter-discuss-bounces+paul.lowe=ngc.com at python.org
[mailto:tkinter-discuss-bounces+paul.lowe=ngc.com at python.org] On Behalf
Of Michael Lange
Sent: Wednesday, May 26, 2010 11:35
To: tkinter-discuss at python.org
Subject: Re: [Tkinter-discuss] OptionMenu Cannot Receive Keyboard Focus?
On Wed, 26 May 2010 12:06:33 -0500
"Lowe, Paul J (AS)" <paul.lowe at ngc.com> wrote:
> I've made a Tkinter gui composed of labels, entries, and optionmenus.
> When I enter data on the keyboard and use the tab key to switch to the
> next widget in the GUI, it always skips the OptionMenus entirely. For
> example, if I have a GUI composed of an entry, an optionmenu, and
> another entry, in that order, if I type text in the first entry, then
> hit the tab key, the cursor will go straight to the other text entry -
> skipping the optionmenu entirely.
> Has anyone else observed this phenomenon? Is there a workaround? Is
> it a formally documented bug?
I think the OptionMenu's takefocus option is set to false by default,
so a simple
should do the trick.
I hope this helps
Tkinter-discuss mailing list
Tkinter-discuss at python.org
More information about the Tkinter-discuss