MCPcopy
hub / github.com/PyQt5/PyQt / resizeEvent

Method resizeEvent

QLabel/QtNinePatch.py:37–41  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

35 self.setPixmap(pixmap)
36
37 def resizeEvent(self, event):
38 super(Label, self).resizeEvent(event)
39 pixmap = QtNinePatch.createPixmapFromNinePatchImage(
40 self.image, self.width(), self.height())
41 self.setPixmap(pixmap)
42
43
44app = QApplication(sys.argv)

Callers

nothing calls this directly

Calls 3

widthMethod · 0.45
heightMethod · 0.45
setPixmapMethod · 0.45

Tested by

no test coverage detected