MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / __init__

Method __init__

brainworkshop.py:3111–3119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3109
3110class 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 = ''

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
from_bottom_edgeFunction · 0.85

Tested by

no test coverage detected