'Set exclusive tabs (only one tab can be open at a time).'

def setExclusive(self, exclusive):

    if (self.__exclusive != exclusive):
        self.__exclusive = exclusive
        self.__tabActionGroup.setExclusive(exclusive)
        checked = self.__tabActionGroup.checkedAction()
        if (checked is None):
            actions_checked = [page.action for page in self.__pages if page.action.isChecked()]
            if actions_checked:
                checked = actions_checked[0]
        if (exclusive and (checked is not None)):
            for page in self.__pages:
                if ((checked != page.action) and page.action.isChecked()):
                    page.action.trigger()
