import tkinter
m = tkinter.Tk()
# widgets are added here
m.mainloop()
#simple application with tkinter
from tkinter import *
window=Tk()
# add widgets here
window.title('Hello Python')
window.geometry("300x200+10+20")
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()