tk resize window python tkinter code example
Example 1: set window size tkinter
# Change window_name to the name of the window object, i.e. root
window_name.geometry("500x500")
# To ensure widgets resize:
widget_name.pack(fill="both", expand=True)
Example 2: how to resize tkinter window
import tkinter
window = tkinter.Tk() # creating the window object
window.title('my first GUI program')
window.minsize(width=600, height=500) # makes the window 500*600
window.mainloop() # keeping the window until we close it