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.
Tutorial for Action.call method?
-
Hello Im having a hard time getting Action.call method to work. Is there a tutorial for Scene.Action methods (except for the help documentation) I want to call the function:
def twin_action(self,twinboss): ``` Using this line of code:
blasers.run_action(A.sequence(actions), A.call(self.twin_action())) ```
But It seems that the Action.call function does not like that the twin_action takes both self and twinboss with it.
I really dont know how to fix it, any ideas/solutions?
-
You can use functions.partial, or a lambda to create a function that takes no arguments, which is what Action.call expects.
-
Ok thanks. Will give it a try