[Python-checkins] cpython (2.7): 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/24e580e667fb
changeset:   102912:24e580e667fb
branch:      2.7
parent:      102906:862761e4376e
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Thu Aug 25 20:04:08 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 HTMLParser 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
 import tkFont as tkfont
 from idlelib.configHandler import idleConf
@@ -269,7 +270,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