diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-03-30 22:50:43 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-03-30 22:50:43 (GMT) |
commit | d676a3a221b99e1b352e18be0939158dfc37ef82 (patch) | |
tree | 2c55d644df0d3b2e4a4575a8dd98a82d45864edd /Lib/idlelib/PyShell.py | |
parent | 472f77daa5b7bca7625ca5f4b8e9aaed6e3acef0 (diff) | |
download | cpython-d676a3a221b99e1b352e18be0939158dfc37ef82.zip cpython-d676a3a221b99e1b352e18be0939158dfc37ef82.tar.gz cpython-d676a3a221b99e1b352e18be0939158dfc37ef82.tar.bz2 |
Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 76e92b2..561993c 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -15,6 +15,7 @@ import io import linecache from code import InteractiveInterpreter +from platform import python_version try: from Tkinter import * @@ -821,7 +822,7 @@ class ModifiedInterpreter(InteractiveInterpreter): class PyShell(OutputWindow): - shell_title = "Python Shell" + shell_title = "Python " + python_version() + " Shell" # Override classes ColorDelegator = ModifiedColorDelegator |