mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-17 09:17:14 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
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)
|
|
|