import tkinter
m = tkinter.Tk()
# widgets are added here
m.mainloop()
from tkinter import*
window = Tk()
window.title("Window title")
window.geometry("500x500")
window.mainloop
from tkinter import*
root = Tk()
root.title("Tk example")
root.geometry("500x500")
Button(root, text="Button").place(x=100, y=100)
Label(root. text="label").place(x=200, y=100)
root.mainloop()