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)