diff options
| author | tassaron | 2017-06-18 21:49:00 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-18 21:49:00 -0400 |
| commit | 82011de966f95afa88ec9e11e0ce86cbd04d5fc0 (patch) | |
| tree | de90ec0ef4f4a2198e89f99567a204cd1e771592 /core.py | |
| parent | 044fddfa9c5063f61e4a97993efe7cd5b2bae066 (diff) | |
able to create components from commandline
TODO: make components respond to argument
Diffstat (limited to 'core.py')
| -rw-r--r-- | core.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,6 +72,7 @@ class Core(): for name in findComponents() ] self.moduleIndexes = [i for i in range(len(self.modules))] + self.compNames = [mod.Component.__doc__ for mod in self.modules] def componentListChanged(self): for i, component in enumerate(self.selectedComponents): @@ -119,8 +120,7 @@ class Core(): self.selectedComponents[i].update() def moduleIndexFor(self, compName): - compNames = [mod.Component.__doc__ for mod in self.modules] - index = compNames.index(compName) + index = self.compNames.index(compName) return self.moduleIndexes[index] def clearPreset(self, compIndex): |
