TAKE_FOCUS

Fredrik Lundh fredrik at pythonware.com
Thu May 12 06:54:55 EDT 2005


"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?

binding the <FocusIn> event should work.

(and make sure that the takefocus option is set)

</F> 






More information about the Python-list mailing list