phil wrote: > WM_TAKE_FOCUS does not work on WinXP ?? > I was sure I had used that on win before. > Works on Linux. > > I have a function I need to run when the window > gets the focus. How do you do that in Tkinter > on Win32? > Thanks >
Take a look at the module docs for Tkinter you will need the one of the focus_* methods $pydoc Tkinter <snip> | focus_set(self) | Direct input focus to this widget. | | If the application currently does not have the focus | this widget will get the focus if the application gets <snip> Martin -- http://mail.python.org/mailman/listinfo/python-list