]> 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 78c4004fdaf846fe536f5316e4cd263504fafed4..83449df75dfa521c60b7d828de7e3c70b9a2648f 100644 (file)
@@ -1409,7 +1409,7 @@ def main():
     global flist, root, use_subprocess
 
     use_subprocess = True
-    enable_shell = True
+    enable_shell = False
     enable_edit = False
     debug = False
     cmd = None
@@ -1430,7 +1430,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()
@@ -1481,6 +1480,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 a3fe827546c4be05c36e43968c1652a20c8756b1..e1d6486929194978a4b5c9845e7a0ec0bd7d8a41 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,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.