electrum

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

commit 1e565a37a70f10b8f9945b55313ebd3a6f627124
parent ce73a6ba4e2159aac6bcd4da98e950f8781e4f05
Author: thomasv <thomasv@gitorious>
Date:   Tue, 14 Feb 2012 14:58:38 +0100

servers list widget

Diffstat:
Mclient/gui_qt.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/client/gui_qt.py b/client/gui_qt.py @@ -785,6 +785,13 @@ class ElectrumWindow(QMainWindow): grid.addWidget(host_line, 2, 1) vbox.addLayout(grid) + servers_list = QTreeWidget(parent) + servers_list.setHeaderLabels( [ 'Active servers'] ) + for item in wallet.interface.servers: + servers_list.addTopLevelItem(QTreeWidgetItem( [ item ] )) + servers_list.connect(servers_list, SIGNAL('itemClicked(QTreeWidgetItem*, int)'), lambda x:host_line.setText( x.text(0) + ':50000' )) + vbox.addWidget(servers_list) + vbox.addLayout(ok_cancel_buttons(d)) d.setLayout(vbox)