Python Tkinter I Can't Get A Scrollbar To Work
I can't get a scrollbar to work. Can somebody take a look at my code and tell me what I've done wrong? import tkinter as T from tkinter import ttk fldrs = ['C:\\Program Files\\Te
Solution 1:
The scrollbar won't work because by default the text widget wraps the text. Therefore, there cannot be any text beyond the right margin.
If you want to use a horizontal scrollbar, you need to turn word-wrapping off.
txt1 = T.Text(frm1, xscrollcommand=scrb.set, wrap="none")
Post a Comment for "Python Tkinter I Can't Get A Scrollbar To Work"