From f3da694d2ca7bd471b70fc326c7dce6eb0592fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 13 Nov 2021 16:49:32 +0100 Subject: [PATCH] Move PySide6 imports before qweechat ones --- qweechat/about.py | 3 +-- qweechat/buffer.py | 5 +++-- qweechat/chat.py | 6 +++--- qweechat/debug.py | 4 ++-- qweechat/input.py | 3 +-- qweechat/qweechat.py | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/qweechat/about.py b/qweechat/about.py index 88dd027..5336ac4 100644 --- a/qweechat/about.py +++ b/qweechat/about.py @@ -20,8 +20,7 @@ # along with QWeeChat. If not, see . # -from PySide6 import QtCore -from PySide6 import QtWidgets as QtGui +from PySide6 import QtCore, QtWidgets as QtGui class AboutDialog(QtGui.QDialog): diff --git a/qweechat/buffer.py b/qweechat/buffer.py index 4320fdd..672135e 100644 --- a/qweechat/buffer.py +++ b/qweechat/buffer.py @@ -19,14 +19,15 @@ # You should have received a copy of the GNU General Public License # along with QWeeChat. If not, see . # + from pkg_resources import resource_filename +from PySide6 import QtCore, QtGui, QtWidgets + from qweechat.chat import ChatTextEdit from qweechat.input import InputLineEdit from qweechat.weechat import color -from PySide6 import QtCore, QtGui, QtWidgets - class GenericListWidget(QtWidgets.QListWidget): """Generic QListWidget with dynamic size.""" diff --git a/qweechat/chat.py b/qweechat/chat.py index 2d5f47e..3a1e659 100644 --- a/qweechat/chat.py +++ b/qweechat/chat.py @@ -21,12 +21,12 @@ # import datetime + +from PySide6 import QtCore, QtWidgets, QtGui + from qweechat import config from qweechat.weechat import color -from PySide6 import QtCore -from PySide6 import QtWidgets, QtGui - class ChatTextEdit(QtWidgets.QTextEdit): """Chat area.""" diff --git a/qweechat/debug.py b/qweechat/debug.py index b5f4d85..8f083be 100644 --- a/qweechat/debug.py +++ b/qweechat/debug.py @@ -20,11 +20,11 @@ # along with QWeeChat. If not, see . # +from PySide6 import QtWidgets + from qweechat.chat import ChatTextEdit from qweechat.input import InputLineEdit -from PySide6 import QtWidgets - class DebugDialog(QtWidgets.QDialog): """Debug dialog.""" diff --git a/qweechat/input.py b/qweechat/input.py index 9d81c1f..b408407 100644 --- a/qweechat/input.py +++ b/qweechat/input.py @@ -20,8 +20,7 @@ # along with QWeeChat. If not, see . # -from PySide6 import QtCore -from PySide6 import QtWidgets +from PySide6 import QtCore, QtWidgets class InputLineEdit(QtWidgets.QLineEdit): diff --git a/qweechat/qweechat.py b/qweechat/qweechat.py index cc181c3..92861c7 100644 --- a/qweechat/qweechat.py +++ b/qweechat/qweechat.py @@ -37,7 +37,7 @@ import sys import traceback from pkg_resources import resource_filename -from PySide6 import QtGui, QtWidgets, QtCore +from PySide6 import QtCore, QtGui, QtWidgets from qweechat import config from qweechat.weechat import protocol