From 39e9af6bb3fdd0dd59292b5a014d398956f0b7cd Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 25 Aug 2016 20:04:14 -0400 Subject: Add version to title of IDLE help window. --- Lib/idlelib/help.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index d0c59c5..a7008e9 100644 --- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -26,6 +26,7 @@ show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog. """ from html.parser import HTMLParser from os.path import abspath, dirname, isdir, isfile, join +from platform import python_version from tkinter import Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton from tkinter import font as tkfont from idlelib.configHandler import idleConf @@ -265,7 +266,7 @@ def show_idlehelp(parent): if not isfile(filename): # try copy_strip, present message return - HelpWindow(parent, filename, 'IDLE Help') + HelpWindow(parent, filename, 'IDLE Help (%s)' % python_version()) if __name__ == '__main__': from idlelib.idle_test.htest import run -- cgit v0.12