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

Method close

brainworkshop.py:2334–2340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2332 Menu.__init__(self, options, vals, title=_('Choose images to use for the Image n-back tasks.'))
2333
2334 def close(self):
2335 while cfg.IMAGE_SETS:
2336 cfg.IMAGE_SETS.remove(cfg.IMAGE_SETS[0])
2337 for k,v in self.new_sets.items():
2338 if v: cfg.IMAGE_SETS.append(k)
2339 Menu.close(self)
2340 update_all_labels()
2341
2342 def select(self):
2343 Menu.select(self)

Callers

nothing calls this directly

Calls 2

update_all_labelsFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected