wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.25k stars 513 forks source link

Event Watcher -> Watch not stopping after deselection #975

Open feyyd opened 5 years ago

feyyd commented 5 years ago

Operating system: Windows 10 wxPython version & source: (pypi, self-built, etc.) wxPython 4.0.0b2 msw (phoenix) pypi Python version & source: (stock, anaconda, EDM, distro, self-built, etc.) Python 3.6 stock Description of the problem: After adding an event like EVT_IDLE or EVT_UPDATE_UI_RANGE to Watch, deselecting item has no effect and will infinitely spam the event window.

RobinD42 commented 5 years ago

Does this happen to you in 4.0.3 too? How long do you leave EVT_IDLE selected before disabling it again? (IOW, could a bunch of events be stacked up waiting to logged in the watcher.) If you're seeing this in your own application then are you doing anything that could be causing nested or recursive idle events? (Doing something within a EVT_IDLE hander that causes more EVT_IDLE events to be sent before returning.) Also, be aware that some things like update-ui events are actually sent from within EVT_IDLE.