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

Method __init__

brainworkshop.py:3509–3516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3507
3508class TodayLabel:
3509 def __init__(self):
3510 self.labelTitle = pyglet.text.Label(
3511 '',
3512 font_size=calc_fontsize(9),
3513 color = cfg.COLOR_TEXT,
3514 x=window.width, y=from_top_edge(5),
3515 anchor_x='right', anchor_y='top',width=scale_to_width(280), multiline=True, batch=batch)
3516 self.update()
3517 def update(self):
3518 if mode.started:
3519 self.labelTitle.text = ''

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
calc_fontsizeFunction · 0.85
from_top_edgeFunction · 0.85
scale_to_widthFunction · 0.85

Tested by

no test coverage detected