WebPage Event that occurs on webpage gets shown
(self, emitter, width, height)
| 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 | |
| 44 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected