]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24889: When starting Idle, force focus onto Idle window if not already
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 7 Sep 2015 05:58:05 +0000 (01:58 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 7 Sep 2015 05:58:05 +0000 (01:58 -0400)
there (as when opening Idle from interactive Python on Windows).

Lib/idlelib/PyShell.py

index 23337f8ed546dd88f373a367e1566cd90b700a57..688ec146072217e1444a374887f567f1d16d492d 100755 (executable)
@@ -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?