]> granicus.if.org Git - python/commitdiff
#6698: IDLE now opens just an editor window when configured to do so.
authorRoger Serwy <roger.serwy@gmail.com>
Mon, 1 Apr 2013 04:28:55 +0000 (23:28 -0500)
committerRoger Serwy <roger.serwy@gmail.com>
Mon, 1 Apr 2013 04:28:55 +0000 (23:28 -0500)
Lib/idlelib/PyShell.py
Misc/NEWS

index 561993ce205644a0ded911ff02375cb63a8d351e..f2c9062c87d265bd527f8d556e9477b63de768cf 100644 (file)
@@ -1414,7 +1414,7 @@ def main():
     global flist, root, use_subprocess
 
     use_subprocess = True
-    enable_shell = True
+    enable_shell = False
     enable_edit = False
     debug = False
     cmd = None
@@ -1435,7 +1435,6 @@ def main():
             enable_shell = True
         if o == '-e':
             enable_edit = True
-            enable_shell = False
         if o == '-h':
             sys.stdout.write(usage_msg)
             sys.exit()
@@ -1486,6 +1485,7 @@ def main():
     edit_start = idleConf.GetOption('main', 'General',
                                     'editor-on-startup', type='bool')
     enable_edit = enable_edit or edit_start
+    enable_shell = enable_shell or not enable_edit
     # start editor and/or shell windows:
     root = Tk(className="Idle")
 
index 29784ffa9e47f781a7d7193244d5a5b2a377b955..70dd410c24360a1c82a5590d7abc3d4593239fe8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #6698: IDLE now opens just an editor window when configured to do so.
+
 - Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
   raises an exception.