Re: wx.Image: Couldn't add an image to the image list.

2005-01-26 Thread Kartic
Laszlo, If you are using PIL just for scaling, you can do away with PIL. Even if you do other things with PIL, you can use the Rescale method of the wx.Image instance to resize. Here is the code (adapted from the Demo): data = open('C:/TEMP/test.bmp'), "rb").read() stream = cStringIO.StringIO(dat

wx.Image: Couldn't add an image to the image list.

2005-01-26 Thread Laszlo Zsolt Nagy
I would like to load image from a directory right into an image list. I wrote a simple library that loads the images in the directory and resizes them as needed before adding to the wx.ImageList. This is not the same code but some snippets. I resize the image this way (using Python Imaging Library)