summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-05-02 23:40:29 (GMT)
committerJust van Rossum <just@letterror.com>2003-05-02 23:40:29 (GMT)
commitd797e7b5070a96f27ef03d6cbef6103508552ea8 (patch)
treeb823055cd2f98452a26f48f5740b0a94ba19d97b
parent320a1b04543a8fa7c32227f4db18238ad84ce2ae (diff)
downloadcpython-d797e7b5070a96f27ef03d6cbef6103508552ea8.zip
cpython-d797e7b5070a96f27ef03d6cbef6103508552ea8.tar.gz
cpython-d797e7b5070a96f27ef03d6cbef6103508552ea8.tar.bz2
Fixed age-old beginner's error: don't start the main loop as a side
effect of an import. (This is one step towards threading support in the IDE.)
-rw-r--r--Mac/Tools/IDE/PythonIDE.py3
-rw-r--r--Mac/Tools/IDE/PythonIDEMain.py4
2 files changed, 2 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py
index 3a1a66a..9922bef 100644
--- a/Mac/Tools/IDE/PythonIDE.py
+++ b/Mac/Tools/IDE/PythonIDE.py
@@ -48,4 +48,5 @@ def init():
init()
del init
-import PythonIDEMain
+import PythonIDEMain as _PythonIDEMain
+_PythonIDEMain.PythonIDE()
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index fa71cb7..1414995 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -463,7 +463,3 @@ class PythonIDE(Wapplication.Application):
except (ImportError, MacOS.Error), arg:
pass # W.Message("Cannot register Python Documentation: %s" % str(arg))
return has_help, has_doc
-
-
-PythonIDE()
-