def delete_list(self, btn_obj): db.delete_list_by_id(btn_obj.id) self.ids.lists_panel_id.remove_widget(btn_obj)
def delete_list(self): list_id = db.get_list_id( self.ids.list_name_id.text.replace(lang.get('tap_to_edit'), '')) db.delete_list_by_id(list_id) self.dismiss()