:right-sidebar: True SignalListItemFactory =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: SignalListItemFactory(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.ListItemFactory`, :class:`~gi.repository.GObject.Object` :Constructors: :: SignalListItemFactory(**properties) new() -> Gtk.ListItemFactory Constructors ------------ .. rst-class:: interim-class .. class:: SignalListItemFactory :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.ListItemFactory Creates a new ``GtkSignalListItemFactory``. You need to connect signal handlers before you use it. Signals ------- .. rst-class:: interim-class .. class:: SignalListItemFactory.signals :no-index: .. method:: bind(object: ~gi.repository.GObject.Object) -> None Emitted when an object has been bound, for example when a new :obj:`~gi.repository.Gtk.ListItem.props.item` has been set on a listitem and should be bound for use. After this signal was emitted, the object might be shown in a :obj:`~gi.repository.Gtk.ListView` or other widget. The :obj:`~gi.repository.Gtk.SignalListItemFactory.signals.unbind` signal is the opposite of this signal and can be used to undo everything done in this signal. :param object: The ``GObject`` to bind .. method:: setup(object: ~gi.repository.GObject.Object) -> None Emitted when a new listitem has been created and needs to be setup for use. It is the first signal emitted for every listitem. The :obj:`~gi.repository.Gtk.SignalListItemFactory.signals.teardown` signal is the opposite of this signal and can be used to undo everything done in this signal. :param object: The ``GObject`` to set up .. method:: teardown(object: ~gi.repository.GObject.Object) -> None Emitted when an object is about to be destroyed. It is the last signal ever emitted for this ``object``. This signal is the opposite of the :obj:`~gi.repository.Gtk.SignalListItemFactory.signals.setup` signal and should be used to undo everything done in that signal. :param object: The ``GObject`` to tear down .. method:: unbind(object: ~gi.repository.GObject.Object) -> None Emitted when an object has been unbound from its item, for example when a listitem was removed from use in a list widget and its :obj:`~gi.repository.Gtk.ListItem.props.item` is about to be unset. This signal is the opposite of the :obj:`~gi.repository.Gtk.SignalListItemFactory.signals.bind` signal and should be used to undo everything done in that signal. :param object: The ``GObject`` to unbind