From 32622236d5b45fedcefa50c11afeaa5d99ff8cdc Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 30 Mar 2013 18:32:19 -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 38ed3af7577..78c4004fdaf 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -16,6 +16,7 @@ import io import linecache from code import InteractiveInterpreter +from platform import python_version try: from tkinter import * @@ -799,7 +800,7 @@ class ModifiedInterpreter(InteractiveInterpreter): class PyShell(OutputWindow): - shell_title = "Python Shell" + shell_title = "Python " + python_version() + " Shell" # Override classes ColorDelegator = ModifiedColorDelegator -- cgit v1.2.3