Skip to content
Snippets Groups Projects
Commit 4d2a2971 authored by thomaskmatthew's avatar thomaskmatthew
Browse files

The app updates score when a question is right

parent 4a1269df
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,7 @@ class QuizzerApp(App):
self.progress += 1
if self.correct:
self.score += 1
print(f'You got it correct, number of right are: {self.score} out of {QuizzerApp.NUMBER_OF_QUESTION}')
else:
print(f'total number of questions: {self.score} out of {QuizzerApp.NUMBER_OF_QUESTION}')
......
......@@ -87,7 +87,8 @@ ScreenManager:
pos_hint: {'x': 0.1}
size_hint_x: 0.8
Label:
text: f'Score: {app.score}/100'
text: f'Score: {app.score}/5'
text_size: self.size
halign: 'right'
valign: 'middle'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment