diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-22 19:58:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 19:58:30 (GMT) |
commit | 06c9e01c651c35c2e058eca0f7073dd405578f78 (patch) | |
tree | 796d063da279c789592ed55ef094ceeece98359c /Lib/idlelib/help.py | |
parent | 5d8bc65ba5be5742b3a4cc470dfd990512bdaa93 (diff) | |
download | cpython-06c9e01c651c35c2e058eca0f7073dd405578f78.zip cpython-06c9e01c651c35c2e058eca0f7073dd405578f78.tar.gz cpython-06c9e01c651c35c2e058eca0f7073dd405578f78.tar.bz2 |
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) (GH-22900)
(cherry picked from commit facb522d44fceaf15de6bc95de1cd680c4621c2a)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Diffstat (limited to 'Lib/idlelib/help.py')
-rw-r--r-- | Lib/idlelib/help.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index 9f63ea0..f420d40 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 |