electrum

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

commit 37caf97ee9401b731bd87ed844fde3ec6e751eeb
parent 533cdde366f95038821ca1fe1f31c4b3a34fae8f
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  8 Sep 2015 12:10:27 +0200

show currency in column header rather than in each row

Diffstat:
Mplugins/exchange_rate.py | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py @@ -400,8 +400,8 @@ class Plugin(BasePlugin, ThreadJob): if rate is None: text = _(" (No FX rate available)") else: - text = " (%s) 1 BTC~%s" % (self.value_str(btc_balance, rate), - self.value_str(COIN, rate)) + text = " (%s %s) 1 BTC~%s %s" % (self.value_str(btc_balance, rate), self.ccy, + self.value_str(COIN, rate), self.ccy) result['text'] = text def get_historical_rates(self): @@ -414,7 +414,7 @@ class Plugin(BasePlugin, ThreadJob): def value_str(self, satoshis, rate): if rate: value = Decimal(satoshis) / COIN * Decimal(rate) - return "%s %s" % (self.ccy_amount_str(value, True), self.ccy) + return "%s" % (self.ccy_amount_str(value, True)) return _("No data") def historical_value_str(self, satoshis, d_t): @@ -429,7 +429,7 @@ class Plugin(BasePlugin, ThreadJob): @hook def history_tab_headers(self, headers): if self.show_history(): - headers.extend([_('Fiat Amount'), _('Fiat Balance')]) + headers.extend(['%s '%self.ccy + _('Amount'), '%s '%self.ccy + _('Balance')]) @hook def history_tab_update_begin(self): @@ -445,7 +445,7 @@ class Plugin(BasePlugin, ThreadJob): date = timestamp_to_datetime(0) for amount in [value, balance]: text = self.historical_value_str(amount, date) - entry.append("%16s" % text) + entry.append(text) def settings_widget(self, window): return EnterButton(_('Settings'), self.settings_dialog)