コード例 #1
0
ファイル: passwd.py プロジェクト: RezaGhanbari/passwall
 def voltar (self):
     from telas.collect import JanelaCollect
     janela = JanelaCollect(smanager=self.smanager, name='janela_collect')
     self.smanager.add_widget( janela )
     janela.recarrega()
     self.smanager.transition.direction = 'right'
     self.smanager.current = 'janela_collect'
コード例 #2
0
ファイル: login.py プロジェクト: RezaGhanbari/passwall
    def do_unlock (self):

        senha = self.ids.tx_password.text
        self.smanager.encrypter = Encriptador (senha)
        # verifica se a senha e correta
        if not self.check_pass():
            print "senha errada"
            self.ids.tx_aviso.text = 'As senha nao confere!'
            return False
        
        from telas.collect import JanelaCollect
        janela = JanelaCollect(smanager=self.smanager, name='janela_collect')
        self.smanager.add_widget( janela )
        janela.recarrega()
        self.smanager.transition.direction = 'up'
        self.smanager.current = 'janela_collect'
コード例 #3
0
ファイル: login.py プロジェクト: RezaGhanbari/passwall
 def do_unlock (self):
     senha = self.ids.tx_password.text
     senha2 = self.ids.tx_password_confirm.text
 
     if (senha != senha2):
         self.ids.tx_aviso.text = 'As senhas nao conferem!'
         return False
     else:
         self.smanager.encrypter = Encriptador (senha)
         f = open (CHECK_FILE, 'w')
         f.write ( self.smanager.encrypter.encripta (CHECK_STR) )
         f.close()
         
         from telas.collect import JanelaCollect
         janela = JanelaCollect(smanager=self.smanager, name='janela_collect')
         self.smanager.add_widget( janela )
         janela.recarrega()
         self.smanager.transition.direction = 'up'
         self.smanager.current = 'janela_collect'