]> granicus.if.org Git - python/commitdiff
Add version to title of IDLE help window.
authorTerry Jan Reedy <tjreedy@udel.edu>
Fri, 26 Aug 2016 00:05:30 +0000 (20:05 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 26 Aug 2016 00:05:30 +0000 (20:05 -0400)
1  2 
Lib/idlelib/help.py

index d18d1ca3f2907a31c673280e42764a7b7ddfd2c2,a7008e94ed0514dc23b50654b1ce1f2e90b0c8b2..03d6ea24e0f05a4572499bcdfd4e9224145b0f8c
@@@ -25,11 -25,15 +25,12 @@@ copy_strip - Copy idle.html to help.htm
  show_idlehelp - Create HelpWindow.  Called in EditorWindow.help_dialog.
  """
  from html.parser import HTMLParser
 -from os.path import abspath, dirname, isdir, isfile, join
 +from os.path import abspath, dirname, isfile, join
+ from platform import python_version
 -from tkinter import Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton
 +from tkinter import Toplevel, Frame, Text, Menu
 +from tkinter.ttk import Menubutton, Scrollbar
  from tkinter import font as tkfont
 -from idlelib.configHandler import idleConf
 -
 -use_ttk = False # until available to import
 -if use_ttk:
 -    from tkinter.ttk import Menubutton
 +from idlelib.config import idleConf
  
  ## About IDLE ##