[Python-checkins] cpython (3.4): Issue #24889: When starting Idle, force focus onto Idle window if not already
terry.reedy
python-checkins at python.org
Mon Sep 7 07:59:40 CEST 2015
https://hg.python.org/cpython/rev/d7449bac2c6d
changeset: 97738:d7449bac2c6d
branch: 3.4
parent: 97732:f185917498ca
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Mon Sep 07 01:58:13 2015 -0400
summary:
Issue #24889: When starting Idle, force focus onto Idle window if not already
there (as when opening Idle from interactive Python on Windows).
files:
Lib/idlelib/PyShell.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1043,6 +1043,7 @@
self.write("Python %s on %s\n%s\n%s" %
(sys.version, sys.platform, self.COPYRIGHT, nosub))
+ self.text.focus_force()
self.showprompt()
import tkinter
tkinter._default_root = None # 03Jan04 KBK What's this?
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list