]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Threads.py
Moved @interface wxNSApplicationDelegate to new header
[wxWidgets.git] / wxPython / demo / Threads.py
index 7f66ee85fd4944c8d6f562ed49c88cfa862ead4e..8af17bf8709548ba15a2b21ceaf4b560fee59e0c 100644 (file)
@@ -33,9 +33,8 @@ class CalcBarThread:
     def Run(self):
         while self.keepGoing:
             evt = UpdateBarEvent(barNum = self.barNum, value = int(self.val))
-            wx.PostEvent(self.win.GetEventHandler(), evt)
-            #del evt
-
+            wx.PostEvent(self.win, evt)
             sleeptime = (random.random() * 2) + 0.5
             time.sleep(sleeptime/4)