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

Method __init__

brainworkshop.py:2879–2890  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2877
2878class TitleMessageLabel:
2879 def __init__(self):
2880 self.label = pyglet.text.Label(
2881 _('Brain Workshop'),
2882 #multiline = True, width = window.width // 2,
2883 font_size=calc_fontsize(32), bold = True, color = cfg.COLOR_TEXT,
2884 x = width_center(), y = from_top_edge(25),
2885 anchor_x = 'center', anchor_y = 'center')
2886 self.label2 = pyglet.text.Label(
2887 _('Version ') + str(VERSION),
2888 font_size=calc_fontsize(14), bold = False, color = cfg.COLOR_TEXT,
2889 x = width_center(), y = from_top_edge(55),
2890 anchor_x = 'center', anchor_y = 'center')
2891
2892 def draw(self):
2893 self.label.draw()

Callers

nothing calls this directly

Calls 3

calc_fontsizeFunction · 0.85
width_centerFunction · 0.85
from_top_edgeFunction · 0.85

Tested by

no test coverage detected