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: (app.questions[-1] if len(app.questions) > 0 else app.DEFAULT_QUESTION)[0] if not app.paused else ('Correct!' if app.correct else 'Incorrect!')
color: (0, 0, 0.75, 1) if not app.paused else ((0, 1, 0, 1) if app.correct else (0.5, 0, 0, 1))
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:
GridLayout:
rows: 2
rows: 2
Button:
Button:
...
@@ -108,25 +108,25 @@ ScreenManager:
...
@@ -108,25 +108,25 @@ ScreenManager:
<Screen>:
<Screen>:
canvas.before:
canvas.before:
Color:
Color:
rgba: (1, 1, 1, 1)
rgba: (1.0, 1.0, 1.0, 1.0)
Rectangle:
Rectangle:
pos: self.pos
pos: self.pos
size: self.size
size: self.size
# All labels are blue.
# All labels are blue.
<Label>:
<Label>:
color: (0, 0, 0.75, 1)
color: (0.0, 0.0, 0.75, 1.0)
# All checkboxes are blue.
# All checkboxes are blue.
<CheckBox>:
<CheckBox>:
canvas:
canvas:
Color:
Color:
rgba: (0, 0, 0.75, 1)
rgba: (0.0, 0.0, 0.75, 1.0)
Rectangle:
Rectangle:
source: 'atlas://data/images/defaulttheme/checkbox{radio}{disabled}{on}'.format(radio=('_radio' if self.group else ''), disabled=('_disabled' if self.disabled else ''), on=('_on' if self.active else '_off'))
source: f'atlas://data/images/defaulttheme/checkbox{"_radio" if self.group else ""}{"_disabled" if self.disabled else ""}{"_on" if self.active else "_off"}'