[wxPython] EVT_IDLE question

I noticed that in the wxGauge demo the IdleHandler
gets called only if mouse pointer is inside the demo window.
Q: Is it possible to have an idle handler that gets called
even there is no input events e.g. window is iconified?

Thanks
Mikhail

(wxPython 2.2.5, Python 2.0, Win NT)

I noticed that in the wxGauge demo the IdleHandler
gets called only if mouse pointer is inside the demo window.
Q: Is it possible to have an idle handler that gets called
even there is no input events e.g. window is iconified?

Idle events are sent when the primary event queue becomes empty, and
continue to be sent until none of the idle event handlers call
event.RequestMore(). The next time a regular event happens and the queue
becomes empty then it all starts again.

If you need to have some processing happen when there is normally no chance
for the event queue to become empty then you should either move you idle
code to a timer handler, or have a timer handler call wxWakeUpIdle()
periodically.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!