TAKE_FOCUS

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Thu May 12 03:21:04 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?
> 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




More information about the Python-list mailing list