summaryrefslogtreecommitdiff
path: root/Lib/idlelib/help.py
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2020-10-22 15:14:35 -0400
committerGitHub <noreply@github.com>2020-10-22 15:14:35 -0400
commitfacb522d44fceaf15de6bc95de1cd680c4621c2a (patch)
tree387478639d68887e81a2d1143fea290b7c4434ae /Lib/idlelib/help.py
parente76b8fc8155fac5dafa6b531d2b679c90c39748d (diff)
downloadcpython-git-facb522d44fceaf15de6bc95de1cd680c4621c2a.tar.gz
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433)
Diffstat (limited to 'Lib/idlelib/help.py')
-rw-r--r--Lib/idlelib/help.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py
index 9f63ea0d39..f420d40fb9 100644
--- a/Lib/idlelib/help.py
+++ b/Lib/idlelib/help.py
@@ -28,8 +28,8 @@ from html.parser import HTMLParser
from os.path import abspath, dirname, isfile, join
from platform import python_version
-from tkinter import Toplevel, Frame, Text, Menu
-from tkinter.ttk import Menubutton, Scrollbar
+from tkinter import Toplevel, Text, Menu
+from tkinter.ttk import Frame, Menubutton, Scrollbar, Style
from tkinter import font as tkfont
from idlelib.config import idleConf
@@ -212,7 +212,9 @@ class HelpFrame(Frame):
def __init__(self, parent, filename):
Frame.__init__(self, parent)
self.text = text = HelpText(self, filename)
- self['background'] = text['background']
+ self.style = Style(parent)
+ self['style'] = 'helpframe.TFrame'
+ self.style.configure('helpframe.TFrame', background=text['background'])
self.toc = toc = self.toc_menu(text)
self.scroll = scroll = Scrollbar(self, command=text.yview)
text['yscrollcommand'] = scroll.set