The text does not move with the scroll bar as if the text is not attached to it. In the pop-up window, the middle of the text is visible, but not the beginning and the scroll bar moves, and the text is in place. I just can not figure out the scroll bar.
def window_open(label_1): # Всплывающее окно toplevel = Toplevel() toplevel.title("Химические элементы таблицы Менделеева") toplevel.geometry("500x500+600+200") label_new = Label(toplevel, text=label_1, height=0, width=100, wraplength=500) label_1 = Text(toplevel) scroll = Scrollbar(toplevel, orient='vertical') label_1.configure(yscrollcommand=scroll.set) scroll['command'] = label_1.yview label_1.pack scroll.pack(side=RIGHT, fill=Y) label_new.pack()
- How to make the text open from the beginning, not from the middle?
- How does the scrollbar snap to text?
- Where can I read about Scrollbar?
Label
or the one in which you enter theText
data yourself? because you add some data in theLabel
and scroll the data in theText
- Twisslabel_1
hasText
) - Twiss