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

Method __init__

brainworkshop.py:3207–3215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3205
3206class ThresholdLabel:
3207 def __init__(self):
3208 self.label = pyglet.text.Label(
3209 '',
3210 multiline = True, width = scale_to_width(128),
3211 font_size=calc_fontsize(11),
3212 color=cfg.COLOR_TEXT,
3213 x=from_right_edge(20), y=from_bottom_edge(145),
3214 anchor_x='right', anchor_y='top', batch=batch)
3215 self.update()
3216 def update(self):
3217 if mode.started or mode.manual or CLINICAL_MODE:
3218 self.label.text = ''

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
scale_to_widthFunction · 0.85
calc_fontsizeFunction · 0.85
from_right_edgeFunction · 0.85
from_bottom_edgeFunction · 0.85

Tested by

no test coverage detected