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

Method select

brainworkshop.py:2342–2349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2340 update_all_labels()
2341
2342 def select(self):
2343 Menu.select(self)
2344 if not [val for val in self.values.values() if (val and not isinstance(val, Cycler))]:
2345 i = 0
2346 if self.selpos == 0:
2347 i = random.randint(1, len(self.options)-1)
2348 self.values[self.options[i]] = True
2349 self.update_labels()
2350
2351class SoundSelect(Menu):
2352 def __init__(self):

Callers

nothing calls this directly

Calls 2

selectMethod · 0.45
update_labelsMethod · 0.45

Tested by

no test coverage detected