Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def OnFocusIn(self, widget, data):
# This function is currently not called by any of code, but if you would like
# for browser to have automatic focus add such line:
# self.mainWindow.connect('focus-in-event', self.OnFocusIn)
cefpython.WindowUtils.OnSetFocus(self.container.get_window().handle, 0, 0, 0)
def on_set_focus(self, event):
"""OS_WIN only."""
cefpython.WindowUtils.OnSetFocus(self.GetHandle(), 0, 0, 0)
event.Skip()
def focusInEvent(self, event):
cefpython.WindowUtils.OnSetFocus(int(self.centralWidget().winIdFixed()), 0, 0, 0)
def OnSetFocus(self, event):
"""OS_WIN only."""
cefpython.WindowUtils.OnSetFocus(self.GetHandle(), 0, 0, 0)
event.Skip()
def OnSetFocus(self, event):
cefpython.WindowUtils.OnSetFocus(self.GetHandleForBrowser(), 0, 0, 0)
def on_set_focus(self, event):
cef.WindowUtils.OnSetFocus(self.Handle, 0, 0, 0)
event.Skip()
def focusInEvent(self, event):
cefpython.WindowUtils.OnSetFocus(int(self.centralWidget().winId()), 0, 0, 0)
def OnSetFocus(self, event):
cefpython.WindowUtils.OnSetFocus(self.GetHandleForBrowser(), 0, 0, 0)