from tkinter import * tk = Tk() btn = Button(tk, text="click me") btn.pack()
Related questions
tk.mainloop()
Find more questions by tags Python