After a user manually resizes a tkinter window, it no longer shrinks to fit.
What tkinter command would revert it back to the 'shrink to fit' behavior?
After a user manually resizes a tkinter window, it no longer shrinks to fit.
What tkinter command would revert it back to the 'shrink to fit' behavior?
I had a hard time remembering how to this, as it has been so long. In Tcl use:
wm geometry . {}
Can one of the python people edit the answer and translate this for tkinter, thanks.
@Atlas435 wrote this code for tkinter:
import tkinter as tk
root=tk.Tk()
def normal():
root.geometry('')
b = tk.Button(root,text='shrink', command=normal)
b.pack()
root.mainloop()