diff options
| -rw-r--r-- | main.py | 18 | ||||
| -rw-r--r-- | mainwindow.ui | 10 |
2 files changed, 17 insertions, 11 deletions
@@ -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 = [ diff --git a/mainwindow.ui b/mainwindow.ui index b15cc8e..0dcce91 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -217,10 +217,12 @@ <item> <layout class="QHBoxLayout" name="horizontalLayout_15"> <item> - <widget class="QPushButton" name="pushButton_openPreset"> - <property name="text"> - <string>Open Preset</string> - </property> + <widget class="QComboBox" name="comboBox_openPreset"> + <item> + <property name="text"> + <string>Open Preset</string> + </property> + </item> </widget> </item> <item> |
