This class attempts to hide the differences in API between the different tree controls that are part of wxPython.
wx.lib.mixins.treemixin.DragAndDrop
, wx.lib.mixins.treemixin.ExpansionState
, wx.lib.mixins.treemixin.VirtualTree
ExpandAll |
|
ExpandAllChildren |
|
GetColumnCount |
|
GetCount |
|
GetFirstVisibleItem |
|
GetItemChecked |
|
GetItemImage |
|
GetItemType |
|
GetMainWindow |
|
GetSelections |
|
HitTest |
HitTest returns a two-tuple (item, flags) for tree controls |
IsItemChecked |
|
SelectItem |
|
SetItemChecked |
|
SetItemImage |
|
SetItemType |
|
UnselectAll |
TreeAPIHarmonizer
(object)¶This class attempts to hide the differences in API between the different tree controls that are part of wxPython.
ExpandAll
(self, item=None)¶ExpandAllChildren
(self, item)¶GetColumnCount
(self, *args, **kwargs)¶GetCount
(self)¶GetFirstVisibleItem
(self)¶GetItemChecked
(self, *args, **kwargs)¶GetItemImage
(self, item, which=wx.TreeItemIcon_Normal, column=-1)¶GetItemType
(self, *args, **kwargs)¶GetMainWindow
(self, *args, **kwargs)¶GetSelections
(self)¶HitTest
(self, *args, **kwargs)¶HitTest returns a two-tuple (item, flags) for tree controls without columns and a three-tuple (item, flags, column) for tree controls with columns. Our caller can indicate this method to always return a three-tuple no matter what tree control we’re mixed in with by specifying the optional argument ‘alwaysReturnColumn’ to be True.
IsItemChecked
(self, *args, **kwargs)¶SelectItem
(self, item, *args, **kwargs)¶SetItemChecked
(self, *args, **kwargs)¶SetItemImage
(self, item, imageIndex, which=wx.TreeItemIcon_Normal, column=-1)¶SetItemType
(self, item, newType)¶UnselectAll
(self)¶