mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
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:
parent
aa2fcc6b35
commit
b41eadab43
1 changed files with 1 additions and 0 deletions
|
|
@ -1043,6 +1043,7 @@ class PyShell(OutputWindow):
|
||||||
|
|
||||||
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?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue