py310 support: explicit cast to int

This commit is contained in:
Michael Leslie 2021-12-13 18:52:59 -08:00
parent aed39272af
commit b23064a54d

View File

@ -388,7 +388,7 @@ class ProceedQuestion(QWidget):
def animated_paint(self, painter):
top = (1 - self._show_fraction) * self.height()
painter.drawPixmap(0, top, self.rendered_pixmap)
painter.drawPixmap(0, int(top), self.rendered_pixmap)
def paint_background(self, painter):
br = 12 # border_radius