示例#1
0
 def AñadirCliente(self, widget, data=None):
     fila = (self.EB_C_DNI.get_text(), self.EB_C_Apellidos.get_text(),
             self.EB_C_Nombre.get_text(), self.EB_C_Direccion.get_text(),
             self.ListPro.get_value(self.CB_C_Provincia.get_active_iter(),
                                    0),
             self.ListCiu.get_value(self.CB_C_Ciudad.get_active_iter(), 0))
     BD_Conect.Insert(fila, 0)
     self.LoadClientes()
     self.NB_Clientes.set_current_page(0)
示例#2
0
 def AddNewService(self, widget, data=None):
     fila = (self.EB_NSN.get_text(), self.EB_NSP.get_text())
     BD_Conect.Insert(fila, 1)
     self.LoadS()
     self.VService.hide()