]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/viewer.py
default style for statusbars varies by platform
[wxWidgets.git] / wxPython / demo / viewer.py
index befb03ece6d6b7294f40962dbe3f17eb51a8f683..a0332d98cb5a385f4423a417031b1f562d30427f 100644 (file)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+
 """
     Run wxPython in a second thread.
 
@@ -56,7 +57,8 @@ class viewer_thread:
     def start(self):
         """ start the GUI thread
         """
-        import thread,time
+        import  time
+        import  thread
         thread.start_new_thread(self.run, ())
 
     def run(self):
@@ -68,9 +70,10 @@ class viewer_thread:
             the import would occur in the main thread and
             wxPython wouldn't run correctly in the second thread.
         """
-        from viewer_basics import *
+        import  viewer_basics
+
         try:
-            self.app = SecondThreadApp(0)
+            self.app = viewer_basics.SecondThreadApp(0)
             self.app.MainLoop()
         except TypeError:
             self.app = None
@@ -80,7 +83,8 @@ class viewer_thread:
             send an event to the catcher window in the
             other thread and tell it to create a cone window.
         """
-        import viewer_basics
+        import  viewer_basics
+
         if self.app:
             evt = viewer_basics.AddCone()
             viewer_basics.wxPostEvent(self.app.catcher, evt)