Python Forum

Full Version: Bitmap wont find file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello, I have recently started to learn and code using wxPython and so far all seems to go well, however whenever I call upon wx.Bitmap() to display either an icon or an image I get the following error(the name of the file in the error varies of course):

14:48:15: can't open file 'mincol.jpg' (error 2: the system cannot find the file specified.)
14:48:15: Failed to load image from file "mincol.jpg".

The problem is that in my files I do have a file with the same name, why doesn't it work? (if it helps I am writing code on anaconda) furthermore my scrip also displayes the following error:

C++ assertion "Assert failure" failed at ..\..\src\msw\toolbar.cpp(823) in wxToolBar::Realize(): invalid tool button bitmap

I am quite sure these two errors are connected, can anyone help out?
thank you :)
suggest looking at bitmap examples here: https://github.com/wxWidgets/Phoenix/tree/master/demo