]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/controls2.py
don't log mouse events by default
[wxWidgets.git] / wxPython / src / msw / controls2.py
index 425977be64ae181968d13dcb8b6403f3c3481b7d..0a83b3438f913842b5d2934d2bf7fd2246c7fd91 100644 (file)
@@ -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