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

Method __init__

brainworkshop.py:3532–3539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3530
3531class TrialsRemainingLabel:
3532 def __init__(self):
3533 self.label = pyglet.text.Label(
3534 '',
3535 font_size=calc_fontsize(12), bold = True,
3536 color=cfg.COLOR_TEXT,
3537 x=from_right_edge(10), y=from_top_edge(5),
3538 anchor_x='right', anchor_y='top', batch=batch)
3539 self.update()
3540 def update(self):
3541 if (not mode.started) or mode.hide_text:
3542 self.label.text = ''

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
calc_fontsizeFunction · 0.85
from_right_edgeFunction · 0.85
from_top_edgeFunction · 0.85

Tested by

no test coverage detected