So hello, here I am once again. This time I am having trouble with Label having white background, even though my picture is transparent. How can I make Label background transparent, because background for the label will have gradients.
Here is simple code(Note that green background is going to have some type of gradient in the future):
from tkinter import *
from PIL import ImageTk, Image
root=Tk()
root.geometry("800x800")
canvas=Canvas(root, width=800,height=800)
canvas.create_rectangle(0,0,800,800, fill="green")
canvas.pack()
ClosePhoto = ImageTk.PhotoImage(Image.open('Close_PreHover.png'))
Close=Label(root,image=ClosePhoto)
Close.place(x=350,y=350)
root.mainloop()
I know about the canvas.create_image() method, but that won't work for me since some of the commands are binded to the label, where my image is, and few of them change the current image with one slightly different. I have tried the attributes() method with -transparent, but I don't really want a whole in the window.
Any help will be of great value, so thank you in advance!