diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-26 00:04:14 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-26 00:04:14 (GMT) |
commit | 39e9af6bb3fdd0dd59292b5a014d398956f0b7cd (patch) | |
tree | 9705db84a3047f9abffb6e07c555e5bf6614192d /Lib/idlelib/help.py | |
parent | 37cac76100bb1e214865befd4a8f626f746e0248 (diff) | |
download | cpython-39e9af6bb3fdd0dd59292b5a014d398956f0b7cd.zip cpython-39e9af6bb3fdd0dd59292b5a014d398956f0b7cd.tar.gz cpython-39e9af6bb3fdd0dd59292b5a014d398956f0b7cd.tar.bz2 |
Add version to title of IDLE help window.
Diffstat (limited to 'Lib/idlelib/help.py')
-rw-r--r-- | Lib/idlelib/help.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |