All methods return a TreeIter that points at the newly inserted row.
Todos los métodos devuelven un iterador TreeIter que apunta a la fila recién insertada.
The difficulty arises from the need to use a TreeIter that may become invalid as the result of the operation.
La dificultad surge de la necesidad de utilizar un iterador TreeIter que puede no ser ya válido como resultado de la operación que se realice.
The other two methods take a TreeIter (sibling) that references a row in the ListStore to insert the row before or after.
Los otros dos métodos necesitan un iterador TreeIter (sibling) que hace referencia a una fila en el almacén ListStore ante o tras la cual se insertará la fila.
Adding a row to a TreeStore is similar to adding a row to a ListStore except that you also have to specify a parent row (using a TreeIter) to add the new row to.
La adición de filas a un almacén del tipo TreeStore es semejante a la operación sobre el tipo ListStore, salvo que también se debe especificar una fila madre (usando un iterador TreeIter) a la que añadir la nueva fila.
The following methods use row references that are kept as private data in a TreeIter.
Los siguientes métodos usan referencias de fila que se guardan como datos privados en un TreeIter.
The application can't see the row reference in a TreeIter so you can use any unique item you want as a row reference.
La aplicación no puede ver la referencia de fila en un TreeIter por lo que se puede usar cualquier elemento único que se desee como referencia de fila.
We can't rely on the remove() method to return a valid TreeIter so we'll just ask for the first child iter until it returns None.
No podemos confiar en que el método remové() devuelva un iterador TreeIter correcto, por lo que simplemente solicitaremos el iterador del primer descendiente hasta que devuelva None.
If "leak-references" is set to FALSE, the reference count of the Python object will not be incremented when referenced in a TreeIter.
Si "leak-references" se establece a FALSE entonces el contador de referencias del objeto de Python no se incrementará cuando se referencia en un TreeIter.
The returned TreeIter (treeiter) points at the next row or is invalid if iter was pointing at the last row.
El iterador devuelto TreeIter (treeiter) apunta a la siguiente fila o no es válido si iter apunta a la última fila.
Since the TreeIter may be created and initialized in C code and live on the stack, it's not possible to know when the TreeIter has been destroyed and the Python object reference is no longer being used.
Puesto que se puede crear e inicializar un TreeIter en código en C y que permanezca en la pila, no es posible saber cuándo se ha destruido el TreeIter y ya no se usa la referencia al objeto de Python.
Therefore, the Python object referenced in a TreeIter has by default its reference count incremented but it is not decremented when the TreeIter is destroyed.
Por lo tanto, el objeto de Python referenciado en un TreeIter incrementa por defecto su cuenta de referencias, pero no se decrementa cuando se destruye el TreeIter.