``` def setupNav(parent): parent.probetabGroup.buttonClicked.connect(partial(mainChangePage, parent)) def mainChangePage(parent, button): parent.mainStkWidget.setCurrentIndex(button.property('page')) if button.property('buttonName'): getattr(parent, button.property('buttonName')).setChecked(True)