tkinter message ok code example Example: error warning tkinter from tkinter import messagebox messagebox.showerror("Title", "Message")