Replies: 1 comment
-
Sorry everyone I finally solved it, if you want to solve it too just edit the label like this: class ImageLabel(customtkinter.CTkLabel):
def __init__(self, master, width, height, *args, **kwargs):
super().__init__(master, width=width, height=height, *args, **kwargs)
image = Image.open("assets/Menu/swords.png")
self.sword_image = customtkinter.CTkImage(light_image=image, dark_image=image, size=(20, 20))
self.place(in_=master, rely=0.18, relx=0.78)
self.configure(image=self.sword_image, text="", bg_color="#000001")
pywinstyles.set_opacity(self, color="#000001") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would like to be able to put an image:
in the upper right corner to a button, but the label rightly holds a square that covers part of the border with the one of the background because I set it to "transparent", how do I get part of the border covered by the label background to show?
Beta Was this translation helpful? Give feedback.
All reactions