Replace MSWSetEmulationLevel with a version that uses sys.executable.

Call MSWSetEmulationLevel in the demo
This commit is contained in:
Robin Dunn
2019-06-10 20:36:43 -07:00
parent 6dbf2223c3
commit 02bf03a49e
2 changed files with 61 additions and 5 deletions

View File

@@ -18,6 +18,8 @@ class TestPanel(wx.Panel):
sizer = wx.BoxSizer(wx.VERTICAL)
btnSizer = wx.BoxSizer(wx.HORIZONTAL)
self.wv = webview.WebView.New(self)
webview.WebView.MSWSetEmulationLevel(level=webview.WEBVIEWIE_EMU_IE11)
self.Bind(webview.EVT_WEBVIEW_NAVIGATING, self.OnWebViewNavigating, self.wv)
self.Bind(webview.EVT_WEBVIEW_LOADED, self.OnWebViewLoaded, self.wv)