In my application I create toolbars containing png-images. On Windows everything works fine.
On Suse Linux however (not with Ubuntu), I have the following problems:
A soon as the toolbar is about to be created, I get an error message with
ca. 15 lines saying: "No image handler for type 15 defined" and a similar one with type 13.
I'm loading the png-files using wx.Bitmap(path). There are transparent pixels in the images as you can see in the one I attached to the mail.
In other parts of my application I do not have any issues with the png's.
E.g. for static bitmaps or wx.BitmapComboBox.
What could be wrong with png's and toolbars under SUSE Linux?
How old (what version number) is the wxPython on the SuSE machine?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I installed the following packages from the SUSE Community Repositories:
python-wxGTK: 2.8.6.0-1.5
wxWidgets 2.8.7-0 pm-1
Hmm... You may want to double check that an older version is not being
found before 2.8.6. You shouldn't be getting a "No image handler..."
message from anything newer than 2.5.2 or so because wxPython calls
wxInitAllImageHandlers itself now.
Hi,
I can't find the previous threads to this subject - so it is possible,
that I'm repeating the question, but...
Is there a simple way to add a bitmap to wx.ToolBar? I've got three
ChoiceBoxes, playing a role of a 'cascade filter' (the choices list in
succeeding control depends on choice made in previous one), and I found
it nice to render it as:
where the boxes are wx.Choice widgets and arrows would be some .pngs
Shall I work with wx.DC methods or is there a simpler solution?
I also wonder, whether to create a custom widget being the filter, or to
add these three wx.Choices (with additional arrows images if possible)
to ToolBar.
I installed the following packages from the SUSE Community
Repositories:
python-wxGTK: 2.8.6.0-1.5
wxWidgets 2.8.7-0 pm-1
Hmm... You may want to double check that an older version is not being
found before 2.8.6. You shouldn't be getting a "No image handler..."
message from anything newer than 2.5.2 or so because wxPython calls
wxInitAllImageHandlers itself now.
Hi,
I can't find the previous threads to this subject - so it is possible,
that I'm repeating the question, but...
Is there a simple way to add a bitmap to wx.ToolBar?
You can use a wx.StaticBitmap and AddControl.
Yes - this is the right solution. I thought that this combination would
work somehow like a button (don't ask my why!:D), but it gives me simply
a bitmap on the toolbar and that's what I need.
Thanks Robin!
BTW, the wx.Python in Action is great! Thanks for that work! Bye!