From: Terry Jan Reedy Date: Mon, 7 Sep 2015 05:58:13 +0000 (-0400) Subject: Issue #24889: When starting Idle, force focus onto Idle window if not already X-Git-Tag: v3.5.1rc1~427^2~1^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b41eadab436ce08724f2373586bef52b13839014;p=thirdparty%2FPython%2Fcpython.git Issue #24889: When starting Idle, force focus onto Idle window if not already there (as when opening Idle from interactive Python on Windows). --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 5854cf91a404..90fc689e9dda 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?