consolidator
/
TodoWindow_ui.py
104 строки · 5.2 Кб
1# -*- coding: utf-8 -*-
2
3################################################################################
4## Form generated from reading UI file 'TodoWindow.ui'
5##
6## Created by: Qt User Interface Compiler version 6.5.2
7##
8## WARNING! All changes made in this file will be lost when recompiling UI file!
9################################################################################
10
11from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,12QMetaObject, QObject, QPoint, QRect,13QSize, QTime, QUrl, Qt)14from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,15QFont, QFontDatabase, QGradient, QIcon,16QImage, QKeySequence, QLinearGradient, QPainter,17QPalette, QPixmap, QRadialGradient, QTransform)18from PySide6.QtWidgets import (QAbstractButton, QAbstractItemView, QApplication, QDialog,19QDialogButtonBox, QGridLayout, QHeaderView, QPushButton,20QSizePolicy, QTableWidget, QTableWidgetItem, QWidget)21
22class Ui_TodoDialog(object):23def setupUi(self, TodoDialog):24if not TodoDialog.objectName():25TodoDialog.setObjectName(u"TodoDialog")26TodoDialog.resize(758, 725)27sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)28sizePolicy.setHorizontalStretch(1)29sizePolicy.setVerticalStretch(1)30sizePolicy.setHeightForWidth(TodoDialog.sizePolicy().hasHeightForWidth())31TodoDialog.setSizePolicy(sizePolicy)32TodoDialog.setMaximumSize(QSize(10000, 10000))33TodoDialog.setSizeIncrement(QSize(1, 1))34TodoDialog.setWindowTitle(u"TODO")35TodoDialog.setWindowFilePath(u"")36TodoDialog.setSizeGripEnabled(False)37TodoDialog.setModal(True)38self.gridLayout = QGridLayout(TodoDialog)39self.gridLayout.setObjectName(u"gridLayout")40self.newModuleButton = QPushButton(TodoDialog)41self.newModuleButton.setObjectName(u"newModuleButton")42
43self.gridLayout.addWidget(self.newModuleButton, 1, 0, 1, 1)44
45self.buttonBox = QDialogButtonBox(TodoDialog)46self.buttonBox.setObjectName(u"buttonBox")47sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)48sizePolicy1.setHorizontalStretch(1)49sizePolicy1.setVerticalStretch(1)50sizePolicy1.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())51self.buttonBox.setSizePolicy(sizePolicy1)52self.buttonBox.setOrientation(Qt.Horizontal)53self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Save)54
55self.gridLayout.addWidget(self.buttonBox, 1, 2, 1, 1)56
57self.mainTable = QTableWidget(TodoDialog)58if (self.mainTable.columnCount() < 3):59self.mainTable.setColumnCount(3)60__qtablewidgetitem = QTableWidgetItem()61__qtablewidgetitem.setText(u"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e");62__qtablewidgetitem.setTextAlignment(Qt.AlignLeading|Qt.AlignVCenter);63self.mainTable.setHorizontalHeaderItem(0, __qtablewidgetitem)64__qtablewidgetitem1 = QTableWidgetItem()65__qtablewidgetitem1.setTextAlignment(Qt.AlignLeading|Qt.AlignVCenter);66self.mainTable.setHorizontalHeaderItem(1, __qtablewidgetitem1)67__qtablewidgetitem2 = QTableWidgetItem()68__qtablewidgetitem2.setTextAlignment(Qt.AlignLeading|Qt.AlignVCenter);69self.mainTable.setHorizontalHeaderItem(2, __qtablewidgetitem2)70self.mainTable.setObjectName(u"mainTable")71self.mainTable.setMaximumSize(QSize(10000, 10000))72self.mainTable.setSelectionMode(QAbstractItemView.SingleSelection)73self.mainTable.setSelectionBehavior(QAbstractItemView.SelectRows)74self.mainTable.setSortingEnabled(True)75self.mainTable.setColumnCount(3)76self.mainTable.horizontalHeader().setCascadingSectionResizes(True)77self.mainTable.horizontalHeader().setMinimumSectionSize(70)78self.mainTable.horizontalHeader().setStretchLastSection(False)79self.mainTable.verticalHeader().setDefaultSectionSize(30)80
81self.gridLayout.addWidget(self.mainTable, 0, 0, 1, 3)82
83self.delModuleButton = QPushButton(TodoDialog)84self.delModuleButton.setObjectName(u"delModuleButton")85
86self.gridLayout.addWidget(self.delModuleButton, 1, 1, 1, 1)87
88
89self.retranslateUi(TodoDialog)90self.buttonBox.accepted.connect(TodoDialog.accept)91self.buttonBox.rejected.connect(TodoDialog.reject)92
93QMetaObject.connectSlotsByName(TodoDialog)94# setupUi95
96def retranslateUi(self, TodoDialog):97self.newModuleButton.setText(QCoreApplication.translate("TodoDialog", u"\u041d\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c", None))98___qtablewidgetitem = self.mainTable.horizontalHeaderItem(1)99___qtablewidgetitem.setText(QCoreApplication.translate("TodoDialog", u"\u043c\u043e\u0434\u0443\u043b\u044c", None));100___qtablewidgetitem1 = self.mainTable.horizontalHeaderItem(2)101___qtablewidgetitem1.setText(QCoreApplication.translate("TodoDialog", u"\u0441\u0434\u0435\u043b\u0430\u043d\u043e", None));102self.delModuleButton.setText(QCoreApplication.translate("TodoDialog", u"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c", None))103pass104# retranslateUi105
106