URI: 
       tshow height in utxo list - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b243772d68ecb0d06fbc533314f4cc362da50dba
   DIR parent ad8a6f3effcd94388c5c7864567dc0a6bb23ac03
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 19 Jul 2017 18:31:53 +0200
       
       show height in utxo list
       
       Diffstat:
         M gui/qt/utxo_list.py                 |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gui/qt/utxo_list.py b/gui/qt/utxo_list.py
       t@@ -32,7 +32,7 @@ class UTXOList(MyTreeWidget):
            filter_columns = [0, 2]  # Address, Label
        
            def __init__(self, parent=None):
       -        MyTreeWidget.__init__(self, parent, self.create_menu, [ _('Address'), _('Output point'), _('Label'), _('Amount'), ''], 2)
       +        MyTreeWidget.__init__(self, parent, self.create_menu, [ _('Address'), _('Output point'), _('Label'), _('Amount'), _('Height')], 2)
                self.setSelectionMode(QAbstractItemView.ExtendedSelection)
        
            def get_name(self, x):
       t@@ -45,10 +45,11 @@ class UTXOList(MyTreeWidget):
                self.utxos = self.wallet.get_utxos()
                for x in self.utxos:
                    address = x.get('address')
       +            height = x.get('height')
                    name = self.get_name(x)
                    label = self.wallet.get_label(x.get('prevout_hash'))
                    amount = self.parent.format_amount(x['value'])
       -            utxo_item = QTreeWidgetItem([address, name[0:10] + '...' + name[-2:], label, amount])
       +            utxo_item = QTreeWidgetItem([address, name[0:10] + '...' + name[-2:], label, amount, '%d'%height])
                    utxo_item.setFont(0, QFont(MONOSPACE_FONT))
                    utxo_item.setFont(1, QFont(MONOSPACE_FONT))
                    utxo_item.setData(0, Qt.UserRole, name)