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

Method OnSize

examples/wxpython.py:189–199  ·  view source on GitHub ↗
(self, _)

Source from the content-addressed store, hash-verified

187 self.browser.SetFocus(True)
188
189 def OnSize(self, _):
190 if not self.browser:
191 return
192 if WINDOWS:
193 cef.WindowUtils.OnSize(self.browser_panel.GetHandle(),
194 0, 0, 0)
195 elif LINUX:
196 (x, y) = (0, 0)
197 (width, height) = self.browser_panel.GetSize().Get()
198 self.browser.SetBounds(x, y, width, height)
199 self.browser.NotifyMoveOrResizeStarted()
200
201 def OnClose(self, event):
202 print("[wxpython.py] OnClose called")

Callers 5

test_mainMethod · 0.45
on_vbox_size_allocateMethod · 0.45
moveEventMethod · 0.45
resizeEventMethod · 0.45
on_size_allocateMethod · 0.45

Calls 1

GetMethod · 0.45

Tested by 1

test_mainMethod · 0.36