How do I set the initial window size as the minimum window size in tkinter?
You can also force an update right away without entering your mainloop, by using something like this: root = Tk() # set up widgets here, do your grid/pack/place # root.geometry() will return ‘1×1+0+0’ here root.update() # now root.geometry() returns valid size/placement root.minsize(root.winfo_width(), root.winfo_height()) Description of update() at effbot tkinterbook: Processes all pending events, calls event … Read more