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

Method update

brainworkshop.py:2979–2991  ·  view source on GitHub ↗
(self, show=False, advance=False, fallback=False, awesome=False, great=False, good=False, perfect = False)

Source from the content-addressed store, hash-verified

2977 anchor_x='center', anchor_y='center', batch=batch)
2978 self.update()
2979 def update(self, show=False, advance=False, fallback=False, awesome=False, great=False, good=False, perfect = False):
2980 str_list = []
2981 if show and not CLINICAL_MODE and cfg.USE_SESSION_FEEDBACK:
2982 if perfect: str_list.append(_('Perfect score! '))
2983 elif awesome: str_list.append(_('Awesome score! '))
2984 elif great: str_list.append(_('Great score! '))
2985 elif good: str_list.append(_('Not bad! '))
2986 else: str_list.append(_('Keep trying. You\'re getting there! '))
2987 if advance:
2988 str_list.append(_('N-Back increased'))
2989 elif fallback:
2990 str_list.append(_('N-Back decreased'))
2991 self.label.text = ''.join(str_list)
2992
2993class FeedbackLabel:
2994 def __init__(self, modality, pos=0, total=1):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected