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

Class External

examples/tutorial.py:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185class External(object):
186 def __init__(self, browser):
187 self.browser = browser
188
189 def test_multiple_callbacks(self, js_callback):
190 """Test both javascript and python callbacks."""
191 js_print(self.browser, "Python", "test_multiple_callbacks",
192 "Called from Javascript. Will call Javascript callback now.")
193
194 def py_callback(msg_from_js):
195 js_print(self.browser, "Python", "py_callback", msg_from_js)
196 js_callback.Call("String sent from Python", py_callback)
197
198
199if __name__ == '__main__':

Callers 1

set_javascript_bindingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected