Skip to content

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

Open

Description

@cztomczak

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

Activity

  1. changed the title [-]Easy to use CefBrowser widget for many popular GUI toolkits[/-] [+]Easy to use CefBrowser widgets for many popular GUI toolkits[/+] on Mar 4, 2017
  2. fpp-gh commented on Jun 24, 2017

    @fpp-gh

    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

  3. Repository owner deleted a comment from omerfeyyaz on Aug 23, 2017
  4. techtanic commented on Feb 21, 2021

    @techtanic

    What about PySimpleGUI

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions