Gtk.BuilderListItemFactory¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.BuilderListItemFactory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkBuilderListItemFactory
is aGtkListItemFactory
that creates widgets by instantiatingGtkBuilder
UI templates.The templates must be extending
GtkListItem
, and typically use ``GtkExpression``s to obtain data from the items in the model.Example: ```xml
0
Gtk.ListItem
</lookup> </lookup> </binding> </object>/template
```
- classmethod new_from_bytes(scope, bytes)[source]¶
- Parameters:
scope (
Gtk.BuilderScope
orNone
) – A scope to use when instantiatingbytes (
GLib.Bytes
) – theGBytes
containing the ui file to instantiate
- Returns:
a new
GtkBuilderListItemFactory
- Return type:
Creates a new
GtkBuilderListItemFactory
that instantiates widgets using bytes as the data to pass toGtkBuilder
.
- classmethod new_from_resource(scope, resource_path)[source]¶
- Parameters:
scope (
Gtk.BuilderScope
orNone
) – A scope to use when instantiatingresource_path (
str
) – valid path to a resource that contains the data
- Returns:
a new
GtkBuilderListItemFactory
- Return type:
Creates a new
GtkBuilderListItemFactory
that instantiates widgets using data read from the given resource_path to pass toGtkBuilder
.
- get_bytes()[source]¶
- Returns:
The
GtkBuilder
data- Return type:
Gets the data used as the
GtkBuilder
UI template for constructing listitems.
Property Details¶
- Gtk.BuilderListItemFactory.props.bytes¶
- Name:
bytes
- Type:
- Default Value:
- Flags:
GBytes
containing the UI definition.
- Gtk.BuilderListItemFactory.props.resource¶
- Name:
resource
- Type:
- Default Value:
- Flags:
Path of the resource containing the UI definition.
- Gtk.BuilderListItemFactory.props.scope¶
- Name:
scope
- Type:
- Default Value:
- Flags:
GtkBuilderScope
to use when instantiating listitems