:right-sidebar: True Bin =================================================================== .. currentmodule:: gi.repository.Adw .. class:: Bin(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` A widget with one child. .. image:: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/bin.png The ``AdwBin`` widget has only one child, set with the :obj:`~gi.repository.Adw.Bin.props.child` property. It is useful for deriving subclasses, since it provides common code needed for handling a single child widget. Constructors ------------ .. rst-class:: interim-class .. class:: Bin :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwBin``\. Methods ------- .. rst-class:: interim-class .. class:: Bin :no-index: .. method:: get_child() -> ~gi.repository.Gtk.Widget | None Gets the child widget of ``self``\. .. method:: set_child(child: ~gi.repository.Gtk.Widget | None = None) -> None Sets the child widget of ``self``\. :param child: the child widget Properties ---------- .. rst-class:: interim-class .. class:: Bin :no-index: .. attribute:: props.child :type: ~gi.repository.Gtk.Widget The type of the None singleton. Fields ------ .. rst-class:: interim-class .. class:: Bin :no-index: .. attribute:: parent_instance