mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.
This commit is contained in:
parent
472f77daa5
commit
d676a3a221
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
What's New in IDLE 2.7.5?
|
||||||
|
=========================
|
||||||
|
|
||||||
|
- Issue #17390: Display Python version on Idle title bar.
|
||||||
|
Initial patch by Edmond Burnett.
|
||||||
|
|
||||||
|
|
||||||
What's New in IDLE 2.7.4?
|
What's New in IDLE 2.7.4?
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import io
|
||||||
|
|
||||||
import linecache
|
import linecache
|
||||||
from code import InteractiveInterpreter
|
from code import InteractiveInterpreter
|
||||||
|
from platform import python_version
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
|
@ -821,7 +822,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
||||||
|
|
||||||
class PyShell(OutputWindow):
|
class PyShell(OutputWindow):
|
||||||
|
|
||||||
shell_title = "Python Shell"
|
shell_title = "Python " + python_version() + " Shell"
|
||||||
|
|
||||||
# Override classes
|
# Override classes
|
||||||
ColorDelegator = ModifiedColorDelegator
|
ColorDelegator = ModifiedColorDelegator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue