[Python-checkins] cpython (2.7): Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.

terry.reedy python-checkins at python.org
Sat Mar 30 23:51:23 CET 2013


http://hg.python.org/cpython/rev/225022955c65
changeset:   83033:225022955c65
branch:      2.7
parent:      83028:f3032825f637
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Mar 30 18:50:43 2013 -0400
summary:
  Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.

files:
  Lib/idlelib/NEWS.txt   |  7 +++++++
  Lib/idlelib/PyShell.py |  3 ++-
  2 files changed, 9 insertions(+), 1 deletions(-)


diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -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?
 =========================
 
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -15,6 +15,7 @@
 
 import linecache
 from code import InteractiveInterpreter
+from platform import python_version
 
 try:
     from Tkinter import *
@@ -821,7 +822,7 @@
 
 class PyShell(OutputWindow):
 
-    shell_title = "Python Shell"
+    shell_title = "Python " + python_version() + " Shell"
 
     # Override classes
     ColorDelegator = ModifiedColorDelegator

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list