From 82011de966f95afa88ec9e11e0ce86cbd04d5fc0 Mon Sep 17 00:00:00 2001 From: tassaron Date: Sun, 18 Jun 2017 21:49:00 -0400 Subject: able to create components from commandline TODO: make components respond to argument --- core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core.py') 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): -- cgit v1.2.3