1
0

kivy: scan tx

This commit is contained in:
ThomasV
2016-02-12 16:09:16 +01:00
parent 7c3edd58e3
commit 526c6c88f7
3 changed files with 21 additions and 7 deletions

View File

@@ -97,7 +97,14 @@ class HistoryScreen(CScreen):
def __init__(self, **kwargs):
self.ra_dialog = None
super(HistoryScreen, self).__init__(**kwargs)
self.menu_actions = [ ('Label', self.label_dialog), ('Details', self.app.tx_details_dialog)]
self.menu_actions = [ ('Label', self.label_dialog), ('Details', self.show_tx)]
def show_tx(self, obj):
tx_hash = obj.tx_hash
tx = self.app.wallet.transactions.get(tx_hash)
if not tx:
return
self.app.tx_dialog(tx)
def label_dialog(self, obj):
from dialogs.label_dialog import LabelDialog

View File

@@ -76,7 +76,7 @@ SendScreen:
IconButton:
id: qr
size_hint: 0.6, 1
on_release: app.scan_qr(on_complete=app.set_URI)
on_release: app.scan_qr(on_complete=app.on_qr)
icon: 'atlas://gui/kivy/theming/light/camera'
Button:
text: _('Paste')