Browse Source

use a qlabel widget for the wallet balance

283
thomasv 12 years ago
parent
commit
e2b75d9fbc
  1. 10
      gui/gui_classic.py

10
gui/gui_classic.py

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

Loading…
Cancel
Save