how to specify root geometry in tkinter

42

#Source https://www.pythontutorial.net/tkinter/tkinter-window/

import tkinter as tk


root = tk.Tk()
root.title('Tkinter Window Demo')

#parameters(width,hight,padx,pady)
root.geometry('600x400+50+50')

root.mainloop()

Comments

Submit
0 Comments