consolidator

Форк
0
/
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

11
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
12
    QMetaObject, QObject, QPoint, QRect,
13
    QSize, QTime, QUrl, Qt)
14
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
15
    QFont, QFontDatabase, QGradient, QIcon,
16
    QImage, QKeySequence, QLinearGradient, QPainter,
17
    QPalette, QPixmap, QRadialGradient, QTransform)
18
from PySide6.QtWidgets import (QAbstractButton, QAbstractItemView, QApplication, QDialog,
19
    QDialogButtonBox, QGridLayout, QHeaderView, QPushButton,
20
    QSizePolicy, QTableWidget, QTableWidgetItem, QWidget)
21

22
class Ui_TodoDialog(object):
23
    def setupUi(self, TodoDialog):
24
        if not TodoDialog.objectName():
25
            TodoDialog.setObjectName(u"TodoDialog")
26
        TodoDialog.resize(758, 725)
27
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
28
        sizePolicy.setHorizontalStretch(1)
29
        sizePolicy.setVerticalStretch(1)
30
        sizePolicy.setHeightForWidth(TodoDialog.sizePolicy().hasHeightForWidth())
31
        TodoDialog.setSizePolicy(sizePolicy)
32
        TodoDialog.setMaximumSize(QSize(10000, 10000))
33
        TodoDialog.setSizeIncrement(QSize(1, 1))
34
        TodoDialog.setWindowTitle(u"TODO")
35
        TodoDialog.setWindowFilePath(u"")
36
        TodoDialog.setSizeGripEnabled(False)
37
        TodoDialog.setModal(True)
38
        self.gridLayout = QGridLayout(TodoDialog)
39
        self.gridLayout.setObjectName(u"gridLayout")
40
        self.newModuleButton = QPushButton(TodoDialog)
41
        self.newModuleButton.setObjectName(u"newModuleButton")
42

43
        self.gridLayout.addWidget(self.newModuleButton, 1, 0, 1, 1)
44

45
        self.buttonBox = QDialogButtonBox(TodoDialog)
46
        self.buttonBox.setObjectName(u"buttonBox")
47
        sizePolicy1 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
48
        sizePolicy1.setHorizontalStretch(1)
49
        sizePolicy1.setVerticalStretch(1)
50
        sizePolicy1.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
51
        self.buttonBox.setSizePolicy(sizePolicy1)
52
        self.buttonBox.setOrientation(Qt.Horizontal)
53
        self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Save)
54

55
        self.gridLayout.addWidget(self.buttonBox, 1, 2, 1, 1)
56

57
        self.mainTable = QTableWidget(TodoDialog)
58
        if (self.mainTable.columnCount() < 3):
59
            self.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);
63
        self.mainTable.setHorizontalHeaderItem(0, __qtablewidgetitem)
64
        __qtablewidgetitem1 = QTableWidgetItem()
65
        __qtablewidgetitem1.setTextAlignment(Qt.AlignLeading|Qt.AlignVCenter);
66
        self.mainTable.setHorizontalHeaderItem(1, __qtablewidgetitem1)
67
        __qtablewidgetitem2 = QTableWidgetItem()
68
        __qtablewidgetitem2.setTextAlignment(Qt.AlignLeading|Qt.AlignVCenter);
69
        self.mainTable.setHorizontalHeaderItem(2, __qtablewidgetitem2)
70
        self.mainTable.setObjectName(u"mainTable")
71
        self.mainTable.setMaximumSize(QSize(10000, 10000))
72
        self.mainTable.setSelectionMode(QAbstractItemView.SingleSelection)
73
        self.mainTable.setSelectionBehavior(QAbstractItemView.SelectRows)
74
        self.mainTable.setSortingEnabled(True)
75
        self.mainTable.setColumnCount(3)
76
        self.mainTable.horizontalHeader().setCascadingSectionResizes(True)
77
        self.mainTable.horizontalHeader().setMinimumSectionSize(70)
78
        self.mainTable.horizontalHeader().setStretchLastSection(False)
79
        self.mainTable.verticalHeader().setDefaultSectionSize(30)
80

81
        self.gridLayout.addWidget(self.mainTable, 0, 0, 1, 3)
82

83
        self.delModuleButton = QPushButton(TodoDialog)
84
        self.delModuleButton.setObjectName(u"delModuleButton")
85

86
        self.gridLayout.addWidget(self.delModuleButton, 1, 1, 1, 1)
87

88

89
        self.retranslateUi(TodoDialog)
90
        self.buttonBox.accepted.connect(TodoDialog.accept)
91
        self.buttonBox.rejected.connect(TodoDialog.reject)
92

93
        QMetaObject.connectSlotsByName(TodoDialog)
94
    # setupUi
95

96
    def retranslateUi(self, TodoDialog):
97
        self.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));
102
        self.delModuleButton.setText(QCoreApplication.translate("TodoDialog", u"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c", None))
103
        pass
104
    # retranslateUi
105

106

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.