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)]
)
Properties:
  • child (list[Gtk.Widget], optional, read-write): A list of child widgets.

  • vertical (bool, optional, read-write): Whether the box arranges children vertically.

Widget.Box(
    child=[Widget.Label(label='heh'), Widget.Label(label='heh2')],
    vertical=False,
    homogeneous=False,
    spacing=52
)