[Tkinter-discuss] Method calling upwards; Listbox arrow events ?

Cameron Laird Cameron at phaseit.net
Mon Jul 7 19:34:41 CEST 2008


On Mon, Jul 07, 2008 at 10:22:40AM -0700, gegard wrote:
			.
			.
			.
> > ...2) Why can I not bind to arrow keys (Up in this example)? Arrow keys do
> > not change the list box... 
> Aha, the listbox doesn't get the focus, so the arrow keys and any other
> keyboard events affect some other widget - the
> last-visited-except-for-the-listbox as far as I can tell. So how can the
> listbox be made to accept and retain the focus?
			.
			.
			.
<URL: http://infohost.nmt.edu/tcc/help/pubs/tkinter/focus.html >

Also, in terms of the code you posted earlier, you'll want to 
experiment with

  self.list.focus_set()


More information about the Tkinter-discuss mailing list