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

there (as when opening Idle from interactive Python on Windows).
This commit is contained in:
Terry Jan Reedy 2015-09-07 01:58:13 -04:00
parent aa2fcc6b35
commit b41eadab43
1 changed files with 1 additions and 0 deletions

View File

@ -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?