diff options
| author | Maximilian Siess | 2017-04-20 19:01:19 +0200 |
|---|---|---|
| committer | Maximilian Siess | 2017-04-20 19:01:19 +0200 |
| commit | 8423d958201f0230f4c4887a4b75f14f54a2161a (patch) | |
| tree | 6af71206ccee644e3b39419b708dc747fab9f169 /main.py | |
| parent | f639760ffc8f3152b46c32a881303a7522b8daca (diff) | |
added font size of text in preview
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -14,7 +14,7 @@ import preview_thread, core, video_thread class Main(QtCore.QObject): - newTask = QtCore.pyqtSignal(str, str, QFont, str, int, int) + newTask = QtCore.pyqtSignal(str, str, QFont, int, str, int, int) processTask = QtCore.pyqtSignal() videoTask = QtCore.pyqtSignal(str, str, QFont, str, str, str) @@ -52,6 +52,7 @@ class Main(QtCore.QObject): window.alignmentComboBox.currentIndexChanged.connect(self.drawPreview) window.textXSpinBox.valueChanged.connect(self.drawPreview) window.textYSpinBox.valueChanged.connect(self.drawPreview) + window.fontsizeSpinBox.valueChanged.connect(self.drawPreview) window.progressBar_create.setValue(0) window.setWindowTitle("Audio Visualizer") @@ -70,6 +71,8 @@ class Main(QtCore.QObject): window.alignmentComboBox.addItem("Left"); window.alignmentComboBox.addItem("Middle"); window.alignmentComboBox.addItem("Right"); + window.textXSpinBox.setValue(70); + window.textYSpinBox.setValue(375); titleFont = self.settings.value("titleFont") if not titleFont == None: @@ -147,6 +150,7 @@ class Main(QtCore.QObject): self.newTask.emit(self.window.label_background.text(), self.window.lineEdit_title.text(), self.window.fontComboBox.currentFont(), + self.window.fontsizeSpinBox.value(), self.window.alignmentComboBox.currentText(), self.window.textXSpinBox.value(), self.window.textYSpinBox.value()) |
