设置波浪2颜色
(self)
| 98 | self.sender().setIcon(QIcon(pix)) |
| 99 | |
| 100 | def chooseWaterColor2(self): |
| 101 | """设置波浪2颜色""" |
| 102 | col = QColorDialog.getColor(self.bar.waterColor2, self) |
| 103 | if not col.isValid(): |
| 104 | return |
| 105 | self.bar.waterColor2 = col |
| 106 | pix = QPixmap(16, 16) |
| 107 | pix.fill(col) |
| 108 | self.sender().setIcon(QIcon(pix)) |
| 109 | |
| 110 | def setRandomValue(self): |
| 111 | """设置随机0-100值,并停止自增""" |