turned openPreset button into comboBox to fit a new design
This commit is contained in:
parent
39944a56a8
commit
ce414ff960
18
main.py
18
main.py
|
@ -178,13 +178,11 @@ class Main(QtCore.QObject):
|
||||||
self.window.pushButton_listMoveUp.clicked.connect(self.moveComponentUp)
|
self.window.pushButton_listMoveUp.clicked.connect(self.moveComponentUp)
|
||||||
self.window.pushButton_listMoveDown.clicked.connect(self.moveComponentDown)
|
self.window.pushButton_listMoveDown.clicked.connect(self.moveComponentDown)
|
||||||
|
|
||||||
'''
|
self.window.pushButton_savePreset.clicked.connect(self.openSavePresetDialog)
|
||||||
window.lineEdit_visColor.setText('%s,%s,%s' % self.visColor)
|
self.window.comboBox_openPreset.currentIndexChanged.connect( \
|
||||||
window.pushButton_visColor.clicked.connect(lambda: self.pickColor('vis'))
|
lambda _: self.openPreset(self.window.comboBox_openPreset.currentIndex())
|
||||||
btnStyle = "QPushButton { background-color : %s; outline: none; }" % QColor(*self.visColor).name()
|
)
|
||||||
window.pushButton_visColor.setStyleSheet(btnStyle)
|
|
||||||
window.lineEdit_visColor.textChanged.connect(self.drawPreview)
|
|
||||||
'''
|
|
||||||
self.drawPreview()
|
self.drawPreview()
|
||||||
|
|
||||||
window.show()
|
window.show()
|
||||||
|
@ -353,6 +351,12 @@ class Main(QtCore.QObject):
|
||||||
self.window.listWidget_componentList.setCurrentRow(row + 1)
|
self.window.listWidget_componentList.setCurrentRow(row + 1)
|
||||||
self.window.stackedWidget.setCurrentIndex(row + 1)
|
self.window.stackedWidget.setCurrentIndex(row + 1)
|
||||||
|
|
||||||
|
def openSavePresetDialog(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def openPreset(self, comboBoxIndex):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def LoadDefaultSettings(self):
|
def LoadDefaultSettings(self):
|
||||||
self.resolutions = [
|
self.resolutions = [
|
||||||
|
|
|
@ -217,10 +217,12 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_15">
|
<layout class="QHBoxLayout" name="horizontalLayout_15">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pushButton_openPreset">
|
<widget class="QComboBox" name="comboBox_openPreset">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Open Preset</string>
|
<property name="text">
|
||||||
</property>
|
<string>Open Preset</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
Reference in New Issue