electrum

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

commit fd1f0839589b0250114adc5674ae1c5394710686
parent 6cd00eb36b9759bd9e4d4c725c60e76dcc40ab42
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 19 Sep 2014 13:48:49 +0200

simplify names

Diffstat:
Mplugins/exchange_rate.py | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/plugins/exchange_rate.py b/plugins/exchange_rate.py @@ -472,10 +472,10 @@ class Plugin(BasePlugin): if not self.resp_hist: return - self.gui.main_window.is_edit = True - self.gui.main_window.history_list.setColumnCount(6) - self.gui.main_window.history_list.setHeaderLabels( [ '', _('Date'), _('Description') , _('Amount'), _('Balance'), _('Fiat Amount')] ) - root = self.gui.main_window.history_list.invisibleRootItem() + self.win.is_edit = True + self.win.history_list.setColumnCount(6) + self.win.history_list.setHeaderLabels( [ '', _('Date'), _('Description') , _('Amount'), _('Balance'), _('Fiat Amount')] ) + root = self.win.history_list.invisibleRootItem() childcount = root.childCount() for i in range(childcount): item = root.child(i) @@ -516,11 +516,11 @@ class Plugin(BasePlugin): if Decimal(str(tx_info['value'])) < 0: item.setForeground(5, QBrush(QColor("#BC1E1E"))) - for i, width in enumerate(self.gui.main_window.column_widths['history']): - self.gui.main_window.history_list.setColumnWidth(i, width) - self.gui.main_window.history_list.setColumnWidth(4, 140) - self.gui.main_window.history_list.setColumnWidth(5, 120) - self.gui.main_window.is_edit = False + for i, width in enumerate(self.win.column_widths['history']): + self.win.history_list.setColumnWidth(i, width) + self.win.history_list.setColumnWidth(4, 140) + self.win.history_list.setColumnWidth(5, 120) + self.win.is_edit = False def settings_widget(self, window): @@ -585,10 +585,10 @@ class Plugin(BasePlugin): self.request_history_rates() else: self.config.set_key('history_rates', 'unchecked') - self.gui.main_window.history_list.setHeaderLabels( [ '', _('Date'), _('Description') , _('Amount'), _('Balance')] ) - self.gui.main_window.history_list.setColumnCount(5) - for i,width in enumerate(self.gui.main_window.column_widths['history']): - self.gui.main_window.history_list.setColumnWidth(i, width) + self.win.history_list.setHeaderLabels( [ '', _('Date'), _('Description') , _('Amount'), _('Balance')] ) + self.win.history_list.setColumnCount(5) + for i,width in enumerate(self.win.column_widths['history']): + self.win.history_list.setColumnWidth(i, width) def set_hist_check(hist_checkbox): cur_exchange = self.config.get('use_exchange', "Blockchain")