From bd1f7b539e09d77c75baa7512bd8fec1dedc5f47 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 26 Dec 2018 03:58:50 +0100 Subject: [PATCH] qt: don't import PyQt5.Qt related #4960 --- electrum/plugins/hw_wallet/qt.py | 2 +- electrum/plugins/keepkey/qt.py | 6 +++--- electrum/plugins/ledger/auth2fa.py | 2 +- electrum/plugins/safe_t/qt.py | 6 +++--- electrum/plugins/trezor/qt.py | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/electrum/plugins/hw_wallet/qt.py b/electrum/plugins/hw_wallet/qt.py index fc188ad00..e30ad11c3 100644 --- a/electrum/plugins/hw_wallet/qt.py +++ b/electrum/plugins/hw_wallet/qt.py @@ -26,7 +26,7 @@ import threading -from PyQt5.Qt import QVBoxLayout, QLabel +from PyQt5.QtWidgets import QVBoxLayout, QLabel from electrum.gui.qt.password_dialog import PasswordLayout, PW_PASSPHRASE from electrum.gui.qt.util import * diff --git a/electrum/plugins/keepkey/qt.py b/electrum/plugins/keepkey/qt.py index 8496b1edc..cef051c53 100644 --- a/electrum/plugins/keepkey/qt.py +++ b/electrum/plugins/keepkey/qt.py @@ -1,9 +1,9 @@ from functools import partial import threading -from PyQt5.Qt import Qt -from PyQt5.Qt import QGridLayout, QInputDialog, QPushButton -from PyQt5.Qt import QVBoxLayout, QLabel +from PyQt5.QtCore import Qt +from PyQt5.QtWidgets import QGridLayout, QInputDialog, QPushButton +from PyQt5.QtWidgets import QVBoxLayout, QLabel from electrum.gui.qt.util import * from electrum.i18n import _ diff --git a/electrum/plugins/ledger/auth2fa.py b/electrum/plugins/ledger/auth2fa.py index f6ddeab01..fbc44e14e 100644 --- a/electrum/plugins/ledger/auth2fa.py +++ b/electrum/plugins/ledger/auth2fa.py @@ -7,7 +7,7 @@ from binascii import hexlify, unhexlify import websocket -from PyQt5.Qt import QDialog, QLineEdit, QTextEdit, QVBoxLayout, QLabel +from PyQt5.QtWidgets import QDialog, QLineEdit, QTextEdit, QVBoxLayout, QLabel import PyQt5.QtCore as QtCore from PyQt5.QtWidgets import * diff --git a/electrum/plugins/safe_t/qt.py b/electrum/plugins/safe_t/qt.py index 1a764be91..36bd4a52d 100644 --- a/electrum/plugins/safe_t/qt.py +++ b/electrum/plugins/safe_t/qt.py @@ -1,9 +1,9 @@ from functools import partial import threading -from PyQt5.Qt import Qt -from PyQt5.Qt import QGridLayout, QInputDialog, QPushButton -from PyQt5.Qt import QVBoxLayout, QLabel +from PyQt5.QtCore import Qt +from PyQt5.QtWidgets import QGridLayout, QInputDialog, QPushButton +from PyQt5.QtWidgets import QVBoxLayout, QLabel from electrum.gui.qt.util import * from electrum.i18n import _ diff --git a/electrum/plugins/trezor/qt.py b/electrum/plugins/trezor/qt.py index aaa6aa723..5045c7388 100644 --- a/electrum/plugins/trezor/qt.py +++ b/electrum/plugins/trezor/qt.py @@ -1,9 +1,9 @@ from functools import partial import threading -from PyQt5.Qt import Qt -from PyQt5.Qt import QGridLayout, QInputDialog, QPushButton -from PyQt5.Qt import QVBoxLayout, QLabel +from PyQt5.QtCore import Qt +from PyQt5.QtWidgets import QGridLayout, QInputDialog, QPushButton +from PyQt5.QtWidgets import QVBoxLayout, QLabel from electrum.gui.qt.util import * from electrum.i18n import _