I’m trying to change the cursor based on the user roles. ie: if they can poke it, show a hand.
For the cursor property, I have:
if app.globals.ok_to_operate(): return int(12) # cursor code for hand return int(default)
Instead of setting the cursor I get:
ClassCastException: Cannot coerce value '<function showHand at 0x8>' into type: int
Edit: ver 7.5.6
Edit 2: just created a int property and tried to bind the above to that and got the same result. So it’s not the cursor property that’s the problem.