Grid#

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

Bases: Gtk.Grid

A container that arranges its child widgets in rows and columns.

Widget.Grid(
    child=[Widget.Button(label=str(i)), for i in range(100)],
    column_num=3
)
Widget.Grid(
    child=[Widget.Button(label=str(i)), for i in range(100)],
    row_num=3
)
property column_num: int#
  • optional, read-write

The number of columns.

property row_num: int#
  • optional, read-write

The number of rows. This will not take effect if column_num is specified.

property child: list[gi.repository.Gtk.Widget]#
  • optional, read-write

A list of child widgets.