Merged modifications from the 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -318,14 +318,14 @@ static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize,
|
||||
if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
|
||||
// no expected type, figure out what kind of error message to generate
|
||||
if ( !checkSize && !checkIdx )
|
||||
PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
|
||||
PyErr_SetString(PyExc_TypeError, "wx.Window or wx.Sizer expected for item");
|
||||
else if ( checkSize && !checkIdx )
|
||||
PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
|
||||
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item");
|
||||
else if ( !checkSize && checkIdx)
|
||||
PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
|
||||
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer or int (position) expected for item");
|
||||
else
|
||||
// can this one happen?
|
||||
PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
|
||||
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) or int (position) expected for item");
|
||||
}
|
||||
|
||||
return info;
|
||||
|
Reference in New Issue
Block a user