Ok, I'm very new to this. Although I already coded in python before, I only have Pythonista for a couple of days.
My problem is the following:
I'm creating a new layout using code, not the UI editor.
I created a new button and set its action to a method I created with:
the pn is an array that I must check somehow (but that is not important).
The problem is that as soon as I add the button to the view, the get_action method gets called.
Shouldn't it only be called when the button is pressed?
Please, help me out with this.