-WIP-electrum-btcp/gui/kivy/uix/ui_screens/receive.kv

61 lines
1.7 KiB
Plaintext
Raw Normal View History

#:import _ electrum.i18n._
#:import Decimal decimal.Decimal
#:set btc_symbol unichr(171)
#:set mbtc_symbol unichr(187)
#:set font_light 'data/fonts/Roboto-Condensed.ttf'
ReceiveScreen:
2015-10-06 05:30:44 -07:00
id: receive_screen
name: 'receive'
BoxLayout
padding: '12dp', '12dp', '12dp', '12dp'
spacing: '12dp'
orientation: 'vertical'
2015-10-14 02:44:01 -07:00
size_hint: 1, 1
2015-10-06 05:30:44 -07:00
FloatLayout:
id: bl
QRCodeWidget:
id: qr
size_hint: None, 1
width: min(self.height, bl.width)
pos_hint: {'center': (.5, .5)}
on_touch_down:
if self.collide_point(*args[1].pos):\
app.show_info_bubble(icon=self.ids.qrimage.texture, text='texture')
GridLayout:
id: grid
2015-10-14 02:44:01 -07:00
cols: 2
Label:
text: 'Address'
size_hint: 0.5, None
height: '38dp'
AddressSelector:
id: address
size_hint: 0.5, None
height: '38dp'
Label:
text: 'Amount'
size_hint: 0.5, None
height: '38dp'
2015-10-06 05:30:44 -07:00
Button:
2015-10-14 02:44:01 -07:00
id: amount
text: ''
size_hint: 0.5, None
height: '38dp'
on_release: app.amount_dialog(amount, receive_screen.parent.update_qr)
Label:
text: 'Description'
size_hint: 0.5, None
2015-10-06 05:30:44 -07:00
height: '48dp'
2015-10-14 02:44:01 -07:00
TextInput:
text: ''
on_text: receive_screen.parent.update_qr
multiline: False
size_hint: 0.5, None
height: '38dp'