[Python-checkins] cpython (3.3): 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:20 CET 2013


http://hg.python.org/cpython/rev/74d9a9507019
changeset: 83031:74d9a9507019
branch: 3.3
parent: 83029:2698920eadcd
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sat Mar 30 18:32:19 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 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
--- 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

AltStyle によって変換されたページ (->オリジナル) /