Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
caguero committed Mar 5, 2024
1 parent 10bad3b commit 011fc31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 113 deletions.
111 changes: 0 additions & 111 deletions resource/bar.ui
Original file line number Diff line number Diff line change
Expand Up @@ -167,117 +167,6 @@ p, li { white-space: pre-wrap; }
<bool>true</bool>
</property>
</widget>
<!-- <widget class="QProgressBar" name="bar_gauge">
<property name="geometry">
<rect>
<x>110</x>
<y>126</y>
<width>51</width>
<height>301</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="Highlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Link">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="Highlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Link">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="Highlight">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>145</red>
<green>145</green>
<blue>145</blue>
</color>
</brush>
</colorrole>
<colorrole role="Link">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>255</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="maximum">
<number>100</number>
</property>
<property name="value">
<number>80</number>
</property>
<property name="textVisible">
<bool>false</bool>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="format">
<string>%f%</string>
</property>
</widget> -->
<!-- <widget class="QLabel" name="value_label">
<property name="geometry">
<rect>
<x>25</x>
<y>425</y>
<width>221</width>
<height>61</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>25</pointsize>
</font>
</property>
<property name="text">
<string>0.0</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget> -->

<widget class="Line" name="line_2">
<property name="geometry">
<rect>
Expand Down
4 changes: 2 additions & 2 deletions src/rqt_gauges/bar_gauge.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, parent):
self.valueLabel = QLabel(parent)
self.valueLabel.setGeometry(65, 425, 221, 61)
self.valueLabel.setAlignment(Qt.AlignCenter)
self.valueLabel.setStyleSheet("QLabel{font-size: 25pt;}")
self.valueLabel.setStyleSheet('QLabel{font-size: 25pt;}')
self.valueLabel.setText('0.0')

def updateValue(self, value: float):
Expand All @@ -40,7 +40,7 @@ def updateValue(self, value: float):
self.value = value
self.bar.setValue(int(self.value))
self.valueLabel.setText(str(self.raw_value))

self.update()

def setMinValue(self, min_value):
Expand Down

0 comments on commit 011fc31

Please sign in to comment.