Closed jrmhaig closed 4 months ago
You need to use ship.image = 'ship1' ship.image is a property, not a function
Thanks @mrjonesmc
This is very helpful and demonstrates my lack of knowledge of Python decorators.
This is not an issue, just my misunderstanding.
When I try to use the
image
setter on an Actor I get the errorTypeError: 'str' object is not callable
. Here is a basic example that shows this;Am I using this incorrectly? I'm afraid I am not primarily a Python programmer so it is possible I have misunderstood.