RE: [Boa Constr] Icons get lost
Status: Beta
Brought to you by:
riaan
From: Sasa Z. <sa...@sp...> - 2001-05-25 09:38:27
|
> > Hi, > > > > I just have tried Boa Constructor... looks quite impressive! > > > > What happens to me is that after some period of time all icons > in toolbars > > just disappear. > > > > I am using the latest version (extracted today from CVS). > > Platfrom: win98, python 2.1 > > This is a resource problem. > > The first big bug is that you are running win98 instead of an OS > (like NT or > 2000) ;) > > wxPython does not release all the GDI objects it uses (mainly > bitmaps). For > normal wxPython applications this isn't really a problem, but Boa > uses many > bitmaps and widgets. Hmm, does it mean that wxPython has some serious limitations on win98 platform ? Maybe I should raise this question on wxPython mailing list ? > In ImageSource.py change > return wx.wxBitmap(filename, wx.wxBITMAP_TYPE_BMP) > to > return wx.wxImage(filename, > wx.wxBITMAP_TYPE_BMP).ConvertToBitmap() > > and similarly for .jpg images. Changed! Works fine until now... thanks! -- Sasa |