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

Method update

brainworkshop.py:3187–3195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3185 anchor_x='left', anchor_y='top', batch=batch)
3186 self.update()
3187 def update(self):
3188 if mode.started or CLINICAL_MODE:
3189 self.label.text = ''
3190 else:
3191 self.label.text = _('Session:\n%1.2f sec/trial\n%i+%i trials\n%i seconds') % \
3192 (mode.ticks_per_trial / 10.0, mode.num_trials, \
3193 mode.num_trials_total - mode.num_trials,
3194 int((mode.ticks_per_trial / 10.0) * \
3195 (mode.num_trials_total)))
3196 def flash(self):
3197 pyglet.clock.unschedule(sessionInfoLabel.unflash)
3198 self.label.bold = True

Callers 3

__init__Method · 0.95
flashMethod · 0.95
unflashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected