(self)
| 2877 | |
| 2878 | class 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() |
nothing calls this directly
no test coverage detected