Table Of Contents

Previous topic

DataViewEvent

Next topic

DataViewItemAttr

This Page

phoenix_title DataViewItem

DataViewItem is a small opaque class that represents an item in a DataViewCtrl in a persistent way, i.e.

independent of the position of the item in the control or changes to its contents.

It must hold a unique ID of type void in its only field and can be converted to and from it.

If the ID is None the DataViewItem is invalid and DataViewItem.IsOk will return False which used in many places in the API of DataViewCtrl to indicate that e.g. no item was found. An ID of None is also used to indicate the invisible root. Examples for this are DataViewModel.GetParent and DataViewModel.GetChildren .


class_hierarchy Inheritance Diagram

Inheritance diagram for class DataViewItem

Inheritance diagram of DataViewItem


method_summary Methods Summary

__init__ Constructor.
GetID Returns the ID.
IsOk Returns True if the ID is not None.

property_summary Properties Summary

ID See GetID

api Class API



class DataViewItem(object)

DataViewItem is a small opaque class that represents an item in a DataViewCtrl in a persistent way, i.e.

Possible constructors:

DataViewItem()

DataViewItem(item)

DataViewItem(id)

Methods



__init__(self, *args, **kw)

Constructor.


overload Overloaded Implementations:



__init__ (self)



__init__ (self, item)

Parameters:item (dataview.DataViewItem) –



__init__ (self, id)

Parameters:id





GetID(self)

Returns the ID.



IsOk(self)

Returns True if the ID is not None.

Return type:bool

Properties



ID

See GetID