Skip to content

Commit b7c9614

Browse files
committed
qtvcp -round_gauge: a fix for newer pyqt libraries.
old library would accept floats for ints with QSize New ones require ints
1 parent 348b0d1 commit b7c9614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/python/qtvcp/widgets/round_gauge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create_unit_array(self):
4747
self.qpa[i] = QPointF(x, y)
4848

4949
def paintEvent(self, event):
50-
w = min(event.rect().width(), event.rect().height())
50+
w = int(min(event.rect().width(), event.rect().height()))
5151
painter = QPainter(self)
5252
painter.setRenderHint(painter.Antialiasing)
5353
self.draw_background(painter, event, w)

0 commit comments

Comments
 (0)