from PyQt5 import QtCore, QtGui, QtWidgets class Ui_NoPrivDialog(object): def setupUi(self, NoPrivDialog): NoPrivDialog.setObjectName("NoPrivDialog") NoPrivDialog.resize(412, 194) self.verticalLayout = QtWidgets.QVBoxLayout(NoPrivDialog) self.verticalLayout.setObjectName("verticalLayout") self.label = QtWidgets.QLabel(NoPrivDialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(400, 0)) self.label.setWordWrap(False) self.label.setOpenExternalLinks(True) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.okButton = QtWidgets.QPushButton(NoPrivDialog) self.okButton.setObjectName("okButton") self.horizontalLayout.addWidget(self.okButton) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(NoPrivDialog) QtCore.QMetaObject.connectSlotsByName(NoPrivDialog) def retranslateUi(self, NoPrivDialog): _translate = QtCore.QCoreApplication.translate NoPrivDialog.setWindowTitle(_translate("NoPrivDialog", "Sysmaint Panel - Insufficient Privileges")) self.label.setText(_translate("NoPrivDialog", "

This system is currently configured to only allow the
\n" "\'sysmaint\' account to perform system maintenance.
\n" "Please reboot and select \'PERSISTENT Mode - SYSMAINT
\n" "Session\' at the boot menu.

\n" "

See https://www.kicksecure.com/wiki/Sysmaint for more
\n" "information.