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

Method __init__

brainworkshop.py:3178–3186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3176# this is the text that shows the seconds per trial and the number of trials.
3177class SessionInfoLabel:
3178 def __init__(self):
3179 self.label = pyglet.text.Label(
3180 '',
3181 multiline = True, width = scale_to_width(128),
3182 font_size=calc_fontsize(11),
3183 color=cfg.COLOR_TEXT,
3184 x=from_left_edge(20), y=from_bottom_edge(145),
3185 anchor_x='left', anchor_y='top', batch=batch)
3186 self.update()
3187 def update(self):
3188 if mode.started or CLINICAL_MODE:
3189 self.label.text = ''

Callers

nothing calls this directly

Calls 5

updateMethod · 0.95
scale_to_widthFunction · 0.85
calc_fontsizeFunction · 0.85
from_left_edgeFunction · 0.85
from_bottom_edgeFunction · 0.85

Tested by

no test coverage detected