# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './user_interfaces/ui_ModItemWidget.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_modWidget(object): def setupUi(self, modWidget): modWidget.setObjectName("modWidget") modWidget.resize(429, 134) self.gridLayout = QtWidgets.QGridLayout(modWidget) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.gView_mod = QtWidgets.QGraphicsView(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.gView_mod.sizePolicy().hasHeightForWidth()) self.gView_mod.setSizePolicy(sizePolicy) self.gView_mod.setMinimumSize(QtCore.QSize(50, 50)) self.gView_mod.setMaximumSize(QtCore.QSize(150, 150)) self.gView_mod.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.gView_mod.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.gView_mod.setObjectName("gView_mod") self.horizontalLayout.addWidget(self.gView_mod) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.hLayout_modname = QtWidgets.QHBoxLayout() self.hLayout_modname.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.hLayout_modname.setObjectName("hLayout_modname") self.label_modName = QtWidgets.QLabel(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_modName.sizePolicy().hasHeightForWidth()) self.label_modName.setSizePolicy(sizePolicy) self.label_modName.setObjectName("label_modName") self.hLayout_modname.addWidget(self.label_modName) self.edit_modName = QtWidgets.QLineEdit(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edit_modName.sizePolicy().hasHeightForWidth()) self.edit_modName.setSizePolicy(sizePolicy) self.edit_modName.setObjectName("edit_modName") self.hLayout_modname.addWidget(self.edit_modName) self.tBtn_deleteMod = QtWidgets.QToolButton(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tBtn_deleteMod.sizePolicy().hasHeightForWidth()) self.tBtn_deleteMod.setSizePolicy(sizePolicy) self.tBtn_deleteMod.setObjectName("tBtn_deleteMod") self.hLayout_modname.addWidget(self.tBtn_deleteMod) self.verticalLayout.addLayout(self.hLayout_modname) self.edit_mod_description = QtWidgets.QLineEdit(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edit_mod_description.sizePolicy().hasHeightForWidth()) self.edit_mod_description.setSizePolicy(sizePolicy) self.edit_mod_description.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.edit_mod_description.setObjectName("edit_mod_description") self.verticalLayout.addWidget(self.edit_mod_description) self.edit_mod_tags = QtWidgets.QLineEdit(modWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edit_mod_tags.sizePolicy().hasHeightForWidth()) self.edit_mod_tags.setSizePolicy(sizePolicy) self.edit_mod_tags.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.edit_mod_tags.setObjectName("edit_mod_tags") self.verticalLayout.addWidget(self.edit_mod_tags) self.horizontalLayout.addLayout(self.verticalLayout) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.retranslateUi(modWidget) QtCore.QMetaObject.connectSlotsByName(modWidget) def retranslateUi(self, modWidget): _translate = QtCore.QCoreApplication.translate self.label_modName.setText(_translate("modWidget", "Name :")) self.edit_modName.setPlaceholderText(_translate("modWidget", "Add mod name here")) self.tBtn_deleteMod.setText(_translate("modWidget", "...")) self.edit_mod_description.setPlaceholderText(_translate("modWidget", "Add mod description here")) self.edit_mod_tags.setPlaceholderText(_translate("modWidget", "Add mod tags here")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) modWidget = QtWidgets.QWidget() ui = Ui_modWidget() ui.setupUi(modWidget) modWidget.show() sys.exit(app.exec_())