]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/Tree.py
   1 """Decorator classes for documentation and shell scripting. 
   4 __author__ 
= "Patrick K. O'Brien <pobrien@orbtech.com>" 
   6 __revision__ 
= "$Revision$"[11:-2] 
   9 # These are not the real wxPython classes. These are Python versions 
  10 # for documentation purposes. They are also used to apply docstrings 
  11 # to the real wxPython classes, which are SWIG-generated wrappers for 
  15 from Base 
import Object
 
  16 from Controls 
import Control
 
  17 import Parameters 
as wx
 
  20 class TreeCtrl(Control
): 
  21     """A tree control presents information as a hierarchy, with items 
  22     that may be expanded to show further items. Items in a tree 
  23     control are referenced by wx.TreeItemId handles, which may be 
  24     tested for validity by calling TreeItemId.IsOk().""" 
  34     def AssignImageList(self
): 
  38     def AssignStateImageList(self
): 
  46     def CollapseAndReset(self
): 
  58     def DeleteAllItems(self
): 
  62     def DeleteChildren(self
): 
  70     def EnsureVisible(self
): 
  78     def GetBoundingRect(self
): 
  82     def GetChildrenCount(self
): 
  90     def GetEditControl(self
): 
  94     def GetFirstChild(self
): 
  98     def GetFirstVisibleItem(self
): 
 102     def GetImageList(self
): 
 110     def GetItemBackgroundColour(self
): 
 114     def GetItemData(self
): 
 118     def GetItemFont(self
): 
 122     def GetItemImage(self
): 
 126     def GetItemParent(self
): 
 130     def GetItemSelectedImage(self
): 
 134     def GetItemText(self
): 
 138     def GetItemTextColour(self
): 
 142     def GetLastChild(self
): 
 146     def GetNextChild(self
): 
 150     def GetNextSibling(self
): 
 154     def GetNextVisible(self
): 
 158     def GetPrevSibling(self
): 
 162     def GetPrevVisible(self
): 
 170     def GetRootItem(self
): 
 174     def GetSelection(self
): 
 178     def GetSelections(self
): 
 182     def GetSpacing(self
): 
 186     def GetStateImageList(self
): 
 194     def InsertItem(self
): 
 198     def InsertItemBefore(self
): 
 206     def IsExpanded(self
): 
 210     def IsSelected(self
): 
 218     def ItemHasChildren(self
): 
 222     def PrependItem(self
): 
 230     def SelectItem(self
): 
 234     def SetImageList(self
): 
 242     def SetItemBackgroundColour(self
): 
 246     def SetItemBold(self
): 
 250     def SetItemData(self
): 
 254     def SetItemFont(self
): 
 258     def SetItemHasChildren(self
): 
 262     def SetItemImage(self
): 
 266     def SetItemSelectedImage(self
): 
 270     def SetItemText(self
): 
 274     def SetItemTextColour(self
): 
 282     def SetSpacing(self
): 
 286     def SetStateImageList(self
): 
 290     def SortChildren(self
): 
 302     def UnselectAll(self
): 
 310     def _setCallbackInfo(self
): 
 318     def GetBackgroundColour(self
): 
 326     def GetTextColour(self
): 
 330     def HasBackgroundColour(self
): 
 338     def HasTextColour(self
): 
 342     def SetBackgroundColour(self
): 
 350     def SetTextColour(self
): 
 359 class TreeItemData(Object
): 
 360     """TreeItemData is some (arbitrary) user class associated with 
 361     some item. The main advantage of having this class is that 
 362     TreeItemData objects are destroyed automatically by the tree and 
 363     the memory and any other resources associated with a tree item 
 364     will be automatically freed when it is deleted.""" 
 366     def __init__(self
, obj
=wx
.NULL
): 
 367         """Associate any Python object with tree item using 
 368         wxTreeItemData as container.""" 
 372         """Return the Python object.""" 
 376         """Return the item associated with this node.""" 
 379     def SetData(self
, obj
): 
 380         """Associate Python object with tree item.""" 
 384         """Set the item associated with this node.""" 
 389     """Item in a TreeCtrl.""" 
 391 ## You wouldn't create these directly. 
 393 ##     def __init__(self): 
 398         """Return True if item is valid.""" 
 402         """Synonym for IsOk."""