]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Threads.py
better __docfilter__ and other epydoc tweaks
[wxWidgets.git] / wxPython / demo / Threads.py
index 7f66ee85fd4944c8d6f562ed49c88cfa862ead4e..49654f96a7c1c0a30b029ec661ae1ccb116f69ed 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)
 
@@ -251,5 +250,5 @@ thread.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])