CEF views is a GUI framework built into CEF. It can act as a replacement for GUI libraries like PyQt, wxPython, PyGTK, that we could use in Hello World and Tutorial examples for simplicity. It has elements like: display, window, layout, button, panel, scroll view, textfield, among others. See the include/views/ directory for a complete list. Upstream issue #1749 added the views feature.
NOTE: CEF views do not support creating browser synchronously, but CEF Python currently only supports creating browser synchronously - there are a few cases that depend on it. See Marshall's response in this CEF topic: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=15006
UPDATE: Currently as of v64 CEF Views are still not supported on Mac. Only Windows and Linux platforms are supported.
Views framework todo
- In "src/client_handler/x11.cpp" in CefBrowser_GetGtkWindow return NULL when using the Views framework
hello_world.py / tutorial.py
Currently the Hello World / Tutorial examples have a few issues, that CEF views should fix:
offscreen.py
In CefWindow there are even functions for sending mouse/key events, so looks like this could allow creating a simple OSR example. However I don't see a way to draw using paint buffer.
Unit tests (#59)
Figure out if CEF views be of use in unit tests.
CEF views is a GUI framework built into CEF. It can act as a replacement for GUI libraries like PyQt, wxPython, PyGTK, that we could use in Hello World and Tutorial examples for simplicity. It has elements like: display, window, layout, button, panel, scroll view, textfield, among others. See the include/views/ directory for a complete list. Upstream issue #1749 added the views feature.
NOTE: CEF views do not support creating browser synchronously, but CEF Python currently only supports creating browser synchronously - there are a few cases that depend on it. See Marshall's response in this CEF topic: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=15006
UPDATE: Currently as of v64 CEF Views are still not supported on Mac. Only Windows and Linux platforms are supported.
Views framework todo
hello_world.py / tutorial.py
Currently the Hello World / Tutorial examples have a few issues, that CEF views should fix:
offscreen.py
In CefWindow there are even functions for sending mouse/key events, so looks like this could allow creating a simple OSR example. However I don't see a way to draw using paint buffer.
Unit tests (#59)
Figure out if CEF views be of use in unit tests.