Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Error regarding ui.TableView documentation
-
Hello.
I was testing the code while reading the ui.TableView documentation and found what I believe to be a writing error.
It is related to the arguments of the
insert_rows
anddelete_rows
methods.Here is a quote from the documentation of the problem
"Each row index in the sequence can be a 2-tuple of numbers (section, row) or a single number. If a single number is given, the first section is assumed."
The documentation shows the tuples in the order of Section,Row, but this caused an error. On the other hand, the order Row,Section did not cause an error, and the TableView display was updated properly.
Has anyone else encountered the same problem?
I am using my own DataSource class instead of the ui module's ListDataSource, so maybe my implementation is wrong.
I have checked my implementation of
tableview_number_of_sections
andtableview_number_of_rows
many times, though. -
Docs for current version are at
https://omz-software.com/pythonista/docs-3.4/py3/ios/ui.html#tableview -
@ccc
Thank you.
However, the part I quoted seems to be unchanged.