Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cztomczak opened this issue Mar 4, 2017 · 2 comments
Open

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

cztomczak opened this issue Mar 4, 2017 · 2 comments

Comments

@cztomczak
Copy link
Owner

cztomczak commented Mar 4, 2017

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
@cztomczak cztomczak changed the title Easy to use CefBrowser widget for many popular GUI toolkits Easy to use CefBrowser widgets for many popular GUI toolkits Mar 4, 2017
@fpp-gh
Copy link

fpp-gh commented Jun 24, 2017

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

Repository owner deleted a comment from omerfeyyaz Aug 23, 2017
@techtanic
Copy link

What about PySimpleGUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants