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

Method update

brainworkshop.py:2776–2790  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2774 anchor_x='center', anchor_y='center', batch=batch)
2775 self.update()
2776 def update(self):
2777 if mode.started and mode.hide_text:
2778 self.label.text = ''
2779 else:
2780 str_list = []
2781 if cfg.JAEGGI_MODE and not CLINICAL_MODE:
2782 str_list.append(_('Jaeggi mode: '))
2783 if mode.manual:
2784 str_list.append(_('Manual mode: '))
2785 str_list.append(mode.long_mode_names[mode.mode] + ' ')
2786 if cfg.VARIABLE_NBACK:
2787 str_list.append(_('V. '))
2788 str_list.append(str(mode.back))
2789 str_list.append(_('-Back'))
2790 self.label.text = ''.join(str_list)
2791
2792 def flash(self):
2793 pyglet.clock.unschedule(gameModeLabel.unflash)

Callers 3

__init__Method · 0.95
flashMethod · 0.95
unflashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected