-
Notifications
You must be signed in to change notification settings - Fork 2
/
GUI.py
89 lines (78 loc) · 3.98 KB
/
GUI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'GUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QPixmap
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import QLabel
from ImgQLabel import ImgQLabel
from myVideoWidget import myVideoWidget
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1024, 640)
self.video_area = myVideoWidget(Form)
self.video_area.setGeometry(QtCore.QRect(0, 20, 791, 521))
self.video_area.setObjectName("video_area")
self.play_button2 = ImgQLabel(Form)
self.play_button2.setPixmap(QPixmap("./assets/play-button.png"))
self.play_button2.setObjectName("play_button2")
self.play_button2.setGeometry(QtCore.QRect(450, 590, 91, 31))
self.play_button2.setMaximumSize(30, 30)
self.play_button2.setScaledContents(True)
self.previous = ImgQLabel(Form)
self.previous.setPixmap(QPixmap("./assets/previous.png"))
self.previous.setObjectName("previous")
self.previous.setGeometry(QtCore.QRect(300, 590, 71, 41))
self.previous.setMaximumSize(25, 25)
self.previous.setScaledContents(True)
self.next = ImgQLabel(Form)
self.next.setPixmap(QPixmap("./assets/previous.png"))
self.next.setObjectName("next")
self.next.setGeometry(QtCore.QRect(580, 590, 71, 41))
self.next.setMaximumSize(25, 25)
self.next.setScaledContents(True)
self.video_area.setGeometry(QtCore.QRect(0, 20, 791, 521))
self.menubar = QtWidgets.QMenuBar(Form)
self.menubar.setGeometry(QtCore.QRect(0, 0, 391, 23))
self.menubar.setObjectName("menubar")
self.file = QtWidgets.QMenu(self.menubar)
self.file.setObjectName("file")
self.video_process_slider = QtWidgets.QSlider(Form)
self.video_process_slider.setGeometry(QtCore.QRect(0, 560, 801, 22))
self.video_process_slider.setOrientation(QtCore.Qt.Horizontal)
self.video_process_slider.setObjectName("video_process_slider")
self.video_process = QtWidgets.QLabel(Form)
self.video_process.setGeometry(QtCore.QRect(820, 560, 100, 21))
self.video_process.setStyleSheet("font: 10pt \"Times New Roman\";")
self.video_process.setObjectName("video_process")
self.video_list = QtWidgets.QListWidget(Form)
self.video_list.setGeometry(QtCore.QRect(790, 30, 235, 521))
self.video_list.setObjectName("video_list")
self.player_volume = QtWidgets.QSlider(Form)
self.player_volume.setGeometry(QtCore.QRect(730, 590, 111, 16))
self.player_volume.setOrientation(QtCore.Qt.Horizontal)
self.player_volume.setObjectName("player_volume")
self.fileOpenAction = QtWidgets.QAction(Form)
self.fileOpenAction.setObjectName("fileOpenAction")
self.fileRemoveAction = QtWidgets.QAction(Form)
self.fileRemoveAction.setObjectName("fileRemoveAction")
self.file.addAction(self.fileOpenAction)
self.file.addAction(self.fileRemoveAction)
self.menubar.addAction(self.file.menuAction())
Form.setMenuBar(self.menubar)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.file.setTitle(_translate("Form", "文件"))
self.fileOpenAction.setText(_translate("MainWindow", "打开"))
self.fileOpenAction.setShortcut(_translate("MainWindow", "Alt+O"))
self.fileRemoveAction.setText(_translate("MainWindow", "移除当前文件"))
self.fileRemoveAction.setShortcut(_translate("MainWindow", "Alt+S"))