Skip to content

Commit

Permalink
bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433)
Browse files Browse the repository at this point in the history
  • Loading branch information
csabella authored Oct 22, 2020
1 parent e76b8fc commit facb522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Lib/idlelib/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions Lib/idlelib/statusbar.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from tkinter import Frame, Label
from tkinter import Label
from tkinter.ttk import Frame


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


def _multistatus_bar(parent): # htest #
from tkinter import Toplevel, Frame, Text, Button
from tkinter import Toplevel, Text
from tkinter.ttk import Frame, Button
top = Toplevel(parent)
x, y = map(int, parent.geometry().split('+')[1:])
top.geometry("+%d+%d" %(x, y + 175))
Expand Down

0 comments on commit facb522

Please sign in to comment.