-class wxTreeItemPtr :
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def __del__(self):
- if self.thisown == 1 :
- controls2c.delete_wxTreeItem(self.this)
- def __setattr__(self,name,value):
- if name == "m_mask" :
- controls2c.wxTreeItem_m_mask_set(self.this,value)
- return
- if name == "m_itemId" :
- controls2c.wxTreeItem_m_itemId_set(self.this,value)
- return
- if name == "m_state" :
- controls2c.wxTreeItem_m_state_set(self.this,value)
- return
- if name == "m_stateMask" :
- controls2c.wxTreeItem_m_stateMask_set(self.this,value)
- return
- if name == "m_text" :
- controls2c.wxTreeItem_m_text_set(self.this,value)
- return
- if name == "m_image" :
- controls2c.wxTreeItem_m_image_set(self.this,value)
- return
- if name == "m_selectedImage" :
- controls2c.wxTreeItem_m_selectedImage_set(self.this,value)
- return
- if name == "m_children" :
- controls2c.wxTreeItem_m_children_set(self.this,value)
- return
- if name == "m_data" :
- controls2c.wxTreeItem_m_data_set(self.this,value)
- return
- self.__dict__[name] = value
- def __getattr__(self,name):
- if name == "m_mask" :
- return controls2c.wxTreeItem_m_mask_get(self.this)
- if name == "m_itemId" :
- return controls2c.wxTreeItem_m_itemId_get(self.this)
- if name == "m_state" :
- return controls2c.wxTreeItem_m_state_get(self.this)
- if name == "m_stateMask" :
- return controls2c.wxTreeItem_m_stateMask_get(self.this)
- if name == "m_text" :
- return controls2c.wxTreeItem_m_text_get(self.this)
- if name == "m_image" :
- return controls2c.wxTreeItem_m_image_get(self.this)
- if name == "m_selectedImage" :
- return controls2c.wxTreeItem_m_selectedImage_get(self.this)
- if name == "m_children" :
- return controls2c.wxTreeItem_m_children_get(self.this)
- if name == "m_data" :
- return controls2c.wxTreeItem_m_data_get(self.this)
- raise AttributeError,name
- def __repr__(self):
- return "<C wxTreeItem instance>"
-class wxTreeItem(wxTreeItemPtr):
- def __init__(self) :
- self.this = controls2c.new_wxTreeItem()
- self.thisown = 1
-
-
-
-
-class wxTreeEventPtr(wxCommandEventPtr):
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def __setattr__(self,name,value):
- if name == "m_code" :
- controls2c.wxTreeEvent_m_code_set(self.this,value)
- return
- if name == "m_item" :
- controls2c.wxTreeEvent_m_item_set(self.this,value.this)
- return
- if name == "m_oldItem" :
- controls2c.wxTreeEvent_m_oldItem_set(self.this,value)
- return
- if name == "m_pointDrag" :
- controls2c.wxTreeEvent_m_pointDrag_set(self.this,value.this)
- return
- self.__dict__[name] = value
- def __getattr__(self,name):
- if name == "m_code" :
- return controls2c.wxTreeEvent_m_code_get(self.this)
- if name == "m_item" :
- return wxTreeItemPtr(controls2c.wxTreeEvent_m_item_get(self.this))
- if name == "m_oldItem" :
- return controls2c.wxTreeEvent_m_oldItem_get(self.this)
- if name == "m_pointDrag" :
- return wxPointPtr(controls2c.wxTreeEvent_m_pointDrag_get(self.this))
- raise AttributeError,name
- def __repr__(self):
- return "<C wxTreeEvent instance>"
-class wxTreeEvent(wxTreeEventPtr):
- def __init__(self,this):
- self.this = this
-
-
-
-
-class wxTreeCtrlPtr(wxControlPtr):
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def DeleteAllItems(self):
- val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
- return val
- def DeleteItem(self,arg0):
- val = controls2c.wxTreeCtrl_DeleteItem(self.this,arg0)
- return val
- def GetCount(self):
- val = controls2c.wxTreeCtrl_GetCount(self.this)
- return val
- def GetImageList(self,*args):
- val = apply(controls2c.wxTreeCtrl_GetImageList,(self.this,)+args)
- return val
- def GetIndent(self):
- val = controls2c.wxTreeCtrl_GetIndent(self.this)
- return val
- def GetItemData(self,arg0):
- val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0)
- return val
- def GetItem(self):
- val = controls2c.wxTreeCtrl_GetItem(self.this)
- val = wxTreeItemPtr(val)
- val.thisown = 1
- return val
- def GetItemText(self,arg0):
- val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0)
- return val
- def GetParent(self,arg0):
- val = controls2c.wxTreeCtrl_GetParent(self.this,arg0)
- return val
- def GetRootItem(self):
- val = controls2c.wxTreeCtrl_GetRootItem(self.this)
- return val
- def GetSelection(self):
- val = controls2c.wxTreeCtrl_GetSelection(self.this)
- return val
- def HitTest(self,arg0):
- val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
- return val
- def InsertItem(self,arg0,arg1,*args):
- val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0,arg1.this,)+args)
- return val
- def InsertItemString(self,arg0,arg1,*args):
- val = apply(controls2c.wxTreeCtrl_InsertItemString,(self.this,arg0,arg1,)+args)
- return val
- def ItemHasChildren(self,arg0):
- val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0)
- return val
- def SelectItem(self,arg0):
- val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0)
- return val
- def SetIndent(self,arg0):
- val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
- return val
- def SetImageList(self,arg0,*args):
- val = apply(controls2c.wxTreeCtrl_SetImageList,(self.this,arg0,)+args)
- return val
- def SetItem(self,arg0):
- val = controls2c.wxTreeCtrl_SetItem(self.this,arg0.this)
- return val
- def SetItemImage(self,arg0,arg1,arg2):
- val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0,arg1,arg2)
- return val
- def SetItemText(self,arg0,arg1):
- val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0,arg1)
- return val
- def SetItemData(self,arg0,arg1):
- val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0,arg1)
- return val
- def __repr__(self):
- return "<C wxTreeCtrl instance>"
-class wxTreeCtrl(wxTreeCtrlPtr):
- def __init__(self,arg0,*args) :
- argl = map(None,args)
- try: argl[1] = argl[1].this
- except: pass
- try: argl[2] = argl[2].this
- except: pass
- args = tuple(argl)
- self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
- self.thisown = 1
- wxp._StdWindowCallbacks(self)
-
-
-
-