Move PySide6 imports before qweechat ones

This commit is contained in:
Sébastien Helleu 2021-11-13 16:49:32 +01:00
parent dfe51b71f5
commit f3da694d2c
6 changed files with 11 additions and 12 deletions

View File

@ -20,8 +20,7 @@
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>. # along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
# #
from PySide6 import QtCore from PySide6 import QtCore, QtWidgets as QtGui
from PySide6 import QtWidgets as QtGui
class AboutDialog(QtGui.QDialog): class AboutDialog(QtGui.QDialog):

View File

@ -19,14 +19,15 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>. # along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
# #
from pkg_resources import resource_filename from pkg_resources import resource_filename
from PySide6 import QtCore, QtGui, QtWidgets
from qweechat.chat import ChatTextEdit from qweechat.chat import ChatTextEdit
from qweechat.input import InputLineEdit from qweechat.input import InputLineEdit
from qweechat.weechat import color from qweechat.weechat import color
from PySide6 import QtCore, QtGui, QtWidgets
class GenericListWidget(QtWidgets.QListWidget): class GenericListWidget(QtWidgets.QListWidget):
"""Generic QListWidget with dynamic size.""" """Generic QListWidget with dynamic size."""

View File

@ -21,12 +21,12 @@
# #
import datetime import datetime
from PySide6 import QtCore, QtWidgets, QtGui
from qweechat import config from qweechat import config
from qweechat.weechat import color from qweechat.weechat import color
from PySide6 import QtCore
from PySide6 import QtWidgets, QtGui
class ChatTextEdit(QtWidgets.QTextEdit): class ChatTextEdit(QtWidgets.QTextEdit):
"""Chat area.""" """Chat area."""

View File

@ -20,11 +20,11 @@
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>. # along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
# #
from PySide6 import QtWidgets
from qweechat.chat import ChatTextEdit from qweechat.chat import ChatTextEdit
from qweechat.input import InputLineEdit from qweechat.input import InputLineEdit
from PySide6 import QtWidgets
class DebugDialog(QtWidgets.QDialog): class DebugDialog(QtWidgets.QDialog):
"""Debug dialog.""" """Debug dialog."""

View File

@ -20,8 +20,7 @@
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>. # along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
# #
from PySide6 import QtCore from PySide6 import QtCore, QtWidgets
from PySide6 import QtWidgets
class InputLineEdit(QtWidgets.QLineEdit): class InputLineEdit(QtWidgets.QLineEdit):

View File

@ -37,7 +37,7 @@ import sys
import traceback import traceback
from pkg_resources import resource_filename from pkg_resources import resource_filename
from PySide6 import QtGui, QtWidgets, QtCore from PySide6 import QtCore, QtGui, QtWidgets
from qweechat import config from qweechat import config
from qweechat.weechat import protocol from qweechat.weechat import protocol