From 7b6318f025c83b736b018c9687586a476d5919a9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 7 Jul 2022 21:08:46 -0400 Subject: [PATCH] Cast slots to `int` before range set --- piker/ui/_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_forms.py b/piker/ui/_forms.py index c6d09594..f62363f3 100644 --- a/piker/ui/_forms.py +++ b/piker/ui/_forms.py @@ -619,7 +619,7 @@ class FillStatusBar(QProgressBar): # color: #19232D; # width: 10px; - self.setRange(0, slots) + self.setRange(0, int(slots)) self.setValue(value)