Slip 10 Q 1
CODE :
from tkinter import *
from tkinter import messagebox
def clicked():
messagebox.showinfo('Button','Button is pressed.')
root=Tk()
root.geometry('300x200')
word= Label(root,text='messagebox from button')
Button1=Button(root,text='BUTTON',command=clicked)
word.pack()
Button1.pack()
root.mainloop()
No comments:
Post a Comment