コード例 #1
0
 def show_disclaimer(self, wizard: BaseWizard):
     """
     声明
     :param wizard:
     :return:
     """
     wizard.set_icon('spc.png')
     wizard.reset_stack()
     wizard.confirm_dialog(title='Disclaimer',
                           message='\n\n'.join(self.disclaimer_msg),
                           run_next=lambda x: wizard.run('choose_seed'))
コード例 #2
0
 def restore_choice(self, wizard: BaseWizard, seed, passphrase):
     wizard.set_icon('trustedcoin-wizard.png')
     wizard.reset_stack()
     title = _('Restore 2FA wallet')
     msg = ' '.join([
         'You are going to restore a wallet protected with two-factor authentication.',
         'Do you want to keep using two-factor authentication with this wallet,',
         'or do you want to disable it, and have two master private keys in your wallet?'
     ])
     choices = [('keep', 'Keep'), ('disable', 'Disable')]
     f = lambda x: self.on_choice(wizard, seed, passphrase, x)
     wizard.choice_dialog(choices=choices, message=msg, title=title, run_next=f)
コード例 #3
0
ファイル: trustedcoin.py プロジェクト: vialectrum/vialectrum
 def restore_choice(self, wizard: BaseWizard, seed, passphrase):
     wizard.set_icon('trustedcoin-wizard.png')
     wizard.reset_stack()
     title = _('Restore 2FA wallet')
     msg = ' '.join([
         'You are going to restore a wallet protected with two-factor authentication.',
         'Do you want to keep using two-factor authentication with this wallet,',
         'or do you want to disable it, and have two master private keys in your wallet?'
     ])
     choices = [('keep', 'Keep'), ('disable', 'Disable')]
     f = lambda x: self.on_choice(wizard, seed, passphrase, x)
     wizard.choice_dialog(choices=choices, message=msg, title=title, run_next=f)
コード例 #4
0
ファイル: trustedcoin.py プロジェクト: zhiyuan2007/electrum
 def show_disclaimer(self, wizard: BaseWizard):
     wizard.set_icon('trustedcoin-wizard.png')
     wizard.reset_stack()
     wizard.confirm_dialog(title='Disclaimer',
                           message='\n\n'.join(self.disclaimer_msg),
                           run_next=lambda x: wizard.run('choose_seed'))
コード例 #5
0
ファイル: trustedcoin.py プロジェクト: vialectrum/vialectrum
 def show_disclaimer(self, wizard: BaseWizard):
     wizard.set_icon('trustedcoin-wizard.png')
     wizard.reset_stack()
     wizard.confirm_dialog(title='Disclaimer', message='\n\n'.join(self.disclaimer_msg), run_next = lambda x: wizard.run('choose_seed'))