Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from tkinter import messagebox
- top = Tk()
- top.geometry("100x100")
- def helloCallBack():
- msg=messagebox.showinfo( "Hello World")
- B = Button(top, text ="Hello", command = helloCallBack)
- B.place(x=50,y=50)
- top.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement