Debugging widget sizes

Mathieu Virbel edited this page Sep 27, 2013 · 1 revision

If you want to visualize the boundaries of your widgets inside a Layout, just add the following canvas.before with the color of your choice.

Example label


Label:
    text: 'some text'
    size_hint_y: .1
    canvas.before:
        Color:
            rgba: 1., 0., 0., .3
        Rectangle:
            pos: self.pos
            size: self.size
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.