Skip to content

How can I round not only the corners of the button but also the corners of the "background behind the button"? #1441

Answered by Akascape
oneLEAM asked this question in Q&A
Discussion options

You must be logged in to vote

@oneLEAM
All the ctk widgets are actually square in shape but the corner portions are camouflaged in such a way that it appears to be round in the frame.
(In short, bg_color of button is matched with the fg_color of frame)

In your case, you are using 2 frames overlapped but the button can only have 1 bg color by default.

You have to manually adjust the four corner colors adding background_corner_colors=(color1, color2, color3, color4) in the button parameter.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@oneLEAM
Comment options

Answer selected by oneLEAM
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants