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

Method __init__

brainworkshop.py:3411–3422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3409# this controls the title of the session history chart.
3410class ChartTitleLabel:
3411 def __init__(self):
3412 self.label = pyglet.text.Label(
3413 '',
3414 font_size=calc_fontsize(10),
3415 bold = True,
3416 color = cfg.COLOR_TEXT,
3417 x = from_right_edge(30),
3418 y = from_top_edge(85),
3419 anchor_x = 'right',
3420 anchor_y = 'top',
3421 batch = batch)
3422 self.update()
3423 def update(self):
3424 if mode.started:
3425 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