Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 30 Mar 2013 22:50:43 +0000 (18:50 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 30 Mar 2013 22:50:43 +0000 (18:50 -0400)
Lib/idlelib/NEWS.txt
Lib/idlelib/PyShell.py

index 080f98e0f3b232f0046a47554521ed962b116e52..07ab0837111090c81d8203291c8c579c65922477 100644 (file)
@@ -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?
 =========================
 
index 76e92b2d8c2a31fc4dd1121afe6daf96243d57ca..561993ce205644a0ded911ff02375cb63a8d351e 100644 (file)
@@ -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