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.
Pythonista Scripter
-
@mikael, can you maybe help me out...
i try to open an Function over a Button (Tapp) but it sill nothing happens...
i have no idea what's wrong....
i try the hole day to find it....i don't can reproduce it for an example....
sry :(maybe you have an idea what it can be...
Thanks a lot!p.s. That has nothing to do with my other topic.
-
You need to post your code! Obvious answers include not setting the button action, or incorrect function signature...
-
@DavinE, with no other information, we can only guess. Maybe you are accidentally calling the function when you try to set it?
button.action = func()
And the func by default returns
None
and no action is actually set? -
I figured out Whats the issue.....
I used wait_Modal in my function....
This did‘t worked with the @script function...I do like an workaround.... without wait_Modal and it worked Perfect....
But @mikael i cant Build an example for you to maybe fix this sry :(
Thanks for your help! :)
-
@DavinE, so, if I understand correctly, you
present
ed another view withwait_modal
, and some scripter script did not work. One reason for that could be that thewait_modal
probably stops theupdate
cycle of the view at the bottom, and thus all scripter scripts as well.If so, and you want to keep the
wait_modal
, there is an easy workaround - you canstart_scripter
for the modal view, and then for the old root view again after the modal view is dismissed. -