When I configure a tkinter window's rows and columns with weight=1 and then place a canvas over it spanning all the rows and the columns ,the canvas becomes size responsive:
win=Tk()
win.geometry("1200x675")
rows=0
while rows<200:
win.rowconfigure(rows,weight=1)
win.columnconfigure(rows,weight=1)
rows+=1
canvas=Canvas(win,bg='white',width=1200,height=675)
canvas.grid(sticky='nesw',rowspan=200,columnspan=200)
But the widgets placed inside the canvas at specific coordinate remains of the same size and at the same position,for example a button:
but=Button(text="Calculate")
canvas.create_window(100,100,window=but)
So,please can anyone help as to how to make the widgets also size responsive.