gtk.TreeRowReferencean object maintaining a persistent reference to a gtk.TreeModel
row (new in PyGTK 2.4)Synopsisgtk.TreeRowReferencegobject.GBoxedgtk.TreeRowReferencemodelpathget_pathget_modelvalidcopyfreeDescriptionThis object is available in PyGTK 2.4 and above.A gtk.TreeRowReference
is an object that points to a row in a gtk.TreeModel
similar to a gtk.TreeIter. A
gtk.TreeRowReference,
unlike a gtk.TreeIter,
maintains a persistent reference in spite of changes in the model.Constructorgtk.TreeRowReferencemodelpathmodel :a gtk.TreeModelpath :a valid tree path to monitorReturns :a gtk.TreeRowReference,
or NoneThis constructor is available in PyGTK 2.4 and above.Creates a row reference pointing to the treemodel row specified by
model and path. This reference
will continue pointing to the node in spite of changes in
model. It listens to all signals emitted by
model, and updates its path appropriately. If
path isn't a valid path in
model, None is returned.Methodsgtk.TreeRowReference.get_pathget_pathReturns :A current path, or
None.This method is available in PyGTK 2.4 and above.The get_path() method returns the path
that the row reference currently points to, or None if
the path pointed to is no longer valid.gtk.TreeRowReference.get_modelget_modelReturns :the model, or
None.This method is available in PyGTK 2.8 and above.The get_model() method returns the
model that the row reference currently monitors, or None
if the model is not set.gtk.TreeRowReference.validvalidReturns :True if the row reference
points to a valid path.This method is available in PyGTK 2.4 and above.The valid() method returns
True if the row reference is not None
and refers to a current valid path.gtk.TreeRowReference.copycopyReturns :a copy of the row referenceThis method is available in PyGTK 2.4 and above.The copy() method returns a copy of the
tree row reference.gtk.TreeRowReference.freefreeThis method is available in PyGTK 2.4 and above.This method is deprecated and should not be used since it may
crash your application.The free() method frees the tree row reference. The row
reference may be None.