Skip to content

Gtk.StringObject

class — extends GObject.Object

The type of items in a GtkStringList.

A GtkStringObject is a wrapper around a const char*; it has a StringObject.string property that can be used for property bindings and expressions.

Constructors

new

@classmethod
def new(cls, string: str) -> StringObject

Wraps a string in an object for use with GListModel.

Parameters:

  • string — The string to wrap

Methods

get_string

def get_string(self) -> str

Returns the string contained in a GtkStringObject.

Properties

string

string: str  # read-only

The string.