Beispiel #1
0
 def add_expansion_panel(self, card):
     content = KitchenSinkExpansionPanelContent()
     card.add_widget(
         MDExpansionPanel(
             icon=f"{os.environ['KITCHEN_SINK_ASSETS']}avatar.png",
             content=content,
             panel_cls=MDExpansionPanelOneLine(text="KivyMD 0.104.1"),
         ))
Beispiel #2
0
 def add_expansion_panel(self, card, box):
     content = KitchenSinkExpansionPanelContent()
     card.add_widget(
         MDExpansionPanel(
             on_open=lambda x, y: self.panel_open(box, content),
             on_close=lambda x, y: self.panel_close(box, content),
             icon=f"{os.environ['KITCHEN_SINK_ASSETS']}avatar.png",
             content=content,
             panel_cls=MDExpansionPanelOneLine(text="KivyMD v.0.102.1"),
         )
     )