summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-26 00:05:30 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-26 00:05:30 (GMT)
commit8f2ee0d5ffe82c5873bff914835724be0107b0c6 (patch)
tree558446ac836015518e18bd3975783577fcb227af /Lib/idlelib
parente90bdb19f22655b8ddad32006740c55d49237748 (diff)
parent39e9af6bb3fdd0dd59292b5a014d398956f0b7cd (diff)
downloadcpython-8f2ee0d5ffe82c5873bff914835724be0107b0c6.zip
cpython-8f2ee0d5ffe82c5873bff914835724be0107b0c6.tar.gz
cpython-8f2ee0d5ffe82c5873bff914835724be0107b0c6.tar.bz2
Add version to title of IDLE help window.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/help.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py
index d18d1ca..03d6ea2 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, isfile, join
+from platform import python_version
from tkinter import Toplevel, Frame, Text, Menu
from tkinter.ttk import Menubutton, Scrollbar
from tkinter import font as tkfont
@@ -265,7 +266,7 @@ def show_idlehelp(parent):
if not isfile(filename):
# try copy_strip, present message
return
- return HelpWindow(parent, filename, 'IDLE Help')
+ HelpWindow(parent, filename, 'IDLE Help (%s)' % python_version())
if __name__ == '__main__':
from idlelib.idle_test.htest import run