def on_leave(self, event):
    event.widget.configure(background='white')
if __name__ == '__main__':
    root = tk.Tk()
view = Example()
view.pack(side='top', fill='both', expand=True)
root.mainloop()
How to bind multiple widgets with one "bind" in Tkinter?