:right-sidebar: True StringObject =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: StringObject(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` ``GtkStringObject`` is the type of items in a ``GtkStringList``. A ``GtkStringObject`` is a wrapper around a `const char*`; it has a :obj:`~gi.repository.Gtk.StringObject.props.string` property that can be used for property bindings and expressions. Constructors ------------ .. rst-class:: interim-class .. class:: StringObject :no-index: .. classmethod:: new(string: str) -> ~gi.repository.Gtk.StringObject Wraps a string in an object for use with ``GListModel``. :param string: The string to wrap Methods ------- .. rst-class:: interim-class .. class:: StringObject :no-index: .. method:: get_string() -> str Returns the string contained in a ``GtkStringObject``. Properties ---------- .. rst-class:: interim-class .. class:: StringObject :no-index: .. attribute:: props.string :type: str The string.