def createToolButtons(self): """ Create the 'toggle' buttons for the Object browser. """ self.toggleCamera_toolButton = QtWidgets.QToolButton(self) self.toggleCamera_toolButton.setText('CAM') self.toggleCamera_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleCamera_toolButton) self.toggleMarker_toolButton = QtWidgets.QToolButton(self) self.toggleMarker_toolButton.setText('MKR') self.toggleMarker_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleMarker_toolButton) self.toggleBundle_toolButton = QtWidgets.QToolButton(self) self.toggleBundle_toolButton.setText('BND') self.toggleBundle_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleBundle_toolButton) self.toggleCamera_toolButton.clicked.connect(self.toggleCameraClicked) self.toggleMarker_toolButton.clicked.connect(self.toggleMarkerClicked) self.toggleBundle_toolButton.clicked.connect(self.toggleBundleClicked) return
def createToolButtons(self): """ Create the 'toggle' buttons for the Attribute browser. """ self.toggleAnimated_toolButton = QtWidgets.QToolButton(self) self.toggleAnimated_toolButton.setText('ANM') self.toggleAnimated_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleAnimated_toolButton) self.toggleStatic_toolButton = QtWidgets.QToolButton(self) self.toggleStatic_toolButton.setText('STC') self.toggleStatic_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleStatic_toolButton) self.toggleLocked_toolButton = QtWidgets.QToolButton(self) self.toggleLocked_toolButton.setText('LCK') self.toggleLocked_toolButton.setCheckable(True) self.ui.toggleButtons_layout.addWidget(self.toggleLocked_toolButton) self.toggleAnimated_toolButton.clicked.connect( self.toggleAnimatedClicked) self.toggleStatic_toolButton.clicked.connect(self.toggleStaticClicked) self.toggleLocked_toolButton.clicked.connect(self.toggleLockedClicked) return