You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
8.2 KiB
Python

2 years ago
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './user_interfaces/ui_ModpackTabWidget.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_ModpackTabWidget(object):
def setupUi(self, ModpackTabWidget):
ModpackTabWidget.setObjectName("ModpackTabWidget")
ModpackTabWidget.resize(622, 369)
self.verticalLayout_2 = QtWidgets.QVBoxLayout(ModpackTabWidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.vLayout_ModPackTab = QtWidgets.QVBoxLayout()
self.vLayout_ModPackTab.setObjectName("vLayout_ModPackTab")
self.hLayout_modPackInfo = QtWidgets.QHBoxLayout()
self.hLayout_modPackInfo.setObjectName("hLayout_modPackInfo")
self.gView_modPackIcon = QtWidgets.QGraphicsView(ModpackTabWidget)
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.hLayout_modPackInfo.addWidget(self.gView_modPackIcon)
self.vLayout_details = QtWidgets.QVBoxLayout()
self.vLayout_details.setObjectName("vLayout_details")
self.hLayout_name = QtWidgets.QHBoxLayout()
self.hLayout_name.setObjectName("hLayout_name")
self.label_name = QtWidgets.QLabel(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_name.sizePolicy().hasHeightForWidth())
self.label_name.setSizePolicy(sizePolicy)
self.label_name.setObjectName("label_name")
self.hLayout_name.addWidget(self.label_name)
self.label_modpackName = QtWidgets.QLabel(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_modpackName.sizePolicy().hasHeightForWidth())
self.label_modpackName.setSizePolicy(sizePolicy)
self.label_modpackName.setObjectName("label_modpackName")
self.hLayout_name.addWidget(self.label_modpackName)
self.vLayout_details.addLayout(self.hLayout_name)
self.label_modPackDescription = QtWidgets.QLabel(ModpackTabWidget)
self.label_modPackDescription.setWordWrap(True)
self.label_modPackDescription.setObjectName("label_modPackDescription")
self.vLayout_details.addWidget(self.label_modPackDescription)
self.label_modPackTags = QtWidgets.QLabel(ModpackTabWidget)
self.label_modPackTags.setText("")
self.label_modPackTags.setObjectName("label_modPackTags")
self.vLayout_details.addWidget(self.label_modPackTags)
self.hLayout_modpackfuncs = QtWidgets.QHBoxLayout()
self.hLayout_modpackfuncs.setObjectName("hLayout_modpackfuncs")
self.tBtn_addmod = QtWidgets.QToolButton(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tBtn_addmod.sizePolicy().hasHeightForWidth())
self.tBtn_addmod.setSizePolicy(sizePolicy)
self.tBtn_addmod.setObjectName("tBtn_addmod")
self.hLayout_modpackfuncs.addWidget(self.tBtn_addmod)
self.tBtn_activatePack = QtWidgets.QToolButton(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tBtn_activatePack.sizePolicy().hasHeightForWidth())
self.tBtn_activatePack.setSizePolicy(sizePolicy)
self.tBtn_activatePack.setObjectName("tBtn_activatePack")
self.hLayout_modpackfuncs.addWidget(self.tBtn_activatePack)
self.tBtn_deactivatePack = QtWidgets.QToolButton(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tBtn_deactivatePack.sizePolicy().hasHeightForWidth())
self.tBtn_deactivatePack.setSizePolicy(sizePolicy)
self.tBtn_deactivatePack.setObjectName("tBtn_deactivatePack")
self.hLayout_modpackfuncs.addWidget(self.tBtn_deactivatePack)
self.tBn_editPack = QtWidgets.QToolButton(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tBn_editPack.sizePolicy().hasHeightForWidth())
self.tBn_editPack.setSizePolicy(sizePolicy)
self.tBn_editPack.setObjectName("tBn_editPack")
self.hLayout_modpackfuncs.addWidget(self.tBn_editPack)
self.tBtn_deletePack = QtWidgets.QToolButton(ModpackTabWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tBtn_deletePack.sizePolicy().hasHeightForWidth())
self.tBtn_deletePack.setSizePolicy(sizePolicy)
self.tBtn_deletePack.setObjectName("tBtn_deletePack")
self.hLayout_modpackfuncs.addWidget(self.tBtn_deletePack)
self.vLayout_details.addLayout(self.hLayout_modpackfuncs)
self.hLayout_modPackInfo.addLayout(self.vLayout_details)
self.vLayout_ModPackTab.addLayout(self.hLayout_modPackInfo)
self.scroll_modArea = QtWidgets.QScrollArea(ModpackTabWidget)
self.scroll_modArea.setWidgetResizable(True)
self.scroll_modArea.setObjectName("scroll_modArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 600, 189))
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.scroll_modArea.setWidget(self.scrollAreaWidgetContents)
self.vLayout_ModPackTab.addWidget(self.scroll_modArea)
self.verticalLayout_2.addLayout(self.vLayout_ModPackTab)
self.retranslateUi(ModpackTabWidget)
QtCore.QMetaObject.connectSlotsByName(ModpackTabWidget)
def retranslateUi(self, ModpackTabWidget):
_translate = QtCore.QCoreApplication.translate
self.label_name.setText(_translate("ModpackTabWidget", "Name :"))
self.label_modpackName.setText(_translate("ModpackTabWidget", "Enter Modpack Name"))
self.label_modPackDescription.setText(_translate("ModpackTabWidget", "Enter Modpack Description"))
self.tBtn_addmod.setText(_translate("ModpackTabWidget", "AddMod"))
self.tBtn_activatePack.setText(_translate("ModpackTabWidget", "ActivateModPack"))
self.tBtn_deactivatePack.setText(_translate("ModpackTabWidget", "DeactivateModPack"))
self.tBn_editPack.setText(_translate("ModpackTabWidget", "Edit ModPack"))
self.tBtn_deletePack.setText(_translate("ModpackTabWidget", "DeleteModpack"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
ModpackTabWidget = QtWidgets.QWidget()
ui = Ui_ModpackTabWidget()
ui.setupUi(ModpackTabWidget)
ModpackTabWidget.show()
sys.exit(app.exec_())