As title, i need to set window size with frame. i know with geometry. in the code, frame try to resize along widget size. i want it constant. so widget inside frame not involve with frame size.
for ex, if i remove button widget in code. window size will follow frame size.
root = tkinter.Tk()
s = ttk.Style()
s.configure('Login.TFrame', background='red')
login = ttk.Frame(root, style='Login.TFrame')
login.config(width=640, height=360)
// remove button widget makes window follow frame config size.
ttk.Button(login, text="Login").pack()
login.pack(expand=True, fill=tkinter.BOTH)
root.mainloop()