By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

How do I use png files that have a transparent bg in a wx.bitmapbutton control?

P: n/a
I asked a simular question a few days ago but it wasnt worded very well.

Im wondering how I can use PNG files that have transparent backgrounds in a wx.bitmapbutton control. More specifically how to get them to load into the control and keep their transparent background.

I have been able to load them into a wx.bitmapbutton, but they appear to have a background. Im not sure if this is part of the background from the wx.bitmapbutton itself or if it cannot load the alpha channel from the png.

I checked my PNG's in a pygame tutorial and they work as alpha layer images in pygame. So I ruled out the png files as being the source of the problem. Which leads me back to the wx.bitmapbutton contol itself or is it something in boa constructor, the program that im using, idk...

Any help is much appreciated I will check back regularly for updates.

Thank you for your time,
Nov 20 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.