How to use the cefpython3.cefpython.WindowUtils.OnSize function in cefpython3

To help you get started, we’ve selected a few cefpython3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github james-owen-ryan / talktown-testbed / browser.py View on Github external
def OnSize(self, event):
            cefpython.WindowUtils.OnSize(self.GetHandleForBrowser(), 0, 0, 0)
github Splawik / pytigon / pytigon / appdata / plugins / standard / webview / cef / cefcontrol.py View on Github external
def on_size(self, event):
        if not self.browser or self.hidden:
            return
        if platform.system() == "Windows":
            cef.WindowUtils.OnSize(self.Handle, 0, 0, 0)
        else:
            (x, y) = (0, 0)
            (width, height) = event.GetSize()
            self.browser.SetBounds(x, y, width, height)
        self.browser.NotifyMoveOrResizeStarted()
github DeForce / LalkaChat / modules / interface / chromium.py View on Github external
def on_size(self, event):
        """OS_WIN only. Handle the the size event"""
        cefpython.WindowUtils.OnSize(self.GetHandle(), 0, 0, 0)
        event.Skip()
github cztomczak / cefpython / src / windows / deprecated_32bit / pygtk_.py View on Github external
def OnSize(self, widget, sizeAlloc):
        cefpython.WindowUtils.OnSize(self.container.get_window().handle, 0, 0, 0)
github cztomczak / cefpython / examples / wxpython.py View on Github external
def OnSize(self, _):
        if not self.browser:
            return
        if WINDOWS:
            cef.WindowUtils.OnSize(self.browser_panel.GetHandle(),
                                   0, 0, 0)
        elif LINUX:
            (x, y) = (0, 0)
            (width, height) = self.browser_panel.GetSize().Get()
            self.browser.SetBounds(x, y, width, height)
        self.browser.NotifyMoveOrResizeStarted()
github RimoChan / Librian / librian / librian_util / wxcef.py View on Github external
def OnSize(self, _):
        if not self.browser:
            return
        if WINDOWS:
            cef.WindowUtils.OnSize(self.browser_panel.GetHandle(),
                                   0, 0, 0)
        elif LINUX:
            (x, y) = (0, 0)
            (width, height) = self.browser_panel.GetSize().Get()
            self.browser.SetBounds(x, y, width, height)
            self.sw.get_window().move_resize(x,y,width,height)
        self.browser.NotifyMoveOrResizeStarted()