MCPcopy Index your code
hub / github.com/PyQt5/PyQt / chooseWaterColor2

Method chooseWaterColor2

QProgressBar/WaterProgressBar.py:100–108  ·  view source on GitHub ↗

设置波浪2颜色

(self)

Source from the content-addressed store, hash-verified

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值,并停止自增"""

Callers

nothing calls this directly

Calls 1

setIconMethod · 0.80

Tested by

no test coverage detected