-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathyt_pytubefix_gui.py
148 lines (139 loc) · 7.74 KB
/
yt_pytubefix_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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'yt_pytubefix_gui.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# 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
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(899, 837)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.frame_url = QtWidgets.QFrame(self.centralwidget)
self.frame_url.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_url.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_url.setObjectName("frame_url")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_url)
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_url = QtWidgets.QLabel(self.frame_url)
self.label_url.setObjectName("label_url")
self.horizontalLayout.addWidget(self.label_url)
self.lineEdit_url = QtWidgets.QLineEdit(self.frame_url)
self.lineEdit_url.setObjectName("lineEdit_url")
self.horizontalLayout.addWidget(self.lineEdit_url)
self.pushButton_url = QtWidgets.QPushButton(self.frame_url)
self.pushButton_url.setObjectName("pushButton_url")
self.horizontalLayout.addWidget(self.pushButton_url)
self.verticalLayout.addWidget(self.frame_url)
self.splitter = QtWidgets.QSplitter(self.centralwidget)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName("splitter")
self.groupBox = QtWidgets.QGroupBox(self.splitter)
self.groupBox.setObjectName("groupBox")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label_DownloadPath = QtWidgets.QLabel(self.groupBox)
self.label_DownloadPath.setObjectName("label_DownloadPath")
self.verticalLayout_2.addWidget(self.label_DownloadPath)
self.tableWidget_url = QtWidgets.QTableWidget(self.groupBox)
self.tableWidget_url.setObjectName("tableWidget_url")
self.tableWidget_url.setColumnCount(0)
self.tableWidget_url.setRowCount(0)
self.verticalLayout_2.addWidget(self.tableWidget_url)
self.frame_2 = QtWidgets.QFrame(self.groupBox)
self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_2.setObjectName("frame_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.pushButton_2 = QtWidgets.QPushButton(self.frame_2)
self.pushButton_2.setObjectName("pushButton_2")
self.horizontalLayout_2.addWidget(self.pushButton_2)
self.pushButton_3 = QtWidgets.QPushButton(self.frame_2)
self.pushButton_3.setObjectName("pushButton_3")
self.horizontalLayout_2.addWidget(self.pushButton_3)
self.pushButton_4 = QtWidgets.QPushButton(self.frame_2)
self.pushButton_4.setObjectName("pushButton_4")
self.horizontalLayout_2.addWidget(self.pushButton_4)
self.pushButton_5 = QtWidgets.QPushButton(self.frame_2)
self.pushButton_5.setObjectName("pushButton_5")
self.horizontalLayout_2.addWidget(self.pushButton_5)
self.verticalLayout_2.addWidget(self.frame_2)
self.horizontalLayout_3.addLayout(self.verticalLayout_2)
self.groupBox_2 = QtWidgets.QGroupBox(self.splitter)
self.groupBox_2.setObjectName("groupBox_2")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_2)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.tableWidget_results = QtWidgets.QTableWidget(self.groupBox_2)
self.tableWidget_results.setObjectName("tableWidget_results")
self.tableWidget_results.setColumnCount(0)
self.tableWidget_results.setRowCount(0)
self.horizontalLayout_4.addWidget(self.tableWidget_results)
self.verticalLayout.addWidget(self.splitter)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 899, 26))
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
self.menuAbout = QtWidgets.QMenu(self.menubar)
self.menuAbout.setObjectName("menuAbout")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setObjectName("actionAbout")
self.actionSet_Path = QtWidgets.QAction(MainWindow)
self.actionSet_Path.setObjectName("actionSet_Path")
self.actionOpen_URL_list = QtWidgets.QAction(MainWindow)
self.actionOpen_URL_list.setObjectName("actionOpen_URL_list")
self.actionSave_URL_list = QtWidgets.QAction(MainWindow)
self.actionSave_URL_list.setObjectName("actionSave_URL_list")
self.actionShow_Log = QtWidgets.QAction(MainWindow)
self.actionShow_Log.setObjectName("actionShow_Log")
self.menuFile.addAction(self.actionSet_Path)
self.menuFile.addSeparator()
self.menuFile.addAction(self.actionOpen_URL_list)
self.menuFile.addAction(self.actionSave_URL_list)
self.menuAbout.addAction(self.actionAbout)
self.menuAbout.addSeparator()
self.menuAbout.addAction(self.actionShow_Log)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuAbout.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label_url.setText(_translate("MainWindow", "url:"))
self.pushButton_url.setText(_translate("MainWindow", "add"))
self.groupBox.setTitle(_translate("MainWindow", "GroupBox"))
self.label_DownloadPath.setText(_translate("MainWindow", "TextLabel"))
self.pushButton_2.setText(_translate("MainWindow", "PushButton"))
self.pushButton_3.setText(_translate("MainWindow", "PushButton"))
self.pushButton_4.setText(_translate("MainWindow", "PushButton"))
self.pushButton_5.setText(_translate("MainWindow", "PushButton"))
self.groupBox_2.setTitle(_translate("MainWindow", "GroupBox"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.menuAbout.setTitle(_translate("MainWindow", "About"))
self.actionAbout.setText(_translate("MainWindow", "About"))
self.actionSet_Path.setText(_translate("MainWindow", "Set Path"))
self.actionOpen_URL_list.setText(_translate("MainWindow", "Open URL list"))
self.actionSave_URL_list.setText(_translate("MainWindow", "Save URL list"))
self.actionShow_Log.setText(_translate("MainWindow", "Show Log"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())