# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './user_interfaces/ui_dialog_modPackDetials.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # 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_Dialog_ModPackDetails(object): def setupUi(self, Dialog_ModPackDetails): Dialog_ModPackDetails.setObjectName("Dialog_ModPackDetails") Dialog_ModPackDetails.resize(418, 170) self.gridLayout = QtWidgets.QGridLayout(Dialog_ModPackDetails) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.gView_modPackIcon = QtWidgets.QGraphicsView(Dialog_ModPackDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.gView_modPackIcon.sizePolicy().hasHeightForWidth()) self.gView_modPackIcon.setSizePolicy(sizePolicy) self.gView_modPackIcon.setMinimumSize(QtCore.QSize(150, 150)) self.gView_modPackIcon.setMaximumSize(QtCore.QSize(150, 150)) self.gView_modPackIcon.setObjectName("gView_modPackIcon") self.horizontalLayout.addWidget(self.gView_modPackIcon) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.hLayout_modpackname = QtWidgets.QHBoxLayout() self.hLayout_modpackname.setObjectName("hLayout_modpackname") self.label_name = QtWidgets.QLabel(Dialog_ModPackDetails) self.label_name.setObjectName("label_name") self.hLayout_modpackname.addWidget(self.label_name) self.edit_modpackName = QtWidgets.QLineEdit(Dialog_ModPackDetails) self.edit_modpackName.setObjectName("edit_modpackName") self.hLayout_modpackname.addWidget(self.edit_modpackName) self.verticalLayout.addLayout(self.hLayout_modpackname) self.edit_modpack_description = QtWidgets.QLineEdit(Dialog_ModPackDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edit_modpack_description.sizePolicy().hasHeightForWidth()) self.edit_modpack_description.setSizePolicy(sizePolicy) self.edit_modpack_description.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.edit_modpack_description.setObjectName("edit_modpack_description") self.verticalLayout.addWidget(self.edit_modpack_description) self.edit_modpack_tags = QtWidgets.QLineEdit(Dialog_ModPackDetails) self.edit_modpack_tags.setObjectName("edit_modpack_tags") self.verticalLayout.addWidget(self.edit_modpack_tags) self.hLayout_modpackfuncs = QtWidgets.QHBoxLayout() self.hLayout_modpackfuncs.setObjectName("hLayout_modpackfuncs") self.tBtn_modPackPic = QtWidgets.QToolButton(Dialog_ModPackDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tBtn_modPackPic.sizePolicy().hasHeightForWidth()) self.tBtn_modPackPic.setSizePolicy(sizePolicy) self.tBtn_modPackPic.setObjectName("tBtn_modPackPic") self.hLayout_modpackfuncs.addWidget(self.tBtn_modPackPic) self.tBtn_cancel = QtWidgets.QToolButton(Dialog_ModPackDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tBtn_cancel.sizePolicy().hasHeightForWidth()) self.tBtn_cancel.setSizePolicy(sizePolicy) self.tBtn_cancel.setObjectName("tBtn_cancel") self.hLayout_modpackfuncs.addWidget(self.tBtn_cancel) self.tBtn_confirm = QtWidgets.QToolButton(Dialog_ModPackDetails) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tBtn_confirm.sizePolicy().hasHeightForWidth()) self.tBtn_confirm.setSizePolicy(sizePolicy) self.tBtn_confirm.setObjectName("tBtn_confirm") self.hLayout_modpackfuncs.addWidget(self.tBtn_confirm) self.verticalLayout.addLayout(self.hLayout_modpackfuncs) self.horizontalLayout.addLayout(self.verticalLayout) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.retranslateUi(Dialog_ModPackDetails) QtCore.QMetaObject.connectSlotsByName(Dialog_ModPackDetails) def retranslateUi(self, Dialog_ModPackDetails): _translate = QtCore.QCoreApplication.translate Dialog_ModPackDetails.setWindowTitle(_translate("Dialog_ModPackDetails", "Modpack Details")) self.label_name.setText(_translate("Dialog_ModPackDetails", "Name :")) self.edit_modpackName.setPlaceholderText(_translate("Dialog_ModPackDetails", "Add modpack name here")) self.edit_modpack_description.setPlaceholderText(_translate("Dialog_ModPackDetails", "Add modpack Description here")) self.edit_modpack_tags.setPlaceholderText(_translate("Dialog_ModPackDetails", "Add Tags here")) self.tBtn_modPackPic.setText(_translate("Dialog_ModPackDetails", "Edit Picture")) self.tBtn_cancel.setText(_translate("Dialog_ModPackDetails", "Cancel")) self.tBtn_confirm.setText(_translate("Dialog_ModPackDetails", "OK")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Dialog_ModPackDetails = QtWidgets.QDialog() ui = Ui_Dialog_ModPackDetails() ui.setupUi(Dialog_ModPackDetails) Dialog_ModPackDetails.show() sys.exit(app.exec_())