(self)
| 228 | self.browser.SetFocus(False) |
| 229 | |
| 230 | def embedBrowser(self): |
| 231 | if (PYSIDE2 or PYQT5) and LINUX: |
| 232 | # noinspection PyUnresolvedReferences |
| 233 | self.hidden_window = QWindow() |
| 234 | window_info = cef.WindowInfo() |
| 235 | rect = [0, 0, self.width(), self.height()] |
| 236 | window_info.SetAsChild(self.getHandle(), rect) |
| 237 | self.browser = cef.CreateBrowserSync(window_info, |
| 238 | url="https://www.google.com/") |
| 239 | self.browser.SetClientHandler(LoadHandler(self.parent.navigation_bar)) |
| 240 | self.browser.SetClientHandler(FocusHandler(self)) |
| 241 | |
| 242 | def getHandle(self): |
| 243 | if self.hidden_window: |
no test coverage detected