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.
Multipanel
-
This script provides a way to have multiple views presented in panel mode at once and allows switching between them using tabs. I tried to patch the
ui.View.present
method to automatically redirect panel presents into Multipanel, but apparently that isn't possible becauseui.View
is a "built-in class" with read-only attributes.Instead you need to manually add views to the Multipanel - this requires commenting out the
present
call in the original script, otherwise it will replace the Multipanel. Then run the script as usual, wait until it has finished, and run this line in the interactive console:ui.multipanel.add_view(<name_of_the_view>)
where
<name_of_the_view>
is the view object you want to add. (The view needs to be accessible as a global in some way.) Repeat for as many views as you like. In most cases you need to have the option to clear globals on run disabled in Pythonista's settings, almost all scripts stop working if they lose their global environment.