mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue *24750: Switch all scrollbars in IDLE to ttk versions.
Where needed, add minimal tests to cover changes.
This commit is contained in:
parent
96881cd621
commit
01e35754fb
17 changed files with 211 additions and 39 deletions
|
@ -68,6 +68,7 @@ outwin.OutputWindow (indirectly being tested with grep test)
|
|||
from importlib import import_module
|
||||
from idlelib.macosx import _init_tk_type
|
||||
import tkinter as tk
|
||||
from tkinter.ttk import Scrollbar
|
||||
|
||||
AboutDialog_spec = {
|
||||
'file': 'help_about',
|
||||
|
@ -344,7 +345,7 @@ def run(*tests):
|
|||
frameLabel.pack()
|
||||
text = tk.Text(frameLabel, wrap='word')
|
||||
text.configure(bg=root.cget('bg'), relief='flat', height=4, width=70)
|
||||
scrollbar = tk.Scrollbar(frameLabel, command=text.yview)
|
||||
scrollbar = Scrollbar(frameLabel, command=text.yview)
|
||||
text.config(yscrollcommand=scrollbar.set)
|
||||
scrollbar.pack(side='right', fill='y', expand=False)
|
||||
text.pack(side='left', fill='both', expand=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue