Way to make Tkinter button the same colour as its window?
So say i had a picture as the Tkinter window background and i had button on the window . Could i have the buttons the same coulor as the spot on the picture that the button is currently on? 开发者_运维知识库So in someway make the buttons clear.
If you don't mind non-native buttons, you can make a transparent button image and save it as a PNG. Then use PIL to display it (in a canvas). This method requires you to manually program the button callbacks (e.g. changing the button image to a depressed one when the button is pressed).
No, tkinter doesn't support transparency at the individual widget level.
精彩评论