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

Method chooseTextColor

QProgressBar/WaterProgressBar.py:80–88  ·  view source on GitHub ↗

设置文字颜色

(self)

Source from the content-addressed store, hash-verified

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颜色"""

Callers

nothing calls this directly

Calls 1

setIconMethod · 0.80

Tested by

no test coverage detected