aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorBrianna2017-05-29 20:47:07 -0400
committerGitHub2017-05-29 20:47:07 -0400
commit369ac2a855c70b717c5b8a94ce5e97e1e4a0fc59 (patch)
treed765bd8753524dc2fd5109b1d9183c76ca49b15d /main.py
parent37fd68fd2bd2ad81bf1b08d923df2a0934bee6b8 (diff)
parentd1852619dfa22833cc5fd13af17afe031ee08ece (diff)
Merge branch 'feature-newgui' into feature-newgui-lesstextrenders
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 5bb10f5..474ab29 100644
--- a/main.py
+++ b/main.py
@@ -158,7 +158,7 @@ class Main(QtCore.QObject):
self.modules = self.findComponents()
for component in self.modules:
- window.comboBox_componentSelection.addItem(component.__doc__)
+ window.comboBox_componentSelection.addItem(component.Component.__doc__)
window.listWidget_componentList.clicked.connect(lambda _: self.changeComponentWidget())
self.selectedComponents = []
@@ -297,8 +297,8 @@ class Main(QtCore.QObject):
def addComponent(self, moduleIndex):
index = len(self.pages)
- self.window.listWidget_componentList.addItem(self.modules[moduleIndex].__doc__)
self.selectedComponents.append(self.modules[moduleIndex].Component())
+ self.window.listWidget_componentList.addItem(self.selectedComponents[-1].__doc__)
self.pages.append(self.selectedComponents[-1].widget(self))
self.window.listWidget_componentList.setCurrentRow(index)
self.window.stackedWidget.addWidget(self.pages[-1])