Create a MessageBox in Python.
from tkinter import *
from tkinter import messagebox
window = Tk()
window.title("Welcome to Coding Block!")
window.geometry('350x200')
def clicked():
# messagebox.showinfo('Message title', 'Message not found')
# messagebox.showwarning('Message title', 'Please Check')
messagebox.showerror('Message title', 'Message Successfull')
button = Button(window,text='Click Here', command=clicked)
button.grid(column=0,row=0)
window.mainloop()
OUTPUT
No comments:
Post a Comment
Please do not any spam link in Comment Box