Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread galyle
On Oct 4, 11:05 am, galyle wrote: > On Oct 4, 9:45 am, woooee wrote: > > > > > > > > > > > Sorry, I did not understand the question correctly, and so have added > > another focus_set for the entry after the menu's creation.  You can > > still enter after the menu comes up, even though you can't s

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread galyle
On Oct 4, 9:45 am, woooee wrote: > Sorry, I did not understand the question correctly, and so have added > another focus_set for the entry after the menu's creation.  You can > still enter after the menu comes up, even though you can't see where > you are entering. > > import Tkinter > > class dem

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread woooee
Sorry, I did not understand the question correctly, and so have added another focus_set for the entry after the menu's creation. You can still enter after the menu comes up, even though you can't see where you are entering. import Tkinter class demo: def __init__(self, parent): self.

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread woooee
Adding focus_set seems to work for me. What do want to do differently? import Tkinter class demo: def __init__(self, parent): self._entry = Tkinter.Entry(width = 60) self._suggestions = Tkinter.Menu(parent, tearoff = 0, takefocus = 0) self._entry.pack(padx = 20, pady

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-03 Thread galyle
On Oct 3, 2:40 pm, rantingrick wrote: > On Oct 3, 2:55 pm, galyle wrote: > > > Hello, I'm trying to build a menu which provides suggestions to a user > > based on input to an entry.  I have done something like this before > > using Tcl/Tk, so I expected that it would work without much difficulty

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-03 Thread rantingrick
On Oct 3, 2:55 pm, galyle wrote: > Hello, I'm trying to build a menu which provides suggestions to a user > based on input to an entry.  I have done something like this before > using Tcl/Tk, so I expected that it would work without much difficulty > with Tkinter.  I was wrong. Why not just use

Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-03 Thread galyle
Hello, I'm trying to build a menu which provides suggestions to a user based on input to an entry. I have done something like this before using Tcl/Tk, so I expected that it would work without much difficulty with Tkinter. I was wrong. The problem I have is that, as soon as the menu is posted, i