Skip to content
Snippets Groups Projects
Commit d2b041a5 authored by cperez12's avatar cperez12
Browse files

Will now restart app after 5 questions

parent fef8fe47
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,10 @@ class QuizzerApp(App):
self.score += 1
self.total_answered += 1
print(f'{self.total_answered}')
if self.total_answered == 5:
self.score = 0
self.total_answered = 0
Clock.schedule_once(lambda delta: self.unpause(), PAUSE_TIME)
def unpause(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment