(self)
| 3109 | |
| 3110 | class ArithmeticAnswerLabel: |
| 3111 | def __init__(self): |
| 3112 | self.answer = [] |
| 3113 | self.negative = False |
| 3114 | self.decimal = False |
| 3115 | self.label = pyglet.text.Label( |
| 3116 | '', |
| 3117 | x=window.width/2 - 40, y=from_bottom_edge(30), |
| 3118 | anchor_x='left', anchor_y='center', batch=batch) |
| 3119 | self.update() |
| 3120 | def update(self): |
| 3121 | if not 'arithmetic' in mode.modalities[mode.mode] or not mode.started: |
| 3122 | self.label.text = '' |
nothing calls this directly
no test coverage detected