Maybe you could try something like,
try:
callback(event, object)
except TypeError:
callback(object)
This means that if the callback function takes two arguments you would
get the event and the object, otherwise you would just get the object.
This is less likely to break code while still giving the option. It will
break some code in subtle ways, which may be worse.
> 3) Really change things. It's been suggested that rather than binding to
> DrawObjects, we should just catch the event on the Canvas, and call
> Canvas.WhatObjectsAreHit() method or something. That gives the
> programmer a bit more flexibility and control, but takes away the
> convenience of simply binding a callback to an event on an object. Of
> course, we could probably add this, without removing the existing system.
I don't see how this would be helpful at all. The current method almost works.
Tim Ansell
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas