aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authortassaron2017-05-21 22:44:48 -0400
committertassaron2017-05-21 22:44:48 -0400
commite77199219521ab819730574c17a819c7e2bfe84d (patch)
tree2541d0570c43237f8faff97922f687d9d1d06bc4 /main.py
parentfb5115f0b205adbcd8f5a2d4d29a98fbc79cec60 (diff)
more loading feedback
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 69a01dd..ac7acbc 100644
--- a/main.py
+++ b/main.py
@@ -147,6 +147,7 @@ class Main(QtCore.QObject):
self.videoWorker.moveToThread(self.videoThread)
self.videoWorker.videoCreated.connect(self.videoCreated)
self.videoWorker.progressBarUpdate.connect(self.progressBarUpdated)
+ self.videoWorker.progressBarSetText.connect(self.progressBarSetText)
self.videoThread.start()
self.videoTask.emit(self.window.label_background.text(),
@@ -163,6 +164,9 @@ class Main(QtCore.QObject):
def progressBarUpdated(self, value):
self.window.progressBar_create.setValue(value)
+ def progressBarSetText(self, value):
+ self.window.progressBar_create.setFormat(value)
+
def videoCreated(self):
self.videoThread.quit()
self.videoThread.wait()