设置文字颜色
(self)
| 78 | self.sender().setIcon(QIcon(pix)) |
| 79 | |
| 80 | def chooseTextColor(self): |
| 81 | """设置文字颜色""" |
| 82 | col = QColorDialog.getColor(self.bar.textColor, self) |
| 83 | if not col.isValid(): |
| 84 | return |
| 85 | self.bar.textColor = col |
| 86 | pix = QPixmap(16, 16) |
| 87 | pix.fill(col) |
| 88 | self.sender().setIcon(QIcon(pix)) |
| 89 | |
| 90 | def chooseWaterColor1(self): |
| 91 | """设置波浪1颜色""" |