Okay, so I'm trying to make a kind of clock program, where every second it displays the next image in the sequence. I does just that. It displays the next image. But it doesn't replace the previous image, it just puts the next image on top. How would I get the program to change the image displayed and not just put a different image on top?

I would post the code that I have, but it's really messy and not very understandable.

If you make a list of the file names, then use a Throbber and initialize it with the list of filenames, then you can simply set the value of the throbber to the index of the image (this is really easy if it's simply a steady increment of indices.

another way to do it is to Destroy the image every time so the code would look like this:

if self.image:
     self.image.Destroy()
self.image = wx.StaticBitmap(image, etc. etc.)

Thank you so much. I don't know how I missed that. It's so simple.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.