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

Method resizeEvent

examples/qt.py:280–288  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

278 self.browser.NotifyMoveOrResizeStarted()
279
280 def resizeEvent(self, event):
281 size = event.size()
282 if self.browser:
283 if WINDOWS:
284 WindowUtils.OnSize(self.getHandle(), 0, 0, 0)
285 elif LINUX:
286 self.browser.SetBounds(self.x, self.y,
287 size.width(), size.height())
288 self.browser.NotifyMoveOrResizeStarted()
289
290
291class CefApplication(QApplication):

Callers

nothing calls this directly

Calls 3

getHandleMethod · 0.95
sizeMethod · 0.80
OnSizeMethod · 0.45

Tested by

no test coverage detected