Skip to content

Commit b3484cd

Browse files
RDRD
authored andcommitted
Use evtloop, not self ProcessIdle
git-svn-id: http://svn.wxwidgets.org/svn/wx/wxPython@71845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1 parent 629fad3 commit b3484cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

trunk/samples/mainloop/mainloop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def MainLoop(self):
7171
# only going to temporarily have a nested event loop then
7272
# you should get a reference to the old one and set it as
7373
# the active event loop when you are done with this one...
74-
evtloop = wx.EventLoop()
74+
evtloop = wx.GUIEventLoop()
7575
old = wx.EventLoop.GetActive()
7676
wx.EventLoop.SetActive(evtloop)
7777

@@ -97,7 +97,7 @@ def MainLoop(self):
9797
# much CPU time spent in the idle handlers. For this
9898
# example, I'll just snooze a little...
9999
time.sleep(0.10)
100-
self.ProcessIdle()
100+
evtloop.ProcessIdle()
101101

102102
wx.EventLoop.SetActive(old)
103103

0 commit comments

Comments
 (0)