throbber images and transparency

I found a good throbber animation in a free icon set - it’s just a clone of the generic “segmented wheel” that Macs use (little gray/black tickmarks that circle around). However, it’s completely transparent, including those pixels which are filled but not at full saturation. Since the throbber widget leaves previous images in place, this means that as the throbber runs, after one cycle every tick mark is solid black and the animation effect is lost. Is there any way to change this behavior, or am I stuck using opaque images? (Alternately, is there a way to manipulate a large number of images to remove the transparency from filled pixels but not empty ones?)

Nathaniel Echols wrote:

I found a good throbber animation in a free icon set - it's just a clone of the generic "segmented wheel" that Macs use (little gray/black tickmarks that circle around). However, it's completely transparent, including those pixels which are filled but not at full saturation. Since the throbber widget leaves previous images in place, this means that as the throbber runs, after one cycle every tick mark is solid black and the animation effect is lost. Is there any way to change this behavior, or am I stuck using opaque images? (Alternately, is there a way to manipulate a large number of images to remove the transparency from filled pixels but not empty ones?)

You can probably take care of this by overriding the Draw method in a derived class, and then drawing the bitmaps however you want. See wx/lib/throbber.py for details.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!