fromtkinterimport*root=Tk()i=0b={}win1=Frame(root,height=100,width=100,bg='yellow')win1.grid_propagate(False)win1.grid()Frame1=LabelFrame(root,height=400,width=400)Frame1...
from tkinter import *
root = Tk()
i=0
b={}
win1 = Frame(root, height=100, width=100,bg='yellow')
win1.grid_propagate(False)
win1.grid()
Frame1 = LabelFrame(root,height = 400, width=400)
Frame1.grid(sticky=S)
s = Scrollbar(Frame1, orient = VERTICAL)
s.grid(row = 6, column = 1, sticky = NS)
can = Canvas(Frame1, width =400, height = 400, yscrollcommand=s.set,bg='red')
can.grid(row = 6, column = 0, sticky = NSEW)
win = Frame(can)
can.create_window(0,0, window = win,anchor = W)