I was having an issue setting TableView.selected_rows. I discovered that my problem was assignment doesn't replace the current list, but adds to it. So setting it to [] will not clear the current selections and adding say [(0, 1)] will simply add row 1 to the already selected rows.
The only way I could find to clear the current selections to [] was calling TableView.reload_data() before setting selected_rows.
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.
Latest posts made by Gcarver
-
RE: How to select all items in a table view? (iOS python ui on Pythonista)
-
RE: Pythonista 1.6 Beta #160020
Ui.convert_point(touch.location, fmview, toview) no longer works. Touch.location is not a tuple and also does not have an as_tuple function as the documentation states.
I had to manually convert to a tuple grabbing the x and y. Touch.location now seems to be a subclass of vector2. -
RE: MicroPython and PyBoard?
I have a PyBoard and I really enjoy it. It does have some serious memory and speed limitations. I actually had to resort to writing some drivers for some of my hardware in C for both memory and performance reasons. That was not super easy either.
I got it to work with a $5 wifi chip so I can use it wirelessly as well.