summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/PythonIDEMain.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/PythonIDEMain.py')
-rw-r--r--Mac/Tools/IDE/PythonIDEMain.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index a340eef..6e1ee21 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -1,9 +1,8 @@
-# copyright 1997-1998 Just van Rossum, Letterror. just@letterror.com
+# copyright 1997-2000 Just van Rossum, Letterror. just@letterror.com
import Splash
import FrameWork
-import Win
import Wapplication
import W
import os
@@ -33,7 +32,14 @@ class PythonIDE(Wapplication.Application):
import sys
for path in sys.argv[1:]:
self.opendoc(path)
- self.mainloop()
+ try:
+ import uthread2
+ except ImportError:
+ self.mainloop()
+ else:
+ main = uthread2.Thread("mainloop", self.mainloop)
+ main.start()
+ uthread2.run()
def makeusermenus(self):
m = Wapplication.Menu(self.menubar, "File")