mirror of
https://github.com/jwinterm/lightWallet.git
synced 2026-10-17 05:11:25 +02:00
Fixed address copy and formatting
This commit is contained in:
+2
-1
@@ -160,8 +160,9 @@
|
||||
text: "Address: "
|
||||
MarkupLabel:
|
||||
id: wallet_address_label
|
||||
halign: "center"
|
||||
size_hint_x: 0.9
|
||||
font_size: 9
|
||||
font_size: 8
|
||||
on_ref_press: root.selectAddress()
|
||||
BoxLayout:
|
||||
orientation: 'horizontal'
|
||||
|
||||
+2
-2
@@ -709,7 +709,7 @@ class RootWidget(Accordion):
|
||||
self.wallet_thread.daemon = True # thread dies with the program
|
||||
self.wallet_thread.start()
|
||||
self.wallet_account_label.text = "[b][color=00ffff]{0}[/b][/color]".format(wallet_name)
|
||||
self.wallet_address_label.text = "[b][color=00ffff][ref=Address]{0}[/ref]\nClick to copy[/b][/color]".format(self.address)
|
||||
self.wallet_address_label.text = "[b][color=00ffff][ref=Address]{0}\n[size=14]Click to copy[/b][/color][/size][/ref]".format(self.address)
|
||||
Clock.schedule_interval(self.readWalletQueue, 1e-3)
|
||||
|
||||
def readWalletQueue(self, dt):
|
||||
@@ -808,7 +808,7 @@ class RootWidget(Accordion):
|
||||
def selectAddress(self):
|
||||
"""Copy address to clipboard when user clicks"""
|
||||
print('User clicked on ', self.address)
|
||||
self.daemon_server_textinput.copy(self.address)
|
||||
Clipboard.put(self.address)
|
||||
|
||||
def transferfunds(self, address=None, mixin=None, amount=None, paymentid=None):
|
||||
if not address:
|
||||
|
||||
Reference in New Issue
Block a user