[WxPython] Bitmap wont find file - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [WxPython] Bitmap wont find file (/thread-19262.html) |
Bitmap wont find file - loulou - Jun-20-2019 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 :) RE: Bitmap wont find file - Larz60+ - Jun-20-2019 suggest looking at bitmap examples here: https://github.com/wxWidgets/Phoenix/tree/master/demo |