tkinter geeksforgeeks
# import tkinter module
from tkinter import *
# Following will import tkinter.ttk module and
# automatically override all the widgets
# which are present in tkinter module.
from tkinter.ttk import * root = Tk()
# Initialize tkinter window with dimensions 100x100
root.geometry('100x100')
btn = Button(root, text = 'Click me !',
command = root.destroy)
# Set the position of button on the top of window
btn.pack(side = 'top')
root.mainloop()