Gda.SetSource

Fields

Name

Type

Access

Description

data_model

Gda.DataModel

r/w

Can’t be None

nodes

[Gda.SetNode]

r/w

list of Gda.SetNode for which source_model == data_model

Methods

class

new (model)

add_node (node)

copy ()

free ()

get_data_model ()

get_n_nodes ()

get_nodes ()

set_data_model (model)

Details

class Gda.SetSource

Since 5.2, you must consider this struct as opaque. Any access to its internal must use public API. Don’t try to use Gda.SetSource.free on a struct that was created manually.

classmethod new(model)
Parameters:

model (Gda.DataModel) – a Gda.DataModel

Returns:

a new Gda.SetSource struct.

Return type:

Gda.SetSource

Creates a new Gda.SetSource struct.

New in version 5.2.

add_node(node)
Parameters:

node (Gda.SetNode) – a Gda.SetNode to add

Set a Gda.DataModel

New in version 5.2.

copy()
Returns:

a new Gda.SetSource

Return type:

Gda.SetSource

Copy constructor.

New in version 5.2.

free()

Frees any resources taken by self struct. If self is None, then nothing happens.

New in version 5.2.

get_data_model()
Returns:

a Gda.DataModel used by self

Return type:

Gda.DataModel

New in version 5.2.

get_n_nodes()
Returns:

number of nodes in sg.

Return type:

int

New in version 5.2.

get_nodes()
Returns:

a list of Gda.SetNode structs

Return type:

[Gda.SetNode]

New in version 5.2.

set_data_model(model)
Parameters:

model (Gda.DataModel) – a Gda.DataModel

Set a Gda.DataModel

New in version 5.2.