from functools import partial as pto from Tkinter import Tk, Button, X from tkMessageBox import showinfo, showwarning, showerror showerror('Error', 'Error Button Pressed!')