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

Class LoadHandler

examples/gtk2.py:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188
189class LoadHandler(object):
190 def __init__(self):
191 self.initial_app_loading = True
192
193 def OnLoadStart(self, browser, **_):
194 if self.initial_app_loading:
195 # Temporary fix for focus issue during initial loading
196 # on Linux (Issue #284).
197 if LINUX:
198 print("[gtk2.py] LoadHandler.OnLoadStart:"
199 " keyboard focus fix (Issue #284)")
200 browser.SetFocus(True)
201 self.initial_app_loading = False
202
203
204if __name__ == '__main__':

Callers 1

embed_browserMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected