Wx.floatcanvas blog or forums

DrawObject.Bind does a heck of a lot more than simply binding the event type to a handler. (Like creating and/or updating bitmaps to be used to aid with hit testing, creating a pen and brush, etc.) So it’s not too surprising that in some cases it could get… um, I guess congested would be a good term. Especially when many of those operations will require a round trip to the X-server like on a Linux build.

OTOH, it would probably be possible to streamline that, or perhaps defer some of it until it is actually needed, and end up with some performance gains, if somebody felt like putting some effort into it.

BTW,

Pasting is fine (and preferred by some) as long as the code is enclosed in triple backticks. Indents should not get lost that way. I edit messages on discuss.wxpython.org and add in the backticks when they come in without them, but that doesn’t help email users when the message has already been sent.

BTW2, @DavidW have you seen what your messages with the leading paragraph indents look like on the website? :wink: