kivy: TxHashLabel
This commit is contained in:
@@ -91,6 +91,20 @@
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
|
||||
<TxHashLabel@TopLabel>
|
||||
font_size: '6pt'
|
||||
tx_hash: ''
|
||||
text: '[ref=x]%s[/ref]' %' '.join(map(''.join, zip(*[iter(self.tx_hash)]*4))) if self.tx_hash else ''
|
||||
padding: '10dp', '10dp'
|
||||
on_ref_press:
|
||||
app._clipboard.copy(self.text)
|
||||
app.show_info(_('Transaction ID copied to clipboard'))
|
||||
canvas.before:
|
||||
Color:
|
||||
rgb: .3, .3, .3
|
||||
Rectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
|
||||
<InfoBubble>
|
||||
size_hint: None, None
|
||||
|
||||
Reference in New Issue
Block a user