Gtk.TreePath¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gtk.TreePath(*args, **kwargs)¶
An opaque structure representing a path to a row in a model.
Deprecated since version 4.10.
- classmethod new()[source]¶
- Returns:
A newly created
GtkTreePath.- Return type:
Creates a new
GtkTreePathThis refers to a row.Deprecated since version 4.10.
- classmethod new_first()[source]¶
- Returns:
A new
GtkTreePath- Return type:
Creates a new
GtkTreePath.The string representation of this path is “0”.
Deprecated since version 4.10.
- classmethod new_from_indices(indices)[source]¶
- Parameters:
indices ([
int]) – array of indices- Returns:
A newly created
GtkTreePath- Return type:
Creates a new path with the given indices array of length.
Deprecated since version 4.10.
- classmethod new_from_string(path)[source]¶
- Parameters:
path (
str) – The string representation of a path- Returns:
A newly-created
GtkTreePath- Return type:
Gtk.TreePathorNone
Creates a new
GtkTreePathinitialized to path.path is expected to be a colon separated list of numbers. For example, the string “10:4:0” would create a path of depth 3 pointing to the 11th child of the root node, the 5th child of that 11th child, and the 1st child of that 5th child. If an invalid path string is passed in,
Noneis returned.Deprecated since version 4.10.
- append_index(index_)[source]¶
- Parameters:
index (
int) – the index
Appends a new index to a path.
As a result, the depth of the path is increased.
Deprecated since version 4.10.
- compare(b)[source]¶
- Parameters:
b (
Gtk.TreePath) – aGtkTreePathto compare with- Returns:
the relative positions of self and b
- Return type:
Compares two paths.
If self appears before b in a tree, then -1 is returned. If b appears before self, then 1 is returned. If the two nodes are equal, then 0 is returned.
Deprecated since version 4.10.
- copy()[source]¶
- Returns:
a new
GtkTreePath- Return type:
Creates a new
GtkTreePathas a copy of self.Deprecated since version 4.10.
- down()[source]¶
Moves self to point to the first child of the current path.
Deprecated since version 4.10.
- get_depth()[source]¶
- Returns:
The depth of self
- Return type:
Returns the current depth of self.
Deprecated since version 4.10.
- get_indices()[source]¶
-
Returns the current indices of self.
This is an array of integers, each representing a node in a tree. It also returns the number of elements in the array. The array should not be freed.
Deprecated since version 4.10.
- is_ancestor(descendant)[source]¶
- Parameters:
descendant (
Gtk.TreePath) – anotherGtkTreePath- Returns:
Trueif descendant is contained inside self- Return type:
Returns
Trueif descendant is a descendant of self.Deprecated since version 4.10.
- is_descendant(ancestor)[source]¶
- Parameters:
ancestor (
Gtk.TreePath) – anotherGtkTreePath- Returns:
Trueif ancestor contains self somewhere below it- Return type:
Returns
Trueif self is a descendant of ancestor.Deprecated since version 4.10.
- next()[source]¶
Moves the self to point to the next node at the current depth.
Deprecated since version 4.10.
- prepend_index(index_)[source]¶
- Parameters:
index (
int) – the index
Prepends a new index to a path.
As a result, the depth of the path is increased.
Deprecated since version 4.10.
- prev()[source]¶
-
Moves the self to point to the previous node at the current depth, if it exists.
Deprecated since version 4.10.