another merge from WX_2_6_BRANCH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user