In my wxPython app I have an EVT_IDLE
handler that calls some function that has to be called once every 150 milliseconds or so. After calling the function, the handler calls:
wx.CallLater(150,self._clear_idle_block_and_do)
That _clear_idle_block_and_do
function basically posts another EVT_IDLE
event, continuing the cycle.
Now I'm noticing that when other widgets in the GUI are doing hard work, the EVT_IDLE
event handler hardly gets called! Sometime it is not called for 4 seconds, which is way too much.
Is this because wx.CallLater is not performing well? Is there anything I could do?