From f639760ffc8f3152b46c32a881303a7522b8daca Mon Sep 17 00:00:00 2001 From: Maximilian Siess Date: Thu, 20 Apr 2017 18:47:14 +0200 Subject: added x/y offset of text in preview --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 6e9358b..64c17e2 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ import preview_thread, core, video_thread class Main(QtCore.QObject): - newTask = QtCore.pyqtSignal(str, str, QFont, str) + newTask = QtCore.pyqtSignal(str, str, QFont, str, int, int) processTask = QtCore.pyqtSignal() videoTask = QtCore.pyqtSignal(str, str, QFont, str, str, str) @@ -50,6 +50,8 @@ class Main(QtCore.QObject): window.fontComboBox.currentFontChanged.connect(self.drawPreview) window.lineEdit_title.textChanged.connect(self.drawPreview) window.alignmentComboBox.currentIndexChanged.connect(self.drawPreview) + window.textXSpinBox.valueChanged.connect(self.drawPreview) + window.textYSpinBox.valueChanged.connect(self.drawPreview) window.progressBar_create.setValue(0) window.setWindowTitle("Audio Visualizer") @@ -145,7 +147,9 @@ class Main(QtCore.QObject): self.newTask.emit(self.window.label_background.text(), self.window.lineEdit_title.text(), self.window.fontComboBox.currentFont(), - self.window.alignmentComboBox.currentText()) + self.window.alignmentComboBox.currentText(), + self.window.textXSpinBox.value(), + self.window.textYSpinBox.value()) # self.processTask.emit() def showPreviewImage(self, image): -- cgit v1.2.3