(self, *args, **kwargs)
| 52 | class 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() |