Logo Search packages:      
Sourcecode: whyteboard version File versions  Download package

def whyteboard::lib::flatnotebook::PageContainer::AdvanceSelection (   self,
  forward = True 
)
Cycles through the tabs.

:param `forward`: if ``True``, the selection is advanced in ascending order
 (to the right), otherwise the selection is advanced in descending order.

:note: The call to this function generates the page changing events.

Definition at line 5608 of file flatnotebook.py.

                                            :
        """
        Cycles through the tabs.

        :param `forward`: if ``True``, the selection is advanced in ascending order
         (to the right), otherwise the selection is advanced in descending order.

        :note: The call to this function generates the page changing events.
        """

        nSel = self.GetSelection()

        if nSel < 0:
            return

        nMax = self.GetPageCount() - 1

        if forward:
            newSelection = (nSel == nMax and [0] or [nSel + 1])[0]
        else:
            newSelection = (nSel == 0 and [nMax] or [nSel - 1])[0]

        if not self._pagesInfoVec[newSelection].GetEnabled():
            return

        self.FireEvent(newSelection)



Generated by  Doxygen 1.6.0   Back to index