-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_mainmenu.py
93 lines (87 loc) · 4.46 KB
/
ui_mainmenu.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
# Form implementation generated from reading ui file 'ui_mainmenu.ui'
#
# Created by: PyQt6 UI code generator 6.4.0
#
# 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_MainMenu(object):
def setupUi(self, MainMenu):
MainMenu.setObjectName("MainMenu")
MainMenu.resize(260, 315)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainMenu.sizePolicy().hasHeightForWidth())
MainMenu.setSizePolicy(sizePolicy)
MainMenu.setMinimumSize(QtCore.QSize(260, 315))
MainMenu.setMaximumSize(QtCore.QSize(260, 315))
MainMenu.setStyleSheet("background-color: #FEFFFE;")
self.centralwidget = QtWidgets.QWidget(MainMenu)
self.centralwidget.setStyleSheet("")
self.centralwidget.setObjectName("centralwidget")
self.btn_create = QtWidgets.QPushButton(self.centralwidget)
self.btn_create.setGeometry(QtCore.QRect(30, 260, 200, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
font.setBold(False)
font.setItalic(False)
font.setWeight(11)
self.btn_create.setFont(font)
self.btn_create.setStyleSheet("border-color: #3C66DC;\n"
"font: 90 12pt \"Arial\";\n"
"color: #3C66DC;\n"
"border-width: 2px;\n"
"border-style: solid;\n"
"background-color: rgb(255, 255, 255);\n"
"")
self.btn_create.setObjectName("btn_create")
self.btn_theory = QtWidgets.QPushButton(self.centralwidget)
self.btn_theory.setGeometry(QtCore.QRect(30, 220, 200, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
font.setBold(False)
font.setItalic(False)
font.setWeight(11)
self.btn_theory.setFont(font)
self.btn_theory.setStyleSheet("border-color: #3C66DC;\n"
"font: 90 12pt \"Arial\";\n"
"color: #3C66DC;\n"
"border-width: 2px;\n"
"border-style: solid;\n"
"background-color: rgb(255, 255, 255);")
self.btn_theory.setObjectName("btn_theory")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(30, 20, 200, 80))
self.label.setMaximumSize(QtCore.QSize(300, 100))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
font.setStrikeOut(False)
font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferDefault)
self.label.setFont(font)
self.label.setStyleSheet("white-space: normal;\n"
"color: #3C66DC;")
self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.label.setWordWrap(True)
self.label.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.LinksAccessibleByMouse)
self.label.setObjectName("label")
self.icon = QtWidgets.QLabel(self.centralwidget)
self.icon.setGeometry(QtCore.QRect(80, 120, 101, 81))
self.icon.setText("")
self.icon.setPixmap(QtGui.QPixmap("assets/icon.png"))
self.icon.setScaledContents(True)
self.icon.setObjectName("icon")
MainMenu.setCentralWidget(self.centralwidget)
self.retranslateUi(MainMenu)
QtCore.QMetaObject.connectSlotsByName(MainMenu)
def retranslateUi(self, MainMenu):
_translate = QtCore.QCoreApplication.translate
MainMenu.setWindowTitle(_translate("MainMenu", "Обучающая программа - Главное меню"))
self.btn_create.setText(_translate("MainMenu", "Создать диаграмму"))
self.btn_theory.setText(_translate("MainMenu", "Теоретические сведения"))
self.label.setText(_translate("MainMenu", "Обучающая программа визуализации упорядоченных множеств"))