from functools import partial as ptofrom Tkinter import Tk, Button, Xfrom tkMessageBox import showinfo, showwarning, showerrorshowerror('Error', 'Error Button Pressed!')