Open Betrayal5414 opened 3 months ago
can we fill a button entirely with an image?
# Images self.IMG = ctk.CTkImage(light_image=Image.open("images/btn-1.png"), size=(140, 40)) # Buttons self.btn_p1 = ctk.CTkButton(self, image=self.IMG, text="", width=140, height=40) self.btn_p2 = ctk.CTkButton(self, image=self.IMG, text="", width=140, height=40) self.btn_p3 = ctk.CTkButton(self, image=self.IMG, text="", width=140, height=40)
Exemple :
My image doesn't completely fill the button. We see it when we the button is hover
Either use CTkLabel or set hover=False to CTkButton constructor.
CTkLabel
hover=False
CTkButton
can we fill a button entirely with an image?
Exemple :
My image doesn't completely fill the button. We see it when we the button is hover