While testing one of my applications with wxPython 4.2.1, I noticed that html2.WebView
was failing. It previously worked fine using 4.2.0.
I checked version 4.2.1 of the wxPython demo and the HTML2_WebView
example also fails.
I also checked the webview_sample.py
script in the demo’s samples/html2/
directory and it too fails, with the same error that I get in my application. Here is the traceback:
richardt@Pavilion:~/.../wxPython-demo-4.2.1/samples/html2 $ python3 webview_sample.py
Traceback (most recent call last):
File "/home/richardt/Development/python/tools/wxpython/wxPython-demo-4.2.1/samples/html2/webview_sample.py", line 263, in <module>
main()
File "/home/richardt/Development/python/tools/wxpython/wxPython-demo-4.2.1/samples/html2/webview_sample.py", line 255, in main
frm = SampleFrame(None)
File "/home/richardt/Development/python/tools/wxpython/wxPython-demo-4.2.1/samples/html2/webview_sample.py", line 34, in __init__
pnl = WebViewPanel(self, url)
File "/home/richardt/Development/python/tools/wxpython/wxPython-demo-4.2.1/samples/html2/webview_sample.py", line 58, in __init__
self.wv = webview.WebView.New(self)
NotImplementedError
[All testing done using Python 3.10.6 + wxPython 4.2.1 gtk3 (phoenix) wxWidgets 3.2.2.1 on Linux Mint 21.1].
Is there a different technique needed to use WebView
in version 4.2.1 ?