aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
authortassaron2017-06-18 21:49:00 -0400
committertassaron2017-06-18 21:49:00 -0400
commit82011de966f95afa88ec9e11e0ce86cbd04d5fc0 (patch)
treede90ec0ef4f4a2198e89f99567a204cd1e771592 /core.py
parent044fddfa9c5063f61e4a97993efe7cd5b2bae066 (diff)
able to create components from commandline
TODO: make components respond to argument
Diffstat (limited to 'core.py')
-rw-r--r--core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core.py b/core.py
index 5e4071a..2dde464 100644
--- a/core.py
+++ b/core.py
@@ -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):