Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c35151c

Browse files
committed
#6698: IDLE now opens just an editor window when configured to do so.
1 parent 420e2d8 commit c35151c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ def main():
14091409
global flist, root, use_subprocess
14101410

14111411
use_subprocess = True
1412-
enable_shell = True
1412+
enable_shell = False
14131413
enable_edit = False
14141414
debug = False
14151415
cmd = None
@@ -1430,7 +1430,6 @@ def main():
14301430
enable_shell = True
14311431
if o == '-e':
14321432
enable_edit = True
1433-
enable_shell = False
14341433
if o == '-h':
14351434
sys.stdout.write(usage_msg)
14361435
sys.exit()
@@ -1481,6 +1480,7 @@ def main():
14811480
edit_start = idleConf.GetOption('main', 'General',
14821481
'editor-on-startup', type='bool')
14831482
enable_edit = enable_edit or edit_start
1483+
enable_shell = enable_shell or not enable_edit
14841484
# start editor and/or shell windows:
14851485
root = Tk(className="Idle")
14861486

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Core and Builtins
1515
Library
1616
-------
1717

18+
- Issue #6698: IDLE now opens just an editor window when configured to do so.
19+
1820
- Issue #8900: Using keyboard shortcuts in IDLE to open a file no longer
1921
raises an exception.
2022

0 commit comments

Comments
 (0)