~ffmulticonverter/ffmulticonverter/master

« back to all changes in this revision

Viewing changes to ffmulticonverter/progress.py

  • Committer: Ilias Stamatis
  • Date: 2021-12-22 14:43:22 UTC
  • Revision ID: git-v1:c47d47ab7f66a1973b1314ef531de2fb444c2fe6
QProgressBar.setValue() expects an int, not a float

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
                        time = utils.duration_in_seconds(time)
305
305
                    now_sec = int(float(time))
306
306
                    try:
307
 
                        self.nowQPBar.setValue(100 * now_sec / total)
 
307
                        self.nowQPBar.setValue(int(100 * now_sec / total))
308
308
                    except (UnboundLocalError, ZeroDivisionError):
309
309
                        pass
310
310
                self.update_text_edit_signal.emit(myline)