July 4th, 2004, 12:44 AM
Im working with wxBitmapButton but for some reason the image shows but not as a button ( working under linux ) does anyone knows why?
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 )
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
Last edited by xlordt : July 4th, 2004 at 12:47 AM.