MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

23 bgChanged = pyqtSignal(str, str)
24
25 def __init__(self):
26 super(Window, self).__init__("QSS")
27 self._textColor = ""
28 self._backgroundColor = ""
29 self.clicked.connect(self.onClick)
30 self.bgChanged.connect(lambda old, new: print(
31 "old bg color", old, "new bg color", new))
32
33 def onClick(self):
34 print("textColor", self._textColor)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected