Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.47 KB

File metadata and controls

64 lines (39 loc) · 1.47 KB

API categories | API index

WindowInfo (class)

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

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

Table of contents:

Methods

SetAsChild

Parameter Type
parentWindowHandle int
windowRect=None list
Return void

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.

SetAsPopup

Parameter Type
parentWindowHandle int
windowName string
Return void

Available only on Windows.

SetAsOffscreen

Parameter Type
parentWindowHandle int
Return void

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

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

SetTransparentPainting

Parameter Type
transparentPainting bool
Return void

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