[wxPython] Images in the wxListCtrl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] Images in the wxListCtrl

Jochen "SchXfer"

Hello,
I have a problem with images in the wxListCtrl:

....

# create imagelist:
il = wxImageList(16, 16)

# add some bmp's:
il.Add(wxNoRefBitmap('bitmap1.bmp', wxBITMAP_TYPE_BMP))
il.Add(wxNoRefBitmap('bitmap2.bmp', wxBITMAP_TYPE_BMP))

# set the imagelist to an existing ListCtrl:
listctrl.SetImageList(il , wxIMAGE_LIST_SMALL)

...

But then all lines have the same image (the first I added).
How can I change a single line to show another image?

thanks in advance

Jochen Schaefer







__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users