Access to Devtools in html2.Webview

I just modified the Webview example in the wxPython Demo by adding the following line after line 48:

            self.wv.EnableAccessToDevTools()

I then saved the change and ran the modified code.

I noticed that when I right-clicked on the web page, there was now an extra option “Inspect Element”. When I selected that option, the inspector panel appeared at the bottom of the Webview control.

Here is a stand-alone version of the modified example: HTML2_WebView.py (5.6 KB)