(self, width, height)
| 121 | |
| 122 | @classmethod |
| 123 | def GetContentAreaRect(self, width, height): |
| 124 | # print("GetContentAreaRect : width:%d height:%d" % (width, height)) |
| 125 | return (QRect(self.ContentArea.x(), self.ContentArea.y(), |
| 126 | (width - (self.Image.width() - 2 - self.ContentArea.width())), |
| 127 | (height - (self.Image.height() - 2 - self.ContentArea.height())))) |
| 128 | |
| 129 | def DrawScaledPart(self, oldRect, newRect, painter): |
| 130 | if (newRect.width() and newRect.height()): |