[Python-checkins] cpython (3.5): 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/c75fcd094dcf
changeset:   102913:c75fcd094dcf
branch:      3.5
parent:      102909:bf51f1f3569a
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Thu Aug 25 20:04:14 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, 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 @@
     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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list