| 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 | |
| 2993 | class FeedbackLabel: |
| 2994 | def __init__(self, modality, pos=0, total=1): |