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

Method on_vbox_size_allocate

examples/gtk2.py:157–166  ·  view source on GitHub ↗
(self, _, data)

Source from the content-addressed store, hash-verified

155 return False
156
157 def on_vbox_size_allocate(self, _, data):
158 if self.browser:
159 x = data.x
160 y = data.y + self.menubar_height
161 width = data.width
162 height = data.height - self.menubar_height
163 if WINDOWS:
164 WindowUtils.OnSize(self.get_window_handle(), 0, 0, 0)
165 elif LINUX:
166 self.browser.SetBounds(x, y, width, height)
167
168 def on_menubar_size_allocate(self, _, data):
169 self.menubar_height = data.height

Callers

nothing calls this directly

Calls 2

get_window_handleMethod · 0.95
OnSizeMethod · 0.45

Tested by

no test coverage detected