wx.dataview.DataViewItem¶
wx.dataview.DataViewItem is a small opaque class that represents an item in a wx.dataview.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 wx.dataview.DataViewItem is invalid and wx.dataview.DataViewItem.IsOk will return False which used in many places in the API of wx.dataview.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 wx.dataview.DataViewModel.GetParent and wx.dataview.DataViewModel.GetChildren .
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Returns the |
|
Returns |
|
Properties Summary¶
See |
Class API¶
- class wx.dataview.DataViewItem(object)¶
Possible constructors:
DataViewItem() -> None DataViewItem(item) -> None DataViewItem(id) -> None
DataViewItem is a small opaque class that represents an item in a DataViewCtrl in a persistent way, i.e.
Methods¶
- __init__(self, *args, **kw)¶
Constructor.
__init__ (self)
- Return type:
None
__init__ (self, item)
- Parameters:
item (wx.dataview.DataViewItem)
- Return type:
None
__init__ (self, id)
- Parameters:
id
- Return type:
None
- GetID(self)¶
Returns the
ID.- Return type:
Any
- IsOk(self)¶
Returns
Trueif theIDis notNone.- Return type:
bool
- __bool__(self)¶
- Return type:
bool
- __eq__(self, other)¶
- Return type:
bool
- __hash__(self)¶
- Return type:
int
- __ne__(self, other)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
Properties¶
