diff options
author | Just van Rossum <just@letterror.com> | 2003-05-02 23:40:29 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-05-02 23:40:29 (GMT) |
commit | d797e7b5070a96f27ef03d6cbef6103508552ea8 (patch) | |
tree | b823055cd2f98452a26f48f5740b0a94ba19d97b /Mac | |
parent | 320a1b04543a8fa7c32227f4db18238ad84ce2ae (diff) | |
download | cpython-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.)
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Tools/IDE/PythonIDE.py | 3 | ||||
-rw-r--r-- | Mac/Tools/IDE/PythonIDEMain.py | 4 |
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() - |