コード例 #1
0
    def __init__(self, parent):
        CurrenciesCheckboxDialog.__init__(self, parent)
        self.setWindowTitle(_('Hide Coins'))
        self.hide_chains = self.parent.config.get_above_chain('hide_chains', [])

        # sanity checking
        active_chain_code = self.parent.active_chain.code
        if active_chain_code in self.hide_chains:
            self.hide_chains.remove(active_chain_code)

        self.main_layout = vbox = QVBoxLayout()
        hide_label = QLabel(_('You can select chains here that will be hidden from view in the currency selection dialog.'))
        vbox.addWidget(hide_label)

        for cbox in self.coin_checkboxes:
            code = str(cbox.text()).split()[0]
            if code == active_chain_code:
                cbox.setChecked(False)
                cbox.setEnabled(False)
                continue
            cbox.setChecked(code in self.hide_chains)
        vbox.addLayout(self.scroll_layout)

        vbox.addLayout(close_button(self))
        self.finished.connect(self.save_hide_chains)
        self.setLayout(vbox)
コード例 #2
0
    def __init__(self, parent):
        CurrenciesCheckboxDialog.__init__(self, parent)
        self.setWindowTitle(_('Hide Coins'))
        self.hide_chains = self.parent.config.get_above_chain(
            'hide_chains', [])

        # sanity checking
        active_chain_code = self.parent.active_chain.code
        if active_chain_code in self.hide_chains:
            self.hide_chains.remove(active_chain_code)

        self.main_layout = vbox = QVBoxLayout()
        hide_label = QLabel(
            _('You can select chains here that will be hidden from view in the currency selection dialog.'
              ))
        vbox.addWidget(hide_label)

        for cbox in self.coin_checkboxes:
            code = str(cbox.text()).split()[0]
            if code == active_chain_code:
                cbox.setChecked(False)
                cbox.setEnabled(False)
                continue
            cbox.setChecked(code in self.hide_chains)
        vbox.addLayout(self.scroll_layout)

        vbox.addLayout(close_button(self))
        self.finished.connect(self.save_hide_chains)
        self.setLayout(vbox)
コード例 #3
0
 def __init__(self, parent, seed, imported_keys):
     QDialog.__init__(self, parent)
     self.setModal(1)
     self.setWindowTitle('Electrum' + ' - ' + _('Seed'))
     vbox = show_seed_box(seed)
     if imported_keys:
         vbox.addWidget(QLabel("<b>"+_("WARNING")+":</b> " + _("Your wallet contains imported keys. These keys cannot be recovered from seed.") + "</b><p>"))
     vbox.addLayout(close_button(self))
     self.setLayout(vbox)
コード例 #4
0
    def __init__(self, parent, seed, imported_keys):
        QDialog.__init__(self, parent)
        self.setModal(1)
        self.setWindowTitle('Electrum' + ' - ' + _('Seed'))
        self.parent = parent

        vbox = make_seed_dialog(seed, imported_keys)
        vbox.addLayout(close_button(self))
        self.setLayout(vbox)
コード例 #5
0
 def __init__(self, parent, seed, imported_keys):
     QDialog.__init__(self, parent)
     self.setModal(1)
     self.setWindowTitle('Electrum' + ' - ' + _('Seed'))
     vbox = show_seed_box(seed)
     if imported_keys:
         vbox.addWidget(QLabel("<b>"+_("WARNING")+":</b> " + _("Your wallet contains imported keys. These keys cannot be recovered from seed.") + "</b><p>"))
     vbox.addLayout(close_button(self))
     self.setLayout(vbox)
コード例 #6
0
ファイル: seed_dialog.py プロジェクト: 309972460/software
    def __init__(self, parent, seed, imported_keys):
        QDialog.__init__(self, parent)
        self.setModal(1)
        self.setWindowTitle('Electrum' + ' - ' + _('Seed'))
        self.parent = parent

        vbox = make_seed_dialog(seed, imported_keys)
        vbox.addLayout(close_button(self))
        self.setLayout(vbox)
コード例 #7
0
ファイル: seed_dialog.py プロジェクト: 309972460/software
    def __init__(self, parent, private_keys):
        QDialog.__init__(self, parent)
        self.setModal(1)
        self.setWindowTitle('Electrum' + ' - ' + _('Master Private Keys'))
        self.parent = parent
        vbox = QVBoxLayout(self)
        vbox.addWidget(QLabel(_("The seed has been removed from the wallet. It contains the following master private keys")+ ":"))
        for k,v in sorted(private_keys.items()):
            vbox.addWidget(QLabel(k))
            vbox.addWidget(QLineEdit(v))

        vbox.addLayout(close_button(self))
コード例 #8
0
ファイル: seed_dialog.py プロジェクト: mdz/electrum
    def __init__(self, parent, private_keys):
        QDialog.__init__(self, parent)
        self.setModal(1)
        self.setWindowTitle('HDM' + ' - ' + _('Master Private Keys'))
        self.parent = parent
        vbox = QVBoxLayout(self)
        vbox.addWidget(QLabel(_("The seed has been removed from the wallet. It contains the following master private keys")+ ":"))
        for k,v in sorted(private_keys.items()):
            vbox.addWidget(QLabel(k))
            vbox.addWidget(QLineEdit(v))

        vbox.addLayout(close_button(self))
コード例 #9
0
    def __init__(self, parent):
        super(SettingsDialog, self).__init__(parent)
        self.gui = gui = parent
        self.config = gui.config
        self.actuator = gui.actuator
        self.active_chain = gui.active_chain

        self.setWindowTitle(_('Encompass Settings'))
        self.setModal(1)
        self.setMinimumWidth(500)
        # There are tabs for each category of settings.
        self.pages_tabs = QTabWidget()

        # Global options
        global_rows = self.create_global_options()
        global_options_grid = QGridLayout()
        for r in global_rows:
            r.add_to_layout(global_options_grid)

        global_description = _("These settings are not limited to any coin.")
        global_widget = self.create_page_widget(global_description, global_options_grid)
        self.pages_tabs.addTab(global_widget, _('Global'))

        # Per-chain options
        chain_rows = self.create_chain_options()
        chain_options_grid = QGridLayout()
        for r in chain_rows:
            r.add_to_layout(chain_options_grid)

        chain_description = _("These settings only affect") + " {}.".format(self.active_chain.coin_name)
        chain_widget = self.create_page_widget(chain_description, chain_options_grid)
        self.pages_tabs.addTab(chain_widget, self.actuator.get_coin_icon(self.active_chain.code), self.active_chain.coin_name)

        pages_explanation = QLabel(_('Select a category of settings below:'))
        pages_explanation.setWordWrap(True)

        vbox = QVBoxLayout()
        vbox.addWidget(pages_explanation)
        vbox.addWidget(self.pages_tabs, stretch=1)
        vbox.addLayout(close_button(self))

        self.setLayout(vbox)