diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-10 22:19:21 (GMT) |
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-10 22:19:21 (GMT) |
| commit | 01e35754fb8a7bcaf88a473db1eb30a14378a49e (patch) | |
| tree | 66a35e9f29de268b16e00faa5a648cb12a45b743 /Lib/idlelib/idle_test/htest.py | |
| parent | 96881cd6218000380d4a6ce60ff47bb6d785e524 (diff) | |
| download | cpython-01e35754fb8a7bcaf88a473db1eb30a14378a49e.zip cpython-01e35754fb8a7bcaf88a473db1eb30a14378a49e.tar.gz cpython-01e35754fb8a7bcaf88a473db1eb30a14378a49e.tar.bz2 | |
Issue *24750: Switch all scrollbars in IDLE to ttk versions.
Where needed, add minimal tests to cover changes.
Diffstat (limited to 'Lib/idlelib/idle_test/htest.py')
| -rw-r--r-- | Lib/idlelib/idle_test/htest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/htest.py b/Lib/idlelib/idle_test/htest.py index 686ccc5..5fd33a6 100644 --- a/Lib/idlelib/idle_test/htest.py +++ b/Lib/idlelib/idle_test/htest.py @@ -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) |
