Skip to content

Commit

Permalink
controller: Fix unexpected type 'float'
Browse files Browse the repository at this point in the history
Fixes #361. Enables compatibility with Python 3.10 and newer.
  • Loading branch information
lah7 committed Oct 11, 2021
1 parent fb83845 commit 1543602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylib/controller/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _create_control_slider(self, device, zone, option):

# Qt bug: Ticks won't appear with stylesheet
slider.setTickPosition(QSlider.TicksBelow)
slider.setTickInterval(option["max"] / 10)
slider.setTickInterval(int(option["max"] / 10))

label = QLabel()
label.setText(str(option["value"]) + option["suffix"])
Expand Down

0 comments on commit 1543602

Please sign in to comment.