[Python-checkins] cpython (merge 3.3 -> default): Merge from 3.3: Issue #17390

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


http://hg.python.org/cpython/rev/e0f66c924544
changeset:   83032:e0f66c924544
parent:      83030:8c15e57830dd
parent:      83031:74d9a9507019
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Mar 30 18:39:14 2013 -0400
summary:
  Merge from 3.3: Issue #17390

files:
  Lib/idlelib/NEWS.txt   |  3 +++
  Lib/idlelib/PyShell.py |  3 ++-
  2 files changed, 5 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,6 +1,9 @@
 What's New in IDLE 3.4.0?
 =========================
 
+- Issue #17390: Display Python version on Idle title bar.
+  Initial patch by Edmond Burnett.
+
 - Issue #5066: Update IDLE docs. Patch by Todd Rovito.
 
 - Issue #16226: Fix IDLE Path Browser crash.
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -16,6 +16,7 @@
 
 import linecache
 from code import InteractiveInterpreter
+from platform import python_version
 
 try:
     from tkinter import *
@@ -799,7 +800,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