예제 #1
0
    def setupUi(self, Settings):
        Settings.setObjectName("Settings")
        Settings.resize(343, 118)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/settings.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        Settings.setWindowIcon(icon)
        self.verticalLayout = QtWidgets.QVBoxLayout(Settings)
        self.verticalLayout.setSpacing(3)
        self.verticalLayout.setContentsMargins(3, 3, 3, 3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(Settings)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.comboFont = QtWidgets.QFontComboBox(Settings)
        self.comboFont.setObjectName("comboFont")
        self.gridLayout.addWidget(self.comboFont, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(Settings)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.spinFontSize = QtWidgets.QDoubleSpinBox(Settings)
        self.spinFontSize.setMaximum(100.0)
        self.spinFontSize.setObjectName("spinFontSize")
        self.gridLayout.addWidget(self.spinFontSize, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Settings)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.spinTab = QtWidgets.QSpinBox(Settings)
        self.spinTab.setPrefix("")
        self.spinTab.setMinimum(0)
        self.spinTab.setMaximum(100)
        self.spinTab.setProperty("value", 4)
        self.spinTab.setObjectName("spinTab")
        self.gridLayout.addWidget(self.spinTab, 2, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setSpacing(3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnCancel = QtWidgets.QPushButton(Settings)
        self.btnCancel.setAutoDefault(False)
        self.btnCancel.setObjectName("btnCancel")
        self.horizontalLayout.addWidget(self.btnCancel)
        self.btnSave = QtWidgets.QPushButton(Settings)
        self.btnSave.setObjectName("btnSave")
        self.horizontalLayout.addWidget(self.btnSave)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(Settings)
        QtCore.QMetaObject.connectSlotsByName(Settings)
예제 #2
0
 def __stubs(self):
     """ This just enables code completion. It should never be called """
     self.Dialog = QtWidgets.QDialog()
     self.buttonBox = QtWidgets.QDialogButtonBox()
     self.fontComboBox = QtWidgets.QFontComboBox()
     self.label = QtWidgets.QLabel()
     self.styleComboBox = QtWidgets.QComboBox()
     self.label_2 = QtWidgets.QLabel()
     self.loopsSpinBox = QtWidgets.QSpinBox()
     self.label_3 = QtWidgets.QLabel()
     raise AssertionError("This should never be called")
예제 #3
0
파일: settings.py 프로젝트: safu9/Momiji
    def setupUi(self, SettingsDialog):
        SettingsDialog.setObjectName("SettingsDialog")
        SettingsDialog.resize(207, 178)
        self.verticalLayout = QtWidgets.QVBoxLayout(SettingsDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame = QtWidgets.QFrame(SettingsDialog)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.formLayout = QtWidgets.QFormLayout(self.frame)
        self.formLayout.setObjectName("formLayout")
        self.labelFont = QtWidgets.QLabel(self.frame)
        self.labelFont.setObjectName("labelFont")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.labelFont)
        self.fontComboBox = QtWidgets.QFontComboBox(self.frame)
        self.fontComboBox.setObjectName("fontComboBox")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.fontComboBox)
        self.labelSize = QtWidgets.QLabel(self.frame)
        self.labelSize.setObjectName("labelSize")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.labelSize)
        self.spinBoxSize = QtWidgets.QSpinBox(self.frame)
        self.spinBoxSize.setButtonSymbols(QtWidgets.QAbstractSpinBox.UpDownArrows)
        self.spinBoxSize.setMinimum(1)
        self.spinBoxSize.setMaximum(50)
        self.spinBoxSize.setProperty("value", 9)
        self.spinBoxSize.setObjectName("spinBoxSize")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.spinBoxSize)
        self.labelPreview = QtWidgets.QLabel(self.frame)
        self.labelPreview.setObjectName("labelPreview")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.labelPreview)
        self.labelPreviewFont = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.labelPreviewFont.sizePolicy().hasHeightForWidth())
        self.labelPreviewFont.setSizePolicy(sizePolicy)
        self.labelPreviewFont.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.labelPreviewFont.setFrameShadow(QtWidgets.QFrame.Plain)
        self.labelPreviewFont.setAlignment(QtCore.Qt.AlignCenter)
        self.labelPreviewFont.setMargin(4)
        self.labelPreviewFont.setObjectName("labelPreviewFont")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.labelPreviewFont)
        self.verticalLayout.addWidget(self.frame)
        self.buttonBox = QtWidgets.QDialogButtonBox(SettingsDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(SettingsDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), SettingsDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), SettingsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(SettingsDialog)
예제 #4
0
    def __init__(self, item=None, position=None, scene=None, parent=None, snap=None):
        super(codeSnippetItemDialog, self).__init__(parent)

        self.item = item
        self.position = position
        self.scene = scene
        self.a_snap = snap

        self.textField = codeEditor(self)
        editorLabel = QtWidgets.QLabel("&Text:")
        editorLabel.setBuddy(self.textField)

        self.fontComboBox = QtWidgets.QFontComboBox()
        self.fontComboBox.setCurrentFont(QtGui.QFont("Times", POINT_SIZE))
        fontLabel = QtWidgets.QLabel("&Font:")
        fontLabel.setBuddy(self.fontComboBox)

        self.fontSpinBox = QtWidgets.QSpinBox()
        self.fontSpinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignVCenter)
        self.fontSpinBox.setRange(6, 280)
        self.fontSpinBox.setValue(POINT_SIZE)
        fontSizeLabel = QtWidgets.QLabel("&Size:")
        fontSizeLabel.setBuddy(self.fontSpinBox)

        self.buttonBox = QtWidgets.QDialogButtonBox(QtWidgets.QDialogButtonBox.Ok |
                                                    QtWidgets.QDialogButtonBox.Cancel)
        self.buttonBox.button(QtWidgets.QDialogButtonBox.Ok).setEnabled(False)

        if self.item is not None:
            self.textField.setPlainText(self.item.toPlainText())
            self.fontComboBox.setCurrentFont(self.item.font())
            self.fontSpinBox.setValue(self.item.font().pointSize())

        layout = QtWidgets.QVBoxLayout()
        self.setLayout(layout)

        layout.addWidget(editorLabel, alignment=QtCore.Qt.AlignLeft)

        layout1 = QtWidgets.QHBoxLayout()
        layout1.addSpacing(40)
        layout1.addWidget(self.textField)
        layout.addLayout(layout1)

        layout2 = QtWidgets.QHBoxLayout()
        layout2.addWidget(fontLabel, alignment=QtCore.Qt.AlignRight, stretch=1)
        layout2.addWidget(self.fontComboBox, alignment=QtCore.Qt.AlignRight, stretch=0)
        layout2.addSpacing(10)

        layout3 = QtWidgets.QHBoxLayout()
        layout3.addWidget(fontSizeLabel, alignment=QtCore.Qt.AlignRight, stretch=1)
        layout3.addWidget(self.fontSpinBox, alignment=QtCore.Qt.AlignRight, stretch=1)
        layout2.addLayout(layout3)
        layout.addLayout(layout2)

        layout.addWidget(self.buttonBox, alignment=QtCore.Qt.AlignRight)

        self.connect(self.fontComboBox,
                     SIGNAL("currentFontChanged(QtGui.QFont())"), self.updateUi)
        self.connect(self.fontSpinBox,
                     SIGNAL("valueChanged(int)"), self.updateUi)
        self.connect(self.textField, SIGNAL("textChanged()"),
                     self.updateUi)
        self.connect(self.buttonBox, SIGNAL("accepted()"), self.accept)
        self.connect(self.buttonBox, SIGNAL("rejected()"), self.reject)

        self.setWindowTitle("Page Designer - {} Text Item".format(
            "Add" if self.item is None else "Edit"))
        self.updateUi()
