scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.47k stars 530 forks source link

Cell in Table has no attributes including row_idx & col_idx #849

Open Invisibleface opened 2 years ago

Invisibleface commented 2 years ago

In official document, row_idx & col_idx attributes are mentioned in A few snippets that might be handy section. But unfortunately, when I tried to use the attribute, the python only reported the AttributeError.

I found a slution in below webpage. Would you mind fixing the bug? Because I need to share my code to other team members, its not feasible to modify tables.py _Cell object file on everyones PC.

JoseAngelGarciaSanchez commented 2 years ago

thank you very very much for the link to the solution.

yeyeric commented 2 months ago

same here, did you find a solution ?

JoseAngelGarciaSanchez commented 2 months ago

same here, did you find a solution ?

You have the solution here: https://stackoom.com/en/question/4K91S

MartinPacker commented 2 months ago

I get a 403 on both these links - which are, in fact, the same. HTTP response code 403 is "forbidden".

JoseAngelGarciaSanchez commented 2 months ago

I have defined it like here in a script:

`def row_idx(self): return self._tc.row_idx

def col_idx(self): return self._tc.col_idx`

Don't hesitate to ask me if it doesn't work