Commit 39e9af6b authored by Terry Jan Reedy's avatar Terry Jan Reedy

Add version to title of IDLE help window.

parent 37cac761
...@@ -26,6 +26,7 @@ show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog. ...@@ -26,6 +26,7 @@ show_idlehelp - Create HelpWindow. Called in EditorWindow.help_dialog.
""" """
from html.parser import HTMLParser from html.parser import HTMLParser
from os.path import abspath, dirname, isdir, isfile, join 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 Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton
from tkinter import font as tkfont from tkinter import font as tkfont
from idlelib.configHandler import idleConf from idlelib.configHandler import idleConf
...@@ -265,7 +266,7 @@ def show_idlehelp(parent): ...@@ -265,7 +266,7 @@ def show_idlehelp(parent):
if not isfile(filename): if not isfile(filename):
# try copy_strip, present message # try copy_strip, present message
return return
HelpWindow(parent, filename, 'IDLE Help') HelpWindow(parent, filename, 'IDLE Help (%s)' % python_version())
if __name__ == '__main__': if __name__ == '__main__':
from idlelib.idle_test.htest import run from idlelib.idle_test.htest import run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment