-
Notifications
You must be signed in to change notification settings - Fork 2
/
about_window.py
119 lines (92 loc) · 5.03 KB
/
about_window.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
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'about_window.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
QGridLayout, QHBoxLayout, QLabel, QSizePolicy,
QSpacerItem, QVBoxLayout, QWidget)
class Ui_AboutWindow(object):
def setupUi(self, AboutWindow):
if not AboutWindow.objectName():
AboutWindow.setObjectName(u"AboutWindow")
AboutWindow.resize(520, 280)
icon = QIcon()
icon.addFile(u"../favicon.ico", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
AboutWindow.setWindowIcon(icon)
self.gridLayout = QGridLayout(AboutWindow)
self.gridLayout.setObjectName(u"gridLayout")
self.verticalLayout = QVBoxLayout()
self.verticalLayout.setObjectName(u"verticalLayout")
self.label_2 = QLabel(AboutWindow)
self.label_2.setObjectName(u"label_2")
font = QFont()
font.setPointSize(20)
font.setBold(True)
self.label_2.setFont(font)
self.verticalLayout.addWidget(self.label_2)
self.label_3 = QLabel(AboutWindow)
self.label_3.setObjectName(u"label_3")
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy)
self.label_3.setMaximumSize(QSize(300, 16777215))
self.label_3.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)
self.label_3.setWordWrap(True)
self.verticalLayout.addWidget(self.label_3)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout.addItem(self.verticalSpacer)
self.gridLayout.addLayout(self.verticalLayout, 0, 1, 1, 1)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.label_4 = QLabel(AboutWindow)
self.label_4.setObjectName(u"label_4")
self.horizontalLayout_2.addWidget(self.label_4)
self.buttonBox = QDialogButtonBox(AboutWindow)
self.buttonBox.setObjectName(u"buttonBox")
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Close)
self.horizontalLayout_2.addWidget(self.buttonBox)
self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.image = QLabel(AboutWindow)
self.image.setObjectName(u"image")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.image.sizePolicy().hasHeightForWidth())
self.image.setSizePolicy(sizePolicy1)
self.image.setMaximumSize(QSize(200, 200))
self.image.setPixmap(QPixmap(u"../images/anime-player-icon.png"))
self.image.setScaledContents(True)
self.verticalLayout_2.addWidget(self.image)
self.verticalSpacer_2 = QSpacerItem(0, 0, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer_2)
self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 2, 1)
self.retranslateUi(AboutWindow)
self.buttonBox.accepted.connect(AboutWindow.accept)
self.buttonBox.rejected.connect(AboutWindow.reject)
QMetaObject.connectSlotsByName(AboutWindow)
# setupUi
def retranslateUi(self, AboutWindow):
AboutWindow.setWindowTitle(QCoreApplication.translate("AboutWindow", u"About", None))
self.label_2.setText(QCoreApplication.translate("AboutWindow", u"Anime Player v2.0", None))
self.label_3.setText(QCoreApplication.translate("AboutWindow", u"Media player written in Python programming language using PySide 6 library, mpv media player and Anime4K scaling algorithm\n"
"\n"
"Site: https://github.com/Communist02/AnimePlayer", None))
self.label_4.setText(QCoreApplication.translate("AboutWindow", u"Copyright \u00a9 2024 MazurDev", None))
self.image.setText("")
# retranslateUi