what is the use of mainloop in Python tkinter code example Example: tkinter mainloop from tkinter import* root=Tk() root.mainloop