-
-
Notifications
You must be signed in to change notification settings - Fork 480
Closed
Description
DpiAware.GetSystemDpi error
Error:
File "dpi_aware_win.pyx", line 26, in cefpython_py27.DpiAware.GetSystemDpi
TypeError: tuple() takes at most 1 argument (2 given)
Source code:
return tuple(dpix, dpiy)
This should replaced with:
return (dpix, dpiy)
Temporarily you could use pywin32/ctypes extensions to get system dpi settings, this would require translating this C++ code to a Python equivalent:
cefpython/src/client_handler/dpi_aware.cpp
Line 129 in 824d7ce
void GetSystemDpi(int* dpix, int* dpiy) { |
Issue #399 is blocked by this issue.
Expose DpiAware.Scale
Additionally, it should be fixed how CalculateWindowSize
behaves. Currently it only allows for sizes that are factor of 0.25 when scaling (1.0, 1.25, 1.5, etc). In Windows 10 you can set custom scaling to for example "132%" and it should scale window size exactly by 132%.