MCPcopy Index your code
hub / github.com/rawpython/remi / onpageshow

Method onpageshow

examples/query_attribute_app.py:29–41  ·  view source on GitHub ↗

WebPage Event that occurs on webpage gets shown

(self, emitter, width, height)

Source from the content-addressed store, hash-verified

27 return self.main_container
28
29 def onpageshow(self, emitter, width, height):
30 """ WebPage Event that occurs on webpage gets shown """
31 super(MyApp, self).onpageshow(emitter, width, height)
32
33 attribute_list = [
34 'id', 'title', 'getBoundingClientRect().width', 'getBoundingClientRect().top']
35 style_property_list = ['width', 'height']
36
37 # If a style property name is identical to an attribute name, call the query function twice
38 # properly specifing the result listener.
39 self.main_container.onquery_client_result.do(
40 lambda emitter, kwargs: print(str(kwargs)))
41 self.main_container.query_client(self, attribute_list, style_property_list)
42
43
44if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

query_clientMethod · 0.80
doMethod · 0.45

Tested by

no test coverage detected