diff --git a/source/frontend/patchcanvas/canvasport.py b/source/frontend/patchcanvas/canvasport.py index 1e6a3af724..b91af4aea4 100644 --- a/source/frontend/patchcanvas/canvasport.py +++ b/source/frontend/patchcanvas/canvasport.py @@ -21,7 +21,7 @@ from math import floor -from PyQt5.QtCore import qCritical, Qt, QLineF, QPointF, QRectF, QTimer +from PyQt5.QtCore import qCritical, QT_VERSION, Qt, QLineF, QPointF, QRectF, QTimer from PyQt5.QtGui import QCursor, QFont, QFontMetrics, QPainter, QPainterPath, QPen, QPolygonF from PyQt5.QtWidgets import QGraphicsItem, QMenu diff --git a/source/frontend/widgets/pixmapdial.py b/source/frontend/widgets/pixmapdial.py index a3ae9a12d0..ad6b87f50c 100644 --- a/source/frontend/widgets/pixmapdial.py +++ b/source/frontend/widgets/pixmapdial.py @@ -26,6 +26,7 @@ from PyQt5.QtWidgets import QDial from .commondial import CommonDial +from carla_shared import fontMetricsHorizontalAdvance # --------------------------------------------------------------------------------------------------------------------- # Widget Class diff --git a/source/frontend/widgets/scalabledial.py b/source/frontend/widgets/scalabledial.py index 966cef8d42..b7b2cb1499 100644 --- a/source/frontend/widgets/scalabledial.py +++ b/source/frontend/widgets/scalabledial.py @@ -26,6 +26,7 @@ from PyQt5.QtSvg import QSvgWidget from .commondial import CommonDial +from carla_shared import fontMetricsHorizontalAdvance # --------------------------------------------------------------------------------------------------------------------- # Widget Class