wxPython Support
I'd like to add support to allow wxWebViewChromium to work with wxPython 2.9.5. My initial thought is that:
- A SWIG interface file will need to be written against webview_chromium.h (one for v1, one for v3).
- The wxPython modified version of SWIG is then used to generate the appropriate source.
- The generated c source is compiled during the build process.
One problem is that wxPython does not expose RegisterFactory. In this case, I feel as though the easiest way to deal with this is to add the following code to the SWIG initialization block - which in turn should be added to the python module init, registering wxWebViewBackendChromium on module init:
wxWebView::RegisterFactory(wxWebViewBackendChromium,
wxSharedPtr<wxWebViewFactory>
(new wxWebViewFactoryChromium));
I should be able to attempt this within the next week or so, however, I am concerned about how the multiprocess nature of Chrome is going to interact with Python.
That all sounds reasonable to me, I guess it will be slightly easier when wxWidgets bug #15459 has been resolved.
Sadly, it doesn't look like I'll have time to do this anytime soon. Hopefully my schedule will clear soon.
You can embed CEF browser in wxPython using CEF Python, see wxpython.py example. Disclaimer: I am the author of CEF Python bindings.