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.
Outliner with drag/drop reordering - part 2
-
@ihf thé date is blank if not yet set, and the button at right of the title allows you to sort the items in ascending/descending/no order
-
@cvp I expected that the dates would be sorted. For example why is item 3.2 after 3.1?
-
@ihf did you tap the sort button 🔽?
-
@cvp I was certain I had but I went back to do it again just to be sure before I answered your question. Instead of confirming, I got the following error:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 1146, in layout ws,hs = self.get_screen_size() File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/outline.py", line 1137, in get_screen_size app = UIApplication.sharedApplication().keyWindow() File "/var/containers/Bundle/Application/8778D1CF-1C08-48BA-9714-9D2CFE524EA1/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in __call__ ordered_args = list(args) + [kwargs[key] for key in kwarg_order] TypeError: 'builtin_function_or_method' object is not iterable ``` I don’t think this has anything to do with the sorting question, since it appears even after I force quit Pythonista and start again.
-
@cvp I got it to run again and , yes the display I posted is after hitting the sort button
-
@ihf One of the usual Pythonista crashes for which, I think, my script is not responsible. I'm sorry for you and I would understand that you stop to use this program. It uses almost all internal functionalites of Pythonista, is big, uses a lot of memory, and crashes too much in not reproducible ways.
-
-
@ihf did
yes the display I posted is after hitting the sort button
I don't think so, the sort button changes from 🔽 to 🔼 after you to it.
-
@cvp yes, it cycles thru up, down, and numeric.
-
@ihf yes, but the image you posted shows the button as 🔽, that will say the next tap will give a descending sort, actual is no sort
-
@cvp OK, so the button that shows is not the way it is sorted, but how it would be sorted if you hit the button? Not what I would have expected. However this has just surfaced a different bug. I went back and hit Expand All and the top line of icons is (mostly) gone.
-
@cvp but the sort does work (once I realize that the button is showing what will be not what is).
-
@cvp it happened a few times, but now I can't reproduce it reliably so I guess it is not worth spending time on.
-
@ihf said
the sort does work (once I realize that the button is showing what will be not what is).
Do you prefer that it should show what the sort is?
-
@cvp Yes, I would prefer that but now that I know what it is, I could live with it.
-
@ihf V01.23 and outline.versions with
Version V01.23 - icon of dates sort button now shows the actual sort order, not the order if button would be tapped
-
@cvp If my outline is collapsed and I select view by completion date, and then select sort button to change to sort down, the display gets messed up in that lines are overlapping.
-
-
@ihf said
If my outline is collapsed and I select view by completion date, and then select sort button to change to sort down, the display gets messed up in that lines are overlapping.
It seems that lines after sort keep height of initial order, I don't understand why because I recompute their height in tableview_cell_for_row delegate
Édit: but I guess that ObjectiveC code of TableView also calls it again. Very annoying.
-
@cvp I am glad to see that you are maintaining a sense of humor. (or at least I hope you are).