The forms were updated to be more informative and easier to read. NOTE: The reason the form is bigger than the contents is because the QLabels have word-wrapping enabled and as such they substitute width for height (`hasHeightforWidth`)
89 lines
4.6 KiB
Python
89 lines
4.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/dialogs/login/landing_page.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.10
|
|
#
|
|
# 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_LandingPage(object):
|
|
def setupUi(self, LandingPage):
|
|
LandingPage.setObjectName("LandingPage")
|
|
LandingPage.resize(480, 180)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(LandingPage.sizePolicy().hasHeightForWidth())
|
|
LandingPage.setSizePolicy(sizePolicy)
|
|
LandingPage.setMinimumSize(QtCore.QSize(480, 180))
|
|
LandingPage.setWindowTitle("LandingPage")
|
|
self.landing_layout = QtWidgets.QFormLayout(LandingPage)
|
|
self.landing_layout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
|
|
self.landing_layout.setLabelAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
|
self.landing_layout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
|
self.landing_layout.setObjectName("landing_layout")
|
|
self.login_label = QtWidgets.QLabel(LandingPage)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.login_label.sizePolicy().hasHeightForWidth())
|
|
self.login_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.login_label.setFont(font)
|
|
self.login_label.setObjectName("login_label")
|
|
self.landing_layout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.login_label)
|
|
self.login_browser_radio = QtWidgets.QRadioButton(LandingPage)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.login_browser_radio.sizePolicy().hasHeightForWidth())
|
|
self.login_browser_radio.setSizePolicy(sizePolicy)
|
|
self.login_browser_radio.setObjectName("login_browser_radio")
|
|
self.landing_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.login_browser_radio)
|
|
self.login_browser_label = QtWidgets.QLabel(LandingPage)
|
|
font = QtGui.QFont()
|
|
font.setItalic(True)
|
|
self.login_browser_label.setFont(font)
|
|
self.login_browser_label.setObjectName("login_browser_label")
|
|
self.landing_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.login_browser_label)
|
|
self.login_import_radio = QtWidgets.QRadioButton(LandingPage)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.login_import_radio.sizePolicy().hasHeightForWidth())
|
|
self.login_import_radio.setSizePolicy(sizePolicy)
|
|
self.login_import_radio.setObjectName("login_import_radio")
|
|
self.landing_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.login_import_radio)
|
|
self.login_import_label = QtWidgets.QLabel(LandingPage)
|
|
font = QtGui.QFont()
|
|
font.setItalic(True)
|
|
self.login_import_label.setFont(font)
|
|
self.login_import_label.setObjectName("login_import_label")
|
|
self.landing_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.login_import_label)
|
|
|
|
self.retranslateUi(LandingPage)
|
|
|
|
def retranslateUi(self, LandingPage):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
self.login_label.setText(_translate("LandingPage", "Select login method"))
|
|
self.login_browser_radio.setText(_translate("LandingPage", "Browser"))
|
|
self.login_browser_label.setText(_translate("LandingPage", "Login using a browser."))
|
|
self.login_import_radio.setText(_translate("LandingPage", "Import"))
|
|
self.login_import_label.setText(_translate("LandingPage", "Import from Epic Games Launcher"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
LandingPage = QtWidgets.QWidget()
|
|
ui = Ui_LandingPage()
|
|
ui.setupUi(LandingPage)
|
|
LandingPage.show()
|
|
sys.exit(app.exec_())
|