From: Terry Jan Reedy Date: Mon, 21 Sep 2015 00:05:51 +0000 (-0400) Subject: Issue #16893: whitespace in help.py. X-Git-Tag: v2.7.11rc1~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37ad79615f718b8acc1a311d49c348b4df2d1f10;p=thirdparty%2FPython%2Fcpython.git Issue #16893: whitespace in help.py. --- diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index a895a9ca00bd..7d485746a5b0 100644 --- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -157,7 +157,7 @@ class HelpText(Text): "Configure tags and feed file to parser." Text.__init__(self, parent, wrap='word', highlightthickness=0, padx=5, borderwidth=0) - + normalfont = self.findfont(['TkDefaultFont', 'arial', 'helvetica']) fixedfont = self.findfont(['TkFixedFont', 'monaco', 'courier']) self['font'] = (normalfont, 12) @@ -173,7 +173,7 @@ class HelpText(Text): self.tag_configure('l3', lmargin1=75, lmargin2=75) self.tag_configure('l4', lmargin1=100, lmargin2=100) - self.parser = HelpParser(self) + self.parser = HelpParser(self) with open(filename) as f: contents = f.read().decode(encoding='utf-8') self.parser.feed(contents) @@ -203,7 +203,7 @@ class HelpFrame(Frame): self.grid_rowconfigure(0, weight=1) toc = self.contents_widget(text) toc.grid(column=0, row=0, sticky='nw') - + def contents_widget(self, text): toc = Menubutton(self, text='TOC') drop = Menu(toc, tearoff=False)