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