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.
Can I still build editor tools with sidebars or popovers?
-
Trying to create a regex find/replace tool for the editor Looked at editmenu for staters, but when execute, it errors with
self.present('sidebar')
ValueError: View is already being presented or animation is in progress
It this no longer possible in ios 10 pythonista?
-
Yes, sidebar was removed in 2.0/3.0.
Popover still works, but sidebar and menubar were removed.With objc, we do now have a lot more flexibility, and can basically hack the interface in new ways.
i created a simple replacement for sidebar:
https://forum.omz-software.com/topic/3543/share-in-work-side-bar-replacementAlso, my matplotlib backend has a "shield free" floating window class, which can live in the editor, console, or root.
https://forum.omz-software.com/topic/3379/share-interactive-matplotlib-backendOr, you can add buttons to the pythonista menu directly:
https://github.com/jsbain/objc_hacks/blob/master/apphack.py -
@JonB , I like the add button to menu script. I don't remember ever seeing this one.
With beta 301010, it works when run under 2.7, but not as 3.5. The
tb=get_toolbar(main_view) function is returning None. Would be great to have a update if it's a simple fix -
Or You can use panel in "sidebar" mode. See the discussions here.
https://forum.omz-software.com/topic/2692/ui-views-can-still-be-presented-in-sidebar-mode-in-pythonista-2-0-sort-of
https://forum.omz-software.com/topic/3538/a-request-for-jonb