StringObject

class StringObject(**properties: Any)

Superclasses: Object

GtkStringObject is the type of items in a GtkStringList.

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

Constructors

class StringObject
classmethod new(string: str) StringObject

Wraps a string in an object for use with GListModel.

Parameters:

string – The string to wrap

Methods

class StringObject
get_string() str

Returns the string contained in a GtkStringObject.

Properties

class StringObject
props.string: str

The string.