How can I stop raising event in Tkinter?,root.mainloop()