electrum

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

commit c5f5e92d171c55f1ac33a26f0c99f0fb4c10c6cb
parent 025e10d56964c88b556e2f52a427202e53fe9672
Author: thomasv <thomasv@gitorious>
Date:   Fri, 19 Oct 2012 10:26:35 +0200

rename qt gui -> classic

Diffstat:
Melectrum | 4++--
Mlib/gui.py | 4++--
Mlib/gui_lite.py | 6+++---
Mlib/gui_qt.py | 4++--
4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/electrum b/electrum @@ -158,13 +158,13 @@ if __name__ == '__main__': #this entire if/else block is just concerned with importing the #right GUI toolkit based the GUI command line option given if cmd == 'gui': - pref_gui = config.get('gui','qt') + pref_gui = config.get('gui','classic') if pref_gui == 'gtk': try: import lib.gui as gui except ImportError: import electrum.gui as gui - elif pref_gui == 'qt': + elif pref_gui in ['classic', 'qt']: try: import lib.gui_qt as gui except ImportError: diff --git a/lib/gui.py b/lib/gui.py @@ -274,11 +274,11 @@ def run_settings_dialog(wallet, parent): gui_box.pack_start(gui_label,False, False, 10) gui_combo = gtk.combo_box_new_text() gui_combo.append_text('Lite') - gui_combo.append_text('Qt') + gui_combo.append_text('Classic') gui_combo.append_text('Gtk') gui_combo.show() gui_box.pack_start(gui_combo,False, False, 10) - gui_names = ['lite','qt','gtk'] + gui_names = ['lite','classic','gtk'] gui_combo.set_active( gui_names.index( wallet.config.get("gui","lite")) ) gui_box.show() add_help_button(gui_box, "Select which GUI mode to use at start up.") diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -64,8 +64,8 @@ class ElectrumGui(QObject): qtVersion = qVersion() if not(int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7): app = QApplication(sys.argv) - QMessageBox.warning(None,"Could not start Lite GUI.", "Electrum was unable to load the 'Lite GUI' because it needs Qt version >= 4.7.\nChanging your config to use the 'Qt' GUI") - self.config.set_key('gui','qt',True) + QMessageBox.warning(None,"Could not start Lite GUI.", "Electrum was unable to load the 'Lite GUI' because it needs Qt version >= 4.7.\nChanging your config to use the 'Classic' GUI") + self.config.set_key('gui','classic',True) sys.exit(0) @@ -220,7 +220,7 @@ class MiniWindow(QDialog): backup_wallet = extra_menu.addAction( _("&Create wallet backup")) backup_wallet.triggered.connect(self.backup_wallet) - expert_gui = view_menu.addAction(_("&Pro Mode")) + expert_gui = view_menu.addAction(_("&Classic GUI")) expert_gui.triggered.connect(expand_callback) themes_menu = view_menu.addMenu(_("&Themes")) selected_theme = self.actuator.selected_theme() diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -1299,8 +1299,8 @@ class ElectrumWindow(QMainWindow): gui_label=QLabel(_('Default GUI') + ':') grid.addWidget(gui_label , 7, 0) gui_combo = QComboBox() - gui_combo.addItems(['Lite', 'Qt', 'Gtk']) - gui_combo.setCurrentIndex(gui_combo.findText(self.config.get("gui","lite").capitalize())) + gui_combo.addItems(['Lite', 'Classic', 'Gtk']) + gui_combo.setCurrentIndex(gui_combo.findText(self.config.get("gui","classic").capitalize())) grid.addWidget(gui_combo, 7, 1) grid.addWidget(HelpButton(_('Select which GUI mode to use at start up. ')), 7, 2) if not self.config.is_modifiable('gui'):