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

Method DrawConstPart

QLabel/Lib/NinePatch.py:137–141  ·  view source on GitHub ↗
(self, oldRect, newRect, painter)

Source from the content-addressed store, hash-verified

135 0, 0, newRect.width(), newRect.height())
136
137 def DrawConstPart(self, oldRect, newRect, painter):
138 # print("DrawConstPart oldRect:{oldRect} newRect:{newRect}".format(oldRect = oldRect, newRect = newRect))
139 img = self.Image.copy(oldRect)
140 painter.drawImage(newRect.x(), newRect.y(), img, 0,
141 0, newRect.width(), newRect.height())
142
143 def IsColorBlack(self, color):
144 r = qRed(color)

Callers 1

UpdateCachedImageMethod · 0.95

Calls 4

yMethod · 0.80
xMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected