Exemplo n.º 1
0
 def on_btnEditClient_clicked(self, widget, args=[]):
     print 'on_btnEditClient_clicked called with self.%s' % widget.get_name()
     datos = []
     
     for item in range(6):
         it = self.clientesview.getSelectedItem(item)
         datos.append(it)
     
     editclients = dlgClients().EditClient(datos)
 
     if editclients:
         a = 1
         b = 1
         for x in range(5):
             self.clientesview.update(iter, a, editclients[b])
             a += 1
             b += 1
         print editclients
Exemplo n.º 2
0
 def on_btnAddClient_clicked(self, widget, args=[]):
     print 'on_btnAddClient_clicked called with self.%s' % widget.get_name()
     clientes = dlgClients().NewClient(self, widget)
     if clientes != None:
         self.clientesview.prepend(clientes)
         self.clientesview.scroll_to_cell(0)