Move PySide6 imports before qweechat ones
This commit is contained in:
parent
dfe51b71f5
commit
f3da694d2c
@ -20,8 +20,7 @@
|
||||
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from PySide6 import QtCore
|
||||
from PySide6 import QtWidgets as QtGui
|
||||
from PySide6 import QtCore, QtWidgets as QtGui
|
||||
|
||||
|
||||
class AboutDialog(QtGui.QDialog):
|
||||
|
@ -19,14 +19,15 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
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."""
|
||||
|
@ -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."""
|
||||
|
@ -20,11 +20,11 @@
|
||||
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from PySide6 import QtWidgets
|
||||
|
||||
from qweechat.chat import ChatTextEdit
|
||||
from qweechat.input import InputLineEdit
|
||||
|
||||
from PySide6 import QtWidgets
|
||||
|
||||
|
||||
class DebugDialog(QtWidgets.QDialog):
|
||||
"""Debug dialog."""
|
||||
|
@ -20,8 +20,7 @@
|
||||
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from PySide6 import QtCore
|
||||
from PySide6 import QtWidgets
|
||||
from PySide6 import QtCore, QtWidgets
|
||||
|
||||
|
||||
class InputLineEdit(QtWidgets.QLineEdit):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user