Another `int` required

py3.10_support
Tyler Goodlet 2022-02-07 08:46:38 -05:00
parent f63a7c497d
commit 999d3efdd7
1 changed files with 1 additions and 1 deletions

View File

@ -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(