This class is a wx.dataview.DataViewCtrl which internally uses a wx.dataview.DataViewTreeStore and forwards most of its API to that class.
Additionally, it uses a wx.ImageList to store a list of icons.
The main purpose of this class is to provide a simple upgrade path for code using wx.TreeCtrl.
This class supports the following styles:
See wx.dataview.DataViewCtrl for the list of supported styles.
Event macros for events emitted by this class:
See wx.dataview.DataViewCtrl for the list of events emitted by this class.
New in version 2.9.0.
wxMSW¶
wxMAC¶
wxGTK¶
Default constructor. |
|
Appends a container to the given parent. |
|
Appends an item to the given parent. |
|
Creates the control and a wx.dataview.DataViewTreeStore as its internal model. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Returns the image list. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Returns the store. |
|
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon. |
|
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon. |
|
Returns |
|
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon. |
|
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon. |
|
Sets the image list. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
|
Calls the identical method from wx.dataview.DataViewTreeStore. |
See |
|
See |
Possible constructors:
DataViewTreeCtrl()
DataViewTreeCtrl(parent, id=ID_ANY, pos=DefaultPosition,
size=DefaultSize, style=DV_NO_HEADER|DV_ROW_LINES,
validator=DefaultValidator)
This class is a DataViewCtrl which internally uses a DataViewTreeStore and forwards most of its API to that class.
__init__ (self)
Default constructor.
__init__ (self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=DV_NO_HEADER|DV_ROW_LINES, validator=DefaultValidator)
Constructor.
Calls Create
.
parent (wx.Window) –
id (wx.WindowID) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
validator (wx.Validator) –
Appends a container to the given parent.
parent (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
expanded (int) –
data (ClientData) –
Appends an item to the given parent.
parent (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
data (ClientData) –
Creates the control and a wx.dataview.DataViewTreeStore as its internal model.
The default tree column created by this method is an editable column using wx.dataview.DataViewIconTextRenderer as its renderer.
parent (wx.Window) –
id (wx.WindowID) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
validator (wx.Validator) –
bool
Calls the identical method from wx.dataview.DataViewTreeStore.
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
Calls the identical method from wx.dataview.DataViewTreeStore.
parent (wx.dataview.DataViewItem) –
int
variant (WindowVariant) –
VisualAttributes
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
ClientData
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
Icon
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
Icon
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
string
Calls the identical method from wx.dataview.DataViewTreeStore.
parent (wx.dataview.DataViewItem) –
pos (int) –
Returns the store.
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon.
parent (wx.dataview.DataViewItem) –
previous (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
expanded (int) –
data (ClientData) –
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon.
parent (wx.dataview.DataViewItem) –
previous (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
data (ClientData) –
Returns True
if item is a container.
item (wx.dataview.DataViewItem) –
bool
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon.
parent (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
expanded (int) –
data (ClientData) –
Calls the same method from wx.dataview.DataViewTreeStore but uses an index position in the image list instead of a wx.Icon.
parent (wx.dataview.DataViewItem) –
text (string) –
icon (int) –
data (ClientData) –
Sets the image list.
imagelist (wx.ImageList) –
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
data (ClientData) –
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
icon (wx.Icon) –
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
icon (wx.Icon) –
Calls the identical method from wx.dataview.DataViewTreeStore.
item (wx.dataview.DataViewItem) –
text (string) –
See GetImageList
and SetImageList