Skip to content
Snippets Groups Projects
Commit b43d525b authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Access a static field through the class, not an instance, in the Python code.

parent 30227ed9
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ class QuizzerApp(App):
self.reshuffle()
def answer(self, answer):
question = self.questions[-1] if len(self.questions) > 0 else self.DEFAULT_QUESTION
question = self.questions[-1] if len(self.questions) > 0 else QuizzerApp.DEFAULT_QUESTION
self.paused = True
self.correct = answer == question[2]
Clock.schedule_once(lambda delta: self.unpause(), PAUSE_TIME)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment