0
from tkinter import *
... program ...
frame = Frame(width=640,height=480)
frame.pack()
...program...
#now to change the frame size
frame.configure(width=800)

doesn`t work ...
I tryed from.config() too but it doesnt work

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by pyTony
0

I can not reproduce your problem:

try:
    from tkinter import *
except ImportError:
    from Tkinter import *

root = Tk()

frame = Frame(root, width=640, height=480)
frame.pack()
#now to change the frame size
frame.configure(width=200)

mainloop()

Edited by pyTony: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.