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/PyShell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/idlelib/PyShell.py') diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 76e92b2d8c..561993ce20 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 v1.2.1