Why does wxStaticBitmap display multiple images instead of one [Newbie alert]

THis is exacty what you have asked it to do..each call to showJpg
creates a new wxStaticBitmap on top of all the old ones. What you want
to do is create a single wxStaticBitmap, and then change the bitmap on
it with:

wxStaticBitmap.SetBitmap(bitmap)

-Chris

···

----- Original Message -----
From: Steve Cronje <scronje@sasktel.net>

The image then is displayed using a call:

       self.showJpg(curFile)

to the function showJpg:

   def showJpg(self, fName):
   #Display jpg to app
       img = wxImage(fName, wxBITMAP_TYPE_JPEG)
       imgSmall = img.Scale(200,200)
       wxStaticBitmap(self, -1, wxBitmapFromImage(imgSmall), pos =
(245, 60),
   size= (100,100))

All works as planned, except that the image displayed, being correct,
first shows, in rapid succession, each of the prior showed images
beforeit halts at the appropriate curFile.