kivy: fix OutputItem initialisation
This commit is contained in:
parent
100252258b
commit
49679cf8be
|
@ -90,7 +90,7 @@
|
||||||
id: lbl2
|
id: lbl2
|
||||||
text: root.value
|
text: root.value
|
||||||
|
|
||||||
<OutputItem@BoxLayout>
|
<OutputItem>
|
||||||
address: ''
|
address: ''
|
||||||
value: ''
|
value: ''
|
||||||
size_hint_y: None
|
size_hint_y: None
|
||||||
|
|
|
@ -32,6 +32,7 @@ Factory.register('InstallWizard',
|
||||||
module='electrum_gui.kivy.uix.dialogs.installwizard')
|
module='electrum_gui.kivy.uix.dialogs.installwizard')
|
||||||
Factory.register('InfoBubble', module='electrum_gui.kivy.uix.dialogs')
|
Factory.register('InfoBubble', module='electrum_gui.kivy.uix.dialogs')
|
||||||
Factory.register('OutputList', module='electrum_gui.kivy.uix.dialogs')
|
Factory.register('OutputList', module='electrum_gui.kivy.uix.dialogs')
|
||||||
|
Factory.register('OutputItem', module='electrum_gui.kivy.uix.dialogs')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -192,6 +192,9 @@ class InfoBubble(Factory.Bubble):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class OutputItem(Factory.BoxLayout):
|
||||||
|
pass
|
||||||
|
|
||||||
class OutputList(Factory.GridLayout):
|
class OutputList(Factory.GridLayout):
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
@ -204,8 +207,8 @@ class OutputList(Factory.GridLayout):
|
||||||
self.add_output(address, amount)
|
self.add_output(address, amount)
|
||||||
|
|
||||||
def add_output(self, address, amount):
|
def add_output(self, address, amount):
|
||||||
b = Factory.OutputItem(
|
b = Factory.OutputItem()
|
||||||
address = address,
|
b.address = address
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue