mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
py310 support: explicit cast to int
This commit is contained in:
parent
aed39272af
commit
b23064a54d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user