wxWidgets/wxPython: Do two identical events cause two handlings?
Posted
by cool-RR
on Stack Overflow
See other posts from Stack Overflow
or by cool-RR
Published on 2010-04-04T15:03:41Z
Indexed on
2010/04/04
15:13 UTC
Read the original article
Hit count: 141
When there are two identical events in the event loop, will wxPython handle both of them, or will it call the handler only once for them both?
I mean, in my widget I want to have an event like EVT_NEED_TO_RECALCULATE_X
. I want this event to be posted in all kinds of different circumstances that require x
to be recalculated. However, even if there are two different reasons to recalculate x
, only one recalculation needs to be done.
How do I do this?
© Stack Overflow or respective owner