-
Notifications
You must be signed in to change notification settings - Fork 0
/
design.py
186 lines (182 loc) · 9.17 KB
/
design.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# Form implementation generated from reading ui file 'design.ui'
#
# Created by: PyQt6 UI code generator 6.2.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(500, 250)
Form.setMaximumSize(QtCore.QSize(650, 250))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.ico"),
QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
Form.setWindowIcon(icon)
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
self.gridLayout_2.setObjectName("gridLayout_2")
self.tabWidget = QtWidgets.QTabWidget(Form)
self.tabWidget.setObjectName("tabWidget")
self.MP3 = QtWidgets.QWidget()
self.MP3.setObjectName("MP3")
self.gridLayout_3 = QtWidgets.QGridLayout(self.MP3)
self.gridLayout_3.setObjectName("gridLayout_3")
spacerItem = QtWidgets.QSpacerItem(
20, 26, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.gridLayout_3.addItem(spacerItem, 9, 1, 1, 1)
self.m_path_button = QtWidgets.QPushButton(self.MP3)
self.m_path_button.setMaximumSize(QtCore.QSize(110, 24))
font = QtGui.QFont()
font.setPointSize(10)
self.m_path_button.setFont(font)
self.m_path_button.setObjectName("m_path_button")
self.gridLayout_3.addWidget(self.m_path_button, 6, 2, 1, 1)
self.m_info = QtWidgets.QLabel(self.MP3)
self.m_info.setStyleSheet("color:red;")
self.m_info.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.m_info.setObjectName("m_info")
self.gridLayout_3.addWidget(self.m_info, 10, 1, 1, 1)
self.m_path_src = QtWidgets.QLabel(self.MP3)
self.m_path_src.setMinimumSize(QtCore.QSize(250, 20))
self.m_path_src.setMaximumSize(QtCore.QSize(500, 20))
font = QtGui.QFont()
font.setPointSize(10)
self.m_path_src.setFont(font)
self.m_path_src.setObjectName("m_path_src")
self.gridLayout_3.addWidget(self.m_path_src, 6, 1, 1, 1)
self.m_label_2 = QtWidgets.QLabel(self.MP3)
font = QtGui.QFont()
font.setPointSize(10)
self.m_label_2.setFont(font)
self.m_label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading |
QtCore.Qt.AlignmentFlag.AlignLeft | QtCore.Qt.AlignmentFlag.AlignVCenter)
self.m_label_2.setObjectName("m_label_2")
self.gridLayout_3.addWidget(self.m_label_2, 8, 0, 1, 1)
self.m_label_1 = QtWidgets.QLabel(self.MP3)
font = QtGui.QFont()
font.setPointSize(10)
self.m_label_1.setFont(font)
self.m_label_1.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading |
QtCore.Qt.AlignmentFlag.AlignLeft | QtCore.Qt.AlignmentFlag.AlignVCenter)
self.m_label_1.setObjectName("m_label_1")
self.gridLayout_3.addWidget(self.m_label_1, 6, 0, 1, 1)
self.m_link = QtWidgets.QLineEdit(self.MP3)
self.m_link.setMinimumSize(QtCore.QSize(250, 20))
self.m_link.setMaximumSize(QtCore.QSize(500, 20))
self.m_link.setObjectName("m_link")
self.gridLayout_3.addWidget(self.m_link, 8, 1, 1, 1)
self.m_label = QtWidgets.QLabel(self.MP3)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.m_label.setFont(font)
self.m_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.m_label.setObjectName("m_label")
self.gridLayout_3.addWidget(self.m_label, 1, 1, 1, 1)
self.m_download_button = QtWidgets.QPushButton(self.MP3)
self.m_download_button.setMaximumSize(QtCore.QSize(110, 24))
font = QtGui.QFont()
font.setPointSize(10)
self.m_download_button.setFont(font)
self.m_download_button.setObjectName("m_download_button")
self.gridLayout_3.addWidget(self.m_download_button, 8, 2, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(
20, 28, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.gridLayout_3.addItem(spacerItem1, 2, 1, 1, 1)
self.tabWidget.addTab(self.MP3, "")
self.MP4 = QtWidgets.QWidget()
self.MP4.setObjectName("MP4")
self.gridLayout = QtWidgets.QGridLayout(self.MP4)
self.gridLayout.setObjectName("gridLayout")
self.v_path_src = QtWidgets.QLabel(self.MP4)
font = QtGui.QFont()
font.setPointSize(10)
self.v_path_src.setFont(font)
self.v_path_src.setObjectName("v_path_src")
self.gridLayout.addWidget(self.v_path_src, 4, 1, 1, 1)
self.v_link = QtWidgets.QLineEdit(self.MP4)
self.v_link.setMaximumSize(QtCore.QSize(500, 20))
self.v_link.setObjectName("v_link")
self.gridLayout.addWidget(self.v_link, 5, 1, 1, 1)
self.v_label_2 = QtWidgets.QLabel(self.MP4)
font = QtGui.QFont()
font.setPointSize(10)
self.v_label_2.setFont(font)
self.v_label_2.setObjectName("v_label_2")
self.gridLayout.addWidget(self.v_label_2, 5, 0, 1, 1)
self.v_label_3 = QtWidgets.QLabel(self.MP4)
font = QtGui.QFont()
font.setPointSize(10)
self.v_label_3.setFont(font)
self.v_label_3.setObjectName("v_label_3")
self.gridLayout.addWidget(self.v_label_3, 4, 0, 1, 1)
self.v_path_button = QtWidgets.QPushButton(self.MP4)
self.v_path_button.setMaximumSize(QtCore.QSize(110, 24))
font = QtGui.QFont()
font.setPointSize(10)
self.v_path_button.setFont(font)
self.v_path_button.setObjectName("v_path_button")
self.gridLayout.addWidget(self.v_path_button, 4, 2, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(
20, 28, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.gridLayout.addItem(spacerItem2, 2, 1, 1, 1)
self.v_info = QtWidgets.QLabel(self.MP4)
self.v_info.setStyleSheet("color:red;")
self.v_info.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.v_info.setObjectName("v_info")
self.gridLayout.addWidget(self.v_info, 7, 1, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(
20, 26, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.gridLayout.addItem(spacerItem3, 6, 1, 1, 1)
self.v_download_button = QtWidgets.QPushButton(self.MP4)
self.v_download_button.setMaximumSize(QtCore.QSize(110, 24))
font = QtGui.QFont()
font.setPointSize(10)
self.v_download_button.setFont(font)
self.v_download_button.setObjectName("v_download_button")
self.gridLayout.addWidget(self.v_download_button, 5, 2, 1, 1)
self.v_label = QtWidgets.QLabel(self.MP4)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.v_label.setFont(font)
self.v_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.v_label.setObjectName("v_label")
self.gridLayout.addWidget(self.v_label, 1, 1, 1, 1)
self.tabWidget.addTab(self.MP4, "")
self.gridLayout_2.addWidget(self.tabWidget, 0, 0, 1, 1)
self.progressBar = QtWidgets.QProgressBar(Form)
self.progressBar.setMaximumSize(QtCore.QSize(16777215, 10))
self.progressBar.setProperty("value", 0)
self.progressBar.setTextVisible(False)
self.progressBar.setObjectName("progressBar")
self.gridLayout_2.addWidget(self.progressBar, 1, 0, 1, 1)
self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "YouTube Downloader"))
self.m_path_button.setText(_translate("Form", "Select Path"))
self.m_info.setText(_translate("Form", ""))
self.m_path_src.setText(_translate("Form", ""))
self.m_label_2.setText(_translate("Form", "Link:"))
self.m_label_1.setText(_translate("Form", "Path:"))
self.m_label.setText(_translate("Form", "YouTube MP3 Downloader"))
self.m_download_button.setText(_translate("Form", "Download"))
self.m_download_button.setShortcut(_translate("Form", "Return"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.MP3), _translate("Form", "MP3"))
self.v_path_src.setText(_translate("Form", ""))
self.v_label_2.setText(_translate("Form", "Link:"))
self.v_label_3.setText(_translate("Form", "Path:"))
self.v_path_button.setText(_translate("Form", "Select Path"))
self.v_info.setText(_translate("Form", ""))
self.v_download_button.setText(_translate("Form", "Download"))
self.v_download_button.setShortcut(_translate("Form", "Return"))
self.v_label.setText(_translate("Form", "YouTube MP4 Downloader"))
self.tabWidget.setTabText(self.tabWidget.indexOf(
self.MP4), _translate("Form", "MP4"))