Alignment options added to render task

This commit is contained in:
Maximilian Siess 2017-04-18 13:46:24 +02:00
parent c772bf5583
commit 5d796c76b7
5 changed files with 6 additions and 4 deletions

Binary file not shown.

Binary file not shown.

BIN
.video_thread.py.swp Normal file

Binary file not shown.

View File

@ -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())

View File

@ -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)