[Python-checkins] cpython (merge 3.5 -> default): Add version to title of IDLE help window.
terry.reedy
python-checkins at python.org
Thu Aug 25 20:05:46 EDT 2016
https://hg.python.org/cpython/rev/10a73648c92c
changeset: 102914:10a73648c92c
parent: 102911:ffcfa4f005a3
parent: 102913:c75fcd094dcf
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Thu Aug 25 20:05:30 2016 -0400
summary:
Add version to title of IDLE help window.
files:
Lib/idlelib/help.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py
--- a/Lib/idlelib/help.py
+++ b/Lib/idlelib/help.py
@@ -26,6 +26,7 @@
"""
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 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list