Is it possible to have a corner radius on a Label's bg_color? #214
-
I'd like to round the corners of this label, but the corner_radius argument is not working in this case. Here's the label with a long string of text and a light-grey background color. Here's the code for the label you see above. Here's what it looks like with a corner_radius of 40. Note how it only applies this radius directly to the invisible bounding box of the text itself, not the entire label filling the grid cell. This essentially just severs some of the text. Is there any way to apply a border-radius to the bg_color? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hey ! Had the same issue the other day, what you can try to do is just not to use a label, use the "canvas.create_..." function, it can work with arc or oval, maybe rectangle but i'm not sure. You have to make the text separately though. |
Beta Was this translation helpful? Give feedback.
-
You have to use fg_color for the main color of the label, bg_color is the color behind the label and you don't have to set it manually: |
Beta Was this translation helpful? Give feedback.
Hey ! Had the same issue the other day, what you can try to do is just not to use a label, use the "canvas.create_..." function, it can work with arc or oval, maybe rectangle but i'm not sure. You have to make the text separately though.