commit 9dbd546670cc1e5b98a09d7be7ab95fc9e15125c
parent 08f63a7f14263c44ad893ad3c2377c478f99108c
Author: ThomasV <thomasv@gitorious>
Date: Fri, 27 Mar 2015 07:59:01 +0100
trustedcoin: clarify buy dialog
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/trustedcoin.py b/plugins/trustedcoin.py
@@ -594,14 +594,14 @@ class Plugin(BasePlugin):
for k, v in sorted(self.price_per_tx.items()):
if k!=1:
grid.addWidget(QLabel("Price for %d prepaid transactions:"%k), i, 0)
- grid.addWidget(QLabel(self.window.format_amount(v) + ' ' + self.window.base_unit()), i, 1)
+ grid.addWidget(QLabel("%d x "%k + self.window.format_amount(v/k) + ' ' + self.window.base_unit()), i, 1)
b = QPushButton(_("Buy"))
grid.addWidget(b, i, 2)
def on_buy():
d.close()
if self.window.pluginsdialog:
self.window.pluginsdialog.close()
- uri = "bitcoin:" + self.billing_info['billing_address'] + "?message=TrustedCoin Prepaid Transactions&amount="+str(Decimal(v)/100000000)
+ uri = "bitcoin:" + self.billing_info['billing_address'] + "?message=TrustedCoin %d Prepaid Transactions&amount="%k + str(Decimal(v)/100000000)
self.is_billing = True
self.window.pay_from_URI(uri)
self.window.payto_e.setFrozen(True)