📅  最后修改于: 2022-03-11 14:46:34.294000             🧑  作者: Mango
import tkinter as tk #We'll use tkinter
class main: #This will be the main class
def __init__(self,master):
master.title('Simple Interface') #This is the title of the window
master.geometry('1200x700+0+0') #You can utilize +300+300 for example
#So now you can change the position of
#Your window
if __name__=='__main__':
master = tk.Tk() #Master is the name of our window
main = main(master)
master.mainloop #We're creating the loop