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

Method __init__

brainworkshop.py:2141–2150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2139
2140class LanguageScreen(Menu):
2141 def __init__(self):
2142 self.languages = languages = [fn for fn in os.listdir(os.path.join('res', 'i18n')) if fn.lower().endswith('mo')]
2143 try:
2144 default = languages.index(cfg.LANGUAGE + '.mo')
2145 except:
2146 default = 0
2147 Menu.__init__(self, options=languages,
2148 title=_("Please select your preferred language"),
2149 choose_once=True,
2150 default=default)
2151 def save(self):
2152 self.select()
2153 Menu.save(self)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected