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

Method resizeEvent

QLabel/QtNinePatch2.py:38–42  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

36 self.setPixmap(pixmap)
37
38 def resizeEvent(self, event):
39 super(Label, self).resizeEvent(event)
40 pixmap = QtNinePatch2.createPixmapFromNinePatchImage(
41 self.image, self.width(), self.height())
42 self.setPixmap(pixmap)
43
44
45app = 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