mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +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
|
@ -3,6 +3,7 @@
|
|||
"""
|
||||
|
||||
from tkinter import *
|
||||
from tkinter.ttk import Scrollbar
|
||||
import tkinter.messagebox as tkMessageBox
|
||||
|
||||
class TextViewer(Toplevel):
|
||||
|
@ -50,7 +51,7 @@ class TextViewer(Toplevel):
|
|||
self.buttonOk = Button(frameButtons, text='Close',
|
||||
command=self.Ok, takefocus=FALSE)
|
||||
self.scrollbarView = Scrollbar(frameText, orient=VERTICAL,
|
||||
takefocus=FALSE, highlightthickness=0)
|
||||
takefocus=FALSE)
|
||||
self.textView = Text(frameText, wrap=WORD, highlightthickness=0,
|
||||
fg=self.fg, bg=self.bg)
|
||||
self.scrollbarView.config(command=self.textView.yview)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue