Source code for schrodinger.application.livedesign.login_ui
# Form implementation generated from reading ui file '/Users/eltanawy/builds/2022-3/source/mmshare/python/modules/schrodinger/application/livedesign/login.ui'
#
# Created by: PyQt6 UI code generator 6.3.1
#
# 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
[docs]class Ui_Dialog(object):
[docs] def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(491, 211)
self.horizontalLayout = QtWidgets.QHBoxLayout(Dialog)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtWidgets.QLabel(Dialog)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.label_2 = QtWidgets.QLabel(Dialog)
self.label_2.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
self.host_le = QtWidgets.QLineEdit(Dialog)
self.host_le.setMinimumSize(QtCore.QSize(300, 0))
self.host_le.setObjectName("host_le")
self.gridLayout.addWidget(self.host_le, 0, 1, 1, 1)
self.label_3 = QtWidgets.QLabel(Dialog)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
self.username_le = QtWidgets.QLineEdit(Dialog)
self.username_le.setObjectName("username_le")
self.gridLayout.addWidget(self.username_le, 1, 1, 1, 1)
self.label_4 = QtWidgets.QLabel(Dialog)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
self.password_le = QtWidgets.QLineEdit(Dialog)
self.password_le.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
self.password_le.setObjectName("password_le")
self.gridLayout.addWidget(self.password_le, 2, 1, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.error_label = QtWidgets.QLabel(Dialog)
self.error_label.setText("")
self.error_label.setWordWrap(True)
self.error_label.setObjectName("error_label")
self.verticalLayout.addWidget(self.error_label)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.login_btn = QtWidgets.QPushButton(Dialog)
self.login_btn.setAutoDefault(True)
self.login_btn.setDefault(True)
self.login_btn.setObjectName("login_btn")
self.horizontalLayout_2.addWidget(self.login_btn)
self.verticalLayout.addLayout(self.horizontalLayout_2)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.verticalLayout.addItem(spacerItem1)
self.horizontalLayout.addLayout(self.verticalLayout)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
[docs] def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Connect to LiveDesign"))
self.label.setText(_translate("Dialog", "Please enter your credentials for LiveDesign"))
self.label_2.setText(_translate("Dialog", "Host:"))
self.label_3.setText(_translate("Dialog", "Username:"))
self.label_4.setText(_translate("Dialog", "Password:"))
self.login_btn.setToolTip(_translate("Dialog", "Click to connect to LiveDesign"))
self.login_btn.setText(_translate("Dialog", "Log In"))