button background image transparency

Yes, in the examples I gave, I did use:



self.button.setTransparency(1)

so I had:


self.button = DirectButton(self.mobile_frame, image="models/image.tif")
self.button.setTransparency(1)

this refuses to work. Even when I enabled transparency on self.mobile_frame

Again, only way I could get it to show transparency is:


self.button = directionButton(self.moble_frame)
self.button['image'] = 'models/image.tif'
self.button.setTransparency(1)

But, this is not clickable.

… When I tried your method of re- calculating the frame size by:


self.button = directionButton(self.moble_frame)
self.button['image'] = 'models/image.tif'
self.button.setTransparency(1)
self.button.setFrameSize()

the transparency goes away again.

Does this have to do with the extra libraries I installed again? :confused: