Skip to content
Dominique B edited this page Feb 2, 2016 · 2 revisions

WindowInfo class

This class is passed to functions: cefpython.CreateBrowserSync(), LifespanHandler.OnBeforePopup().

To instantiate this class call: cefpython.WindowInfo().

void SetAsChild(int parentWindowHandle, list windowRect=None)

windowRect param is optional on Windows. On Linux & Mac it is required. Example value: [left, top, right, bottom].

This is the method you want to call in most cases.

void SetAsPopup(int parentWindowHandle, string windowName)

Available only on Windows.

void SetAsOffscreen(int parentWindowHandle)

Available in CEF 1 only on Windows & Mac.

Call this method to disable window rendering and to use RenderHandler. See the Panda3D / Kivy examples.

You can pass 0 to parentWindowHandle, but then some things like context menus and plugins may not display correctly.

void SetTransparentPainting(bool transparentPainting)

This method is intended for use with off-screen rendering. (not sure if it works with windowed rendering)

Clone this wiki locally