Gtk.StringObject

g GObject.Object GObject.Object Gtk.StringObject Gtk.StringObject GObject.Object->Gtk.StringObject

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (string)

get_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

string

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.StringObject(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gtk.StringObjectClass

GtkStringObject is the type of items in a GtkStringList.

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

classmethod new(string)[source]
Parameters:

string (str) – The string to wrap

Returns:

a new GtkStringObject

Return type:

Gtk.StringObject

Wraps a string in an object for use with GListModel.

get_string()[source]
Returns:

the string of self

Return type:

str

Returns the string contained in a GtkStringObject.

Property Details

Gtk.StringObject.props.string
Name:

string

Type:

str

Default Value:

None

Flags:

READABLE

The string.