I would like to know how to add a scrollbar with two LabelFrame in Python (Tkinter)?
Example is as follow: enter image description here
My code:
from tkinter import *
root = Tk()
root.geometry('200x500')
labelframe1 = LabelFrame(root, text="Label Frame 1")
labelframe1.place(x=10, y=0, width=100, height=600)
labelframe2 = LabelFrame(root, text="Label Frame 2")
labelframe2.place(x=130, y=0, width=100, height=600)
for i in range(200):
Label(labelframe1, text=i).grid(row=i, column=0)
Label(labelframe2, text=i).grid(row=i, column=1)
root.mainloop()
Thank you.
I would like ti konw how to add a scrollbar with two LabelFrame in Python (Tkinter)?