I have a Button
with a button image but when it is in my window the background of the button clashes with the background of the window. It is a .png image but tkinter
seems to want to keep the image as a quadrilateral by adding grey space. Is there a way to make the empty space of a button become transparent so that you are just left with the button image?
I am using Python 3.4.2 on Windows 8.
.png
image issue. Try changing it to.gif
(which supports transparent backgrounds) first, and let me know if it doesn't work. – Quirk.png
imported intotkinter
fromPIL
preserves transparency. – OutcrossButton
itself is not, so the grey you're seeing is theButton
behind the image. – Outcross