-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_warning.py
41 lines (35 loc) · 1.98 KB
/
ui_warning.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
# Form implementation generated from reading ui file 'ubuntu_sway_welcome/ui/warning.ui'
#
# Created by: PyQt6 UI code generator 6.4.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_WarningMessage(object):
def setupUi(self, WarningMessage):
WarningMessage.setObjectName("WarningMessage")
WarningMessage.resize(640, 100)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(WarningMessage.sizePolicy().hasHeightForWidth())
WarningMessage.setSizePolicy(sizePolicy)
WarningMessage.setMinimumSize(QtCore.QSize(640, 100))
WarningMessage.setMaximumSize(QtCore.QSize(640, 100))
WarningMessage.setWindowTitle("")
self.verticalLayout = QtWidgets.QVBoxLayout(WarningMessage)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtWidgets.QLabel(parent=WarningMessage)
self.label.setWordWrap(True)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.buttonBox = QtWidgets.QDialogButtonBox(parent=WarningMessage)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Ok)
self.buttonBox.setObjectName("buttonBox")
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(WarningMessage)
self.buttonBox.accepted.connect(WarningMessage.accept) # type: ignore
QtCore.QMetaObject.connectSlotsByName(WarningMessage)
def retranslateUi(self, WarningMessage):
_translate = QtCore.QCoreApplication.translate
self.label.setText(_translate("WarningMessage", "Your system is already installed! If you wish to reinstall it, boot from the installation media."))