Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import messagebox
- from tkinter import *
- tk = Tk()
- '''
- messagebox.showinfo("Title", "Content")
- messagebox.showerror("Error", "An error occured")
- messagebox.showwarning("Attention", "Warning")
- '''
- variable = messagebox.askyesno("Question", "Question?")
- variable = messagebox.askretrycancel("Question", "Retry or cancel")
- variable = messagebox.askokcancel("Ok cancel", "Ok cancel box")
- messagebox.showinfo("Variable", variable)
- tk.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment