cztomczak / cefpython

Python bindings for the Chromium Embedded Framework (CEF)
Other
3.07k stars 473 forks source link

Easy to use CefBrowser widgets for many popular GUI toolkits #312

Open cztomczak opened 7 years ago

cztomczak commented 7 years ago

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: 1) wxPython 2) wxPhoenix 3) PyQt4 4) PyQt5 5) PySide 6) 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: 1) Tkinter - see this comment 2) PyGObject (GTK 3) - see this comment 3) PyGTK (GTK 2) - this toolkit is not developed anymore since many years

fpp-gh commented 7 years ago

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

techtanic commented 3 years ago

What about PySimpleGUI