def on_key_release(self, widget, event): if len(widget.get_text()) > 1: self.pkg_store.clear() XPM = Gtk.gdk.pixbuf_new_from_xpm_data(softwareXpm()) for line in pkgsearch(widget.get_text()): software = line.partition(' ')[0].strip() # version = liste[1] comment = line.partition(' ')[2].strip() print comment self.pkg_store.append([XPM, software, comment])
def selection_Category(self, tree_selection): (model, pathlist) = tree_selection.get_selected_rows() self.pkg_store.clear() path = pathlist[0] tree_iter = model.get_iter(path) value = model.get_value(tree_iter, 1) XPM = Gtk.gdk.pixbuf_new_from_xpm_data(softwareXpm()) for line in packagelist(value): liste = line.split(':') software = liste[0].partition('/')[2] # version = liste[1] comment = liste[1].strip() self.pkg_store.append([XPM, software, comment])