Checking where focus lies

Whats the method for running a timer and periodically printing who has
focus? Trunk version of ultimatelistctrl appears to me to be drawing
its row highlight as if it doesn't have focus.

Create a timer object, bind the timer to an event handler and start
the timer. In the event handler, call the frame's FindFocus() method.

See also this old blog post of mine:

···

On Jun 15, 10:52 pm, Mark <markree...@gmail.com> wrote:

Whats the method for running a timer and periodically printing who has
focus? Trunk version of ultimatelistctrl appears to me to be drawing
its row highlight as if it doesn't have focus.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

It's a staticmethod, so you can call it like this:

  wx.Window.FindFocus()

···

On 6/16/10 6:42 AM, Mike Driscoll wrote:

Create a timer object, bind the timer to an event handler and start
the timer. In the event handler, call the frame's FindFocus() method.

--
Robin Dunn
Software Craftsman