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

Class LoadHandler

examples/pysdl2.py:472–482  ·  view source on GitHub ↗

Simple handler for loading URLs.

Source from the content-addressed store, hash-verified

470
471
472class LoadHandler(object):
473 """Simple handler for loading URLs."""
474
475 def OnLoadingStateChange(self, is_loading, **_):
476 if not is_loading:
477 logging.info("Page loading complete")
478
479 def OnLoadError(self, frame, failed_url, **_):
480 if not frame.IsMain():
481 return
482 logging.error("Failed to load %s" % failed_url)
483
484
485class RenderHandler(object):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected