2026-02-12 10:07:03 +01:00
|
|
|
# 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()
|
2026-02-12 15:12:28 +01:00
|
|
|
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
2026-02-12 10:07:03 +01:00
|
|
|
choiceDialog.setWindowIcon(icon)
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout = QtWidgets.QFormLayout(choiceDialog)
|
|
|
|
|
self.formLayout.setObjectName("formLayout")
|
2026-02-12 10:07:03 +01:00
|
|
|
self.label = QtWidgets.QLabel(parent=choiceDialog)
|
|
|
|
|
self.label.setObjectName("label")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.playerComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
2026-02-12 10:07:03 +01:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy.setHeightForWidth(self.playerComboBox.sizePolicy().hasHeightForWidth())
|
2026-02-12 10:07:03 +01:00
|
|
|
self.playerComboBox.setSizePolicy(sizePolicy)
|
|
|
|
|
self.playerComboBox.setObjectName("playerComboBox")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.playerComboBox)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.label_2 = QtWidgets.QLabel(parent=choiceDialog)
|
|
|
|
|
self.label_2.setObjectName("label_2")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.priorityComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
2026-02-12 10:07:03 +01:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy.setHeightForWidth(self.priorityComboBox.sizePolicy().hasHeightForWidth())
|
2026-02-12 10:07:03 +01:00
|
|
|
self.priorityComboBox.setSizePolicy(sizePolicy)
|
|
|
|
|
self.priorityComboBox.setObjectName("priorityComboBox")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.priorityComboBox)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.label_3 = QtWidgets.QLabel(parent=choiceDialog)
|
|
|
|
|
self.label_3.setObjectName("label_3")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.secondaryComboBox = QtWidgets.QComboBox(parent=choiceDialog)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
2026-02-12 10:07:03 +01:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2026-02-12 15:12:28 +01:00
|
|
|
sizePolicy.setHeightForWidth(self.secondaryComboBox.sizePolicy().hasHeightForWidth())
|
2026-02-12 10:07:03 +01:00
|
|
|
self.secondaryComboBox.setSizePolicy(sizePolicy)
|
|
|
|
|
self.secondaryComboBox.setObjectName("secondaryComboBox")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.secondaryComboBox)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.label_4 = QtWidgets.QLabel(parent=choiceDialog)
|
|
|
|
|
self.label_4.setObjectName("label_4")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.choiceComment = QtWidgets.QPlainTextEdit(parent=choiceDialog)
|
|
|
|
|
self.choiceComment.setObjectName("choiceComment")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.choiceComment)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=choiceDialog)
|
|
|
|
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
2026-02-12 15:12:28 +01:00
|
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
2026-02-12 10:07:03 +01:00
|
|
|
self.buttonBox.setObjectName("buttonBox")
|
2026-02-12 15:12:28 +01:00
|
|
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonBox)
|
2026-02-12 10:07:03 +01:00
|
|
|
|
|
|
|
|
self.retranslateUi(choiceDialog)
|
2026-02-12 15:12:28 +01:00
|
|
|
self.buttonBox.accepted.connect(choiceDialog.accept) # type: ignore
|
|
|
|
|
self.buttonBox.rejected.connect(choiceDialog.reject) # type: ignore
|
2026-02-12 10:07:03 +01:00
|
|
|
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())
|