# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './user_interfaces/ui_SteamModManager.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_SteamModManagerFrame(object): def setupUi(self, SteamModManagerFrame): SteamModManagerFrame.setObjectName("SteamModManagerFrame") SteamModManagerFrame.setWindowModality(QtCore.Qt.NonModal) SteamModManagerFrame.resize(762, 711) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(SteamModManagerFrame.sizePolicy().hasHeightForWidth()) SteamModManagerFrame.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(12) SteamModManagerFrame.setFont(font) SteamModManagerFrame.setSizeGripEnabled(False) SteamModManagerFrame.setModal(False) self.gridLayout_2 = QtWidgets.QGridLayout(SteamModManagerFrame) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.hLayout_topBar = QtWidgets.QHBoxLayout() self.hLayout_topBar.setObjectName("hLayout_topBar") self.label_Title = QtWidgets.QLabel(SteamModManagerFrame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_Title.sizePolicy().hasHeightForWidth()) self.label_Title.setSizePolicy(sizePolicy) self.label_Title.setMinimumSize(QtCore.QSize(200, 50)) self.label_Title.setMaximumSize(QtCore.QSize(16777213, 50)) self.label_Title.setBaseSize(QtCore.QSize(0, 50)) font = QtGui.QFont() font.setPointSize(22) self.label_Title.setFont(font) self.label_Title.setScaledContents(True) self.label_Title.setAlignment(QtCore.Qt.AlignCenter) self.label_Title.setObjectName("label_Title") self.hLayout_topBar.addWidget(self.label_Title) self.vLayout_sideBar = QtWidgets.QVBoxLayout() self.vLayout_sideBar.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.vLayout_sideBar.setContentsMargins(0, -1, -1, -1) self.vLayout_sideBar.setSpacing(5) self.vLayout_sideBar.setObjectName("vLayout_sideBar") spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Maximum) self.vLayout_sideBar.addItem(spacerItem) self.hLayout_topBar.addLayout(self.vLayout_sideBar) self.gridLayout.addLayout(self.hLayout_topBar, 0, 0, 1, 1) self.label_footer = QtWidgets.QLabel(SteamModManagerFrame) font = QtGui.QFont() font.setPointSize(12) self.label_footer.setFont(font) self.label_footer.setText("") self.label_footer.setScaledContents(True) self.label_footer.setObjectName("label_footer") self.gridLayout.addWidget(self.label_footer, 3, 0, 1, 1) self.hLayout_subTitle = QtWidgets.QHBoxLayout() self.hLayout_subTitle.setObjectName("hLayout_subTitle") self.label_subTitle = QtWidgets.QLabel(SteamModManagerFrame) self.label_subTitle.setEnabled(True) self.label_subTitle.setMinimumSize(QtCore.QSize(200, 75)) self.label_subTitle.setMaximumSize(QtCore.QSize(16777215, 75)) font = QtGui.QFont() font.setPointSize(18) self.label_subTitle.setFont(font) self.label_subTitle.setObjectName("label_subTitle") self.hLayout_subTitle.addWidget(self.label_subTitle) self.gameComboBox = QtWidgets.QComboBox(SteamModManagerFrame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.gameComboBox.sizePolicy().hasHeightForWidth()) self.gameComboBox.setSizePolicy(sizePolicy) self.gameComboBox.setMinimumSize(QtCore.QSize(0, 75)) self.gameComboBox.setBaseSize(QtCore.QSize(0, 75)) self.gameComboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.gameComboBox.setIconSize(QtCore.QSize(150, 75)) self.gameComboBox.setDuplicatesEnabled(False) self.gameComboBox.setObjectName("gameComboBox") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("./user_interfaces\\../assets/dont_starve_mini.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.gameComboBox.addItem(icon, "") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("./user_interfaces\\../assets/DontStarveTogether_mini.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.gameComboBox.addItem(icon1, "") self.hLayout_subTitle.addWidget(self.gameComboBox) self.tbtn_addGame = QtWidgets.QToolButton(SteamModManagerFrame) self.tbtn_addGame.setObjectName("tbtn_addGame") self.hLayout_subTitle.addWidget(self.tbtn_addGame) self.tbtn_addModPack = QtWidgets.QToolButton(SteamModManagerFrame) self.tbtn_addModPack.setObjectName("tbtn_addModPack") self.hLayout_subTitle.addWidget(self.tbtn_addModPack) self.tbtn_addMod = QtWidgets.QToolButton(SteamModManagerFrame) self.tbtn_addMod.setObjectName("tbtn_addMod") self.hLayout_subTitle.addWidget(self.tbtn_addMod) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.hLayout_subTitle.addItem(spacerItem1) self.gridLayout.addLayout(self.hLayout_subTitle, 1, 0, 1, 1) self.tView_modPacks = QtWidgets.QTreeView(SteamModManagerFrame) self.tView_modPacks.setObjectName("tView_modPacks") self.tView_modPacks.header().setVisible(False) self.gridLayout.addWidget(self.tView_modPacks, 2, 0, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.retranslateUi(SteamModManagerFrame) self.gameComboBox.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(SteamModManagerFrame) def retranslateUi(self, SteamModManagerFrame): _translate = QtCore.QCoreApplication.translate SteamModManagerFrame.setWindowTitle(_translate("SteamModManagerFrame", "Steam Mod Manager")) self.label_Title.setText(_translate("SteamModManagerFrame", "Steam Mod Manager")) self.label_subTitle.setText(_translate("SteamModManagerFrame", "Game Selection")) self.gameComboBox.setItemText(0, _translate("SteamModManagerFrame", "Don\'t Starve")) self.gameComboBox.setItemText(1, _translate("SteamModManagerFrame", "Don\'t Starve Together")) self.tbtn_addGame.setText(_translate("SteamModManagerFrame", "G+")) self.tbtn_addModPack.setText(_translate("SteamModManagerFrame", "MP+")) self.tbtn_addMod.setText(_translate("SteamModManagerFrame", "M+")) if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) SteamModManagerFrame = QtWidgets.QDialog() ui = Ui_SteamModManagerFrame() ui.setupUi(SteamModManagerFrame) SteamModManagerFrame.show() sys.exit(app.exec_())