]> granicus.if.org Git - python/commitdiff
Fixed age-old beginner's error: don't start the main loop as a side
authorJust van Rossum <just@letterror.com>
Fri, 2 May 2003 23:40:29 +0000 (23:40 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 2 May 2003 23:40:29 +0000 (23:40 +0000)
effect of an import. (This is one step towards threading support in
the IDE.)

Mac/Tools/IDE/PythonIDE.py
Mac/Tools/IDE/PythonIDEMain.py

index 3a1a66a57acce58a8045d29ec0da485a0c2b57f4..9922bef0e36216a9ca27c9066f2d93eed313fa6c 100644 (file)
@@ -48,4 +48,5 @@ def init():
 init()
 del init
 
-import PythonIDEMain
+import PythonIDEMain as _PythonIDEMain
+_PythonIDEMain.PythonIDE()
index fa71cb73815eb382b347fc381e22b4c313ad34bb..1414995552acfea3ff6796436c9ea17f9ab7c571 100644 (file)
@@ -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()
-