Exemplo n.º 1
0
    def on_btnEditFamily_clicked(self, item):
        datos = []
                
        for item in range(3):
            it = self.familiasview.getSelectedItem(item)
            datos.append(it)
        
        editfamilys = dlgFamilys().EditFamily(datos)

        if editfamilys:
            a = 1
            b = 1
            for x in range(2):
                self.familiasview.update(iter, a, editfamilys[b])
                a += 1
                b += 1
            print editfamilys
Exemplo n.º 2
0
 def on_btnNewFamily_clicked(self, widget, args=[]):
     familys = dlgFamilys().NewFamily(self, widget)
     print familys
     if familys != None:
         self.familiasview.prepend(familys)
         self.familiasview.scroll_to_cell(0)