from tkinter import *
root=Tk()
root.title("Hancie e-Learning Studio")
root.geometry("500x300")
#### animation section
index = 0
txt = [' ','|',' ','|',' ','|','W|','WE|','WEL|','WELC|','WELCO|','WELCOM|','WELCOME|','WELCOME |','WELCOME U|','WELCOME US|'
,'WELCOME USE|','WELCOME USER|']
def start_animation():
global index
if not index+1 > len(txt):
text_animation_lbl.config(text=txt[index])
index += 1
root.after(250, start_animation)
else:
index = 0
text_animation_lbl.config(text='|')
root.after(250,start_animation)
text_animation_lbl = Label(root,text="|",font= ("verdana",24,"bold"))
text_animation_lbl.grid(row=0,column=0)
root.after(250,start_animation)
root.mainloop()