From d676a3a221b99e1b352e18be0939158dfc37ef82 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 30 Mar 2013 18:50:43 -0400 Subject: Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett. --- Lib/idlelib/NEWS.txt | 7 +++++++ Lib/idlelib/PyShell.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 080f98e..07ab083 100644 --- 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 index 76e92b2..561993c 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -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 -- cgit v0.12