def cypherseed_dialog(self, window):
    self.warn_old_revealer()
    d = WindowModalDialog(window, 'Encryption Dialog')
    d.setMinimumWidth(500)
    d.setMinimumHeight(210)
    d.setMaximumHeight(450)
    d.setContentsMargins(11, 11, 1, 1)
    self.c_dialog = d
    hbox = QHBoxLayout(d)
    self.vbox = QVBoxLayout()
    logo = QLabel()
    hbox.addWidget(logo)
    logo.setPixmap(QPixmap(icon_path('revealer.png')))
    logo.setAlignment(Qt.AlignLeft)
    hbox.addSpacing(16)
    self.vbox.addWidget(WWLabel(((('<b>' + _('Revealer Secret Backup Plugin')) + '</b><br>') + _('Ready to encrypt for revealer {}').format(((self.versioned_seed.version + '_') + self.versioned_seed.checksum)))))
    self.vbox.addSpacing(11)
    hbox.addLayout(self.vbox)
    grid = QGridLayout()
    self.vbox.addLayout(grid)
    cprint = QPushButton(_("Encrypt {}'s seed").format(self.wallet_name))
    cprint.setMaximumWidth(250)
    cprint.clicked.connect(partial(self.seed_img, True))
    self.vbox.addWidget(cprint)
    self.vbox.addSpacing(1)
    self.vbox.addWidget(WWLabel(((('<b>' + _('OR')) + '</b> ') + _('type a custom alphanumerical secret below:'))))
    self.text = ScanQRTextEdit()
    self.text.setTabChangesFocus(True)
    self.text.setMaximumHeight(70)
    self.text.textChanged.connect(self.customtxt_limits)
    self.vbox.addWidget(self.text)
    self.char_count = WWLabel('')
    self.char_count.setAlignment(Qt.AlignRight)
    self.vbox.addWidget(self.char_count)
    self.max_chars = WWLabel((("<font color='red'>" + _('This version supports a maximum of {} characters.').format(self.MAX_PLAINTEXT_LEN)) + '</font>'))
    self.vbox.addWidget(self.max_chars)
    self.max_chars.setVisible(False)
    self.ctext = QPushButton(_('Encrypt custom secret'))
    self.ctext.clicked.connect(self.t)
    self.vbox.addWidget(self.ctext)
    self.ctext.setEnabled(False)
    self.vbox.addSpacing(11)
    self.vbox.addLayout(Buttons(CloseButton(d)))
    return bool(d.exec_())
def cypherseed_dialog(self, window):
    self.warn_old_revealer()
    d = WindowModalDialog(window, 'Encryption Dialog')
    d.setMinimumWidth(500)
    d.setMinimumHeight(210)
    d.setMaximumHeight(450)
    d.setContentsMargins(11, 11, 1, 1)
    self.c_dialog = d
    hbox = QHBoxLayout(d)
    self.vbox = QVBoxLayout()
    logo = QLabel()
    hbox.addWidget(logo)
    logo.setPixmap(QPixmap(icon_path('revealer.png')))
    logo.setAlignment(Qt.AlignLeft)
    hbox.addSpacing(16)
    self.vbox.addWidget(WWLabel(((('<b>' + _('Revealer Secret Backup Plugin')) + '</b><br>') + _('Ready to encrypt for revealer {}').format(((self.versioned_seed.version + '_') + self.versioned_seed.checksum)))))
    self.vbox.addSpacing(11)
    hbox.addLayout(self.vbox)
    grid = QGridLayout()
    self.vbox.addLayout(grid)
    cprint = QPushButton(_("Encrypt {}'s seed").format(self.wallet_name))
    cprint.setMaximumWidth(250)
    cprint.clicked.connect(partial(self.seed_img, True))
    self.vbox.addWidget(cprint)
    self.vbox.addSpacing(1)
    self.vbox.addWidget(WWLabel(((('<b>' + _('OR')) + '</b> ') + _('type a custom alphanumerical secret below:'))))
    self.text = ScanQRTextEdit()
    self.text.setTabChangesFocus(True)
    self.text.setMaximumHeight(70)
    self.text.textChanged.connect(self.customtxt_limits)
    self.vbox.addWidget(self.text)
    self.char_count = WWLabel()
    self.char_count.setAlignment(Qt.AlignRight)
    self.vbox.addWidget(self.char_count)
    self.max_chars = WWLabel((("<font color='red'>" + _('This version supports a maximum of {} characters.').format(self.MAX_PLAINTEXT_LEN)) + '</font>'))
    self.vbox.addWidget(self.max_chars)
    self.max_chars.setVisible(False)
    self.ctext = QPushButton(_('Encrypt custom secret'))
    self.ctext.clicked.connect(self.t)
    self.vbox.addWidget(self.ctext)
    self.ctext.setEnabled(False)
    self.vbox.addSpacing(11)
    self.vbox.addLayout(Buttons(CloseButton(d)))
    return bool(d.exec_())