summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-03-30 22:32:19 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-03-30 22:32:19 (GMT)
commit32622236d5b45fedcefa50c11afeaa5d99ff8cdc (patch)
tree0ee455263dff1dc5749b26346524ec2123e6388c
parent19aeb439c6ca0da540ad95eec599d3654babe20b (diff)
downloadcpython-32622236d5b45fedcefa50c11afeaa5d99ff8cdc.zip
cpython-32622236d5b45fedcefa50c11afeaa5d99ff8cdc.tar.gz
cpython-32622236d5b45fedcefa50c11afeaa5d99ff8cdc.tar.bz2
Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.
-rw-r--r--Lib/idlelib/NEWS.txt7
-rw-r--r--Lib/idlelib/PyShell.py3
2 files changed, 9 insertions, 1 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index f6e8917d..0885709 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,3 +1,10 @@
+What's New in IDLE 3.3.2?
+=========================
+
+- Issue #17390: Display Python version on Idle title bar.
+ Initial patch by Edmond Burnett.
+
+
What's New in IDLE 3.3.1?
=========================
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 38ed3af..78c4004 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -16,6 +16,7 @@ import io
import linecache
from code import InteractiveInterpreter
+from platform import python_version
try:
from tkinter import *
@@ -799,7 +800,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
class PyShell(OutputWindow):
- shell_title = "Python Shell"
+ shell_title = "Python " + python_version() + " Shell"
# Override classes
ColorDelegator = ModifiedColorDelegator