:right-sidebar: True StringObject =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: StringObject(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: StringObject(**properties) new(string:str) -> Gtk.StringObject 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.