Skip to content

Commit

Permalink
Fix input viewer value display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic committed Jun 16, 2019
1 parent 8b1f5ab commit baa75df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gremlin/ui/input_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def set_value(self, value):
:param value new value to show
"""
self.progress.setValue(AxisStateWidget.scale_factor * value)
self.readout.setText("{:d} %".format(int(100 * value)))
self.readout.setText("{:d} %".format(int(round(100 * value))))


class HatWidget(QtWidgets.QWidget):
Expand Down

0 comments on commit baa75df

Please sign in to comment.