From: Just van Rossum Date: Fri, 2 May 2003 23:40:29 +0000 (+0000) Subject: Fixed age-old beginner's error: don't start the main loop as a side X-Git-Tag: v2.3c1~888 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d797e7b5070a96f27ef03d6cbef6103508552ea8;p=python 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.) --- diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py index 3a1a66a57a..9922bef0e3 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 fa71cb7381..1414995552 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() -