2021-05-21 11:47:03 +12:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2021-09-10 01:46:38 +12:00
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/dialogs/install_dialog.ui'
|
2021-05-21 11:47:03 +12:00
|
|
|
#
|
2023-12-12 00:21:19 +13:00
|
|
|
# Created by: PyQt5 UI code generator 5.15.10
|
2021-05-21 11:47:03 +12:00
|
|
|
#
|
|
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
|
|
|
|
class Ui_InstallDialog(object):
|
|
|
|
def setupUi(self, InstallDialog):
|
|
|
|
InstallDialog.setObjectName("InstallDialog")
|
2024-01-03 02:12:07 +13:00
|
|
|
InstallDialog.resize(179, 204)
|
2022-11-01 03:54:40 +13:00
|
|
|
InstallDialog.setWindowTitle("InstallDialog")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout = QtWidgets.QFormLayout(InstallDialog)
|
|
|
|
self.main_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
|
|
self.main_layout.setObjectName("main_layout")
|
2023-12-20 07:53:21 +13:00
|
|
|
self.title_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.title_label.setObjectName("title_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.title_label)
|
2021-09-10 01:46:38 +12:00
|
|
|
self.install_dir_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.install_dir_label.setObjectName("install_dir_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.install_dir_label)
|
2022-02-08 06:19:13 +13:00
|
|
|
self.platform_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.platform_label.setObjectName("platform_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.platform_label)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.platform_combo = QtWidgets.QComboBox(InstallDialog)
|
2022-02-08 06:19:13 +13:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2022-10-24 07:36:44 +13:00
|
|
|
sizePolicy.setHeightForWidth(self.platform_combo.sizePolicy().hasHeightForWidth())
|
|
|
|
self.platform_combo.setSizePolicy(sizePolicy)
|
|
|
|
self.platform_combo.setObjectName("platform_combo")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.platform_combo)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.shortcut_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.shortcut_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
|
|
|
self.shortcut_label.setObjectName("shortcut_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.shortcut_label)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.shortcut_check = QtWidgets.QCheckBox(InstallDialog)
|
|
|
|
self.shortcut_check.setText("")
|
|
|
|
self.shortcut_check.setObjectName("shortcut_check")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.shortcut_check)
|
2022-11-01 03:54:40 +13:00
|
|
|
self.selectable_layout = QtWidgets.QVBoxLayout()
|
|
|
|
self.selectable_layout.setObjectName("selectable_layout")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setLayout(4, QtWidgets.QFormLayout.SpanningRole, self.selectable_layout)
|
2022-11-01 03:54:40 +13:00
|
|
|
self.advanced_layout = QtWidgets.QVBoxLayout()
|
2022-08-01 09:55:21 +12:00
|
|
|
self.advanced_layout.setObjectName("advanced_layout")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setLayout(5, QtWidgets.QFormLayout.SpanningRole, self.advanced_layout)
|
2022-08-26 21:29:47 +12:00
|
|
|
self.download_size_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.download_size_label.setObjectName("download_size_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.download_size_label)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.download_size_text = QtWidgets.QLabel(InstallDialog)
|
2022-08-11 10:47:55 +12:00
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.download_size_text.setFont(font)
|
|
|
|
self.download_size_text.setObjectName("download_size_text")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.download_size_text)
|
2022-08-26 21:29:47 +12:00
|
|
|
self.install_size_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.install_size_label.setObjectName("install_size_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.install_size_label)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.install_size_text = QtWidgets.QLabel(InstallDialog)
|
2022-08-26 21:29:47 +12:00
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.install_size_text.setFont(font)
|
|
|
|
self.install_size_text.setWordWrap(True)
|
|
|
|
self.install_size_text.setObjectName("install_size_text")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.install_size_text)
|
|
|
|
self.avail_space_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.avail_space_label.setObjectName("avail_space_label")
|
|
|
|
self.main_layout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.avail_space_label)
|
|
|
|
self.avail_space = QtWidgets.QLabel(InstallDialog)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setBold(True)
|
|
|
|
font.setWeight(75)
|
|
|
|
self.avail_space.setFont(font)
|
|
|
|
self.avail_space.setText("")
|
|
|
|
self.avail_space.setObjectName("avail_space")
|
|
|
|
self.main_layout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.avail_space)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.warning_label = QtWidgets.QLabel(InstallDialog)
|
|
|
|
self.warning_label.setObjectName("warning_label")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.warning_label)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.warning_text = QtWidgets.QLabel(InstallDialog)
|
2022-08-26 21:29:47 +12:00
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.warning_text.setFont(font)
|
|
|
|
self.warning_text.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
|
|
self.warning_text.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
|
|
self.warning_text.setWordWrap(True)
|
2023-01-28 03:51:00 +13:00
|
|
|
self.warning_text.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
2022-10-24 07:36:44 +13:00
|
|
|
self.warning_text.setObjectName("warning_text")
|
2024-01-03 02:12:07 +13:00
|
|
|
self.main_layout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.warning_text)
|
2021-05-21 11:47:03 +12:00
|
|
|
|
|
|
|
self.retranslateUi(InstallDialog)
|
|
|
|
|
|
|
|
def retranslateUi(self, InstallDialog):
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
2023-12-20 07:53:21 +13:00
|
|
|
self.title_label.setText(_translate("InstallDialog", "error"))
|
2024-01-03 02:12:07 +13:00
|
|
|
self.install_dir_label.setText(_translate("InstallDialog", "Install folder"))
|
2022-02-08 06:19:13 +13:00
|
|
|
self.platform_label.setText(_translate("InstallDialog", "Platform"))
|
2022-10-24 07:36:44 +13:00
|
|
|
self.shortcut_label.setText(_translate("InstallDialog", "Create shortcut"))
|
2022-08-26 21:29:47 +12:00
|
|
|
self.download_size_label.setText(_translate("InstallDialog", "Download size"))
|
2022-10-24 07:36:44 +13:00
|
|
|
self.download_size_text.setText(_translate("InstallDialog", "Click verify..."))
|
2022-08-26 21:29:47 +12:00
|
|
|
self.install_size_label.setText(_translate("InstallDialog", "Total install size"))
|
2022-10-24 07:36:44 +13:00
|
|
|
self.install_size_text.setText(_translate("InstallDialog", "Click verify..."))
|
2024-01-03 02:12:07 +13:00
|
|
|
self.avail_space_label.setText(_translate("InstallDialog", "Available space"))
|
2022-10-24 07:36:44 +13:00
|
|
|
self.warning_label.setText(_translate("InstallDialog", "Warning"))
|
|
|
|
self.warning_text.setText(_translate("InstallDialog", "None"))
|
2021-05-21 11:47:03 +12:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
import sys
|
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
2024-01-03 02:12:07 +13:00
|
|
|
InstallDialog = QtWidgets.QWidget()
|
2021-05-21 11:47:03 +12:00
|
|
|
ui = Ui_InstallDialog()
|
|
|
|
ui.setupUi(InstallDialog)
|
|
|
|
InstallDialog.show()
|
|
|
|
sys.exit(app.exec_())
|