``` from functools import partial def setupNav(parent): parent.mainNavBtns.buttonClicked.connect(partial(mainChangePage, parent)) parent.sideNavBtns.buttonClicked.connect(partial(sideChangePage, parent)) parent.droNavBtns.buttonClicked.connect(partial(droChangePage, parent)) parent.holeNavBtns.buttonClicked.connect(partial(holeOpsChangePage, parent)) def mainChangePage(parent, button): parent.mainStkWidget.setCurrentIndex(button.property('page')) if button.property('buttonName'): getattr(parent, button.property('buttonName')).setChecked(True)