From f85a526ed80e1810cda342becb52cf8c0ccd6569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=98=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Fri, 15 Jul 2022 10:09:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20float=20=D0=B2=20i?= =?UTF-8?q?nt:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Исправлена ошибка при вызове `cl-console-gui-install` --- pym/consolegui/application/more.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/consolegui/application/more.py b/pym/consolegui/application/more.py index d5974e4..c9904fd 100644 --- a/pym/consolegui/application/more.py +++ b/pym/consolegui/application/more.py @@ -46,12 +46,12 @@ def get_system_rgb(obj, pallete_type): def dpivalue(size): try: - return size * qt.QApplication.screens()[0].logicalDotsPerInch() / 96.0; + return int(size * qt.QApplication.screens()[0].logicalDotsPerInch() / 96.0); except BaseException as e: print(str(e)) if isinstance(e, KeyboardInterrupt): raise - return size + return int(size) def alphed(rgbstr, value): # return rgbstr.replace(")", ",%d)"%value)