UTXOList: Split stretch_column out of __init__

Makes it easier to subclass UTXOList without code duplication.
This commit is contained in:
JeremyRand 2020-03-29 05:53:31 +00:00
parent 7498271927
commit 001ee25604
No known key found for this signature in database
GPG key ID: B3F2D165786D6570

View file

@ -56,10 +56,11 @@ class UTXOList(MyTreeView):
Columns.OUTPOINT: _('Output point'),
}
filter_columns = [Columns.ADDRESS, Columns.LABEL, Columns.OUTPOINT]
stretch_column = Columns.LABEL
def __init__(self, parent):
super().__init__(parent, self.create_menu,
stretch_column=self.Columns.LABEL,
stretch_column=self.stretch_column,
editable_columns=[])
self._spend_set = None
self._utxo_dict = {}