Tkinter Insert different controls in PanedWindow
Introducing an application that inserts different Widget controls inside a PanedWindow.
Example#1
This program will first create PanedWindow, object name is pw. then below it on the left side to create Entry object, object name is entry, below the right side to create another PanedWindow object, object name is pwin. finally, below the pwin object to create Scale object.
from tkinter import *
pw = PanedWindow(orient=HORIZONTAL) # Create Outter PanedWindow
pw.pack(fill=BOTH,expand=True)
entry = Entry(pw,bd=3)
pw.add(entry)
# Create PanedWindow object pwin, which is a child of the outer PanedWindow.
pwin = PanedWindow(pw,orient=VERTICAL)
pw.add(pwin)
# Create Scale, which is a child of pwin object
scale = Scale(pwin,orient=HORIZONTAL)
pwin.add(scale)
pw.mainloop()
Output: