Hi Robin, thanks for working on this. I’m looking forward to using Edge.
I’m having a little trouble though. I’ve installed Edge, and running your demo code below shows Edge is available for me. However, specifying the backend when I call webview.WebView.New(parent, backend=backend)
results in blank views. Setting using backend=webview.WebViewBackendIE
works just fine.
- Windows7
- Edge Version 87.0.664.30 (Official build) beta (64-bit)
- wxPython4.1.1a1.dev5044+6959fd7f-cp37-cp37m-win32.whl
- same issue on wxPython build from Oct 16 as well
Just curious if you have any suggestions? I couldn’t use your wx.html2
demo because of run
installation issues.
# WebView Backends
backends = [
(webview.WebViewBackendEdge, 'WebViewBackendEdge'),
(webview.WebViewBackendIE, 'WebViewBackendIE'),
(webview.WebViewBackendWebKit, 'WebViewBackendWebKit'),
(webview.WebViewBackendDefault, 'WebViewBackendDefault'),
]
webview.WebView.MSWSetEmulationLevel(webview.WEBVIEWIE_EMU_IE11)
# Find an available backend
backend = None
for id, name in backends:
available = webview.WebView.IsBackendAvailable(id)
# print("Backend 'wx.html2.{}' availability: {}\n".format(name, available))
if available and backend is None:
backend = id
print("Using backend: '{}'\n".format(str(backend, 'ascii')))