# Path: Qt.py



from Qt import QtCore, QtWidgets, Qt

    def __init__(self, editor, x, y, width, height):
        """Constructor for the EditorSceneBackground class"""
        super().__init__(x, y, width, height)
        self.setZValue(-100)
        self.setAcceptDrops(True)
        self.editor = editor
        # pen = QtGui.QPen(Qt.cyan)
        # self.setPen(pen)

    def dragEnterEvent(self, event):
        """dragEnterEvent handler for the EditorSceneBackground."""
        if event.mimeData().hasText():
            event.accept()
            self.update()

    def dragMoveEvent(self, event):
        """dragMoveEvent handler for the EditorSceneBackground."""
        if event.mimeData().hasText():
            tiType, tiId, ox, oy, point = event.mimeData().text().split("#")
            if not tiId.startswith("__EDITOR__"):
                clickPos = QtCore.QPointF(float(ox), float(oy))
                self.editor.moveTrackItem(tiId, event.scenePos(),
                                          clickPos, point)

    def dropEvent(self, event):
        """dropEvent handler for the EditorSceneBackground.
        If the dragged item is already on this scene, it moves the item.
        If the dragged item is dragged from the library scene, a new item is
        created."""

# Path: Qt.py



# Path: ts2/editor/editorscenebackground.py
from Qt import QtCore, QtWidgets, Qt


    def __init__(self, editor, x, y, width, height):
        """Constructor for the EditorSceneBackground class"""
        super().__init__(x, y, width, height)
        self.setZValue(-100)
        self.setAcceptDrops(True)
        self.editor = editor
        # pen = QtGui.QPen(Qt.cyan)
        # self.setPen(pen)

    def dragEnterEvent(self, event):
        """dragEnterEvent handler for the EditorSceneBackground."""
        if event.mimeData().hasText():
            event.accept()
            self.update()

    def dragMoveEvent(self, event):
        """dragMoveEvent handler for the EditorSceneBackground."""
        if event.mimeData().hasText():
            tiType, tiId, ox, oy, point = event.mimeData().text().split("#")
            if not tiId.startswith("__EDITOR__"):
                clickPos = QtCore.QPointF(float(ox), float(oy))
                self.editor.moveTrackItem(tiId, event.scenePos(),
                                          clickPos, point)

    def dropEvent(self, event):
        """dropEvent handler for the EditorSceneBackground.
        If the dragged item is already on this scene, it moves the item.
        If the dragged item is dragged from the library scene, a new item is
        created."""

        if event.mimeData().hasText():