views:

13

answers:

0

It is possible to add dinamically images to wx.StaticBitmap? Now I can only add one image and only change existing image. I want to display next image after new line or sth else.

My actual code:

self.images = wx.StaticBitmap(self, id=-1, pos=wx.DefaultPosition,
                            size=(-1,100),
                            style= wx.SUNKEN_BORDER)
data = open(imagename,"rb").read()
stream = cStringIO.StringIO(data)
image = wx.ImageFromStream(stream)
image.Rescale(77,57)
bmp = wx.BitmapFromImage( image)
self.images.SetBitmap(bmp)