}
return target;
}
-
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
#ifdef __cplusplus
extern "C" {
#endif
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxNewEventType();
+ _result = (int )wxNewEventType();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- delete_wxEvent(_arg0);
+ delete_wxEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxObject *)wxEvent_GetEventObject(_arg0);
+ _result = (wxObject *)wxEvent_GetEventObject(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxEventType )wxEvent_GetEventType(_arg0);
+ _result = (wxEventType )wxEvent_GetEventType(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxEvent_GetId(_arg0);
+ _result = (int )wxEvent_GetId(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxEvent_GetSkipped(_arg0);
+ _result = (bool )wxEvent_GetSkipped(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxEvent_GetTimestamp(_arg0);
+ _result = (long )wxEvent_GetTimestamp(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxEvent_SetEventObject(_arg0,_arg1);
+ wxEvent_SetEventObject(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxEvent_SetEventType(_arg0,_arg1);
+ wxEvent_SetEventType(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxEvent_SetId(_arg0,_arg1);
+ wxEvent_SetId(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxEvent_SetTimestamp(_arg0,_arg1);
+ wxEvent_SetTimestamp(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxEvent_Skip(_arg0,_arg1);
+ wxEvent_Skip(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxEvent *)wxEvent_Clone(_arg0);
+ _result = (wxEvent *)wxEvent_Clone(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSizeEvent *)new_wxSizeEvent(*_arg0,_arg1);
+ _result = (wxSizeEvent *)new_wxSizeEvent(*_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxSize (wxSizeEvent_GetSize(_arg0));
+ _result = new wxSize (wxSizeEvent_GetSize(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxCloseEvent *)new_wxCloseEvent(_arg0,_arg1);
+ _result = (wxCloseEvent *)new_wxCloseEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCloseEvent_SetLoggingOff(_arg0,_arg1);
+ wxCloseEvent_SetLoggingOff(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxCloseEvent_GetLoggingOff(_arg0);
+ _result = (bool )wxCloseEvent_GetLoggingOff(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCloseEvent_Veto(_arg0,_arg1);
+ wxCloseEvent_Veto(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxCloseEvent_CanVeto(_arg0);
+ _result = (bool )wxCloseEvent_CanVeto(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxCloseEvent_GetVeto(_arg0);
+ _result = (bool )wxCloseEvent_GetVeto(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCloseEvent_SetCanVeto(_arg0,_arg1);
+ wxCloseEvent_SetCanVeto(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxCommandEvent *)new_wxCommandEvent(_arg0,_arg1);
+ _result = (wxCommandEvent *)new_wxCommandEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxCommandEvent_IsChecked(_arg0);
+ _result = (bool )wxCommandEvent_IsChecked(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxCommandEvent_GetExtraLong(_arg0);
+ _result = (long )wxCommandEvent_GetExtraLong(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxCommandEvent_GetInt(_arg0);
+ _result = (int )wxCommandEvent_GetInt(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxCommandEvent_GetSelection(_arg0);
+ _result = (int )wxCommandEvent_GetSelection(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxString (wxCommandEvent_GetString(_arg0));
+ _result = new wxString (wxCommandEvent_GetString(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxCommandEvent_IsSelection(_arg0);
+ _result = (bool )wxCommandEvent_IsSelection(_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);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- 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
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCommandEvent_SetString(_arg0,*_arg1);
+ wxCommandEvent_SetString(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCommandEvent_SetExtraLong(_arg0,_arg1);
+ wxCommandEvent_SetExtraLong(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxCommandEvent_SetInt(_arg0,_arg1);
+ wxCommandEvent_SetInt(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (PyObject *)wxCommandEvent_GetClientData(_arg0);
+ _result = (PyObject *)wxCommandEvent_GetClientData(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxScrollEvent *)new_wxScrollEvent(_arg0,_arg1,_arg2,_arg3);
+ _result = (wxScrollEvent *)new_wxScrollEvent(_arg0,_arg1,_arg2,_arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxScrollEvent_GetOrientation(_arg0);
+ _result = (int )wxScrollEvent_GetOrientation(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxScrollEvent_GetPosition(_arg0);
+ _result = (int )wxScrollEvent_GetPosition(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxScrollWinEvent *)new_wxScrollWinEvent(_arg0,_arg1,_arg2);
+ _result = (wxScrollWinEvent *)new_wxScrollWinEvent(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxScrollWinEvent_GetOrientation(_arg0);
+ _result = (int )wxScrollWinEvent_GetOrientation(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxScrollWinEvent_GetPosition(_arg0);
+ _result = (int )wxScrollWinEvent_GetPosition(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSpinEvent *)new_wxSpinEvent(_arg0,_arg1);
+ _result = (wxSpinEvent *)new_wxSpinEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxMouseEvent *)new_wxMouseEvent(_arg0);
+ _result = (wxMouseEvent *)new_wxMouseEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_IsButton(_arg0);
+ _result = (bool )wxMouseEvent_IsButton(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ButtonDown(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_ButtonDown(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ButtonDClick(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_ButtonDClick(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ButtonUp(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_ButtonUp(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_Button(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_Button(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ButtonIsDown(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_ButtonIsDown(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ControlDown(_arg0);
+ _result = (bool )wxMouseEvent_ControlDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_MetaDown(_arg0);
+ _result = (bool )wxMouseEvent_MetaDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_AltDown(_arg0);
+ _result = (bool )wxMouseEvent_AltDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_ShiftDown(_arg0);
+ _result = (bool )wxMouseEvent_ShiftDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_LeftDown(_arg0);
+ _result = (bool )wxMouseEvent_LeftDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_MiddleDown(_arg0);
+ _result = (bool )wxMouseEvent_MiddleDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_RightDown(_arg0);
+ _result = (bool )wxMouseEvent_RightDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_LeftUp(_arg0);
+ _result = (bool )wxMouseEvent_LeftUp(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_MiddleUp(_arg0);
+ _result = (bool )wxMouseEvent_MiddleUp(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_RightUp(_arg0);
+ _result = (bool )wxMouseEvent_RightUp(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_LeftDClick(_arg0);
+ _result = (bool )wxMouseEvent_LeftDClick(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_MiddleDClick(_arg0);
+ _result = (bool )wxMouseEvent_MiddleDClick(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_RightDClick(_arg0);
+ _result = (bool )wxMouseEvent_RightDClick(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_LeftIsDown(_arg0);
+ _result = (bool )wxMouseEvent_LeftIsDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_MiddleIsDown(_arg0);
+ _result = (bool )wxMouseEvent_MiddleIsDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_RightIsDown(_arg0);
+ _result = (bool )wxMouseEvent_RightIsDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_Dragging(_arg0);
+ _result = (bool )wxMouseEvent_Dragging(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_Moving(_arg0);
+ _result = (bool )wxMouseEvent_Moving(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_Entering(_arg0);
+ _result = (bool )wxMouseEvent_Entering(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_Leaving(_arg0);
+ _result = (bool )wxMouseEvent_Leaving(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxMouseEvent_GetPosition(_arg0));
+ _result = new wxPoint (wxMouseEvent_GetPosition(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxMouseEvent_GetPositionTuple(_arg0,_arg1,_arg2);
+ wxMouseEvent_GetPositionTuple(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxMouseEvent_GetLogicalPosition(_arg0,*_arg1));
+ _result = new wxPoint (wxMouseEvent_GetLogicalPosition(_arg0,*_arg1));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_GetX(_arg0);
+ _result = (long )wxMouseEvent_GetX(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_GetY(_arg0);
+ _result = (long )wxMouseEvent_GetY(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_GetWheelRotation(_arg0);
+ _result = (int )wxMouseEvent_GetWheelRotation(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_GetWheelDelta(_arg0);
+ _result = (int )wxMouseEvent_GetWheelDelta(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_GetLinesPerAction(_arg0);
+ _result = (int )wxMouseEvent_GetLinesPerAction(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_m_x_set(_arg0,_arg1);
+ _result = (long )wxMouseEvent_m_x_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_m_x_get(_arg0);
+ _result = (long )wxMouseEvent_m_x_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_m_y_set(_arg0,_arg1);
+ _result = (long )wxMouseEvent_m_y_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxMouseEvent_m_y_get(_arg0);
+ _result = (long )wxMouseEvent_m_y_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_leftDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_leftDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_leftDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_leftDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_middleDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_middleDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_middleDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_middleDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_rightDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_rightDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_rightDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_rightDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_controlDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_controlDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_controlDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_controlDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_shiftDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_shiftDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_shiftDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_shiftDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_altDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_altDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_altDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_altDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_metaDown_set(_arg0,_arg1);
+ _result = (bool )wxMouseEvent_m_metaDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMouseEvent_m_metaDown_get(_arg0);
+ _result = (bool )wxMouseEvent_m_metaDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_wheelRotation_set(_arg0,_arg1);
+ _result = (int )wxMouseEvent_m_wheelRotation_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_wheelRotation_get(_arg0);
+ _result = (int )wxMouseEvent_m_wheelRotation_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_wheelDelta_set(_arg0,_arg1);
+ _result = (int )wxMouseEvent_m_wheelDelta_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_wheelDelta_get(_arg0);
+ _result = (int )wxMouseEvent_m_wheelDelta_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_linesPerAction_set(_arg0,_arg1);
+ _result = (int )wxMouseEvent_m_linesPerAction_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMouseEvent_m_linesPerAction_get(_arg0);
+ _result = (int )wxMouseEvent_m_linesPerAction_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxKeyEvent *)new_wxKeyEvent(_arg0);
+ _result = (wxKeyEvent *)new_wxKeyEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_ControlDown(_arg0);
+ _result = (bool )wxKeyEvent_ControlDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_MetaDown(_arg0);
+ _result = (bool )wxKeyEvent_MetaDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_AltDown(_arg0);
+ _result = (bool )wxKeyEvent_AltDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_ShiftDown(_arg0);
+ _result = (bool )wxKeyEvent_ShiftDown(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_KeyCode(_arg0);
+ _result = (long )wxKeyEvent_KeyCode(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_GetKeyCode(_arg0);
+ _result = (long )wxKeyEvent_GetKeyCode(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_HasModifiers(_arg0);
+ _result = (bool )wxKeyEvent_HasModifiers(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_GetX(_arg0);
+ _result = (long )wxKeyEvent_GetX(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_GetY(_arg0);
+ _result = (long )wxKeyEvent_GetY(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxKeyEvent_GetPosition(_arg0));
+ _result = new wxPoint (wxKeyEvent_GetPosition(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxKeyEvent_GetPositionTuple(_arg0,_arg1,_arg2);
+ wxKeyEvent_GetPositionTuple(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_x_set(_arg0,_arg1);
+ _result = (long )wxKeyEvent_m_x_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_x_get(_arg0);
+ _result = (long )wxKeyEvent_m_x_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_y_set(_arg0,_arg1);
+ _result = (long )wxKeyEvent_m_y_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_y_get(_arg0);
+ _result = (long )wxKeyEvent_m_y_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_keyCode_set(_arg0,_arg1);
+ _result = (long )wxKeyEvent_m_keyCode_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxKeyEvent_m_keyCode_get(_arg0);
+ _result = (long )wxKeyEvent_m_keyCode_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_controlDown_set(_arg0,_arg1);
+ _result = (bool )wxKeyEvent_m_controlDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_controlDown_get(_arg0);
+ _result = (bool )wxKeyEvent_m_controlDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_shiftDown_set(_arg0,_arg1);
+ _result = (bool )wxKeyEvent_m_shiftDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_shiftDown_get(_arg0);
+ _result = (bool )wxKeyEvent_m_shiftDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_altDown_set(_arg0,_arg1);
+ _result = (bool )wxKeyEvent_m_altDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_altDown_get(_arg0);
+ _result = (bool )wxKeyEvent_m_altDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_metaDown_set(_arg0,_arg1);
+ _result = (bool )wxKeyEvent_m_metaDown_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_metaDown_get(_arg0);
+ _result = (bool )wxKeyEvent_m_metaDown_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_scanCode_set(_arg0,_arg1);
+ _result = (bool )wxKeyEvent_m_scanCode_set(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxKeyEvent_m_scanCode_get(_arg0);
+ _result = (bool )wxKeyEvent_m_scanCode_get(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxNavigationKeyEvent *)new_wxNavigationKeyEvent();
+ _result = (wxNavigationKeyEvent *)new_wxNavigationKeyEvent();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxNavigationKeyEvent_GetDirection(_arg0);
+ _result = (bool )wxNavigationKeyEvent_GetDirection(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxNavigationKeyEvent_SetDirection(_arg0,_arg1);
+ wxNavigationKeyEvent_SetDirection(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxNavigationKeyEvent_IsWindowChange(_arg0);
+ _result = (bool )wxNavigationKeyEvent_IsWindowChange(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxNavigationKeyEvent_SetWindowChange(_arg0,_arg1);
+ wxNavigationKeyEvent_SetWindowChange(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindow *)wxNavigationKeyEvent_GetCurrentFocus(_arg0);
+ _result = (wxWindow *)wxNavigationKeyEvent_GetCurrentFocus(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxNavigationKeyEvent_SetCurrentFocus(_arg0,_arg1);
+ wxNavigationKeyEvent_SetCurrentFocus(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxMoveEvent *)new_wxMoveEvent(*_arg0,_arg1);
+ _result = (wxMoveEvent *)new_wxMoveEvent(*_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxMoveEvent_GetPosition(_arg0));
+ _result = new wxPoint (wxMoveEvent_GetPosition(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPaintEvent *)new_wxPaintEvent(_arg0);
+ _result = (wxPaintEvent *)new_wxPaintEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxEraseEvent *)new_wxEraseEvent(_arg0,_arg1);
+ _result = (wxEraseEvent *)new_wxEraseEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxDC *)wxEraseEvent_GetDC(_arg0);
+ _result = (wxDC *)wxEraseEvent_GetDC(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxFocusEvent *)new_wxFocusEvent(_arg0,_arg1);
+ _result = (wxFocusEvent *)new_wxFocusEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxChildFocusEvent *)new_wxChildFocusEvent(_arg0);
+ _result = (wxChildFocusEvent *)new_wxChildFocusEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindow *)wxChildFocusEvent_GetWindow(_arg0);
+ _result = (wxWindow *)wxChildFocusEvent_GetWindow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxActivateEvent *)new_wxActivateEvent(_arg0,_arg1,_arg2);
+ _result = (wxActivateEvent *)new_wxActivateEvent(_arg0,_arg1,_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxActivateEvent_GetActive(_arg0);
+ _result = (bool )wxActivateEvent_GetActive(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxInitDialogEvent *)new_wxInitDialogEvent(_arg0);
+ _result = (wxInitDialogEvent *)new_wxInitDialogEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxMenuEvent *)new_wxMenuEvent(_arg0,_arg1);
+ _result = (wxMenuEvent *)new_wxMenuEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxMenuEvent_GetMenuId(_arg0);
+ _result = (int )wxMenuEvent_GetMenuId(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxMenuEvent_IsPopup(_arg0);
+ _result = (bool )wxMenuEvent_IsPopup(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxShowEvent *)new_wxShowEvent(_arg0,_arg1);
+ _result = (wxShowEvent *)new_wxShowEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxShowEvent_SetShow(_arg0,_arg1);
+ wxShowEvent_SetShow(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxShowEvent_GetShow(_arg0);
+ _result = (bool )wxShowEvent_GetShow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxIconizeEvent *)new_wxIconizeEvent(_arg0,_arg1);
+ _result = (wxIconizeEvent *)new_wxIconizeEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxIconizeEvent_Iconized(_arg0);
+ _result = (bool )wxIconizeEvent_Iconized(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxMaximizeEvent *)new_wxMaximizeEvent(_arg0);
+ _result = (wxMaximizeEvent *)new_wxMaximizeEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxJoystickEvent *)new_wxJoystickEvent(_arg0,_arg1,_arg2,_arg3);
+ _result = (wxJoystickEvent *)new_wxJoystickEvent(_arg0,_arg1,_arg2,_arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxJoystickEvent_GetPosition(_arg0));
+ _result = new wxPoint (wxJoystickEvent_GetPosition(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxJoystickEvent_GetZPosition(_arg0);
+ _result = (int )wxJoystickEvent_GetZPosition(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxJoystickEvent_GetButtonState(_arg0);
+ _result = (int )wxJoystickEvent_GetButtonState(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxJoystickEvent_GetButtonChange(_arg0);
+ _result = (int )wxJoystickEvent_GetButtonChange(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxJoystickEvent_GetJoystick(_arg0);
+ _result = (int )wxJoystickEvent_GetJoystick(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxJoystickEvent_SetJoystick(_arg0,_arg1);
+ wxJoystickEvent_SetJoystick(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxJoystickEvent_SetButtonState(_arg0,_arg1);
+ wxJoystickEvent_SetButtonState(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxJoystickEvent_SetButtonChange(_arg0,_arg1);
+ wxJoystickEvent_SetButtonChange(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxJoystickEvent_SetPosition(_arg0,*_arg1);
+ wxJoystickEvent_SetPosition(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxJoystickEvent_SetZPosition(_arg0,_arg1);
+ wxJoystickEvent_SetZPosition(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_IsButton(_arg0);
+ _result = (bool )wxJoystickEvent_IsButton(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_IsMove(_arg0);
+ _result = (bool )wxJoystickEvent_IsMove(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_IsZMove(_arg0);
+ _result = (bool )wxJoystickEvent_IsZMove(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_ButtonDown(_arg0,_arg1);
+ _result = (bool )wxJoystickEvent_ButtonDown(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_ButtonUp(_arg0,_arg1);
+ _result = (bool )wxJoystickEvent_ButtonUp(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxJoystickEvent_ButtonIsDown(_arg0,_arg1);
+ _result = (bool )wxJoystickEvent_ButtonIsDown(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxPoint (wxDropFilesEvent_GetPosition(_arg0));
+ _result = new wxPoint (wxDropFilesEvent_GetPosition(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxDropFilesEvent_GetNumberOfFiles(_arg0);
+ _result = (int )wxDropFilesEvent_GetNumberOfFiles(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
for (int i=0; i<count; i++) {
+#if wxUSE_UNICODE
+ PyList_SetItem(list, i, PyUnicode_FromUnicode(files[i], files[i].Len()));
+#else
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
+#endif
}
return list;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (PyObject *)wxDropFilesEvent_GetFiles(_arg0);
+ _result = (PyObject *)wxDropFilesEvent_GetFiles(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxIdleEvent *)new_wxIdleEvent();
+ _result = (wxIdleEvent *)new_wxIdleEvent();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxIdleEvent_RequestMore(_arg0,_arg1);
+ wxIdleEvent_RequestMore(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxIdleEvent_MoreRequested(_arg0);
+ _result = (bool )wxIdleEvent_MoreRequested(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxUpdateUIEvent *)new_wxUpdateUIEvent(_arg0);
+ _result = (wxUpdateUIEvent *)new_wxUpdateUIEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxUpdateUIEvent_GetChecked(_arg0);
+ _result = (bool )wxUpdateUIEvent_GetChecked(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxUpdateUIEvent_GetEnabled(_arg0);
+ _result = (bool )wxUpdateUIEvent_GetEnabled(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = new wxString (wxUpdateUIEvent_GetText(_arg0));
+ _result = new wxString (wxUpdateUIEvent_GetText(_arg0));
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
{
delete _result;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxUpdateUIEvent_GetSetText(_arg0);
+ _result = (bool )wxUpdateUIEvent_GetSetText(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxUpdateUIEvent_GetSetChecked(_arg0);
+ _result = (bool )wxUpdateUIEvent_GetSetChecked(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxUpdateUIEvent_GetSetEnabled(_arg0);
+ _result = (bool )wxUpdateUIEvent_GetSetEnabled(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxUpdateUIEvent_Check(_arg0,_arg1);
+ wxUpdateUIEvent_Check(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxUpdateUIEvent_Enable(_arg0,_arg1);
+ wxUpdateUIEvent_Enable(_arg0,_arg1);
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)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxUpdateUIEvent_SetText(_arg0,*_arg1);
+ wxUpdateUIEvent_SetText(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxSysColourChangedEvent *)new_wxSysColourChangedEvent();
+ _result = (wxSysColourChangedEvent *)new_wxSysColourChangedEvent();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxNotifyEvent *)new_wxNotifyEvent(_arg0,_arg1);
+ _result = (wxNotifyEvent *)new_wxNotifyEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxNotifyEvent_IsAllowed(_arg0);
+ _result = (bool )wxNotifyEvent_IsAllowed(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxNotifyEvent_Allow(_arg0);
+ wxNotifyEvent_Allow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxNotifyEvent_Veto(_arg0);
+ wxNotifyEvent_Veto(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxDisplayChangedEvent *)new_wxDisplayChangedEvent();
+ _result = (wxDisplayChangedEvent *)new_wxDisplayChangedEvent();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPaletteChangedEvent *)new_wxPaletteChangedEvent(_arg0);
+ _result = (wxPaletteChangedEvent *)new_wxPaletteChangedEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPaletteChangedEvent_SetChangedWindow(_arg0,_arg1);
+ wxPaletteChangedEvent_SetChangedWindow(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindow *)wxPaletteChangedEvent_GetChangedWindow(_arg0);
+ _result = (wxWindow *)wxPaletteChangedEvent_GetChangedWindow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxQueryNewPaletteEvent *)new_wxQueryNewPaletteEvent(_arg0);
+ _result = (wxQueryNewPaletteEvent *)new_wxQueryNewPaletteEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
_arg1 = (bool ) tempbool1;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxQueryNewPaletteEvent_SetPaletteRealized(_arg0,_arg1);
+ wxQueryNewPaletteEvent_SetPaletteRealized(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxQueryNewPaletteEvent_GetPaletteRealized(_arg0);
+ _result = (bool )wxQueryNewPaletteEvent_GetPaletteRealized(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindowCreateEvent *)new_wxWindowCreateEvent(_arg0);
+ _result = (wxWindowCreateEvent *)new_wxWindowCreateEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindow *)wxWindowCreateEvent_GetWindow(_arg0);
+ _result = (wxWindow *)wxWindowCreateEvent_GetWindow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindowDestroyEvent *)new_wxWindowDestroyEvent(_arg0);
+ _result = (wxWindowDestroyEvent *)new_wxWindowDestroyEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxWindow *)wxWindowDestroyEvent_GetWindow(_arg0);
+ _result = (wxWindow *)wxWindowDestroyEvent_GetWindow(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxTimerEvent *)new_wxTimerEvent(_arg0,_arg1);
+ _result = (wxTimerEvent *)new_wxTimerEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (int )wxTimerEvent_GetInterval(_arg0);
+ _result = (int )wxTimerEvent_GetInterval(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxTextUrlEvent *)new_wxTextUrlEvent(_arg0,*_arg1,_arg2,_arg3);
+ _result = (wxTextUrlEvent *)new_wxTextUrlEvent(_arg0,*_arg1,_arg2,_arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- const wxMouseEvent & _result_ref = wxTextUrlEvent_GetMouseEvent(_arg0);
+ const wxMouseEvent & _result_ref = wxTextUrlEvent_GetMouseEvent(_arg0);
_result = (wxMouseEvent *) &_result_ref;
wxPyEndAllowThreads(__tstate);
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxTextUrlEvent_GetURLStart(_arg0);
+ _result = (long )wxTextUrlEvent_GetURLStart(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (long )wxTextUrlEvent_GetURLEnd(_arg0);
+ _result = (long )wxTextUrlEvent_GetURLEnd(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPyEvent *)new_wxPyEvent(_arg0);
+ _result = (wxPyEvent *)new_wxPyEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- delete_wxPyEvent(_arg0);
+ delete_wxPyEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPyEvent_SetSelf(_arg0,_arg1);
+ wxPyEvent_SetSelf(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (PyObject *)wxPyEvent_GetSelf(_arg0);
+ _result = (PyObject *)wxPyEvent_GetSelf(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
return NULL;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxPyCommandEvent *)new_wxPyCommandEvent(_arg0,_arg1);
+ _result = (wxPyCommandEvent *)new_wxPyCommandEvent(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- delete_wxPyCommandEvent(_arg0);
+ delete_wxPyCommandEvent(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- wxPyCommandEvent_SetSelf(_arg0,_arg1);
+ wxPyCommandEvent_SetSelf(_arg0,_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (PyObject *)wxPyCommandEvent_GetSelf(_arg0);
+ _result = (PyObject *)wxPyCommandEvent_GetSelf(_arg0);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;