Supports saving/restoring a wx.TreeCtrl expansion state, selections and checked items state (meaningful only for CustomTreeCtrl).
This class handles the following wxPython widgets:
__init__ | |
GetCheckedState | Returns a list of checked items. |
GetCheckedStateOfChildren | Returns the checked/unchecked state of the children of a tree item. |
GetCheckedStateOfItem | Returns the checked/unchecked state of a tree item. |
GetExpansionState | Returns list of expanded items. |
GetExpansionStateOfChildren | Returns the expansion state of the children of a tree item. |
GetExpansionStateOfItem | Returns the expansion state of a tree item. |
GetIndexOfItem | Return the index of item. |
GetItemChildren | Return the children of item as a list. |
GetItemIdentity | Return a hashable object that represents the identity of the item. |
GetKind | |
GetSelectionState | Returns a list of selected items. |
GetSelectionStateOfChildren | Returns the selection state of the children of a tree item. |
GetSelectionStateOfItem | Returns the selection state of a tree item. |
Restore | |
Save | |
SetCheckedState | Checks all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), is present |
SetCheckedStateOfChildren | Sets the checked/unchecked state of the children of a tree item. |
SetCheckedStateOfItem | Sets the checked/unchecked state of a tree item. |
SetExpansionState | Expands all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), |
SetExpansionStateOfChildren | Sets the expansion state of the children of a tree item (expanded or collapsed). |
SetExpansionStateOfItem | Sets the expansion state of a tree item (expanded or collapsed). |
SetSelectedStateOfChildren | Sets the selection state of the children of a tree item. |
SetSelectedStateOfItem | Sets the selection state of a tree item. |
SetSelectionState | Selects all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), |
Supports saving/restoring a wx.TreeCtrl expansion state, selections and checked items state (meaningful only for CustomTreeCtrl).
This class handles the following wxPython widgets:
Returns a list of checked items. Checked items are coded as determined by the result of TreeCtrlHandler.GetItemIdentity().
Note
This is meaningful only for CustomTreeCtrl and HyperTreeList.
Returns the checked/unchecked state of the children of a tree item.
Parameters: | item – a CustomTreeCtrl item. |
---|
Returns the checked/unchecked state of a tree item.
Parameters: | item – a CustomTreeCtrl item. |
---|
Returns list of expanded items. Expanded items are coded as determined by the result of TreeCtrlHandler.GetItemIdentity().
Returns the expansion state of the children of a tree item.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item. |
---|
Returns the expansion state of a tree item.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item. |
---|
Return the index of item.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item; |
---|
Return the children of item as a list.
Parameters: |
|
---|
Return a hashable object that represents the identity of the item. By default this returns the position of the item in the tree. You may want to override this to return the item label (if you know that labels are unique and don’t change), or return something that represents the underlying domain object, e.g. a database key.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item; |
---|
Returns a list of selected items. Selected items are coded as determined by the result of TreeCtrlHandler.GetItemIdentity().
Returns the selection state of the children of a tree item.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item. |
---|
Returns the selection state of a tree item.
Parameters: | item – a wx.TreeCtrl item or a CustomTreeCtrl item. |
---|
Checks all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), is present in the list and unchecks all other tree items.
Parameters: | listOfCheckedItems – a list of checked CustomTreeCtrl items. |
---|
Note
This is meaningful only for CustomTreeCtrl and HyperTreeList.
Sets the checked/unchecked state of the children of a tree item.
Parameters: |
|
---|
Sets the checked/unchecked state of a tree item.
Parameters: |
|
---|
Expands all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), is present in the list and collapses all other tree items.
Parameters: | listOfExpandedItems – a list of expanded wx.TreeCtrl or CustomTreeCtrl items. |
---|
Sets the expansion state of the children of a tree item (expanded or collapsed).
Parameters: |
|
---|
Sets the expansion state of a tree item (expanded or collapsed).
Parameters: |
|
---|
Sets the selection state of the children of a tree item.
Parameters: |
|
---|
Sets the selection state of a tree item.
Parameters: |
|
---|
Selects all tree items whose identity, as determined by TreeCtrlHandler.GetItemIdentity(), is present in the list and unselects all other tree items.
Parameters: | listOfSelectedItems – a list of selected wx.TreeCtrl or CustomTreeCtrl items. |
---|