(self)
| 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: |
no test coverage detected