From 10b570f2d29459c4eae669b0895a495a68dac69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ag=C3=BCero?= Date: Tue, 5 Mar 2024 15:35:28 +0100 Subject: [PATCH] Adding files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Agüero --- src/rqt_gauges/bar_gauge.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rqt_gauges/bar_gauge.py b/src/rqt_gauges/bar_gauge.py index 0fe71a4..34b8db8 100644 --- a/src/rqt_gauges/bar_gauge.py +++ b/src/rqt_gauges/bar_gauge.py @@ -1,7 +1,5 @@ -import math - from PyQt5.QtCore import pyqtSignal -from PyQt5.QtWidgets import QProgressBar, QWidget +from PyQt5.QtWidgets import QWidget class BarGauge(QWidget): @@ -57,4 +55,4 @@ def setMaxValue(self, max_value): def paintEvent(self, event): self.bar_gauge.setValue(self.value) - self.value_label.setText(str(raw_value / 100.0)) + self.value_label.setText(str(self.raw_value / 100.0))