July 3rd, 2004, 11:44 PM
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 3rd, 2004 at 11:47 PM.