from tkinter import * root = Tk() Button(root, text="Hello World").grid() # from tkinter root.mainloop()