electrum

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

commit e2b75d9fbc9934e8b534241c25b281ab52c312d9
parent d24fefd459cb18da92f322adccd548a61dabdbc0
Author: thomasv <thomasv@gitorious>
Date:   Fri, 10 May 2013 14:12:33 +0200

use a qlabel widget for the wallet balance

Diffstat:
Mgui/gui_classic.py | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gui/gui_classic.py b/gui/gui_classic.py @@ -416,8 +416,7 @@ class ElectrumWindow(QMainWindow): text = _("Not connected") icon = QIcon(":icons/status_disconnected.png") - self.status_text = text - self.statusBar().showMessage(text) + self.balance_label.setText(text) self.status_button.setIcon( icon ) def update_wallet(self): @@ -724,7 +723,7 @@ class ElectrumWindow(QMainWindow): if inputs: palette = QPalette() palette.setColor(self.amount_e.foregroundRole(), QColor('black')) - text = self.status_text + text = "" else: palette = QPalette() palette.setColor(self.amount_e.foregroundRole(), QColor('red')) @@ -1183,11 +1182,14 @@ class ElectrumWindow(QMainWindow): self.update_receive_tab() def create_status_bar(self): - self.status_text = "" + sb = QStatusBar() sb.setFixedHeight(35) qtVersion = qVersion() + self.balance_label = QLabel("") + sb.addWidget(self.balance_label) + update_notification = UpdateLabel(self.config) if(update_notification.new_version): sb.addPermanentWidget(update_notification)