Im working with wxBitmapButton but for some reason the image shows but not as a button ( working under linux ) does anyone knows why?
I even looked at the demo version that comes witht he demo package but i got alot of errrors.. but i have seen other examples.. and they seem to be the same as what i have on top.. so im kinda confused abit
img = wxImage('cd.png', wxBITMAP_TYPE_PNG).ConvertToBitmap( )
w = img.GetWidth( )
h = img.GetHeight( )
bnt = wxBitmapButton(self, -1, img, (20, 20), (w, h))
EVT_BUTTON(self, BUTTON_ID, self.OnClick )