def METHOD_NAME(self, group):
    self.currentGroup = group
    for btn, action, widget, grp in self.otherWidgets:
        if not grp == group or grp == None:
            action.setVisible(False)
        else:
            action.setVisible(True)