예제 #5
0
    def setupUi(self, DockWidget):
        DockWidget.setObjectName("DockWidget")
        DockWidget.resize(703, 557)
        self.dockWidgetContents = QtWidgets.QWidget()
        self.dockWidgetContents.setObjectName("dockWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.dockWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.dockWidgetContents)
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_12.setMinimumSize(QtCore.QSize(0, 0))
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_12.setFont(font)
        self.label_12.setObjectName("label_12")
        self.gridLayout.addWidget(self.label_12, 1, 0, 1, 1)
        self.fontComboBox = QtWidgets.QFontComboBox(self.dockWidgetContents)
        self.fontComboBox.setMinimumSize(QtCore.QSize(0, 0))
        self.fontComboBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.fontComboBox.setObjectName("fontComboBox")
        self.gridLayout.addWidget(self.fontComboBox, 1, 1, 1, 1)
        self.fontComboBoxDis = QtWidgets.QFontComboBox(self.dockWidgetContents)
        self.fontComboBoxDis.setEnabled(False)
        self.fontComboBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.fontComboBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.fontComboBoxDis.setObjectName("fontComboBoxDis")
        self.gridLayout.addWidget(self.fontComboBoxDis, 1, 2, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.comboBoxEdit = QtWidgets.QComboBox(self.dockWidgetContents)
        self.comboBoxEdit.setEditable(True)
        self.comboBoxEdit.setObjectName("comboBoxEdit")
        self.comboBoxEdit.addItem("")
        self.comboBoxEdit.addItem("")
        self.comboBoxEdit.addItem("")
        self.comboBoxEdit.setItemText(2, "")
        self.gridLayout.addWidget(self.comboBoxEdit, 2, 1, 1, 1)
        self.comboBoxEditDis = QtWidgets.QComboBox(self.dockWidgetContents)
        self.comboBoxEditDis.setEnabled(False)
        self.comboBoxEditDis.setEditable(True)
        self.comboBoxEditDis.setObjectName("comboBoxEditDis")
        self.comboBoxEditDis.addItem("")
        self.comboBoxEditDis.addItem("")
        self.comboBoxEditDis.addItem("")
        self.comboBoxEditDis.setItemText(2, "")
        self.gridLayout.addWidget(self.comboBoxEditDis, 2, 2, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_13.setMinimumSize(QtCore.QSize(0, 0))
        self.label_13.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_13.setFont(font)
        self.label_13.setObjectName("label_13")
        self.gridLayout.addWidget(self.label_13, 3, 0, 1, 1)
        self.lineEdit = QtWidgets.QLineEdit(self.dockWidgetContents)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit.sizePolicy().hasHeightForWidth())
        self.lineEdit.setSizePolicy(sizePolicy)
        self.lineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.lineEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEdit.setObjectName("lineEdit")
        self.gridLayout.addWidget(self.lineEdit, 3, 1, 1, 1)
        self.lineEditDis = QtWidgets.QLineEdit(self.dockWidgetContents)
        self.lineEditDis.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEditDis.sizePolicy().hasHeightForWidth())
        self.lineEditDis.setSizePolicy(sizePolicy)
        self.lineEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.lineEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEditDis.setObjectName("lineEditDis")
        self.gridLayout.addWidget(self.lineEditDis, 3, 2, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_14.setMinimumSize(QtCore.QSize(0, 0))
        self.label_14.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_14.setFont(font)
        self.label_14.setObjectName("label_14")
        self.gridLayout.addWidget(self.label_14, 4, 0, 1, 1)
        self.textEdit = QtWidgets.QTextEdit(self.dockWidgetContents)
        self.textEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.textEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textEdit.setObjectName("textEdit")
        self.gridLayout.addWidget(self.textEdit, 4, 1, 1, 1)
        self.textEditDis = QtWidgets.QTextEdit(self.dockWidgetContents)
        self.textEditDis.setEnabled(False)
        self.textEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.textEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.textEditDis.setObjectName("textEditDis")
        self.gridLayout.addWidget(self.textEditDis, 4, 2, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_15.setMinimumSize(QtCore.QSize(0, 0))
        self.label_15.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_15.setFont(font)
        self.label_15.setObjectName("label_15")
        self.gridLayout.addWidget(self.label_15, 5, 0, 1, 1)
        self.plainTextEdit = QtWidgets.QPlainTextEdit(self.dockWidgetContents)
        self.plainTextEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.plainTextEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.plainTextEdit.setObjectName("plainTextEdit")
        self.gridLayout.addWidget(self.plainTextEdit, 5, 1, 1, 1)
        self.plainTextEditDis = QtWidgets.QPlainTextEdit(
            self.dockWidgetContents)
        self.plainTextEditDis.setEnabled(False)
        self.plainTextEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.plainTextEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.plainTextEditDis.setObjectName("plainTextEditDis")
        self.gridLayout.addWidget(self.plainTextEditDis, 5, 2, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_16.setMinimumSize(QtCore.QSize(0, 0))
        self.label_16.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_16.setFont(font)
        self.label_16.setObjectName("label_16")
        self.gridLayout.addWidget(self.label_16, 6, 0, 1, 1)
        self.spinBox = QtWidgets.QSpinBox(self.dockWidgetContents)
        self.spinBox.setMinimumSize(QtCore.QSize(0, 0))
        self.spinBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 6, 1, 1, 1)
        self.spinBoxDis = QtWidgets.QSpinBox(self.dockWidgetContents)
        self.spinBoxDis.setEnabled(False)
        self.spinBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.spinBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.spinBoxDis.setObjectName("spinBoxDis")
        self.gridLayout.addWidget(self.spinBoxDis, 6, 2, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_17.setMinimumSize(QtCore.QSize(0, 0))
        self.label_17.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_17.setFont(font)
        self.label_17.setObjectName("label_17")
        self.gridLayout.addWidget(self.label_17, 7, 0, 1, 1)
        self.doubleSpinBox = QtWidgets.QDoubleSpinBox(self.dockWidgetContents)
        self.doubleSpinBox.setMinimumSize(QtCore.QSize(0, 0))
        self.doubleSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.doubleSpinBox.setObjectName("doubleSpinBox")
        self.gridLayout.addWidget(self.doubleSpinBox, 7, 1, 1, 1)
        self.doubleSpinBoxDis = QtWidgets.QDoubleSpinBox(
            self.dockWidgetContents)
        self.doubleSpinBoxDis.setEnabled(False)
        self.doubleSpinBoxDis.setMinimumSize(QtCore.QSize(0, 0))
        self.doubleSpinBoxDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.doubleSpinBoxDis.setObjectName("doubleSpinBoxDis")
        self.gridLayout.addWidget(self.doubleSpinBoxDis, 7, 2, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_18.setMinimumSize(QtCore.QSize(0, 0))
        self.label_18.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_18.setFont(font)
        self.label_18.setObjectName("label_18")
        self.gridLayout.addWidget(self.label_18, 8, 0, 1, 1)
        self.timeEdit = QtWidgets.QTimeEdit(self.dockWidgetContents)
        self.timeEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.timeEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.timeEdit.setObjectName("timeEdit")
        self.gridLayout.addWidget(self.timeEdit, 8, 1, 1, 1)
        self.timeEditDis = QtWidgets.QTimeEdit(self.dockWidgetContents)
        self.timeEditDis.setEnabled(False)
        self.timeEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.timeEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.timeEditDis.setObjectName("timeEditDis")
        self.gridLayout.addWidget(self.timeEditDis, 8, 2, 1, 1)
        self.label_19 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_19.setMinimumSize(QtCore.QSize(0, 0))
        self.label_19.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_19.setFont(font)
        self.label_19.setObjectName("label_19")
        self.gridLayout.addWidget(self.label_19, 9, 0, 1, 1)
        self.dateEdit = QtWidgets.QDateEdit(self.dockWidgetContents)
        self.dateEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.dateEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateEdit.setObjectName("dateEdit")
        self.gridLayout.addWidget(self.dateEdit, 9, 1, 1, 1)
        self.dateEditDis = QtWidgets.QDateEdit(self.dockWidgetContents)
        self.dateEditDis.setEnabled(False)
        self.dateEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.dateEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateEditDis.setObjectName("dateEditDis")
        self.gridLayout.addWidget(self.dateEditDis, 9, 2, 1, 1)
        self.label_20 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_20.setMinimumSize(QtCore.QSize(0, 0))
        self.label_20.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setWeight(75)
        font.setBold(True)
        self.label_20.setFont(font)
        self.label_20.setObjectName("label_20")
        self.gridLayout.addWidget(self.label_20, 10, 0, 1, 1)
        self.dateTimeEdit = QtWidgets.QDateTimeEdit(self.dockWidgetContents)
        self.dateTimeEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.dateTimeEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateTimeEdit.setObjectName("dateTimeEdit")
        self.gridLayout.addWidget(self.dateTimeEdit, 10, 1, 1, 1)
        self.dateTimeEditDis = QtWidgets.QDateTimeEdit(self.dockWidgetContents)
        self.dateTimeEditDis.setEnabled(False)
        self.dateTimeEditDis.setMinimumSize(QtCore.QSize(0, 0))
        self.dateTimeEditDis.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.dateTimeEditDis.setObjectName("dateTimeEditDis")
        self.gridLayout.addWidget(self.dateTimeEditDis, 10, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 11, 0, 1, 1)
        self.label_51 = QtWidgets.QLabel(self.dockWidgetContents)
        self.label_51.setAlignment(QtCore.Qt.AlignCenter)
        self.label_51.setObjectName("label_51")
        self.gridLayout.addWidget(self.label_51, 12, 0, 1, 3)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.fontComboBox,
                               QtCore.SIGNAL("editTextChanged(QString)"),
                               self.fontComboBoxDis.setEditText)
        QtCore.QObject.connect(self.lineEdit,
                               QtCore.SIGNAL("textEdited(QString)"),
                               self.lineEditDis.setText)
        QtCore.QObject.connect(self.spinBox,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.spinBoxDis.setValue)
        QtCore.QObject.connect(self.doubleSpinBox,
                               QtCore.SIGNAL("valueChanged(double)"),
                               self.doubleSpinBoxDis.setValue)
        QtCore.QObject.connect(self.timeEdit,
                               QtCore.SIGNAL("timeChanged(QTime)"),
                               self.timeEditDis.setTime)
        QtCore.QObject.connect(self.dateEdit,
                               QtCore.SIGNAL("dateTimeChanged(QDateTime)"),
                               self.dateEditDis.setDateTime)
        QtCore.QObject.connect(self.dateTimeEdit,
                               QtCore.SIGNAL("dateTimeChanged(QDateTime)"),
                               self.dateTimeEditDis.setDateTime)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
예제 #6
0
    def setup(self, dispatch):
        for label, value in self.data:

            # Separador
            if label is None and value is None:
                self.formlayout.addRow(QtWidgets.QLabel(" ", self),
                                       QtWidgets.QLabel(" ", self))
                self.widgets.append(None)
                self.labels.append(None)

            # Comentario
            elif label is None:
                if value.startswith("$"):
                    lb = Controles.LB(self, value[1:])
                else:
                    lb = Controles.LB(self, QTUtil2.resalta(value, 3))
                self.formlayout.addRow(lb)
                self.widgets.append(None)
                self.labels.append(None)

            else:
                # Otros tipos
                if not isinstance(label, (bytes, str)):
                    config = label
                    tipo = config.tipo
                    if tipo == SPINBOX:
                        field = QtWidgets.QSpinBox(self)
                        field.setMinimum(config.minimo)
                        field.setMaximum(config.maximo)
                        field.setValue(value)
                        field.setFixedWidth(config.ancho)
                        if dispatch:
                            field.valueChanged.connect(dispatch)
                    elif tipo == COMBOBOX:
                        field = Controles.CB(self, config.lista, value)
                        if config.si_editable:
                            field.setEditable(True)
                        if config.tooltip:
                            field.setToolTip(config.tooltip)

                        field.lista = config.lista
                        if dispatch:
                            field.currentIndexChanged.connect(dispatch)
                            # field = QtWidgets.QComboBox(self)
                            # for n, tp in enumerate(config.lista):
                            # if len(tp) == 3:
                            # field.addItem( tp[2], tp[0], tp[1] )
                            # else:
                            # field.addItem( tp[0], tp[1] )
                            # if tp[1] == value:
                            # field.setCurrentIndex( n )
                            # if dispatch:
                            # field.currentIndexChanged.connect( dispatch )
                    elif tipo == FONTCOMBOBOX:
                        field = QtWidgets.QFontComboBox(self)
                        if value:
                            font = Controles.TipoLetra(value)
                            field.setCurrentFont(font)
                    elif tipo == COLORBOX:
                        if config.siChecked:
                            field = BotonCheckColor(self, config.ancho,
                                                    config.alto, dispatch)
                        else:
                            field = BotonColor(self, config.ancho, config.alto,
                                               config.siSTR, dispatch)
                        field.put_color(value)

                    elif tipo == DIAL:
                        field = DialNum(self, config, dispatch)
                        field.ponValor(value)

                    elif tipo == EDITBOX:
                        if config.alto == 1:
                            field = Edit(self, config, dispatch)
                            tp = config.tipoCampo
                            if tp == str:
                                field.ponTexto(value)
                            elif tp == int:
                                field.tipoInt()
                                field.ponInt(value)
                            elif tp == float:
                                field.tipoFloat(0.0)
                                field.ponFloat(value)
                        else:
                            field = TextEdit(self, config, dispatch)
                            field.ponTexto(value)

                    elif tipo == FICHERO:
                        field = LBotonFichero(self, config, value)

                    elif tipo == CARPETA:
                        field = LBotonCarpeta(self, config, value)

                    label = config.label

                # Fichero
                elif isinstance(value, dict):
                    fichero = value["FICHERO"]
                    extension = value.get("EXTENSION", "pgn")
                    siSave = value.get("SISAVE", True)
                    siRelativo = value.get("SIRELATIVO", True)
                    field = BotonFichero(fichero, extension, siSave,
                                         siRelativo, 250, fichero)
                # Texto
                elif isinstance(value, (bytes, str)):
                    field = QtWidgets.QLineEdit(value, self)

                # Combo
                elif isinstance(value, (list, tuple)):
                    selindex = value.pop(0)
                    field = QtWidgets.QComboBox(self)
                    if isinstance(value[0], (list, tuple)):
                        keys = [key for key, _val in value]
                        value = [val for _key, val in value]
                    else:
                        keys = value
                    field.addItems(value)
                    if selindex in value:
                        selindex = value.index(selindex)
                    elif selindex in keys:
                        selindex = keys.index(selindex)
                    else:
                        selindex = 0
                    field.setCurrentIndex(selindex)

                # Checkbox
                elif isinstance(value, bool):
                    field = QtWidgets.QCheckBox(self)
                    field.setCheckState(
                        QtCore.Qt.Checked if value else QtCore.Qt.Unchecked)
                    if dispatch:
                        field.stateChanged.connect(dispatch)

                # Float segundos
                elif isinstance(value, float):  # Para los segundos
                    v = "%0.1f" % value
                    field = QtWidgets.QLineEdit(v, self)
                    field.setValidator(
                        QtGui.QDoubleValidator(0.0, 36000.0, 1,
                                               field))  # Para los segundos
                    field.setAlignment(QtCore.Qt.AlignRight)
                    field.setFixedWidth(40)

                # Numero
                elif isinstance(value, int):
                    field = QtWidgets.QSpinBox(self)
                    field.setMaximum(9999)
                    field.setValue(value)
                    field.setFixedWidth(80)

                # Linea
                else:
                    field = QtWidgets.QLineEdit(repr(value), self)

                self.formlayout.addRow(label, field)
                self.formlayout.setLabelAlignment(QtCore.Qt.AlignRight)
                self.widgets.append(field)
                self.labels.append(label)
예제 #7
0
    def createToolbars(self):
        self.editToolBar = self.addToolBar("Edit")
        self.editToolBar.addAction(self.deleteAction)
        self.editToolBar.addAction(self.toFrontAction)
        self.editToolBar.addAction(self.sendBackAction)

        self.fontCombo = QtWidgets.QFontComboBox()
        self.fontCombo.currentFontChanged.connect(self.currentFontChanged)

        self.fontSizeCombo = QtWidgets.QComboBox()
        self.fontSizeCombo.setEditable(True)
        for i in range(8, 30, 2):
            self.fontSizeCombo.addItem(str(i))
        validator = QtGui.QIntValidator(2, 64, self)
        self.fontSizeCombo.setValidator(validator)
        self.fontSizeCombo.currentIndexChanged.connect(self.fontSizeChanged)

        self.fontColorToolButton = QtWidgets.QToolButton()
        self.fontColorToolButton.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.fontColorToolButton.setMenu(
                self.createColorMenu(self.textColorChanged, QtCore.Qt.black))
        self.textAction = self.fontColorToolButton.menu().defaultAction()
        self.fontColorToolButton.setIcon(
                self.createColorToolButtonIcon(':/images/textpointer.png',
                        QtCore.Qt.black))
        self.fontColorToolButton.setAutoFillBackground(True)
        self.fontColorToolButton.clicked.connect(self.textButtonTriggered)

        self.fillColorToolButton = QtWidgets.QToolButton()
        self.fillColorToolButton.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.fillColorToolButton.setMenu(
                self.createColorMenu(self.itemColorChanged, QtCore.Qt.white))
        self.fillAction = self.fillColorToolButton.menu().defaultAction()
        self.fillColorToolButton.setIcon(
                self.createColorToolButtonIcon(':/images/floodfill.png',
                        QtCore.Qt.white))
        self.fillColorToolButton.clicked.connect(self.fillButtonTriggered)

        self.lineColorToolButton = QtWidgets.QToolButton()
        self.lineColorToolButton.setPopupMode(QtWidgets.QToolButton.MenuButtonPopup)
        self.lineColorToolButton.setMenu(
                self.createColorMenu(self.lineColorChanged, QtCore.Qt.black))
        self.lineAction = self.lineColorToolButton.menu().defaultAction()
        self.lineColorToolButton.setIcon(
                self.createColorToolButtonIcon(':/images/linecolor.png',
                        QtCore.Qt.black))
        self.lineColorToolButton.clicked.connect(self.lineButtonTriggered)

        self.textToolBar = self.addToolBar("Font")
        self.textToolBar.addWidget(self.fontCombo)
        self.textToolBar.addWidget(self.fontSizeCombo)
        self.textToolBar.addAction(self.boldAction)
        self.textToolBar.addAction(self.italicAction)
        self.textToolBar.addAction(self.underlineAction)

        self.colorToolBar = self.addToolBar("Color")
        self.colorToolBar.addWidget(self.fontColorToolButton)
        self.colorToolBar.addWidget(self.fillColorToolButton)
        self.colorToolBar.addWidget(self.lineColorToolButton)

        pointerButton = QtWidgets.QToolButton()
        pointerButton.setCheckable(True)
        pointerButton.setChecked(True)
        pointerButton.setIcon(QtGui.QIcon(':/images/pointer.png'))
        linePointerButton = QtWidgets.QToolButton()
        linePointerButton.setCheckable(True)
        linePointerButton.setIcon(QtGui.QIcon(':/images/linepointer.png'))

        self.pointerTypeGroup = QtWidgets.QButtonGroup()
        self.pointerTypeGroup.addButton(pointerButton, DiagramScene.MoveItem)
        self.pointerTypeGroup.addButton(linePointerButton,
                DiagramScene.InsertLine)
        self.pointerTypeGroup.buttonClicked[int].connect(self.pointerGroupClicked)

        self.sceneScaleCombo = QtWidgets.QComboBox()
        self.sceneScaleCombo.addItems(["50%", "75%", "100%", "125%", "150%"])
        self.sceneScaleCombo.setCurrentIndex(2)
        self.sceneScaleCombo.currentIndexChanged[str].connect(self.sceneScaleChanged)

        self.pointerToolbar = self.addToolBar("Pointer type")
        self.pointerToolbar.addWidget(pointerButton)
        self.pointerToolbar.addWidget(linePointerButton)
        self.pointerToolbar.addWidget(self.sceneScaleCombo)
예제 #8
0
    def __init__(self, boardOriginal):
        main_window = boardOriginal.parent()
        titulo = _("Colors")
        icono = Iconos.EditarColores()
        extparam = "WColores"
        QTVarios.WDialogo.__init__(self, main_window, titulo, icono, extparam)

        self.boardOriginal = boardOriginal
        self.configuration = Code.configuration
        self.config_board = boardOriginal.config_board.copia(boardOriginal.config_board._id)
        self.is_base = boardOriginal.config_board._id == "BASE"

        # Temas #######################################################################################################
        li_options = [(_("Your themes"), self.configuration.ficheroTemas)]
        for entry in Util.listdir(Code.path_resource("Themes")):
            filename = entry.name
            if filename.endswith("lktheme3"):
                ctema = filename[:-9]
                li_options.append((ctema, Code.path_resource("Themes", filename)))

        self.cbTemas = Controles.CB(self, li_options, li_options[0][1]).capture_changes(self.cambiadoTema)
        self.lbSecciones = Controles.LB(self, _("Section") + ":")
        self.cbSecciones = Controles.CB(self, [], None).capture_changes(self.cambiadoSeccion)
        self.lb_help = Controles.LB(self, _("Left button to select, Right to show menu"))

        ly_temas = Colocacion.V()
        self.lista_bt_temas = []
        for i in range(12):
            ly = Colocacion.H()
            for j in range(6):
                bt = BotonTema(self, self.cambia_tema)
                ly.control(bt)
                bt.pon_tema(None)
                self.lista_bt_temas.append(bt)
            ly.relleno(1)
            ly_temas.otro(ly)
        ly_temas.relleno(1)

        def crea_lb(txt):
            return Controles.LB(self, txt + ": ").align_right()

        # Casillas
        lbTrans = Controles.LB(self, _("Degree of transparency"))
        lbPNG = Controles.LB(self, _("Image"))

        # # Blancas
        lbBlancas = crea_lb(_("White squares"))
        self.btBlancas = BotonColor(self, self.config_board.colorBlancas, self.actualizaBoard)
        self.btBlancasPNG = BotonImagen(self, self.config_board.png64Blancas, self.actualizaBoard, self.btBlancas)
        self.dialBlancasTrans = DialNum(self, self.config_board.transBlancas, self.actualizaBoard)

        # # Negras
        lbNegras = crea_lb(_("Black squares"))
        self.btNegras = BotonColor(self, self.config_board.colorNegras, self.actualizaBoard)
        self.btNegrasPNG = BotonImagen(self, self.config_board.png64Negras, self.actualizaBoard, self.btNegras)
        self.dialNegrasTrans = DialNum(self, self.config_board.transNegras, self.actualizaBoard)

        # Background
        lbFondo = crea_lb(_("Background"))
        self.btFondo = BotonColor(self, self.config_board.colorFondo, self.actualizaBoard)
        self.btFondoPNG = BotonImagen(self, self.config_board.png64Fondo, self.actualizaBoard, self.btFondo)
        self.chbExtended = Controles.CHB(self, _("Extended to outer border"), self.config_board.extendedColor()).capture_changes(self, self.extendedColor)

        # Actual
        self.chbTemas = Controles.CHB(self, _("Default"), self.config_board.siDefTema()).capture_changes(self, self.defectoTemas)
        if self.is_base:
            self.chbTemas.ponValor(False)
            self.chbTemas.setVisible(False)
        # Exterior
        lbExterior = crea_lb(_("Outer Border"))
        self.btExterior = BotonColor(self, self.config_board.colorExterior, self.actualizaBoard)
        self.btExteriorPNG = BotonImagen(self, self.config_board.png64Exterior, self.actualizaBoard, self.btExterior)

        # Texto
        lbTexto = crea_lb(_("Coordinates"))
        self.btTexto = BotonColor(self, self.config_board.colorTexto, self.actualizaBoard)
        # Frontera
        lbFrontera = crea_lb(_("Inner Border"))
        self.btFrontera = BotonColor(self, self.config_board.colorFrontera, self.actualizaBoard)

        # Flechas
        lbFlecha = crea_lb(_("Move indicator"))
        self.lyF = BotonFlecha(self, self.config_board.fTransicion, self.config_board.flechaDefecto, self.actualizaBoard)
        lbFlechaAlternativa = crea_lb(_("Arrow alternative"))
        self.lyFAlternativa = BotonFlecha(self, self.config_board.fAlternativa, self.config_board.flechaAlternativaDefecto, self.actualizaBoard)
        lbFlechaActivo = crea_lb(_("Active moves"))
        self.lyFActual = BotonFlecha(self, self.config_board.fActivo, self.config_board.flechaActivoDefecto, self.actualizaBoard)
        lbFlechaRival = crea_lb(_("Opponent moves"))
        self.lyFRival = BotonFlecha(self, self.config_board.fRival, self.config_board.flechaRivalDefecto, self.actualizaBoard)

        lyActual = Colocacion.G()
        lyActual.control(self.chbTemas, 0, 0)
        lyActual.controlc(lbPNG, 0, 2).controlc(lbTrans, 0, 3)
        lyActual.controld(lbBlancas, 1, 0).control(self.btBlancas, 1, 1).otroc(self.btBlancasPNG, 1, 2).otroc(self.dialBlancasTrans, 1, 3)
        lyActual.controld(lbNegras, 2, 0).control(self.btNegras, 2, 1).otroc(self.btNegrasPNG, 2, 2).otroc(self.dialNegrasTrans, 2, 3)
        lyActual.controld(lbFondo, 3, 0).control(self.btFondo, 3, 1).otroc(self.btFondoPNG, 3, 2).control(self.chbExtended, 3, 3)
        lyActual.controld(lbExterior, 4, 0).control(self.btExterior, 4, 1).otroc(self.btExteriorPNG, 4, 2)
        lyActual.controld(lbTexto, 5, 0).control(self.btTexto, 5, 1)
        lyActual.controld(lbFrontera, 6, 0).control(self.btFrontera, 6, 1)
        lyActual.controld(lbFlecha, 7, 0).otro(self.lyF, 7, 1, 1, 4)
        lyActual.controld(lbFlechaAlternativa, 8, 0).otro(self.lyFAlternativa, 8, 1, 1, 4)
        lyActual.controld(lbFlechaActivo, 9, 0).otro(self.lyFActual, 9, 1, 1, 4)
        lyActual.controld(lbFlechaRival, 10, 0).otro(self.lyFRival, 10, 1, 1, 4)

        gbActual = Controles.GB(self, _("Active theme"), lyActual)

        lySecciones = Colocacion.H().control(self.lbSecciones).control(self.cbSecciones).control(self.lb_help).relleno()
        ly = Colocacion.V().control(self.cbTemas).otro(lySecciones).otro(ly_temas).control(gbActual).relleno()
        gbTemas = Controles.GB(self, "", ly)
        gbTemas.setFlat(True)

        # mas options ################################################################################################
        def xDefecto(if_default):
            if self.is_base:
                if_default = False
            chb = Controles.CHB(self, _("Default"), if_default).capture_changes(self, self.defectoBoardM)
            if self.is_base:
                chb.setVisible(False)
            return chb

        def l2mas1(lyG, row, a, b, c):
            if a:
                ly = Colocacion.H().controld(a).control(b)
            else:
                ly = Colocacion.H().control(b)
            lyG.otro(ly, row, 0).control(c, row, 1)

        # Coordenadas
        lyG = Colocacion.G()
        # _nCoordenadas
        lbCoordenadas = crea_lb(_("Number"))
        li_options = [("0", 0), ("4", 4), ("2a", 2), ("2b", 3), ("2c", 5), ("2d", 6)]
        self.cbCoordenadas = Controles.CB(self, li_options, self.config_board.nCoordenadas()).capture_changes(self.actualizaBoardM)
        self.chbDefCoordenadas = xDefecto(self.config_board.siDefCoordenadas())
        l2mas1(lyG, 0, lbCoordenadas, self.cbCoordenadas, self.chbDefCoordenadas)

        # _tipoLetra
        lbTipoLetra = crea_lb(_("Font"))
        self.cbTipoLetra = QtWidgets.QFontComboBox()
        self.cbTipoLetra.setEditable(False)
        self.cbTipoLetra.setFontFilters(self.cbTipoLetra.ScalableFonts)
        self.cbTipoLetra.setCurrentFont(QtGui.QFont(self.config_board.tipoLetra()))
        self.cbTipoLetra.currentIndexChanged.connect(self.actualizaBoardM)
        self.chbDefTipoLetra = xDefecto(self.config_board.siDefTipoLetra())
        l2mas1(lyG, 1, lbTipoLetra, self.cbTipoLetra, self.chbDefTipoLetra)

        # _cBold
        self.chbBold = Controles.CHB(self, _("Bold"), self.config_board.siBold()).capture_changes(self, self.actualizaBoardM)
        self.chbDefBold = xDefecto(self.config_board.siDefBold())
        l2mas1(lyG, 2, None, self.chbBold, self.chbDefBold)

        # _tamLetra
        lbTamLetra = crea_lb(_("Size") + " %")
        self.sbTamLetra = Controles.SB(self, self.config_board.tamLetra(), 1, 200).tamMaximo(50).capture_changes(self.actualizaBoardM)
        self.chbDefTamLetra = xDefecto(self.config_board.siDefTamLetra())
        l2mas1(lyG, 3, lbTamLetra, self.sbTamLetra, self.chbDefTamLetra)

        # _sepLetras
        lbSepLetras = crea_lb(_("Separation") + " %")
        self.sbSepLetras = Controles.SB(self, self.config_board.sepLetras(), -1000, 1000).tamMaximo(50).capture_changes(self.actualizaBoardM)
        self.chbDefSepLetras = xDefecto(self.config_board.siDefSepLetras())
        l2mas1(lyG, 4, lbSepLetras, self.sbSepLetras, self.chbDefSepLetras)

        gbCoordenadas = Controles.GB(self, _("Coordinates"), lyG)

        ly_otros = Colocacion.G()
        # _nomPiezas
        li = []
        lbPiezas = crea_lb(_("Pieces"))
        for entry in Util.listdir(Code.path_resource("Pieces")):
            if entry.is_dir():
                li.append((entry.name, entry.name))
        li.sort(key=lambda x: x[0])
        self.cbPiezas = Controles.CB(self, li, self.config_board.nomPiezas()).capture_changes(self.actualizaBoardM)
        self.chbDefPiezas = xDefecto(self.config_board.siDefPiezas())
        l2mas1(ly_otros, 0, lbPiezas, self.cbPiezas, self.chbDefPiezas)

        # _tamRecuadro
        lbTamRecuadro = crea_lb(_("Outer Border Size") + " %")
        self.sbTamRecuadro = Controles.SB(self, self.config_board.tamRecuadro(), 0, 10000).tamMaximo(50).capture_changes(self.actualizaBoardM)
        self.chbDefTamRecuadro = xDefecto(self.config_board.siDefTamRecuadro())
        l2mas1(ly_otros, 1, lbTamRecuadro, self.sbTamRecuadro, self.chbDefTamRecuadro)

        # _tamFrontera
        lbTamFrontera = crea_lb(_("Inner Border Size") + " %")
        self.sbTamFrontera = Controles.SB(self, self.config_board.tamFrontera(), 0, 10000).tamMaximo(50).capture_changes(self.actualizaBoardM)
        self.chbDefTamFrontera = xDefecto(self.config_board.siDefTamFrontera())
        l2mas1(ly_otros, 2, lbTamFrontera, self.sbTamFrontera, self.chbDefTamFrontera)

        ly = Colocacion.V().control(gbCoordenadas).espacio(50).otro(ly_otros).relleno()

        gbOtros = Controles.GB(self, "", ly)
        gbOtros.setFlat(True)

        # Board #####################################################################################################
        cp = Position.Position().read_fen("2kr1b1r/2p1pppp/p7/3pPb2/1q3P2/2N1P3/PPP3PP/R1BQK2R w KQ - 0 1")
        self.board = Board.Board(self, self.config_board, siMenuVisual=False)
        self.board.crea()
        self.board.set_position(cp)
        self.rehazFlechas()

        li_acciones = [
            (_("Accept"), Iconos.Aceptar(), self.aceptar),
            None,
            (_("Cancel"), Iconos.Cancelar(), self.cancelar),
            None,
            ("%s/%s" % (_("Save"), _("Save as")), Iconos.Grabar(), self.menu_save),
            None,
            (_("Import"), Iconos.Import8(), self.importar),
            None,
            (_("Export"), Iconos.Export8(), self.exportar),
            None,
        ]
        tb = QTVarios.LCTB(self, li_acciones)

        # tam board
        self.lbTamBoard = Controles.LB(self, "%d px" % self.board.width())

        # Juntamos
        lyT = Colocacion.V().control(tb).espacio(15).control(self.board).controli(self.lbTamBoard).relleno(1).margen(3)

        self.tab = Controles.Tab()
        self.tab.nuevaTab(gbTemas, _("Themes"))
        self.tab.nuevaTab(gbOtros, _("Other options"))
        ly = Colocacion.H().otro(lyT).control(self.tab)

        self.setLayout(ly)

        self.elegido = None

        self.li_themes = self.read_own_themes()
        self.current_theme = {"NOMBRE": "", "SECCION": "", "CHANGE_PIECES": True, "o_tema": self.config_board.grabaTema(), "o_base": self.config_board.grabaBase()}
        self.own_theme_selected = False
        self.cambiadoTema()
        self.defectoTemas()

        self.extendedColor()

        self.siActualizando = False

        self.restore_video(siTam=False)
예제 #9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1008, 659)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.pushButton = QtWidgets.QPushButton(self.centralWidget)
        self.pushButton.setGeometry(QtCore.QRect(360, 550, 261, 51))
        self.pushButton.setStyleSheet(
            "font: 81 11pt \"Open Sans ExtraBold\";\n"
            "color: rgb(255, 255, 127);\n"
            "background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(255, 255, 0, 255));"
        )
        self.pushButton.setObjectName("pushButton")
        self.fontComboBox = QtWidgets.QFontComboBox(self.centralWidget)
        self.fontComboBox.setGeometry(QtCore.QRect(360, 530, 261, 22))
        self.fontComboBox.setStyleSheet("border: transparent;")
        font = QtGui.QFont()
        font.setFamily("Open Sans ExtraBold")
        font.setPointSize(11)
        font.setWeight(75)
        font.setBold(True)
        self.fontComboBox.setCurrentFont(font)
        self.fontComboBox.setObjectName("fontComboBox")
        self.radioButton = QtWidgets.QRadioButton(self.centralWidget)
        self.radioButton.setGeometry(QtCore.QRect(140, 540, 95, 20))
        self.radioButton.setStyleSheet("")
        self.radioButton.setChecked(False)
        self.radioButton.setObjectName("radioButton")
        self.radioButton_2 = QtWidgets.QRadioButton(self.centralWidget)
        self.radioButton_2.setGeometry(QtCore.QRect(140, 570, 95, 20))
        self.radioButton_2.setChecked(True)
        self.radioButton_2.setObjectName("radioButton_2")
        self.label = QtWidgets.QLabel(self.centralWidget)
        self.label.setGeometry(QtCore.QRect(10, 10, 471, 251))
        self.label.setStyleSheet("")
        self.label.setText("")
        self.label.setObjectName("label")
        self.label_5 = QtWidgets.QLabel(self.centralWidget)
        self.label_5.setGeometry(QtCore.QRect(710, 530, 171, 51))
        self.label_5.setStyleSheet("font: 28pt \"Pristina\";")
        self.label_5.setText("")
        self.label_5.setObjectName("label_5")
        self.label_2 = QtWidgets.QLabel(self.centralWidget)
        self.label_2.setGeometry(QtCore.QRect(10, 270, 471, 251))
        self.label_2.setStyleSheet("")
        self.label_2.setText("")
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(self.centralWidget)
        self.label_3.setGeometry(QtCore.QRect(490, 10, 471, 251))
        self.label_3.setStyleSheet("")
        self.label_3.setText("")
        self.label_3.setObjectName("label_3")
        self.label_4 = QtWidgets.QLabel(self.centralWidget)
        self.label_4.setGeometry(QtCore.QRect(490, 270, 471, 251))
        self.label_4.setStyleSheet("")
        self.label_4.setText("")
        self.label_4.setObjectName("label_4")
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 1008, 26))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #10
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(531, 626)
        self.gridLayout_2 = QtWidgets.QGridLayout(Form)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtWidgets.QLabel(Form)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.lineEdit = QtWidgets.QLineEdit(Form)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_3.addWidget(self.lineEdit)
        self.toolButton = QtWidgets.QToolButton(Form)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout_3.addWidget(self.toolButton)
        self.pushButton = QtWidgets.QPushButton(Form)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_3.addWidget(self.pushButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.fontComboBox = QtWidgets.QFontComboBox(Form)
        self.fontComboBox.setObjectName("fontComboBox")
        self.horizontalLayout_2.addWidget(self.fontComboBox)
        self.spinBox = QtWidgets.QSpinBox(Form)
        self.spinBox.setObjectName("spinBox")
        self.horizontalLayout_2.addWidget(self.spinBox)
        self.lcdNumber = QtWidgets.QLCDNumber(Form)
        self.lcdNumber.setObjectName("lcdNumber")
        self.horizontalLayout_2.addWidget(self.lcdNumber)
        self.dial = QtWidgets.QDial(Form)
        self.dial.setObjectName("dial")
        self.horizontalLayout_2.addWidget(self.dial)
        self.lcdNumber_2 = QtWidgets.QLCDNumber(Form)
        self.lcdNumber_2.setObjectName("lcdNumber_2")
        self.horizontalLayout_2.addWidget(self.lcdNumber_2)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.radioButton = QtWidgets.QRadioButton(Form)
        self.radioButton.setObjectName("radioButton")
        self.horizontalLayout.addWidget(self.radioButton)
        self.radioButton_2 = QtWidgets.QRadioButton(Form)
        self.radioButton_2.setObjectName("radioButton_2")
        self.horizontalLayout.addWidget(self.radioButton_2)
        self.checkBox = QtWidgets.QCheckBox(Form)
        self.checkBox.setObjectName("checkBox")
        self.horizontalLayout.addWidget(self.checkBox)
        self.comboBox = QtWidgets.QComboBox(Form)
        self.comboBox.setObjectName("comboBox")
        self.horizontalLayout.addWidget(self.comboBox)
        self.gridLayout_2.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.commandLinkButton = QtWidgets.QCommandLinkButton(Form)
        self.commandLinkButton.setObjectName("commandLinkButton")
        self.gridLayout_2.addWidget(self.commandLinkButton, 3, 0, 1, 1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.treeWidget = QtWidgets.QTreeWidget(Form)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        self.gridLayout.addWidget(self.treeWidget, 0, 0, 1, 1)
        self.listWidget = QtWidgets.QListWidget(Form)
        self.listWidget.setObjectName("listWidget")
        self.gridLayout.addWidget(self.listWidget, 0, 1, 1, 1)
        self.tableWidget = QtWidgets.QTableWidget(Form)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.gridLayout.addWidget(self.tableWidget, 1, 0, 1, 1)
        self.textBrowser = QtWidgets.QTextBrowser(Form)
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout.addWidget(self.textBrowser, 1, 1, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 4, 0, 1, 2)
        self.buttonBox = QtWidgets.QDialogButtonBox(Form)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout_2.addWidget(self.buttonBox, 5, 1, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #11
0
 def setupUi(self, zhu_jie_mian):
     zhu_jie_mian.setObjectName("zhu_jie_mian")
     zhu_jie_mian.setWindowModality(QtCore.Qt.NonModal)
     zhu_jie_mian.resize(1113, 685)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(zhu_jie_mian.sizePolicy().hasHeightForWidth())
     zhu_jie_mian.setSizePolicy(sizePolicy)
     icon = QtGui.QIcon()
     icon.addPixmap(QtGui.QPixmap("ICO/主题.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     zhu_jie_mian.setWindowIcon(icon)
     zhu_jie_mian.setStatusTip("")
     zhu_jie_mian.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
     self.centralwidget = QtWidgets.QWidget(zhu_jie_mian)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
     self.centralwidget.setSizePolicy(sizePolicy)
     self.centralwidget.setMinimumSize(QtCore.QSize(800, 505))
     self.centralwidget.setObjectName("centralwidget")
     self.gridLayout_3 = QtWidgets.QGridLayout(self.centralwidget)
     self.gridLayout_3.setSpacing(1)
     self.gridLayout_3.setContentsMargins(1, 1, 0, 1)
     self.gridLayout_3.setObjectName("gridLayout_3")
     self.ZhuCaiDan = QtWidgets.QTabWidget(self.centralwidget)
     self.ZhuCaiDan.setEnabled(True)
     self.ZhuCaiDan.setMouseTracking(True)
     self.ZhuCaiDan.setTabletTracking(True)
     self.ZhuCaiDan.setFocusPolicy(QtCore.Qt.ClickFocus)
     self.ZhuCaiDan.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
     self.ZhuCaiDan.setAcceptDrops(True)
     self.ZhuCaiDan.setToolTipDuration(-1)
     self.ZhuCaiDan.setStatusTip("")
     self.ZhuCaiDan.setStyleSheet("")
     self.ZhuCaiDan.setObjectName("ZhuCaiDan")
     self.ranwu = QtWidgets.QWidget()
     self.ranwu.setObjectName("ranwu")
     self.gridLayout_4 = QtWidgets.QGridLayout(self.ranwu)
     self.gridLayout_4.setObjectName("gridLayout_4")
     self.gridLayout_2 = QtWidgets.QGridLayout()
     self.gridLayout_2.setObjectName("gridLayout_2")
     self.calendarWidget_2 = QtWidgets.QCalendarWidget(self.ranwu)
     self.calendarWidget_2.setObjectName("calendarWidget_2")
     self.gridLayout_2.addWidget(self.calendarWidget_2, 3, 2, 1, 1)
     self.lineEdit_4 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_4.setObjectName("lineEdit_4")
     self.gridLayout_2.addWidget(self.lineEdit_4, 0, 1, 1, 1)
     self.label_7 = QtWidgets.QLabel(self.ranwu)
     self.label_7.setObjectName("label_7")
     self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
     self.progressBar = QtWidgets.QProgressBar(self.ranwu)
     self.progressBar.setProperty("value", 24)
     self.progressBar.setObjectName("progressBar")
     self.gridLayout_2.addWidget(self.progressBar, 4, 0, 1, 2)
     self.textBrowser_2 = QtWidgets.QTextBrowser(self.ranwu)
     self.textBrowser_2.setObjectName("textBrowser_2")
     self.gridLayout_2.addWidget(self.textBrowser_2, 1, 1, 1, 1)
     self.label_8 = QtWidgets.QLabel(self.ranwu)
     self.label_8.setObjectName("label_8")
     self.gridLayout_2.addWidget(self.label_8, 1, 0, 3, 1)
     self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
     self.formLayout = QtWidgets.QFormLayout()
     self.formLayout.setObjectName("formLayout")
     self.label_10 = QtWidgets.QLabel(self.ranwu)
     self.label_10.setObjectName("label_10")
     self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10)
     self.lineEdit_6 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_6.setObjectName("lineEdit_6")
     self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lineEdit_6)
     self.label_11 = QtWidgets.QLabel(self.ranwu)
     self.label_11.setObjectName("label_11")
     self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_11)
     self.lineEdit_7 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_7.setObjectName("lineEdit_7")
     self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.lineEdit_7)
     self.textBrowser_3 = QtWidgets.QTextBrowser(self.ranwu)
     self.textBrowser_3.setObjectName("textBrowser_3")
     self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.textBrowser_3)
     self.label_9 = QtWidgets.QLabel(self.ranwu)
     self.label_9.setObjectName("label_9")
     self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_9)
     self.lineEdit_5 = QtWidgets.QLineEdit(self.ranwu)
     self.lineEdit_5.setObjectName("lineEdit_5")
     self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit_5)
     self.gridLayout_4.addLayout(self.formLayout, 0, 1, 1, 1)
     self.ZhuCaiDan.addTab(self.ranwu, "")
     self.zhicaidan = QtWidgets.QWidget()
     self.zhicaidan.setObjectName("zhicaidan")
     self.ZhuCaiDan.addTab(self.zhicaidan, "")
     self.renyuanxinxi = QtWidgets.QWidget()
     self.renyuanxinxi.setObjectName("renyuanxinxi")
     self.gridLayout_5 = QtWidgets.QGridLayout(self.renyuanxinxi)
     self.gridLayout_5.setSpacing(0)
     self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_5.setObjectName("gridLayout_5")
     self.groupBox_2 = QtWidgets.QGroupBox(self.renyuanxinxi)
     self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_2.setTitle("")
     self.groupBox_2.setObjectName("groupBox_2")
     self.layoutWidget = QtWidgets.QWidget(self.groupBox_2)
     self.layoutWidget.setGeometry(QtCore.QRect(0, 0, 390, 60))
     self.layoutWidget.setObjectName("layoutWidget")
     self.gridLayout_6 = QtWidgets.QGridLayout(self.layoutWidget)
     self.gridLayout_6.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_6.setObjectName("gridLayout_6")
     self.toolButton_6 = QtWidgets.QToolButton(self.layoutWidget)
     icon1 = QtGui.QIcon()
     icon1.addPixmap(QtGui.QPixmap("ICO/png/1110305.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_6.setIcon(icon1)
     self.toolButton_6.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_6.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_6.setAutoRaise(True)
     self.toolButton_6.setObjectName("toolButton_6")
     self.gridLayout_6.addWidget(self.toolButton_6, 0, 9, 1, 1)
     self.toolButton_8 = QtWidgets.QToolButton(self.layoutWidget)
     icon2 = QtGui.QIcon()
     icon2.addPixmap(QtGui.QPixmap("ICO/png/1081628.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_8.setIcon(icon2)
     self.toolButton_8.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_8.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_8.setAutoRaise(True)
     self.toolButton_8.setObjectName("toolButton_8")
     self.gridLayout_6.addWidget(self.toolButton_8, 0, 7, 1, 1)
     self.line = QtWidgets.QFrame(self.layoutWidget)
     self.line.setFrameShape(QtWidgets.QFrame.VLine)
     self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line.setObjectName("line")
     self.gridLayout_6.addWidget(self.line, 0, 3, 1, 1)
     self.toolButton_5 = QtWidgets.QToolButton(self.layoutWidget)
     icon3 = QtGui.QIcon()
     icon3.addPixmap(QtGui.QPixmap("ICO/png/1081656.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_5.setIcon(icon3)
     self.toolButton_5.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_5.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_5.setAutoRaise(True)
     self.toolButton_5.setObjectName("toolButton_5")
     self.gridLayout_6.addWidget(self.toolButton_5, 0, 5, 1, 1)
     self.toolButton = QtWidgets.QToolButton(self.layoutWidget)
     icon4 = QtGui.QIcon()
     icon4.addPixmap(QtGui.QPixmap("ICO/png/1081676.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton.setIcon(icon4)
     self.toolButton.setIconSize(QtCore.QSize(36, 36))
     self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton.setAutoRaise(True)
     self.toolButton.setObjectName("toolButton")
     self.gridLayout_6.addWidget(self.toolButton, 0, 0, 1, 1)
     self.toolButton_2 = QtWidgets.QToolButton(self.layoutWidget)
     icon5 = QtGui.QIcon()
     icon5.addPixmap(QtGui.QPixmap("ICO/png/1081640.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_2.setIcon(icon5)
     self.toolButton_2.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_2.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_2.setAutoRaise(True)
     self.toolButton_2.setObjectName("toolButton_2")
     self.gridLayout_6.addWidget(self.toolButton_2, 0, 1, 1, 1)
     self.line_2 = QtWidgets.QFrame(self.layoutWidget)
     self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_2.setObjectName("line_2")
     self.gridLayout_6.addWidget(self.line_2, 0, 6, 1, 1)
     self.toolButton_4 = QtWidgets.QToolButton(self.layoutWidget)
     icon6 = QtGui.QIcon()
     icon6.addPixmap(QtGui.QPixmap("ICO/png/1081662.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_4.setIcon(icon6)
     self.toolButton_4.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_4.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_4.setAutoRaise(True)
     self.toolButton_4.setObjectName("toolButton_4")
     self.gridLayout_6.addWidget(self.toolButton_4, 0, 4, 1, 1)
     self.toolButton_3 = QtWidgets.QToolButton(self.layoutWidget)
     icon7 = QtGui.QIcon()
     icon7.addPixmap(QtGui.QPixmap("ICO/png/1073170.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
     self.toolButton_3.setIcon(icon7)
     self.toolButton_3.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_3.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_3.setAutoRaise(True)
     self.toolButton_3.setObjectName("toolButton_3")
     self.gridLayout_6.addWidget(self.toolButton_3, 0, 2, 1, 1)
     self.line_3 = QtWidgets.QFrame(self.layoutWidget)
     self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_3.setObjectName("line_3")
     self.gridLayout_6.addWidget(self.line_3, 0, 8, 1, 1)
     self.gridLayout_5.addWidget(self.groupBox_2, 1, 0, 1, 1)
     self.tableWidget = QtWidgets.QTableWidget(self.renyuanxinxi)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
     self.tableWidget.setSizePolicy(sizePolicy)
     self.tableWidget.setAutoScroll(True)
     self.tableWidget.setObjectName("tableWidget")
     self.tableWidget.setColumnCount(16)
     self.tableWidget.setRowCount(0)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(0, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(1, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(2, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(3, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(4, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(5, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(6, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(7, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(8, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(9, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(10, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(11, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(12, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(13, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(14, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget.setHorizontalHeaderItem(15, item)
     self.gridLayout_5.addWidget(self.tableWidget, 3, 0, 1, 1)
     self.groupBox = QtWidgets.QGroupBox(self.renyuanxinxi)
     self.groupBox.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox.setTitle("")
     self.groupBox.setObjectName("groupBox")
     self.chaxun = QtWidgets.QPushButton(self.groupBox)
     self.chaxun.setEnabled(True)
     self.chaxun.setGeometry(QtCore.QRect(790, 9, 75, 23))
     self.chaxun.setObjectName("chaxun")
     self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox)
     self.lineEdit_2.setGeometry(QtCore.QRect(190, 10, 81, 20))
     self.lineEdit_2.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_2.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_2.setObjectName("lineEdit_2")
     self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox)
     self.lineEdit_3.setGeometry(QtCore.QRect(320, 10, 81, 20))
     self.lineEdit_3.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_3.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_3.setObjectName("lineEdit_3")
     self.label_5 = QtWidgets.QLabel(self.groupBox)
     self.label_5.setGeometry(QtCore.QRect(555, 11, 31, 16))
     self.label_5.setMaximumSize(QtCore.QSize(36, 16))
     self.label_5.setObjectName("label_5")
     self.dateEdit_2 = QtWidgets.QDateEdit(self.groupBox)
     self.dateEdit_2.setGeometry(QtCore.QRect(697, 10, 88, 20))
     self.dateEdit_2.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_2.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_2.setCurrentSection(QtWidgets.QDateTimeEdit.YearSection)
     self.dateEdit_2.setCalendarPopup(True)
     self.dateEdit_2.setDate(QtCore.QDate(2020, 1, 1))
     self.dateEdit_2.setObjectName("dateEdit_2")
     self.label_2 = QtWidgets.QLabel(self.groupBox)
     self.label_2.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_2.setMaximumSize(QtCore.QSize(36, 16))
     self.label_2.setStyleSheet("")
     self.label_2.setObjectName("label_2")
     self.label_3 = QtWidgets.QLabel(self.groupBox)
     self.label_3.setGeometry(QtCore.QRect(160, 11, 31, 16))
     self.label_3.setMaximumSize(QtCore.QSize(36, 16))
     self.label_3.setObjectName("label_3")
     self.label_4 = QtWidgets.QLabel(self.groupBox)
     self.label_4.setGeometry(QtCore.QRect(290, 11, 31, 16))
     self.label_4.setMaximumSize(QtCore.QSize(36, 16))
     self.label_4.setObjectName("label_4")
     self.label_6 = QtWidgets.QLabel(self.groupBox)
     self.label_6.setGeometry(QtCore.QRect(680, 10, 16, 16))
     self.label_6.setObjectName("label_6")
     self.dateEdit = QtWidgets.QDateEdit(self.groupBox)
     self.dateEdit.setGeometry(QtCore.QRect(587, 10, 88, 20))
     self.dateEdit.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit.setCalendarPopup(True)
     self.dateEdit.setDate(QtCore.QDate(2020, 1, 1))
     self.dateEdit.setObjectName("dateEdit")
     self.label_13 = QtWidgets.QLabel(self.groupBox)
     self.label_13.setGeometry(QtCore.QRect(410, 10, 60, 20))
     self.label_13.setMaximumSize(QtCore.QSize(60, 20))
     self.label_13.setObjectName("label_13")
     self.comboBox = QtWidgets.QComboBox(self.groupBox)
     self.comboBox.setGeometry(QtCore.QRect(470, 10, 81, 22))
     self.comboBox.setObjectName("comboBox")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox.addItem("")
     self.comboBox_8 = QtWidgets.QComboBox(self.groupBox)
     self.comboBox_8.setGeometry(QtCore.QRect(40, 10, 111, 20))
     self.comboBox_8.setMaximumSize(QtCore.QSize(800, 20))
     self.comboBox_8.setEditable(True)
     self.comboBox_8.setObjectName("comboBox_8")
     self.gridLayout_5.addWidget(self.groupBox, 2, 0, 1, 1)
     self.ZhuCaiDan.addTab(self.renyuanxinxi, "")
     self.xiangmuxinxi = QtWidgets.QWidget()
     self.xiangmuxinxi.setObjectName("xiangmuxinxi")
     self.gridLayout_8 = QtWidgets.QGridLayout(self.xiangmuxinxi)
     self.gridLayout_8.setSpacing(0)
     self.gridLayout_8.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_8.setObjectName("gridLayout_8")
     self.tableWidget_2 = QtWidgets.QTableWidget(self.xiangmuxinxi)
     sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
     sizePolicy.setHorizontalStretch(0)
     sizePolicy.setVerticalStretch(0)
     sizePolicy.setHeightForWidth(self.tableWidget_2.sizePolicy().hasHeightForWidth())
     self.tableWidget_2.setSizePolicy(sizePolicy)
     self.tableWidget_2.setAutoScroll(True)
     self.tableWidget_2.setObjectName("tableWidget_2")
     self.tableWidget_2.setColumnCount(15)
     self.tableWidget_2.setRowCount(0)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(16, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(17, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(18, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(19, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(20, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(21, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(22, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(23, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(24, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(25, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(26, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(27, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(28, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(29, item)
     item = QtWidgets.QTableWidgetItem()
     self.tableWidget_2.setHorizontalHeaderItem(30, item)
     self.gridLayout_8.addWidget(self.tableWidget_2, 3, 0, 1, 1)
     self.groupBox_4 = QtWidgets.QGroupBox(self.xiangmuxinxi)
     self.groupBox_4.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_4.setTitle("")
     self.groupBox_4.setObjectName("groupBox_4")
     self.layoutWidget_2 = QtWidgets.QWidget(self.groupBox_4)
     self.layoutWidget_2.setGeometry(QtCore.QRect(0, 0, 390, 60))
     self.layoutWidget_2.setObjectName("layoutWidget_2")
     self.gridLayout_7 = QtWidgets.QGridLayout(self.layoutWidget_2)
     self.gridLayout_7.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_7.setObjectName("gridLayout_7")
     self.toolButton_7 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_7.setIcon(icon1)
     self.toolButton_7.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_7.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_7.setAutoRaise(True)
     self.toolButton_7.setObjectName("toolButton_7")
     self.gridLayout_7.addWidget(self.toolButton_7, 0, 9, 1, 1)
     self.toolButton_9 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_9.setIcon(icon2)
     self.toolButton_9.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_9.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_9.setAutoRaise(True)
     self.toolButton_9.setObjectName("toolButton_9")
     self.gridLayout_7.addWidget(self.toolButton_9, 0, 7, 1, 1)
     self.line_4 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_4.setObjectName("line_4")
     self.gridLayout_7.addWidget(self.line_4, 0, 3, 1, 1)
     self.toolButton_10 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_10.setIcon(icon3)
     self.toolButton_10.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_10.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_10.setAutoRaise(True)
     self.toolButton_10.setObjectName("toolButton_10")
     self.gridLayout_7.addWidget(self.toolButton_10, 0, 5, 1, 1)
     self.toolButton_11 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_11.setIcon(icon4)
     self.toolButton_11.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_11.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_11.setAutoRaise(True)
     self.toolButton_11.setObjectName("toolButton_11")
     self.gridLayout_7.addWidget(self.toolButton_11, 0, 0, 1, 1)
     self.toolButton_12 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_12.setIcon(icon5)
     self.toolButton_12.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_12.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_12.setAutoRaise(True)
     self.toolButton_12.setObjectName("toolButton_12")
     self.gridLayout_7.addWidget(self.toolButton_12, 0, 1, 1, 1)
     self.line_5 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_5.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_5.setObjectName("line_5")
     self.gridLayout_7.addWidget(self.line_5, 0, 6, 1, 1)
     self.toolButton_13 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_13.setIcon(icon6)
     self.toolButton_13.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_13.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_13.setAutoRaise(True)
     self.toolButton_13.setObjectName("toolButton_13")
     self.gridLayout_7.addWidget(self.toolButton_13, 0, 4, 1, 1)
     self.toolButton_14 = QtWidgets.QToolButton(self.layoutWidget_2)
     self.toolButton_14.setIcon(icon7)
     self.toolButton_14.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_14.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_14.setAutoRaise(True)
     self.toolButton_14.setObjectName("toolButton_14")
     self.gridLayout_7.addWidget(self.toolButton_14, 0, 2, 1, 1)
     self.line_6 = QtWidgets.QFrame(self.layoutWidget_2)
     self.line_6.setFrameShape(QtWidgets.QFrame.VLine)
     self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken)
     self.line_6.setObjectName("line_6")
     self.gridLayout_7.addWidget(self.line_6, 0, 8, 1, 1)
     self.gridLayout_8.addWidget(self.groupBox_4, 0, 0, 1, 1)
     self.groupBox_3 = QtWidgets.QGroupBox(self.xiangmuxinxi)
     self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox_3.setTitle("")
     self.groupBox_3.setObjectName("groupBox_3")
     self.chaxun_2 = QtWidgets.QPushButton(self.groupBox_3)
     self.chaxun_2.setEnabled(True)
     self.chaxun_2.setGeometry(QtCore.QRect(1090, 10, 75, 23))
     self.chaxun_2.setObjectName("chaxun_2")
     self.label_12 = QtWidgets.QLabel(self.groupBox_3)
     self.label_12.setGeometry(QtCore.QRect(755, 12, 31, 16))
     self.label_12.setMaximumSize(QtCore.QSize(36, 16))
     self.label_12.setObjectName("label_12")
     self.dateEdit_3 = QtWidgets.QDateEdit(self.groupBox_3)
     self.dateEdit_3.setGeometry(QtCore.QRect(897, 11, 88, 20))
     self.dateEdit_3.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_3.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_3.setCalendarPopup(True)
     self.dateEdit_3.setObjectName("dateEdit_3")
     self.label_14 = QtWidgets.QLabel(self.groupBox_3)
     self.label_14.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_14.setMaximumSize(QtCore.QSize(36, 16))
     self.label_14.setStyleSheet("")
     self.label_14.setObjectName("label_14")
     self.label_15 = QtWidgets.QLabel(self.groupBox_3)
     self.label_15.setGeometry(QtCore.QRect(120, 10, 31, 16))
     self.label_15.setMaximumSize(QtCore.QSize(36, 16))
     self.label_15.setObjectName("label_15")
     self.label_17 = QtWidgets.QLabel(self.groupBox_3)
     self.label_17.setGeometry(QtCore.QRect(880, 11, 16, 16))
     self.label_17.setObjectName("label_17")
     self.dateEdit_4 = QtWidgets.QDateEdit(self.groupBox_3)
     self.dateEdit_4.setGeometry(QtCore.QRect(787, 11, 88, 20))
     self.dateEdit_4.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_4.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_4.setCalendarPopup(True)
     self.dateEdit_4.setObjectName("dateEdit_4")
     self.label_18 = QtWidgets.QLabel(self.groupBox_3)
     self.label_18.setGeometry(QtCore.QRect(610, 10, 60, 20))
     self.label_18.setMaximumSize(QtCore.QSize(60, 20))
     self.label_18.setObjectName("label_18")
     self.comboBox_2 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_2.setGeometry(QtCore.QRect(460, 9, 51, 22))
     self.comboBox_2.setObjectName("comboBox_2")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_2.addItem("")
     self.comboBox_3 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_3.setGeometry(QtCore.QRect(40, 9, 69, 22))
     self.comboBox_3.setEditable(True)
     self.comboBox_3.setObjectName("comboBox_3")
     self.comboBox_4 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_4.setGeometry(QtCore.QRect(150, 9, 69, 22))
     self.comboBox_4.setEditable(True)
     self.comboBox_4.setObjectName("comboBox_4")
     self.comboBox_5 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_5.setGeometry(QtCore.QRect(290, 9, 111, 22))
     self.comboBox_5.setEditable(True)
     self.comboBox_5.setObjectName("comboBox_5")
     self.label_19 = QtWidgets.QLabel(self.groupBox_3)
     self.label_19.setGeometry(QtCore.QRect(230, 10, 61, 20))
     self.label_19.setObjectName("label_19")
     self.label_20 = QtWidgets.QLabel(self.groupBox_3)
     self.label_20.setGeometry(QtCore.QRect(420, 10, 51, 20))
     self.label_20.setMaximumSize(QtCore.QSize(60, 20))
     self.label_20.setObjectName("label_20")
     self.comboBox_6 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_6.setGeometry(QtCore.QRect(510, 9, 81, 22))
     self.comboBox_6.setEditable(True)
     self.comboBox_6.setObjectName("comboBox_6")
     self.comboBox_7 = QtWidgets.QComboBox(self.groupBox_3)
     self.comboBox_7.setGeometry(QtCore.QRect(670, 10, 51, 22))
     self.comboBox_7.setObjectName("comboBox_7")
     self.comboBox_7.addItem("")
     self.comboBox_7.addItem("")
     self.comboBox_7.addItem("")
     self.checkBox_3 = QtWidgets.QCheckBox(self.groupBox_3)
     self.checkBox_3.setGeometry(QtCore.QRect(990, 2, 89, 16))
     self.checkBox_3.setObjectName("checkBox_3")
     self.checkBox_4 = QtWidgets.QCheckBox(self.groupBox_3)
     self.checkBox_4.setGeometry(QtCore.QRect(990, 20, 89, 16))
     self.checkBox_4.setObjectName("checkBox_4")
     self.gridLayout_8.addWidget(self.groupBox_3, 1, 0, 1, 1)
     self.ZhuCaiDan.addTab(self.xiangmuxinxi, "")
     self.jiancebaogao = QtWidgets.QWidget()
     self.jiancebaogao.setObjectName("jiancebaogao")
     self.gridLayout_10 = QtWidgets.QGridLayout(self.jiancebaogao)
     self.gridLayout_10.setSpacing(0)
     self.gridLayout_10.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_10.setObjectName("gridLayout_10")
     self.groupBox_6 = QtWidgets.QGroupBox(self.jiancebaogao)
     self.groupBox_6.setMaximumSize(QtCore.QSize(16777215, 60))
     self.groupBox_6.setTitle("")
     self.groupBox_6.setObjectName("groupBox_6")
     self.layoutWidget_3 = QtWidgets.QWidget(self.groupBox_6)
     self.layoutWidget_3.setGeometry(QtCore.QRect(0, 0, 371, 60))
     self.layoutWidget_3.setObjectName("layoutWidget_3")
     self.gridLayout_9 = QtWidgets.QGridLayout(self.layoutWidget_3)
     self.gridLayout_9.setContentsMargins(0, 0, 0, 0)
     self.gridLayout_9.setObjectName("gridLayout_9")
     self.toolButton_15 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_15.setIcon(icon6)
     self.toolButton_15.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_15.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_15.setAutoRaise(True)
     self.toolButton_15.setObjectName("toolButton_15")
     self.gridLayout_9.addWidget(self.toolButton_15, 0, 3, 1, 1)
     self.toolButton_16 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_16.setIcon(icon7)
     self.toolButton_16.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_16.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_16.setAutoRaise(True)
     self.toolButton_16.setObjectName("toolButton_16")
     self.gridLayout_9.addWidget(self.toolButton_16, 0, 2, 1, 1)
     self.toolButton_17 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_17.setIcon(icon2)
     self.toolButton_17.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_17.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_17.setAutoRaise(True)
     self.toolButton_17.setObjectName("toolButton_17")
     self.gridLayout_9.addWidget(self.toolButton_17, 0, 6, 1, 1)
     self.toolButton_18 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_18.setIcon(icon5)
     self.toolButton_18.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_18.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_18.setAutoRaise(True)
     self.toolButton_18.setObjectName("toolButton_18")
     self.gridLayout_9.addWidget(self.toolButton_18, 0, 1, 1, 1)
     self.toolButton_19 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_19.setIcon(icon4)
     self.toolButton_19.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_19.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_19.setAutoRaise(True)
     self.toolButton_19.setObjectName("toolButton_19")
     self.gridLayout_9.addWidget(self.toolButton_19, 0, 0, 1, 1)
     self.toolButton_20 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_20.setIcon(icon3)
     self.toolButton_20.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_20.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_20.setAutoRaise(True)
     self.toolButton_20.setObjectName("toolButton_20")
     self.gridLayout_9.addWidget(self.toolButton_20, 0, 4, 1, 1)
     self.toolButton_21 = QtWidgets.QToolButton(self.layoutWidget_3)
     self.toolButton_21.setIcon(icon1)
     self.toolButton_21.setIconSize(QtCore.QSize(36, 36))
     self.toolButton_21.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
     self.toolButton_21.setAutoRaise(True)
     self.toolButton_21.setObjectName("toolButton_21")
     self.gridLayout_9.addWidget(self.toolButton_21, 0, 7, 1, 1)
     self.gridLayout_10.addWidget(self.groupBox_6, 0, 0, 1, 1)
     self.groupBox_5 = QtWidgets.QGroupBox(self.jiancebaogao)
     self.groupBox_5.setMaximumSize(QtCore.QSize(16777215, 40))
     self.groupBox_5.setTitle("")
     self.groupBox_5.setObjectName("groupBox_5")
     self.chaxun_4 = QtWidgets.QPushButton(self.groupBox_5)
     self.chaxun_4.setEnabled(True)
     self.chaxun_4.setGeometry(QtCore.QRect(1050, 10, 75, 23))
     self.chaxun_4.setObjectName("chaxun_4")
     self.label_27 = QtWidgets.QLabel(self.groupBox_5)
     self.label_27.setGeometry(QtCore.QRect(688, 12, 31, 16))
     self.label_27.setMaximumSize(QtCore.QSize(36, 16))
     self.label_27.setObjectName("label_27")
     self.dateEdit_7 = QtWidgets.QDateEdit(self.groupBox_5)
     self.dateEdit_7.setGeometry(QtCore.QRect(830, 11, 88, 20))
     self.dateEdit_7.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_7.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_7.setCalendarPopup(True)
     self.dateEdit_7.setObjectName("dateEdit_7")
     self.label_28 = QtWidgets.QLabel(self.groupBox_5)
     self.label_28.setGeometry(QtCore.QRect(9, 11, 31, 16))
     self.label_28.setMaximumSize(QtCore.QSize(36, 16))
     self.label_28.setStyleSheet("")
     self.label_28.setObjectName("label_28")
     self.label_29 = QtWidgets.QLabel(self.groupBox_5)
     self.label_29.setGeometry(QtCore.QRect(120, 10, 31, 16))
     self.label_29.setMaximumSize(QtCore.QSize(36, 16))
     self.label_29.setObjectName("label_29")
     self.label_30 = QtWidgets.QLabel(self.groupBox_5)
     self.label_30.setGeometry(QtCore.QRect(813, 11, 16, 16))
     self.label_30.setObjectName("label_30")
     self.dateEdit_8 = QtWidgets.QDateEdit(self.groupBox_5)
     self.dateEdit_8.setGeometry(QtCore.QRect(720, 11, 88, 20))
     self.dateEdit_8.setMinimumSize(QtCore.QSize(88, 20))
     self.dateEdit_8.setMaximumSize(QtCore.QSize(88, 20))
     self.dateEdit_8.setCalendarPopup(True)
     self.dateEdit_8.setObjectName("dateEdit_8")
     self.label_31 = QtWidgets.QLabel(self.groupBox_5)
     self.label_31.setGeometry(QtCore.QRect(530, 10, 60, 20))
     self.label_31.setMaximumSize(QtCore.QSize(60, 20))
     self.label_31.setObjectName("label_31")
     self.label_32 = QtWidgets.QLabel(self.groupBox_5)
     self.label_32.setGeometry(QtCore.QRect(240, 10, 61, 20))
     self.label_32.setObjectName("label_32")
     self.label_33 = QtWidgets.QLabel(self.groupBox_5)
     self.label_33.setGeometry(QtCore.QRect(430, 10, 31, 20))
     self.label_33.setMaximumSize(QtCore.QSize(60, 20))
     self.label_33.setObjectName("label_33")
     self.comboBox_18 = QtWidgets.QComboBox(self.groupBox_5)
     self.comboBox_18.setGeometry(QtCore.QRect(460, 10, 51, 22))
     self.comboBox_18.setObjectName("comboBox_18")
     self.comboBox_18.addItem("")
     self.comboBox_18.addItem("")
     self.comboBox_18.addItem("")
     self.lineEdit_8 = QtWidgets.QLineEdit(self.groupBox_5)
     self.lineEdit_8.setGeometry(QtCore.QRect(590, 10, 81, 20))
     self.lineEdit_8.setMinimumSize(QtCore.QSize(81, 20))
     self.lineEdit_8.setMaximumSize(QtCore.QSize(81, 20))
     self.lineEdit_8.setDragEnabled(False)
     self.lineEdit_8.setReadOnly(False)
     self.lineEdit_8.setClearButtonEnabled(False)
     self.lineEdit_8.setObjectName("lineEdit_8")
     self.checkBox = QtWidgets.QCheckBox(self.groupBox_5)
     self.checkBox.setGeometry(QtCore.QRect(930, 2, 89, 16))
     self.checkBox.setObjectName("checkBox")
     self.checkBox_2 = QtWidgets.QCheckBox(self.groupBox_5)
     self.checkBox_2.setGeometry(QtCore.QRect(930, 20, 89, 16))
     self.checkBox_2.setObjectName("checkBox_2")
     self.fontComboBox_4 = QtWidgets.QFontComboBox(self.groupBox_5)
     self.fontComboBox_4.setGeometry(QtCore.QRect(150, 9, 81, 22))