By default, each item in a GridLayout will take up one row and one column. This can be changed by setting the row_span and column_span properties of the item.
.. literalinclude:: ../tests/gallery/app.py
.. literalinclude:: ../tests/gallery/views/app.py
:start-after: grid row and column span example
:end-before: grid row and column span example end
:dedent:
@@ -25,7 +25,7 @@ GridLayout with whitespace
--------------------------
Trying this with HBoxLayout or VBoxLayout will produce unpredictable behavior.