mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
15 lines
487 B
Python
15 lines
487 B
Python
|
|
def DoSomething(self):
|
|
# block all events directed to this window while
|
|
# we do the 1000 FunctionWhichSendsEvents() calls
|
|
blocker = wx.EventBlocker(self)
|
|
|
|
for i in xrange(1000):
|
|
FunctionWhichSendsEvents(i)
|
|
|
|
# wx.EventBlocker destructor called, old event handler is restored
|
|
|
|
# the event generated by this call will be processed:
|
|
FunctionWhichSendsEvents(0)
|
|
|