예제 #1
0
    def show(self):
        self.button, self.valores = self.tela.Read()
        cliente = Cliente()
        cliente.nome = self.valores['txtNome']
        cliente.aceitaEmail = self.valores['aceitaEmail']
        cliente.nome = self.valores['txtNome']
        if self.valores['feminino']:
            cliente.sexo = 'feminino'
        elif self.valores['masculino']:
            cliente.sexo = 'masculino'
        else:
            cliente.sexo = "Não informado"

        cliente.idade = self.valores['idade']
        cliente.telefone = self.valores['txtTelefone']

        if self.valores['casado']:
            cliente.estadoCivil = 'casado'
        elif self.valores['divorciado']:
            cliente.estadoCivil = 'divorciado'
        elif self.valores['solteiro']:
            cliente.estadoCivil = 'Solteiro'
        else:
            cliente.estadoCivil = "Não informado"
        return cliente
 def show(self):
     self.button, self.valores = self.tela.Read()
     cliente = Cliente()
     cliente.nome = self.valores['txtNome']
     cliente.aceitaEmail = self.valores['aceitaEmail']
     if self.valores['feminino']:
         cliente.sexo = "Feminino"
     elif self.valores['masculino']:
         cliente.sexo = "Masculino"
     else:
         cliente.sexo = "Não Informado"
     cliente.idade = self.valores['idade']
     return cliente