diff options
| author | tassaron | 2017-06-08 20:32:25 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-08 20:32:25 -0400 |
| commit | 4fc73f1e094289b50f828f0a3128d710e1d9ec4c (patch) | |
| tree | cc9f1b633c3f71f1caeed9688b4e9564513976b8 /components | |
| parent | bb1e54b31eb6157ef041764cfccd60484a0e02d8 (diff) | |
rename and delete buttons in preset manager
Diffstat (limited to 'components')
| -rw-r--r-- | components/color.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/components/color.py b/components/color.py index a86927b..11c1b19 100644 --- a/components/color.py +++ b/components/color.py @@ -20,14 +20,14 @@ class Component(__base__.Component): page.lineEdit_color1.setText('%s,%s,%s' % self.color1) page.lineEdit_color2.setText('%s,%s,%s' % self.color2) - btnStyle = "QPushButton { background-color : %s; outline: none; }" \ + btnStyle1 = "QPushButton { background-color : %s; outline: none; }" \ % QColor(*self.color1).name() - btnStyle = "QPushButton { background-color : %s; outline: none; }" \ + btnStyle2 = "QPushButton { background-color : %s; outline: none; }" \ % QColor(*self.color2).name() - page.pushButton_color1.setStyleSheet(btnStyle) - page.pushButton_color2.setStyleSheet(btnStyle) + page.pushButton_color1.setStyleSheet(btnStyle1) + page.pushButton_color2.setStyleSheet(btnStyle2) page.pushButton_color1.clicked.connect(lambda: self.pickColor(1)) page.pushButton_color2.clicked.connect(lambda: self.pickColor(2)) @@ -74,14 +74,14 @@ class Component(__base__.Component): self.page.lineEdit_color1.setText('%s,%s,%s' % pr['color1']) self.page.lineEdit_color2.setText('%s,%s,%s' % pr['color2']) - btnStyle = "QPushButton { background-color : %s; outline: none; }" \ + btnStyle1 = "QPushButton { background-color : %s; outline: none; }" \ % QColor(*pr['color1']).name() - btnStyle = "QPushButton { background-color : %s; outline: none; }" \ + btnStyle2 = "QPushButton { background-color : %s; outline: none; }" \ % QColor(*pr['color2']).name() - self.page.pushButton_color1.setStyleSheet(btnStyle) - self.page.pushButton_color2.setStyleSheet(btnStyle) + self.page.pushButton_color1.setStyleSheet(btnStyle1) + self.page.pushButton_color2.setStyleSheet(btnStyle2) def savePreset(self): return { |
