electrum

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

commit 6c18fa1844d8e3d285f6b1b324fe9e27b113268d
parent 5a89734d6c71dc922c05cb917298c41c29aa2d24
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  3 Jun 2014 21:47:27 +0200

simplify send tab layout (unneeded vbox)

Diffstat:
Mgui/qt/main_window.py | 14++++----------
1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -637,11 +637,11 @@ class ElectrumWindow(QMainWindow): def create_send_tab(self): w = QWidget() - grid = QGridLayout() + grid = QGridLayout(w) grid.setSpacing(8) grid.setColumnMinimumWidth(3,300) grid.setColumnStretch(5,1) - + grid.setRowStretch(8, 1) self.payto_e = QLineEdit() self.payto_help = HelpButton(_('Recipient of the funds.') + '\n\n' + _('You may enter a Bitcoin address, a label from your list of contacts (a list of completions will be proposed), or an alias (email-like address that forwards to a Bitcoin address)')) @@ -692,7 +692,7 @@ class ElectrumWindow(QMainWindow): self.send_button = EnterButton(_("Send"), self.do_send) grid.addWidget(self.send_button, 6, 1) - b = EnterButton(_("Clear"),self.do_clear) + b = EnterButton(_("Clear"), self.do_clear) grid.addWidget(b, 6, 2) self.payto_sig = QLabel('') @@ -702,12 +702,6 @@ class ElectrumWindow(QMainWindow): QShortcut(QKeySequence("Down"), w, w.focusNextChild) w.setLayout(grid) - w2 = QWidget() - vbox = QVBoxLayout() - vbox.addWidget(w) - vbox.addStretch(1) - w2.setLayout(vbox) - def entry_changed( is_fee ): self.funds_error = False @@ -752,7 +746,7 @@ class ElectrumWindow(QMainWindow): self.fee_e.textChanged.connect(lambda: entry_changed(True) ) run_hook('create_send_tab', grid) - return w2 + return w def set_pay_from(self, l):