From 93f62789ccfa723006b6abf2291dd5d5b8505a40 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 Oct 2019 19:45:34 -0700 Subject: [PATCH] Call MSWSetEmulationLevel --- samples/html2/webview_sample.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/html2/webview_sample.py b/samples/html2/webview_sample.py index 420a87f4..abd268f4 100644 --- a/samples/html2/webview_sample.py +++ b/samples/html2/webview_sample.py @@ -47,6 +47,12 @@ class WebViewPanel(wx.Panel): sizer = wx.BoxSizer(wx.VERTICAL) btnSizer = wx.BoxSizer(wx.HORIZONTAL) + + # Ensure that a newer version of the IE/Edge control will be used + # on Windows + webview.WebView.MSWSetEmulationLevel() + + # Create the webView control self.wv = webview.WebView.New(self) # Register a handler for the memory: file system