from tkinter import * root=Tk() def function1(): L=Label(root,text="Loading...").pack() for i in range(10000): L1=Label(root,text=str(i**2)