electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 49679cf8be1c323a82810ff1c49fb1cac8b066d4
parent 100252258bb28aa8308dd4ad02c0bd578cd4d3c9
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 18 Feb 2016 07:47:09 +0100

kivy: fix OutputItem initialisation

Diffstat:
Mgui/kivy/main.kv | 2+-
Mgui/kivy/main_window.py | 1+
Mgui/kivy/uix/dialogs/__init__.py | 9++++++---
3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gui/kivy/main.kv b/gui/kivy/main.kv @@ -90,7 +90,7 @@ id: lbl2 text: root.value -<OutputItem@BoxLayout> +<OutputItem> address: '' value: '' size_hint_y: None diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py @@ -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') diff --git a/gui/kivy/uix/dialogs/__init__.py b/gui/kivy/uix/dialogs/__init__.py @@ -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)