BuilderListItemFactory
Superclasses: ListItemFactory
, Object
- Constructors:
BuilderListItemFactory(**properties)
new_from_bytes(scope:Gtk.BuilderScope=None, bytes:GLib.Bytes) -> Gtk.ListItemFactory
new_from_resource(scope:Gtk.BuilderScope=None, resource_path:str) -> Gtk.ListItemFactory
Constructors
- class BuilderListItemFactory
- classmethod new_from_bytes(scope: BuilderScope | None, bytes: Bytes) ListItemFactory
Creates a new
GtkBuilderListItemFactory
that instantiates widgets usingbytes
as the data to pass toGtkBuilder
.- Parameters:
scope – A scope to use when instantiating
bytes – the
GBytes
containing the ui file to instantiate
- classmethod new_from_resource(scope: BuilderScope | None, resource_path: str) ListItemFactory
Creates a new
GtkBuilderListItemFactory
that instantiates widgets using data read from the givenresource_path
to pass toGtkBuilder
.- Parameters:
scope – A scope to use when instantiating
resource_path – valid path to a resource that contains the data
Methods
- class BuilderListItemFactory
-
- get_scope() BuilderScope | None
Gets the scope used when constructing listitems.