Margin
margin.Margin
class has the properties to set margins for all sides of the rectangle:
left
top
right
bottom
An instance of margin.Margin
can be created via constructor with values for specific sides or created with helper methods:
margin.all(value)
margin.symmetric(vertical, horizontal)
margin.only(left, top, right, bottom)
For example:
container_1.margin = margin.all(10)
container_2.margin = 20 # same as margin.all(20)
container_3.margin = margin.symmetric(vertical=10)
container_4.margin = margin.only(left=10)