The frame size is entered into the text boxes and upon pressing the space bar the frame size changes. It is not possible to associate the input numbers with the frame size change. And for some reason, the frame color is not specified.
from tkinter import* root=Tk() def bar0(): tex1.get()=fra['height'] def bar1(): tex2.get()=fra['width'] fra=Frame(root,height=500,width=500,bg='lightgreen') fra.pack() tex1=Entry(fra,width=20) tex1.pack() tex2=Entry(fra,width=20) tex2.pack() tex1.bind('<space>',bar0) tex2.bind('<space>',bar1) 