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

Method __init__

brainworkshop.py:3225–3233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3223# this controls the "press space to begin session #" text.
3224class SpaceLabel:
3225 def __init__(self):
3226 self.label = pyglet.text.Label(
3227 '',
3228 font_size=calc_fontsize(16),
3229 bold=True,
3230 color=(32, 32, 255, 255),
3231 x=width_center(), y=from_bottom_edge(62),
3232 anchor_x='center', anchor_y='center', batch=batch)
3233 self.update()
3234 def update(self):
3235 if mode.started:
3236 self.label.text = ''

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
calc_fontsizeFunction · 0.85
width_centerFunction · 0.85
from_bottom_edgeFunction · 0.85

Tested by

no test coverage detected