Python trouble

We are having trouble coding and it says theres an error in the code. Can somone look to see if we have and issue.


Thanks
Crazy Aces

I think the problem here is that “released” is a callback. It does not provide a Boolean, it runs the function inside the parentheses when, in this case, the button is released. That is why it is saying no value for callback in the error message.

I would think pressing and released would be a If, elseif and else code, or at least a if else.