def __init__(self,this):
self.this = this
self.thisown = 0
- def GetCode(self, *_args, **_kwargs):
- val = apply(controls2c.wxListEvent_GetCode,(self,) + _args, _kwargs)
+ def GetKeyCode(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListEvent_GetKeyCode,(self,) + _args, _kwargs)
return val
def GetIndex(self, *_args, **_kwargs):
val = apply(controls2c.wxListEvent_GetIndex,(self,) + _args, _kwargs)
raise AttributeError,name
def __repr__(self):
return "<C wxListEvent instance at %s>" % (self.this,)
+ GetCode = GetKeyCode
class wxListEvent(wxListEventPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(controls2c.new_wxListEvent,_args,_kwargs)
def ScrollList(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
return val
+ def SetItemTextColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListCtrl_SetItemTextColour,(self,) + _args, _kwargs)
+ return val
+ def GetItemTextColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListCtrl_GetItemTextColour,(self,) + _args, _kwargs)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
+ return val
+ def SetItemBackgroundColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
+ return val
+ def GetItemBackgroundColour(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListCtrl_GetItemBackgroundColour,(self,) + _args, _kwargs)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
+ return val
def SortItems(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_SortItems,(self,) + _args, _kwargs)
return val
+ def GetMainWindow(self, *_args, **_kwargs):
+ val = apply(controls2c.wxListCtrl_GetMainWindow,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxListCtrl instance at %s>" % (self.this,)
- def GetItem(self, *_args, **_kwargs):
+ def GetColumn(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
if val is not None: val.thisown = 1
return val
def GetItem(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
- val.thisown = 1
+ if val is not None: val.thisown = 1
return val
val = apply(controls2c.wxTreeEvent_GetKeyEvent,(self,) + _args, _kwargs)
if val: val = wxKeyEventPtr(val)
return val
- def GetCode(self, *_args, **_kwargs):
- val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
+ def GetKeyCode(self, *_args, **_kwargs):
+ val = apply(controls2c.wxTreeEvent_GetKeyCode,(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,)
+ GetCode = GetKeyCode
class wxTreeEvent(wxTreeEventPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(controls2c.new_wxTreeEvent,_args,_kwargs)
return val
def GetTreeCtrl(self, *_args, **_kwargs):
val = apply(controls2c.wxGenericDirCtrl_GetTreeCtrl,(self,) + _args, _kwargs)
- if val: val = wxTreeCtrlPtr(val)
return val
def GetFilterListCtrl(self, *_args, **_kwargs):
val = apply(controls2c.wxGenericDirCtrl_GetFilterListCtrl,(self,) + _args, _kwargs)
wxDIRCTRL_SELECT_FIRST = controls2c.wxDIRCTRL_SELECT_FIRST
wxDIRCTRL_SHOW_FILTERS = controls2c.wxDIRCTRL_SHOW_FILTERS
wxDIRCTRL_3D_INTERNAL = controls2c.wxDIRCTRL_3D_INTERNAL
-wxDIRCTRL_EDITABLE = controls2c.wxDIRCTRL_EDITABLE
+wxDIRCTRL_EDIT_LABELS = controls2c.wxDIRCTRL_EDIT_LABELS
wxID_TREECTRL = controls2c.wxID_TREECTRL
wxID_FILTERLISTCTRL = controls2c.wxID_FILTERLISTCTRL