def __getitem__(self, idx):
        """
        Enables list-style access by index.
        """
        tabs = self._pPr.tabs
        if tabs is None:
            raise IndexError('TabStops object is empty')
        tab = tabs.tab_lst[idx]
        return TabStop(tab)
def __getitem__ ( self , idx ) : tabs = self . _pPr . tabs if tabs is None : raise IndexError ( 'TabStops object is empty' ) tab = tabs . tab_lst [ idx ] return TabStop ( tab )
Enables list-style access by index.