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

index f6e8917d20f5f3ae14b858adb5a8b3333f301d15..0885709111e074b602ddbc6a62752c23793b4a36 100644 (file)
@@ -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?
 =========================
 
index 38ed3af757704a7d133e4d04a13350187e09b1c8..78c4004fdaf846fe536f5316e4cd263504fafed4 100644 (file)
@@ -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