electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit c486c6d55f65b0e2cfb82aaca994ae74f9f9bc80
parent 631a348e5d3241b133ee38ce557d18fa5c526b9a
Author: Maran H <maran.hidskes@gmail.com>
Date:   Fri, 21 Sep 2012 07:20:59 -0700

Merge pull request #33 from bkkcoins/startup-gui-option

Startup gui option
Diffstat:
Mlib/gui_qt.py | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -38,6 +38,7 @@ except: from wallet import format_satoshis import bmp, mnemonic, pyqrnative, qrscanner +from simple_config import SimpleConfig from decimal import Decimal @@ -1241,6 +1242,13 @@ class ElectrumWindow(QMainWindow): grid.addWidget(HelpButton(msg), 6, 2) gap_e.textChanged.connect(lambda: numbify(nz_e,True)) + gui = QComboBox() + gui.addItems(['Lite', 'Qt']) + cfg = SimpleConfig() + gui.setCurrentIndex(gui.findText(cfg.config["gui"].capitalize())) + grid.addWidget(QLabel(_('Default GUI') + ':'), 7, 0) + grid.addWidget(gui, 7, 1) + grid.addWidget(HelpButton(_('Select which GUI mode to use at start up. ')), 7, 2) vbox.addLayout(ok_cancel_buttons(d)) d.setLayout(vbox) @@ -1288,6 +1296,10 @@ class ElectrumWindow(QMainWindow): self.update_receive_tab() else: QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK')) + + cfg = SimpleConfig() + cfg.set_key("gui", str(gui.currentText()).lower()) + cfg.save_config() self.set_expert_mode(cb.isChecked())