+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
+ self.thisown = 1
+ wx._StdWindowCallbacks(self)
+
+
+
+
+class wxTreeItemIdPtr :
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,controls2c=controls2c):
+ if self.thisown == 1 :
+ controls2c.delete_wxTreeItemId(self)
+ def IsOk(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxTreeItemId instance at %s>" % (self.this,)
+class wxTreeItemId(wxTreeItemIdPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxTreeItemDataPtr :
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
+ return val
+ def SetData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
+ return val
+ def GetId(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val)
+ return val
+ def SetId(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxTreeItemData instance at %s>" % (self.this,)
+class wxTreeItemData(wxTreeItemDataPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxTreeEventPtr(wxNotifyEventPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetOldItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetPoint(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
+ if val: val = wxPointPtr(val) ; val.thisown = 1
+ return val
+ def GetCode(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
+ return val
+ def GetLabel(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxTreeEvent instance at %s>" % (self.this,)
+class wxTreeEvent(wxTreeEventPtr):
+ def __init__(self,this):
+ self.this = this
+
+
+
+
+class wxTreeCtrlPtr(wxControlPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetCount(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
+ return val
+ def GetIndent(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
+ return val
+ def SetIndent(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
+ return val
+ def GetImageList(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
+ if val: val = wxImageListPtr(val)
+ return val
+ def GetStateImageList(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
+ if val: val = wxImageListPtr(val)
+ return val
+ def SetImageList(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
+ return val
+ def SetStateImageList(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
+ return val
+ def GetSpacing(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
+ return val
+ def SetSpacing(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
+ return val
+ def GetItemText(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
+ return val
+ def GetItemImage(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
+ return val
+ def GetItemSelectedImage(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
+ return val
+ def SetItemText(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
+ return val
+ def SetItemImage(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
+ return val
+ def SetItemSelectedImage(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
+ return val
+ def SetItemHasChildren(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
+ return val
+ def GetItemData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemDataPtr(val)
+ return val
+ def SetItemData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
+ return val
+ def GetPyData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
+ return val
+ def SetPyData(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
+ return val
+ def IsVisible(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
+ return val
+ def ItemHasChildren(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
+ return val
+ def IsExpanded(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
+ return val
+ def IsSelected(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
+ return val
+ def GetRootItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetSelection(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetItemParent(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetSelections(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
+ return val
+ def GetChildrenCount(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
+ return val
+ def GetFirstChild(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
+ return val
+ def GetNextChild(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
+ return val
+ def GetNextSibling(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetPrevSibling(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetFirstVisibleItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetNextVisible(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetPrevVisible(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def GetLastChild(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def AddRoot(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def PrependItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def InsertItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def AppendItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
+ if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
+ return val
+ def Delete(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
+ return val
+ def DeleteChildren(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
+ return val
+ def DeleteAllItems(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
+ return val
+ def Expand(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
+ return val
+ def Collapse(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
+ return val
+ def CollapseAndReset(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
+ return val
+ def Toggle(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
+ return val
+ def Unselect(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
+ return val
+ def UnselectAll(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
+ return val
+ def SelectItem(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
+ return val
+ def EnsureVisible(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
+ return val
+ def ScrollTo(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
+ return val
+ def EditLabel(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
+ return val
+ def SortChildren(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
+ return val
+ def SetItemBold(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
+ return val
+ def IsBold(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
+ return val
+ def HitTest(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
+ return val
+ def SetItemTextColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
+ return val
+ def SetItemBackgroundColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
+ return val
+ def SetItemFont(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxTreeCtrl instance at %s>" % (self.this,)
+
+ # Redefine a couple methods that SWIG gets a bit confused on...
+ def GetFirstChild(self,arg0,arg1):
+ val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+ def GetNextChild(self,arg0,arg1):
+ val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
+ val1 = wxTreeItemIdPtr(val1)
+ val1.thisown = 1
+ return (val1,val2)
+
+class wxTreeCtrl(wxTreeCtrlPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)