aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authortassaron2017-05-28 19:50:29 -0400
committertassaron2017-05-28 19:50:29 -0400
commitce414ff96081d1c32fe04503b855fd04a32e82bb (patch)
treeb82be39c94ce76e10f849546ccdbfc85db522678 /main.py
parent39944a56a860836c62b5358174be9e65bd66dc66 (diff)
turned openPreset button into comboBox to fit a new design
Diffstat (limited to 'main.py')
-rw-r--r--main.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/main.py b/main.py
index 7ddc4f2..d4c12d8 100644
--- a/main.py
+++ b/main.py
@@ -178,13 +178,11 @@ class Main(QtCore.QObject):
self.window.pushButton_listMoveUp.clicked.connect(self.moveComponentUp)
self.window.pushButton_listMoveDown.clicked.connect(self.moveComponentDown)
- '''
- window.lineEdit_visColor.setText('%s,%s,%s' % self.visColor)
- window.pushButton_visColor.clicked.connect(lambda: self.pickColor('vis'))
- btnStyle = "QPushButton { background-color : %s; outline: none; }" % QColor(*self.visColor).name()
- window.pushButton_visColor.setStyleSheet(btnStyle)
- window.lineEdit_visColor.textChanged.connect(self.drawPreview)
- '''
+ self.window.pushButton_savePreset.clicked.connect(self.openSavePresetDialog)
+ self.window.comboBox_openPreset.currentIndexChanged.connect( \
+ lambda _: self.openPreset(self.window.comboBox_openPreset.currentIndex())
+ )
+
self.drawPreview()
window.show()
@@ -353,6 +351,12 @@ class Main(QtCore.QObject):
self.window.listWidget_componentList.setCurrentRow(row + 1)
self.window.stackedWidget.setCurrentIndex(row + 1)
+ def openSavePresetDialog(self):
+ pass
+
+ def openPreset(self, comboBoxIndex):
+ pass
+
def LoadDefaultSettings(self):
self.resolutions = [