TreeSelection.getSelected

Sets iter to the currently selected node, if selection is set to gtk.types.SelectionMode.Single or gtk.types.SelectionMode.Browse.

The iter argument may be null if you just want to test if selection has any selected nodes.

The model argument is filled with the current model as a convenience.

This function will not work with gtk.types.SelectionMode.Multiple. See gtk.tree_selection.TreeSelection.getSelectedRows instead.

class TreeSelection
bool
getSelected

Parameters

model gtk.tree_model.TreeModel

the model

iter gtk.tree_iter.TreeIter

the iterator for the selected row

Return Value

Type: bool

true, if there is a selected node.