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

Method hide

brainworkshop.py:2651–2666  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2649 self.square.opacity = int(255 * factor)
2650
2651 def hide(self):
2652 if self.visible:
2653 self.label.text = ''
2654 self.variable_label.text = ''
2655 if 'image' in mode.modalities[mode.mode] \
2656 or 'vis1' in mode.modalities[mode.mode] \
2657 or (mode.flags[mode.mode]['multi'] > 1 and cfg.MULTI_MODE == 'image'): # hide pictogram
2658 self.square.batch = None
2659 pyglet.clock.unschedule(self.animate_square)
2660 elif self.vis == 0:
2661 if cfg.OLD_STYLE_SQUARES:
2662 self.square.delete()
2663 else:
2664 self.square.batch = None
2665 pyglet.clock.unschedule(self.animate_square)
2666 self.visible = False
2667
2668# Circles is the 3-strikes indicator in the top left corner of the screen.
2669class Circles:

Callers 2

end_sessionFunction · 0.45
updateFunction · 0.45

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected