| 1648 | EVENT_ONRESIZE = 'onresize' |
| 1649 | |
| 1650 | def __init__(self, *args, **kwargs): |
| 1651 | super(BODY, self).__init__(*args, _type='body', **kwargs) |
| 1652 | loading_anim = Widget() |
| 1653 | loading_anim.css_margin = None |
| 1654 | loading_anim.identifier = "loading-animation" |
| 1655 | loading_container = Container(children=[loading_anim], style={'display':'none'}) |
| 1656 | loading_container.css_margin = None |
| 1657 | loading_container.identifier = "loading" |
| 1658 | |
| 1659 | self.append(loading_container) |
| 1660 | |
| 1661 | @decorate_set_on_listener("(self, emitter)") |
| 1662 | @decorate_event_js("""remi.sendCallback('%(emitter_identifier)s','%(event_name)s');""") |