Example #1
0
 def verify_seed(self, seed, sid, func=None):
     r = self.enter_seed_dialog(MSG_VERIFY_SEED, sid, func)
     if not r:
         return
     if prepare_seed(r) != prepare_seed(seed):
         QMessageBox.warning(None, _('Error'), _('Incorrect seed'), _('OK'))
         return False
     else:
         return True
Example #2
0
 def verify_seed(self, seed, sid, func=None):
     r = self.enter_seed_dialog(MSG_VERIFY_SEED, sid, func)
     if not r:
         return
     if prepare_seed(r) != prepare_seed(seed):
         QMessageBox.warning(None, _('Error'), _('Incorrect seed'), _('OK'))
         return False
     else:
         return True
Example #3
0
 def verify_seed(self, seed, is_valid=None):
     while True:
         r = self.request_seed(MSG_VERIFY_SEED, is_valid)
         if prepare_seed(r) == prepare_seed(seed):
             return
         self.show_error(_('Incorrect seed'))
Example #4
0
 def verify_seed(self, seed, is_valid=None):
     while True:
         r = self.request_seed(MSG_VERIFY_SEED, is_valid)
         if prepare_seed(r) == prepare_seed(seed):
             return
         self.show_error(_('Incorrect seed'))