def refresh_data (self, islocked): if islocked: return self.store.clear () self.vars[1].clear_all () self.vars[15].clear_all () for y in utils.get ('select * from vasca'): self.vars[1].append_text (y[3]) self.filter_menu.append (gtk.CheckMenuItem (y[3])) for y in utils.get ('select * from test'): self.store.append ([y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], y[10], y[11], y[12], y[13], y[14], y[15], y[16], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2], gcolor[2]]) # Riempo con i limiti for y in impostazioni.get_names_of_collections (): self.vars[15].append_text (y) mod = self.view.get_model () it = mod.get_iter_first () while it != None: self._check_iterator (mod, it) it = mod.iter_next (it)
def _populate_combo (self): self.combo.append_text (_("Nessuna base")) for i in impostazioni.get_names_of_collections (): self.combo.append_text (i) self.store.append ([i])