X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d19860fe80bf06f3737d4ca04173c96f2f3a3ea..f32afe1c2c8a663d5b1fe6816c6999100ac832cf:/wxPython/src/msw/controls2.py diff --git a/wxPython/src/msw/controls2.py b/wxPython/src/msw/controls2.py index 425977be64..0a83b3438f 100644 --- a/wxPython/src/msw/controls2.py +++ b/wxPython/src/msw/controls2.py @@ -640,7 +640,7 @@ class wxListCtrlPtr(wxControlPtr): # 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 @@ -838,6 +838,10 @@ class wxTreeEventPtr(wxNotifyEventPtr): 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