60 lines
2.9 KiB
Python
60 lines
2.9 KiB
Python
|
|
# Form implementation generated from reading ui file '.\src\warchron\view\ui\ui_objective_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_objectiveDialog(object):
|
||
|
|
def setupUi(self, objectiveDialog):
|
||
|
|
objectiveDialog.setObjectName("objectiveDialog")
|
||
|
|
objectiveDialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
|
||
|
|
objectiveDialog.resize(394, 148)
|
||
|
|
icon = QtGui.QIcon()
|
||
|
|
icon.addPixmap(QtGui.QPixmap(".\\src\\warchron\\view\\ui\\../resources/warchron_logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||
|
|
objectiveDialog.setWindowIcon(icon)
|
||
|
|
self.gridLayout = QtWidgets.QGridLayout(objectiveDialog)
|
||
|
|
self.gridLayout.setObjectName("gridLayout")
|
||
|
|
self.label = QtWidgets.QLabel(parent=objectiveDialog)
|
||
|
|
self.label.setObjectName("label")
|
||
|
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||
|
|
self.objectiveName = QtWidgets.QLineEdit(parent=objectiveDialog)
|
||
|
|
self.objectiveName.setObjectName("objectiveName")
|
||
|
|
self.gridLayout.addWidget(self.objectiveName, 0, 1, 1, 1)
|
||
|
|
self.label_2 = QtWidgets.QLabel(parent=objectiveDialog)
|
||
|
|
self.label_2.setObjectName("label_2")
|
||
|
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||
|
|
self.objectiveDescription = QtWidgets.QTextEdit(parent=objectiveDialog)
|
||
|
|
self.objectiveDescription.setObjectName("objectiveDescription")
|
||
|
|
self.gridLayout.addWidget(self.objectiveDescription, 1, 1, 1, 1)
|
||
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=objectiveDialog)
|
||
|
|
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, 2, 0, 1, 2)
|
||
|
|
|
||
|
|
self.retranslateUi(objectiveDialog)
|
||
|
|
self.buttonBox.accepted.connect(objectiveDialog.accept) # type: ignore
|
||
|
|
self.buttonBox.rejected.connect(objectiveDialog.reject) # type: ignore
|
||
|
|
QtCore.QMetaObject.connectSlotsByName(objectiveDialog)
|
||
|
|
|
||
|
|
def retranslateUi(self, objectiveDialog):
|
||
|
|
_translate = QtCore.QCoreApplication.translate
|
||
|
|
objectiveDialog.setWindowTitle(_translate("objectiveDialog", "Objective"))
|
||
|
|
self.label.setText(_translate("objectiveDialog", "Name"))
|
||
|
|
self.label_2.setText(_translate("objectiveDialog", "Description"))
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
import sys
|
||
|
|
app = QtWidgets.QApplication(sys.argv)
|
||
|
|
objectiveDialog = QtWidgets.QDialog()
|
||
|
|
ui = Ui_objectiveDialog()
|
||
|
|
ui.setupUi(objectiveDialog)
|
||
|
|
objectiveDialog.show()
|
||
|
|
sys.exit(app.exec())
|