gui.py 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'gui.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.13.1
  5. #
  6. # WARNING! All changes made in this file will be lost!
  7. from PyQt5 import QtCore, QtGui, QtWidgets
  8. class Ui_window(object):
  9. def setupUi(self, window):
  10. window.setObjectName("window")
  11. window.resize(1045, 487)
  12. self.centralwidget = QtWidgets.QWidget(window)
  13. self.centralwidget.setObjectName("centralwidget")
  14. self.bSelectMedia = QtWidgets.QPushButton(self.centralwidget)
  15. self.bSelectMedia.setGeometry(QtCore.QRect(10, 10, 141, 34))
  16. self.bSelectMedia.setObjectName("bSelectMedia")
  17. self.bConvert = QtWidgets.QPushButton(self.centralwidget)
  18. self.bConvert.setEnabled(False)
  19. self.bConvert.setGeometry(QtCore.QRect(200, 290, 341, 34))
  20. self.bConvert.setObjectName("bConvert")
  21. self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
  22. self.progressBar.setGeometry(QtCore.QRect(20, 340, 1021, 23))
  23. self.progressBar.setProperty("value", 0)
  24. self.progressBar.setObjectName("progressBar")
  25. self.labelCurrentOperation = QtWidgets.QLabel(self.centralwidget)
  26. self.labelCurrentOperation.setGeometry(QtCore.QRect(170, 350, 871, 41))
  27. self.labelCurrentOperation.setText("")
  28. self.labelCurrentOperation.setObjectName("labelCurrentOperation")
  29. self.bOpenOutputFolder = QtWidgets.QPushButton(self.centralwidget)
  30. self.bOpenOutputFolder.setGeometry(QtCore.QRect(550, 290, 241, 34))
  31. self.bOpenOutputFolder.setObjectName("bOpenOutputFolder")
  32. self.bSelectOutputFolder = QtWidgets.QPushButton(self.centralwidget)
  33. self.bSelectOutputFolder.setGeometry(QtCore.QRect(10, 180, 141, 34))
  34. self.bSelectOutputFolder.setObjectName("bSelectOutputFolder")
  35. self.qleOutputFolder = QtWidgets.QLineEdit(self.centralwidget)
  36. self.qleOutputFolder.setGeometry(QtCore.QRect(160, 180, 861, 32))
  37. self.qleOutputFolder.setText("")
  38. self.qleOutputFolder.setReadOnly(True)
  39. self.qleOutputFolder.setObjectName("qleOutputFolder")
  40. self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
  41. self.groupBox.setGeometry(QtCore.QRect(160, 10, 871, 161))
  42. self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
  43. self.groupBox.setFlat(False)
  44. self.groupBox.setCheckable(False)
  45. self.groupBox.setObjectName("groupBox")
  46. self.qlwListFilesSelected = QtWidgets.QListWidget(self.groupBox)
  47. self.qlwListFilesSelected.setGeometry(QtCore.QRect(10, 30, 851, 121))
  48. self.qlwListFilesSelected.setObjectName("qlwListFilesSelected")
  49. self.bRemoveFile = QtWidgets.QPushButton(self.centralwidget)
  50. self.bRemoveFile.setGeometry(QtCore.QRect(10, 50, 141, 34))
  51. self.bRemoveFile.setObjectName("bRemoveFile")
  52. self.labelProgressFileIndex = QtWidgets.QLabel(self.centralwidget)
  53. self.labelProgressFileIndex.setGeometry(QtCore.QRect(30, 350, 131, 41))
  54. self.labelProgressFileIndex.setText("")
  55. self.labelProgressFileIndex.setObjectName("labelProgressFileIndex")
  56. self.bCancel = QtWidgets.QPushButton(self.centralwidget)
  57. self.bCancel.setGeometry(QtCore.QRect(470, 390, 108, 36))
  58. self.bCancel.setObjectName("bCancel")
  59. self.chbxOpenOutputFilesAuto = QtWidgets.QCheckBox(self.centralwidget)
  60. self.chbxOpenOutputFilesAuto.setGeometry(QtCore.QRect(10, 220, 291, 32))
  61. self.chbxOpenOutputFilesAuto.setChecked(True)
  62. self.chbxOpenOutputFilesAuto.setObjectName("chbxOpenOutputFilesAuto")
  63. self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
  64. self.horizontalLayoutWidget.setGeometry(QtCore.QRect(200, 250, 591, 34))
  65. self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
  66. self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
  67. self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
  68. self.horizontalLayout_5.setObjectName("horizontalLayout_5")
  69. self.labelSelectLang = QtWidgets.QLabel(self.horizontalLayoutWidget)
  70. self.labelSelectLang.setObjectName("labelSelectLang")
  71. self.horizontalLayout_5.addWidget(self.labelSelectLang)
  72. self.cbSelectLang = QtWidgets.QComboBox(self.horizontalLayoutWidget)
  73. self.cbSelectLang.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
  74. self.cbSelectLang.setObjectName("cbSelectLang")
  75. self.horizontalLayout_5.addWidget(self.cbSelectLang)
  76. window.setCentralWidget(self.centralwidget)
  77. self.menubar = QtWidgets.QMenuBar(window)
  78. self.menubar.setGeometry(QtCore.QRect(0, 0, 1045, 34))
  79. self.menubar.setObjectName("menubar")
  80. self.menuAbout = QtWidgets.QMenu(self.menubar)
  81. self.menuAbout.setObjectName("menuAbout")
  82. window.setMenuBar(self.menubar)
  83. self.statusbar = QtWidgets.QStatusBar(window)
  84. self.statusbar.setObjectName("statusbar")
  85. window.setStatusBar(self.statusbar)
  86. self.actionLicense = QtWidgets.QAction(window)
  87. self.actionLicense.setObjectName("actionLicense")
  88. self.actionDonation = QtWidgets.QAction(window)
  89. self.actionDonation.setObjectName("actionDonation")
  90. self.actionAbout_pyTranscriber = QtWidgets.QAction(window)
  91. self.actionAbout_pyTranscriber.setObjectName("actionAbout_pyTranscriber")
  92. self.menuAbout.addAction(self.actionLicense)
  93. self.menuAbout.addAction(self.actionDonation)
  94. self.menuAbout.addAction(self.actionAbout_pyTranscriber)
  95. self.menubar.addAction(self.menuAbout.menuAction())
  96. self.retranslateUi(window)
  97. QtCore.QMetaObject.connectSlotsByName(window)
  98. def retranslateUi(self, window):
  99. _translate = QtCore.QCoreApplication.translate
  100. window.setWindowTitle(_translate("window", "pyTranscriber - v1.6 - 21/01/2020"))
  101. self.bSelectMedia.setText(_translate("window", "Select file(s)"))
  102. self.bConvert.setText(_translate("window", "Transcribe Audio / Generate Subtitles"))
  103. self.bOpenOutputFolder.setText(_translate("window", "Open Output Folder"))
  104. self.bSelectOutputFolder.setText(_translate("window", "Output Location"))
  105. self.groupBox.setTitle(_translate("window", "&List of files to generate transcribe audio / generate subtitles"))
  106. self.bRemoveFile.setText(_translate("window", "Remove file(s)"))
  107. self.bCancel.setText(_translate("window", "Cancel"))
  108. self.chbxOpenOutputFilesAuto.setText(_translate("window", "Open output files automatically"))
  109. self.labelSelectLang.setText(_translate("window", "Audio Language:"))
  110. self.menuAbout.setTitle(_translate("window", "Abo&ut"))
  111. self.actionLicense.setText(_translate("window", "&License"))
  112. self.actionDonation.setText(_translate("window", "&DONATIONS"))
  113. self.actionAbout_pyTranscriber.setText(_translate("window", "&About pyTranscriber"))