Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- master = Tk()
- def callback():
- print("click!")
- b = Button(master, text="OK", command=callback)
- b.pack()
- mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement