electrum

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

commit b21d08c0af8e381e4acf09505d68e4e9e814e76e
parent 51f42d0be3e23bb6c113e211df243a5b5357629e
Author: Amir Taaki <genjix@riseup.net>
Date:   Sat, 30 Jun 2012 13:37:34 +0200

limit quote currency to 2 decimal places.

Diffstat:
Mlib/gui_lite.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -165,7 +165,7 @@ class MiniWindow(QDialog): def set_balances(self, btc_balance): self.btc_balance = btc_balance btc_balance /= bitcoin(1) - quote_balance = btc_balance * 6 + quote_balance = "%.2f" % (btc_balance * 6) quote_currency = self.quote_currencies[0] self.balance_label.set_balances( \ btc_balance, quote_balance, quote_currency) @@ -429,6 +429,7 @@ class MiniDriver(QObject): def update_balance(self): conf_balance, unconf_balance = self.wallet.get_balance() balance = D(conf_balance + unconf_balance) + balance = D("9879457356") self.window.set_balances(balance) if __name__ == "__main__":