Open elly-hacen opened 1 year ago
Next time, please ask questions in the Q&A section of the Discussions tab. If you find out this isn't possible through customtkinter
and you want the feature (or you find a bug), then open an issue.
One work around would be to set the border color to the background color. This isn't ideal due to theme changes and light/dark mode.
Furthermore, I'd suggest changing the title to say "Add transparency for border color attribute" or something like that. The new title makes your issue a feature request/enhancement rather than a question.
Apologies for any inconvenience caused. I am currently learning GitHub and custom tkinter, and my knowledge in these areas is limited at the moment. I will become proficient in these tools in the future. Thank you for your understanding and support.
No problem, in this case the issue is fine as you'd basically be asking for transparency to be added as a border color option. I'd suggest changing the title to make this more clear.
@elly-hacen A new solution: https://github.com/TomSchimansky/CustomTkinter/discussions/2214
Image with corner radius:
I'm using the
CTkButton
class from thecustomtkinter
library, and I would like to make the button's border color transparent. However, when I set theborder_color
attribute to "transparent", I encounter aValueError
stating that transparency is not allowed for this attribute.I would like to know if there is a way to enable transparency for the
border_color
attribute in theCTkButton
class. If there is no built-in support for transparency, I would appreciate guidance on modifying theCTkButton
class to allow transparency for the border color.Any help or insights would be greatly appreciated. Thank you!