text: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[0] if not app.paused else ('Correct!' if app.correct else 'Incorrect!')
text_size: (self.width, None)
halign: 'center'
color: (0.0, 0.0, 0.75, 1.0) if not app.paused else ((0.0, 1.0, 0.0, 1.0) if app.correct else (0.5, 0.0, 0.0, 1.0))
GridLayout:
rows: 2
Button:
text: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[1][0]
disabled: app.paused
on_press: app.answer(self.text)
Button:
text: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[1][1]
disabled: app.paused
on_press: app.answer(self.text)
Button:
text: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[1][2]
disabled: app.paused
on_press: app.answer(self.text)
Button:
text: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[1][3]
disabled: app.paused
on_press: app.answer(self.text)
# All screens are white.
<Screen>:
canvas.before:
Color:
rgba: (1.0, 1.0, 1.0, 1.0)
Rectangle:
pos: self.pos
size: self.size
# All labels are blue.
<Label>:
color: (0.0, 0.0, 0.75, 1.0)
# All checkboxes are blue.
<CheckBox>:
canvas:
Color:
rgba: (0.0, 0.0, 0.75, 1.0)
Rectangle:
source: f'atlas://data/images/defaulttheme/checkbox{"_radio" if self.group else ""}{"_disabled" if self.disabled else ""}{"_on" if self.active else "_off"}'