def on_start_all(self): """ BUG: El boton start y stop no cambia. """ id_item_list = [row[0] for row in self.items] api.start_all(id_item_list) stopped_icon = self.icons_dict[cons.STATUS_STOPPED] queue_icon = self.icons_dict[cons.STATUS_QUEUE] for row in self.items: if row[1] == stopped_icon: row[1] = queue_icon
def on_start_all(self, widget): """ BUG: El boton start y stop no cambia. """ iditem_list = self.treeView.get_id_item_list() api.start_all(iditem_list) stopped_icon = self.icons_dict[cons.STATUS_STOPPED] queue_icon = self.icons_dict[cons.STATUS_QUEUE] for row in self.rows_buffer.values(): if row[1] == stopped_icon: row[1] = queue_icon self.get_status() #iniciar update de lista.