diff --git a/README.md b/README.md
index 056b3ebaed00a1c437758e0a371ea48f3a67fbc3..cedd9656dd6968c2b4ac8047ed081d488cf3b9ff 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,11 @@ Python 3.
 $ sudo apt-get update
 $ sudo apt-get install python-pyqt5
 ```
+or, for python >= 3.10 :
+```shell
+$ python3 -m pip install PyQt5
+$ python3 -m pip install PyQt5-tools
+```
 **N.B.** Python 3 is now the default interpreter in most recent Linux
 distributions. Do not use Python 2! If unsure, check with:
 ```shell
diff --git a/actuasim/blind.py b/actuasim/blind.py
index 587b9517754fd3949637b53c8244f7f8a9014842..6a8c5336ad6c59227117f6057ec3d83f54279342 100644
--- a/actuasim/blind.py
+++ b/actuasim/blind.py
@@ -98,7 +98,7 @@ class BlindWidget(QWidget):
         if end_value == self.ui.progressBar.value():
             return
         blind_move_speed_ratio = abs(self.ui.progressBar.value()-end_value)/BlindWidget.MAX_PROGRESS_BAR
-        self.animate_progress.setDuration(self.animation_speed*blind_move_speed_ratio)
+        self.animate_progress.setDuration(int(self.animation_speed*blind_move_speed_ratio))
         self.animate_progress.setStartValue(self.ui.progressBar.value())
         self.animate_progress.setEndValue(end_value)
         self.is_moving = True
diff --git a/actuasim/valve.py b/actuasim/valve.py
index 755bd6c16c4f4ab47d793c526f5fc421314cfcdd..5b2cad8139c84d68dbadde47801f0e0ef47b6d18 100644
--- a/actuasim/valve.py
+++ b/actuasim/valve.py
@@ -85,4 +85,4 @@ class ValveWidget(QWidget):
         angle = (ValveWidget.MAX_PROGRESS_BAR - self.position) * to_180_degree + 90
         x = self.line_origin.x() + self.line_length * sin(radians(angle))
         y = self.line_origin.y() + self.line_length * cos(radians(angle))
-        painter.drawLine(self.line_origin, QPoint(x, y))
+        painter.drawLine(self.line_origin, QPoint(int(x), int(y)))