Exemple #1
0
        self.sm.add_widget(self.openwallet)
        self.sm.add_widget(self.confirmemail)
        self.sm.add_widget(self.selectnotaryfile)
        self.sm.add_widget(self.meta_data)
        self.sm.add_widget(self.landingscreen)
        self.sm.add_widget(self.claimsscreen)

    def find_state(self):
        import client_wallet
        client_wallet_obj = client_wallet.ClientWallet("somepassword")
        print "wallet exists"
        print client_wallet_obj.wallet_exists()

        if client_wallet_obj.wallet_exists():
            self.sm.current = "openwallet"
        else:
            self.sm.current = "createwallet"

    def build(self):
        return self.sm


if __name__ == '__main__':
    global notary_app
    notary_app = NotaryApp()
    register_flow.initFlow(notary_app, ui_test_mode)
    notary_flow.initFlow(notary_app, ui_test_mode)
    if ui_test_mode is False:
        notary_app.find_state()
    notary_app.run()
Exemple #2
0
        self.sm.add_widget(self.openwallet)
        self.sm.add_widget(self.confirmemail)
        self.sm.add_widget(self.selectnotaryfile)
        self.sm.add_widget(self.meta_data)
        self.sm.add_widget(self.landingscreen)
        self.sm.add_widget(self.claimsscreen)

    def find_state(self):
        import client_wallet
        client_wallet_obj = client_wallet.ClientWallet("somepassword")
        print "wallet exists"
        print client_wallet_obj.wallet_exists()

        if client_wallet_obj.wallet_exists():
            self.sm.current = "openwallet"
        else:
            self.sm.current = "createwallet"

    def build(self):
        return self.sm


if __name__ == '__main__':
    global notary_app
    notary_app = NotaryApp()
    register_flow.initFlow(notary_app, ui_test_mode)
    notary_flow.initFlow(notary_app, ui_test_mode)
    if ui_test_mode is False:
        notary_app.find_state()
    notary_app.run()
Exemple #3
0
        self.openwallet = register_flow.PasswordScreen(name='openwallet')
        self.confirmemail=register_flow.ConfirmScreen(name='confirmemail')
        self.selectnotaryfile = notary_flow.SelectNotaryFileScreen(name='selectnotaryfile')
        self.uploadoption = notary_flow.UploadFileScreen(name='uploadoption')
        self.sm.add_widget(self.smcwallet)
        self.sm.add_widget(self.smrwallet)
        self.sm.add_widget(self.openwallet)
        self.sm.add_widget(self.confirmemail)
        self.sm.add_widget(self.selectnotaryfile)
        self.sm.add_widget(self.uploadoption)

    def find_state(self):
        client_wallet_obj = ClientWallet("somepassword")
        print "wallet exists"
        print client_wallet_obj.wallet_exists()

        if client_wallet_obj.wallet_exists():
             self.sm.current = "openwallet"
        else:
             self.sm.current = "createwallet"
    def build(self):
        return self.sm

if __name__ == '__main__':
    global notary_app
    notary_app = NotaryApp()
    register_flow.initFlow(notary_app)
    notary_flow.initFlow(notary_app)
    notary_app.find_state()
    notary_app.run()