]> granicus.if.org Git - python/commitdiff
Cleaned uthread dependencies (jvr)
authorJust van Rossum <just@lettererror.com>
Fri, 20 Oct 2000 06:37:11 +0000 (06:37 +0000)
committerJust van Rossum <just@lettererror.com>
Fri, 20 Oct 2000 06:37:11 +0000 (06:37 +0000)
Mac/Tools/IDE/PythonIDEMain.py

index 6e1ee2146bfab02a1137ec51c3499b78e7f66d0e..6bb0b4472225e7fda41c457e1699b3ee408b80e5 100644 (file)
@@ -33,13 +33,17 @@ class PythonIDE(Wapplication.Application):
                for path in sys.argv[1:]:
                        self.opendoc(path)
                try:
-                       import uthread2
+                       import Wthreading
                except ImportError:
                        self.mainloop()
                else:
-                       main = uthread2.Thread("mainloop", self.mainloop)
-                       main.start()
-                       uthread2.run()
+                       if Wthreading.haveThreading:
+                               self.mainthread = Wthreading.Thread("IDE event loop", self.mainloop)
+                               self.mainthread.start()
+                               #self.mainthread.setResistant(1)
+                               Wthreading.run()
+                       else:
+                               self.mainloop()
        
        def makeusermenus(self):
                m = Wapplication.Menu(self.menubar, "File")