user3033423
user3033423

Reputation: 191

How do I remove all background color in python tkinter

I think the background color is the issue, however, it might not be. I am trying to make the background of the frame and canvas image so that you can see the text before it is covered by the rounded side.

Here is an image of what I currently have:

https://i.sstatic.net/dLHbq.jpg

There are other spacing issues, but I am focusing on the color of the background needing to be transparent.

Thank you for any help.

Upvotes: -2

Views: 3163

Answers (2)

Abiollagh
Abiollagh

Reputation: 1

Using canvas maybe easier:

canvas = Canvas(width=WIDTH_OF_IMAGE, height=HEIGHT_OF_IMAGE)
img = PhotoImage(file="path/of/image")
canvas.create_image(image=img)
canvas.config(bg=BACKGROUND_COLOR, highlightthickness=0) 
# the last line here sets the bg `enter code here`to color of the window

Upvotes: 0

user3033423
user3033423

Reputation: 191

You can't...

Configure tkinter/ttk widgets with transparent backgrounds, ttk frame background colors?

After a couple hours of looking stuff up I figured out it is impossible.

Upvotes: 0

Related Questions