Kaydet (Commit) baf9ef96 authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24889: When starting Idle, force focus onto Idle window if not already

there (as when opening Idle from interactive Python on Windows).
üst 0ed1bcdf
...@@ -1054,6 +1054,7 @@ class PyShell(OutputWindow): ...@@ -1054,6 +1054,7 @@ class PyShell(OutputWindow):
nosub = "==== No Subprocess ====" nosub = "==== No Subprocess ===="
self.write("Python %s on %s\n%s\n%s" % self.write("Python %s on %s\n%s\n%s" %
(sys.version, sys.platform, self.COPYRIGHT, nosub)) (sys.version, sys.platform, self.COPYRIGHT, nosub))
self.text.focus_force()
self.showprompt() self.showprompt()
import Tkinter import Tkinter
Tkinter._default_root = None # 03Jan04 KBK What's this? Tkinter._default_root = None # 03Jan04 KBK What's this?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment