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

Method focusInEvent

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

Source from the content-addressed store, hash-verified

210 self.show()
211
212 def focusInEvent(self, event):
213 # This event seems to never get called on Linux, as CEF is
214 # stealing all focus due to Issue #284.
215 if cef.GetAppSetting("debug"):
216 print("[qt.py] CefWidget.focusInEvent")
217 if self.browser:
218 if WINDOWS:
219 WindowUtils.OnSetFocus(self.getHandle(), 0, 0, 0)
220 self.browser.SetFocus(True)
221
222 def focusOutEvent(self, event):
223 # This event seems to never get called on Linux, as CEF is

Callers

nothing calls this directly

Calls 2

getHandleMethod · 0.95
OnSetFocusMethod · 0.45

Tested by

no test coverage detected