From: Just van Rossum Date: Fri, 20 Oct 2000 06:37:11 +0000 (+0000) Subject: Cleaned uthread dependencies (jvr) X-Git-Tag: v2.1a1~861 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1a335641bef39f29deffefb2c9f35b30cc793ac;p=thirdparty%2FPython%2Fcpython.git Cleaned uthread dependencies (jvr) --- diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 6e1ee2146bfa..6bb0b4472225 100644 --- a/Mac/Tools/IDE/PythonIDEMain.py +++ b/Mac/Tools/IDE/PythonIDEMain.py @@ -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")