# main library is tkinter so lets go import tkinter as tk root = tk.Tk() #root.geometry("widthxheight+spcefromleft+spacefromright") lets set h and w root.geometry("500x200+0+0") # loop your window root.mainloop()