Date: Mon, 21 Mar 2005 20:28:14 +0100
To: <wxPython-users@lists.wxwidgets.org>
From: "Vincent Wehren" <vwehren@home.nl>
Subject: Problem with adding img2py'ed ico file to wx.ImageListHi,
I have a set of *.ico files that I have img2py'ed into a file called =
icons, which works great in all places
Except when adding these to a wx.ImageList (called `il` in the =
following).
<snipped>
Date: Mon, 21 Mar 2005 12:30:05 -0800
To: wxPython-users@lists.wxwidgets.org
From: Robin Dunn <robin@alldunn.com>
Subject: Re: [wxPython-users] Problem with adding img2py'ed
ico file to wx.ImageList
Message-ID: <423F2ECD.7050702@alldunn.com>Vincent Wehren wrote:
> Hi,
>
> I have a set of *.ico files that I have img2py'ed into a
file called icons, which works great in all places
> Except when adding these to a wx.ImageList (called `il` in
the following).
Robin wrote :
Try checking bmp.Ok() to help narrow down the problem.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!------------------------------
Hi Robin,
Oddly, bmp.Ok() returns True.
However,
assert wx.Bitmap("settings.ico"
, type=wx.BITMAP_TYPE_ICO) == icons.getSettingsBitmap()
raises an 'AssertionError'.
(icons.py freshly generated, no old *.pyc or something lying about)
Just to make sure, I tried without compression (-u), but that didn't matter.
I've tried saving the icons as BMP's and img2py'ing that. Than it seems to work
just fine, however they no longer have transparent backgrounds then
(maybe that can be helped?).
Regards
ยทยทยท
--
Vincent Wehren