From baf9ef960c22d9bea2d0189549514c0044e68978 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Mon, 7 Sep 2015 01:58:05 -0400 Subject: Issue #24889: When starting Idle, force focus onto Idle window if not already there (as when opening Idle from interactive Python on Windows). --- Lib/idlelib/PyShell.py | 1 + 1 file changed, 1 insertion(+) 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? -- cgit v0.12