]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/my_typemaps.i
Change demo to not try to drop the table when it thinks it is creating it for the...
[wxWidgets.git] / wxPython / src / my_typemaps.i
index 349cc9245d0b4ccc51c1fb8ce4422a50ed8fad12..f0246d60556cf33bfcd320c9fd87d8cfcd1e3bf5 100644 (file)
     delete [] $source;
 }
 
-
-
-
-
 %typemap(python,build) int PCOUNT {
-    if (_in_points) {
-        $target = PyList_Size(_in_points);
-    }
-    else {
-        $target = 0;
-    }
+       $target = NPOINTS;
 }
 
-%typemap(python,in) wxPoint* points  {
-    $target = wxPoint_LIST_helper($source);
-    if ($target == NULL) {
-        return NULL;
-    }
+%typemap(python,in) wxPoint* points (int NPOINTS) {
+    $target = wxPoint_LIST_helper($source, &NPOINTS);
+       if ($target == NULL) {
+               return NULL;
+       }
 }
 %typemap(python,freearg) wxPoint* points {
     delete [] $source;
 
 
 
+
 //---------------------------------------------------------------------------
 
 %{