Box#

class ignis.widgets.Widget.Box(*args: Any, **kwargs: Any)#

Bases: Gtk.Box.

The main layout widget.

Hint

You can use generators to set children.

Widget.Box(
    child=[Widget.Label(label=str(i)) for i in range(10)]
)
Widget.Box(
    child=[Widget.Label(label='heh'), Widget.Label(label='heh2')],
    vertical=False,
    homogeneous=False,
    spacing=52
)
property child: list[gi.repository.Gtk.Widget]#
  • optional, read-write

A list of child widgets.

property vertical: bool#
  • optional, read-write

Whether the box arranges children vertically.

Default: False.