Skip to content

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