Преобразование float в int:

* Исправлена ошибка при вызове `cl-console-gui-install`
master 3.7.2.2
parent 2ae076c14a
commit f85a526ed8

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

Loading…
Cancel
Save