def refresh(self): self.clear() self.add(get_all_categories(), self.current) if not self.is_current_valid(): from mtmenu import apps_list apps_list.refresh(None)
def on_press(self, touch): from mtmenu import apps_list apps_list.refresh(self.category) self.parent.select_category(self.category)