how can i stop raising event in tkinter?,root.mainloop()