def __init__(self, view): super(MainWidget, self).__init__(view) navbar = Navbar(view) navbar.use_layout(NavbarLayout()) fixture.element_to_collapse = P(view, text='Peek-A-Boo', css_id='my_id') navbar.layout.add_toggle(fixture.element_to_collapse) self.add_child(fixture.element_to_collapse) self.add_child(navbar)
def __init__(self, view): super().__init__(view) navbar = Navbar(view) navbar.use_layout( NavbarLayout(colour_theme='dark', bg_scheme='dark')) fixture.element_to_collapse = P(view, text='Peek-A-Boo', css_id='my_id') navbar.layout.add_toggle(fixture.element_to_collapse) self.add_child(fixture.element_to_collapse) self.add_child(navbar)