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

Method __init__

QPushButton/RubberBandButton.py:54–60  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

52class RubberBandButton(QPushButton):
53
54 def __init__(self, *args, **kwargs):
55 self._bgcolor = QColor(kwargs.pop("bgcolor", Qt.green))
56 super(RubberBandButton, self).__init__(*args, **kwargs)
57 self.setFlat(True)
58 self.setCursor(Qt.PointingHandCursor)
59 self._width = 0
60 self._height = 0
61
62 def paintEvent(self, event):
63 self._initAnimate()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected