Alignment options added to render task
This commit is contained in:
parent
c772bf5583
commit
5d796c76b7
BIN
.main.py.swp
BIN
.main.py.swp
Binary file not shown.
BIN
.main.ui.swp
BIN
.main.ui.swp
Binary file not shown.
Binary file not shown.
3
main.py
3
main.py
|
@ -16,7 +16,7 @@ class Main(QtCore.QObject):
|
|||
|
||||
newTask = QtCore.pyqtSignal(str, str, QFont, str)
|
||||
processTask = QtCore.pyqtSignal()
|
||||
videoTask = QtCore.pyqtSignal(str, str, QFont, str, str)
|
||||
videoTask = QtCore.pyqtSignal(str, str, QFont, str, str, str)
|
||||
|
||||
def __init__(self, window):
|
||||
|
||||
|
@ -128,6 +128,7 @@ class Main(QtCore.QObject):
|
|||
self.videoTask.emit(self.window.label_background.text(),
|
||||
self.window.lineEdit_title.text(),
|
||||
self.window.fontComboBox.currentFont(),
|
||||
self.window.alignmentComboBox.currentText(),
|
||||
self.window.label_input.text(),
|
||||
self.window.label_output.text())
|
||||
|
||||
|
|
|
@ -18,14 +18,15 @@ class Worker(QtCore.QObject):
|
|||
self.core = core.Core()
|
||||
|
||||
|
||||
@pyqtSlot(str, str, QtGui.QFont, str, str)
|
||||
def createVideo(self, backgroundImage, titleText, titleFont, inputFile, outputFile):
|
||||
@pyqtSlot(str, str, QtGui.QFont, str, str, str)
|
||||
def createVideo(self, backgroundImage, titleText, titleFont, alignment, inputFile, outputFile):
|
||||
# print('worker thread id: {}'.format(QtCore.QThread.currentThreadId()))
|
||||
|
||||
imBackground = self.core.drawBaseImage(
|
||||
backgroundImage,
|
||||
titleText,
|
||||
titleFont)
|
||||
titleFont,
|
||||
alignment)
|
||||
|
||||
self.progressBarUpdate.emit(0)
|
||||
|
||||
|
|
Reference in New Issue