(self)
| 2322 | |
| 2323 | class ImageSelect(Menu): |
| 2324 | def __init__(self): |
| 2325 | imagesets = resourcepaths['sprites'] |
| 2326 | self.new_sets = {} |
| 2327 | for image in imagesets: |
| 2328 | self.new_sets[image] = image in cfg.IMAGE_SETS |
| 2329 | options = list(self.new_sets) |
| 2330 | options.sort() |
| 2331 | vals = self.new_sets |
| 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: |