109 lines
4.9 KiB
Python
109 lines
4.9 KiB
Python
|
|
# Form implementation generated from reading ui file '.\src\warchron\view\ui\ui_choice_dialog.ui'
|
||
|
|
#
|
||
|
|
# Created by: PyQt6 UI code generator 6.7.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
|
||
|
|
|
||
|
|
|
||
|
|
class Ui_choiceDialog(object):
|
||
|
|
def setupUi(self, choiceDialog):
|
||
|
|
choiceDialog.setObjectName("choiceDialog")
|
||
|
|
choiceDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||
|
|
choiceDialog.resize(561, 246)
|
||
|
|
icon = QtGui.QIcon()
|
||
|
|
icon.addPixmap(
|
||
|
|
QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"),
|
||
|
|
QtGui.QIcon.Mode.Normal,
|
||
|
|
QtGui.QIcon.State.Off,
|
||
|
|
)
|
||
|
|
choiceDialog.setWindowIcon(icon)
|
||
|
|
self.gridLayout = QtWidgets.QGridLayout(choiceDialog)
|
||
|
|
self.gridLayout.setObjectName("gridLayout")
|
||
|
|
self.label = QtWidgets.QLabel(parent=choiceDialog)
|
||
|
|
self.label.setObjectName("label")
|
||
|
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||
|
|
self.playerComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||
|
|
sizePolicy = QtWidgets.QSizePolicy(
|
||
|
|
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||
|
|
)
|
||
|
|
sizePolicy.setHorizontalStretch(0)
|
||
|
|
sizePolicy.setVerticalStretch(0)
|
||
|
|
sizePolicy.setHeightForWidth(
|
||
|
|
self.playerComboBox.sizePolicy().hasHeightForWidth()
|
||
|
|
)
|
||
|
|
self.playerComboBox.setSizePolicy(sizePolicy)
|
||
|
|
self.playerComboBox.setObjectName("playerComboBox")
|
||
|
|
self.gridLayout.addWidget(self.playerComboBox, 0, 1, 1, 1)
|
||
|
|
self.label_2 = QtWidgets.QLabel(parent=choiceDialog)
|
||
|
|
self.label_2.setObjectName("label_2")
|
||
|
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||
|
|
self.priorityComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||
|
|
sizePolicy = QtWidgets.QSizePolicy(
|
||
|
|
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||
|
|
)
|
||
|
|
sizePolicy.setHorizontalStretch(0)
|
||
|
|
sizePolicy.setVerticalStretch(0)
|
||
|
|
sizePolicy.setHeightForWidth(
|
||
|
|
self.priorityComboBox.sizePolicy().hasHeightForWidth()
|
||
|
|
)
|
||
|
|
self.priorityComboBox.setSizePolicy(sizePolicy)
|
||
|
|
self.priorityComboBox.setObjectName("priorityComboBox")
|
||
|
|
self.gridLayout.addWidget(self.priorityComboBox, 1, 1, 1, 1)
|
||
|
|
self.label_3 = QtWidgets.QLabel(parent=choiceDialog)
|
||
|
|
self.label_3.setObjectName("label_3")
|
||
|
|
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
|
||
|
|
self.secondaryComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
||
|
|
sizePolicy = QtWidgets.QSizePolicy(
|
||
|
|
QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed
|
||
|
|
)
|
||
|
|
sizePolicy.setHorizontalStretch(0)
|
||
|
|
sizePolicy.setVerticalStretch(0)
|
||
|
|
sizePolicy.setHeightForWidth(
|
||
|
|
self.secondaryComboBox.sizePolicy().hasHeightForWidth()
|
||
|
|
)
|
||
|
|
self.secondaryComboBox.setSizePolicy(sizePolicy)
|
||
|
|
self.secondaryComboBox.setObjectName("secondaryComboBox")
|
||
|
|
self.gridLayout.addWidget(self.secondaryComboBox, 2, 1, 1, 1)
|
||
|
|
self.label_4 = QtWidgets.QLabel(parent=choiceDialog)
|
||
|
|
self.label_4.setObjectName("label_4")
|
||
|
|
self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
|
||
|
|
self.choiceComment = QtWidgets.QPlainTextEdit(parent=choiceDialog)
|
||
|
|
self.choiceComment.setObjectName("choiceComment")
|
||
|
|
self.gridLayout.addWidget(self.choiceComment, 3, 1, 1, 1)
|
||
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=choiceDialog)
|
||
|
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||
|
|
self.buttonBox.setStandardButtons(
|
||
|
|
QtWidgets.QDialogButtonBox.StandardButton.Cancel
|
||
|
|
| QtWidgets.QDialogButtonBox.StandardButton.Ok
|
||
|
|
)
|
||
|
|
self.buttonBox.setObjectName("buttonBox")
|
||
|
|
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 2)
|
||
|
|
|
||
|
|
self.retranslateUi(choiceDialog)
|
||
|
|
self.buttonBox.accepted.connect(choiceDialog.accept) # type: ignore
|
||
|
|
self.buttonBox.rejected.connect(choiceDialog.reject) # type: ignore
|
||
|
|
QtCore.QMetaObject.connectSlotsByName(choiceDialog)
|
||
|
|
|
||
|
|
def retranslateUi(self, choiceDialog):
|
||
|
|
_translate = QtCore.QCoreApplication.translate
|
||
|
|
choiceDialog.setWindowTitle(_translate("choiceDialog", "Choices"))
|
||
|
|
self.label.setText(_translate("choiceDialog", "Player"))
|
||
|
|
self.label_2.setText(_translate("choiceDialog", "Priority"))
|
||
|
|
self.label_3.setText(_translate("choiceDialog", "Secondary"))
|
||
|
|
self.label_4.setText(_translate("choiceDialog", "Comment"))
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
import sys
|
||
|
|
|
||
|
|
app = QtWidgets.QApplication(sys.argv)
|
||
|
|
choiceDialog = QtWidgets.QDialog()
|
||
|
|
ui = Ui_choiceDialog()
|
||
|
|
ui.setupUi(choiceDialog)
|
||
|
|
choiceDialog.show()
|
||
|
|
sys.exit(app.exec())
|