summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-07 05:58:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-07 05:58:13 (GMT)
commitb41eadab436ce08724f2373586bef52b13839014 (patch)
tree3dbe657af60bc7663f846eab5c70cb68f069b8a7 /Lib/idlelib/PyShell.py
parentaa2fcc6b35e92ee7a8b1396ee454a9f92936c850 (diff)
downloadcpython-b41eadab436ce08724f2373586bef52b13839014.zip
cpython-b41eadab436ce08724f2373586bef52b13839014.tar.gz
cpython-b41eadab436ce08724f2373586bef52b13839014.tar.bz2
Issue #24889: When starting Idle, force focus onto Idle window if not already
there (as when opening Idle from interactive Python on Windows).
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 5854cf9..90fc689 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1043,6 +1043,7 @@ class PyShell(OutputWindow):
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?