Enables list-style access by index.
(self, idx)
| 29 | self._pPr.remove(tabs) |
| 30 | |
| 31 | def __getitem__(self, idx): |
| 32 | """Enables list-style access by index.""" |
| 33 | tabs = self._pPr.tabs |
| 34 | if tabs is None: |
| 35 | raise IndexError("TabStops object is empty") |
| 36 | tab = tabs.tab_lst[idx] |
| 37 | return TabStop(tab) |
| 38 | |
| 39 | def __iter__(self): |
| 40 | """Generate a TabStop object for each of the w:tab elements, in XML document |