1 parent 629fad3 commit b3484cdCopy full SHA for b3484cd
1 file changed
trunk/samples/mainloop/mainloop.py
@@ -71,7 +71,7 @@ def MainLoop(self):
71
# only going to temporarily have a nested event loop then
72
# you should get a reference to the old one and set it as
73
# the active event loop when you are done with this one...
74
- evtloop = wx.EventLoop()
+ evtloop = wx.GUIEventLoop()
75
old = wx.EventLoop.GetActive()
76
wx.EventLoop.SetActive(evtloop)
77
@@ -97,7 +97,7 @@ def MainLoop(self):
97
# much CPU time spent in the idle handlers. For this
98
# example, I'll just snooze a little...
99
time.sleep(0.10)
100
- self.ProcessIdle()
+ evtloop.ProcessIdle()
101
102
wx.EventLoop.SetActive(old)
103
0 commit comments