You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However window size is not scaled during window creation, thus initial window size will be small on High DPI devices. The solution is to call cef.DpiAware.CalculateWindowSize(WIDTH, HEIGHT) and pass these new units to wx.Frame.__init__. Currently there is a bug and cef.DpiAware.CalculateWindowSize throws an error, this needs to be fixed in Issue #398. Temporarily you could use pywin32/ctypes extensions to get system dpi settings, this would require translating this C++ code to a Python equivalent:
New window size should not exceed desktop work area (area without the taskbar etc). This working area can be fetched using wx.GetClientDisplayRect().Get().
The text was updated successfully, but these errors were encountered:
wxpython.py example enables High DPI support on Windows with this code:
However window size is not scaled during window creation, thus initial window size will be small on High DPI devices. The solution is to call
cef.DpiAware.CalculateWindowSize(WIDTH, HEIGHT)
and pass these new units towx.Frame.__init__
. Currently there is a bug andcef.DpiAware.CalculateWindowSize
throws an error, this needs to be fixed in Issue #398. 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
New window size should not exceed desktop work area (area without the taskbar etc). This working area can be fetched using wx.GetClientDisplayRect().Get().
The text was updated successfully, but these errors were encountered: