I get this error MessageNotUnderstood: TRMouseLeftClick>>myCircle
for this similar code:
| canvas myCircle data |
canvas := TRCanvas new.
myCircle := TREllipseShape new size: 100; color: Color white.
data := #('lion-o' 'panthro' 'tigro' 'chitara' 'munra' 'ozimandias' 'Dr Manhatan').
canvas addShape: myCircle.
myCircle when: TRMouseClick do: [:event | event myCircle remove. canvas signalUpdate ].
canvas
If I change myCircle
with shape
it works fine, but I wouldn't imagine that variable names could be so picky. Generic names should work (circle
doesn't work neither).