MCPcopy Create free account
hub / github.com/cztomczak/cefpython / embed_browser

Method embed_browser

examples/gtk3.py:114–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 self.window.resize(*self.window.get_default_size())
113
114 def embed_browser(self):
115 window_info = cef.WindowInfo()
116 # TODO: on Mac pass rect[x, y, width, height] to SetAsChild
117 window_info.SetAsChild(self.get_handle())
118 self.browser = cef.CreateBrowserSync(window_info,
119 url="https://www.google.com/")
120
121 def on_configure(self, *_):
122 if self.browser:

Callers 1

on_activateMethod · 0.95

Calls 2

get_handleMethod · 0.95
SetAsChildMethod · 0.45

Tested by

no test coverage detected