def deadRef(self, ns, index): win = QtWidgets.QMessageBox(self) win.setText("Namespace {0} not found in scene, or" "\nrig not found in namepsace." "\n\nRemoving from list.".format(ns)) win.exec_() self.refPicker.removeItem(index) win.setParent(None)
def option_box(*args): """ args must be tuples of (button_text, function) """ win = QtWidgets.QMessageBox(getMayaMainWindow()) for opt, func in args: but = win.addButton(opt, win.AcceptRole) but.clicked.connect(func) win.exec_()
def getUserFiles(description="Python File", ext=".py"): """Create a file dialog and return user selected files. Args are string description and allowed file types.""" fileWin = QtWidgets.QFileDialog( getMayaMainWindow(), filter="{0} (*{1})".format(description, ext)) fileWin.setFileMode(QtWidgets.QFileDialog.ExistingFiles) if fileWin.exec_(): inFiles = fileWin.selectedFiles() else: inFiles = [] fileWin.setParent(None) return inFiles
def setupUi(self, SurfRigWindow): SurfRigWindow.setObjectName("SurfRigWindow") SurfRigWindow.resize(434, 820) self.centralwidget = QtWidgets.QWidget(SurfRigWindow) self.centralwidget.setObjectName("centralwidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) self.verticalLayout.setSpacing(10) self.verticalLayout.setObjectName("verticalLayout") self.step1Layout = QtWidgets.QVBoxLayout() self.step1Layout.setContentsMargins(-1, 4, -1, 4) self.step1Layout.setObjectName("step1Layout") self.step1 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(10) self.step1.setFont(font) self.step1.setObjectName("step1") self.step1Layout.addWidget(self.step1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.symLabel = QtWidgets.QLabel(self.centralwidget) self.symLabel.setObjectName("symLabel") self.horizontalLayout_4.addWidget(self.symLabel) self.symAxis = QtWidgets.QComboBox(self.centralwidget) self.symAxis.setObjectName("symAxis") self.symAxis.addItem("") self.symAxis.addItem("") self.symAxis.addItem("") self.symAxis.addItem("") self.horizontalLayout_4.addWidget(self.symAxis) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.nameLabel = QtWidgets.QLabel(self.centralwidget) self.nameLabel.setObjectName("nameLabel") self.horizontalLayout_4.addWidget(self.nameLabel) self.nameButton = QtWidgets.QPushButton(self.centralwidget) self.nameButton.setObjectName("nameButton") self.horizontalLayout_4.addWidget(self.nameButton) self.step1Layout.addLayout(self.horizontalLayout_4) self.verticalLayout.addLayout(self.step1Layout) self.step2Layout = QtWidgets.QVBoxLayout() self.step2Layout.setContentsMargins(-1, 4, -1, 4) self.step2Layout.setObjectName("step2Layout") self.step2 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(10) self.step2.setFont(font) self.step2.setTextFormat(QtCore.Qt.AutoText) self.step2.setScaledContents(False) self.step2.setObjectName("step2") self.step2Layout.addWidget(self.step2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.surfNameLabel = QtWidgets.QLabel(self.centralwidget) self.surfNameLabel.setObjectName("surfNameLabel") self.horizontalLayout.addWidget(self.surfNameLabel) self.surfNameEdit = QtWidgets.QLineEdit(self.centralwidget) self.surfNameEdit.setObjectName("surfNameEdit") self.horizontalLayout.addWidget(self.surfNameEdit) self.step2Layout.addLayout(self.horizontalLayout) self.horizontalLayout_16 = QtWidgets.QHBoxLayout() self.horizontalLayout_16.setObjectName("horizontalLayout_16") self.newSurfButton = QtWidgets.QPushButton(self.centralwidget) self.newSurfButton.setObjectName("newSurfButton") self.horizontalLayout_16.addWidget(self.newSurfButton) self.simpleSurfButton = QtWidgets.QPushButton(self.centralwidget) self.simpleSurfButton.setObjectName("simpleSurfButton") self.horizontalLayout_16.addWidget(self.simpleSurfButton) self.initSurfButton = QtWidgets.QPushButton(self.centralwidget) self.initSurfButton.setObjectName("initSurfButton") self.horizontalLayout_16.addWidget(self.initSurfButton) self.step2Layout.addLayout(self.horizontalLayout_16) self.verticalLayout.addLayout(self.step2Layout) self.step3Layout = QtWidgets.QHBoxLayout() self.step3Layout.setContentsMargins(-1, 4, -1, 4) self.step3Layout.setObjectName("step3Layout") self.step3 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(10) self.step3.setFont(font) self.step3.setObjectName("step3") self.step3Layout.addWidget(self.step3) self.selectCVsButton = QtWidgets.QPushButton(self.centralwidget) self.selectCVsButton.setObjectName("selectCVsButton") self.step3Layout.addWidget(self.selectCVsButton) self.toggleJntsButton = QtWidgets.QPushButton(self.centralwidget) self.toggleJntsButton.setObjectName("toggleJntsButton") self.step3Layout.addWidget(self.toggleJntsButton) self.toggleSurfsButton = QtWidgets.QPushButton(self.centralwidget) self.toggleSurfsButton.setObjectName("toggleSurfsButton") self.step3Layout.addWidget(self.toggleSurfsButton) self.verticalLayout.addLayout(self.step3Layout) self.step4Layout = QtWidgets.QVBoxLayout() self.step4Layout.setContentsMargins(-1, 4, -1, 4) self.step4Layout.setObjectName("step4Layout") self.step4 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(10) self.step4.setFont(font) self.step4.setObjectName("step4") self.step4Layout.addWidget(self.step4) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.jntNameLabel = QtWidgets.QLabel(self.centralwidget) self.jntNameLabel.setObjectName("jntNameLabel") self.horizontalLayout_5.addWidget(self.jntNameLabel) self.jntNameEdit = QtWidgets.QLineEdit(self.centralwidget) self.jntNameEdit.setObjectName("jntNameEdit") self.horizontalLayout_5.addWidget(self.jntNameEdit) self.newJntButton = QtWidgets.QPushButton(self.centralwidget) self.newJntButton.setObjectName("newJntButton") self.horizontalLayout_5.addWidget(self.newJntButton) self.step4Layout.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.step4Layout.addLayout(self.horizontalLayout_2) self.verticalLayout.addLayout(self.step4Layout) self.step5Layout = QtWidgets.QVBoxLayout() self.step5Layout.setContentsMargins(-1, 4, -1, 4) self.step5Layout.setObjectName("step5Layout") self.step5 = QtWidgets.QLabel(self.centralwidget) font = QtGui.QFont() font.setPointSize(10) self.step5.setFont(font) self.step5.setObjectName("step5") self.step5Layout.addWidget(self.step5) self.mirrorGrp = QtWidgets.QGroupBox(self.centralwidget) self.mirrorGrp.setCheckable(True) self.mirrorGrp.setChecked(True) self.mirrorGrp.setObjectName("mirrorGrp") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mirrorGrp) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.mirrorBoth = QtWidgets.QRadioButton(self.mirrorGrp) self.mirrorBoth.setChecked(True) self.mirrorBoth.setObjectName("mirrorBoth") self.horizontalLayout_6.addWidget(self.mirrorBoth) self.mirrorJnts = QtWidgets.QRadioButton(self.mirrorGrp) self.mirrorJnts.setObjectName("mirrorJnts") self.horizontalLayout_6.addWidget(self.mirrorJnts) self.horizontalLayout_6.setStretch(0, 1) self.horizontalLayout_6.setStretch(1, 2) self.verticalLayout_2.addLayout(self.horizontalLayout_6) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.searchLabel = QtWidgets.QLabel(self.mirrorGrp) self.searchLabel.setObjectName("searchLabel") self.horizontalLayout_8.addWidget(self.searchLabel) self.searchEdit = QtWidgets.QLineEdit(self.mirrorGrp) self.searchEdit.setText("") self.searchEdit.setObjectName("searchEdit") self.horizontalLayout_8.addWidget(self.searchEdit) self.replaceLabel = QtWidgets.QLabel(self.mirrorGrp) self.replaceLabel.setObjectName("replaceLabel") self.horizontalLayout_8.addWidget(self.replaceLabel) self.replaceEdit = QtWidgets.QLineEdit(self.mirrorGrp) self.replaceEdit.setObjectName("replaceEdit") self.horizontalLayout_8.addWidget(self.replaceEdit) self.verticalLayout_2.addLayout(self.horizontalLayout_8) self.step5Layout.addWidget(self.mirrorGrp) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.rigButton = QtWidgets.QPushButton(self.centralwidget) self.rigButton.setObjectName("rigButton") self.horizontalLayout_3.addWidget(self.rigButton) self.rigAllButton = QtWidgets.QPushButton(self.centralwidget) self.rigAllButton.setObjectName("rigAllButton") self.horizontalLayout_3.addWidget(self.rigAllButton) self.step5Layout.addLayout(self.horizontalLayout_3) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setContentsMargins(6, -1, 6, -1) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.sizeLabel = QtWidgets.QLabel(self.centralwidget) self.sizeLabel.setMinimumSize(QtCore.QSize(0, 0)) self.sizeLabel.setObjectName("sizeLabel") self.horizontalLayout_10.addWidget(self.sizeLabel) self.sizeEdit = QtWidgets.QDoubleSpinBox(self.centralwidget) self.sizeEdit.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.sizeEdit.setDecimals(2) self.sizeEdit.setMinimum(0.01) self.sizeEdit.setMaximum(99.9) self.sizeEdit.setProperty("value", 0.5) self.sizeEdit.setObjectName("sizeEdit") self.horizontalLayout_10.addWidget(self.sizeEdit) self.horizontalLayout_11.addLayout(self.horizontalLayout_10) self.sizeSlider = QtWidgets.QSlider(self.centralwidget) self.sizeSlider.setMinimum(1) self.sizeSlider.setMaximum(200) self.sizeSlider.setProperty("value", 50) self.sizeSlider.setOrientation(QtCore.Qt.Horizontal) self.sizeSlider.setInvertedAppearance(False) self.sizeSlider.setInvertedControls(False) self.sizeSlider.setObjectName("sizeSlider") self.horizontalLayout_11.addWidget(self.sizeSlider) self.horizontalLayout_11.setStretch(0, 1) self.horizontalLayout_11.setStretch(1, 2) self.step5Layout.addLayout(self.horizontalLayout_11) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setContentsMargins(6, -1, 6, -1) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.distanceLabel = QtWidgets.QLabel(self.centralwidget) self.distanceLabel.setMinimumSize(QtCore.QSize(0, 0)) self.distanceLabel.setObjectName("distanceLabel") self.horizontalLayout_12.addWidget(self.distanceLabel) self.distanceEdit = QtWidgets.QDoubleSpinBox(self.centralwidget) self.distanceEdit.setButtonSymbols( QtWidgets.QAbstractSpinBox.NoButtons) self.distanceEdit.setDecimals(1) self.distanceEdit.setMinimum(0.0) self.distanceEdit.setMaximum(99.9) self.distanceEdit.setProperty("value", 0.5) self.distanceEdit.setObjectName("distanceEdit") self.horizontalLayout_12.addWidget(self.distanceEdit) self.horizontalLayout_9.addLayout(self.horizontalLayout_12) self.distanceSlider = QtWidgets.QSlider(self.centralwidget) self.distanceSlider.setMaximum(50) self.distanceSlider.setProperty("value", 5) self.distanceSlider.setOrientation(QtCore.Qt.Horizontal) self.distanceSlider.setObjectName("distanceSlider") self.horizontalLayout_9.addWidget(self.distanceSlider) self.horizontalLayout_9.setStretch(0, 1) self.horizontalLayout_9.setStretch(1, 2) self.step5Layout.addLayout(self.horizontalLayout_9) self.parGrp = QtWidgets.QGroupBox(self.centralwidget) self.parGrp.setObjectName("parGrp") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.parGrp) self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.newParButton = QtWidgets.QPushButton(self.parGrp) self.newParButton.setObjectName("newParButton") self.horizontalLayout_13.addWidget(self.newParButton) self.parExistingButton = QtWidgets.QPushButton(self.parGrp) self.parExistingButton.setObjectName("parExistingButton") self.horizontalLayout_13.addWidget(self.parExistingButton) self.verticalLayout_3.addLayout(self.horizontalLayout_13) self.horizontalLayout_14 = QtWidgets.QHBoxLayout() self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.mirParButton = QtWidgets.QPushButton(self.parGrp) self.mirParButton.setObjectName("mirParButton") self.horizontalLayout_14.addWidget(self.mirParButton) self.unparentButton = QtWidgets.QPushButton(self.parGrp) self.unparentButton.setObjectName("unparentButton") self.horizontalLayout_14.addWidget(self.unparentButton) self.verticalLayout_3.addLayout(self.horizontalLayout_14) self.step5Layout.addWidget(self.parGrp) self.verticalLayout.addLayout(self.step5Layout) self.step6Layout = QtWidgets.QVBoxLayout() self.step6Layout.setContentsMargins(-1, 4, -1, 4) self.step6Layout.setObjectName("step6Layout") self.horizontalLayout_18 = QtWidgets.QHBoxLayout() self.horizontalLayout_18.setSpacing(6) self.horizontalLayout_18.setObjectName("horizontalLayout_18") self.step6 = QtWidgets.QLabel(self.centralwidget) self.step6.setObjectName("step6") self.horizontalLayout_18.addWidget(self.step6) self.resetBindPoseButton = QtWidgets.QPushButton(self.centralwidget) self.resetBindPoseButton.setObjectName("resetBindPoseButton") self.horizontalLayout_18.addWidget(self.resetBindPoseButton) self.fixOrientsButton = QtWidgets.QPushButton(self.centralwidget) self.fixOrientsButton.setObjectName("fixOrientsButton") self.horizontalLayout_18.addWidget(self.fixOrientsButton) self.step6Layout.addLayout(self.horizontalLayout_18) self.surfEditGrp = QtWidgets.QGroupBox(self.centralwidget) self.surfEditGrp.setObjectName("surfEditGrp") self.horizontalLayout_17 = QtWidgets.QHBoxLayout(self.surfEditGrp) self.horizontalLayout_17.setObjectName("horizontalLayout_17") self.editLockCheck = QtWidgets.QCheckBox(self.surfEditGrp) self.editLockCheck.setChecked(True) self.editLockCheck.setObjectName("editLockCheck") self.horizontalLayout_17.addWidget(self.editLockCheck) self.editMirCheck = QtWidgets.QCheckBox(self.surfEditGrp) self.editMirCheck.setChecked(True) self.editMirCheck.setObjectName("editMirCheck") self.horizontalLayout_17.addWidget(self.editMirCheck) self.editOrigCheck = QtWidgets.QCheckBox(self.surfEditGrp) self.editOrigCheck.setChecked(True) self.editOrigCheck.setObjectName("editOrigCheck") self.horizontalLayout_17.addWidget(self.editOrigCheck) self.surfaceEditButton = QtWidgets.QPushButton(self.surfEditGrp) self.surfaceEditButton.setObjectName("surfaceEditButton") self.horizontalLayout_17.addWidget(self.surfaceEditButton) self.step6Layout.addWidget(self.surfEditGrp) self.verticalLayout.addLayout(self.step6Layout) self.step7Layout = QtWidgets.QVBoxLayout() self.step7Layout.setContentsMargins(-1, 4, -1, 4) self.step7Layout.setObjectName("step7Layout") self.step7 = QtWidgets.QLabel(self.centralwidget) self.step7.setObjectName("step7") self.step7Layout.addWidget(self.step7) self.deformersGrp = QtWidgets.QGroupBox(self.centralwidget) self.deformersGrp.setObjectName("deformersGrp") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.deformersGrp) self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.clusterHandleButton = QtWidgets.QPushButton(self.deformersGrp) self.clusterHandleButton.setObjectName("clusterHandleButton") self.horizontalLayout_7.addWidget(self.clusterHandleButton) self.setupBlendshapesButton = QtWidgets.QPushButton(self.deformersGrp) self.setupBlendshapesButton.setObjectName("setupBlendshapesButton") self.horizontalLayout_7.addWidget(self.setupBlendshapesButton) self.mergeBlendshapesButton = QtWidgets.QPushButton(self.deformersGrp) self.mergeBlendshapesButton.setObjectName("mergeBlendshapesButton") self.horizontalLayout_7.addWidget(self.mergeBlendshapesButton) self.verticalLayout_4.addLayout(self.horizontalLayout_7) self.step7Layout.addWidget(self.deformersGrp) self.verticalLayout.addLayout(self.step7Layout) SurfRigWindow.setCentralWidget(self.centralwidget) self.retranslateUi(SurfRigWindow) self.symAxis.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(SurfRigWindow)
def setupUi(self, RigGuiBaseQt): RigGuiBaseQt.setObjectName("RigGuiBaseQt") RigGuiBaseQt.resize(350, 250) self.verticalLayout = QtWidgets.QVBoxLayout(RigGuiBaseQt) self.verticalLayout.setSpacing(5) self.verticalLayout.setContentsMargins(1, 1, 1, 1) self.verticalLayout.setObjectName("verticalLayout") self.refereceHeader = QtWidgets.QWidget(RigGuiBaseQt) self.refereceHeader.setMinimumSize(QtCore.QSize(300, 67)) self.refereceHeader.setMaximumSize(QtCore.QSize(16777215, 67)) self.refereceHeader.setObjectName("refereceHeader") self.headerLayout = QtWidgets.QVBoxLayout(self.refereceHeader) self.headerLayout.setContentsMargins(4, 2, 2, 2) self.headerLayout.setObjectName("headerLayout") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(3, 3, 3, -1) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.refLabel = QtWidgets.QLabel(self.refereceHeader) self.refLabel.setObjectName("refLabel") self.horizontalLayout_5.addWidget(self.refLabel) self.refPicker = QtWidgets.QComboBox(self.refereceHeader) self.refPicker.setObjectName("refPicker") self.horizontalLayout_5.addWidget(self.refPicker) self.horizontalLayout_5.setStretch(0, 1) self.horizontalLayout_5.setStretch(1, 2) self.headerLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.newRefBut = QtWidgets.QPushButton(self.refereceHeader) self.newRefBut.setObjectName("newRefBut") self.horizontalLayout.addWidget(self.newRefBut) self.delRefBut = QtWidgets.QPushButton(self.refereceHeader) self.delRefBut.setObjectName("delRefBut") self.horizontalLayout.addWidget(self.delRefBut) self.headerLayout.addLayout(self.horizontalLayout) self.verticalLayout.addWidget(self.refereceHeader) self.selectionLayout = QtWidgets.QVBoxLayout() self.selectionLayout.setObjectName("selectionLayout") self.verticalLayout.addLayout(self.selectionLayout) self.toolsLayout = QtWidgets.QWidget(RigGuiBaseQt) self.toolsLayout.setMinimumSize(QtCore.QSize(300, 130)) self.toolsLayout.setMaximumSize(QtCore.QSize(16777215, 130)) self.toolsLayout.setAutoFillBackground(False) self.toolsLayout.setStyleSheet("") self.toolsLayout.setObjectName("toolsLayout") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.toolsLayout) self.verticalLayout_4.setSpacing(5) self.verticalLayout_4.setContentsMargins(5, 3, 5, 7) self.verticalLayout_4.setObjectName("verticalLayout_4") self.toolsRadioLayout = QtWidgets.QHBoxLayout() self.toolsRadioLayout.setContentsMargins(21, -1, -1, -1) self.toolsRadioLayout.setObjectName("toolsRadioLayout") self.toolLabel = QtWidgets.QLabel(self.toolsLayout) self.toolLabel.setObjectName("toolLabel") self.toolsRadioLayout.addWidget(self.toolLabel) self.toolCheckBody = QtWidgets.QRadioButton(self.toolsLayout) self.toolCheckBody.setChecked(True) self.toolCheckBody.setObjectName("toolCheckBody") self.toolsRadioLayout.addWidget(self.toolCheckBody) self.toolCheckFace = QtWidgets.QRadioButton(self.toolsLayout) self.toolCheckFace.setObjectName("toolCheckFace") self.toolsRadioLayout.addWidget(self.toolCheckFace) self.toolCheckBoth = QtWidgets.QRadioButton(self.toolsLayout) self.toolCheckBoth.setObjectName("toolCheckBoth") self.toolsRadioLayout.addWidget(self.toolCheckBoth) self.toolsRadioLayout.setStretch(0, 1) self.toolsRadioLayout.setStretch(1, 1) self.toolsRadioLayout.setStretch(2, 1) self.toolsRadioLayout.setStretch(3, 1) self.verticalLayout_4.addLayout(self.toolsRadioLayout) self.selectionToolsLayout = QtWidgets.QHBoxLayout() self.selectionToolsLayout.setSpacing(5) self.selectionToolsLayout.setObjectName("selectionToolsLayout") self.resetSelection = QtWidgets.QPushButton(self.toolsLayout) self.resetSelection.setObjectName("resetSelection") self.selectionToolsLayout.addWidget(self.resetSelection) self.selectAll = QtWidgets.QPushButton(self.toolsLayout) self.selectAll.setObjectName("selectAll") self.selectionToolsLayout.addWidget(self.selectAll) self.selectUnkeyed = QtWidgets.QPushButton(self.toolsLayout) self.selectUnkeyed.setObjectName("selectUnkeyed") self.selectionToolsLayout.addWidget(self.selectUnkeyed) self.invertSelection = QtWidgets.QPushButton(self.toolsLayout) self.invertSelection.setObjectName("invertSelection") self.selectionToolsLayout.addWidget(self.invertSelection) self.verticalLayout_4.addLayout(self.selectionToolsLayout) self.reflectPoseGrp = QtWidgets.QGroupBox(self.toolsLayout) self.reflectPoseGrp.setAlignment(QtCore.Qt.AlignCenter) self.reflectPoseGrp.setObjectName("reflectPoseGrp") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.reflectPoseGrp) self.horizontalLayout_2.setContentsMargins(-1, 5, -1, 7) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.flipPose = QtWidgets.QPushButton(self.reflectPoseGrp) self.flipPose.setObjectName("flipPose") self.horizontalLayout_2.addWidget(self.flipPose) self.mirrorPoseLtR = QtWidgets.QPushButton(self.reflectPoseGrp) self.mirrorPoseLtR.setObjectName("mirrorPoseLtR") self.horizontalLayout_2.addWidget(self.mirrorPoseLtR) self.mirrorPoseRtL = QtWidgets.QPushButton(self.reflectPoseGrp) self.mirrorPoseRtL.setObjectName("mirrorPoseRtL") self.horizontalLayout_2.addWidget(self.mirrorPoseRtL) self.verticalLayout_4.addWidget(self.reflectPoseGrp) self.verticalLayout.addWidget(self.toolsLayout) self.retranslateUi(RigGuiBaseQt) QtCore.QMetaObject.connectSlotsByName(RigGuiBaseQt)