From: Andy T. <an...@ha...> - 2004-08-07 12:35:37
|
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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users It's a bit tricky to figure out what's going on without your code. Perhaps you could show us the method where you are loading up the bitmap. Even better, a version of the minimal sample including your code and which shows the error would help the list subscribers to figure out what may be going wrong. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |