pyside6 refactor

This commit is contained in:
jkennedyvz 2022-05-22 17:54:19 -07:00
commit 15f2e2d7f7
51 changed files with 125 additions and 125 deletions

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from xlib import qt as qtx from xlib import qt as qtx
from xlib.mp import csw as lib_csw from xlib.mp import csw as lib_csw

View file

@ -1,8 +1,8 @@
from pathlib import Path from pathlib import Path
from localization import Localization from localization import Localization
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from xlib import path as lib_path from xlib import path as lib_path

View file

@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from xlib.qt.gui.from_file import QXImage_from_file from xlib.qt.gui.from_file import QXImage_from_file

View file

@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from xlib import path as lib_path from xlib import path as lib_path
from xlib.qt.gui.from_file import QXImage_from_file from xlib.qt.gui.from_file import QXImage_from_file
from xlib.qt.gui.QXImageSequence import QXImageSequence from xlib.qt.gui.QXImageSequence import QXImageSequence

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
AlignLeft = Qt.AlignmentFlag.AlignLeft AlignLeft = Qt.AlignmentFlag.AlignLeft
AlignLeading = Qt.AlignmentFlag.AlignLeading AlignLeading = Qt.AlignmentFlag.AlignLeading

View file

@ -3,9 +3,9 @@ import sys
import time import time
import traceback import traceback
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .qtex import * from .qtex import *

View file

@ -1,6 +1,6 @@
# from PyQt6.QtCore import * # from PySide6.QtCore import *
# from PyQt6.QtGui import * # from PySide6.QtGui import *
# from PyQt6.QtWidgets import * # from PySide6.QtWidgets import *
# #from localization import StringsDB # #from localization import StringsDB
# from .QXMainWindow import * # from .QXMainWindow import *

View file

@ -1,7 +1,7 @@
import numpy as np import numpy as np
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
# class QActionEx(QAction): # class QActionEx(QAction):

View file

@ -1,6 +1,6 @@
from typing import Tuple from typing import Tuple
from PyQt6.QtCore import * from PySide6.QtCore import *
_linear_easing_curve = QEasingCurve(QEasingCurve.Type.Linear) _linear_easing_curve = QEasingCurve(QEasingCurve.Type.Linear)
class QXTimeLine(QTimeLine): class QXTimeLine(QTimeLine):

View file

@ -1,4 +1,4 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
class QXTimer(QTimer): class QXTimer(QTimer):

View file

@ -1,6 +1,6 @@
from collections import Iterable from collections import Iterable
from PyQt6.QtCore import * from PySide6.QtCore import *
class BlockSignals: class BlockSignals:

View file

@ -1,5 +1,5 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from .QXPixmap import QXPixmap from .QXPixmap import QXPixmap

View file

@ -1,5 +1,5 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
class QXPixmap(QPixmap): class QXPixmap(QPixmap):

View file

@ -1,4 +1,4 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from .QXImage import QXImage from .QXImage import QXImage
from .QXPixmap import QXPixmap from .QXPixmap import QXPixmap

View file

@ -1,7 +1,7 @@
from typing import Union from typing import Union
import numpy as np import numpy as np
from PyQt6.QtGui import * from PySide6.QtGui import *
from ...image import ImageProcessor, get_NHWC_shape from ...image import ImageProcessor, get_NHWC_shape

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXFrame import QXFrame from .QXFrame import QXFrame
from .QXHBoxLayout import QXHBoxLayout from .QXHBoxLayout import QXHBoxLayout

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget
from typing import List from typing import List

View file

@ -1,4 +1,4 @@
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
class QXDirDialog(QFileDialog): class QXDirDialog(QFileDialog):

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,4 +1,4 @@
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
class QXFileDialog(QFileDialog): class QXFileDialog(QFileDialog):

View file

@ -1,9 +1,9 @@
from typing import List, Union from typing import List, Union
import numpy as np import numpy as np
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..gui.from_np import QImage_from_np from ..gui.from_np import QImage_from_np
from .QXWidget import QXWidget from .QXWidget import QXWidget

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget
from .QXMainApplication import QXMainApplication from .QXMainApplication import QXMainApplication

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXFrame import QXFrame from .QXFrame import QXFrame
from .QXHBoxLayout import QXHBoxLayout from .QXHBoxLayout import QXHBoxLayout

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXFrame import QXFrame from .QXFrame import QXFrame
from .QXVBoxLayout import QXVBoxLayout from .QXVBoxLayout import QXVBoxLayout

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.widget import set_contents_margins from ..core.widget import set_contents_margins

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.widget import set_contents_margins from ..core.widget import set_contents_margins

View file

@ -1,4 +1,4 @@
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXLabel import QXLabel from .QXLabel import QXLabel

View file

@ -1,8 +1,8 @@
from typing import Any, Union from typing import Any, Union
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..gui import QXImage from ..gui import QXImage
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,8 +1,8 @@
from pathlib import Path from pathlib import Path
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.QXTimer import QXTimer from ..core.QXTimer import QXTimer
from ...db import KeyValueDB from ...db import KeyValueDB

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,7 +1,7 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtOpenGL import * from PySide6.QtOpenGL import *
from PyQt6.QtOpenGLWidgets import * from PySide6.QtOpenGLWidgets import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXWindow import QXWindow from .QXWindow import QXWindow
class QXPopupWindow(QXWindow): class QXPopupWindow(QXWindow):

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.QXTimeLine import QXTimeLine from ..core.QXTimeLine import QXTimeLine
from ..gui import QXImage, QXImageSequence from ..gui import QXImage, QXImageSequence

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from typing import Iterable from typing import Iterable
from .QXComboBox import QXComboBox from .QXComboBox import QXComboBox

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXWindow import QXWindow from .QXWindow import QXWindow
class QXSplashWindow(QXWindow): class QXSplashWindow(QXWindow):

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.widget import set_contents_margins from ..core.widget import set_contents_margins

View file

@ -1,4 +1,4 @@
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXLabel import QXLabel from .QXLabel import QXLabel

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ._part_QXWidget import _part_QXWidget from ._part_QXWidget import _part_QXWidget

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXWidget import QXWidget from .QXWidget import QXWidget
from .QXHBoxLayout import QXHBoxLayout from .QXHBoxLayout import QXHBoxLayout

View file

@ -1,5 +1,5 @@
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from .QXWidget import QXWidget from .QXWidget import QXWidget
from .QXVBoxLayout import QXVBoxLayout from .QXVBoxLayout import QXVBoxLayout

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ...python import EventListener from ...python import EventListener
from .forward_declarations import forward_declarations from .forward_declarations import forward_declarations

View file

@ -1,6 +1,6 @@
from PyQt6.QtCore import * from PySide6.QtCore import *
from PyQt6.QtGui import * from PySide6.QtGui import *
from PyQt6.QtWidgets import * from PySide6.QtWidgets import *
from ..core.widget import BlockSignals from ..core.widget import BlockSignals
from .QXMainApplication import QXMainApplication from .QXMainApplication import QXMainApplication