summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2022-05-09 22:03:33 -0400
committertassaron2022-05-09 22:03:33 -0400
commit401fbb9e395c266923b2ae46d0a7af14e0bf71fa (patch)
treec76387b359d0ab50561ea76a3048dec952a260b7
parent878e4f770ca0b168870106d142a79fdcc35f6544 (diff)
rename visualisation to visualization
-rw-r--r--src/command.py11
-rw-r--r--src/gui/mainwindow.py4
2 files changed, 9 insertions, 6 deletions
diff --git a/src/command.py b/src/command.py
index da96b6b..7b05591 100644
--- a/src/command.py
+++ b/src/command.py
@@ -151,14 +151,14 @@ class Command(QtCore.QObject):
151 parser.print_help() 151 parser.print_help()
152 quit(1) 152 quit(1)
153 153
154 self.createAudioVisualisation( 154 self.createAudioVisualization(
155 input_ if not args.input else args.input, 155 input_ if not args.input else args.input,
156 output if not args.output else args.output 156 output if not args.output else args.output
157 ) 157 )
158 return "commandline" 158 return "commandline"
159 159
160 elif args.input and args.output: 160 elif args.input and args.output:
161 self.createAudioVisualisation(args.input, args.output) 161 self.createAudioVisualization(args.input, args.output)
162 return "commandline" 162 return "commandline"
163 163
164 elif args.no_preview: 164 elif args.no_preview:
@@ -175,7 +175,7 @@ class Command(QtCore.QObject):
175 175
176 return "GUI" 176 return "GUI"
177 177
178 def createAudioVisualisation(self, input, output): 178 def createAudioVisualization(self, input, output):
179 self.core.selectedComponents = list( 179 self.core.selectedComponents = list(
180 reversed(self.core.selectedComponents)) 180 reversed(self.core.selectedComponents))
181 self.core.componentListChanged() 181 self.core.componentListChanged()
@@ -211,7 +211,10 @@ class Command(QtCore.QObject):
211 211
212 @QtCore.pyqtSlot() 212 @QtCore.pyqtSlot()
213 def videoCreated(self): 213 def videoCreated(self):
214 quit(0) 214 self.quit(0)
215
216 def quit(self, code):
217 quit(code)
215 218
216 def showMessage(self, **kwargs): 219 def showMessage(self, **kwargs):
217 print(kwargs['msg']) 220 print(kwargs['msg'])
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py
index 75f9867..159dc02 100644
--- a/src/gui/mainwindow.py
+++ b/src/gui/mainwindow.py
@@ -193,7 +193,7 @@ class MainWindow(QtWidgets.QMainWindow):
193 self.progressBar_createVideo.setValue(0) 193 self.progressBar_createVideo.setValue(0)
194 194
195 self.pushButton_createVideo.clicked.connect( 195 self.pushButton_createVideo.clicked.connect(
196 self.createAudioVisualisation) 196 self.createAudioVisualization)
197 197
198 self.pushButton_Cancel.clicked.connect(self.stopVideo) 198 self.pushButton_Cancel.clicked.connect(self.stopVideo)
199 199
@@ -638,7 +638,7 @@ class MainWindow(QtWidgets.QMainWindow):
638 self.videoWorker.cancel() 638 self.videoWorker.cancel()
639 self.canceled = True 639 self.canceled = True
640 640
641 def createAudioVisualisation(self): 641 def createAudioVisualization(self):
642 # create output video if mandatory settings are filled in 642 # create output video if mandatory settings are filled in
643 audioFile = self.lineEdit_audioFile.text() 643 audioFile = self.lineEdit_audioFile.text()
644 outputPath = self.lineEdit_outputFile.text() 644 outputPath = self.lineEdit_outputFile.text()