cefpython
cefpython copied to clipboard
Easy to use CefBrowser widgets for many popular GUI toolkits
Currently PyQt / PySide / wxPython examples are quite big. It got a lot better since v31, but it's still not good. We should provide easy to use CefBrowser widgets for these toolkits, so that you can embed CefBrowser in just a few lines of code. If possible make it just one line - Initialize could be called during creation of CefBrowser automatically and Shutdown could be called with os.atexit.
There was a cefpython3.wx package available in v31, that provided such functionality, but it was disabled in v50+ series, as it needs changes to make it work with latest CEF. Issue #301 is to fix that.
CefBrowser widgets should be created for:
- wxPython
- wxPhoenix
- PyQt4
- PyQt5
- PySide
- PySide2
Packages should be named: cefpython3.wxpython, cefpython3.wxphoenix, cefpython3.pyqt4, etc.
For Kivy there is already CefBrowser widget in garden.cefpython maintained by Rentouch: https://github.com/allestuetsmerweh/garden.cefpython
There are no plans to provide easy to use CefBrowser widgets for these toolkits:
- Tkinter - see this comment
- PyGObject (GTK 3) - see this comment
- PyGTK (GTK 2) - this toolkit is not developed anymore since many years
Hi, I just discovered CEFPython and it looks great, but I certainly agree with this issue's goal !
I have an existing wxpython
(classic) app that uses several tabs, one of them being an embedded browser.
Currently it uses the old, slow and ugly wx.html2.WebView
(IE, eeek :-)
I am looking at replacing that panel with a CEF browser, but as the example is a full standalone app, I have a hard time understanding what to take out, and what to keep, to embed it as a panel in a tab...
I do hope you can find some time to achieve your goal, as these "widgets" will be of great use in upgrading apps using older solutions !
TIA, FP
What about PySimpleGUI