Python Forum
[WxPython] Bitmap wont find file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WxPython] Bitmap wont find file
#1
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 :)
Reply
#2
suggest looking at bitmap examples here: https://github.com/wxWidgets/Phoenix/tree/master/demo
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] _tkinter.TclError: bitmap "Icon.gif" not defined djwilson0495 2 12,937 Aug-05-2020, 02:27 PM
Last Post: wuf
  Deleting White from Bitmap Anysja 8 5,499 Aug-14-2018, 04:04 PM
Last Post: Anysja

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020