How can I create a tkinter python object to be 50% opacity?

56 views Asked by At

I tried the parameter "opacity=.5" and "alpha=.5"

Another problem is that fill="ff00ff00" also doesn't work.

I also used the tkinter canvas.

I also saw.some other similar questions, but they don't answer my specific question.

Nothing really seems to work, so could you help me please?

1

There are 1 answers

1
An0nymous On

Assuming the object is named "button", try this:

button.attributes("-alpha", 0.5)