Tkinter PanedWindow Create LabelFrame as child object
PanedWindow is a panel that is most often used to divide it into two or three parts, and then the designed controls can be positioned appropriately.
Example#1
Design three LabelFrame objects as children of PanedWindow and arrange them horizontally.
from tkinter import *
root = Tk()
root.title("apidemos.com")
# pw = PanedWindow(root,orient=HORIZONTAL) # Create PanedWindow Object
pw = PanedWindow(orient=HORIZONTAL) # Create PanedWindow Object
leftframe = LabelFrame(pw,text="Left Pane",width=120,height=150)
pw.add(leftframe) # Insert Left LabelFrame
middleframe = LabelFrame(pw,text="Middle Pane",width=120)
pw.add(middleframe) # Insert Middle LabelFrame
rightframe = LabelFrame(pw,text="Right Pane",width=120)
pw.add(rightframe) # Insert Right LabelFrame
pw.pack(fill=BOTH,expand=True,padx=10,pady=10)
root.mainloop()
Output: