def _get_next_perspective(self, window):

        if window.active_perspective is window.perspectives[0]:
            index = 1

        else:
            index = 0

        return window.perspectives[index]

#### EOF #####################################################################
.. versionadded:: 2015.8.0
dataset/ETHPy150Open enthought/pyface/pyface/workbench/action/delete_user_perspective_action.py/DeleteUserPerspectiveAction._get_next_perspective--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/win_status.py/uptime