tservers list widget - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1e565a37a70f10b8f9945b55313ebd3a6f627124 DIR parent ce73a6ba4e2159aac6bcd4da98e950f8781e4f05 HTML Author: thomasv <thomasv@gitorious> Date: Tue, 14 Feb 2012 14:58:38 +0100 servers list widget Diffstat: M client/gui_qt.py | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) --- DIR diff --git a/client/gui_qt.py b/client/gui_qt.py t@@ -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)