def get_seed(self):
    password = None
    if self.wallet.has_keystore_encryption():
        password = self.password_dialog(parent=self.d.parent())
        if (not password):
            raise UserCancelled()
    keystore = self.wallet.get_keystore()
    if ((not keystore) or (not keystore.has_seed())):
        return
    self.extension = bool(keystore.get_passphrase(password))
    return keystore.get_seed(password)
def get_seed(self):
    password = None
    if self.wallet.has_keystore_encryption():
        password = self.password_dialog(parent=self.d.parent())
        if (not password):
            raise UserCancelled()
    keystore = self.wallet.get_keystore()
    if ((not keystore) or (not keystore.has_seed())):
        return
    self.extension = bool(keystore.get_passphrase(password))
    return keystore.get_seed(password)