I'm trying to create a wxImageList for use in a number of classes.
When I create it in a wxListCtrl class and adding the images as
per the demo works fine. When I move the wxImageList creation
outside the class, the Add image fails and warns about no
handler for image type. Sadly wxInitAllImageHandlers causes a
Seg Fault.
Any suggestions?
Nigel
···
--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov
I'm trying to create a wxImageList for use in a number of classes.
When I create it in a wxListCtrl class and adding the images as
per the demo works fine. When I move the wxImageList creation
outside the class, the Add image fails and warns about no handler for image type. Sadly wxInitAllImageHandlers causes a
Seg Fault.
Sounds like you have a bigger problem than just wxImageList. Can you reproduce it in a small sample app?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
#----------------------------------------------------------------------
# This file was generated by C:\PROJECTS\wx\wxPython\demo\encode_bitmaps.py
#
from wxPython.wx import wxImageFromStream, wxBitmapFromImage
from wxPython.wx import wxEmptyIcon
import cStringIO
On Tue, 07 Oct 2003 13:02:41 -0700 Robin Dunn <robin@alldunn.com> wrote:
Nigel Moriarty wrote:
> I'm trying to create a wxImageList for use in a number of classes.
> When I create it in a wxListCtrl class and adding the images as
> per the demo works fine. When I move the wxImageList creation
> outside the class, the Add image fails and warns about no
> handler for image type. Sadly wxInitAllImageHandlers causes a
> Seg Fault.
Sounds like you have a bigger problem than just wxImageList. Can you
reproduce it in a small sample app?
--
Nigel W. Moriarty
Building 4R0230
Physical Biosciences Division
Lawrence Berkeley National Laboratory
Berkeley, CA 94720-8235
Phone : 510-486-5709
Fax : 510-486-5909
Email : NWMoriarty@LBL.gov
Web : CCI.LBL.gov