Tkinter focus problem
Richard Kuhns
rjkuhns at geetel.net
Wed Dec 11 13:35:39 EST 2002
More information about the Python-list mailing list
Wed Dec 11 13:35:39 EST 2002
- Previous message (by thread): Tkinter focus problem
- Next message (by thread): Differential equations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 11 Dec 2002 18:51:33 +0100 Eric Brunel <eric.brunel at pragmadev.com> wrote: > > Look carefully: the call self.tk.call('tk_focusNext', event.widget) > passes a widget to the tk command tk_focusNext. The equivalent in > Tkinter would be to call the method tk_focusNext on event.widget, not on > self. self.tk_focusNext() returns the widget following self, which is > obviously not the same than the one following event.widget... > > HTH OK; the light is beginning to dawn. I think my major problem right now is just understanding how the Tk/Tkinter mapping works. At any rate, the following does exactly what I want: def _nextWin(self, event): """So other keys can act like <Tab>. """ event.widget.tk_focusNext().focus_set() Thanks again - it DOES help. -- Richard Kuhns rjkkuhns at geetel.net
- Previous message (by thread): Tkinter focus problem
- Next message (by thread): Differential equations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list