X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8381e4cdd3afb82e4a77038b5f9abae7404b500c..3cd94a0d119ade811cd876a309cfe6d28b5c36dd:/wxPython/src/gtk/controls2.py diff --git a/wxPython/src/gtk/controls2.py b/wxPython/src/gtk/controls2.py index 4e4e200003..1c8f87bc10 100644 --- a/wxPython/src/gtk/controls2.py +++ b/wxPython/src/gtk/controls2.py @@ -628,7 +628,7 @@ class wxListCtrlPtr(wxControlPtr): def __repr__(self): return "" % (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 @@ -636,7 +636,7 @@ class wxListCtrlPtr(wxControlPtr): 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