tNetwork dialog -> window modal - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7437746cd256ae651c5de332a05fb9dd73ed66f0 DIR parent 5c1828e03d75f5a0005669e0975911cee3c68c6f HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Tue, 22 Dec 2015 22:23:51 +0900 Network dialog -> window modal Clean up imports Diffstat: M gui/qt/network_dialog.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) --- DIR diff --git a/gui/qt/network_dialog.py b/gui/qt/network_dialog.py t@@ -16,30 +16,21 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import sys, time, datetime, re, threading -import os.path, json, ast, traceback - from PyQt4.QtGui import * from PyQt4.QtCore import * from electrum.i18n import _ -from electrum.util import print_error, print_msg from electrum import DEFAULT_PORTS from electrum.network import serialize_server, deserialize_server from util import * -#protocol_names = ['TCP', 'HTTP', 'SSL', 'HTTPS'] -#protocol_letters = 'thsg' protocol_names = ['TCP', 'SSL'] protocol_letters = 'ts' -class NetworkDialog(QDialog): +class NetworkDialog(WindowModalDialog): def __init__(self, network, config, parent): - - QDialog.__init__(self,parent) - self.setModal(1) - self.setWindowTitle(_('Network')) + WindowModalDialog.__init__(self, parent, _('Network')) self.setMinimumSize(375, 20) self.network = network