My application doesn’t show the frame. I’m using a system with controllers.
/questions/7546050/switch-between-two-frames-in-tkinter
In my application, I have a function that takes a long time to execute. I want to show a loading screen while it’s running. My program is working, but it’s not showing the frame “AnimationWindow”. This is weird because when I call the frame in other ways it works.
def anim():
self.controller.show_frame("AnimationWindow")
while True:
if self.l[0]:
break
time.sleep(0.01)
def start_stream(self,data):
id=self.add_nameFrame()
self.l=[False]
threading.Thread(target=my_func,daemon=True).start()
self.anim()
lll is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.