Re: [Boa Constr] Icons get lost
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2001-05-24 12:08:18
|
Hi Sasa, ----- Original Message ----- From: "Sasa Zivkov" <sa...@sp...> To: <boa...@li...> Sent: Wednesday, May 23, 2001 6:21 PM Subject: [Boa Constr] Icons get lost > 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. 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. This uses less resources. The only other suggestion is to have as few other applications open as possible when running Boa. Riaan > > -- Sasa > > _______________________________________________ > Boa-constructor-users mailing list > Boa...@li... > http://lists.sourceforge.net/lists/listinfo/boa-constructor-users > |