tkinter: how to use after method,root.mainloop()