What I’m trying to do: I am trying to use a while loop so that only part of the function will run until certain criteria is met (this is for a quiz in my website which will progress when a confirm button is pressed)
What I’ve tried and what’s not working: I tried setting a variable, splitting the quiz into several parts that run on certain events, and altering the properties of other objects as an indicator (featured in the code sample below). All of these worked while in the anvil environment, however but upon opening the actual website the website freezes once the while loop begins to run.
Code Sample:
self.quiz1indicator.visible = True
while self.quiz1indicator.visible:
pass
self.quiz1indicator.visible = True