diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-07 05:58:05 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-07 05:58:05 (GMT) |
commit | baf9ef960c22d9bea2d0189549514c0044e68978 (patch) | |
tree | d56801539634bae67bcaf1cbdcd5e57ba47b66cb /Lib/idlelib/PyShell.py | |
parent | 0ed1bcdff891876e18e311911c724fc0bbce673c (diff) | |
download | cpython-baf9ef960c22d9bea2d0189549514c0044e68978.zip cpython-baf9ef960c22d9bea2d0189549514c0044e68978.tar.gz cpython-baf9ef960c22d9bea2d0189549514c0044e68978.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-x | Lib/idlelib/PyShell.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 23337f8..688ec14 100755 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -1054,6 +1054,7 @@ class PyShell(OutputWindow): nosub = "==== No Subprocess ====" 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? |