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

Method onClick

Demo/CustomProperties.py:33–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 "old bg color", old, "new bg color", new))
32
33 def onClick(self):
34 print("textColor", self._textColor)
35 self.setStyleSheet("qproperty-backgroundColor: %s;" % randint(1, 1000))
36
37 # 方式一、个人觉得比较简洁
38 @pyqtProperty(str, notify=bgChanged)

Callers

nothing calls this directly

Calls 1

randintFunction · 0.85

Tested by

no test coverage detected