# Some helpers...
- def Select(self, idx, on=true):
+ def Select(self, idx, on=1):
'''[de]select an item'''
if on: state = wxLIST_STATE_SELECTED
else: state = 0
val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
+ def GetKeyEvent(self, *_args, **_kwargs):
+ 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)
return val