From: Kevin A. <al...@se...> - 2004-08-07 15:39:08
|
On Aug 6, 2004, at 3:31 PM, XXXXXXXXXXX wrote: > Hello..I'm just getting into Pythoncard, so if any of my questions fall > into the categories of FAQ or RTFM, please don't hesitate to let me > know... > > I'm creating an application that mimics the output of a database report > writer, allowing the user to add extra notes that get stored along with > the "proper" data. To do this I want to display a bitmap - the sample > one > to start is a little unusual - it's a 1000 x 630 pixels x 16-bit BMP > file. When I try to use this in the resource editor as a background I > get: > > wx.core.PyAssertionError: C++ assertion "wxAssertFailure" failed in > ..\..\src\ms > w\dc.cpp(1024): invalid bitmap in wxDC::DrawBitmap > > (this isn't the full traceback, but I have that if anyone's > interested). > > My first thought is that my bitmap is just too odd - would this be > correct? I've worked around the problem by using the same bitmap file > in > an Image component (some questions on that to follow!) > > Neil There have been some wxWidget/wxPython bugs that could account for this problem, but neither of the ones I submitted below actually led to an assert. http://sourceforge.net/tracker/? func=detail&aid=885104&group_id=9863&atid=109863 http://sourceforge.net/tracker/? func=detail&aid=909546&group_id=9863&atid=109863 If you want, you can wait for wxPython 2.5.2.3 to be released or try the wxPython-dev developer preview and see if it fixes the problem. http://starship.python.net/crew/robind/wxPython/preview/2.5.2.3/ Of course, there could be a bug in PythonCard, but that sounds unlikely given the error you reported. If the image can't be handled by wxWidgets, then I would like to get it from you, but don't email it to the list. Send me an email offlist with the size of the image and we'll figure out how to transfer it so I can reproduce the problem. ka |