def on_btnGrabcli_clicked(self, widget): self.dni = self.dnicli.get_text() self.apel = self.apelcli.get_text() self.nom = self.nomcli.get_text() self.dir = self.dircli.get_text() self.loc = self.loccli.get_text() tree_iter = self.provcli.get_active_iter() if tree_iter != None: model = self.provcli.get_model() self.prov = model[tree_iter][0] self.cp = self.cpcli.get_text() self.mov = self.movcli.get_text() self.tel = self.telcli.get_text() self.mail = self.mailcli.get_text() if clientes.Grabarcli(self.dni, self.apel, self.nom, self.dir, self.loc, self.prov, self.cp, self.mov, self.tel, self.mail, self.pub) == False: self.avisodni.show() clientes.limpiarcli(self.dnicli, self.apelcli, self.nomcli, self.dircli, self.loccli, self.provcli, self.cpcli, self.movcli, self.telcli, self.mailcli) clientes.mostrar(self.listCliente, self.trewCliente)
def on_btnGrabcli_clicked(self, widget): self.dni = self.dnicli.get_text() self.apel = self.apelcli.get_text() self.nom = self.nomcli.get_text() self.dir = self.dircli.get_text() self.loc = self.loccli.get_text() self.prov = self.provcli.get_text() self.cp = self.cpcli.get_text() self.mov = self.movcli.get_text() self.tel = self.telcli.get_text() self.mail = self.mailcli.get_text() if clientes.Grabarcli(self.dni, self.apel, self.nom, self.dir, self.loc, self.prov, self.cp, self.mov, self.tel, self.mail, self.pub) == False: self.avisodni.show() clientes.limpiarcli(self.dnicli, self.apelcli, self.nomcli, self.dircli, self.loccli, self.provcli, self.cpcli, self.movcli, self.telcli, self.mailcli) clientes.mostrar(self.listCliente, self.trewCliente)
def on_btnGrabcli_clicked(self, widget): self.dni = self.dnicli.get_text() self.apel = self.apelcli.get_text() self.nom = self.nomcli.get_text() self.dir = self.dircli.get_text() print type(self.provincia) self.loc = self.loccli.get_text() #model = self.cmbprov.get_model() #activo = self.cmbprov.get_active() self.prov = str(self.provincia) print self.provincia self.cp = self.cpcli.get_text() self.mov = self.movcli.get_text() self.tel = self.telcli.get_text() self.mail = self.mailcli.get_text() if clientes.Grabarcli(self.dni, self.apel, self.nom, self.dir, self.loc, self.prov, self.cp, self.mov, self.tel, self.mail, self.pub) == False: self.avisodni.show() clientes.limpiarcli(self.dnicli, self.apelcli, self.nomcli, self.dircli, self.loccli, self.provcli, self.cpcli, self.movcli, self.telcli, self.mailcli) clientes.mostrar(self.listCliente, self.trewCliente)