import tkinter as tk root = tk.Tk() root.title("my title") root.geometry('200x150') root.configure(background='black') # enter widgets here root.mainloop()
m=tkinter.Tk() #where m is the name of the main window object