Phoenix Logo

phoenix_title wx.lib.mixins.treemixin.TreeAPIHarmonizer

This class attempts to hide the differences in API between the different tree controls that are part of wxPython.


class_hierarchy Class Hierarchy

Inheritance diagram for class TreeAPIHarmonizer:


method_summary Methods Summary

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  

api Class API



class TreeAPIHarmonizer(object)

This class attempts to hide the differences in API between the different tree controls that are part of wxPython.


Methods



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)