Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: