]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_sizers.i
another merge from WX_2_6_BRANCH
[wxWidgets.git] / wxPython / src / _sizers.i
index ae97bc0d15b1aedae7c0c8b589370fca9c82de1f..26e7c75cb476d28930ef21767ee54178e027012c 100644 (file)
@@ -261,6 +261,18 @@ isn't any.", "");
                 return Py_None;
             }
         }
+
+        DocStr(SetUserData,
+               "Associate a Python object with this sizer item.", "");
+        void SetUserData(PyObject* userData) {
+            wxPyUserData* data = NULL;
+            if ( userData ) {
+                wxPyBlock_t blocked = wxPyBeginBlockThreads();
+                data = new wxPyUserData(userData);
+                wxPyEndBlockThreads(blocked);
+            }
+            self->SetUserData(data);
+        }
     }
 };