vlcframe_ui.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'widgets/vlcframe.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.15.4
  5. #
  6. # WARNING: Any manual changes made to this file will be lost when pyuic5 is
  7. # run again. Do not edit this file unless you know what you are doing.
  8. from PyQt5 import QtCore, QtGui, QtWidgets
  9. class Ui_VlcFrame(object):
  10. def setupUi(self, VlcFrame):
  11. VlcFrame.setObjectName("VlcFrame")
  12. VlcFrame.resize(424, 79)
  13. VlcFrame.setMinimumSize(QtCore.QSize(424, 78))
  14. VlcFrame.setMaximumSize(QtCore.QSize(16777215, 10000))
  15. self.horizontalLayout_2 = QtWidgets.QHBoxLayout(VlcFrame)
  16. self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
  17. self.horizontalLayout_2.setSpacing(0)
  18. self.horizontalLayout_2.setObjectName("horizontalLayout_2")
  19. self.verticalLayout_2 = QtWidgets.QVBoxLayout()
  20. self.verticalLayout_2.setSpacing(0)
  21. self.verticalLayout_2.setObjectName("verticalLayout_2")
  22. self.horizontalLayout = QtWidgets.QHBoxLayout()
  23. self.horizontalLayout.setContentsMargins(12, 12, 12, 12)
  24. self.horizontalLayout.setSpacing(12)
  25. self.horizontalLayout.setObjectName("horizontalLayout")
  26. self.btnPlayPause = QtWidgets.QToolButton(VlcFrame)
  27. self.btnPlayPause.setMinimumSize(QtCore.QSize(56, 28))
  28. self.btnPlayPause.setMaximumSize(QtCore.QSize(56, 28))
  29. icon = QtGui.QIcon()
  30. icon.addPixmap(QtGui.QPixmap(":/img/rsc/play.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  31. self.btnPlayPause.setIcon(icon)
  32. self.btnPlayPause.setObjectName("btnPlayPause")
  33. self.horizontalLayout.addWidget(self.btnPlayPause)
  34. self.progressionSlider = ClickableSlider(VlcFrame)
  35. self.progressionSlider.setMinimumSize(QtCore.QSize(168, 28))
  36. self.progressionSlider.setMaximum(1000)
  37. self.progressionSlider.setOrientation(QtCore.Qt.Horizontal)
  38. self.progressionSlider.setObjectName("progressionSlider")
  39. self.horizontalLayout.addWidget(self.progressionSlider)
  40. self.btnMute = QtWidgets.QToolButton(VlcFrame)
  41. self.btnMute.setMinimumSize(QtCore.QSize(28, 28))
  42. self.btnMute.setMaximumSize(QtCore.QSize(28, 28))
  43. icon1 = QtGui.QIcon()
  44. icon1.addPixmap(QtGui.QPixmap(":/img/rsc/volume.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  45. self.btnMute.setIcon(icon1)
  46. self.btnMute.setObjectName("btnMute")
  47. self.horizontalLayout.addWidget(self.btnMute)
  48. self.volumeSlider = ClickableSlider(VlcFrame)
  49. self.volumeSlider.setMinimumSize(QtCore.QSize(100, 28))
  50. self.volumeSlider.setMaximumSize(QtCore.QSize(100, 16777215))
  51. self.volumeSlider.setProperty("value", 50)
  52. self.volumeSlider.setOrientation(QtCore.Qt.Horizontal)
  53. self.volumeSlider.setObjectName("volumeSlider")
  54. self.horizontalLayout.addWidget(self.volumeSlider)
  55. self.verticalLayout_2.addLayout(self.horizontalLayout)
  56. self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
  57. self.horizontalLayout_3.setContentsMargins(12, -1, 12, -1)
  58. self.horizontalLayout_3.setObjectName("horizontalLayout_3")
  59. self.btnPrevious = QtWidgets.QToolButton(VlcFrame)
  60. self.btnPrevious.setEnabled(False)
  61. icon2 = QtGui.QIcon()
  62. icon2.addPixmap(QtGui.QPixmap(":/img/rsc/rewind.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  63. self.btnPrevious.setIcon(icon2)
  64. self.btnPrevious.setObjectName("btnPrevious")
  65. self.horizontalLayout_3.addWidget(self.btnPrevious)
  66. self.btnNext = QtWidgets.QToolButton(VlcFrame)
  67. self.btnNext.setEnabled(False)
  68. icon3 = QtGui.QIcon()
  69. icon3.addPixmap(QtGui.QPixmap(":/img/rsc/fast-forward.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  70. self.btnNext.setIcon(icon3)
  71. self.btnNext.setObjectName("btnNext")
  72. self.horizontalLayout_3.addWidget(self.btnNext)
  73. self.lblTrack = QtWidgets.QLabel(VlcFrame)
  74. self.lblTrack.setMinimumSize(QtCore.QSize(0, 14))
  75. self.lblTrack.setText("")
  76. self.lblTrack.setTextFormat(QtCore.Qt.PlainText)
  77. self.lblTrack.setAlignment(QtCore.Qt.AlignCenter)
  78. self.lblTrack.setWordWrap(True)
  79. self.lblTrack.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
  80. self.lblTrack.setObjectName("lblTrack")
  81. self.horizontalLayout_3.addWidget(self.lblTrack)
  82. self.verticalLayout_2.addLayout(self.horizontalLayout_3)
  83. self.horizontalLayout_2.addLayout(self.verticalLayout_2)
  84. self.retranslateUi(VlcFrame)
  85. QtCore.QMetaObject.connectSlotsByName(VlcFrame)
  86. def retranslateUi(self, VlcFrame):
  87. _translate = QtCore.QCoreApplication.translate
  88. VlcFrame.setWindowTitle(_translate("VlcFrame", "Frame"))
  89. self.btnPlayPause.setText(_translate("VlcFrame", "Lire"))
  90. self.btnMute.setText(_translate("VlcFrame", "Vol."))
  91. self.btnPrevious.setToolTip(_translate("VlcFrame", "Revenir au morceau précédent"))
  92. self.btnPrevious.setText(_translate("VlcFrame", "..."))
  93. self.btnNext.setToolTip(_translate("VlcFrame", "Aller au morceau suivant"))
  94. self.btnNext.setText(_translate("VlcFrame", "..."))
  95. from .clickable_slider import ClickableSlider
  96. from .. import rsc_rc