From 999d3efdd7b9af0b3f751d603663d47580fdd413 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 7 Feb 2022 08:46:38 -0500 Subject: [PATCH] Another `int` required --- 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 1ee37bea..1f1a7cd5 100644 --- a/piker/ui/_forms.py +++ b/piker/ui/_forms.py @@ -105,7 +105,7 @@ class Edit(QLineEdit): # TODO: somehow this math ain't right? chars_w_pxs = dpi_font.boundingRect('0'*self._chars).width() scale = round(dpi_font.scale()) - psh.setWidth(chars_w_pxs * scale) + psh.setWidth(int(chars_w_pxs * scale)) return psh def set_width_in_chars(