aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command.py2
-rw-r--r--src/gui/preview_thread.py4
-rw-r--r--src/gui/preview_win.py2
-rw-r--r--src/video_thread.py4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/command.py b/src/command.py
index 267117e..cc13684 100644
--- a/src/command.py
+++ b/src/command.py
@@ -25,7 +25,7 @@ class Command(QtCore.QObject):
createVideo = QtCore.pyqtSignal()
def __init__(self):
- super()
+ super().__init__()
self.core = core.Core()
core.Core.mode = 'commandline'
self.dataDir = self.core.dataDir
diff --git a/src/gui/preview_thread.py b/src/gui/preview_thread.py
index 7829476..614b584 100644
--- a/src/gui/preview_thread.py
+++ b/src/gui/preview_thread.py
@@ -23,10 +23,10 @@ class Worker(QtCore.QObject):
error = pyqtSignal(str)
def __init__(self, parent=None, queue=None):
- QtCore.QObject.__init__(self)
+ super().__init__()
parent.newTask.connect(self.createPreviewImage)
parent.processTask.connect(self.process)
- self.parent = parent
+ #self.parent = parent
self.core = parent.core
self.settings = parent.settings
self.queue = queue
diff --git a/src/gui/preview_win.py b/src/gui/preview_win.py
index 27e0a59..426ff66 100644
--- a/src/gui/preview_win.py
+++ b/src/gui/preview_win.py
@@ -10,7 +10,7 @@ class PreviewWindow(QtWidgets.QLabel):
when the window is resized.
'''
def __init__(self, parent, img):
- super(PreviewWindow, self).__init__()
+ super().__init__()
self.parent = parent
self.setFrameStyle(QtWidgets.QFrame.StyledPanel)
self.pixmap = QtGui.QPixmap(img)
diff --git a/src/video_thread.py b/src/video_thread.py
index 2fe264a..4a28261 100644
--- a/src/video_thread.py
+++ b/src/video_thread.py
@@ -39,13 +39,13 @@ class Worker(QtCore.QObject):
encoding = pyqtSignal(bool)
def __init__(self, parent, inputFile, outputFile, components):
- QtCore.QObject.__init__(self)
+ super().__init__()
self.core = parent.core
self.settings = parent.settings
self.modules = parent.core.modules
parent.createVideo.connect(self.createVideo)
- self.parent = parent
+ #self.parent = parent
self.components = components
self.outputFile = outputFile
self.inputFile = inputFile