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

Added score

parent b56b9a58
No related branches found
No related tags found
Loading
......@@ -2,7 +2,7 @@ from random import shuffle
from kivy.app import App
from kivy.clock import Clock
from kivy.properties import BooleanProperty, ListProperty
from kivy.properties import BooleanProperty, ListProperty, NumericProperty
from kivy.modules import inspector
from kivy.core.window import Window
......@@ -75,6 +75,7 @@ class QuizzerApp(App):
questions = ListProperty([])
paused = BooleanProperty(False)
correct = BooleanProperty(False)
score = NumericProperty(0)
def build(self):
inspector.create_inspector(Window, self)
......
......@@ -80,7 +80,10 @@ ScreenManager:
root.transition.direction = 'right'
root.current = 'settings'
Label:
text: 'Score: 100/100'
text: f'{app.score}'
Label:
text: 'Score: 0/100'
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