Merge pull request #4419 from SomberNight/kivy_show_all_xpubs
kivy: show all xpubs
This commit is contained in:
commit
0682166314
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
# Custom Global Widgets
|
# Custom Global Widgets
|
||||||
|
|
||||||
<TopLabel@Label>
|
<TopLabel>
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
text_size: self.width, None
|
text_size: self.width, None
|
||||||
height: self.texture_size[1]
|
height: self.texture_size[1]
|
||||||
@ -126,7 +126,7 @@
|
|||||||
size: self.size
|
size: self.size
|
||||||
pos: self.pos
|
pos: self.pos
|
||||||
|
|
||||||
<RefLabel@TopLabel>
|
<RefLabel>
|
||||||
font_size: '6pt'
|
font_size: '6pt'
|
||||||
name: ''
|
name: ''
|
||||||
data: ''
|
data: ''
|
||||||
|
|||||||
@ -38,6 +38,7 @@ from kivy.lang import Builder
|
|||||||
from .uix.dialogs.installwizard import InstallWizard
|
from .uix.dialogs.installwizard import InstallWizard
|
||||||
from .uix.dialogs import InfoBubble
|
from .uix.dialogs import InfoBubble
|
||||||
from .uix.dialogs import OutputList, OutputItem
|
from .uix.dialogs import OutputList, OutputItem
|
||||||
|
from .uix.dialogs import TopLabel, RefLabel
|
||||||
|
|
||||||
#from kivy.core.window import Window
|
#from kivy.core.window import Window
|
||||||
#Window.softinput_mode = 'below_target'
|
#Window.softinput_mode = 'below_target'
|
||||||
@ -563,6 +564,16 @@ class ElectrumWindow(App):
|
|||||||
from .uix.dialogs.wallets import WalletDialog
|
from .uix.dialogs.wallets import WalletDialog
|
||||||
d = WalletDialog()
|
d = WalletDialog()
|
||||||
d.open()
|
d.open()
|
||||||
|
elif name == 'status':
|
||||||
|
popup = Builder.load_file('gui/kivy/uix/ui_screens/'+name+'.kv')
|
||||||
|
master_public_keys_layout = popup.ids.master_public_keys
|
||||||
|
for xpub in self.wallet.get_master_public_keys()[1:]:
|
||||||
|
master_public_keys_layout.add_widget(TopLabel(text=_('Master Public Key')))
|
||||||
|
ref = RefLabel()
|
||||||
|
ref.name = _('Master Public Key')
|
||||||
|
ref.data = xpub
|
||||||
|
master_public_keys_layout.add_widget(ref)
|
||||||
|
popup.open()
|
||||||
else:
|
else:
|
||||||
popup = Builder.load_file('gui/kivy/uix/ui_screens/'+name+'.kv')
|
popup = Builder.load_file('gui/kivy/uix/ui_screens/'+name+'.kv')
|
||||||
popup.open()
|
popup.open()
|
||||||
|
|||||||
@ -213,3 +213,10 @@ class OutputList(Factory.GridLayout):
|
|||||||
b.value = self.app.format_amount_and_units(amount)
|
b.value = self.app.format_amount_and_units(amount)
|
||||||
self.add_widget(b)
|
self.add_widget(b)
|
||||||
|
|
||||||
|
|
||||||
|
class TopLabel(Factory.Label):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class RefLabel(TopLabel):
|
||||||
|
pass
|
||||||
|
|||||||
@ -46,11 +46,20 @@ Popup:
|
|||||||
value: app.format_amount_and_units(root.unmatured)
|
value: app.format_amount_and_units(root.unmatured)
|
||||||
opacity: 1 if root.unmatured else 0
|
opacity: 1 if root.unmatured else 0
|
||||||
|
|
||||||
TopLabel:
|
GridLayout:
|
||||||
text: _('Master Public Key')
|
cols: 1
|
||||||
RefLabel:
|
height: self.minimum_height
|
||||||
data: app.wallet.get_master_public_key() or 'None'
|
size_hint_y: None
|
||||||
name: _('Master Public Key')
|
padding: '10dp'
|
||||||
|
spacing: '10dp'
|
||||||
|
id: master_public_keys
|
||||||
|
TopLabel:
|
||||||
|
text: _('Master Public Key')
|
||||||
|
RefLabel:
|
||||||
|
data: app.wallet.get_master_public_key() or 'None'
|
||||||
|
name: _('Master Public Key')
|
||||||
|
|
||||||
|
|
||||||
TopLabel:
|
TopLabel:
|
||||||
id: seed_label
|
id: seed_label
|
||||||
text: _('This wallet is watching-only') if root.watching_only else ''
|
text: _('This wallet is watching-only') if root.watching_only else ''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user