how to let tkinter figure out best window size code example Example: how to set the size of a gui in python win.geometry("250x250")