electrum

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

commit 54eb89ccaf269d974da0bfc5684db03a78942225
parent 920d4c2b27190f5ad8f808cbe288855dbd171fa5
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 24 Jan 2019 13:47:58 +0100

Merge pull request #5026 from JeremyRand/utxolist-headers

Refactor UTXOList headers into class attribute
Diffstat:
Melectrum/gui/qt/utxo_list.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py @@ -30,6 +30,7 @@ from electrum.i18n import _ from .util import * class UTXOList(MyTreeView): + headers = [ _('Address'), _('Label'), _('Amount'), _('Height'), _('Output point')] filter_columns = [0, 1] # Address, Label def __init__(self, parent=None): @@ -44,7 +45,7 @@ class UTXOList(MyTreeView): utxos = self.wallet.get_utxos() self.utxo_dict = {} self.model().clear() - self.update_headers([ _('Address'), _('Label'), _('Amount'), _('Height'), _('Output point')]) + self.update_headers(self.__class__.headers) for idx, x in enumerate(utxos): address = x.get('address') height = x.get('height')