Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit facb522

Browse filesBrowse files
authored
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433)
1 parent e76b8fc commit facb522
Copy full SHA for facb522

File tree

2 files changed

+9
-5
lines changed
Filter options

2 files changed

+9
-5
lines changed

‎Lib/idlelib/help.py

Copy file name to clipboardExpand all lines: Lib/idlelib/help.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from os.path import abspath, dirname, isfile, join
2929
from platform import python_version
3030

31-
from tkinter import Toplevel, Frame, Text, Menu
32-
from tkinter.ttk import Menubutton, Scrollbar
31+
from tkinter import Toplevel, Text, Menu
32+
from tkinter.ttk import Frame, Menubutton, Scrollbar, Style
3333
from tkinter import font as tkfont
3434

3535
from idlelib.config import idleConf
@@ -212,7 +212,9 @@ class HelpFrame(Frame):
212212
def __init__(self, parent, filename):
213213
Frame.__init__(self, parent)
214214
self.text = text = HelpText(self, filename)
215-
self['background'] = text['background']
215+
self.style = Style(parent)
216+
self['style'] = 'helpframe.TFrame'
217+
self.style.configure('helpframe.TFrame', background=text['background'])
216218
self.toc = toc = self.toc_menu(text)
217219
self.scroll = scroll = Scrollbar(self, command=text.yview)
218220
text['yscrollcommand'] = scroll.set

‎Lib/idlelib/statusbar.py

Copy file name to clipboardExpand all lines: Lib/idlelib/statusbar.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from tkinter import Frame, Label
1+
from tkinter import Label
2+
from tkinter.ttk import Frame
23

34

45
class MultiStatusBar(Frame):
@@ -20,7 +21,8 @@ def set_label(self, name, text='', side='left', width=0):
2021

2122

2223
def _multistatus_bar(parent): # htest #
23-
from tkinter import Toplevel, Frame, Text, Button
24+
from tkinter import Toplevel, Text
25+
from tkinter.ttk import Frame, Button
2426
top = Toplevel(parent)
2527
x, y = map(int, parent.geometry().split('+')[1:])
2628
top.geometry("+%d+%d" %(x, y + 175))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.