cpython: c1eccae07977 (original) (raw)
--- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -28,6 +28,7 @@ from HTMLParser import HTMLParser from os.path import abspath, dirname, isdir, isfile, join from Tkinter import Tk, Toplevel, Frame, Text, Scrollbar, Menu, Menubutton import tkFont as tkfont +from idlelib.configHandler import idleConf use_ttk = False # until available to import if use_ttk: @@ -161,8 +162,11 @@ class HelpText(Text): "Display help.html." def init(self, parent, filename): "Configure tags and feed file to parser."
uwide = idleConf.GetOption('main', 'EditorWindow', 'width', type='int')[](#l1.15)
uhigh = idleConf.GetOption('main', 'EditorWindow', 'height', type='int')[](#l1.16)
uhigh = 3 * uhigh // 4 # lines average 4/3 of editor line height[](#l1.17) Text.__init__(self, parent, wrap='word', highlightthickness=0,[](#l1.18)
padx=5, borderwidth=0)[](#l1.19)
padx=5, borderwidth=0, width=uwide, height=uhigh)[](#l1.20)
normalfont = self.findfont(['TkDefaultFont', 'arial', 'helvetica']) fixedfont = self.findfont(['TkFixedFont', 'monaco', 'courier'])