diff options
author | Just van Rossum <just@lettererror.com> | 2000-10-20 06:37:11 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 2000-10-20 06:37:11 (GMT) |
commit | a1a335641bef39f29deffefb2c9f35b30cc793ac (patch) | |
tree | df26a307f0e20f0eb8ed4ce75aa7d77f4198ee1a /Mac/Tools/IDE/PythonIDEMain.py | |
parent | 0f2fd16d152a8455010987c4e0d52920c8e9ad61 (diff) | |
download | cpython-a1a335641bef39f29deffefb2c9f35b30cc793ac.zip cpython-a1a335641bef39f29deffefb2c9f35b30cc793ac.tar.gz cpython-a1a335641bef39f29deffefb2c9f35b30cc793ac.tar.bz2 |
Cleaned uthread dependencies (jvr)
Diffstat (limited to 'Mac/Tools/IDE/PythonIDEMain.py')
-rw-r--r-- | Mac/Tools/IDE/PythonIDEMain.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py index 6e1ee21..6bb0b44 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") |