]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls2.i
added container class files
[wxWidgets.git] / wxPython / src / controls2.i
index 77ae496ebc024746ced256fe949293df8731eb8d..42a787dbe0f35c946af11f5d3c0b10397a4df728 100644 (file)
@@ -299,6 +299,15 @@ public:
             self->GetItem(*info);
             return info;
         }
+    }  // The OOR typemaps don't know what to do with the %new, so fix it up.
+    %pragma(python) addtoclass = "
+    def GetItem(self, *_args, **_kwargs):
+        val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
+        val.thisown = 1
+        return val
+    "
+
+    %addmethods {
         %new wxPoint* GetItemPosition(long item) {
             wxPoint* pos = new wxPoint;
             self->GetItemPosition(item, *pos);