return target;
}
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
-
class wxPyPopupTransientWindow : public wxPopupTransientWindow
{
public:
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashEvent *)new_wxSashEvent(_arg0,_arg1);
+ _result = (wxSashEvent *)new_wxSashEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashEvent_SetEdge(_arg0,_arg1);
+ wxSashEvent_SetEdge(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashEdgePosition )wxSashEvent_GetEdge(_arg0);
+ _result = (wxSashEdgePosition )wxSashEvent_GetEdge(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashEvent_SetDragRect(_arg0,*_arg1);
+ wxSashEvent_SetDragRect(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxRect (wxSashEvent_GetDragRect(_arg0));
+ _result = new wxRect (wxSashEvent_GetDragRect(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashEvent_SetDragStatus(_arg0,_arg1);
+ wxSashEvent_SetDragStatus(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashDragStatus )wxSashEvent_GetDragStatus(_arg0);
+ _result = (wxSashDragStatus )wxSashEvent_GetDragStatus(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashWindow *)new_wxSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
+ _result = (wxSashWindow *)new_wxSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashWindow *)new_wxPreSashWindow();
+ _result = (wxSashWindow *)new_wxPreSashWindow();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
+ _result = (bool )wxSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxSashWindow_GetSashVisible(_arg0,_arg1);
+ _result = (bool )wxSashWindow_GetSashVisible(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetDefaultBorderSize(_arg0);
+ _result = (int )wxSashWindow_GetDefaultBorderSize(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetEdgeMargin(_arg0,_arg1);
+ _result = (int )wxSashWindow_GetEdgeMargin(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetExtraBorderSize(_arg0);
+ _result = (int )wxSashWindow_GetExtraBorderSize(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetMaximumSizeX(_arg0);
+ _result = (int )wxSashWindow_GetMaximumSizeX(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetMaximumSizeY(_arg0);
+ _result = (int )wxSashWindow_GetMaximumSizeY(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetMinimumSizeX(_arg0);
+ _result = (int )wxSashWindow_GetMinimumSizeX(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxSashWindow_GetMinimumSizeY(_arg0);
+ _result = (int )wxSashWindow_GetMinimumSizeY(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxSashWindow_HasBorder(_arg0,_arg1);
+ _result = (bool )wxSashWindow_HasBorder(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetDefaultBorderSize(_arg0,_arg1);
+ wxSashWindow_SetDefaultBorderSize(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetExtraBorderSize(_arg0,_arg1);
+ wxSashWindow_SetExtraBorderSize(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetMaximumSizeX(_arg0,_arg1);
+ wxSashWindow_SetMaximumSizeX(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetMaximumSizeY(_arg0,_arg1);
+ wxSashWindow_SetMaximumSizeY(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetMinimumSizeX(_arg0,_arg1);
+ wxSashWindow_SetMinimumSizeX(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetMinimumSizeY(_arg0,_arg1);
+ wxSashWindow_SetMinimumSizeY(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg2 = (bool ) tempbool2;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetSashVisible(_arg0,_arg1,_arg2);
+ wxSashWindow_SetSashVisible(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg2 = (bool ) tempbool2;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashWindow_SetSashBorder(_arg0,_arg1,_arg2);
+ wxSashWindow_SetSashBorder(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxQueryLayoutInfoEvent *)new_wxQueryLayoutInfoEvent(_arg0);
+ _result = (wxQueryLayoutInfoEvent *)new_wxQueryLayoutInfoEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryLayoutInfoEvent_SetRequestedLength(_arg0,_arg1);
+ wxQueryLayoutInfoEvent_SetRequestedLength(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxQueryLayoutInfoEvent_GetRequestedLength(_arg0);
+ _result = (int )wxQueryLayoutInfoEvent_GetRequestedLength(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryLayoutInfoEvent_SetFlags(_arg0,_arg1);
+ wxQueryLayoutInfoEvent_SetFlags(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxQueryLayoutInfoEvent_GetFlags(_arg0);
+ _result = (int )wxQueryLayoutInfoEvent_GetFlags(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryLayoutInfoEvent_SetSize(_arg0,*_arg1);
+ wxQueryLayoutInfoEvent_SetSize(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxSize (wxQueryLayoutInfoEvent_GetSize(_arg0));
+ _result = new wxSize (wxQueryLayoutInfoEvent_GetSize(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryLayoutInfoEvent_SetOrientation(_arg0,_arg1);
+ wxQueryLayoutInfoEvent_SetOrientation(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxLayoutOrientation )wxQueryLayoutInfoEvent_GetOrientation(_arg0);
+ _result = (wxLayoutOrientation )wxQueryLayoutInfoEvent_GetOrientation(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryLayoutInfoEvent_SetAlignment(_arg0,_arg1);
+ wxQueryLayoutInfoEvent_SetAlignment(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxLayoutAlignment )wxQueryLayoutInfoEvent_GetAlignment(_arg0);
+ _result = (wxLayoutAlignment )wxQueryLayoutInfoEvent_GetAlignment(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxCalculateLayoutEvent *)new_wxCalculateLayoutEvent(_arg0);
+ _result = (wxCalculateLayoutEvent *)new_wxCalculateLayoutEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCalculateLayoutEvent_SetFlags(_arg0,_arg1);
+ wxCalculateLayoutEvent_SetFlags(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxCalculateLayoutEvent_GetFlags(_arg0);
+ _result = (int )wxCalculateLayoutEvent_GetFlags(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCalculateLayoutEvent_SetRect(_arg0,*_arg1);
+ wxCalculateLayoutEvent_SetRect(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxRect (wxCalculateLayoutEvent_GetRect(_arg0));
+ _result = new wxRect (wxCalculateLayoutEvent_GetRect(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashLayoutWindow *)new_wxSashLayoutWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
+ _result = (wxSashLayoutWindow *)new_wxSashLayoutWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSashLayoutWindow *)new_wxPreSashLayoutWindow();
+ _result = (wxSashLayoutWindow *)new_wxPreSashLayoutWindow();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxSashLayoutWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
+ _result = (bool )wxSashLayoutWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxLayoutAlignment )wxSashLayoutWindow_GetAlignment(_arg0);
+ _result = (wxLayoutAlignment )wxSashLayoutWindow_GetAlignment(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxLayoutOrientation )wxSashLayoutWindow_GetOrientation(_arg0);
+ _result = (wxLayoutOrientation )wxSashLayoutWindow_GetOrientation(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashLayoutWindow_SetAlignment(_arg0,_arg1);
+ wxSashLayoutWindow_SetAlignment(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashLayoutWindow_SetDefaultSize(_arg0,*_arg1);
+ wxSashLayoutWindow_SetDefaultSize(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxSashLayoutWindow_SetOrientation(_arg0,_arg1);
+ wxSashLayoutWindow_SetOrientation(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxLayoutAlgorithm *)new_wxLayoutAlgorithm();
+ _result = (wxLayoutAlgorithm *)new_wxLayoutAlgorithm();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- delete_wxLayoutAlgorithm(_arg0);
+ delete_wxLayoutAlgorithm(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxLayoutAlgorithm_LayoutMDIFrame(_arg0,_arg1,_arg2);
+ _result = (bool )wxLayoutAlgorithm_LayoutMDIFrame(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxLayoutAlgorithm_LayoutFrame(_arg0,_arg1,_arg2);
+ _result = (bool )wxLayoutAlgorithm_LayoutFrame(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxLayoutAlgorithm_LayoutWindow(_arg0,_arg1,_arg2);
+ _result = (bool )wxLayoutAlgorithm_LayoutWindow(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPopupWindow *)new_wxPopupWindow(_arg0,_arg1);
+ _result = (wxPopupWindow *)new_wxPopupWindow(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPopupWindow *)new_wxPrePopupWindow();
+ _result = (wxPopupWindow *)new_wxPrePopupWindow();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxPopupWindow_Create(_arg0,_arg1,_arg2);
+ _result = (bool )wxPopupWindow_Create(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPopupWindow_Position(_arg0,*_arg1,*_arg2);
+ wxPopupWindow_Position(_arg0,*_arg1,*_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPyPopupTransientWindow *)new_wxPopupTransientWindow(_arg0,_arg1);
+ _result = (wxPyPopupTransientWindow *)new_wxPopupTransientWindow(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPyPopupTransientWindow *)new_wxPrePopupTransientWindow();
+ _result = (wxPyPopupTransientWindow *)new_wxPrePopupTransientWindow();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPopupTransientWindow__setCallbackInfo(_arg0,_arg1,_arg2);
+ wxPopupTransientWindow__setCallbackInfo(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPopupTransientWindow_Popup(_arg0,_arg1);
+ wxPopupTransientWindow_Popup(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPopupTransientWindow_Dismiss(_arg0);
+ wxPopupTransientWindow_Dismiss(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
if (_obj3)
{
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxTipWindow *)new_wxTipWindow(_arg0,_arg1,_arg2,_arg3);
+ _result = (wxTipWindow *)new_wxTipWindow(_arg0,_arg1,_arg2,_arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxTipWindow_SetBoundingRect(_arg0,*_arg1);
+ wxTipWindow_SetBoundingRect(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxTipWindow_Close(_arg0);
+ wxTipWindow_Close(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;