| 1 | /* |
| 2 | * FILE : src/gtk/windows.cpp |
| 3 | * |
| 4 | * This file was automatically generated by : |
| 5 | * Simplified Wrapper and Interface Generator (SWIG) |
| 6 | * Version 1.1 (Build 883) |
| 7 | * |
| 8 | * Portions Copyright (c) 1995-1998 |
| 9 | * The University of Utah and The Regents of the University of California. |
| 10 | * Permission is granted to distribute this file in any manner provided |
| 11 | * this notice remains intact. |
| 12 | * |
| 13 | * Do not make changes to this file--changes will be lost! |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | |
| 18 | #define SWIGCODE |
| 19 | /* Implementation : PYTHON */ |
| 20 | |
| 21 | #define SWIGPYTHON |
| 22 | #include <string.h> |
| 23 | #include <stdlib.h> |
| 24 | /* Definitions for Windows/Unix exporting */ |
| 25 | #if defined(__WIN32__) |
| 26 | # if defined(_MSC_VER) |
| 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
| 28 | # else |
| 29 | # if defined(__BORLANDC__) |
| 30 | # define SWIGEXPORT(a) a _export |
| 31 | # else |
| 32 | # define SWIGEXPORT(a) a |
| 33 | # endif |
| 34 | # endif |
| 35 | #else |
| 36 | # define SWIGEXPORT(a) a |
| 37 | #endif |
| 38 | |
| 39 | #include "Python.h" |
| 40 | |
| 41 | #ifdef __cplusplus |
| 42 | extern "C" { |
| 43 | #endif |
| 44 | |
| 45 | extern void SWIG_MakePtr(char *, void *, char *); |
| 46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); |
| 47 | extern char *SWIG_GetPtr(char *, void **, char *); |
| 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
| 49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
| 50 | extern PyObject *SWIG_newvarlink(void); |
| 51 | #ifdef __cplusplus |
| 52 | } |
| 53 | #endif |
| 54 | #define SWIG_init initwindowsc |
| 55 | |
| 56 | #define SWIG_name "windowsc" |
| 57 | |
| 58 | #include "helpers.h" |
| 59 | #include <wx/menuitem.h> |
| 60 | #include <wx/tooltip.h> |
| 61 | |
| 62 | |
| 63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
| 64 | PyObject* o2; |
| 65 | PyObject* o3; |
| 66 | |
| 67 | if (!target) { |
| 68 | target = o; |
| 69 | } else if (target == Py_None) { |
| 70 | Py_DECREF(Py_None); |
| 71 | target = o; |
| 72 | } else { |
| 73 | if (!PyTuple_Check(target)) { |
| 74 | o2 = target; |
| 75 | target = PyTuple_New(1); |
| 76 | PyTuple_SetItem(target, 0, o2); |
| 77 | } |
| 78 | o3 = PyTuple_New(1); |
| 79 | PyTuple_SetItem(o3, 0, o); |
| 80 | |
| 81 | o2 = target; |
| 82 | target = PySequence_Concat(o2, o3); |
| 83 | Py_DECREF(o2); |
| 84 | Py_DECREF(o3); |
| 85 | } |
| 86 | return target; |
| 87 | } |
| 88 | |
| 89 | // Put some wx default wxChar* values into wxStrings. |
| 90 | DECLARE_DEF_STRING(PanelNameStr); |
| 91 | static const wxString wxPyEmptyString(wxT("")); |
| 92 | |
| 93 | class wxPyValidator : public wxValidator { |
| 94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); |
| 95 | public: |
| 96 | wxPyValidator() { |
| 97 | } |
| 98 | |
| 99 | ~wxPyValidator() { |
| 100 | } |
| 101 | |
| 102 | wxObject* Clone() const { |
| 103 | wxPyValidator* ptr = NULL; |
| 104 | wxPyValidator* self = (wxPyValidator*)this; |
| 105 | |
| 106 | wxPyBeginBlockThreads(); |
| 107 | if (self->m_myInst.findCallback("Clone")) { |
| 108 | PyObject* ro; |
| 109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); |
| 110 | if (ro) { |
| 111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); |
| 112 | Py_DECREF(ro); |
| 113 | } |
| 114 | } |
| 115 | wxPyEndBlockThreads(); |
| 116 | |
| 117 | // This is very dangerous!!! But is the only way I could find |
| 118 | // to squash a memory leak. Currently it is okay, but if the |
| 119 | // validator architecture in wxWindows ever changes, problems |
| 120 | // could arise. |
| 121 | delete self; |
| 122 | return ptr; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
| 127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); |
| 128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); |
| 129 | |
| 130 | PYPRIVATE; |
| 131 | }; |
| 132 | |
| 133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); |
| 134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); |
| 135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); |
| 136 | |
| 137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); |
| 138 | |
| 139 | |
| 140 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { |
| 141 | return wxWindow::FindWindowById(id, parent); |
| 142 | } |
| 143 | |
| 144 | wxWindow* wxFindWindowByName( const wxString& name, |
| 145 | const wxWindow *parent = NULL ) { |
| 146 | return wxWindow::FindWindowByName(name, parent); |
| 147 | } |
| 148 | |
| 149 | wxWindow* wxFindWindowByLabel( const wxString& label, |
| 150 | const wxWindow *parent = NULL ) { |
| 151 | return wxWindow::FindWindowByLabel(label, parent); |
| 152 | } |
| 153 | #ifdef __cplusplus |
| 154 | extern "C" { |
| 155 | #endif |
| 156 | static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 157 | PyObject * _resultobj; |
| 158 | wxWindow * _result; |
| 159 | long _arg0; |
| 160 | wxWindow * _arg1 = (wxWindow *) NULL; |
| 161 | PyObject * _argo1 = 0; |
| 162 | char *_kwnames[] = { "id","parent", NULL }; |
| 163 | |
| 164 | self = self; |
| 165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1)) |
| 166 | return NULL; |
| 167 | if (_argo1) { |
| 168 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 169 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p."); |
| 171 | return NULL; |
| 172 | } |
| 173 | } |
| 174 | { |
| 175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 176 | _result = (wxWindow *)wxFindWindowById(_arg0,_arg1); |
| 177 | |
| 178 | wxPyEndAllowThreads(__tstate); |
| 179 | if (PyErr_Occurred()) return NULL; |
| 180 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 181 | return _resultobj; |
| 182 | } |
| 183 | |
| 184 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 185 | PyObject * _resultobj; |
| 186 | wxWindow * _result; |
| 187 | wxString * _arg0; |
| 188 | wxWindow * _arg1 = (wxWindow *) NULL; |
| 189 | PyObject * _obj0 = 0; |
| 190 | PyObject * _argo1 = 0; |
| 191 | char *_kwnames[] = { "name","parent", NULL }; |
| 192 | |
| 193 | self = self; |
| 194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
| 195 | return NULL; |
| 196 | { |
| 197 | _arg0 = wxString_in_helper(_obj0); |
| 198 | if (_arg0 == NULL) |
| 199 | return NULL; |
| 200 | } |
| 201 | if (_argo1) { |
| 202 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 203 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
| 205 | return NULL; |
| 206 | } |
| 207 | } |
| 208 | { |
| 209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 210 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); |
| 211 | |
| 212 | wxPyEndAllowThreads(__tstate); |
| 213 | if (PyErr_Occurred()) return NULL; |
| 214 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 215 | { |
| 216 | if (_obj0) |
| 217 | delete _arg0; |
| 218 | } |
| 219 | return _resultobj; |
| 220 | } |
| 221 | |
| 222 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 223 | PyObject * _resultobj; |
| 224 | wxWindow * _result; |
| 225 | wxString * _arg0; |
| 226 | wxWindow * _arg1 = (wxWindow *) NULL; |
| 227 | PyObject * _obj0 = 0; |
| 228 | PyObject * _argo1 = 0; |
| 229 | char *_kwnames[] = { "label","parent", NULL }; |
| 230 | |
| 231 | self = self; |
| 232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
| 233 | return NULL; |
| 234 | { |
| 235 | _arg0 = wxString_in_helper(_obj0); |
| 236 | if (_arg0 == NULL) |
| 237 | return NULL; |
| 238 | } |
| 239 | if (_argo1) { |
| 240 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
| 243 | return NULL; |
| 244 | } |
| 245 | } |
| 246 | { |
| 247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 248 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); |
| 249 | |
| 250 | wxPyEndAllowThreads(__tstate); |
| 251 | if (PyErr_Occurred()) return NULL; |
| 252 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 253 | { |
| 254 | if (_obj0) |
| 255 | delete _arg0; |
| 256 | } |
| 257 | return _resultobj; |
| 258 | } |
| 259 | |
| 260 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
| 261 | wxEvtHandler *src; |
| 262 | wxObject *dest; |
| 263 | src = (wxEvtHandler *) ptr; |
| 264 | dest = (wxObject *) src; |
| 265 | return (void *) dest; |
| 266 | } |
| 267 | |
| 268 | #define new_wxEvtHandler() (new wxEvtHandler()) |
| 269 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 270 | PyObject * _resultobj; |
| 271 | wxEvtHandler * _result; |
| 272 | char *_kwnames[] = { NULL }; |
| 273 | char _ptemp[128]; |
| 274 | |
| 275 | self = self; |
| 276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) |
| 277 | return NULL; |
| 278 | { |
| 279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 280 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
| 281 | |
| 282 | wxPyEndAllowThreads(__tstate); |
| 283 | if (PyErr_Occurred()) return NULL; |
| 284 | } if (_result) { |
| 285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); |
| 286 | _resultobj = Py_BuildValue("s",_ptemp); |
| 287 | } else { |
| 288 | Py_INCREF(Py_None); |
| 289 | _resultobj = Py_None; |
| 290 | } |
| 291 | return _resultobj; |
| 292 | } |
| 293 | |
| 294 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
| 295 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 296 | PyObject * _resultobj; |
| 297 | bool _result; |
| 298 | wxEvtHandler * _arg0; |
| 299 | wxEvent * _arg1; |
| 300 | PyObject * _argo0 = 0; |
| 301 | PyObject * _argo1 = 0; |
| 302 | char *_kwnames[] = { "self","event", NULL }; |
| 303 | |
| 304 | self = self; |
| 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) |
| 306 | return NULL; |
| 307 | if (_argo0) { |
| 308 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); |
| 311 | return NULL; |
| 312 | } |
| 313 | } |
| 314 | if (_argo1) { |
| 315 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
| 317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); |
| 318 | return NULL; |
| 319 | } |
| 320 | } |
| 321 | { |
| 322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 323 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
| 324 | |
| 325 | wxPyEndAllowThreads(__tstate); |
| 326 | if (PyErr_Occurred()) return NULL; |
| 327 | } _resultobj = Py_BuildValue("i",_result); |
| 328 | return _resultobj; |
| 329 | } |
| 330 | |
| 331 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
| 332 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 333 | PyObject * _resultobj; |
| 334 | wxEvtHandler * _arg0; |
| 335 | wxEvent * _arg1; |
| 336 | PyObject * _argo0 = 0; |
| 337 | PyObject * _argo1 = 0; |
| 338 | char *_kwnames[] = { "self","event", NULL }; |
| 339 | |
| 340 | self = self; |
| 341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) |
| 342 | return NULL; |
| 343 | if (_argo0) { |
| 344 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); |
| 347 | return NULL; |
| 348 | } |
| 349 | } |
| 350 | if (_argo1) { |
| 351 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
| 353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); |
| 354 | return NULL; |
| 355 | } |
| 356 | } |
| 357 | { |
| 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 359 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
| 360 | |
| 361 | wxPyEndAllowThreads(__tstate); |
| 362 | if (PyErr_Occurred()) return NULL; |
| 363 | } Py_INCREF(Py_None); |
| 364 | _resultobj = Py_None; |
| 365 | return _resultobj; |
| 366 | } |
| 367 | |
| 368 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
| 369 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 370 | PyObject * _resultobj; |
| 371 | bool _result; |
| 372 | wxEvtHandler * _arg0; |
| 373 | PyObject * _argo0 = 0; |
| 374 | char *_kwnames[] = { "self", NULL }; |
| 375 | |
| 376 | self = self; |
| 377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) |
| 378 | return NULL; |
| 379 | if (_argo0) { |
| 380 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); |
| 383 | return NULL; |
| 384 | } |
| 385 | } |
| 386 | { |
| 387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 388 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
| 389 | |
| 390 | wxPyEndAllowThreads(__tstate); |
| 391 | if (PyErr_Occurred()) return NULL; |
| 392 | } _resultobj = Py_BuildValue("i",_result); |
| 393 | return _resultobj; |
| 394 | } |
| 395 | |
| 396 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) |
| 397 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 398 | PyObject * _resultobj; |
| 399 | wxEvtHandler * _arg0; |
| 400 | bool _arg1; |
| 401 | PyObject * _argo0 = 0; |
| 402 | int tempbool1; |
| 403 | char *_kwnames[] = { "self","enabled", NULL }; |
| 404 | |
| 405 | self = self; |
| 406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) |
| 407 | return NULL; |
| 408 | if (_argo0) { |
| 409 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); |
| 412 | return NULL; |
| 413 | } |
| 414 | } |
| 415 | _arg1 = (bool ) tempbool1; |
| 416 | { |
| 417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 418 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
| 419 | |
| 420 | wxPyEndAllowThreads(__tstate); |
| 421 | if (PyErr_Occurred()) return NULL; |
| 422 | } Py_INCREF(Py_None); |
| 423 | _resultobj = Py_None; |
| 424 | return _resultobj; |
| 425 | } |
| 426 | |
| 427 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) |
| 428 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 429 | PyObject * _resultobj; |
| 430 | wxEvtHandler * _result; |
| 431 | wxEvtHandler * _arg0; |
| 432 | PyObject * _argo0 = 0; |
| 433 | char *_kwnames[] = { "self", NULL }; |
| 434 | |
| 435 | self = self; |
| 436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) |
| 437 | return NULL; |
| 438 | if (_argo0) { |
| 439 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); |
| 442 | return NULL; |
| 443 | } |
| 444 | } |
| 445 | { |
| 446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 447 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
| 448 | |
| 449 | wxPyEndAllowThreads(__tstate); |
| 450 | if (PyErr_Occurred()) return NULL; |
| 451 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 452 | return _resultobj; |
| 453 | } |
| 454 | |
| 455 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) |
| 456 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 457 | PyObject * _resultobj; |
| 458 | wxEvtHandler * _result; |
| 459 | wxEvtHandler * _arg0; |
| 460 | PyObject * _argo0 = 0; |
| 461 | char *_kwnames[] = { "self", NULL }; |
| 462 | |
| 463 | self = self; |
| 464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) |
| 465 | return NULL; |
| 466 | if (_argo0) { |
| 467 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); |
| 470 | return NULL; |
| 471 | } |
| 472 | } |
| 473 | { |
| 474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 475 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
| 476 | |
| 477 | wxPyEndAllowThreads(__tstate); |
| 478 | if (PyErr_Occurred()) return NULL; |
| 479 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 480 | return _resultobj; |
| 481 | } |
| 482 | |
| 483 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) |
| 484 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 485 | PyObject * _resultobj; |
| 486 | wxEvtHandler * _arg0; |
| 487 | wxEvtHandler * _arg1; |
| 488 | PyObject * _argo0 = 0; |
| 489 | PyObject * _argo1 = 0; |
| 490 | char *_kwnames[] = { "self","handler", NULL }; |
| 491 | |
| 492 | self = self; |
| 493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) |
| 494 | return NULL; |
| 495 | if (_argo0) { |
| 496 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); |
| 499 | return NULL; |
| 500 | } |
| 501 | } |
| 502 | if (_argo1) { |
| 503 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); |
| 506 | return NULL; |
| 507 | } |
| 508 | } |
| 509 | { |
| 510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 511 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
| 512 | |
| 513 | wxPyEndAllowThreads(__tstate); |
| 514 | if (PyErr_Occurred()) return NULL; |
| 515 | } Py_INCREF(Py_None); |
| 516 | _resultobj = Py_None; |
| 517 | return _resultobj; |
| 518 | } |
| 519 | |
| 520 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) |
| 521 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 522 | PyObject * _resultobj; |
| 523 | wxEvtHandler * _arg0; |
| 524 | wxEvtHandler * _arg1; |
| 525 | PyObject * _argo0 = 0; |
| 526 | PyObject * _argo1 = 0; |
| 527 | char *_kwnames[] = { "self","handler", NULL }; |
| 528 | |
| 529 | self = self; |
| 530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) |
| 531 | return NULL; |
| 532 | if (_argo0) { |
| 533 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); |
| 536 | return NULL; |
| 537 | } |
| 538 | } |
| 539 | if (_argo1) { |
| 540 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); |
| 543 | return NULL; |
| 544 | } |
| 545 | } |
| 546 | { |
| 547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 548 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
| 549 | |
| 550 | wxPyEndAllowThreads(__tstate); |
| 551 | if (PyErr_Occurred()) return NULL; |
| 552 | } Py_INCREF(Py_None); |
| 553 | _resultobj = Py_None; |
| 554 | return _resultobj; |
| 555 | } |
| 556 | |
| 557 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { |
| 558 | if (PyCallable_Check(func)) { |
| 559 | self->Connect(id, lastId, eventType, |
| 560 | (wxObjectEventFunction) &wxPyCallback::EventThunker, |
| 561 | new wxPyCallback(func)); |
| 562 | } |
| 563 | else if (func == Py_None) { |
| 564 | self->Disconnect(id, lastId, eventType, |
| 565 | (wxObjectEventFunction) |
| 566 | &wxPyCallback::EventThunker); |
| 567 | } |
| 568 | else { |
| 569 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); |
| 570 | } |
| 571 | } |
| 572 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 573 | PyObject * _resultobj; |
| 574 | wxEvtHandler * _arg0; |
| 575 | int _arg1; |
| 576 | int _arg2; |
| 577 | int _arg3; |
| 578 | PyObject * _arg4; |
| 579 | PyObject * _argo0 = 0; |
| 580 | PyObject * _obj4 = 0; |
| 581 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; |
| 582 | |
| 583 | self = self; |
| 584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
| 585 | return NULL; |
| 586 | if (_argo0) { |
| 587 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); |
| 590 | return NULL; |
| 591 | } |
| 592 | } |
| 593 | { |
| 594 | _arg4 = _obj4; |
| 595 | } |
| 596 | { |
| 597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 598 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
| 599 | |
| 600 | wxPyEndAllowThreads(__tstate); |
| 601 | if (PyErr_Occurred()) return NULL; |
| 602 | } Py_INCREF(Py_None); |
| 603 | _resultobj = Py_None; |
| 604 | return _resultobj; |
| 605 | } |
| 606 | |
| 607 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
| 608 | return self->Disconnect(id, lastId, eventType, |
| 609 | (wxObjectEventFunction) |
| 610 | &wxPyCallback::EventThunker); |
| 611 | } |
| 612 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 613 | PyObject * _resultobj; |
| 614 | bool _result; |
| 615 | wxEvtHandler * _arg0; |
| 616 | int _arg1; |
| 617 | int _arg2 = (int ) -1; |
| 618 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; |
| 619 | PyObject * _argo0 = 0; |
| 620 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; |
| 621 | |
| 622 | self = self; |
| 623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
| 624 | return NULL; |
| 625 | if (_argo0) { |
| 626 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); |
| 629 | return NULL; |
| 630 | } |
| 631 | } |
| 632 | { |
| 633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 634 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
| 635 | |
| 636 | wxPyEndAllowThreads(__tstate); |
| 637 | if (PyErr_Occurred()) return NULL; |
| 638 | } _resultobj = Py_BuildValue("i",_result); |
| 639 | return _resultobj; |
| 640 | } |
| 641 | |
| 642 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
| 643 | self->SetClientObject(new wxPyOORClientData(_self)); |
| 644 | } |
| 645 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 646 | PyObject * _resultobj; |
| 647 | wxEvtHandler * _arg0; |
| 648 | PyObject * _arg1; |
| 649 | PyObject * _argo0 = 0; |
| 650 | PyObject * _obj1 = 0; |
| 651 | char *_kwnames[] = { "self","_self", NULL }; |
| 652 | |
| 653 | self = self; |
| 654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) |
| 655 | return NULL; |
| 656 | if (_argo0) { |
| 657 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { |
| 659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); |
| 660 | return NULL; |
| 661 | } |
| 662 | } |
| 663 | { |
| 664 | _arg1 = _obj1; |
| 665 | } |
| 666 | { |
| 667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 668 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
| 669 | |
| 670 | wxPyEndAllowThreads(__tstate); |
| 671 | if (PyErr_Occurred()) return NULL; |
| 672 | } Py_INCREF(Py_None); |
| 673 | _resultobj = Py_None; |
| 674 | return _resultobj; |
| 675 | } |
| 676 | |
| 677 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
| 678 | wxValidator *src; |
| 679 | wxEvtHandler *dest; |
| 680 | src = (wxValidator *) ptr; |
| 681 | dest = (wxEvtHandler *) src; |
| 682 | return (void *) dest; |
| 683 | } |
| 684 | |
| 685 | static void *SwigwxValidatorTowxObject(void *ptr) { |
| 686 | wxValidator *src; |
| 687 | wxObject *dest; |
| 688 | src = (wxValidator *) ptr; |
| 689 | dest = (wxObject *) src; |
| 690 | return (void *) dest; |
| 691 | } |
| 692 | |
| 693 | #define new_wxValidator() (new wxValidator()) |
| 694 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 695 | PyObject * _resultobj; |
| 696 | wxValidator * _result; |
| 697 | char *_kwnames[] = { NULL }; |
| 698 | char _ptemp[128]; |
| 699 | |
| 700 | self = self; |
| 701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) |
| 702 | return NULL; |
| 703 | { |
| 704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 705 | _result = (wxValidator *)new_wxValidator(); |
| 706 | |
| 707 | wxPyEndAllowThreads(__tstate); |
| 708 | if (PyErr_Occurred()) return NULL; |
| 709 | } if (_result) { |
| 710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); |
| 711 | _resultobj = Py_BuildValue("s",_ptemp); |
| 712 | } else { |
| 713 | Py_INCREF(Py_None); |
| 714 | _resultobj = Py_None; |
| 715 | } |
| 716 | return _resultobj; |
| 717 | } |
| 718 | |
| 719 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) |
| 720 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 721 | PyObject * _resultobj; |
| 722 | wxValidator * _result; |
| 723 | wxValidator * _arg0; |
| 724 | PyObject * _argo0 = 0; |
| 725 | char *_kwnames[] = { "self", NULL }; |
| 726 | |
| 727 | self = self; |
| 728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
| 729 | return NULL; |
| 730 | if (_argo0) { |
| 731 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
| 733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); |
| 734 | return NULL; |
| 735 | } |
| 736 | } |
| 737 | { |
| 738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 739 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
| 740 | |
| 741 | wxPyEndAllowThreads(__tstate); |
| 742 | if (PyErr_Occurred()) return NULL; |
| 743 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 744 | return _resultobj; |
| 745 | } |
| 746 | |
| 747 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
| 748 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 749 | PyObject * _resultobj; |
| 750 | wxWindow * _result; |
| 751 | wxValidator * _arg0; |
| 752 | PyObject * _argo0 = 0; |
| 753 | char *_kwnames[] = { "self", NULL }; |
| 754 | |
| 755 | self = self; |
| 756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
| 757 | return NULL; |
| 758 | if (_argo0) { |
| 759 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
| 761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); |
| 762 | return NULL; |
| 763 | } |
| 764 | } |
| 765 | { |
| 766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 767 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
| 768 | |
| 769 | wxPyEndAllowThreads(__tstate); |
| 770 | if (PyErr_Occurred()) return NULL; |
| 771 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 772 | return _resultobj; |
| 773 | } |
| 774 | |
| 775 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
| 776 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 777 | PyObject * _resultobj; |
| 778 | wxValidator * _arg0; |
| 779 | wxWindow * _arg1; |
| 780 | PyObject * _argo0 = 0; |
| 781 | PyObject * _argo1 = 0; |
| 782 | char *_kwnames[] = { "self","window", NULL }; |
| 783 | |
| 784 | self = self; |
| 785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
| 786 | return NULL; |
| 787 | if (_argo0) { |
| 788 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
| 790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); |
| 791 | return NULL; |
| 792 | } |
| 793 | } |
| 794 | if (_argo1) { |
| 795 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); |
| 798 | return NULL; |
| 799 | } |
| 800 | } |
| 801 | { |
| 802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 803 | wxValidator_SetWindow(_arg0,_arg1); |
| 804 | |
| 805 | wxPyEndAllowThreads(__tstate); |
| 806 | if (PyErr_Occurred()) return NULL; |
| 807 | } Py_INCREF(Py_None); |
| 808 | _resultobj = Py_None; |
| 809 | return _resultobj; |
| 810 | } |
| 811 | |
| 812 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 813 | PyObject * _resultobj; |
| 814 | bool _result; |
| 815 | char *_kwnames[] = { NULL }; |
| 816 | |
| 817 | self = self; |
| 818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) |
| 819 | return NULL; |
| 820 | { |
| 821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 822 | _result = (bool )wxValidator::IsSilent(); |
| 823 | |
| 824 | wxPyEndAllowThreads(__tstate); |
| 825 | if (PyErr_Occurred()) return NULL; |
| 826 | } _resultobj = Py_BuildValue("i",_result); |
| 827 | return _resultobj; |
| 828 | } |
| 829 | |
| 830 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 831 | PyObject * _resultobj; |
| 832 | int _arg0 = (int ) TRUE; |
| 833 | char *_kwnames[] = { "doIt", NULL }; |
| 834 | |
| 835 | self = self; |
| 836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) |
| 837 | return NULL; |
| 838 | { |
| 839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 840 | wxValidator::SetBellOnError(_arg0); |
| 841 | |
| 842 | wxPyEndAllowThreads(__tstate); |
| 843 | if (PyErr_Occurred()) return NULL; |
| 844 | } Py_INCREF(Py_None); |
| 845 | _resultobj = Py_None; |
| 846 | return _resultobj; |
| 847 | } |
| 848 | |
| 849 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
| 850 | wxPyValidator *src; |
| 851 | wxValidator *dest; |
| 852 | src = (wxPyValidator *) ptr; |
| 853 | dest = (wxValidator *) src; |
| 854 | return (void *) dest; |
| 855 | } |
| 856 | |
| 857 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { |
| 858 | wxPyValidator *src; |
| 859 | wxEvtHandler *dest; |
| 860 | src = (wxPyValidator *) ptr; |
| 861 | dest = (wxEvtHandler *) src; |
| 862 | return (void *) dest; |
| 863 | } |
| 864 | |
| 865 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
| 866 | wxPyValidator *src; |
| 867 | wxObject *dest; |
| 868 | src = (wxPyValidator *) ptr; |
| 869 | dest = (wxObject *) src; |
| 870 | return (void *) dest; |
| 871 | } |
| 872 | |
| 873 | #define new_wxPyValidator() (new wxPyValidator()) |
| 874 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 875 | PyObject * _resultobj; |
| 876 | wxPyValidator * _result; |
| 877 | char *_kwnames[] = { NULL }; |
| 878 | char _ptemp[128]; |
| 879 | |
| 880 | self = self; |
| 881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) |
| 882 | return NULL; |
| 883 | { |
| 884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 885 | _result = (wxPyValidator *)new_wxPyValidator(); |
| 886 | |
| 887 | wxPyEndAllowThreads(__tstate); |
| 888 | if (PyErr_Occurred()) return NULL; |
| 889 | } if (_result) { |
| 890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); |
| 891 | _resultobj = Py_BuildValue("s",_ptemp); |
| 892 | } else { |
| 893 | Py_INCREF(Py_None); |
| 894 | _resultobj = Py_None; |
| 895 | } |
| 896 | return _resultobj; |
| 897 | } |
| 898 | |
| 899 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
| 900 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 901 | PyObject * _resultobj; |
| 902 | wxPyValidator * _arg0; |
| 903 | PyObject * _arg1; |
| 904 | PyObject * _arg2; |
| 905 | int _arg3 = (int ) TRUE; |
| 906 | PyObject * _argo0 = 0; |
| 907 | PyObject * _obj1 = 0; |
| 908 | PyObject * _obj2 = 0; |
| 909 | char *_kwnames[] = { "self","self","_class","incref", NULL }; |
| 910 | |
| 911 | self = self; |
| 912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
| 913 | return NULL; |
| 914 | if (_argo0) { |
| 915 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
| 917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
| 918 | return NULL; |
| 919 | } |
| 920 | } |
| 921 | { |
| 922 | _arg1 = _obj1; |
| 923 | } |
| 924 | { |
| 925 | _arg2 = _obj2; |
| 926 | } |
| 927 | { |
| 928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 929 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
| 930 | |
| 931 | wxPyEndAllowThreads(__tstate); |
| 932 | if (PyErr_Occurred()) return NULL; |
| 933 | } Py_INCREF(Py_None); |
| 934 | _resultobj = Py_None; |
| 935 | return _resultobj; |
| 936 | } |
| 937 | |
| 938 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { |
| 939 | wxWindow *src; |
| 940 | wxEvtHandler *dest; |
| 941 | src = (wxWindow *) ptr; |
| 942 | dest = (wxEvtHandler *) src; |
| 943 | return (void *) dest; |
| 944 | } |
| 945 | |
| 946 | static void *SwigwxWindowTowxObject(void *ptr) { |
| 947 | wxWindow *src; |
| 948 | wxObject *dest; |
| 949 | src = (wxWindow *) ptr; |
| 950 | dest = (wxObject *) src; |
| 951 | return (void *) dest; |
| 952 | } |
| 953 | |
| 954 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 955 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 956 | PyObject * _resultobj; |
| 957 | wxWindow * _result; |
| 958 | wxWindow * _arg0; |
| 959 | wxWindowID _arg1; |
| 960 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
| 961 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; |
| 962 | long _arg4 = (long ) 0; |
| 963 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
| 964 | PyObject * _argo0 = 0; |
| 965 | wxPoint temp; |
| 966 | PyObject * _obj2 = 0; |
| 967 | wxSize temp0; |
| 968 | PyObject * _obj3 = 0; |
| 969 | PyObject * _obj5 = 0; |
| 970 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
| 971 | char _ptemp[128]; |
| 972 | |
| 973 | self = self; |
| 974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
| 975 | return NULL; |
| 976 | if (_argo0) { |
| 977 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
| 980 | return NULL; |
| 981 | } |
| 982 | } |
| 983 | if (_obj2) |
| 984 | { |
| 985 | _arg2 = &temp; |
| 986 | if (! wxPoint_helper(_obj2, &_arg2)) |
| 987 | return NULL; |
| 988 | } |
| 989 | if (_obj3) |
| 990 | { |
| 991 | _arg3 = &temp0; |
| 992 | if (! wxSize_helper(_obj3, &_arg3)) |
| 993 | return NULL; |
| 994 | } |
| 995 | if (_obj5) |
| 996 | { |
| 997 | _arg5 = wxString_in_helper(_obj5); |
| 998 | if (_arg5 == NULL) |
| 999 | return NULL; |
| 1000 | } |
| 1001 | { |
| 1002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1003 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
| 1004 | |
| 1005 | wxPyEndAllowThreads(__tstate); |
| 1006 | if (PyErr_Occurred()) return NULL; |
| 1007 | } if (_result) { |
| 1008 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); |
| 1009 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1010 | } else { |
| 1011 | Py_INCREF(Py_None); |
| 1012 | _resultobj = Py_None; |
| 1013 | } |
| 1014 | { |
| 1015 | if (_obj5) |
| 1016 | delete _arg5; |
| 1017 | } |
| 1018 | return _resultobj; |
| 1019 | } |
| 1020 | |
| 1021 | #define new_wxPreWindow() (new wxWindow()) |
| 1022 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1023 | PyObject * _resultobj; |
| 1024 | wxWindow * _result; |
| 1025 | char *_kwnames[] = { NULL }; |
| 1026 | char _ptemp[128]; |
| 1027 | |
| 1028 | self = self; |
| 1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) |
| 1030 | return NULL; |
| 1031 | { |
| 1032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1033 | _result = (wxWindow *)new_wxPreWindow(); |
| 1034 | |
| 1035 | wxPyEndAllowThreads(__tstate); |
| 1036 | if (PyErr_Occurred()) return NULL; |
| 1037 | } if (_result) { |
| 1038 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); |
| 1039 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1040 | } else { |
| 1041 | Py_INCREF(Py_None); |
| 1042 | _resultobj = Py_None; |
| 1043 | } |
| 1044 | return _resultobj; |
| 1045 | } |
| 1046 | |
| 1047 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 1048 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1049 | PyObject * _resultobj; |
| 1050 | bool _result; |
| 1051 | wxWindow * _arg0; |
| 1052 | wxWindow * _arg1; |
| 1053 | wxWindowID _arg2; |
| 1054 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
| 1055 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; |
| 1056 | long _arg5 = (long ) 0; |
| 1057 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
| 1058 | PyObject * _argo0 = 0; |
| 1059 | PyObject * _argo1 = 0; |
| 1060 | wxPoint temp; |
| 1061 | PyObject * _obj3 = 0; |
| 1062 | wxSize temp0; |
| 1063 | PyObject * _obj4 = 0; |
| 1064 | PyObject * _obj6 = 0; |
| 1065 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
| 1066 | |
| 1067 | self = self; |
| 1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
| 1069 | return NULL; |
| 1070 | if (_argo0) { |
| 1071 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); |
| 1074 | return NULL; |
| 1075 | } |
| 1076 | } |
| 1077 | if (_argo1) { |
| 1078 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 1079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); |
| 1081 | return NULL; |
| 1082 | } |
| 1083 | } |
| 1084 | if (_obj3) |
| 1085 | { |
| 1086 | _arg3 = &temp; |
| 1087 | if (! wxPoint_helper(_obj3, &_arg3)) |
| 1088 | return NULL; |
| 1089 | } |
| 1090 | if (_obj4) |
| 1091 | { |
| 1092 | _arg4 = &temp0; |
| 1093 | if (! wxSize_helper(_obj4, &_arg4)) |
| 1094 | return NULL; |
| 1095 | } |
| 1096 | if (_obj6) |
| 1097 | { |
| 1098 | _arg6 = wxString_in_helper(_obj6); |
| 1099 | if (_arg6 == NULL) |
| 1100 | return NULL; |
| 1101 | } |
| 1102 | { |
| 1103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1104 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
| 1105 | |
| 1106 | wxPyEndAllowThreads(__tstate); |
| 1107 | if (PyErr_Occurred()) return NULL; |
| 1108 | } _resultobj = Py_BuildValue("i",_result); |
| 1109 | { |
| 1110 | if (_obj6) |
| 1111 | delete _arg6; |
| 1112 | } |
| 1113 | return _resultobj; |
| 1114 | } |
| 1115 | |
| 1116 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
| 1117 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1118 | PyObject * _resultobj; |
| 1119 | wxWindow * _arg0; |
| 1120 | int _arg1 = (int ) wxBOTH; |
| 1121 | PyObject * _argo0 = 0; |
| 1122 | char *_kwnames[] = { "self","direction", NULL }; |
| 1123 | |
| 1124 | self = self; |
| 1125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
| 1126 | return NULL; |
| 1127 | if (_argo0) { |
| 1128 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
| 1131 | return NULL; |
| 1132 | } |
| 1133 | } |
| 1134 | { |
| 1135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1136 | wxWindow_Center(_arg0,_arg1); |
| 1137 | |
| 1138 | wxPyEndAllowThreads(__tstate); |
| 1139 | if (PyErr_Occurred()) return NULL; |
| 1140 | } Py_INCREF(Py_None); |
| 1141 | _resultobj = Py_None; |
| 1142 | return _resultobj; |
| 1143 | } |
| 1144 | |
| 1145 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) |
| 1146 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1147 | PyObject * _resultobj; |
| 1148 | wxWindow * _arg0; |
| 1149 | int _arg1 = (int ) wxBOTH; |
| 1150 | PyObject * _argo0 = 0; |
| 1151 | char *_kwnames[] = { "self","direction", NULL }; |
| 1152 | |
| 1153 | self = self; |
| 1154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
| 1155 | return NULL; |
| 1156 | if (_argo0) { |
| 1157 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
| 1160 | return NULL; |
| 1161 | } |
| 1162 | } |
| 1163 | { |
| 1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1165 | wxWindow_Centre(_arg0,_arg1); |
| 1166 | |
| 1167 | wxPyEndAllowThreads(__tstate); |
| 1168 | if (PyErr_Occurred()) return NULL; |
| 1169 | } Py_INCREF(Py_None); |
| 1170 | _resultobj = Py_None; |
| 1171 | return _resultobj; |
| 1172 | } |
| 1173 | |
| 1174 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
| 1175 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1176 | PyObject * _resultobj; |
| 1177 | wxWindow * _arg0; |
| 1178 | int _arg1 = (int ) wxBOTH; |
| 1179 | PyObject * _argo0 = 0; |
| 1180 | char *_kwnames[] = { "self","direction", NULL }; |
| 1181 | |
| 1182 | self = self; |
| 1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
| 1184 | return NULL; |
| 1185 | if (_argo0) { |
| 1186 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
| 1189 | return NULL; |
| 1190 | } |
| 1191 | } |
| 1192 | { |
| 1193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1194 | wxWindow_CentreOnParent(_arg0,_arg1); |
| 1195 | |
| 1196 | wxPyEndAllowThreads(__tstate); |
| 1197 | if (PyErr_Occurred()) return NULL; |
| 1198 | } Py_INCREF(Py_None); |
| 1199 | _resultobj = Py_None; |
| 1200 | return _resultobj; |
| 1201 | } |
| 1202 | |
| 1203 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) |
| 1204 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1205 | PyObject * _resultobj; |
| 1206 | wxWindow * _arg0; |
| 1207 | int _arg1 = (int ) wxBOTH; |
| 1208 | PyObject * _argo0 = 0; |
| 1209 | char *_kwnames[] = { "self","direction", NULL }; |
| 1210 | |
| 1211 | self = self; |
| 1212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
| 1213 | return NULL; |
| 1214 | if (_argo0) { |
| 1215 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
| 1218 | return NULL; |
| 1219 | } |
| 1220 | } |
| 1221 | { |
| 1222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1223 | wxWindow_CenterOnParent(_arg0,_arg1); |
| 1224 | |
| 1225 | wxPyEndAllowThreads(__tstate); |
| 1226 | if (PyErr_Occurred()) return NULL; |
| 1227 | } Py_INCREF(Py_None); |
| 1228 | _resultobj = Py_None; |
| 1229 | return _resultobj; |
| 1230 | } |
| 1231 | |
| 1232 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
| 1233 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1234 | PyObject * _resultobj; |
| 1235 | wxWindow * _arg0; |
| 1236 | int _arg1 = (int ) wxBOTH; |
| 1237 | PyObject * _argo0 = 0; |
| 1238 | char *_kwnames[] = { "self","direction", NULL }; |
| 1239 | |
| 1240 | self = self; |
| 1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) |
| 1242 | return NULL; |
| 1243 | if (_argo0) { |
| 1244 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); |
| 1247 | return NULL; |
| 1248 | } |
| 1249 | } |
| 1250 | { |
| 1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1252 | wxWindow_CentreOnScreen(_arg0,_arg1); |
| 1253 | |
| 1254 | wxPyEndAllowThreads(__tstate); |
| 1255 | if (PyErr_Occurred()) return NULL; |
| 1256 | } Py_INCREF(Py_None); |
| 1257 | _resultobj = Py_None; |
| 1258 | return _resultobj; |
| 1259 | } |
| 1260 | |
| 1261 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) |
| 1262 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1263 | PyObject * _resultobj; |
| 1264 | wxWindow * _arg0; |
| 1265 | int _arg1 = (int ) wxBOTH; |
| 1266 | PyObject * _argo0 = 0; |
| 1267 | char *_kwnames[] = { "self","direction", NULL }; |
| 1268 | |
| 1269 | self = self; |
| 1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) |
| 1271 | return NULL; |
| 1272 | if (_argo0) { |
| 1273 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); |
| 1276 | return NULL; |
| 1277 | } |
| 1278 | } |
| 1279 | { |
| 1280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1281 | wxWindow_CenterOnScreen(_arg0,_arg1); |
| 1282 | |
| 1283 | wxPyEndAllowThreads(__tstate); |
| 1284 | if (PyErr_Occurred()) return NULL; |
| 1285 | } Py_INCREF(Py_None); |
| 1286 | _resultobj = Py_None; |
| 1287 | return _resultobj; |
| 1288 | } |
| 1289 | |
| 1290 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
| 1291 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1292 | PyObject * _resultobj; |
| 1293 | wxWindow * _arg0; |
| 1294 | PyObject * _argo0 = 0; |
| 1295 | char *_kwnames[] = { "self", NULL }; |
| 1296 | |
| 1297 | self = self; |
| 1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) |
| 1299 | return NULL; |
| 1300 | if (_argo0) { |
| 1301 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); |
| 1304 | return NULL; |
| 1305 | } |
| 1306 | } |
| 1307 | { |
| 1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1309 | wxWindow_Clear(_arg0); |
| 1310 | |
| 1311 | wxPyEndAllowThreads(__tstate); |
| 1312 | if (PyErr_Occurred()) return NULL; |
| 1313 | } Py_INCREF(Py_None); |
| 1314 | _resultobj = Py_None; |
| 1315 | return _resultobj; |
| 1316 | } |
| 1317 | |
| 1318 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
| 1319 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1320 | PyObject * _resultobj; |
| 1321 | wxWindow * _arg0; |
| 1322 | int * _arg1; |
| 1323 | int * _arg2; |
| 1324 | PyObject * _argo0 = 0; |
| 1325 | int temp; |
| 1326 | PyObject * _obj1 = 0; |
| 1327 | int temp0; |
| 1328 | PyObject * _obj2 = 0; |
| 1329 | char *_kwnames[] = { "self","x","y", NULL }; |
| 1330 | |
| 1331 | self = self; |
| 1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
| 1333 | return NULL; |
| 1334 | if (_argo0) { |
| 1335 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
| 1338 | return NULL; |
| 1339 | } |
| 1340 | } |
| 1341 | { |
| 1342 | temp = (int) PyInt_AsLong(_obj1); |
| 1343 | _arg1 = &temp; |
| 1344 | } |
| 1345 | { |
| 1346 | temp0 = (int) PyInt_AsLong(_obj2); |
| 1347 | _arg2 = &temp0; |
| 1348 | } |
| 1349 | { |
| 1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1351 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
| 1352 | |
| 1353 | wxPyEndAllowThreads(__tstate); |
| 1354 | if (PyErr_Occurred()) return NULL; |
| 1355 | } Py_INCREF(Py_None); |
| 1356 | _resultobj = Py_None; |
| 1357 | { |
| 1358 | PyObject *o; |
| 1359 | o = PyInt_FromLong((long) (*_arg1)); |
| 1360 | _resultobj = t_output_helper(_resultobj, o); |
| 1361 | } |
| 1362 | { |
| 1363 | PyObject *o; |
| 1364 | o = PyInt_FromLong((long) (*_arg2)); |
| 1365 | _resultobj = t_output_helper(_resultobj, o); |
| 1366 | } |
| 1367 | return _resultobj; |
| 1368 | } |
| 1369 | |
| 1370 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
| 1371 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1372 | PyObject * _resultobj; |
| 1373 | wxPoint * _result; |
| 1374 | wxWindow * _arg0; |
| 1375 | wxPoint * _arg1; |
| 1376 | PyObject * _argo0 = 0; |
| 1377 | wxPoint temp; |
| 1378 | PyObject * _obj1 = 0; |
| 1379 | char *_kwnames[] = { "self","pt", NULL }; |
| 1380 | char _ptemp[128]; |
| 1381 | |
| 1382 | self = self; |
| 1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
| 1384 | return NULL; |
| 1385 | if (_argo0) { |
| 1386 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
| 1389 | return NULL; |
| 1390 | } |
| 1391 | } |
| 1392 | { |
| 1393 | _arg1 = &temp; |
| 1394 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 1395 | return NULL; |
| 1396 | } |
| 1397 | { |
| 1398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1399 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
| 1400 | |
| 1401 | wxPyEndAllowThreads(__tstate); |
| 1402 | if (PyErr_Occurred()) return NULL; |
| 1403 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 1404 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1405 | return _resultobj; |
| 1406 | } |
| 1407 | |
| 1408 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
| 1409 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1410 | PyObject * _resultobj; |
| 1411 | bool _result; |
| 1412 | wxWindow * _arg0; |
| 1413 | int _arg1 = (int ) FALSE; |
| 1414 | PyObject * _argo0 = 0; |
| 1415 | char *_kwnames[] = { "self","force", NULL }; |
| 1416 | |
| 1417 | self = self; |
| 1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
| 1419 | return NULL; |
| 1420 | if (_argo0) { |
| 1421 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
| 1424 | return NULL; |
| 1425 | } |
| 1426 | } |
| 1427 | { |
| 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1429 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
| 1430 | |
| 1431 | wxPyEndAllowThreads(__tstate); |
| 1432 | if (PyErr_Occurred()) return NULL; |
| 1433 | } _resultobj = Py_BuildValue("i",_result); |
| 1434 | return _resultobj; |
| 1435 | } |
| 1436 | |
| 1437 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) |
| 1438 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1439 | PyObject * _resultobj; |
| 1440 | bool _result; |
| 1441 | wxWindow * _arg0; |
| 1442 | PyObject * _argo0 = 0; |
| 1443 | char *_kwnames[] = { "self", NULL }; |
| 1444 | |
| 1445 | self = self; |
| 1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
| 1447 | return NULL; |
| 1448 | if (_argo0) { |
| 1449 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
| 1452 | return NULL; |
| 1453 | } |
| 1454 | } |
| 1455 | { |
| 1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1457 | _result = (bool )wxWindow_Destroy(_arg0); |
| 1458 | |
| 1459 | wxPyEndAllowThreads(__tstate); |
| 1460 | if (PyErr_Occurred()) return NULL; |
| 1461 | } _resultobj = Py_BuildValue("i",_result); |
| 1462 | return _resultobj; |
| 1463 | } |
| 1464 | |
| 1465 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) |
| 1466 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1467 | PyObject * _resultobj; |
| 1468 | wxWindow * _arg0; |
| 1469 | PyObject * _argo0 = 0; |
| 1470 | char *_kwnames[] = { "self", NULL }; |
| 1471 | |
| 1472 | self = self; |
| 1473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
| 1474 | return NULL; |
| 1475 | if (_argo0) { |
| 1476 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
| 1479 | return NULL; |
| 1480 | } |
| 1481 | } |
| 1482 | { |
| 1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1484 | wxWindow_DestroyChildren(_arg0); |
| 1485 | |
| 1486 | wxPyEndAllowThreads(__tstate); |
| 1487 | if (PyErr_Occurred()) return NULL; |
| 1488 | } Py_INCREF(Py_None); |
| 1489 | _resultobj = Py_None; |
| 1490 | return _resultobj; |
| 1491 | } |
| 1492 | |
| 1493 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
| 1494 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1495 | PyObject * _resultobj; |
| 1496 | bool _result; |
| 1497 | wxWindow * _arg0; |
| 1498 | PyObject * _argo0 = 0; |
| 1499 | char *_kwnames[] = { "self", NULL }; |
| 1500 | |
| 1501 | self = self; |
| 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) |
| 1503 | return NULL; |
| 1504 | if (_argo0) { |
| 1505 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); |
| 1508 | return NULL; |
| 1509 | } |
| 1510 | } |
| 1511 | { |
| 1512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1513 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
| 1514 | |
| 1515 | wxPyEndAllowThreads(__tstate); |
| 1516 | if (PyErr_Occurred()) return NULL; |
| 1517 | } _resultobj = Py_BuildValue("i",_result); |
| 1518 | return _resultobj; |
| 1519 | } |
| 1520 | |
| 1521 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
| 1522 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1523 | PyObject * _resultobj; |
| 1524 | wxWindow * _arg0; |
| 1525 | bool _arg1; |
| 1526 | PyObject * _argo0 = 0; |
| 1527 | int tempbool1; |
| 1528 | char *_kwnames[] = { "self","enable", NULL }; |
| 1529 | |
| 1530 | self = self; |
| 1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
| 1532 | return NULL; |
| 1533 | if (_argo0) { |
| 1534 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
| 1537 | return NULL; |
| 1538 | } |
| 1539 | } |
| 1540 | _arg1 = (bool ) tempbool1; |
| 1541 | { |
| 1542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1543 | wxWindow_Enable(_arg0,_arg1); |
| 1544 | |
| 1545 | wxPyEndAllowThreads(__tstate); |
| 1546 | if (PyErr_Occurred()) return NULL; |
| 1547 | } Py_INCREF(Py_None); |
| 1548 | _resultobj = Py_None; |
| 1549 | return _resultobj; |
| 1550 | } |
| 1551 | |
| 1552 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
| 1553 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1554 | PyObject * _resultobj; |
| 1555 | wxWindow * _result; |
| 1556 | wxWindow * _arg0; |
| 1557 | long _arg1; |
| 1558 | PyObject * _argo0 = 0; |
| 1559 | char *_kwnames[] = { "self","id", NULL }; |
| 1560 | |
| 1561 | self = self; |
| 1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
| 1563 | return NULL; |
| 1564 | if (_argo0) { |
| 1565 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
| 1568 | return NULL; |
| 1569 | } |
| 1570 | } |
| 1571 | { |
| 1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1573 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
| 1574 | |
| 1575 | wxPyEndAllowThreads(__tstate); |
| 1576 | if (PyErr_Occurred()) return NULL; |
| 1577 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 1578 | return _resultobj; |
| 1579 | } |
| 1580 | |
| 1581 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
| 1582 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1583 | PyObject * _resultobj; |
| 1584 | wxWindow * _result; |
| 1585 | wxWindow * _arg0; |
| 1586 | wxString * _arg1; |
| 1587 | PyObject * _argo0 = 0; |
| 1588 | PyObject * _obj1 = 0; |
| 1589 | char *_kwnames[] = { "self","name", NULL }; |
| 1590 | |
| 1591 | self = self; |
| 1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
| 1593 | return NULL; |
| 1594 | if (_argo0) { |
| 1595 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
| 1598 | return NULL; |
| 1599 | } |
| 1600 | } |
| 1601 | { |
| 1602 | _arg1 = wxString_in_helper(_obj1); |
| 1603 | if (_arg1 == NULL) |
| 1604 | return NULL; |
| 1605 | } |
| 1606 | { |
| 1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1608 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
| 1609 | |
| 1610 | wxPyEndAllowThreads(__tstate); |
| 1611 | if (PyErr_Occurred()) return NULL; |
| 1612 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 1613 | { |
| 1614 | if (_obj1) |
| 1615 | delete _arg1; |
| 1616 | } |
| 1617 | return _resultobj; |
| 1618 | } |
| 1619 | |
| 1620 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) |
| 1621 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1622 | PyObject * _resultobj; |
| 1623 | wxWindow * _arg0; |
| 1624 | PyObject * _argo0 = 0; |
| 1625 | char *_kwnames[] = { "self", NULL }; |
| 1626 | |
| 1627 | self = self; |
| 1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
| 1629 | return NULL; |
| 1630 | if (_argo0) { |
| 1631 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
| 1634 | return NULL; |
| 1635 | } |
| 1636 | } |
| 1637 | { |
| 1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1639 | wxWindow_Fit(_arg0); |
| 1640 | |
| 1641 | wxPyEndAllowThreads(__tstate); |
| 1642 | if (PyErr_Occurred()) return NULL; |
| 1643 | } Py_INCREF(Py_None); |
| 1644 | _resultobj = Py_None; |
| 1645 | return _resultobj; |
| 1646 | } |
| 1647 | |
| 1648 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
| 1649 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1650 | PyObject * _resultobj; |
| 1651 | wxColour * _result; |
| 1652 | wxWindow * _arg0; |
| 1653 | PyObject * _argo0 = 0; |
| 1654 | char *_kwnames[] = { "self", NULL }; |
| 1655 | char _ptemp[128]; |
| 1656 | |
| 1657 | self = self; |
| 1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
| 1659 | return NULL; |
| 1660 | if (_argo0) { |
| 1661 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
| 1664 | return NULL; |
| 1665 | } |
| 1666 | } |
| 1667 | { |
| 1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1669 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
| 1670 | |
| 1671 | wxPyEndAllowThreads(__tstate); |
| 1672 | if (PyErr_Occurred()) return NULL; |
| 1673 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
| 1674 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1675 | return _resultobj; |
| 1676 | } |
| 1677 | |
| 1678 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
| 1679 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1680 | PyObject * _resultobj; |
| 1681 | wxBorder _result; |
| 1682 | wxWindow * _arg0; |
| 1683 | PyObject * _argo0 = 0; |
| 1684 | char *_kwnames[] = { "self", NULL }; |
| 1685 | |
| 1686 | self = self; |
| 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) |
| 1688 | return NULL; |
| 1689 | if (_argo0) { |
| 1690 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); |
| 1693 | return NULL; |
| 1694 | } |
| 1695 | } |
| 1696 | { |
| 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1698 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
| 1699 | |
| 1700 | wxPyEndAllowThreads(__tstate); |
| 1701 | if (PyErr_Occurred()) return NULL; |
| 1702 | } _resultobj = Py_BuildValue("i",_result); |
| 1703 | return _resultobj; |
| 1704 | } |
| 1705 | |
| 1706 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
| 1707 | wxWindowList& list = self->GetChildren(); |
| 1708 | return wxPy_ConvertList(&list, "wxWindow"); |
| 1709 | } |
| 1710 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1711 | PyObject * _resultobj; |
| 1712 | PyObject * _result; |
| 1713 | wxWindow * _arg0; |
| 1714 | PyObject * _argo0 = 0; |
| 1715 | char *_kwnames[] = { "self", NULL }; |
| 1716 | |
| 1717 | self = self; |
| 1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) |
| 1719 | return NULL; |
| 1720 | if (_argo0) { |
| 1721 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); |
| 1724 | return NULL; |
| 1725 | } |
| 1726 | } |
| 1727 | { |
| 1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1729 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
| 1730 | |
| 1731 | wxPyEndAllowThreads(__tstate); |
| 1732 | if (PyErr_Occurred()) return NULL; |
| 1733 | }{ |
| 1734 | _resultobj = _result; |
| 1735 | } |
| 1736 | return _resultobj; |
| 1737 | } |
| 1738 | |
| 1739 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
| 1740 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1741 | PyObject * _resultobj; |
| 1742 | int _result; |
| 1743 | wxWindow * _arg0; |
| 1744 | PyObject * _argo0 = 0; |
| 1745 | char *_kwnames[] = { "self", NULL }; |
| 1746 | |
| 1747 | self = self; |
| 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
| 1749 | return NULL; |
| 1750 | if (_argo0) { |
| 1751 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
| 1754 | return NULL; |
| 1755 | } |
| 1756 | } |
| 1757 | { |
| 1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1759 | _result = (int )wxWindow_GetCharHeight(_arg0); |
| 1760 | |
| 1761 | wxPyEndAllowThreads(__tstate); |
| 1762 | if (PyErr_Occurred()) return NULL; |
| 1763 | } _resultobj = Py_BuildValue("i",_result); |
| 1764 | return _resultobj; |
| 1765 | } |
| 1766 | |
| 1767 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) |
| 1768 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1769 | PyObject * _resultobj; |
| 1770 | int _result; |
| 1771 | wxWindow * _arg0; |
| 1772 | PyObject * _argo0 = 0; |
| 1773 | char *_kwnames[] = { "self", NULL }; |
| 1774 | |
| 1775 | self = self; |
| 1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
| 1777 | return NULL; |
| 1778 | if (_argo0) { |
| 1779 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
| 1782 | return NULL; |
| 1783 | } |
| 1784 | } |
| 1785 | { |
| 1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1787 | _result = (int )wxWindow_GetCharWidth(_arg0); |
| 1788 | |
| 1789 | wxPyEndAllowThreads(__tstate); |
| 1790 | if (PyErr_Occurred()) return NULL; |
| 1791 | } _resultobj = Py_BuildValue("i",_result); |
| 1792 | return _resultobj; |
| 1793 | } |
| 1794 | |
| 1795 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
| 1796 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1797 | PyObject * _resultobj; |
| 1798 | wxWindow * _arg0; |
| 1799 | int * _arg1; |
| 1800 | int temp; |
| 1801 | int * _arg2; |
| 1802 | int temp0; |
| 1803 | PyObject * _argo0 = 0; |
| 1804 | char *_kwnames[] = { "self", NULL }; |
| 1805 | |
| 1806 | self = self; |
| 1807 | { |
| 1808 | _arg1 = &temp; |
| 1809 | } |
| 1810 | { |
| 1811 | _arg2 = &temp0; |
| 1812 | } |
| 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
| 1814 | return NULL; |
| 1815 | if (_argo0) { |
| 1816 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
| 1819 | return NULL; |
| 1820 | } |
| 1821 | } |
| 1822 | { |
| 1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1824 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
| 1825 | |
| 1826 | wxPyEndAllowThreads(__tstate); |
| 1827 | if (PyErr_Occurred()) return NULL; |
| 1828 | } Py_INCREF(Py_None); |
| 1829 | _resultobj = Py_None; |
| 1830 | { |
| 1831 | PyObject *o; |
| 1832 | o = PyInt_FromLong((long) (*_arg1)); |
| 1833 | _resultobj = t_output_helper(_resultobj, o); |
| 1834 | } |
| 1835 | { |
| 1836 | PyObject *o; |
| 1837 | o = PyInt_FromLong((long) (*_arg2)); |
| 1838 | _resultobj = t_output_helper(_resultobj, o); |
| 1839 | } |
| 1840 | return _resultobj; |
| 1841 | } |
| 1842 | |
| 1843 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
| 1844 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1845 | PyObject * _resultobj; |
| 1846 | wxSize * _result; |
| 1847 | wxWindow * _arg0; |
| 1848 | PyObject * _argo0 = 0; |
| 1849 | char *_kwnames[] = { "self", NULL }; |
| 1850 | char _ptemp[128]; |
| 1851 | |
| 1852 | self = self; |
| 1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
| 1854 | return NULL; |
| 1855 | if (_argo0) { |
| 1856 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
| 1859 | return NULL; |
| 1860 | } |
| 1861 | } |
| 1862 | { |
| 1863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1864 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
| 1865 | |
| 1866 | wxPyEndAllowThreads(__tstate); |
| 1867 | if (PyErr_Occurred()) return NULL; |
| 1868 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 1869 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1870 | return _resultobj; |
| 1871 | } |
| 1872 | |
| 1873 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
| 1874 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1875 | PyObject * _resultobj; |
| 1876 | wxPoint * _result; |
| 1877 | wxWindow * _arg0; |
| 1878 | PyObject * _argo0 = 0; |
| 1879 | char *_kwnames[] = { "self", NULL }; |
| 1880 | char _ptemp[128]; |
| 1881 | |
| 1882 | self = self; |
| 1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) |
| 1884 | return NULL; |
| 1885 | if (_argo0) { |
| 1886 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); |
| 1889 | return NULL; |
| 1890 | } |
| 1891 | } |
| 1892 | { |
| 1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1894 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
| 1895 | |
| 1896 | wxPyEndAllowThreads(__tstate); |
| 1897 | if (PyErr_Occurred()) return NULL; |
| 1898 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 1899 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1900 | return _resultobj; |
| 1901 | } |
| 1902 | |
| 1903 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) |
| 1904 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1905 | PyObject * _resultobj; |
| 1906 | wxRect * _result; |
| 1907 | wxWindow * _arg0; |
| 1908 | PyObject * _argo0 = 0; |
| 1909 | char *_kwnames[] = { "self", NULL }; |
| 1910 | char _ptemp[128]; |
| 1911 | |
| 1912 | self = self; |
| 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) |
| 1914 | return NULL; |
| 1915 | if (_argo0) { |
| 1916 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); |
| 1919 | return NULL; |
| 1920 | } |
| 1921 | } |
| 1922 | { |
| 1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1924 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
| 1925 | |
| 1926 | wxPyEndAllowThreads(__tstate); |
| 1927 | if (PyErr_Occurred()) return NULL; |
| 1928 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
| 1929 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1930 | return _resultobj; |
| 1931 | } |
| 1932 | |
| 1933 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
| 1934 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1935 | PyObject * _resultobj; |
| 1936 | wxLayoutConstraints * _result; |
| 1937 | wxWindow * _arg0; |
| 1938 | PyObject * _argo0 = 0; |
| 1939 | char *_kwnames[] = { "self", NULL }; |
| 1940 | char _ptemp[128]; |
| 1941 | |
| 1942 | self = self; |
| 1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
| 1944 | return NULL; |
| 1945 | if (_argo0) { |
| 1946 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
| 1949 | return NULL; |
| 1950 | } |
| 1951 | } |
| 1952 | { |
| 1953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1954 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
| 1955 | |
| 1956 | wxPyEndAllowThreads(__tstate); |
| 1957 | if (PyErr_Occurred()) return NULL; |
| 1958 | } if (_result) { |
| 1959 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); |
| 1960 | _resultobj = Py_BuildValue("s",_ptemp); |
| 1961 | } else { |
| 1962 | Py_INCREF(Py_None); |
| 1963 | _resultobj = Py_None; |
| 1964 | } |
| 1965 | return _resultobj; |
| 1966 | } |
| 1967 | |
| 1968 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
| 1969 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1970 | PyObject * _resultobj; |
| 1971 | wxEvtHandler * _result; |
| 1972 | wxWindow * _arg0; |
| 1973 | PyObject * _argo0 = 0; |
| 1974 | char *_kwnames[] = { "self", NULL }; |
| 1975 | |
| 1976 | self = self; |
| 1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) |
| 1978 | return NULL; |
| 1979 | if (_argo0) { |
| 1980 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); |
| 1983 | return NULL; |
| 1984 | } |
| 1985 | } |
| 1986 | { |
| 1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 1988 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
| 1989 | |
| 1990 | wxPyEndAllowThreads(__tstate); |
| 1991 | if (PyErr_Occurred()) return NULL; |
| 1992 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 1993 | return _resultobj; |
| 1994 | } |
| 1995 | |
| 1996 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
| 1997 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 1998 | PyObject * _resultobj; |
| 1999 | wxFont * _result; |
| 2000 | wxWindow * _arg0; |
| 2001 | PyObject * _argo0 = 0; |
| 2002 | char *_kwnames[] = { "self", NULL }; |
| 2003 | char _ptemp[128]; |
| 2004 | |
| 2005 | self = self; |
| 2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
| 2007 | return NULL; |
| 2008 | if (_argo0) { |
| 2009 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
| 2012 | return NULL; |
| 2013 | } |
| 2014 | } |
| 2015 | { |
| 2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2017 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
| 2018 | |
| 2019 | wxPyEndAllowThreads(__tstate); |
| 2020 | if (PyErr_Occurred()) return NULL; |
| 2021 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
| 2022 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2023 | return _resultobj; |
| 2024 | } |
| 2025 | |
| 2026 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) |
| 2027 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2028 | PyObject * _resultobj; |
| 2029 | wxColour * _result; |
| 2030 | wxWindow * _arg0; |
| 2031 | PyObject * _argo0 = 0; |
| 2032 | char *_kwnames[] = { "self", NULL }; |
| 2033 | char _ptemp[128]; |
| 2034 | |
| 2035 | self = self; |
| 2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
| 2037 | return NULL; |
| 2038 | if (_argo0) { |
| 2039 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
| 2042 | return NULL; |
| 2043 | } |
| 2044 | } |
| 2045 | { |
| 2046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2047 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
| 2048 | |
| 2049 | wxPyEndAllowThreads(__tstate); |
| 2050 | if (PyErr_Occurred()) return NULL; |
| 2051 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
| 2052 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2053 | return _resultobj; |
| 2054 | } |
| 2055 | |
| 2056 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) |
| 2057 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2058 | PyObject * _resultobj; |
| 2059 | wxWindow * _result; |
| 2060 | wxWindow * _arg0; |
| 2061 | PyObject * _argo0 = 0; |
| 2062 | char *_kwnames[] = { "self", NULL }; |
| 2063 | |
| 2064 | self = self; |
| 2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
| 2066 | return NULL; |
| 2067 | if (_argo0) { |
| 2068 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
| 2071 | return NULL; |
| 2072 | } |
| 2073 | } |
| 2074 | { |
| 2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2076 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
| 2077 | |
| 2078 | wxPyEndAllowThreads(__tstate); |
| 2079 | if (PyErr_Occurred()) return NULL; |
| 2080 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 2081 | return _resultobj; |
| 2082 | } |
| 2083 | |
| 2084 | static long wxWindow_GetHandle(wxWindow *self) { |
| 2085 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
| 2086 | } |
| 2087 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2088 | PyObject * _resultobj; |
| 2089 | long _result; |
| 2090 | wxWindow * _arg0; |
| 2091 | PyObject * _argo0 = 0; |
| 2092 | char *_kwnames[] = { "self", NULL }; |
| 2093 | |
| 2094 | self = self; |
| 2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) |
| 2096 | return NULL; |
| 2097 | if (_argo0) { |
| 2098 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); |
| 2101 | return NULL; |
| 2102 | } |
| 2103 | } |
| 2104 | { |
| 2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2106 | _result = (long )wxWindow_GetHandle(_arg0); |
| 2107 | |
| 2108 | wxPyEndAllowThreads(__tstate); |
| 2109 | if (PyErr_Occurred()) return NULL; |
| 2110 | } _resultobj = Py_BuildValue("l",_result); |
| 2111 | return _resultobj; |
| 2112 | } |
| 2113 | |
| 2114 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
| 2115 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2116 | PyObject * _resultobj; |
| 2117 | int _result; |
| 2118 | wxWindow * _arg0; |
| 2119 | PyObject * _argo0 = 0; |
| 2120 | char *_kwnames[] = { "self", NULL }; |
| 2121 | |
| 2122 | self = self; |
| 2123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
| 2124 | return NULL; |
| 2125 | if (_argo0) { |
| 2126 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
| 2129 | return NULL; |
| 2130 | } |
| 2131 | } |
| 2132 | { |
| 2133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2134 | _result = (int )wxWindow_GetId(_arg0); |
| 2135 | |
| 2136 | wxPyEndAllowThreads(__tstate); |
| 2137 | if (PyErr_Occurred()) return NULL; |
| 2138 | } _resultobj = Py_BuildValue("i",_result); |
| 2139 | return _resultobj; |
| 2140 | } |
| 2141 | |
| 2142 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
| 2143 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2144 | PyObject * _resultobj; |
| 2145 | wxString * _result; |
| 2146 | wxWindow * _arg0; |
| 2147 | PyObject * _argo0 = 0; |
| 2148 | char *_kwnames[] = { "self", NULL }; |
| 2149 | |
| 2150 | self = self; |
| 2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
| 2152 | return NULL; |
| 2153 | if (_argo0) { |
| 2154 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
| 2157 | return NULL; |
| 2158 | } |
| 2159 | } |
| 2160 | { |
| 2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2162 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
| 2163 | |
| 2164 | wxPyEndAllowThreads(__tstate); |
| 2165 | if (PyErr_Occurred()) return NULL; |
| 2166 | }{ |
| 2167 | #if wxUSE_UNICODE |
| 2168 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 2169 | #else |
| 2170 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 2171 | #endif |
| 2172 | } |
| 2173 | { |
| 2174 | delete _result; |
| 2175 | } |
| 2176 | return _resultobj; |
| 2177 | } |
| 2178 | |
| 2179 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
| 2180 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2181 | PyObject * _resultobj; |
| 2182 | wxWindow * _arg0; |
| 2183 | wxString * _arg1; |
| 2184 | PyObject * _argo0 = 0; |
| 2185 | PyObject * _obj1 = 0; |
| 2186 | char *_kwnames[] = { "self","label", NULL }; |
| 2187 | |
| 2188 | self = self; |
| 2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
| 2190 | return NULL; |
| 2191 | if (_argo0) { |
| 2192 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
| 2195 | return NULL; |
| 2196 | } |
| 2197 | } |
| 2198 | { |
| 2199 | _arg1 = wxString_in_helper(_obj1); |
| 2200 | if (_arg1 == NULL) |
| 2201 | return NULL; |
| 2202 | } |
| 2203 | { |
| 2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2205 | wxWindow_SetLabel(_arg0,*_arg1); |
| 2206 | |
| 2207 | wxPyEndAllowThreads(__tstate); |
| 2208 | if (PyErr_Occurred()) return NULL; |
| 2209 | } Py_INCREF(Py_None); |
| 2210 | _resultobj = Py_None; |
| 2211 | { |
| 2212 | if (_obj1) |
| 2213 | delete _arg1; |
| 2214 | } |
| 2215 | return _resultobj; |
| 2216 | } |
| 2217 | |
| 2218 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
| 2219 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2220 | PyObject * _resultobj; |
| 2221 | wxString * _result; |
| 2222 | wxWindow * _arg0; |
| 2223 | PyObject * _argo0 = 0; |
| 2224 | char *_kwnames[] = { "self", NULL }; |
| 2225 | |
| 2226 | self = self; |
| 2227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
| 2228 | return NULL; |
| 2229 | if (_argo0) { |
| 2230 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
| 2233 | return NULL; |
| 2234 | } |
| 2235 | } |
| 2236 | { |
| 2237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2238 | _result = new wxString (wxWindow_GetName(_arg0)); |
| 2239 | |
| 2240 | wxPyEndAllowThreads(__tstate); |
| 2241 | if (PyErr_Occurred()) return NULL; |
| 2242 | }{ |
| 2243 | #if wxUSE_UNICODE |
| 2244 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 2245 | #else |
| 2246 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 2247 | #endif |
| 2248 | } |
| 2249 | { |
| 2250 | delete _result; |
| 2251 | } |
| 2252 | return _resultobj; |
| 2253 | } |
| 2254 | |
| 2255 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) |
| 2256 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2257 | PyObject * _resultobj; |
| 2258 | wxWindow * _result; |
| 2259 | wxWindow * _arg0; |
| 2260 | PyObject * _argo0 = 0; |
| 2261 | char *_kwnames[] = { "self", NULL }; |
| 2262 | |
| 2263 | self = self; |
| 2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
| 2265 | return NULL; |
| 2266 | if (_argo0) { |
| 2267 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
| 2270 | return NULL; |
| 2271 | } |
| 2272 | } |
| 2273 | { |
| 2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2275 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
| 2276 | |
| 2277 | wxPyEndAllowThreads(__tstate); |
| 2278 | if (PyErr_Occurred()) return NULL; |
| 2279 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 2280 | return _resultobj; |
| 2281 | } |
| 2282 | |
| 2283 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
| 2284 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2285 | PyObject * _resultobj; |
| 2286 | wxWindow * _arg0; |
| 2287 | int * _arg1; |
| 2288 | int temp; |
| 2289 | int * _arg2; |
| 2290 | int temp0; |
| 2291 | PyObject * _argo0 = 0; |
| 2292 | char *_kwnames[] = { "self", NULL }; |
| 2293 | |
| 2294 | self = self; |
| 2295 | { |
| 2296 | _arg1 = &temp; |
| 2297 | } |
| 2298 | { |
| 2299 | _arg2 = &temp0; |
| 2300 | } |
| 2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
| 2302 | return NULL; |
| 2303 | if (_argo0) { |
| 2304 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
| 2307 | return NULL; |
| 2308 | } |
| 2309 | } |
| 2310 | { |
| 2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2312 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
| 2313 | |
| 2314 | wxPyEndAllowThreads(__tstate); |
| 2315 | if (PyErr_Occurred()) return NULL; |
| 2316 | } Py_INCREF(Py_None); |
| 2317 | _resultobj = Py_None; |
| 2318 | { |
| 2319 | PyObject *o; |
| 2320 | o = PyInt_FromLong((long) (*_arg1)); |
| 2321 | _resultobj = t_output_helper(_resultobj, o); |
| 2322 | } |
| 2323 | { |
| 2324 | PyObject *o; |
| 2325 | o = PyInt_FromLong((long) (*_arg2)); |
| 2326 | _resultobj = t_output_helper(_resultobj, o); |
| 2327 | } |
| 2328 | return _resultobj; |
| 2329 | } |
| 2330 | |
| 2331 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) |
| 2332 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2333 | PyObject * _resultobj; |
| 2334 | wxPoint * _result; |
| 2335 | wxWindow * _arg0; |
| 2336 | PyObject * _argo0 = 0; |
| 2337 | char *_kwnames[] = { "self", NULL }; |
| 2338 | char _ptemp[128]; |
| 2339 | |
| 2340 | self = self; |
| 2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
| 2342 | return NULL; |
| 2343 | if (_argo0) { |
| 2344 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
| 2347 | return NULL; |
| 2348 | } |
| 2349 | } |
| 2350 | { |
| 2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2352 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
| 2353 | |
| 2354 | wxPyEndAllowThreads(__tstate); |
| 2355 | if (PyErr_Occurred()) return NULL; |
| 2356 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 2357 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2358 | return _resultobj; |
| 2359 | } |
| 2360 | |
| 2361 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) |
| 2362 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2363 | PyObject * _resultobj; |
| 2364 | wxRect * _result; |
| 2365 | wxWindow * _arg0; |
| 2366 | PyObject * _argo0 = 0; |
| 2367 | char *_kwnames[] = { "self", NULL }; |
| 2368 | char _ptemp[128]; |
| 2369 | |
| 2370 | self = self; |
| 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
| 2372 | return NULL; |
| 2373 | if (_argo0) { |
| 2374 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
| 2377 | return NULL; |
| 2378 | } |
| 2379 | } |
| 2380 | { |
| 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2382 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
| 2383 | |
| 2384 | wxPyEndAllowThreads(__tstate); |
| 2385 | if (PyErr_Occurred()) return NULL; |
| 2386 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
| 2387 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2388 | return _resultobj; |
| 2389 | } |
| 2390 | |
| 2391 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
| 2392 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2393 | PyObject * _resultobj; |
| 2394 | int _result; |
| 2395 | wxWindow * _arg0; |
| 2396 | int _arg1; |
| 2397 | PyObject * _argo0 = 0; |
| 2398 | char *_kwnames[] = { "self","orientation", NULL }; |
| 2399 | |
| 2400 | self = self; |
| 2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
| 2402 | return NULL; |
| 2403 | if (_argo0) { |
| 2404 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
| 2407 | return NULL; |
| 2408 | } |
| 2409 | } |
| 2410 | { |
| 2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2412 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
| 2413 | |
| 2414 | wxPyEndAllowThreads(__tstate); |
| 2415 | if (PyErr_Occurred()) return NULL; |
| 2416 | } _resultobj = Py_BuildValue("i",_result); |
| 2417 | return _resultobj; |
| 2418 | } |
| 2419 | |
| 2420 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) |
| 2421 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2422 | PyObject * _resultobj; |
| 2423 | int _result; |
| 2424 | wxWindow * _arg0; |
| 2425 | int _arg1; |
| 2426 | PyObject * _argo0 = 0; |
| 2427 | char *_kwnames[] = { "self","orientation", NULL }; |
| 2428 | |
| 2429 | self = self; |
| 2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
| 2431 | return NULL; |
| 2432 | if (_argo0) { |
| 2433 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
| 2436 | return NULL; |
| 2437 | } |
| 2438 | } |
| 2439 | { |
| 2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2441 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
| 2442 | |
| 2443 | wxPyEndAllowThreads(__tstate); |
| 2444 | if (PyErr_Occurred()) return NULL; |
| 2445 | } _resultobj = Py_BuildValue("i",_result); |
| 2446 | return _resultobj; |
| 2447 | } |
| 2448 | |
| 2449 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) |
| 2450 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2451 | PyObject * _resultobj; |
| 2452 | int _result; |
| 2453 | wxWindow * _arg0; |
| 2454 | int _arg1; |
| 2455 | PyObject * _argo0 = 0; |
| 2456 | char *_kwnames[] = { "self","orientation", NULL }; |
| 2457 | |
| 2458 | self = self; |
| 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
| 2460 | return NULL; |
| 2461 | if (_argo0) { |
| 2462 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
| 2465 | return NULL; |
| 2466 | } |
| 2467 | } |
| 2468 | { |
| 2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2470 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
| 2471 | |
| 2472 | wxPyEndAllowThreads(__tstate); |
| 2473 | if (PyErr_Occurred()) return NULL; |
| 2474 | } _resultobj = Py_BuildValue("i",_result); |
| 2475 | return _resultobj; |
| 2476 | } |
| 2477 | |
| 2478 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
| 2479 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2480 | PyObject * _resultobj; |
| 2481 | wxWindow * _arg0; |
| 2482 | int * _arg1; |
| 2483 | int temp; |
| 2484 | int * _arg2; |
| 2485 | int temp0; |
| 2486 | PyObject * _argo0 = 0; |
| 2487 | char *_kwnames[] = { "self", NULL }; |
| 2488 | |
| 2489 | self = self; |
| 2490 | { |
| 2491 | _arg1 = &temp; |
| 2492 | } |
| 2493 | { |
| 2494 | _arg2 = &temp0; |
| 2495 | } |
| 2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
| 2497 | return NULL; |
| 2498 | if (_argo0) { |
| 2499 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
| 2502 | return NULL; |
| 2503 | } |
| 2504 | } |
| 2505 | { |
| 2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2507 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
| 2508 | |
| 2509 | wxPyEndAllowThreads(__tstate); |
| 2510 | if (PyErr_Occurred()) return NULL; |
| 2511 | } Py_INCREF(Py_None); |
| 2512 | _resultobj = Py_None; |
| 2513 | { |
| 2514 | PyObject *o; |
| 2515 | o = PyInt_FromLong((long) (*_arg1)); |
| 2516 | _resultobj = t_output_helper(_resultobj, o); |
| 2517 | } |
| 2518 | { |
| 2519 | PyObject *o; |
| 2520 | o = PyInt_FromLong((long) (*_arg2)); |
| 2521 | _resultobj = t_output_helper(_resultobj, o); |
| 2522 | } |
| 2523 | return _resultobj; |
| 2524 | } |
| 2525 | |
| 2526 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
| 2527 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2528 | PyObject * _resultobj; |
| 2529 | wxSize * _result; |
| 2530 | wxWindow * _arg0; |
| 2531 | PyObject * _argo0 = 0; |
| 2532 | char *_kwnames[] = { "self", NULL }; |
| 2533 | char _ptemp[128]; |
| 2534 | |
| 2535 | self = self; |
| 2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
| 2537 | return NULL; |
| 2538 | if (_argo0) { |
| 2539 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
| 2542 | return NULL; |
| 2543 | } |
| 2544 | } |
| 2545 | { |
| 2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2547 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
| 2548 | |
| 2549 | wxPyEndAllowThreads(__tstate); |
| 2550 | if (PyErr_Occurred()) return NULL; |
| 2551 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 2552 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2553 | return _resultobj; |
| 2554 | } |
| 2555 | |
| 2556 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
| 2557 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2558 | PyObject * _resultobj; |
| 2559 | wxWindow * _arg0; |
| 2560 | wxString * _arg1; |
| 2561 | int * _arg2; |
| 2562 | int temp; |
| 2563 | int * _arg3; |
| 2564 | int temp0; |
| 2565 | PyObject * _argo0 = 0; |
| 2566 | PyObject * _obj1 = 0; |
| 2567 | char *_kwnames[] = { "self","string", NULL }; |
| 2568 | |
| 2569 | self = self; |
| 2570 | { |
| 2571 | _arg2 = &temp; |
| 2572 | } |
| 2573 | { |
| 2574 | _arg3 = &temp0; |
| 2575 | } |
| 2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
| 2577 | return NULL; |
| 2578 | if (_argo0) { |
| 2579 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
| 2582 | return NULL; |
| 2583 | } |
| 2584 | } |
| 2585 | { |
| 2586 | _arg1 = wxString_in_helper(_obj1); |
| 2587 | if (_arg1 == NULL) |
| 2588 | return NULL; |
| 2589 | } |
| 2590 | { |
| 2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2592 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
| 2593 | |
| 2594 | wxPyEndAllowThreads(__tstate); |
| 2595 | if (PyErr_Occurred()) return NULL; |
| 2596 | } Py_INCREF(Py_None); |
| 2597 | _resultobj = Py_None; |
| 2598 | { |
| 2599 | PyObject *o; |
| 2600 | o = PyInt_FromLong((long) (*_arg2)); |
| 2601 | _resultobj = t_output_helper(_resultobj, o); |
| 2602 | } |
| 2603 | { |
| 2604 | PyObject *o; |
| 2605 | o = PyInt_FromLong((long) (*_arg3)); |
| 2606 | _resultobj = t_output_helper(_resultobj, o); |
| 2607 | } |
| 2608 | { |
| 2609 | if (_obj1) |
| 2610 | delete _arg1; |
| 2611 | } |
| 2612 | return _resultobj; |
| 2613 | } |
| 2614 | |
| 2615 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 2616 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2617 | PyObject * _resultobj; |
| 2618 | wxWindow * _arg0; |
| 2619 | wxString * _arg1; |
| 2620 | int * _arg2; |
| 2621 | int temp; |
| 2622 | int * _arg3; |
| 2623 | int temp0; |
| 2624 | int * _arg4; |
| 2625 | int temp1; |
| 2626 | int * _arg5; |
| 2627 | int temp2; |
| 2628 | wxFont * _arg6 = (wxFont *) NULL; |
| 2629 | PyObject * _argo0 = 0; |
| 2630 | PyObject * _obj1 = 0; |
| 2631 | PyObject * _argo6 = 0; |
| 2632 | char *_kwnames[] = { "self","string","font", NULL }; |
| 2633 | |
| 2634 | self = self; |
| 2635 | { |
| 2636 | _arg2 = &temp; |
| 2637 | } |
| 2638 | { |
| 2639 | _arg3 = &temp0; |
| 2640 | } |
| 2641 | { |
| 2642 | _arg4 = &temp1; |
| 2643 | } |
| 2644 | { |
| 2645 | _arg5 = &temp2; |
| 2646 | } |
| 2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
| 2648 | return NULL; |
| 2649 | if (_argo0) { |
| 2650 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
| 2653 | return NULL; |
| 2654 | } |
| 2655 | } |
| 2656 | { |
| 2657 | _arg1 = wxString_in_helper(_obj1); |
| 2658 | if (_arg1 == NULL) |
| 2659 | return NULL; |
| 2660 | } |
| 2661 | if (_argo6) { |
| 2662 | if (_argo6 == Py_None) { _arg6 = NULL; } |
| 2663 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { |
| 2664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
| 2665 | return NULL; |
| 2666 | } |
| 2667 | } |
| 2668 | { |
| 2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2670 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
| 2671 | |
| 2672 | wxPyEndAllowThreads(__tstate); |
| 2673 | if (PyErr_Occurred()) return NULL; |
| 2674 | } Py_INCREF(Py_None); |
| 2675 | _resultobj = Py_None; |
| 2676 | { |
| 2677 | PyObject *o; |
| 2678 | o = PyInt_FromLong((long) (*_arg2)); |
| 2679 | _resultobj = t_output_helper(_resultobj, o); |
| 2680 | } |
| 2681 | { |
| 2682 | PyObject *o; |
| 2683 | o = PyInt_FromLong((long) (*_arg3)); |
| 2684 | _resultobj = t_output_helper(_resultobj, o); |
| 2685 | } |
| 2686 | { |
| 2687 | PyObject *o; |
| 2688 | o = PyInt_FromLong((long) (*_arg4)); |
| 2689 | _resultobj = t_output_helper(_resultobj, o); |
| 2690 | } |
| 2691 | { |
| 2692 | PyObject *o; |
| 2693 | o = PyInt_FromLong((long) (*_arg5)); |
| 2694 | _resultobj = t_output_helper(_resultobj, o); |
| 2695 | } |
| 2696 | { |
| 2697 | if (_obj1) |
| 2698 | delete _arg1; |
| 2699 | } |
| 2700 | return _resultobj; |
| 2701 | } |
| 2702 | |
| 2703 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
| 2704 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2705 | PyObject * _resultobj; |
| 2706 | wxString * _result; |
| 2707 | wxWindow * _arg0; |
| 2708 | PyObject * _argo0 = 0; |
| 2709 | char *_kwnames[] = { "self", NULL }; |
| 2710 | |
| 2711 | self = self; |
| 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
| 2713 | return NULL; |
| 2714 | if (_argo0) { |
| 2715 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
| 2718 | return NULL; |
| 2719 | } |
| 2720 | } |
| 2721 | { |
| 2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2723 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
| 2724 | |
| 2725 | wxPyEndAllowThreads(__tstate); |
| 2726 | if (PyErr_Occurred()) return NULL; |
| 2727 | }{ |
| 2728 | #if wxUSE_UNICODE |
| 2729 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 2730 | #else |
| 2731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 2732 | #endif |
| 2733 | } |
| 2734 | { |
| 2735 | delete _result; |
| 2736 | } |
| 2737 | return _resultobj; |
| 2738 | } |
| 2739 | |
| 2740 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
| 2741 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2742 | PyObject * _resultobj; |
| 2743 | wxRegion * _result; |
| 2744 | wxWindow * _arg0; |
| 2745 | PyObject * _argo0 = 0; |
| 2746 | char *_kwnames[] = { "self", NULL }; |
| 2747 | char _ptemp[128]; |
| 2748 | |
| 2749 | self = self; |
| 2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
| 2751 | return NULL; |
| 2752 | if (_argo0) { |
| 2753 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
| 2756 | return NULL; |
| 2757 | } |
| 2758 | } |
| 2759 | { |
| 2760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2761 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
| 2762 | |
| 2763 | wxPyEndAllowThreads(__tstate); |
| 2764 | if (PyErr_Occurred()) return NULL; |
| 2765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
| 2766 | _resultobj = Py_BuildValue("s",_ptemp); |
| 2767 | return _resultobj; |
| 2768 | } |
| 2769 | |
| 2770 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
| 2771 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2772 | PyObject * _resultobj; |
| 2773 | long _result; |
| 2774 | wxWindow * _arg0; |
| 2775 | PyObject * _argo0 = 0; |
| 2776 | char *_kwnames[] = { "self", NULL }; |
| 2777 | |
| 2778 | self = self; |
| 2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
| 2780 | return NULL; |
| 2781 | if (_argo0) { |
| 2782 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
| 2785 | return NULL; |
| 2786 | } |
| 2787 | } |
| 2788 | { |
| 2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2790 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
| 2791 | |
| 2792 | wxPyEndAllowThreads(__tstate); |
| 2793 | if (PyErr_Occurred()) return NULL; |
| 2794 | } _resultobj = Py_BuildValue("l",_result); |
| 2795 | return _resultobj; |
| 2796 | } |
| 2797 | |
| 2798 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
| 2799 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2800 | PyObject * _resultobj; |
| 2801 | wxWindow * _arg0; |
| 2802 | long _arg1; |
| 2803 | PyObject * _argo0 = 0; |
| 2804 | char *_kwnames[] = { "self","style", NULL }; |
| 2805 | |
| 2806 | self = self; |
| 2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
| 2808 | return NULL; |
| 2809 | if (_argo0) { |
| 2810 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); |
| 2813 | return NULL; |
| 2814 | } |
| 2815 | } |
| 2816 | { |
| 2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2818 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
| 2819 | |
| 2820 | wxPyEndAllowThreads(__tstate); |
| 2821 | if (PyErr_Occurred()) return NULL; |
| 2822 | } Py_INCREF(Py_None); |
| 2823 | _resultobj = Py_None; |
| 2824 | return _resultobj; |
| 2825 | } |
| 2826 | |
| 2827 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) |
| 2828 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2829 | PyObject * _resultobj; |
| 2830 | wxWindow * _arg0; |
| 2831 | long _arg1; |
| 2832 | PyObject * _argo0 = 0; |
| 2833 | char *_kwnames[] = { "self","style", NULL }; |
| 2834 | |
| 2835 | self = self; |
| 2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) |
| 2837 | return NULL; |
| 2838 | if (_argo0) { |
| 2839 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); |
| 2842 | return NULL; |
| 2843 | } |
| 2844 | } |
| 2845 | { |
| 2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2847 | wxWindow_SetWindowStyle(_arg0,_arg1); |
| 2848 | |
| 2849 | wxPyEndAllowThreads(__tstate); |
| 2850 | if (PyErr_Occurred()) return NULL; |
| 2851 | } Py_INCREF(Py_None); |
| 2852 | _resultobj = Py_None; |
| 2853 | return _resultobj; |
| 2854 | } |
| 2855 | |
| 2856 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
| 2857 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2858 | PyObject * _resultobj; |
| 2859 | bool _result; |
| 2860 | wxWindow * _arg0; |
| 2861 | int _arg1; |
| 2862 | PyObject * _argo0 = 0; |
| 2863 | char *_kwnames[] = { "self","orient", NULL }; |
| 2864 | |
| 2865 | self = self; |
| 2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) |
| 2867 | return NULL; |
| 2868 | if (_argo0) { |
| 2869 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); |
| 2872 | return NULL; |
| 2873 | } |
| 2874 | } |
| 2875 | { |
| 2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2877 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
| 2878 | |
| 2879 | wxPyEndAllowThreads(__tstate); |
| 2880 | if (PyErr_Occurred()) return NULL; |
| 2881 | } _resultobj = Py_BuildValue("i",_result); |
| 2882 | return _resultobj; |
| 2883 | } |
| 2884 | |
| 2885 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
| 2886 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2887 | PyObject * _resultobj; |
| 2888 | bool _result; |
| 2889 | wxWindow * _arg0; |
| 2890 | PyObject * _argo0 = 0; |
| 2891 | char *_kwnames[] = { "self", NULL }; |
| 2892 | |
| 2893 | self = self; |
| 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
| 2895 | return NULL; |
| 2896 | if (_argo0) { |
| 2897 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
| 2900 | return NULL; |
| 2901 | } |
| 2902 | } |
| 2903 | { |
| 2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2905 | _result = (bool )wxWindow_Hide(_arg0); |
| 2906 | |
| 2907 | wxPyEndAllowThreads(__tstate); |
| 2908 | if (PyErr_Occurred()) return NULL; |
| 2909 | } _resultobj = Py_BuildValue("i",_result); |
| 2910 | return _resultobj; |
| 2911 | } |
| 2912 | |
| 2913 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
| 2914 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2915 | PyObject * _resultobj; |
| 2916 | wxHitTest _result; |
| 2917 | wxWindow * _arg0; |
| 2918 | wxPoint * _arg1; |
| 2919 | PyObject * _argo0 = 0; |
| 2920 | wxPoint temp; |
| 2921 | PyObject * _obj1 = 0; |
| 2922 | char *_kwnames[] = { "self","pt", NULL }; |
| 2923 | |
| 2924 | self = self; |
| 2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) |
| 2926 | return NULL; |
| 2927 | if (_argo0) { |
| 2928 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); |
| 2931 | return NULL; |
| 2932 | } |
| 2933 | } |
| 2934 | { |
| 2935 | _arg1 = &temp; |
| 2936 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 2937 | return NULL; |
| 2938 | } |
| 2939 | { |
| 2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2941 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
| 2942 | |
| 2943 | wxPyEndAllowThreads(__tstate); |
| 2944 | if (PyErr_Occurred()) return NULL; |
| 2945 | } _resultobj = Py_BuildValue("i",_result); |
| 2946 | return _resultobj; |
| 2947 | } |
| 2948 | |
| 2949 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
| 2950 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2951 | PyObject * _resultobj; |
| 2952 | wxWindow * _arg0; |
| 2953 | PyObject * _argo0 = 0; |
| 2954 | char *_kwnames[] = { "self", NULL }; |
| 2955 | |
| 2956 | self = self; |
| 2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
| 2958 | return NULL; |
| 2959 | if (_argo0) { |
| 2960 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
| 2963 | return NULL; |
| 2964 | } |
| 2965 | } |
| 2966 | { |
| 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2968 | wxWindow_InitDialog(_arg0); |
| 2969 | |
| 2970 | wxPyEndAllowThreads(__tstate); |
| 2971 | if (PyErr_Occurred()) return NULL; |
| 2972 | } Py_INCREF(Py_None); |
| 2973 | _resultobj = Py_None; |
| 2974 | return _resultobj; |
| 2975 | } |
| 2976 | |
| 2977 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
| 2978 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 2979 | PyObject * _resultobj; |
| 2980 | bool _result; |
| 2981 | wxWindow * _arg0; |
| 2982 | PyObject * _argo0 = 0; |
| 2983 | char *_kwnames[] = { "self", NULL }; |
| 2984 | |
| 2985 | self = self; |
| 2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
| 2987 | return NULL; |
| 2988 | if (_argo0) { |
| 2989 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 2990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 2991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
| 2992 | return NULL; |
| 2993 | } |
| 2994 | } |
| 2995 | { |
| 2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 2997 | _result = (bool )wxWindow_IsEnabled(_arg0); |
| 2998 | |
| 2999 | wxPyEndAllowThreads(__tstate); |
| 3000 | if (PyErr_Occurred()) return NULL; |
| 3001 | } _resultobj = Py_BuildValue("i",_result); |
| 3002 | return _resultobj; |
| 3003 | } |
| 3004 | |
| 3005 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 3006 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3007 | PyObject * _resultobj; |
| 3008 | bool _result; |
| 3009 | wxWindow * _arg0; |
| 3010 | int _arg1; |
| 3011 | int _arg2; |
| 3012 | int _arg3 = (int ) 0; |
| 3013 | int _arg4 = (int ) 0; |
| 3014 | PyObject * _argo0 = 0; |
| 3015 | char *_kwnames[] = { "self","x","y","w","h", NULL }; |
| 3016 | |
| 3017 | self = self; |
| 3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
| 3019 | return NULL; |
| 3020 | if (_argo0) { |
| 3021 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); |
| 3024 | return NULL; |
| 3025 | } |
| 3026 | } |
| 3027 | { |
| 3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3029 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
| 3030 | |
| 3031 | wxPyEndAllowThreads(__tstate); |
| 3032 | if (PyErr_Occurred()) return NULL; |
| 3033 | } _resultobj = Py_BuildValue("i",_result); |
| 3034 | return _resultobj; |
| 3035 | } |
| 3036 | |
| 3037 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) |
| 3038 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3039 | PyObject * _resultobj; |
| 3040 | bool _result; |
| 3041 | wxWindow * _arg0; |
| 3042 | wxPoint * _arg1; |
| 3043 | PyObject * _argo0 = 0; |
| 3044 | wxPoint temp; |
| 3045 | PyObject * _obj1 = 0; |
| 3046 | char *_kwnames[] = { "self","pt", NULL }; |
| 3047 | |
| 3048 | self = self; |
| 3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) |
| 3050 | return NULL; |
| 3051 | if (_argo0) { |
| 3052 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); |
| 3055 | return NULL; |
| 3056 | } |
| 3057 | } |
| 3058 | { |
| 3059 | _arg1 = &temp; |
| 3060 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 3061 | return NULL; |
| 3062 | } |
| 3063 | { |
| 3064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3065 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
| 3066 | |
| 3067 | wxPyEndAllowThreads(__tstate); |
| 3068 | if (PyErr_Occurred()) return NULL; |
| 3069 | } _resultobj = Py_BuildValue("i",_result); |
| 3070 | return _resultobj; |
| 3071 | } |
| 3072 | |
| 3073 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) |
| 3074 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3075 | PyObject * _resultobj; |
| 3076 | bool _result; |
| 3077 | wxWindow * _arg0; |
| 3078 | wxRect * _arg1; |
| 3079 | PyObject * _argo0 = 0; |
| 3080 | wxRect temp; |
| 3081 | PyObject * _obj1 = 0; |
| 3082 | char *_kwnames[] = { "self","rect", NULL }; |
| 3083 | |
| 3084 | self = self; |
| 3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) |
| 3086 | return NULL; |
| 3087 | if (_argo0) { |
| 3088 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); |
| 3091 | return NULL; |
| 3092 | } |
| 3093 | } |
| 3094 | { |
| 3095 | _arg1 = &temp; |
| 3096 | if (! wxRect_helper(_obj1, &_arg1)) |
| 3097 | return NULL; |
| 3098 | } |
| 3099 | { |
| 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3101 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
| 3102 | |
| 3103 | wxPyEndAllowThreads(__tstate); |
| 3104 | if (PyErr_Occurred()) return NULL; |
| 3105 | } _resultobj = Py_BuildValue("i",_result); |
| 3106 | return _resultobj; |
| 3107 | } |
| 3108 | |
| 3109 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
| 3110 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3111 | PyObject * _resultobj; |
| 3112 | bool _result; |
| 3113 | wxWindow * _arg0; |
| 3114 | PyObject * _argo0 = 0; |
| 3115 | char *_kwnames[] = { "self", NULL }; |
| 3116 | |
| 3117 | self = self; |
| 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
| 3119 | return NULL; |
| 3120 | if (_argo0) { |
| 3121 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
| 3124 | return NULL; |
| 3125 | } |
| 3126 | } |
| 3127 | { |
| 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3129 | _result = (bool )wxWindow_IsRetained(_arg0); |
| 3130 | |
| 3131 | wxPyEndAllowThreads(__tstate); |
| 3132 | if (PyErr_Occurred()) return NULL; |
| 3133 | } _resultobj = Py_BuildValue("i",_result); |
| 3134 | return _resultobj; |
| 3135 | } |
| 3136 | |
| 3137 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) |
| 3138 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3139 | PyObject * _resultobj; |
| 3140 | bool _result; |
| 3141 | wxWindow * _arg0; |
| 3142 | PyObject * _argo0 = 0; |
| 3143 | char *_kwnames[] = { "self", NULL }; |
| 3144 | |
| 3145 | self = self; |
| 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
| 3147 | return NULL; |
| 3148 | if (_argo0) { |
| 3149 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
| 3152 | return NULL; |
| 3153 | } |
| 3154 | } |
| 3155 | { |
| 3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3157 | _result = (bool )wxWindow_IsShown(_arg0); |
| 3158 | |
| 3159 | wxPyEndAllowThreads(__tstate); |
| 3160 | if (PyErr_Occurred()) return NULL; |
| 3161 | } _resultobj = Py_BuildValue("i",_result); |
| 3162 | return _resultobj; |
| 3163 | } |
| 3164 | |
| 3165 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
| 3166 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3167 | PyObject * _resultobj; |
| 3168 | bool _result; |
| 3169 | wxWindow * _arg0; |
| 3170 | PyObject * _argo0 = 0; |
| 3171 | char *_kwnames[] = { "self", NULL }; |
| 3172 | |
| 3173 | self = self; |
| 3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
| 3175 | return NULL; |
| 3176 | if (_argo0) { |
| 3177 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
| 3180 | return NULL; |
| 3181 | } |
| 3182 | } |
| 3183 | { |
| 3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3185 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
| 3186 | |
| 3187 | wxPyEndAllowThreads(__tstate); |
| 3188 | if (PyErr_Occurred()) return NULL; |
| 3189 | } _resultobj = Py_BuildValue("i",_result); |
| 3190 | return _resultobj; |
| 3191 | } |
| 3192 | |
| 3193 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
| 3194 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3195 | PyObject * _resultobj; |
| 3196 | wxWindow * _arg0; |
| 3197 | PyObject * _argo0 = 0; |
| 3198 | char *_kwnames[] = { "self", NULL }; |
| 3199 | |
| 3200 | self = self; |
| 3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
| 3202 | return NULL; |
| 3203 | if (_argo0) { |
| 3204 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
| 3207 | return NULL; |
| 3208 | } |
| 3209 | } |
| 3210 | { |
| 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3212 | wxWindow_Layout(_arg0); |
| 3213 | |
| 3214 | wxPyEndAllowThreads(__tstate); |
| 3215 | if (PyErr_Occurred()) return NULL; |
| 3216 | } Py_INCREF(Py_None); |
| 3217 | _resultobj = Py_None; |
| 3218 | return _resultobj; |
| 3219 | } |
| 3220 | |
| 3221 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) |
| 3222 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3223 | PyObject * _resultobj; |
| 3224 | bool _result; |
| 3225 | wxWindow * _arg0; |
| 3226 | wxWindow * _arg1; |
| 3227 | wxString * _arg2; |
| 3228 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
| 3229 | PyObject * _argo0 = 0; |
| 3230 | PyObject * _argo1 = 0; |
| 3231 | PyObject * _obj2 = 0; |
| 3232 | PyObject * _argo3 = 0; |
| 3233 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
| 3234 | |
| 3235 | self = self; |
| 3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
| 3237 | return NULL; |
| 3238 | if (_argo0) { |
| 3239 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
| 3242 | return NULL; |
| 3243 | } |
| 3244 | } |
| 3245 | if (_argo1) { |
| 3246 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
| 3249 | return NULL; |
| 3250 | } |
| 3251 | } |
| 3252 | { |
| 3253 | _arg2 = wxString_in_helper(_obj2); |
| 3254 | if (_arg2 == NULL) |
| 3255 | return NULL; |
| 3256 | } |
| 3257 | if (_argo3) { |
| 3258 | if (_argo3 == Py_None) { _arg3 = NULL; } |
| 3259 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { |
| 3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
| 3261 | return NULL; |
| 3262 | } |
| 3263 | } |
| 3264 | { |
| 3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3266 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
| 3267 | |
| 3268 | wxPyEndAllowThreads(__tstate); |
| 3269 | if (PyErr_Occurred()) return NULL; |
| 3270 | } _resultobj = Py_BuildValue("i",_result); |
| 3271 | { |
| 3272 | if (_obj2) |
| 3273 | delete _arg2; |
| 3274 | } |
| 3275 | return _resultobj; |
| 3276 | } |
| 3277 | |
| 3278 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) |
| 3279 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3280 | PyObject * _resultobj; |
| 3281 | wxWindow * _arg0; |
| 3282 | PyObject * _argo0 = 0; |
| 3283 | char *_kwnames[] = { "self", NULL }; |
| 3284 | |
| 3285 | self = self; |
| 3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
| 3287 | return NULL; |
| 3288 | if (_argo0) { |
| 3289 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
| 3292 | return NULL; |
| 3293 | } |
| 3294 | } |
| 3295 | { |
| 3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3297 | wxWindow_Lower(_arg0); |
| 3298 | |
| 3299 | wxPyEndAllowThreads(__tstate); |
| 3300 | if (PyErr_Occurred()) return NULL; |
| 3301 | } Py_INCREF(Py_None); |
| 3302 | _resultobj = Py_None; |
| 3303 | return _resultobj; |
| 3304 | } |
| 3305 | |
| 3306 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) |
| 3307 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3308 | PyObject * _resultobj; |
| 3309 | wxWindow * _arg0; |
| 3310 | bool _arg1 = (bool ) TRUE; |
| 3311 | PyObject * _argo0 = 0; |
| 3312 | int tempbool1 = (int) TRUE; |
| 3313 | char *_kwnames[] = { "self","flag", NULL }; |
| 3314 | |
| 3315 | self = self; |
| 3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
| 3317 | return NULL; |
| 3318 | if (_argo0) { |
| 3319 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
| 3322 | return NULL; |
| 3323 | } |
| 3324 | } |
| 3325 | _arg1 = (bool ) tempbool1; |
| 3326 | { |
| 3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3328 | wxWindow_MakeModal(_arg0,_arg1); |
| 3329 | |
| 3330 | wxPyEndAllowThreads(__tstate); |
| 3331 | if (PyErr_Occurred()) return NULL; |
| 3332 | } Py_INCREF(Py_None); |
| 3333 | _resultobj = Py_None; |
| 3334 | return _resultobj; |
| 3335 | } |
| 3336 | |
| 3337 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
| 3338 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3339 | PyObject * _resultobj; |
| 3340 | wxWindow * _arg0; |
| 3341 | int _arg1; |
| 3342 | int _arg2; |
| 3343 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
| 3344 | PyObject * _argo0 = 0; |
| 3345 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
| 3346 | |
| 3347 | self = self; |
| 3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
| 3349 | return NULL; |
| 3350 | if (_argo0) { |
| 3351 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
| 3354 | return NULL; |
| 3355 | } |
| 3356 | } |
| 3357 | { |
| 3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3359 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
| 3360 | |
| 3361 | wxPyEndAllowThreads(__tstate); |
| 3362 | if (PyErr_Occurred()) return NULL; |
| 3363 | } Py_INCREF(Py_None); |
| 3364 | _resultobj = Py_None; |
| 3365 | return _resultobj; |
| 3366 | } |
| 3367 | |
| 3368 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
| 3369 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3370 | PyObject * _resultobj; |
| 3371 | wxWindow * _arg0; |
| 3372 | wxPoint * _arg1; |
| 3373 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
| 3374 | PyObject * _argo0 = 0; |
| 3375 | wxPoint temp; |
| 3376 | PyObject * _obj1 = 0; |
| 3377 | char *_kwnames[] = { "self","point","flags", NULL }; |
| 3378 | |
| 3379 | self = self; |
| 3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
| 3381 | return NULL; |
| 3382 | if (_argo0) { |
| 3383 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
| 3386 | return NULL; |
| 3387 | } |
| 3388 | } |
| 3389 | { |
| 3390 | _arg1 = &temp; |
| 3391 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 3392 | return NULL; |
| 3393 | } |
| 3394 | { |
| 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3396 | wxWindow_Move(_arg0,*_arg1,_arg2); |
| 3397 | |
| 3398 | wxPyEndAllowThreads(__tstate); |
| 3399 | if (PyErr_Occurred()) return NULL; |
| 3400 | } Py_INCREF(Py_None); |
| 3401 | _resultobj = Py_None; |
| 3402 | return _resultobj; |
| 3403 | } |
| 3404 | |
| 3405 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
| 3406 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3407 | PyObject * _resultobj; |
| 3408 | wxEvtHandler * _result; |
| 3409 | wxWindow * _arg0; |
| 3410 | bool _arg1 = (bool ) FALSE; |
| 3411 | PyObject * _argo0 = 0; |
| 3412 | int tempbool1 = (int) FALSE; |
| 3413 | char *_kwnames[] = { "self","deleteHandler", NULL }; |
| 3414 | |
| 3415 | self = self; |
| 3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) |
| 3417 | return NULL; |
| 3418 | if (_argo0) { |
| 3419 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); |
| 3422 | return NULL; |
| 3423 | } |
| 3424 | } |
| 3425 | _arg1 = (bool ) tempbool1; |
| 3426 | { |
| 3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3428 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
| 3429 | |
| 3430 | wxPyEndAllowThreads(__tstate); |
| 3431 | if (PyErr_Occurred()) return NULL; |
| 3432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 3433 | return _resultobj; |
| 3434 | } |
| 3435 | |
| 3436 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) |
| 3437 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3438 | PyObject * _resultobj; |
| 3439 | wxWindow * _arg0; |
| 3440 | wxEvtHandler * _arg1; |
| 3441 | PyObject * _argo0 = 0; |
| 3442 | PyObject * _argo1 = 0; |
| 3443 | char *_kwnames[] = { "self","handler", NULL }; |
| 3444 | |
| 3445 | self = self; |
| 3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) |
| 3447 | return NULL; |
| 3448 | if (_argo0) { |
| 3449 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); |
| 3452 | return NULL; |
| 3453 | } |
| 3454 | } |
| 3455 | if (_argo1) { |
| 3456 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); |
| 3459 | return NULL; |
| 3460 | } |
| 3461 | } |
| 3462 | { |
| 3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3464 | wxWindow_PushEventHandler(_arg0,_arg1); |
| 3465 | |
| 3466 | wxPyEndAllowThreads(__tstate); |
| 3467 | if (PyErr_Occurred()) return NULL; |
| 3468 | } Py_INCREF(Py_None); |
| 3469 | _resultobj = Py_None; |
| 3470 | return _resultobj; |
| 3471 | } |
| 3472 | |
| 3473 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
| 3474 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3475 | PyObject * _resultobj; |
| 3476 | bool _result; |
| 3477 | wxWindow * _arg0; |
| 3478 | wxEvtHandler * _arg1; |
| 3479 | PyObject * _argo0 = 0; |
| 3480 | PyObject * _argo1 = 0; |
| 3481 | char *_kwnames[] = { "self","handler", NULL }; |
| 3482 | |
| 3483 | self = self; |
| 3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) |
| 3485 | return NULL; |
| 3486 | if (_argo0) { |
| 3487 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); |
| 3490 | return NULL; |
| 3491 | } |
| 3492 | } |
| 3493 | if (_argo1) { |
| 3494 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3495 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); |
| 3497 | return NULL; |
| 3498 | } |
| 3499 | } |
| 3500 | { |
| 3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3502 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
| 3503 | |
| 3504 | wxPyEndAllowThreads(__tstate); |
| 3505 | if (PyErr_Occurred()) return NULL; |
| 3506 | } _resultobj = Py_BuildValue("i",_result); |
| 3507 | return _resultobj; |
| 3508 | } |
| 3509 | |
| 3510 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
| 3511 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3512 | PyObject * _resultobj; |
| 3513 | bool _result; |
| 3514 | wxWindow * _arg0; |
| 3515 | wxMenu * _arg1; |
| 3516 | int _arg2; |
| 3517 | int _arg3; |
| 3518 | PyObject * _argo0 = 0; |
| 3519 | PyObject * _argo1 = 0; |
| 3520 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
| 3521 | |
| 3522 | self = self; |
| 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
| 3524 | return NULL; |
| 3525 | if (_argo0) { |
| 3526 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
| 3529 | return NULL; |
| 3530 | } |
| 3531 | } |
| 3532 | if (_argo1) { |
| 3533 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
| 3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
| 3536 | return NULL; |
| 3537 | } |
| 3538 | } |
| 3539 | { |
| 3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3541 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
| 3542 | |
| 3543 | wxPyEndAllowThreads(__tstate); |
| 3544 | if (PyErr_Occurred()) return NULL; |
| 3545 | } _resultobj = Py_BuildValue("i",_result); |
| 3546 | return _resultobj; |
| 3547 | } |
| 3548 | |
| 3549 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) |
| 3550 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3551 | PyObject * _resultobj; |
| 3552 | bool _result; |
| 3553 | wxWindow * _arg0; |
| 3554 | wxMenu * _arg1; |
| 3555 | wxPoint * _arg2; |
| 3556 | PyObject * _argo0 = 0; |
| 3557 | PyObject * _argo1 = 0; |
| 3558 | wxPoint temp; |
| 3559 | PyObject * _obj2 = 0; |
| 3560 | char *_kwnames[] = { "self","menu","pos", NULL }; |
| 3561 | |
| 3562 | self = self; |
| 3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
| 3564 | return NULL; |
| 3565 | if (_argo0) { |
| 3566 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
| 3569 | return NULL; |
| 3570 | } |
| 3571 | } |
| 3572 | if (_argo1) { |
| 3573 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
| 3575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
| 3576 | return NULL; |
| 3577 | } |
| 3578 | } |
| 3579 | { |
| 3580 | _arg2 = &temp; |
| 3581 | if (! wxPoint_helper(_obj2, &_arg2)) |
| 3582 | return NULL; |
| 3583 | } |
| 3584 | { |
| 3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3586 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
| 3587 | |
| 3588 | wxPyEndAllowThreads(__tstate); |
| 3589 | if (PyErr_Occurred()) return NULL; |
| 3590 | } _resultobj = Py_BuildValue("i",_result); |
| 3591 | return _resultobj; |
| 3592 | } |
| 3593 | |
| 3594 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) |
| 3595 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3596 | PyObject * _resultobj; |
| 3597 | wxWindow * _arg0; |
| 3598 | PyObject * _argo0 = 0; |
| 3599 | char *_kwnames[] = { "self", NULL }; |
| 3600 | |
| 3601 | self = self; |
| 3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
| 3603 | return NULL; |
| 3604 | if (_argo0) { |
| 3605 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
| 3608 | return NULL; |
| 3609 | } |
| 3610 | } |
| 3611 | { |
| 3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3613 | wxWindow_Raise(_arg0); |
| 3614 | |
| 3615 | wxPyEndAllowThreads(__tstate); |
| 3616 | if (PyErr_Occurred()) return NULL; |
| 3617 | } Py_INCREF(Py_None); |
| 3618 | _resultobj = Py_None; |
| 3619 | return _resultobj; |
| 3620 | } |
| 3621 | |
| 3622 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) |
| 3623 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3624 | PyObject * _resultobj; |
| 3625 | wxWindow * _arg0; |
| 3626 | bool _arg1 = (bool ) TRUE; |
| 3627 | wxRect * _arg2 = (wxRect *) NULL; |
| 3628 | PyObject * _argo0 = 0; |
| 3629 | int tempbool1 = (int) TRUE; |
| 3630 | wxRect temp; |
| 3631 | PyObject * _obj2 = 0; |
| 3632 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
| 3633 | |
| 3634 | self = self; |
| 3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
| 3636 | return NULL; |
| 3637 | if (_argo0) { |
| 3638 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
| 3641 | return NULL; |
| 3642 | } |
| 3643 | } |
| 3644 | _arg1 = (bool ) tempbool1; |
| 3645 | if (_obj2) |
| 3646 | { |
| 3647 | _arg2 = &temp; |
| 3648 | if (! wxRect_helper(_obj2, &_arg2)) |
| 3649 | return NULL; |
| 3650 | } |
| 3651 | { |
| 3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3653 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
| 3654 | |
| 3655 | wxPyEndAllowThreads(__tstate); |
| 3656 | if (PyErr_Occurred()) return NULL; |
| 3657 | } Py_INCREF(Py_None); |
| 3658 | _resultobj = Py_None; |
| 3659 | return _resultobj; |
| 3660 | } |
| 3661 | |
| 3662 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
| 3663 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3664 | PyObject * _resultobj; |
| 3665 | wxWindow * _arg0; |
| 3666 | wxRect * _arg1; |
| 3667 | PyObject * _argo0 = 0; |
| 3668 | wxRect temp; |
| 3669 | PyObject * _obj1 = 0; |
| 3670 | char *_kwnames[] = { "self","rect", NULL }; |
| 3671 | |
| 3672 | self = self; |
| 3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) |
| 3674 | return NULL; |
| 3675 | if (_argo0) { |
| 3676 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); |
| 3679 | return NULL; |
| 3680 | } |
| 3681 | } |
| 3682 | { |
| 3683 | _arg1 = &temp; |
| 3684 | if (! wxRect_helper(_obj1, &_arg1)) |
| 3685 | return NULL; |
| 3686 | } |
| 3687 | { |
| 3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3689 | wxWindow_RefreshRect(_arg0,*_arg1); |
| 3690 | |
| 3691 | wxPyEndAllowThreads(__tstate); |
| 3692 | if (PyErr_Occurred()) return NULL; |
| 3693 | } Py_INCREF(Py_None); |
| 3694 | _resultobj = Py_None; |
| 3695 | return _resultobj; |
| 3696 | } |
| 3697 | |
| 3698 | #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0)) |
| 3699 | static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3700 | PyObject * _resultobj; |
| 3701 | wxWindow * _arg0; |
| 3702 | wxWindow * _arg1; |
| 3703 | PyObject * _argo0 = 0; |
| 3704 | PyObject * _argo1 = 0; |
| 3705 | char *_kwnames[] = { "self","child", NULL }; |
| 3706 | |
| 3707 | self = self; |
| 3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1)) |
| 3709 | return NULL; |
| 3710 | if (_argo0) { |
| 3711 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p."); |
| 3714 | return NULL; |
| 3715 | } |
| 3716 | } |
| 3717 | if (_argo1) { |
| 3718 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 3720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p."); |
| 3721 | return NULL; |
| 3722 | } |
| 3723 | } |
| 3724 | { |
| 3725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3726 | wxWindow_AddChild(_arg0,_arg1); |
| 3727 | |
| 3728 | wxPyEndAllowThreads(__tstate); |
| 3729 | if (PyErr_Occurred()) return NULL; |
| 3730 | } Py_INCREF(Py_None); |
| 3731 | _resultobj = Py_None; |
| 3732 | return _resultobj; |
| 3733 | } |
| 3734 | |
| 3735 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
| 3736 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3737 | PyObject * _resultobj; |
| 3738 | wxWindow * _arg0; |
| 3739 | wxWindow * _arg1; |
| 3740 | PyObject * _argo0 = 0; |
| 3741 | PyObject * _argo1 = 0; |
| 3742 | char *_kwnames[] = { "self","child", NULL }; |
| 3743 | |
| 3744 | self = self; |
| 3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) |
| 3746 | return NULL; |
| 3747 | if (_argo0) { |
| 3748 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); |
| 3751 | return NULL; |
| 3752 | } |
| 3753 | } |
| 3754 | if (_argo1) { |
| 3755 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3756 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 3757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); |
| 3758 | return NULL; |
| 3759 | } |
| 3760 | } |
| 3761 | { |
| 3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3763 | wxWindow_RemoveChild(_arg0,_arg1); |
| 3764 | |
| 3765 | wxPyEndAllowThreads(__tstate); |
| 3766 | if (PyErr_Occurred()) return NULL; |
| 3767 | } Py_INCREF(Py_None); |
| 3768 | _resultobj = Py_None; |
| 3769 | return _resultobj; |
| 3770 | } |
| 3771 | |
| 3772 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
| 3773 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3774 | PyObject * _resultobj; |
| 3775 | bool _result; |
| 3776 | wxWindow * _arg0; |
| 3777 | wxWindow * _arg1; |
| 3778 | PyObject * _argo0 = 0; |
| 3779 | PyObject * _argo1 = 0; |
| 3780 | char *_kwnames[] = { "self","newParent", NULL }; |
| 3781 | |
| 3782 | self = self; |
| 3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
| 3784 | return NULL; |
| 3785 | if (_argo0) { |
| 3786 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
| 3789 | return NULL; |
| 3790 | } |
| 3791 | } |
| 3792 | if (_argo1) { |
| 3793 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 3794 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 3795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
| 3796 | return NULL; |
| 3797 | } |
| 3798 | } |
| 3799 | { |
| 3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3801 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
| 3802 | |
| 3803 | wxPyEndAllowThreads(__tstate); |
| 3804 | if (PyErr_Occurred()) return NULL; |
| 3805 | } _resultobj = Py_BuildValue("i",_result); |
| 3806 | return _resultobj; |
| 3807 | } |
| 3808 | |
| 3809 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
| 3810 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3811 | PyObject * _resultobj; |
| 3812 | wxWindow * _arg0; |
| 3813 | int * _arg1; |
| 3814 | int * _arg2; |
| 3815 | PyObject * _argo0 = 0; |
| 3816 | int temp; |
| 3817 | PyObject * _obj1 = 0; |
| 3818 | int temp0; |
| 3819 | PyObject * _obj2 = 0; |
| 3820 | char *_kwnames[] = { "self","x","y", NULL }; |
| 3821 | |
| 3822 | self = self; |
| 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
| 3824 | return NULL; |
| 3825 | if (_argo0) { |
| 3826 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
| 3829 | return NULL; |
| 3830 | } |
| 3831 | } |
| 3832 | { |
| 3833 | temp = (int) PyInt_AsLong(_obj1); |
| 3834 | _arg1 = &temp; |
| 3835 | } |
| 3836 | { |
| 3837 | temp0 = (int) PyInt_AsLong(_obj2); |
| 3838 | _arg2 = &temp0; |
| 3839 | } |
| 3840 | { |
| 3841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3842 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
| 3843 | |
| 3844 | wxPyEndAllowThreads(__tstate); |
| 3845 | if (PyErr_Occurred()) return NULL; |
| 3846 | } Py_INCREF(Py_None); |
| 3847 | _resultobj = Py_None; |
| 3848 | { |
| 3849 | PyObject *o; |
| 3850 | o = PyInt_FromLong((long) (*_arg1)); |
| 3851 | _resultobj = t_output_helper(_resultobj, o); |
| 3852 | } |
| 3853 | { |
| 3854 | PyObject *o; |
| 3855 | o = PyInt_FromLong((long) (*_arg2)); |
| 3856 | _resultobj = t_output_helper(_resultobj, o); |
| 3857 | } |
| 3858 | return _resultobj; |
| 3859 | } |
| 3860 | |
| 3861 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
| 3862 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3863 | PyObject * _resultobj; |
| 3864 | wxPoint * _result; |
| 3865 | wxWindow * _arg0; |
| 3866 | wxPoint * _arg1; |
| 3867 | PyObject * _argo0 = 0; |
| 3868 | wxPoint temp; |
| 3869 | PyObject * _obj1 = 0; |
| 3870 | char *_kwnames[] = { "self","pt", NULL }; |
| 3871 | char _ptemp[128]; |
| 3872 | |
| 3873 | self = self; |
| 3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
| 3875 | return NULL; |
| 3876 | if (_argo0) { |
| 3877 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
| 3880 | return NULL; |
| 3881 | } |
| 3882 | } |
| 3883 | { |
| 3884 | _arg1 = &temp; |
| 3885 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 3886 | return NULL; |
| 3887 | } |
| 3888 | { |
| 3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3890 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
| 3891 | |
| 3892 | wxPyEndAllowThreads(__tstate); |
| 3893 | if (PyErr_Occurred()) return NULL; |
| 3894 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 3895 | _resultobj = Py_BuildValue("s",_ptemp); |
| 3896 | return _resultobj; |
| 3897 | } |
| 3898 | |
| 3899 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
| 3900 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3901 | PyObject * _resultobj; |
| 3902 | wxWindow * _arg0; |
| 3903 | int _arg1; |
| 3904 | int _arg2; |
| 3905 | wxRect * _arg3 = (wxRect *) NULL; |
| 3906 | PyObject * _argo0 = 0; |
| 3907 | wxRect temp; |
| 3908 | PyObject * _obj3 = 0; |
| 3909 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
| 3910 | |
| 3911 | self = self; |
| 3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
| 3913 | return NULL; |
| 3914 | if (_argo0) { |
| 3915 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
| 3918 | return NULL; |
| 3919 | } |
| 3920 | } |
| 3921 | if (_obj3) |
| 3922 | { |
| 3923 | _arg3 = &temp; |
| 3924 | if (! wxRect_helper(_obj3, &_arg3)) |
| 3925 | return NULL; |
| 3926 | } |
| 3927 | { |
| 3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3929 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
| 3930 | |
| 3931 | wxPyEndAllowThreads(__tstate); |
| 3932 | if (PyErr_Occurred()) return NULL; |
| 3933 | } Py_INCREF(Py_None); |
| 3934 | _resultobj = Py_None; |
| 3935 | return _resultobj; |
| 3936 | } |
| 3937 | |
| 3938 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
| 3939 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3940 | PyObject * _resultobj; |
| 3941 | wxWindow * _arg0; |
| 3942 | bool _arg1; |
| 3943 | PyObject * _argo0 = 0; |
| 3944 | int tempbool1; |
| 3945 | char *_kwnames[] = { "self","autoLayout", NULL }; |
| 3946 | |
| 3947 | self = self; |
| 3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
| 3949 | return NULL; |
| 3950 | if (_argo0) { |
| 3951 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
| 3954 | return NULL; |
| 3955 | } |
| 3956 | } |
| 3957 | _arg1 = (bool ) tempbool1; |
| 3958 | { |
| 3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3960 | wxWindow_SetAutoLayout(_arg0,_arg1); |
| 3961 | |
| 3962 | wxPyEndAllowThreads(__tstate); |
| 3963 | if (PyErr_Occurred()) return NULL; |
| 3964 | } Py_INCREF(Py_None); |
| 3965 | _resultobj = Py_None; |
| 3966 | return _resultobj; |
| 3967 | } |
| 3968 | |
| 3969 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
| 3970 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3971 | PyObject * _resultobj; |
| 3972 | bool _result; |
| 3973 | wxWindow * _arg0; |
| 3974 | PyObject * _argo0 = 0; |
| 3975 | char *_kwnames[] = { "self", NULL }; |
| 3976 | |
| 3977 | self = self; |
| 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) |
| 3979 | return NULL; |
| 3980 | if (_argo0) { |
| 3981 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); |
| 3984 | return NULL; |
| 3985 | } |
| 3986 | } |
| 3987 | { |
| 3988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 3989 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
| 3990 | |
| 3991 | wxPyEndAllowThreads(__tstate); |
| 3992 | if (PyErr_Occurred()) return NULL; |
| 3993 | } _resultobj = Py_BuildValue("i",_result); |
| 3994 | return _resultobj; |
| 3995 | } |
| 3996 | |
| 3997 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
| 3998 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 3999 | PyObject * _resultobj; |
| 4000 | wxWindow * _arg0; |
| 4001 | wxColour * _arg1; |
| 4002 | PyObject * _argo0 = 0; |
| 4003 | wxColour temp; |
| 4004 | PyObject * _obj1 = 0; |
| 4005 | char *_kwnames[] = { "self","colour", NULL }; |
| 4006 | |
| 4007 | self = self; |
| 4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
| 4009 | return NULL; |
| 4010 | if (_argo0) { |
| 4011 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
| 4014 | return NULL; |
| 4015 | } |
| 4016 | } |
| 4017 | { |
| 4018 | _arg1 = &temp; |
| 4019 | if (! wxColour_helper(_obj1, &_arg1)) |
| 4020 | return NULL; |
| 4021 | } |
| 4022 | { |
| 4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4024 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
| 4025 | |
| 4026 | wxPyEndAllowThreads(__tstate); |
| 4027 | if (PyErr_Occurred()) return NULL; |
| 4028 | } Py_INCREF(Py_None); |
| 4029 | _resultobj = Py_None; |
| 4030 | return _resultobj; |
| 4031 | } |
| 4032 | |
| 4033 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) |
| 4034 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4035 | PyObject * _resultobj; |
| 4036 | wxWindow * _arg0; |
| 4037 | wxLayoutConstraints * _arg1; |
| 4038 | PyObject * _argo0 = 0; |
| 4039 | PyObject * _argo1 = 0; |
| 4040 | char *_kwnames[] = { "self","constraints", NULL }; |
| 4041 | |
| 4042 | self = self; |
| 4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
| 4044 | return NULL; |
| 4045 | if (_argo0) { |
| 4046 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
| 4049 | return NULL; |
| 4050 | } |
| 4051 | } |
| 4052 | if (_argo1) { |
| 4053 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 4054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { |
| 4055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
| 4056 | return NULL; |
| 4057 | } |
| 4058 | } |
| 4059 | { |
| 4060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4061 | wxWindow_SetConstraints(_arg0,_arg1); |
| 4062 | |
| 4063 | wxPyEndAllowThreads(__tstate); |
| 4064 | if (PyErr_Occurred()) return NULL; |
| 4065 | } Py_INCREF(Py_None); |
| 4066 | _resultobj = Py_None; |
| 4067 | return _resultobj; |
| 4068 | } |
| 4069 | |
| 4070 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
| 4071 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4072 | PyObject * _resultobj; |
| 4073 | wxWindow * _arg0; |
| 4074 | wxLayoutConstraints * _arg1; |
| 4075 | PyObject * _argo0 = 0; |
| 4076 | PyObject * _argo1 = 0; |
| 4077 | char *_kwnames[] = { "self","constraints", NULL }; |
| 4078 | |
| 4079 | self = self; |
| 4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) |
| 4081 | return NULL; |
| 4082 | if (_argo0) { |
| 4083 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); |
| 4086 | return NULL; |
| 4087 | } |
| 4088 | } |
| 4089 | if (_argo1) { |
| 4090 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 4091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { |
| 4092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); |
| 4093 | return NULL; |
| 4094 | } |
| 4095 | } |
| 4096 | { |
| 4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4098 | wxWindow_UnsetConstraints(_arg0,_arg1); |
| 4099 | |
| 4100 | wxPyEndAllowThreads(__tstate); |
| 4101 | if (PyErr_Occurred()) return NULL; |
| 4102 | } Py_INCREF(Py_None); |
| 4103 | _resultobj = Py_None; |
| 4104 | return _resultobj; |
| 4105 | } |
| 4106 | |
| 4107 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
| 4108 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4109 | PyObject * _resultobj; |
| 4110 | wxWindow * _arg0; |
| 4111 | PyObject * _argo0 = 0; |
| 4112 | char *_kwnames[] = { "self", NULL }; |
| 4113 | |
| 4114 | self = self; |
| 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
| 4116 | return NULL; |
| 4117 | if (_argo0) { |
| 4118 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
| 4121 | return NULL; |
| 4122 | } |
| 4123 | } |
| 4124 | { |
| 4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4126 | wxWindow_SetFocus(_arg0); |
| 4127 | |
| 4128 | wxPyEndAllowThreads(__tstate); |
| 4129 | if (PyErr_Occurred()) return NULL; |
| 4130 | } Py_INCREF(Py_None); |
| 4131 | _resultobj = Py_None; |
| 4132 | return _resultobj; |
| 4133 | } |
| 4134 | |
| 4135 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
| 4136 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4137 | PyObject * _resultobj; |
| 4138 | wxWindow * _arg0; |
| 4139 | PyObject * _argo0 = 0; |
| 4140 | char *_kwnames[] = { "self", NULL }; |
| 4141 | |
| 4142 | self = self; |
| 4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) |
| 4144 | return NULL; |
| 4145 | if (_argo0) { |
| 4146 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); |
| 4149 | return NULL; |
| 4150 | } |
| 4151 | } |
| 4152 | { |
| 4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4154 | wxWindow_SetFocusFromKbd(_arg0); |
| 4155 | |
| 4156 | wxPyEndAllowThreads(__tstate); |
| 4157 | if (PyErr_Occurred()) return NULL; |
| 4158 | } Py_INCREF(Py_None); |
| 4159 | _resultobj = Py_None; |
| 4160 | return _resultobj; |
| 4161 | } |
| 4162 | |
| 4163 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
| 4164 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4165 | PyObject * _resultobj; |
| 4166 | bool _result; |
| 4167 | wxWindow * _arg0; |
| 4168 | PyObject * _argo0 = 0; |
| 4169 | char *_kwnames[] = { "self", NULL }; |
| 4170 | |
| 4171 | self = self; |
| 4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) |
| 4173 | return NULL; |
| 4174 | if (_argo0) { |
| 4175 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); |
| 4178 | return NULL; |
| 4179 | } |
| 4180 | } |
| 4181 | { |
| 4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4183 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
| 4184 | |
| 4185 | wxPyEndAllowThreads(__tstate); |
| 4186 | if (PyErr_Occurred()) return NULL; |
| 4187 | } _resultobj = Py_BuildValue("i",_result); |
| 4188 | return _resultobj; |
| 4189 | } |
| 4190 | |
| 4191 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
| 4192 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4193 | PyObject * _resultobj; |
| 4194 | wxWindow * _arg0; |
| 4195 | wxFont * _arg1; |
| 4196 | PyObject * _argo0 = 0; |
| 4197 | PyObject * _argo1 = 0; |
| 4198 | char *_kwnames[] = { "self","font", NULL }; |
| 4199 | |
| 4200 | self = self; |
| 4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
| 4202 | return NULL; |
| 4203 | if (_argo0) { |
| 4204 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
| 4207 | return NULL; |
| 4208 | } |
| 4209 | } |
| 4210 | if (_argo1) { |
| 4211 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 4212 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
| 4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
| 4214 | return NULL; |
| 4215 | } |
| 4216 | } |
| 4217 | { |
| 4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4219 | wxWindow_SetFont(_arg0,*_arg1); |
| 4220 | |
| 4221 | wxPyEndAllowThreads(__tstate); |
| 4222 | if (PyErr_Occurred()) return NULL; |
| 4223 | } Py_INCREF(Py_None); |
| 4224 | _resultobj = Py_None; |
| 4225 | return _resultobj; |
| 4226 | } |
| 4227 | |
| 4228 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
| 4229 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4230 | PyObject * _resultobj; |
| 4231 | wxWindow * _arg0; |
| 4232 | wxColour * _arg1; |
| 4233 | PyObject * _argo0 = 0; |
| 4234 | wxColour temp; |
| 4235 | PyObject * _obj1 = 0; |
| 4236 | char *_kwnames[] = { "self","colour", NULL }; |
| 4237 | |
| 4238 | self = self; |
| 4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
| 4240 | return NULL; |
| 4241 | if (_argo0) { |
| 4242 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
| 4245 | return NULL; |
| 4246 | } |
| 4247 | } |
| 4248 | { |
| 4249 | _arg1 = &temp; |
| 4250 | if (! wxColour_helper(_obj1, &_arg1)) |
| 4251 | return NULL; |
| 4252 | } |
| 4253 | { |
| 4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4255 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
| 4256 | |
| 4257 | wxPyEndAllowThreads(__tstate); |
| 4258 | if (PyErr_Occurred()) return NULL; |
| 4259 | } Py_INCREF(Py_None); |
| 4260 | _resultobj = Py_None; |
| 4261 | return _resultobj; |
| 4262 | } |
| 4263 | |
| 4264 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
| 4265 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4266 | PyObject * _resultobj; |
| 4267 | wxWindow * _arg0; |
| 4268 | int _arg1; |
| 4269 | PyObject * _argo0 = 0; |
| 4270 | char *_kwnames[] = { "self","id", NULL }; |
| 4271 | |
| 4272 | self = self; |
| 4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
| 4274 | return NULL; |
| 4275 | if (_argo0) { |
| 4276 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
| 4279 | return NULL; |
| 4280 | } |
| 4281 | } |
| 4282 | { |
| 4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4284 | wxWindow_SetId(_arg0,_arg1); |
| 4285 | |
| 4286 | wxPyEndAllowThreads(__tstate); |
| 4287 | if (PyErr_Occurred()) return NULL; |
| 4288 | } Py_INCREF(Py_None); |
| 4289 | _resultobj = Py_None; |
| 4290 | return _resultobj; |
| 4291 | } |
| 4292 | |
| 4293 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) |
| 4294 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4295 | PyObject * _resultobj; |
| 4296 | wxWindow * _arg0; |
| 4297 | wxString * _arg1; |
| 4298 | PyObject * _argo0 = 0; |
| 4299 | PyObject * _obj1 = 0; |
| 4300 | char *_kwnames[] = { "self","name", NULL }; |
| 4301 | |
| 4302 | self = self; |
| 4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
| 4304 | return NULL; |
| 4305 | if (_argo0) { |
| 4306 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
| 4309 | return NULL; |
| 4310 | } |
| 4311 | } |
| 4312 | { |
| 4313 | _arg1 = wxString_in_helper(_obj1); |
| 4314 | if (_arg1 == NULL) |
| 4315 | return NULL; |
| 4316 | } |
| 4317 | { |
| 4318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4319 | wxWindow_SetName(_arg0,*_arg1); |
| 4320 | |
| 4321 | wxPyEndAllowThreads(__tstate); |
| 4322 | if (PyErr_Occurred()) return NULL; |
| 4323 | } Py_INCREF(Py_None); |
| 4324 | _resultobj = Py_None; |
| 4325 | { |
| 4326 | if (_obj1) |
| 4327 | delete _arg1; |
| 4328 | } |
| 4329 | return _resultobj; |
| 4330 | } |
| 4331 | |
| 4332 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
| 4333 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4334 | PyObject * _resultobj; |
| 4335 | wxWindow * _arg0; |
| 4336 | int _arg1; |
| 4337 | int _arg2; |
| 4338 | int _arg3; |
| 4339 | int _arg4; |
| 4340 | int _arg5 = (int ) TRUE; |
| 4341 | PyObject * _argo0 = 0; |
| 4342 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
| 4343 | |
| 4344 | self = self; |
| 4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
| 4346 | return NULL; |
| 4347 | if (_argo0) { |
| 4348 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
| 4351 | return NULL; |
| 4352 | } |
| 4353 | } |
| 4354 | { |
| 4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4356 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
| 4357 | |
| 4358 | wxPyEndAllowThreads(__tstate); |
| 4359 | if (PyErr_Occurred()) return NULL; |
| 4360 | } Py_INCREF(Py_None); |
| 4361 | _resultobj = Py_None; |
| 4362 | return _resultobj; |
| 4363 | } |
| 4364 | |
| 4365 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) |
| 4366 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4367 | PyObject * _resultobj; |
| 4368 | wxWindow * _arg0; |
| 4369 | int _arg1; |
| 4370 | int _arg2; |
| 4371 | bool _arg3 = (bool ) TRUE; |
| 4372 | PyObject * _argo0 = 0; |
| 4373 | int tempbool3 = (int) TRUE; |
| 4374 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
| 4375 | |
| 4376 | self = self; |
| 4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
| 4378 | return NULL; |
| 4379 | if (_argo0) { |
| 4380 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
| 4383 | return NULL; |
| 4384 | } |
| 4385 | } |
| 4386 | _arg3 = (bool ) tempbool3; |
| 4387 | { |
| 4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4389 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
| 4390 | |
| 4391 | wxPyEndAllowThreads(__tstate); |
| 4392 | if (PyErr_Occurred()) return NULL; |
| 4393 | } Py_INCREF(Py_None); |
| 4394 | _resultobj = Py_None; |
| 4395 | return _resultobj; |
| 4396 | } |
| 4397 | |
| 4398 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
| 4399 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4400 | PyObject * _resultobj; |
| 4401 | wxWindow * _arg0; |
| 4402 | int _arg1; |
| 4403 | int _arg2; |
| 4404 | int _arg3; |
| 4405 | int _arg4; |
| 4406 | int _arg5 = (int ) wxSIZE_AUTO; |
| 4407 | PyObject * _argo0 = 0; |
| 4408 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
| 4409 | |
| 4410 | self = self; |
| 4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
| 4412 | return NULL; |
| 4413 | if (_argo0) { |
| 4414 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
| 4417 | return NULL; |
| 4418 | } |
| 4419 | } |
| 4420 | { |
| 4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4422 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
| 4423 | |
| 4424 | wxPyEndAllowThreads(__tstate); |
| 4425 | if (PyErr_Occurred()) return NULL; |
| 4426 | } Py_INCREF(Py_None); |
| 4427 | _resultobj = Py_None; |
| 4428 | return _resultobj; |
| 4429 | } |
| 4430 | |
| 4431 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { |
| 4432 | self->SetSize(size); |
| 4433 | } |
| 4434 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4435 | PyObject * _resultobj; |
| 4436 | wxWindow * _arg0; |
| 4437 | wxSize * _arg1; |
| 4438 | PyObject * _argo0 = 0; |
| 4439 | wxSize temp; |
| 4440 | PyObject * _obj1 = 0; |
| 4441 | char *_kwnames[] = { "self","size", NULL }; |
| 4442 | |
| 4443 | self = self; |
| 4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
| 4445 | return NULL; |
| 4446 | if (_argo0) { |
| 4447 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
| 4450 | return NULL; |
| 4451 | } |
| 4452 | } |
| 4453 | { |
| 4454 | _arg1 = &temp; |
| 4455 | if (! wxSize_helper(_obj1, &_arg1)) |
| 4456 | return NULL; |
| 4457 | } |
| 4458 | { |
| 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4460 | wxWindow_SetSize(_arg0,*_arg1); |
| 4461 | |
| 4462 | wxPyEndAllowThreads(__tstate); |
| 4463 | if (PyErr_Occurred()) return NULL; |
| 4464 | } Py_INCREF(Py_None); |
| 4465 | _resultobj = Py_None; |
| 4466 | return _resultobj; |
| 4467 | } |
| 4468 | |
| 4469 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
| 4470 | self->Move(pos, flags); |
| 4471 | } |
| 4472 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4473 | PyObject * _resultobj; |
| 4474 | wxWindow * _arg0; |
| 4475 | wxPoint * _arg1; |
| 4476 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
| 4477 | PyObject * _argo0 = 0; |
| 4478 | wxPoint temp; |
| 4479 | PyObject * _obj1 = 0; |
| 4480 | char *_kwnames[] = { "self","pos","flags", NULL }; |
| 4481 | |
| 4482 | self = self; |
| 4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
| 4484 | return NULL; |
| 4485 | if (_argo0) { |
| 4486 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
| 4489 | return NULL; |
| 4490 | } |
| 4491 | } |
| 4492 | { |
| 4493 | _arg1 = &temp; |
| 4494 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 4495 | return NULL; |
| 4496 | } |
| 4497 | { |
| 4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4499 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
| 4500 | |
| 4501 | wxPyEndAllowThreads(__tstate); |
| 4502 | if (PyErr_Occurred()) return NULL; |
| 4503 | } Py_INCREF(Py_None); |
| 4504 | _resultobj = Py_None; |
| 4505 | return _resultobj; |
| 4506 | } |
| 4507 | |
| 4508 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
| 4509 | self->SetSize(rect, sizeFlags); |
| 4510 | } |
| 4511 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4512 | PyObject * _resultobj; |
| 4513 | wxWindow * _arg0; |
| 4514 | wxRect * _arg1; |
| 4515 | int _arg2 = (int ) wxSIZE_AUTO; |
| 4516 | PyObject * _argo0 = 0; |
| 4517 | wxRect temp; |
| 4518 | PyObject * _obj1 = 0; |
| 4519 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; |
| 4520 | |
| 4521 | self = self; |
| 4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) |
| 4523 | return NULL; |
| 4524 | if (_argo0) { |
| 4525 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); |
| 4528 | return NULL; |
| 4529 | } |
| 4530 | } |
| 4531 | { |
| 4532 | _arg1 = &temp; |
| 4533 | if (! wxRect_helper(_obj1, &_arg1)) |
| 4534 | return NULL; |
| 4535 | } |
| 4536 | { |
| 4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4538 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
| 4539 | |
| 4540 | wxPyEndAllowThreads(__tstate); |
| 4541 | if (PyErr_Occurred()) return NULL; |
| 4542 | } Py_INCREF(Py_None); |
| 4543 | _resultobj = Py_None; |
| 4544 | return _resultobj; |
| 4545 | } |
| 4546 | |
| 4547 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 4548 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4549 | PyObject * _resultobj; |
| 4550 | wxWindow * _arg0; |
| 4551 | int _arg1; |
| 4552 | int _arg2; |
| 4553 | int _arg3 = (int ) -1; |
| 4554 | int _arg4 = (int ) -1; |
| 4555 | int _arg5 = (int ) -1; |
| 4556 | int _arg6 = (int ) -1; |
| 4557 | PyObject * _argo0 = 0; |
| 4558 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
| 4559 | |
| 4560 | self = self; |
| 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
| 4562 | return NULL; |
| 4563 | if (_argo0) { |
| 4564 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
| 4567 | return NULL; |
| 4568 | } |
| 4569 | } |
| 4570 | { |
| 4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4572 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
| 4573 | |
| 4574 | wxPyEndAllowThreads(__tstate); |
| 4575 | if (PyErr_Occurred()) return NULL; |
| 4576 | } Py_INCREF(Py_None); |
| 4577 | _resultobj = Py_None; |
| 4578 | return _resultobj; |
| 4579 | } |
| 4580 | |
| 4581 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 4582 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4583 | PyObject * _resultobj; |
| 4584 | wxWindow * _arg0; |
| 4585 | int _arg1; |
| 4586 | int _arg2; |
| 4587 | int _arg3 = (int ) -1; |
| 4588 | int _arg4 = (int ) -1; |
| 4589 | PyObject * _argo0 = 0; |
| 4590 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; |
| 4591 | |
| 4592 | self = self; |
| 4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
| 4594 | return NULL; |
| 4595 | if (_argo0) { |
| 4596 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); |
| 4599 | return NULL; |
| 4600 | } |
| 4601 | } |
| 4602 | { |
| 4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4604 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); |
| 4605 | |
| 4606 | wxPyEndAllowThreads(__tstate); |
| 4607 | if (PyErr_Occurred()) return NULL; |
| 4608 | } Py_INCREF(Py_None); |
| 4609 | _resultobj = Py_None; |
| 4610 | return _resultobj; |
| 4611 | } |
| 4612 | |
| 4613 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) |
| 4614 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4615 | PyObject * _resultobj; |
| 4616 | wxWindow * _arg0; |
| 4617 | wxSize * _arg1; |
| 4618 | PyObject * _argo0 = 0; |
| 4619 | wxSize temp; |
| 4620 | PyObject * _obj1 = 0; |
| 4621 | char *_kwnames[] = { "self","size", NULL }; |
| 4622 | |
| 4623 | self = self; |
| 4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) |
| 4625 | return NULL; |
| 4626 | if (_argo0) { |
| 4627 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); |
| 4630 | return NULL; |
| 4631 | } |
| 4632 | } |
| 4633 | { |
| 4634 | _arg1 = &temp; |
| 4635 | if (! wxSize_helper(_obj1, &_arg1)) |
| 4636 | return NULL; |
| 4637 | } |
| 4638 | { |
| 4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4640 | wxWindow_SetVirtualSize(_arg0,*_arg1); |
| 4641 | |
| 4642 | wxPyEndAllowThreads(__tstate); |
| 4643 | if (PyErr_Occurred()) return NULL; |
| 4644 | } Py_INCREF(Py_None); |
| 4645 | _resultobj = Py_None; |
| 4646 | return _resultobj; |
| 4647 | } |
| 4648 | |
| 4649 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) |
| 4650 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4651 | PyObject * _resultobj; |
| 4652 | wxWindow * _arg0; |
| 4653 | int _arg1; |
| 4654 | int _arg2; |
| 4655 | PyObject * _argo0 = 0; |
| 4656 | char *_kwnames[] = { "self","x","y", NULL }; |
| 4657 | |
| 4658 | self = self; |
| 4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 4660 | return NULL; |
| 4661 | if (_argo0) { |
| 4662 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); |
| 4665 | return NULL; |
| 4666 | } |
| 4667 | } |
| 4668 | { |
| 4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4670 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); |
| 4671 | |
| 4672 | wxPyEndAllowThreads(__tstate); |
| 4673 | if (PyErr_Occurred()) return NULL; |
| 4674 | } Py_INCREF(Py_None); |
| 4675 | _resultobj = Py_None; |
| 4676 | return _resultobj; |
| 4677 | } |
| 4678 | |
| 4679 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) |
| 4680 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4681 | PyObject * _resultobj; |
| 4682 | wxSize * _result; |
| 4683 | wxWindow * _arg0; |
| 4684 | PyObject * _argo0 = 0; |
| 4685 | char *_kwnames[] = { "self", NULL }; |
| 4686 | char _ptemp[128]; |
| 4687 | |
| 4688 | self = self; |
| 4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) |
| 4690 | return NULL; |
| 4691 | if (_argo0) { |
| 4692 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); |
| 4695 | return NULL; |
| 4696 | } |
| 4697 | } |
| 4698 | { |
| 4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4700 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); |
| 4701 | |
| 4702 | wxPyEndAllowThreads(__tstate); |
| 4703 | if (PyErr_Occurred()) return NULL; |
| 4704 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 4705 | _resultobj = Py_BuildValue("s",_ptemp); |
| 4706 | return _resultobj; |
| 4707 | } |
| 4708 | |
| 4709 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
| 4710 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4711 | PyObject * _resultobj; |
| 4712 | wxWindow * _arg0; |
| 4713 | int * _arg1; |
| 4714 | int temp; |
| 4715 | int * _arg2; |
| 4716 | int temp0; |
| 4717 | PyObject * _argo0 = 0; |
| 4718 | char *_kwnames[] = { "self", NULL }; |
| 4719 | |
| 4720 | self = self; |
| 4721 | { |
| 4722 | _arg1 = &temp; |
| 4723 | } |
| 4724 | { |
| 4725 | _arg2 = &temp0; |
| 4726 | } |
| 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) |
| 4728 | return NULL; |
| 4729 | if (_argo0) { |
| 4730 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); |
| 4733 | return NULL; |
| 4734 | } |
| 4735 | } |
| 4736 | { |
| 4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4738 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); |
| 4739 | |
| 4740 | wxPyEndAllowThreads(__tstate); |
| 4741 | if (PyErr_Occurred()) return NULL; |
| 4742 | } Py_INCREF(Py_None); |
| 4743 | _resultobj = Py_None; |
| 4744 | { |
| 4745 | PyObject *o; |
| 4746 | o = PyInt_FromLong((long) (*_arg1)); |
| 4747 | _resultobj = t_output_helper(_resultobj, o); |
| 4748 | } |
| 4749 | { |
| 4750 | PyObject *o; |
| 4751 | o = PyInt_FromLong((long) (*_arg2)); |
| 4752 | _resultobj = t_output_helper(_resultobj, o); |
| 4753 | } |
| 4754 | return _resultobj; |
| 4755 | } |
| 4756 | |
| 4757 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
| 4758 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4759 | PyObject * _resultobj; |
| 4760 | wxWindow * _arg0; |
| 4761 | int _arg1; |
| 4762 | int _arg2; |
| 4763 | PyObject * _argo0 = 0; |
| 4764 | char *_kwnames[] = { "self","width","height", NULL }; |
| 4765 | |
| 4766 | self = self; |
| 4767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 4768 | return NULL; |
| 4769 | if (_argo0) { |
| 4770 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
| 4773 | return NULL; |
| 4774 | } |
| 4775 | } |
| 4776 | { |
| 4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4778 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
| 4779 | |
| 4780 | wxPyEndAllowThreads(__tstate); |
| 4781 | if (PyErr_Occurred()) return NULL; |
| 4782 | } Py_INCREF(Py_None); |
| 4783 | _resultobj = Py_None; |
| 4784 | return _resultobj; |
| 4785 | } |
| 4786 | |
| 4787 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) |
| 4788 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4789 | PyObject * _resultobj; |
| 4790 | wxWindow * _arg0; |
| 4791 | wxSize * _arg1; |
| 4792 | PyObject * _argo0 = 0; |
| 4793 | wxSize temp; |
| 4794 | PyObject * _obj1 = 0; |
| 4795 | char *_kwnames[] = { "self","size", NULL }; |
| 4796 | |
| 4797 | self = self; |
| 4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
| 4799 | return NULL; |
| 4800 | if (_argo0) { |
| 4801 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
| 4804 | return NULL; |
| 4805 | } |
| 4806 | } |
| 4807 | { |
| 4808 | _arg1 = &temp; |
| 4809 | if (! wxSize_helper(_obj1, &_arg1)) |
| 4810 | return NULL; |
| 4811 | } |
| 4812 | { |
| 4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4814 | wxWindow_SetClientSize(_arg0,*_arg1); |
| 4815 | |
| 4816 | wxPyEndAllowThreads(__tstate); |
| 4817 | if (PyErr_Occurred()) return NULL; |
| 4818 | } Py_INCREF(Py_None); |
| 4819 | _resultobj = Py_None; |
| 4820 | return _resultobj; |
| 4821 | } |
| 4822 | |
| 4823 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) |
| 4824 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4825 | PyObject * _resultobj; |
| 4826 | bool _result; |
| 4827 | wxWindow * _arg0; |
| 4828 | wxCursor * _arg1; |
| 4829 | PyObject * _argo0 = 0; |
| 4830 | PyObject * _argo1 = 0; |
| 4831 | char *_kwnames[] = { "self","cursor", NULL }; |
| 4832 | |
| 4833 | self = self; |
| 4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
| 4835 | return NULL; |
| 4836 | if (_argo0) { |
| 4837 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
| 4840 | return NULL; |
| 4841 | } |
| 4842 | } |
| 4843 | if (_argo1) { |
| 4844 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 4845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
| 4846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
| 4847 | return NULL; |
| 4848 | } |
| 4849 | } |
| 4850 | { |
| 4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4852 | _result = (bool )wxWindow_SetCursor(_arg0,*_arg1); |
| 4853 | |
| 4854 | wxPyEndAllowThreads(__tstate); |
| 4855 | if (PyErr_Occurred()) return NULL; |
| 4856 | } _resultobj = Py_BuildValue("i",_result); |
| 4857 | return _resultobj; |
| 4858 | } |
| 4859 | |
| 4860 | #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor()) |
| 4861 | static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4862 | PyObject * _resultobj; |
| 4863 | wxCursor * _result; |
| 4864 | wxWindow * _arg0; |
| 4865 | PyObject * _argo0 = 0; |
| 4866 | char *_kwnames[] = { "self", NULL }; |
| 4867 | char _ptemp[128]; |
| 4868 | |
| 4869 | self = self; |
| 4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0)) |
| 4871 | return NULL; |
| 4872 | if (_argo0) { |
| 4873 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p."); |
| 4876 | return NULL; |
| 4877 | } |
| 4878 | } |
| 4879 | { |
| 4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4881 | wxCursor & _result_ref = wxWindow_GetCursor(_arg0); |
| 4882 | _result = (wxCursor *) &_result_ref; |
| 4883 | |
| 4884 | wxPyEndAllowThreads(__tstate); |
| 4885 | if (PyErr_Occurred()) return NULL; |
| 4886 | } if (_result) { |
| 4887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); |
| 4888 | _resultobj = Py_BuildValue("s",_ptemp); |
| 4889 | } else { |
| 4890 | Py_INCREF(Py_None); |
| 4891 | _resultobj = Py_None; |
| 4892 | } |
| 4893 | return _resultobj; |
| 4894 | } |
| 4895 | |
| 4896 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
| 4897 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4898 | PyObject * _resultobj; |
| 4899 | wxWindow * _arg0; |
| 4900 | wxEvtHandler * _arg1; |
| 4901 | PyObject * _argo0 = 0; |
| 4902 | PyObject * _argo1 = 0; |
| 4903 | char *_kwnames[] = { "self","handler", NULL }; |
| 4904 | |
| 4905 | self = self; |
| 4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
| 4907 | return NULL; |
| 4908 | if (_argo0) { |
| 4909 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); |
| 4912 | return NULL; |
| 4913 | } |
| 4914 | } |
| 4915 | if (_argo1) { |
| 4916 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 4917 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 4918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); |
| 4919 | return NULL; |
| 4920 | } |
| 4921 | } |
| 4922 | { |
| 4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4924 | wxWindow_SetEventHandler(_arg0,_arg1); |
| 4925 | |
| 4926 | wxPyEndAllowThreads(__tstate); |
| 4927 | if (PyErr_Occurred()) return NULL; |
| 4928 | } Py_INCREF(Py_None); |
| 4929 | _resultobj = Py_None; |
| 4930 | return _resultobj; |
| 4931 | } |
| 4932 | |
| 4933 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
| 4934 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4935 | PyObject * _resultobj; |
| 4936 | wxWindow * _arg0; |
| 4937 | long _arg1; |
| 4938 | PyObject * _argo0 = 0; |
| 4939 | char *_kwnames[] = { "self","exStyle", NULL }; |
| 4940 | |
| 4941 | self = self; |
| 4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) |
| 4943 | return NULL; |
| 4944 | if (_argo0) { |
| 4945 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); |
| 4948 | return NULL; |
| 4949 | } |
| 4950 | } |
| 4951 | { |
| 4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4953 | wxWindow_SetExtraStyle(_arg0,_arg1); |
| 4954 | |
| 4955 | wxPyEndAllowThreads(__tstate); |
| 4956 | if (PyErr_Occurred()) return NULL; |
| 4957 | } Py_INCREF(Py_None); |
| 4958 | _resultobj = Py_None; |
| 4959 | return _resultobj; |
| 4960 | } |
| 4961 | |
| 4962 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
| 4963 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 4964 | PyObject * _resultobj; |
| 4965 | wxWindow * _arg0; |
| 4966 | wxString * _arg1; |
| 4967 | PyObject * _argo0 = 0; |
| 4968 | PyObject * _obj1 = 0; |
| 4969 | char *_kwnames[] = { "self","title", NULL }; |
| 4970 | |
| 4971 | self = self; |
| 4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
| 4973 | return NULL; |
| 4974 | if (_argo0) { |
| 4975 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 4976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 4977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
| 4978 | return NULL; |
| 4979 | } |
| 4980 | } |
| 4981 | { |
| 4982 | _arg1 = wxString_in_helper(_obj1); |
| 4983 | if (_arg1 == NULL) |
| 4984 | return NULL; |
| 4985 | } |
| 4986 | { |
| 4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 4988 | wxWindow_SetTitle(_arg0,*_arg1); |
| 4989 | |
| 4990 | wxPyEndAllowThreads(__tstate); |
| 4991 | if (PyErr_Occurred()) return NULL; |
| 4992 | } Py_INCREF(Py_None); |
| 4993 | _resultobj = Py_None; |
| 4994 | { |
| 4995 | if (_obj1) |
| 4996 | delete _arg1; |
| 4997 | } |
| 4998 | return _resultobj; |
| 4999 | } |
| 5000 | |
| 5001 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
| 5002 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5003 | PyObject * _resultobj; |
| 5004 | bool _result; |
| 5005 | wxWindow * _arg0; |
| 5006 | bool _arg1 = (bool ) TRUE; |
| 5007 | PyObject * _argo0 = 0; |
| 5008 | int tempbool1 = (int) TRUE; |
| 5009 | char *_kwnames[] = { "self","show", NULL }; |
| 5010 | |
| 5011 | self = self; |
| 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
| 5013 | return NULL; |
| 5014 | if (_argo0) { |
| 5015 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
| 5018 | return NULL; |
| 5019 | } |
| 5020 | } |
| 5021 | _arg1 = (bool ) tempbool1; |
| 5022 | { |
| 5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5024 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
| 5025 | |
| 5026 | wxPyEndAllowThreads(__tstate); |
| 5027 | if (PyErr_Occurred()) return NULL; |
| 5028 | } _resultobj = Py_BuildValue("i",_result); |
| 5029 | return _resultobj; |
| 5030 | } |
| 5031 | |
| 5032 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) |
| 5033 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5034 | PyObject * _resultobj; |
| 5035 | bool _result; |
| 5036 | wxWindow * _arg0; |
| 5037 | PyObject * _argo0 = 0; |
| 5038 | char *_kwnames[] = { "self", NULL }; |
| 5039 | |
| 5040 | self = self; |
| 5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
| 5042 | return NULL; |
| 5043 | if (_argo0) { |
| 5044 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
| 5047 | return NULL; |
| 5048 | } |
| 5049 | } |
| 5050 | { |
| 5051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5052 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
| 5053 | |
| 5054 | wxPyEndAllowThreads(__tstate); |
| 5055 | if (PyErr_Occurred()) return NULL; |
| 5056 | } _resultobj = Py_BuildValue("i",_result); |
| 5057 | return _resultobj; |
| 5058 | } |
| 5059 | |
| 5060 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) |
| 5061 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5062 | PyObject * _resultobj; |
| 5063 | bool _result; |
| 5064 | wxWindow * _arg0; |
| 5065 | PyObject * _argo0 = 0; |
| 5066 | char *_kwnames[] = { "self", NULL }; |
| 5067 | |
| 5068 | self = self; |
| 5069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
| 5070 | return NULL; |
| 5071 | if (_argo0) { |
| 5072 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
| 5075 | return NULL; |
| 5076 | } |
| 5077 | } |
| 5078 | { |
| 5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5080 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
| 5081 | |
| 5082 | wxPyEndAllowThreads(__tstate); |
| 5083 | if (PyErr_Occurred()) return NULL; |
| 5084 | } _resultobj = Py_BuildValue("i",_result); |
| 5085 | return _resultobj; |
| 5086 | } |
| 5087 | |
| 5088 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
| 5089 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5090 | PyObject * _resultobj; |
| 5091 | wxWindow * _arg0; |
| 5092 | PyObject * _argo0 = 0; |
| 5093 | char *_kwnames[] = { "self", NULL }; |
| 5094 | |
| 5095 | self = self; |
| 5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) |
| 5097 | return NULL; |
| 5098 | if (_argo0) { |
| 5099 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); |
| 5102 | return NULL; |
| 5103 | } |
| 5104 | } |
| 5105 | { |
| 5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5107 | wxWindow_UpdateWindowUI(_arg0); |
| 5108 | |
| 5109 | wxPyEndAllowThreads(__tstate); |
| 5110 | if (PyErr_Occurred()) return NULL; |
| 5111 | } Py_INCREF(Py_None); |
| 5112 | _resultobj = Py_None; |
| 5113 | return _resultobj; |
| 5114 | } |
| 5115 | |
| 5116 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
| 5117 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5118 | PyObject * _resultobj; |
| 5119 | bool _result; |
| 5120 | wxWindow * _arg0; |
| 5121 | PyObject * _argo0 = 0; |
| 5122 | char *_kwnames[] = { "self", NULL }; |
| 5123 | |
| 5124 | self = self; |
| 5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
| 5126 | return NULL; |
| 5127 | if (_argo0) { |
| 5128 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
| 5131 | return NULL; |
| 5132 | } |
| 5133 | } |
| 5134 | { |
| 5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5136 | _result = (bool )wxWindow_Validate(_arg0); |
| 5137 | |
| 5138 | wxPyEndAllowThreads(__tstate); |
| 5139 | if (PyErr_Occurred()) return NULL; |
| 5140 | } _resultobj = Py_BuildValue("i",_result); |
| 5141 | return _resultobj; |
| 5142 | } |
| 5143 | |
| 5144 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
| 5145 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5146 | PyObject * _resultobj; |
| 5147 | wxPoint * _result; |
| 5148 | wxWindow * _arg0; |
| 5149 | wxPoint * _arg1; |
| 5150 | PyObject * _argo0 = 0; |
| 5151 | wxPoint temp; |
| 5152 | PyObject * _obj1 = 0; |
| 5153 | char *_kwnames[] = { "self","pt", NULL }; |
| 5154 | char _ptemp[128]; |
| 5155 | |
| 5156 | self = self; |
| 5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
| 5158 | return NULL; |
| 5159 | if (_argo0) { |
| 5160 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
| 5163 | return NULL; |
| 5164 | } |
| 5165 | } |
| 5166 | { |
| 5167 | _arg1 = &temp; |
| 5168 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 5169 | return NULL; |
| 5170 | } |
| 5171 | { |
| 5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5173 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
| 5174 | |
| 5175 | wxPyEndAllowThreads(__tstate); |
| 5176 | if (PyErr_Occurred()) return NULL; |
| 5177 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 5178 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5179 | return _resultobj; |
| 5180 | } |
| 5181 | |
| 5182 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
| 5183 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5184 | PyObject * _resultobj; |
| 5185 | wxSize * _result; |
| 5186 | wxWindow * _arg0; |
| 5187 | wxSize * _arg1; |
| 5188 | PyObject * _argo0 = 0; |
| 5189 | wxSize temp; |
| 5190 | PyObject * _obj1 = 0; |
| 5191 | char *_kwnames[] = { "self","sz", NULL }; |
| 5192 | char _ptemp[128]; |
| 5193 | |
| 5194 | self = self; |
| 5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
| 5196 | return NULL; |
| 5197 | if (_argo0) { |
| 5198 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
| 5201 | return NULL; |
| 5202 | } |
| 5203 | } |
| 5204 | { |
| 5205 | _arg1 = &temp; |
| 5206 | if (! wxSize_helper(_obj1, &_arg1)) |
| 5207 | return NULL; |
| 5208 | } |
| 5209 | { |
| 5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5211 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
| 5212 | |
| 5213 | wxPyEndAllowThreads(__tstate); |
| 5214 | if (PyErr_Occurred()) return NULL; |
| 5215 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 5216 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5217 | return _resultobj; |
| 5218 | } |
| 5219 | |
| 5220 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) |
| 5221 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5222 | PyObject * _resultobj; |
| 5223 | wxPoint * _result; |
| 5224 | wxWindow * _arg0; |
| 5225 | wxPoint * _arg1; |
| 5226 | PyObject * _argo0 = 0; |
| 5227 | wxPoint temp; |
| 5228 | PyObject * _obj1 = 0; |
| 5229 | char *_kwnames[] = { "self","pt", NULL }; |
| 5230 | char _ptemp[128]; |
| 5231 | |
| 5232 | self = self; |
| 5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
| 5234 | return NULL; |
| 5235 | if (_argo0) { |
| 5236 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
| 5239 | return NULL; |
| 5240 | } |
| 5241 | } |
| 5242 | { |
| 5243 | _arg1 = &temp; |
| 5244 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 5245 | return NULL; |
| 5246 | } |
| 5247 | { |
| 5248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5249 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
| 5250 | |
| 5251 | wxPyEndAllowThreads(__tstate); |
| 5252 | if (PyErr_Occurred()) return NULL; |
| 5253 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 5254 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5255 | return _resultobj; |
| 5256 | } |
| 5257 | |
| 5258 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) |
| 5259 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5260 | PyObject * _resultobj; |
| 5261 | wxSize * _result; |
| 5262 | wxWindow * _arg0; |
| 5263 | wxSize * _arg1; |
| 5264 | PyObject * _argo0 = 0; |
| 5265 | wxSize temp; |
| 5266 | PyObject * _obj1 = 0; |
| 5267 | char *_kwnames[] = { "self","sz", NULL }; |
| 5268 | char _ptemp[128]; |
| 5269 | |
| 5270 | self = self; |
| 5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
| 5272 | return NULL; |
| 5273 | if (_argo0) { |
| 5274 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
| 5277 | return NULL; |
| 5278 | } |
| 5279 | } |
| 5280 | { |
| 5281 | _arg1 = &temp; |
| 5282 | if (! wxSize_helper(_obj1, &_arg1)) |
| 5283 | return NULL; |
| 5284 | } |
| 5285 | { |
| 5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5287 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
| 5288 | |
| 5289 | wxPyEndAllowThreads(__tstate); |
| 5290 | if (PyErr_Occurred()) return NULL; |
| 5291 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 5292 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5293 | return _resultobj; |
| 5294 | } |
| 5295 | |
| 5296 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
| 5297 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5298 | PyObject * _resultobj; |
| 5299 | wxWindow * _arg0; |
| 5300 | wxString * _arg1; |
| 5301 | PyObject * _argo0 = 0; |
| 5302 | PyObject * _obj1 = 0; |
| 5303 | char *_kwnames[] = { "self","tip", NULL }; |
| 5304 | |
| 5305 | self = self; |
| 5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
| 5307 | return NULL; |
| 5308 | if (_argo0) { |
| 5309 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
| 5312 | return NULL; |
| 5313 | } |
| 5314 | } |
| 5315 | { |
| 5316 | _arg1 = wxString_in_helper(_obj1); |
| 5317 | if (_arg1 == NULL) |
| 5318 | return NULL; |
| 5319 | } |
| 5320 | { |
| 5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5322 | wxWindow_SetToolTipString(_arg0,*_arg1); |
| 5323 | |
| 5324 | wxPyEndAllowThreads(__tstate); |
| 5325 | if (PyErr_Occurred()) return NULL; |
| 5326 | } Py_INCREF(Py_None); |
| 5327 | _resultobj = Py_None; |
| 5328 | { |
| 5329 | if (_obj1) |
| 5330 | delete _arg1; |
| 5331 | } |
| 5332 | return _resultobj; |
| 5333 | } |
| 5334 | |
| 5335 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
| 5336 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5337 | PyObject * _resultobj; |
| 5338 | wxWindow * _arg0; |
| 5339 | wxToolTip * _arg1; |
| 5340 | PyObject * _argo0 = 0; |
| 5341 | PyObject * _argo1 = 0; |
| 5342 | char *_kwnames[] = { "self","tooltip", NULL }; |
| 5343 | |
| 5344 | self = self; |
| 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
| 5346 | return NULL; |
| 5347 | if (_argo0) { |
| 5348 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
| 5351 | return NULL; |
| 5352 | } |
| 5353 | } |
| 5354 | if (_argo1) { |
| 5355 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { |
| 5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
| 5358 | return NULL; |
| 5359 | } |
| 5360 | } |
| 5361 | { |
| 5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5363 | wxWindow_SetToolTip(_arg0,_arg1); |
| 5364 | |
| 5365 | wxPyEndAllowThreads(__tstate); |
| 5366 | if (PyErr_Occurred()) return NULL; |
| 5367 | } Py_INCREF(Py_None); |
| 5368 | _resultobj = Py_None; |
| 5369 | return _resultobj; |
| 5370 | } |
| 5371 | |
| 5372 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) |
| 5373 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5374 | PyObject * _resultobj; |
| 5375 | wxToolTip * _result; |
| 5376 | wxWindow * _arg0; |
| 5377 | PyObject * _argo0 = 0; |
| 5378 | char *_kwnames[] = { "self", NULL }; |
| 5379 | |
| 5380 | self = self; |
| 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
| 5382 | return NULL; |
| 5383 | if (_argo0) { |
| 5384 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
| 5387 | return NULL; |
| 5388 | } |
| 5389 | } |
| 5390 | { |
| 5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5392 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
| 5393 | |
| 5394 | wxPyEndAllowThreads(__tstate); |
| 5395 | if (PyErr_Occurred()) return NULL; |
| 5396 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 5397 | return _resultobj; |
| 5398 | } |
| 5399 | |
| 5400 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
| 5401 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5402 | PyObject * _resultobj; |
| 5403 | wxWindow * _arg0; |
| 5404 | wxSizer * _arg1; |
| 5405 | bool _arg2 = (bool ) TRUE; |
| 5406 | PyObject * _argo0 = 0; |
| 5407 | PyObject * _argo1 = 0; |
| 5408 | int tempbool2 = (int) TRUE; |
| 5409 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; |
| 5410 | |
| 5411 | self = self; |
| 5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
| 5413 | return NULL; |
| 5414 | if (_argo0) { |
| 5415 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); |
| 5418 | return NULL; |
| 5419 | } |
| 5420 | } |
| 5421 | if (_argo1) { |
| 5422 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { |
| 5424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); |
| 5425 | return NULL; |
| 5426 | } |
| 5427 | } |
| 5428 | _arg2 = (bool ) tempbool2; |
| 5429 | { |
| 5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5431 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
| 5432 | |
| 5433 | wxPyEndAllowThreads(__tstate); |
| 5434 | if (PyErr_Occurred()) return NULL; |
| 5435 | } Py_INCREF(Py_None); |
| 5436 | _resultobj = Py_None; |
| 5437 | return _resultobj; |
| 5438 | } |
| 5439 | |
| 5440 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
| 5441 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5442 | PyObject * _resultobj; |
| 5443 | wxWindow * _arg0; |
| 5444 | wxSizer * _arg1; |
| 5445 | bool _arg2 = (bool ) TRUE; |
| 5446 | PyObject * _argo0 = 0; |
| 5447 | PyObject * _argo1 = 0; |
| 5448 | int tempbool2 = (int) TRUE; |
| 5449 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; |
| 5450 | |
| 5451 | self = self; |
| 5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) |
| 5453 | return NULL; |
| 5454 | if (_argo0) { |
| 5455 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); |
| 5458 | return NULL; |
| 5459 | } |
| 5460 | } |
| 5461 | if (_argo1) { |
| 5462 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { |
| 5464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); |
| 5465 | return NULL; |
| 5466 | } |
| 5467 | } |
| 5468 | _arg2 = (bool ) tempbool2; |
| 5469 | { |
| 5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5471 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); |
| 5472 | |
| 5473 | wxPyEndAllowThreads(__tstate); |
| 5474 | if (PyErr_Occurred()) return NULL; |
| 5475 | } Py_INCREF(Py_None); |
| 5476 | _resultobj = Py_None; |
| 5477 | return _resultobj; |
| 5478 | } |
| 5479 | |
| 5480 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
| 5481 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5482 | PyObject * _resultobj; |
| 5483 | wxSizer * _result; |
| 5484 | wxWindow * _arg0; |
| 5485 | PyObject * _argo0 = 0; |
| 5486 | char *_kwnames[] = { "self", NULL }; |
| 5487 | |
| 5488 | self = self; |
| 5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) |
| 5490 | return NULL; |
| 5491 | if (_argo0) { |
| 5492 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); |
| 5495 | return NULL; |
| 5496 | } |
| 5497 | } |
| 5498 | { |
| 5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5500 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
| 5501 | |
| 5502 | wxPyEndAllowThreads(__tstate); |
| 5503 | if (PyErr_Occurred()) return NULL; |
| 5504 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
| 5505 | return _resultobj; |
| 5506 | } |
| 5507 | |
| 5508 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
| 5509 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5510 | PyObject * _resultobj; |
| 5511 | wxWindow * _arg0; |
| 5512 | wxSizer * _arg1; |
| 5513 | PyObject * _argo0 = 0; |
| 5514 | PyObject * _argo1 = 0; |
| 5515 | char *_kwnames[] = { "self","sizer", NULL }; |
| 5516 | |
| 5517 | self = self; |
| 5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) |
| 5519 | return NULL; |
| 5520 | if (_argo0) { |
| 5521 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); |
| 5524 | return NULL; |
| 5525 | } |
| 5526 | } |
| 5527 | if (_argo1) { |
| 5528 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { |
| 5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); |
| 5531 | return NULL; |
| 5532 | } |
| 5533 | } |
| 5534 | { |
| 5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5536 | wxWindow_SetContainingSizer(_arg0,_arg1); |
| 5537 | |
| 5538 | wxPyEndAllowThreads(__tstate); |
| 5539 | if (PyErr_Occurred()) return NULL; |
| 5540 | } Py_INCREF(Py_None); |
| 5541 | _resultobj = Py_None; |
| 5542 | return _resultobj; |
| 5543 | } |
| 5544 | |
| 5545 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) |
| 5546 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5547 | PyObject * _resultobj; |
| 5548 | wxSizer * _result; |
| 5549 | wxWindow * _arg0; |
| 5550 | PyObject * _argo0 = 0; |
| 5551 | char *_kwnames[] = { "self", NULL }; |
| 5552 | |
| 5553 | self = self; |
| 5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) |
| 5555 | return NULL; |
| 5556 | if (_argo0) { |
| 5557 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); |
| 5560 | return NULL; |
| 5561 | } |
| 5562 | } |
| 5563 | { |
| 5564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5565 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
| 5566 | |
| 5567 | wxPyEndAllowThreads(__tstate); |
| 5568 | if (PyErr_Occurred()) return NULL; |
| 5569 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
| 5570 | return _resultobj; |
| 5571 | } |
| 5572 | |
| 5573 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
| 5574 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5575 | PyObject * _resultobj; |
| 5576 | wxValidator * _result; |
| 5577 | wxWindow * _arg0; |
| 5578 | PyObject * _argo0 = 0; |
| 5579 | char *_kwnames[] = { "self", NULL }; |
| 5580 | |
| 5581 | self = self; |
| 5582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) |
| 5583 | return NULL; |
| 5584 | if (_argo0) { |
| 5585 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); |
| 5588 | return NULL; |
| 5589 | } |
| 5590 | } |
| 5591 | { |
| 5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5593 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
| 5594 | |
| 5595 | wxPyEndAllowThreads(__tstate); |
| 5596 | if (PyErr_Occurred()) return NULL; |
| 5597 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 5598 | return _resultobj; |
| 5599 | } |
| 5600 | |
| 5601 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) |
| 5602 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5603 | PyObject * _resultobj; |
| 5604 | wxWindow * _arg0; |
| 5605 | wxValidator * _arg1; |
| 5606 | PyObject * _argo0 = 0; |
| 5607 | PyObject * _argo1 = 0; |
| 5608 | char *_kwnames[] = { "self","validator", NULL }; |
| 5609 | |
| 5610 | self = self; |
| 5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) |
| 5612 | return NULL; |
| 5613 | if (_argo0) { |
| 5614 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); |
| 5617 | return NULL; |
| 5618 | } |
| 5619 | } |
| 5620 | if (_argo1) { |
| 5621 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5622 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { |
| 5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); |
| 5624 | return NULL; |
| 5625 | } |
| 5626 | } |
| 5627 | { |
| 5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5629 | wxWindow_SetValidator(_arg0,*_arg1); |
| 5630 | |
| 5631 | wxPyEndAllowThreads(__tstate); |
| 5632 | if (PyErr_Occurred()) return NULL; |
| 5633 | } Py_INCREF(Py_None); |
| 5634 | _resultobj = Py_None; |
| 5635 | return _resultobj; |
| 5636 | } |
| 5637 | |
| 5638 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
| 5639 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5640 | PyObject * _resultobj; |
| 5641 | wxWindow * _arg0; |
| 5642 | wxDropTarget * _arg1; |
| 5643 | PyObject * _argo0 = 0; |
| 5644 | PyObject * _argo1 = 0; |
| 5645 | char *_kwnames[] = { "self","target", NULL }; |
| 5646 | |
| 5647 | self = self; |
| 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) |
| 5649 | return NULL; |
| 5650 | if (_argo0) { |
| 5651 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); |
| 5654 | return NULL; |
| 5655 | } |
| 5656 | } |
| 5657 | if (_argo1) { |
| 5658 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5659 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { |
| 5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); |
| 5661 | return NULL; |
| 5662 | } |
| 5663 | } |
| 5664 | { |
| 5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5666 | wxWindow_SetDropTarget(_arg0,_arg1); |
| 5667 | |
| 5668 | wxPyEndAllowThreads(__tstate); |
| 5669 | if (PyErr_Occurred()) return NULL; |
| 5670 | } Py_INCREF(Py_None); |
| 5671 | _resultobj = Py_None; |
| 5672 | return _resultobj; |
| 5673 | } |
| 5674 | |
| 5675 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) |
| 5676 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5677 | PyObject * _resultobj; |
| 5678 | wxDropTarget * _result; |
| 5679 | wxWindow * _arg0; |
| 5680 | PyObject * _argo0 = 0; |
| 5681 | char *_kwnames[] = { "self", NULL }; |
| 5682 | char _ptemp[128]; |
| 5683 | |
| 5684 | self = self; |
| 5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) |
| 5686 | return NULL; |
| 5687 | if (_argo0) { |
| 5688 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); |
| 5691 | return NULL; |
| 5692 | } |
| 5693 | } |
| 5694 | { |
| 5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5696 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
| 5697 | |
| 5698 | wxPyEndAllowThreads(__tstate); |
| 5699 | if (PyErr_Occurred()) return NULL; |
| 5700 | } if (_result) { |
| 5701 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); |
| 5702 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5703 | } else { |
| 5704 | Py_INCREF(Py_None); |
| 5705 | _resultobj = Py_None; |
| 5706 | } |
| 5707 | return _resultobj; |
| 5708 | } |
| 5709 | |
| 5710 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
| 5711 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5712 | PyObject * _resultobj; |
| 5713 | wxSize * _result; |
| 5714 | wxWindow * _arg0; |
| 5715 | PyObject * _argo0 = 0; |
| 5716 | char *_kwnames[] = { "self", NULL }; |
| 5717 | char _ptemp[128]; |
| 5718 | |
| 5719 | self = self; |
| 5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) |
| 5721 | return NULL; |
| 5722 | if (_argo0) { |
| 5723 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); |
| 5726 | return NULL; |
| 5727 | } |
| 5728 | } |
| 5729 | { |
| 5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5731 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
| 5732 | |
| 5733 | wxPyEndAllowThreads(__tstate); |
| 5734 | if (PyErr_Occurred()) return NULL; |
| 5735 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 5736 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5737 | return _resultobj; |
| 5738 | } |
| 5739 | |
| 5740 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
| 5741 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5742 | PyObject * _resultobj; |
| 5743 | wxSize * _result; |
| 5744 | wxWindow * _arg0; |
| 5745 | PyObject * _argo0 = 0; |
| 5746 | char *_kwnames[] = { "self", NULL }; |
| 5747 | char _ptemp[128]; |
| 5748 | |
| 5749 | self = self; |
| 5750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) |
| 5751 | return NULL; |
| 5752 | if (_argo0) { |
| 5753 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); |
| 5756 | return NULL; |
| 5757 | } |
| 5758 | } |
| 5759 | { |
| 5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5761 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); |
| 5762 | |
| 5763 | wxPyEndAllowThreads(__tstate); |
| 5764 | if (PyErr_Occurred()) return NULL; |
| 5765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
| 5766 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5767 | return _resultobj; |
| 5768 | } |
| 5769 | |
| 5770 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
| 5771 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5772 | PyObject * _resultobj; |
| 5773 | wxWindow * _arg0; |
| 5774 | wxCaret * _arg1; |
| 5775 | PyObject * _argo0 = 0; |
| 5776 | PyObject * _argo1 = 0; |
| 5777 | char *_kwnames[] = { "self","caret", NULL }; |
| 5778 | |
| 5779 | self = self; |
| 5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) |
| 5781 | return NULL; |
| 5782 | if (_argo0) { |
| 5783 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); |
| 5786 | return NULL; |
| 5787 | } |
| 5788 | } |
| 5789 | if (_argo1) { |
| 5790 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 5791 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { |
| 5792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); |
| 5793 | return NULL; |
| 5794 | } |
| 5795 | } |
| 5796 | { |
| 5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5798 | wxWindow_SetCaret(_arg0,_arg1); |
| 5799 | |
| 5800 | wxPyEndAllowThreads(__tstate); |
| 5801 | if (PyErr_Occurred()) return NULL; |
| 5802 | } Py_INCREF(Py_None); |
| 5803 | _resultobj = Py_None; |
| 5804 | return _resultobj; |
| 5805 | } |
| 5806 | |
| 5807 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) |
| 5808 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5809 | PyObject * _resultobj; |
| 5810 | wxCaret * _result; |
| 5811 | wxWindow * _arg0; |
| 5812 | PyObject * _argo0 = 0; |
| 5813 | char *_kwnames[] = { "self", NULL }; |
| 5814 | char _ptemp[128]; |
| 5815 | |
| 5816 | self = self; |
| 5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) |
| 5818 | return NULL; |
| 5819 | if (_argo0) { |
| 5820 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); |
| 5823 | return NULL; |
| 5824 | } |
| 5825 | } |
| 5826 | { |
| 5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5828 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
| 5829 | |
| 5830 | wxPyEndAllowThreads(__tstate); |
| 5831 | if (PyErr_Occurred()) return NULL; |
| 5832 | } if (_result) { |
| 5833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); |
| 5834 | _resultobj = Py_BuildValue("s",_ptemp); |
| 5835 | } else { |
| 5836 | Py_INCREF(Py_None); |
| 5837 | _resultobj = Py_None; |
| 5838 | } |
| 5839 | return _resultobj; |
| 5840 | } |
| 5841 | |
| 5842 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
| 5843 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5844 | PyObject * _resultobj; |
| 5845 | wxWindow * _arg0; |
| 5846 | PyObject * _argo0 = 0; |
| 5847 | char *_kwnames[] = { "self", NULL }; |
| 5848 | |
| 5849 | self = self; |
| 5850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) |
| 5851 | return NULL; |
| 5852 | if (_argo0) { |
| 5853 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); |
| 5856 | return NULL; |
| 5857 | } |
| 5858 | } |
| 5859 | { |
| 5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5861 | wxWindow_Freeze(_arg0); |
| 5862 | |
| 5863 | wxPyEndAllowThreads(__tstate); |
| 5864 | if (PyErr_Occurred()) return NULL; |
| 5865 | } Py_INCREF(Py_None); |
| 5866 | _resultobj = Py_None; |
| 5867 | return _resultobj; |
| 5868 | } |
| 5869 | |
| 5870 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) |
| 5871 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5872 | PyObject * _resultobj; |
| 5873 | wxWindow * _arg0; |
| 5874 | PyObject * _argo0 = 0; |
| 5875 | char *_kwnames[] = { "self", NULL }; |
| 5876 | |
| 5877 | self = self; |
| 5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) |
| 5879 | return NULL; |
| 5880 | if (_argo0) { |
| 5881 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); |
| 5884 | return NULL; |
| 5885 | } |
| 5886 | } |
| 5887 | { |
| 5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5889 | wxWindow_Thaw(_arg0); |
| 5890 | |
| 5891 | wxPyEndAllowThreads(__tstate); |
| 5892 | if (PyErr_Occurred()) return NULL; |
| 5893 | } Py_INCREF(Py_None); |
| 5894 | _resultobj = Py_None; |
| 5895 | return _resultobj; |
| 5896 | } |
| 5897 | |
| 5898 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
| 5899 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5900 | PyObject * _resultobj; |
| 5901 | wxWindow * _arg0; |
| 5902 | PyObject * _argo0 = 0; |
| 5903 | char *_kwnames[] = { "self", NULL }; |
| 5904 | |
| 5905 | self = self; |
| 5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) |
| 5907 | return NULL; |
| 5908 | if (_argo0) { |
| 5909 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); |
| 5912 | return NULL; |
| 5913 | } |
| 5914 | } |
| 5915 | { |
| 5916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5917 | wxWindow_Update(_arg0); |
| 5918 | |
| 5919 | wxPyEndAllowThreads(__tstate); |
| 5920 | if (PyErr_Occurred()) return NULL; |
| 5921 | } Py_INCREF(Py_None); |
| 5922 | _resultobj = Py_None; |
| 5923 | return _resultobj; |
| 5924 | } |
| 5925 | |
| 5926 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
| 5927 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5928 | PyObject * _resultobj; |
| 5929 | wxString * _result; |
| 5930 | wxWindow * _arg0; |
| 5931 | PyObject * _argo0 = 0; |
| 5932 | char *_kwnames[] = { "self", NULL }; |
| 5933 | |
| 5934 | self = self; |
| 5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) |
| 5936 | return NULL; |
| 5937 | if (_argo0) { |
| 5938 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); |
| 5941 | return NULL; |
| 5942 | } |
| 5943 | } |
| 5944 | { |
| 5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5946 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
| 5947 | |
| 5948 | wxPyEndAllowThreads(__tstate); |
| 5949 | if (PyErr_Occurred()) return NULL; |
| 5950 | }{ |
| 5951 | #if wxUSE_UNICODE |
| 5952 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 5953 | #else |
| 5954 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 5955 | #endif |
| 5956 | } |
| 5957 | { |
| 5958 | delete _result; |
| 5959 | } |
| 5960 | return _resultobj; |
| 5961 | } |
| 5962 | |
| 5963 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) |
| 5964 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 5965 | PyObject * _resultobj; |
| 5966 | wxWindow * _arg0; |
| 5967 | wxString * _arg1; |
| 5968 | PyObject * _argo0 = 0; |
| 5969 | PyObject * _obj1 = 0; |
| 5970 | char *_kwnames[] = { "self","helpText", NULL }; |
| 5971 | |
| 5972 | self = self; |
| 5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) |
| 5974 | return NULL; |
| 5975 | if (_argo0) { |
| 5976 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); |
| 5979 | return NULL; |
| 5980 | } |
| 5981 | } |
| 5982 | { |
| 5983 | _arg1 = wxString_in_helper(_obj1); |
| 5984 | if (_arg1 == NULL) |
| 5985 | return NULL; |
| 5986 | } |
| 5987 | { |
| 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 5989 | wxWindow_SetHelpText(_arg0,*_arg1); |
| 5990 | |
| 5991 | wxPyEndAllowThreads(__tstate); |
| 5992 | if (PyErr_Occurred()) return NULL; |
| 5993 | } Py_INCREF(Py_None); |
| 5994 | _resultobj = Py_None; |
| 5995 | { |
| 5996 | if (_obj1) |
| 5997 | delete _arg1; |
| 5998 | } |
| 5999 | return _resultobj; |
| 6000 | } |
| 6001 | |
| 6002 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
| 6003 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6004 | PyObject * _resultobj; |
| 6005 | wxWindow * _arg0; |
| 6006 | wxString * _arg1; |
| 6007 | PyObject * _argo0 = 0; |
| 6008 | PyObject * _obj1 = 0; |
| 6009 | char *_kwnames[] = { "self","text", NULL }; |
| 6010 | |
| 6011 | self = self; |
| 6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) |
| 6013 | return NULL; |
| 6014 | if (_argo0) { |
| 6015 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); |
| 6018 | return NULL; |
| 6019 | } |
| 6020 | } |
| 6021 | { |
| 6022 | _arg1 = wxString_in_helper(_obj1); |
| 6023 | if (_arg1 == NULL) |
| 6024 | return NULL; |
| 6025 | } |
| 6026 | { |
| 6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6028 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
| 6029 | |
| 6030 | wxPyEndAllowThreads(__tstate); |
| 6031 | if (PyErr_Occurred()) return NULL; |
| 6032 | } Py_INCREF(Py_None); |
| 6033 | _resultobj = Py_None; |
| 6034 | { |
| 6035 | if (_obj1) |
| 6036 | delete _arg1; |
| 6037 | } |
| 6038 | return _resultobj; |
| 6039 | } |
| 6040 | |
| 6041 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
| 6042 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6043 | PyObject * _resultobj; |
| 6044 | bool _result; |
| 6045 | wxWindow * _arg0; |
| 6046 | int _arg1; |
| 6047 | PyObject * _argo0 = 0; |
| 6048 | char *_kwnames[] = { "self","lines", NULL }; |
| 6049 | |
| 6050 | self = self; |
| 6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) |
| 6052 | return NULL; |
| 6053 | if (_argo0) { |
| 6054 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); |
| 6057 | return NULL; |
| 6058 | } |
| 6059 | } |
| 6060 | { |
| 6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6062 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
| 6063 | |
| 6064 | wxPyEndAllowThreads(__tstate); |
| 6065 | if (PyErr_Occurred()) return NULL; |
| 6066 | } _resultobj = Py_BuildValue("i",_result); |
| 6067 | return _resultobj; |
| 6068 | } |
| 6069 | |
| 6070 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) |
| 6071 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6072 | PyObject * _resultobj; |
| 6073 | bool _result; |
| 6074 | wxWindow * _arg0; |
| 6075 | int _arg1; |
| 6076 | PyObject * _argo0 = 0; |
| 6077 | char *_kwnames[] = { "self","pages", NULL }; |
| 6078 | |
| 6079 | self = self; |
| 6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) |
| 6081 | return NULL; |
| 6082 | if (_argo0) { |
| 6083 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); |
| 6086 | return NULL; |
| 6087 | } |
| 6088 | } |
| 6089 | { |
| 6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6091 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
| 6092 | |
| 6093 | wxPyEndAllowThreads(__tstate); |
| 6094 | if (PyErr_Occurred()) return NULL; |
| 6095 | } _resultobj = Py_BuildValue("i",_result); |
| 6096 | return _resultobj; |
| 6097 | } |
| 6098 | |
| 6099 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) |
| 6100 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6101 | PyObject * _resultobj; |
| 6102 | bool _result; |
| 6103 | wxWindow * _arg0; |
| 6104 | PyObject * _argo0 = 0; |
| 6105 | char *_kwnames[] = { "self", NULL }; |
| 6106 | |
| 6107 | self = self; |
| 6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) |
| 6109 | return NULL; |
| 6110 | if (_argo0) { |
| 6111 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); |
| 6114 | return NULL; |
| 6115 | } |
| 6116 | } |
| 6117 | { |
| 6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6119 | _result = (bool )wxWindow_LineUp(_arg0); |
| 6120 | |
| 6121 | wxPyEndAllowThreads(__tstate); |
| 6122 | if (PyErr_Occurred()) return NULL; |
| 6123 | } _resultobj = Py_BuildValue("i",_result); |
| 6124 | return _resultobj; |
| 6125 | } |
| 6126 | |
| 6127 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) |
| 6128 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6129 | PyObject * _resultobj; |
| 6130 | bool _result; |
| 6131 | wxWindow * _arg0; |
| 6132 | PyObject * _argo0 = 0; |
| 6133 | char *_kwnames[] = { "self", NULL }; |
| 6134 | |
| 6135 | self = self; |
| 6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) |
| 6137 | return NULL; |
| 6138 | if (_argo0) { |
| 6139 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); |
| 6142 | return NULL; |
| 6143 | } |
| 6144 | } |
| 6145 | { |
| 6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6147 | _result = (bool )wxWindow_LineDown(_arg0); |
| 6148 | |
| 6149 | wxPyEndAllowThreads(__tstate); |
| 6150 | if (PyErr_Occurred()) return NULL; |
| 6151 | } _resultobj = Py_BuildValue("i",_result); |
| 6152 | return _resultobj; |
| 6153 | } |
| 6154 | |
| 6155 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) |
| 6156 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6157 | PyObject * _resultobj; |
| 6158 | bool _result; |
| 6159 | wxWindow * _arg0; |
| 6160 | PyObject * _argo0 = 0; |
| 6161 | char *_kwnames[] = { "self", NULL }; |
| 6162 | |
| 6163 | self = self; |
| 6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) |
| 6165 | return NULL; |
| 6166 | if (_argo0) { |
| 6167 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); |
| 6170 | return NULL; |
| 6171 | } |
| 6172 | } |
| 6173 | { |
| 6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6175 | _result = (bool )wxWindow_PageUp(_arg0); |
| 6176 | |
| 6177 | wxPyEndAllowThreads(__tstate); |
| 6178 | if (PyErr_Occurred()) return NULL; |
| 6179 | } _resultobj = Py_BuildValue("i",_result); |
| 6180 | return _resultobj; |
| 6181 | } |
| 6182 | |
| 6183 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) |
| 6184 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6185 | PyObject * _resultobj; |
| 6186 | bool _result; |
| 6187 | wxWindow * _arg0; |
| 6188 | PyObject * _argo0 = 0; |
| 6189 | char *_kwnames[] = { "self", NULL }; |
| 6190 | |
| 6191 | self = self; |
| 6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) |
| 6193 | return NULL; |
| 6194 | if (_argo0) { |
| 6195 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); |
| 6198 | return NULL; |
| 6199 | } |
| 6200 | } |
| 6201 | { |
| 6202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6203 | _result = (bool )wxWindow_PageDown(_arg0); |
| 6204 | |
| 6205 | wxPyEndAllowThreads(__tstate); |
| 6206 | if (PyErr_Occurred()) return NULL; |
| 6207 | } _resultobj = Py_BuildValue("i",_result); |
| 6208 | return _resultobj; |
| 6209 | } |
| 6210 | |
| 6211 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6212 | PyObject * _resultobj; |
| 6213 | wxWindow * _result; |
| 6214 | char *_kwnames[] = { NULL }; |
| 6215 | |
| 6216 | self = self; |
| 6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) |
| 6218 | return NULL; |
| 6219 | { |
| 6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6221 | _result = (wxWindow *)wxWindow::FindFocus(); |
| 6222 | |
| 6223 | wxPyEndAllowThreads(__tstate); |
| 6224 | if (PyErr_Occurred()) return NULL; |
| 6225 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 6226 | return _resultobj; |
| 6227 | } |
| 6228 | |
| 6229 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6230 | PyObject * _resultobj; |
| 6231 | int _result; |
| 6232 | char *_kwnames[] = { NULL }; |
| 6233 | |
| 6234 | self = self; |
| 6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) |
| 6236 | return NULL; |
| 6237 | { |
| 6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6239 | _result = (int )wxWindow::NewControlId(); |
| 6240 | |
| 6241 | wxPyEndAllowThreads(__tstate); |
| 6242 | if (PyErr_Occurred()) return NULL; |
| 6243 | } _resultobj = Py_BuildValue("i",_result); |
| 6244 | return _resultobj; |
| 6245 | } |
| 6246 | |
| 6247 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6248 | PyObject * _resultobj; |
| 6249 | int _result; |
| 6250 | int _arg0; |
| 6251 | char *_kwnames[] = { "id", NULL }; |
| 6252 | |
| 6253 | self = self; |
| 6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) |
| 6255 | return NULL; |
| 6256 | { |
| 6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6258 | _result = (int )wxWindow::NextControlId(_arg0); |
| 6259 | |
| 6260 | wxPyEndAllowThreads(__tstate); |
| 6261 | if (PyErr_Occurred()) return NULL; |
| 6262 | } _resultobj = Py_BuildValue("i",_result); |
| 6263 | return _resultobj; |
| 6264 | } |
| 6265 | |
| 6266 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6267 | PyObject * _resultobj; |
| 6268 | int _result; |
| 6269 | int _arg0; |
| 6270 | char *_kwnames[] = { "id", NULL }; |
| 6271 | |
| 6272 | self = self; |
| 6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) |
| 6274 | return NULL; |
| 6275 | { |
| 6276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6277 | _result = (int )wxWindow::PrevControlId(_arg0); |
| 6278 | |
| 6279 | wxPyEndAllowThreads(__tstate); |
| 6280 | if (PyErr_Occurred()) return NULL; |
| 6281 | } _resultobj = Py_BuildValue("i",_result); |
| 6282 | return _resultobj; |
| 6283 | } |
| 6284 | |
| 6285 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
| 6286 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6287 | PyObject * _resultobj; |
| 6288 | wxWindow * _arg0; |
| 6289 | wxAcceleratorTable * _arg1; |
| 6290 | PyObject * _argo0 = 0; |
| 6291 | PyObject * _argo1 = 0; |
| 6292 | char *_kwnames[] = { "self","accel", NULL }; |
| 6293 | |
| 6294 | self = self; |
| 6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
| 6296 | return NULL; |
| 6297 | if (_argo0) { |
| 6298 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
| 6301 | return NULL; |
| 6302 | } |
| 6303 | } |
| 6304 | if (_argo1) { |
| 6305 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 6306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { |
| 6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
| 6308 | return NULL; |
| 6309 | } |
| 6310 | } |
| 6311 | { |
| 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6313 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
| 6314 | |
| 6315 | wxPyEndAllowThreads(__tstate); |
| 6316 | if (PyErr_Occurred()) return NULL; |
| 6317 | } Py_INCREF(Py_None); |
| 6318 | _resultobj = Py_None; |
| 6319 | return _resultobj; |
| 6320 | } |
| 6321 | |
| 6322 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
| 6323 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6324 | PyObject * _resultobj; |
| 6325 | wxAcceleratorTable * _result; |
| 6326 | wxWindow * _arg0; |
| 6327 | PyObject * _argo0 = 0; |
| 6328 | char *_kwnames[] = { "self", NULL }; |
| 6329 | char _ptemp[128]; |
| 6330 | |
| 6331 | self = self; |
| 6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) |
| 6333 | return NULL; |
| 6334 | if (_argo0) { |
| 6335 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); |
| 6338 | return NULL; |
| 6339 | } |
| 6340 | } |
| 6341 | { |
| 6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6343 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
| 6344 | |
| 6345 | wxPyEndAllowThreads(__tstate); |
| 6346 | if (PyErr_Occurred()) return NULL; |
| 6347 | } if (_result) { |
| 6348 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); |
| 6349 | _resultobj = Py_BuildValue("s",_ptemp); |
| 6350 | } else { |
| 6351 | Py_INCREF(Py_None); |
| 6352 | _resultobj = Py_None; |
| 6353 | } |
| 6354 | return _resultobj; |
| 6355 | } |
| 6356 | |
| 6357 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
| 6358 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6359 | PyObject * _resultobj; |
| 6360 | wxWindow * _result; |
| 6361 | wxWindow * _arg0; |
| 6362 | PyObject * _argo0 = 0; |
| 6363 | char *_kwnames[] = { "self", NULL }; |
| 6364 | |
| 6365 | self = self; |
| 6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) |
| 6367 | return NULL; |
| 6368 | if (_argo0) { |
| 6369 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); |
| 6372 | return NULL; |
| 6373 | } |
| 6374 | } |
| 6375 | { |
| 6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6377 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
| 6378 | |
| 6379 | wxPyEndAllowThreads(__tstate); |
| 6380 | if (PyErr_Occurred()) return NULL; |
| 6381 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 6382 | return _resultobj; |
| 6383 | } |
| 6384 | |
| 6385 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) |
| 6386 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6387 | PyObject * _resultobj; |
| 6388 | wxWindow * _result; |
| 6389 | wxWindow * _arg0; |
| 6390 | wxWindow * _arg1; |
| 6391 | PyObject * _argo0 = 0; |
| 6392 | PyObject * _argo1 = 0; |
| 6393 | char *_kwnames[] = { "self","btn", NULL }; |
| 6394 | |
| 6395 | self = self; |
| 6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
| 6397 | return NULL; |
| 6398 | if (_argo0) { |
| 6399 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); |
| 6402 | return NULL; |
| 6403 | } |
| 6404 | } |
| 6405 | if (_argo1) { |
| 6406 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 6407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 6408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); |
| 6409 | return NULL; |
| 6410 | } |
| 6411 | } |
| 6412 | { |
| 6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6414 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
| 6415 | |
| 6416 | wxPyEndAllowThreads(__tstate); |
| 6417 | if (PyErr_Occurred()) return NULL; |
| 6418 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 6419 | return _resultobj; |
| 6420 | } |
| 6421 | |
| 6422 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
| 6423 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6424 | PyObject * _resultobj; |
| 6425 | wxWindow * _arg0; |
| 6426 | wxWindow * _arg1; |
| 6427 | PyObject * _argo0 = 0; |
| 6428 | PyObject * _argo1 = 0; |
| 6429 | char *_kwnames[] = { "self","win", NULL }; |
| 6430 | |
| 6431 | self = self; |
| 6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) |
| 6433 | return NULL; |
| 6434 | if (_argo0) { |
| 6435 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); |
| 6438 | return NULL; |
| 6439 | } |
| 6440 | } |
| 6441 | if (_argo1) { |
| 6442 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 6443 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); |
| 6445 | return NULL; |
| 6446 | } |
| 6447 | } |
| 6448 | { |
| 6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6450 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); |
| 6451 | |
| 6452 | wxPyEndAllowThreads(__tstate); |
| 6453 | if (PyErr_Occurred()) return NULL; |
| 6454 | } Py_INCREF(Py_None); |
| 6455 | _resultobj = Py_None; |
| 6456 | return _resultobj; |
| 6457 | } |
| 6458 | |
| 6459 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
| 6460 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6461 | PyObject * _resultobj; |
| 6462 | wxWindow * _arg0; |
| 6463 | int _arg1; |
| 6464 | int _arg2; |
| 6465 | PyObject * _argo0 = 0; |
| 6466 | char *_kwnames[] = { "self","x","y", NULL }; |
| 6467 | |
| 6468 | self = self; |
| 6469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 6470 | return NULL; |
| 6471 | if (_argo0) { |
| 6472 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
| 6475 | return NULL; |
| 6476 | } |
| 6477 | } |
| 6478 | { |
| 6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6480 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
| 6481 | |
| 6482 | wxPyEndAllowThreads(__tstate); |
| 6483 | if (PyErr_Occurred()) return NULL; |
| 6484 | } Py_INCREF(Py_None); |
| 6485 | _resultobj = Py_None; |
| 6486 | return _resultobj; |
| 6487 | } |
| 6488 | |
| 6489 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
| 6490 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6491 | PyObject * _resultobj; |
| 6492 | wxWindow * _arg0; |
| 6493 | PyObject * _argo0 = 0; |
| 6494 | char *_kwnames[] = { "self", NULL }; |
| 6495 | |
| 6496 | self = self; |
| 6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
| 6498 | return NULL; |
| 6499 | if (_argo0) { |
| 6500 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
| 6503 | return NULL; |
| 6504 | } |
| 6505 | } |
| 6506 | { |
| 6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6508 | wxWindow_CaptureMouse(_arg0); |
| 6509 | |
| 6510 | wxPyEndAllowThreads(__tstate); |
| 6511 | if (PyErr_Occurred()) return NULL; |
| 6512 | } Py_INCREF(Py_None); |
| 6513 | _resultobj = Py_None; |
| 6514 | return _resultobj; |
| 6515 | } |
| 6516 | |
| 6517 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
| 6518 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6519 | PyObject * _resultobj; |
| 6520 | wxWindow * _arg0; |
| 6521 | PyObject * _argo0 = 0; |
| 6522 | char *_kwnames[] = { "self", NULL }; |
| 6523 | |
| 6524 | self = self; |
| 6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
| 6526 | return NULL; |
| 6527 | if (_argo0) { |
| 6528 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
| 6531 | return NULL; |
| 6532 | } |
| 6533 | } |
| 6534 | { |
| 6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6536 | wxWindow_ReleaseMouse(_arg0); |
| 6537 | |
| 6538 | wxPyEndAllowThreads(__tstate); |
| 6539 | if (PyErr_Occurred()) return NULL; |
| 6540 | } Py_INCREF(Py_None); |
| 6541 | _resultobj = Py_None; |
| 6542 | return _resultobj; |
| 6543 | } |
| 6544 | |
| 6545 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6546 | PyObject * _resultobj; |
| 6547 | wxWindow * _result; |
| 6548 | char *_kwnames[] = { NULL }; |
| 6549 | |
| 6550 | self = self; |
| 6551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) |
| 6552 | return NULL; |
| 6553 | { |
| 6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6555 | _result = (wxWindow *)wxWindow::GetCapture(); |
| 6556 | |
| 6557 | wxPyEndAllowThreads(__tstate); |
| 6558 | if (PyErr_Occurred()) return NULL; |
| 6559 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 6560 | return _resultobj; |
| 6561 | } |
| 6562 | |
| 6563 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) |
| 6564 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6565 | PyObject * _resultobj; |
| 6566 | bool _result; |
| 6567 | wxWindow * _arg0; |
| 6568 | PyObject * _argo0 = 0; |
| 6569 | char *_kwnames[] = { "self", NULL }; |
| 6570 | |
| 6571 | self = self; |
| 6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) |
| 6573 | return NULL; |
| 6574 | if (_argo0) { |
| 6575 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); |
| 6578 | return NULL; |
| 6579 | } |
| 6580 | } |
| 6581 | { |
| 6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6583 | _result = (bool )wxWindow_HasCapture(_arg0); |
| 6584 | |
| 6585 | wxPyEndAllowThreads(__tstate); |
| 6586 | if (PyErr_Occurred()) return NULL; |
| 6587 | } _resultobj = Py_BuildValue("i",_result); |
| 6588 | return _resultobj; |
| 6589 | } |
| 6590 | |
| 6591 | static void *SwigwxPanelTowxWindow(void *ptr) { |
| 6592 | wxPanel *src; |
| 6593 | wxWindow *dest; |
| 6594 | src = (wxPanel *) ptr; |
| 6595 | dest = (wxWindow *) src; |
| 6596 | return (void *) dest; |
| 6597 | } |
| 6598 | |
| 6599 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { |
| 6600 | wxPanel *src; |
| 6601 | wxEvtHandler *dest; |
| 6602 | src = (wxPanel *) ptr; |
| 6603 | dest = (wxEvtHandler *) src; |
| 6604 | return (void *) dest; |
| 6605 | } |
| 6606 | |
| 6607 | static void *SwigwxPanelTowxObject(void *ptr) { |
| 6608 | wxPanel *src; |
| 6609 | wxObject *dest; |
| 6610 | src = (wxPanel *) ptr; |
| 6611 | dest = (wxObject *) src; |
| 6612 | return (void *) dest; |
| 6613 | } |
| 6614 | |
| 6615 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 6616 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6617 | PyObject * _resultobj; |
| 6618 | wxPanel * _result; |
| 6619 | wxWindow * _arg0; |
| 6620 | wxWindowID _arg1; |
| 6621 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
| 6622 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; |
| 6623 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
| 6624 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
| 6625 | PyObject * _argo0 = 0; |
| 6626 | wxPoint temp; |
| 6627 | PyObject * _obj2 = 0; |
| 6628 | wxSize temp0; |
| 6629 | PyObject * _obj3 = 0; |
| 6630 | PyObject * _obj5 = 0; |
| 6631 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
| 6632 | char _ptemp[128]; |
| 6633 | |
| 6634 | self = self; |
| 6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
| 6636 | return NULL; |
| 6637 | if (_argo0) { |
| 6638 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
| 6641 | return NULL; |
| 6642 | } |
| 6643 | } |
| 6644 | if (_obj2) |
| 6645 | { |
| 6646 | _arg2 = &temp; |
| 6647 | if (! wxPoint_helper(_obj2, &_arg2)) |
| 6648 | return NULL; |
| 6649 | } |
| 6650 | if (_obj3) |
| 6651 | { |
| 6652 | _arg3 = &temp0; |
| 6653 | if (! wxSize_helper(_obj3, &_arg3)) |
| 6654 | return NULL; |
| 6655 | } |
| 6656 | if (_obj5) |
| 6657 | { |
| 6658 | _arg5 = wxString_in_helper(_obj5); |
| 6659 | if (_arg5 == NULL) |
| 6660 | return NULL; |
| 6661 | } |
| 6662 | { |
| 6663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6664 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
| 6665 | |
| 6666 | wxPyEndAllowThreads(__tstate); |
| 6667 | if (PyErr_Occurred()) return NULL; |
| 6668 | } if (_result) { |
| 6669 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); |
| 6670 | _resultobj = Py_BuildValue("s",_ptemp); |
| 6671 | } else { |
| 6672 | Py_INCREF(Py_None); |
| 6673 | _resultobj = Py_None; |
| 6674 | } |
| 6675 | { |
| 6676 | if (_obj5) |
| 6677 | delete _arg5; |
| 6678 | } |
| 6679 | return _resultobj; |
| 6680 | } |
| 6681 | |
| 6682 | #define new_wxPrePanel() (new wxPanel()) |
| 6683 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6684 | PyObject * _resultobj; |
| 6685 | wxPanel * _result; |
| 6686 | char *_kwnames[] = { NULL }; |
| 6687 | char _ptemp[128]; |
| 6688 | |
| 6689 | self = self; |
| 6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) |
| 6691 | return NULL; |
| 6692 | { |
| 6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6694 | _result = (wxPanel *)new_wxPrePanel(); |
| 6695 | |
| 6696 | wxPyEndAllowThreads(__tstate); |
| 6697 | if (PyErr_Occurred()) return NULL; |
| 6698 | } if (_result) { |
| 6699 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); |
| 6700 | _resultobj = Py_BuildValue("s",_ptemp); |
| 6701 | } else { |
| 6702 | Py_INCREF(Py_None); |
| 6703 | _resultobj = Py_None; |
| 6704 | } |
| 6705 | return _resultobj; |
| 6706 | } |
| 6707 | |
| 6708 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 6709 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6710 | PyObject * _resultobj; |
| 6711 | bool _result; |
| 6712 | wxPanel * _arg0; |
| 6713 | wxWindow * _arg1; |
| 6714 | wxWindowID _arg2; |
| 6715 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
| 6716 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; |
| 6717 | long _arg5 = (long ) wxTAB_TRAVERSAL; |
| 6718 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
| 6719 | PyObject * _argo0 = 0; |
| 6720 | PyObject * _argo1 = 0; |
| 6721 | wxPoint temp; |
| 6722 | PyObject * _obj3 = 0; |
| 6723 | wxSize temp0; |
| 6724 | PyObject * _obj4 = 0; |
| 6725 | PyObject * _obj6 = 0; |
| 6726 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
| 6727 | |
| 6728 | self = self; |
| 6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
| 6730 | return NULL; |
| 6731 | if (_argo0) { |
| 6732 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { |
| 6734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); |
| 6735 | return NULL; |
| 6736 | } |
| 6737 | } |
| 6738 | if (_argo1) { |
| 6739 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 6740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); |
| 6742 | return NULL; |
| 6743 | } |
| 6744 | } |
| 6745 | if (_obj3) |
| 6746 | { |
| 6747 | _arg3 = &temp; |
| 6748 | if (! wxPoint_helper(_obj3, &_arg3)) |
| 6749 | return NULL; |
| 6750 | } |
| 6751 | if (_obj4) |
| 6752 | { |
| 6753 | _arg4 = &temp0; |
| 6754 | if (! wxSize_helper(_obj4, &_arg4)) |
| 6755 | return NULL; |
| 6756 | } |
| 6757 | if (_obj6) |
| 6758 | { |
| 6759 | _arg6 = wxString_in_helper(_obj6); |
| 6760 | if (_arg6 == NULL) |
| 6761 | return NULL; |
| 6762 | } |
| 6763 | { |
| 6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6765 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
| 6766 | |
| 6767 | wxPyEndAllowThreads(__tstate); |
| 6768 | if (PyErr_Occurred()) return NULL; |
| 6769 | } _resultobj = Py_BuildValue("i",_result); |
| 6770 | { |
| 6771 | if (_obj6) |
| 6772 | delete _arg6; |
| 6773 | } |
| 6774 | return _resultobj; |
| 6775 | } |
| 6776 | |
| 6777 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
| 6778 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6779 | PyObject * _resultobj; |
| 6780 | wxPanel * _arg0; |
| 6781 | PyObject * _argo0 = 0; |
| 6782 | char *_kwnames[] = { "self", NULL }; |
| 6783 | |
| 6784 | self = self; |
| 6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
| 6786 | return NULL; |
| 6787 | if (_argo0) { |
| 6788 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { |
| 6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
| 6791 | return NULL; |
| 6792 | } |
| 6793 | } |
| 6794 | { |
| 6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6796 | wxPanel_InitDialog(_arg0); |
| 6797 | |
| 6798 | wxPyEndAllowThreads(__tstate); |
| 6799 | if (PyErr_Occurred()) return NULL; |
| 6800 | } Py_INCREF(Py_None); |
| 6801 | _resultobj = Py_None; |
| 6802 | return _resultobj; |
| 6803 | } |
| 6804 | |
| 6805 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
| 6806 | wxScrolledWindow *src; |
| 6807 | wxPanel *dest; |
| 6808 | src = (wxScrolledWindow *) ptr; |
| 6809 | dest = (wxPanel *) src; |
| 6810 | return (void *) dest; |
| 6811 | } |
| 6812 | |
| 6813 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
| 6814 | wxScrolledWindow *src; |
| 6815 | wxWindow *dest; |
| 6816 | src = (wxScrolledWindow *) ptr; |
| 6817 | dest = (wxWindow *) src; |
| 6818 | return (void *) dest; |
| 6819 | } |
| 6820 | |
| 6821 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { |
| 6822 | wxScrolledWindow *src; |
| 6823 | wxEvtHandler *dest; |
| 6824 | src = (wxScrolledWindow *) ptr; |
| 6825 | dest = (wxEvtHandler *) src; |
| 6826 | return (void *) dest; |
| 6827 | } |
| 6828 | |
| 6829 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
| 6830 | wxScrolledWindow *src; |
| 6831 | wxObject *dest; |
| 6832 | src = (wxScrolledWindow *) ptr; |
| 6833 | dest = (wxObject *) src; |
| 6834 | return (void *) dest; |
| 6835 | } |
| 6836 | |
| 6837 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 6838 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6839 | PyObject * _resultobj; |
| 6840 | wxScrolledWindow * _result; |
| 6841 | wxWindow * _arg0; |
| 6842 | wxWindowID _arg1 = (wxWindowID ) -1; |
| 6843 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
| 6844 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; |
| 6845 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
| 6846 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
| 6847 | PyObject * _argo0 = 0; |
| 6848 | wxPoint temp; |
| 6849 | PyObject * _obj2 = 0; |
| 6850 | wxSize temp0; |
| 6851 | PyObject * _obj3 = 0; |
| 6852 | PyObject * _obj5 = 0; |
| 6853 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
| 6854 | char _ptemp[128]; |
| 6855 | |
| 6856 | self = self; |
| 6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
| 6858 | return NULL; |
| 6859 | if (_argo0) { |
| 6860 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
| 6862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
| 6863 | return NULL; |
| 6864 | } |
| 6865 | } |
| 6866 | if (_obj2) |
| 6867 | { |
| 6868 | _arg2 = &temp; |
| 6869 | if (! wxPoint_helper(_obj2, &_arg2)) |
| 6870 | return NULL; |
| 6871 | } |
| 6872 | if (_obj3) |
| 6873 | { |
| 6874 | _arg3 = &temp0; |
| 6875 | if (! wxSize_helper(_obj3, &_arg3)) |
| 6876 | return NULL; |
| 6877 | } |
| 6878 | if (_obj5) |
| 6879 | { |
| 6880 | _arg5 = wxString_in_helper(_obj5); |
| 6881 | if (_arg5 == NULL) |
| 6882 | return NULL; |
| 6883 | } |
| 6884 | { |
| 6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6886 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
| 6887 | |
| 6888 | wxPyEndAllowThreads(__tstate); |
| 6889 | if (PyErr_Occurred()) return NULL; |
| 6890 | } if (_result) { |
| 6891 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); |
| 6892 | _resultobj = Py_BuildValue("s",_ptemp); |
| 6893 | } else { |
| 6894 | Py_INCREF(Py_None); |
| 6895 | _resultobj = Py_None; |
| 6896 | } |
| 6897 | { |
| 6898 | if (_obj5) |
| 6899 | delete _arg5; |
| 6900 | } |
| 6901 | return _resultobj; |
| 6902 | } |
| 6903 | |
| 6904 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
| 6905 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6906 | PyObject * _resultobj; |
| 6907 | wxScrolledWindow * _result; |
| 6908 | char *_kwnames[] = { NULL }; |
| 6909 | char _ptemp[128]; |
| 6910 | |
| 6911 | self = self; |
| 6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) |
| 6913 | return NULL; |
| 6914 | { |
| 6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6916 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
| 6917 | |
| 6918 | wxPyEndAllowThreads(__tstate); |
| 6919 | if (PyErr_Occurred()) return NULL; |
| 6920 | } if (_result) { |
| 6921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); |
| 6922 | _resultobj = Py_BuildValue("s",_ptemp); |
| 6923 | } else { |
| 6924 | Py_INCREF(Py_None); |
| 6925 | _resultobj = Py_None; |
| 6926 | } |
| 6927 | return _resultobj; |
| 6928 | } |
| 6929 | |
| 6930 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 6931 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 6932 | PyObject * _resultobj; |
| 6933 | bool _result; |
| 6934 | wxScrolledWindow * _arg0; |
| 6935 | wxWindow * _arg1; |
| 6936 | wxWindowID _arg2 = (wxWindowID ) -1; |
| 6937 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
| 6938 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; |
| 6939 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; |
| 6940 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
| 6941 | PyObject * _argo0 = 0; |
| 6942 | PyObject * _argo1 = 0; |
| 6943 | wxPoint temp; |
| 6944 | PyObject * _obj3 = 0; |
| 6945 | wxSize temp0; |
| 6946 | PyObject * _obj4 = 0; |
| 6947 | PyObject * _obj6 = 0; |
| 6948 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
| 6949 | |
| 6950 | self = self; |
| 6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
| 6952 | return NULL; |
| 6953 | if (_argo0) { |
| 6954 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 6955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 6956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); |
| 6957 | return NULL; |
| 6958 | } |
| 6959 | } |
| 6960 | if (_argo1) { |
| 6961 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 6962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 6963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); |
| 6964 | return NULL; |
| 6965 | } |
| 6966 | } |
| 6967 | if (_obj3) |
| 6968 | { |
| 6969 | _arg3 = &temp; |
| 6970 | if (! wxPoint_helper(_obj3, &_arg3)) |
| 6971 | return NULL; |
| 6972 | } |
| 6973 | if (_obj4) |
| 6974 | { |
| 6975 | _arg4 = &temp0; |
| 6976 | if (! wxSize_helper(_obj4, &_arg4)) |
| 6977 | return NULL; |
| 6978 | } |
| 6979 | if (_obj6) |
| 6980 | { |
| 6981 | _arg6 = wxString_in_helper(_obj6); |
| 6982 | if (_arg6 == NULL) |
| 6983 | return NULL; |
| 6984 | } |
| 6985 | { |
| 6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 6987 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
| 6988 | |
| 6989 | wxPyEndAllowThreads(__tstate); |
| 6990 | if (PyErr_Occurred()) return NULL; |
| 6991 | } _resultobj = Py_BuildValue("i",_result); |
| 6992 | { |
| 6993 | if (_obj6) |
| 6994 | delete _arg6; |
| 6995 | } |
| 6996 | return _resultobj; |
| 6997 | } |
| 6998 | |
| 6999 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
| 7000 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7001 | PyObject * _resultobj; |
| 7002 | wxScrolledWindow * _arg0; |
| 7003 | bool _arg1; |
| 7004 | bool _arg2; |
| 7005 | PyObject * _argo0 = 0; |
| 7006 | int tempbool1; |
| 7007 | int tempbool2; |
| 7008 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
| 7009 | |
| 7010 | self = self; |
| 7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
| 7012 | return NULL; |
| 7013 | if (_argo0) { |
| 7014 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
| 7017 | return NULL; |
| 7018 | } |
| 7019 | } |
| 7020 | _arg1 = (bool ) tempbool1; |
| 7021 | _arg2 = (bool ) tempbool2; |
| 7022 | { |
| 7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7024 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
| 7025 | |
| 7026 | wxPyEndAllowThreads(__tstate); |
| 7027 | if (PyErr_Occurred()) return NULL; |
| 7028 | } Py_INCREF(Py_None); |
| 7029 | _resultobj = Py_None; |
| 7030 | return _resultobj; |
| 7031 | } |
| 7032 | |
| 7033 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
| 7034 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7035 | PyObject * _resultobj; |
| 7036 | int _result; |
| 7037 | wxScrolledWindow * _arg0; |
| 7038 | int _arg1; |
| 7039 | PyObject * _argo0 = 0; |
| 7040 | char *_kwnames[] = { "self","orient", NULL }; |
| 7041 | |
| 7042 | self = self; |
| 7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) |
| 7044 | return NULL; |
| 7045 | if (_argo0) { |
| 7046 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); |
| 7049 | return NULL; |
| 7050 | } |
| 7051 | } |
| 7052 | { |
| 7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7054 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
| 7055 | |
| 7056 | wxPyEndAllowThreads(__tstate); |
| 7057 | if (PyErr_Occurred()) return NULL; |
| 7058 | } _resultobj = Py_BuildValue("i",_result); |
| 7059 | return _resultobj; |
| 7060 | } |
| 7061 | |
| 7062 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
| 7063 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7064 | PyObject * _resultobj; |
| 7065 | wxScrolledWindow * _arg0; |
| 7066 | int * _arg1; |
| 7067 | int temp; |
| 7068 | int * _arg2; |
| 7069 | int temp0; |
| 7070 | PyObject * _argo0 = 0; |
| 7071 | char *_kwnames[] = { "self", NULL }; |
| 7072 | |
| 7073 | self = self; |
| 7074 | { |
| 7075 | _arg1 = &temp; |
| 7076 | } |
| 7077 | { |
| 7078 | _arg2 = &temp0; |
| 7079 | } |
| 7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
| 7081 | return NULL; |
| 7082 | if (_argo0) { |
| 7083 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
| 7086 | return NULL; |
| 7087 | } |
| 7088 | } |
| 7089 | { |
| 7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7091 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
| 7092 | |
| 7093 | wxPyEndAllowThreads(__tstate); |
| 7094 | if (PyErr_Occurred()) return NULL; |
| 7095 | } Py_INCREF(Py_None); |
| 7096 | _resultobj = Py_None; |
| 7097 | { |
| 7098 | PyObject *o; |
| 7099 | o = PyInt_FromLong((long) (*_arg1)); |
| 7100 | _resultobj = t_output_helper(_resultobj, o); |
| 7101 | } |
| 7102 | { |
| 7103 | PyObject *o; |
| 7104 | o = PyInt_FromLong((long) (*_arg2)); |
| 7105 | _resultobj = t_output_helper(_resultobj, o); |
| 7106 | } |
| 7107 | return _resultobj; |
| 7108 | } |
| 7109 | |
| 7110 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
| 7111 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7112 | PyObject * _resultobj; |
| 7113 | wxWindow * _result; |
| 7114 | wxScrolledWindow * _arg0; |
| 7115 | PyObject * _argo0 = 0; |
| 7116 | char *_kwnames[] = { "self", NULL }; |
| 7117 | |
| 7118 | self = self; |
| 7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) |
| 7120 | return NULL; |
| 7121 | if (_argo0) { |
| 7122 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); |
| 7125 | return NULL; |
| 7126 | } |
| 7127 | } |
| 7128 | { |
| 7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7130 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
| 7131 | |
| 7132 | wxPyEndAllowThreads(__tstate); |
| 7133 | if (PyErr_Occurred()) return NULL; |
| 7134 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 7135 | return _resultobj; |
| 7136 | } |
| 7137 | |
| 7138 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
| 7139 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7140 | PyObject * _resultobj; |
| 7141 | bool _result; |
| 7142 | wxScrolledWindow * _arg0; |
| 7143 | PyObject * _argo0 = 0; |
| 7144 | char *_kwnames[] = { "self", NULL }; |
| 7145 | |
| 7146 | self = self; |
| 7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
| 7148 | return NULL; |
| 7149 | if (_argo0) { |
| 7150 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
| 7153 | return NULL; |
| 7154 | } |
| 7155 | } |
| 7156 | { |
| 7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7158 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
| 7159 | |
| 7160 | wxPyEndAllowThreads(__tstate); |
| 7161 | if (PyErr_Occurred()) return NULL; |
| 7162 | } _resultobj = Py_BuildValue("i",_result); |
| 7163 | return _resultobj; |
| 7164 | } |
| 7165 | |
| 7166 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) |
| 7167 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7168 | PyObject * _resultobj; |
| 7169 | wxScrolledWindow * _arg0; |
| 7170 | wxDC * _arg1; |
| 7171 | PyObject * _argo0 = 0; |
| 7172 | PyObject * _argo1 = 0; |
| 7173 | char *_kwnames[] = { "self","dc", NULL }; |
| 7174 | |
| 7175 | self = self; |
| 7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
| 7177 | return NULL; |
| 7178 | if (_argo0) { |
| 7179 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
| 7182 | return NULL; |
| 7183 | } |
| 7184 | } |
| 7185 | if (_argo1) { |
| 7186 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 7187 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
| 7188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
| 7189 | return NULL; |
| 7190 | } |
| 7191 | } |
| 7192 | { |
| 7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7194 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
| 7195 | |
| 7196 | wxPyEndAllowThreads(__tstate); |
| 7197 | if (PyErr_Occurred()) return NULL; |
| 7198 | } Py_INCREF(Py_None); |
| 7199 | _resultobj = Py_None; |
| 7200 | return _resultobj; |
| 7201 | } |
| 7202 | |
| 7203 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) |
| 7204 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7205 | PyObject * _resultobj; |
| 7206 | wxScrolledWindow * _arg0; |
| 7207 | int _arg1; |
| 7208 | int _arg2; |
| 7209 | PyObject * _argo0 = 0; |
| 7210 | char *_kwnames[] = { "self","x","y", NULL }; |
| 7211 | |
| 7212 | self = self; |
| 7213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7214 | return NULL; |
| 7215 | if (_argo0) { |
| 7216 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
| 7219 | return NULL; |
| 7220 | } |
| 7221 | } |
| 7222 | { |
| 7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7224 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
| 7225 | |
| 7226 | wxPyEndAllowThreads(__tstate); |
| 7227 | if (PyErr_Occurred()) return NULL; |
| 7228 | } Py_INCREF(Py_None); |
| 7229 | _resultobj = Py_None; |
| 7230 | return _resultobj; |
| 7231 | } |
| 7232 | |
| 7233 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
| 7234 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7235 | PyObject * _resultobj; |
| 7236 | wxScrolledWindow * _arg0; |
| 7237 | int _arg1; |
| 7238 | int _arg2; |
| 7239 | int _arg3; |
| 7240 | int _arg4; |
| 7241 | int _arg5 = (int ) 0; |
| 7242 | int _arg6 = (int ) 0; |
| 7243 | int _arg7 = (int ) FALSE; |
| 7244 | PyObject * _argo0 = 0; |
| 7245 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
| 7246 | |
| 7247 | self = self; |
| 7248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
| 7249 | return NULL; |
| 7250 | if (_argo0) { |
| 7251 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
| 7254 | return NULL; |
| 7255 | } |
| 7256 | } |
| 7257 | { |
| 7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7259 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
| 7260 | |
| 7261 | wxPyEndAllowThreads(__tstate); |
| 7262 | if (PyErr_Occurred()) return NULL; |
| 7263 | } Py_INCREF(Py_None); |
| 7264 | _resultobj = Py_None; |
| 7265 | return _resultobj; |
| 7266 | } |
| 7267 | |
| 7268 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
| 7269 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7270 | PyObject * _resultobj; |
| 7271 | wxScrolledWindow * _arg0; |
| 7272 | int _arg1; |
| 7273 | int _arg2; |
| 7274 | PyObject * _argo0 = 0; |
| 7275 | char *_kwnames[] = { "self","orient","pageSize", NULL }; |
| 7276 | |
| 7277 | self = self; |
| 7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7279 | return NULL; |
| 7280 | if (_argo0) { |
| 7281 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); |
| 7284 | return NULL; |
| 7285 | } |
| 7286 | } |
| 7287 | { |
| 7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7289 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
| 7290 | |
| 7291 | wxPyEndAllowThreads(__tstate); |
| 7292 | if (PyErr_Occurred()) return NULL; |
| 7293 | } Py_INCREF(Py_None); |
| 7294 | _resultobj = Py_None; |
| 7295 | return _resultobj; |
| 7296 | } |
| 7297 | |
| 7298 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
| 7299 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7300 | PyObject * _resultobj; |
| 7301 | wxScrolledWindow * _arg0; |
| 7302 | wxWindow * _arg1; |
| 7303 | PyObject * _argo0 = 0; |
| 7304 | PyObject * _argo1 = 0; |
| 7305 | char *_kwnames[] = { "self","window", NULL }; |
| 7306 | |
| 7307 | self = self; |
| 7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) |
| 7309 | return NULL; |
| 7310 | if (_argo0) { |
| 7311 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); |
| 7314 | return NULL; |
| 7315 | } |
| 7316 | } |
| 7317 | if (_argo1) { |
| 7318 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 7319 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 7320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); |
| 7321 | return NULL; |
| 7322 | } |
| 7323 | } |
| 7324 | { |
| 7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7326 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
| 7327 | |
| 7328 | wxPyEndAllowThreads(__tstate); |
| 7329 | if (PyErr_Occurred()) return NULL; |
| 7330 | } Py_INCREF(Py_None); |
| 7331 | _resultobj = Py_None; |
| 7332 | return _resultobj; |
| 7333 | } |
| 7334 | |
| 7335 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
| 7336 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7337 | PyObject * _resultobj; |
| 7338 | wxScrolledWindow * _arg0; |
| 7339 | int * _arg1; |
| 7340 | int temp; |
| 7341 | int * _arg2; |
| 7342 | int temp0; |
| 7343 | PyObject * _argo0 = 0; |
| 7344 | char *_kwnames[] = { "self", NULL }; |
| 7345 | |
| 7346 | self = self; |
| 7347 | { |
| 7348 | _arg1 = &temp; |
| 7349 | } |
| 7350 | { |
| 7351 | _arg2 = &temp0; |
| 7352 | } |
| 7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) |
| 7354 | return NULL; |
| 7355 | if (_argo0) { |
| 7356 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); |
| 7359 | return NULL; |
| 7360 | } |
| 7361 | } |
| 7362 | { |
| 7363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7364 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
| 7365 | |
| 7366 | wxPyEndAllowThreads(__tstate); |
| 7367 | if (PyErr_Occurred()) return NULL; |
| 7368 | } Py_INCREF(Py_None); |
| 7369 | _resultobj = Py_None; |
| 7370 | { |
| 7371 | PyObject *o; |
| 7372 | o = PyInt_FromLong((long) (*_arg1)); |
| 7373 | _resultobj = t_output_helper(_resultobj, o); |
| 7374 | } |
| 7375 | { |
| 7376 | PyObject *o; |
| 7377 | o = PyInt_FromLong((long) (*_arg2)); |
| 7378 | _resultobj = t_output_helper(_resultobj, o); |
| 7379 | } |
| 7380 | return _resultobj; |
| 7381 | } |
| 7382 | |
| 7383 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
| 7384 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7385 | PyObject * _resultobj; |
| 7386 | wxPoint * _result; |
| 7387 | wxScrolledWindow * _arg0; |
| 7388 | wxPoint * _arg1; |
| 7389 | PyObject * _argo0 = 0; |
| 7390 | wxPoint temp; |
| 7391 | PyObject * _obj1 = 0; |
| 7392 | char *_kwnames[] = { "self","pt", NULL }; |
| 7393 | char _ptemp[128]; |
| 7394 | |
| 7395 | self = self; |
| 7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) |
| 7397 | return NULL; |
| 7398 | if (_argo0) { |
| 7399 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); |
| 7402 | return NULL; |
| 7403 | } |
| 7404 | } |
| 7405 | { |
| 7406 | _arg1 = &temp; |
| 7407 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 7408 | return NULL; |
| 7409 | } |
| 7410 | { |
| 7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7412 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); |
| 7413 | |
| 7414 | wxPyEndAllowThreads(__tstate); |
| 7415 | if (PyErr_Occurred()) return NULL; |
| 7416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 7417 | _resultobj = Py_BuildValue("s",_ptemp); |
| 7418 | return _resultobj; |
| 7419 | } |
| 7420 | |
| 7421 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 7422 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7423 | PyObject * _resultobj; |
| 7424 | wxScrolledWindow * _arg0; |
| 7425 | int _arg1; |
| 7426 | int _arg2; |
| 7427 | int * _arg3; |
| 7428 | int temp; |
| 7429 | int * _arg4; |
| 7430 | int temp0; |
| 7431 | PyObject * _argo0 = 0; |
| 7432 | char *_kwnames[] = { "self","x","y", NULL }; |
| 7433 | |
| 7434 | self = self; |
| 7435 | { |
| 7436 | _arg3 = &temp; |
| 7437 | } |
| 7438 | { |
| 7439 | _arg4 = &temp0; |
| 7440 | } |
| 7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7442 | return NULL; |
| 7443 | if (_argo0) { |
| 7444 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
| 7447 | return NULL; |
| 7448 | } |
| 7449 | } |
| 7450 | { |
| 7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7452 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
| 7453 | |
| 7454 | wxPyEndAllowThreads(__tstate); |
| 7455 | if (PyErr_Occurred()) return NULL; |
| 7456 | } Py_INCREF(Py_None); |
| 7457 | _resultobj = Py_None; |
| 7458 | { |
| 7459 | PyObject *o; |
| 7460 | o = PyInt_FromLong((long) (*_arg3)); |
| 7461 | _resultobj = t_output_helper(_resultobj, o); |
| 7462 | } |
| 7463 | { |
| 7464 | PyObject *o; |
| 7465 | o = PyInt_FromLong((long) (*_arg4)); |
| 7466 | _resultobj = t_output_helper(_resultobj, o); |
| 7467 | } |
| 7468 | return _resultobj; |
| 7469 | } |
| 7470 | |
| 7471 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
| 7472 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7473 | PyObject * _resultobj; |
| 7474 | wxPoint * _result; |
| 7475 | wxScrolledWindow * _arg0; |
| 7476 | wxPoint * _arg1; |
| 7477 | PyObject * _argo0 = 0; |
| 7478 | wxPoint temp; |
| 7479 | PyObject * _obj1 = 0; |
| 7480 | char *_kwnames[] = { "self","pt", NULL }; |
| 7481 | char _ptemp[128]; |
| 7482 | |
| 7483 | self = self; |
| 7484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) |
| 7485 | return NULL; |
| 7486 | if (_argo0) { |
| 7487 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); |
| 7490 | return NULL; |
| 7491 | } |
| 7492 | } |
| 7493 | { |
| 7494 | _arg1 = &temp; |
| 7495 | if (! wxPoint_helper(_obj1, &_arg1)) |
| 7496 | return NULL; |
| 7497 | } |
| 7498 | { |
| 7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7500 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); |
| 7501 | |
| 7502 | wxPyEndAllowThreads(__tstate); |
| 7503 | if (PyErr_Occurred()) return NULL; |
| 7504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
| 7505 | _resultobj = Py_BuildValue("s",_ptemp); |
| 7506 | return _resultobj; |
| 7507 | } |
| 7508 | |
| 7509 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 7510 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7511 | PyObject * _resultobj; |
| 7512 | wxScrolledWindow * _arg0; |
| 7513 | int _arg1; |
| 7514 | int _arg2; |
| 7515 | int * _arg3; |
| 7516 | int temp; |
| 7517 | int * _arg4; |
| 7518 | int temp0; |
| 7519 | PyObject * _argo0 = 0; |
| 7520 | char *_kwnames[] = { "self","x","y", NULL }; |
| 7521 | |
| 7522 | self = self; |
| 7523 | { |
| 7524 | _arg3 = &temp; |
| 7525 | } |
| 7526 | { |
| 7527 | _arg4 = &temp0; |
| 7528 | } |
| 7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7530 | return NULL; |
| 7531 | if (_argo0) { |
| 7532 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
| 7535 | return NULL; |
| 7536 | } |
| 7537 | } |
| 7538 | { |
| 7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7540 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
| 7541 | |
| 7542 | wxPyEndAllowThreads(__tstate); |
| 7543 | if (PyErr_Occurred()) return NULL; |
| 7544 | } Py_INCREF(Py_None); |
| 7545 | _resultobj = Py_None; |
| 7546 | { |
| 7547 | PyObject *o; |
| 7548 | o = PyInt_FromLong((long) (*_arg3)); |
| 7549 | _resultobj = t_output_helper(_resultobj, o); |
| 7550 | } |
| 7551 | { |
| 7552 | PyObject *o; |
| 7553 | o = PyInt_FromLong((long) (*_arg4)); |
| 7554 | _resultobj = t_output_helper(_resultobj, o); |
| 7555 | } |
| 7556 | return _resultobj; |
| 7557 | } |
| 7558 | |
| 7559 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
| 7560 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7561 | PyObject * _resultobj; |
| 7562 | wxScrolledWindow * _arg0; |
| 7563 | double _arg1; |
| 7564 | double _arg2; |
| 7565 | PyObject * _argo0 = 0; |
| 7566 | char *_kwnames[] = { "self","xs","ys", NULL }; |
| 7567 | |
| 7568 | self = self; |
| 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7570 | return NULL; |
| 7571 | if (_argo0) { |
| 7572 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); |
| 7575 | return NULL; |
| 7576 | } |
| 7577 | } |
| 7578 | { |
| 7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7580 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
| 7581 | |
| 7582 | wxPyEndAllowThreads(__tstate); |
| 7583 | if (PyErr_Occurred()) return NULL; |
| 7584 | } Py_INCREF(Py_None); |
| 7585 | _resultobj = Py_None; |
| 7586 | return _resultobj; |
| 7587 | } |
| 7588 | |
| 7589 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) |
| 7590 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7591 | PyObject * _resultobj; |
| 7592 | double _result; |
| 7593 | wxScrolledWindow * _arg0; |
| 7594 | PyObject * _argo0 = 0; |
| 7595 | char *_kwnames[] = { "self", NULL }; |
| 7596 | |
| 7597 | self = self; |
| 7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) |
| 7599 | return NULL; |
| 7600 | if (_argo0) { |
| 7601 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); |
| 7604 | return NULL; |
| 7605 | } |
| 7606 | } |
| 7607 | { |
| 7608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7609 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
| 7610 | |
| 7611 | wxPyEndAllowThreads(__tstate); |
| 7612 | if (PyErr_Occurred()) return NULL; |
| 7613 | } _resultobj = Py_BuildValue("d",_result); |
| 7614 | return _resultobj; |
| 7615 | } |
| 7616 | |
| 7617 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) |
| 7618 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7619 | PyObject * _resultobj; |
| 7620 | double _result; |
| 7621 | wxScrolledWindow * _arg0; |
| 7622 | PyObject * _argo0 = 0; |
| 7623 | char *_kwnames[] = { "self", NULL }; |
| 7624 | |
| 7625 | self = self; |
| 7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) |
| 7627 | return NULL; |
| 7628 | if (_argo0) { |
| 7629 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); |
| 7632 | return NULL; |
| 7633 | } |
| 7634 | } |
| 7635 | { |
| 7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7637 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); |
| 7638 | |
| 7639 | wxPyEndAllowThreads(__tstate); |
| 7640 | if (PyErr_Occurred()) return NULL; |
| 7641 | } _resultobj = Py_BuildValue("d",_result); |
| 7642 | return _resultobj; |
| 7643 | } |
| 7644 | |
| 7645 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) |
| 7646 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7647 | PyObject * _resultobj; |
| 7648 | wxScrolledWindow * _arg0; |
| 7649 | PyObject * _argo0 = 0; |
| 7650 | char *_kwnames[] = { "self", NULL }; |
| 7651 | |
| 7652 | self = self; |
| 7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) |
| 7654 | return NULL; |
| 7655 | if (_argo0) { |
| 7656 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); |
| 7659 | return NULL; |
| 7660 | } |
| 7661 | } |
| 7662 | { |
| 7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7664 | wxScrolledWindow_AdjustScrollbars(_arg0); |
| 7665 | |
| 7666 | wxPyEndAllowThreads(__tstate); |
| 7667 | if (PyErr_Occurred()) return NULL; |
| 7668 | } Py_INCREF(Py_None); |
| 7669 | _resultobj = Py_None; |
| 7670 | return _resultobj; |
| 7671 | } |
| 7672 | |
| 7673 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) |
| 7674 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7675 | PyObject * _resultobj; |
| 7676 | bool _result; |
| 7677 | wxScrolledWindow * _arg0; |
| 7678 | PyObject * _argo0 = 0; |
| 7679 | char *_kwnames[] = { "self", NULL }; |
| 7680 | |
| 7681 | self = self; |
| 7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) |
| 7683 | return NULL; |
| 7684 | if (_argo0) { |
| 7685 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); |
| 7688 | return NULL; |
| 7689 | } |
| 7690 | } |
| 7691 | { |
| 7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7693 | _result = (bool )wxScrolledWindow_Layout(_arg0); |
| 7694 | |
| 7695 | wxPyEndAllowThreads(__tstate); |
| 7696 | if (PyErr_Occurred()) return NULL; |
| 7697 | } _resultobj = Py_BuildValue("i",_result); |
| 7698 | return _resultobj; |
| 7699 | } |
| 7700 | |
| 7701 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
| 7702 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7703 | PyObject * _resultobj; |
| 7704 | wxScrolledWindow * _arg0; |
| 7705 | int _arg1; |
| 7706 | int _arg2; |
| 7707 | PyObject * _argo0 = 0; |
| 7708 | char *_kwnames[] = { "self","xstep","ystep", NULL }; |
| 7709 | |
| 7710 | self = self; |
| 7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) |
| 7712 | return NULL; |
| 7713 | if (_argo0) { |
| 7714 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { |
| 7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); |
| 7717 | return NULL; |
| 7718 | } |
| 7719 | } |
| 7720 | { |
| 7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7722 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); |
| 7723 | |
| 7724 | wxPyEndAllowThreads(__tstate); |
| 7725 | if (PyErr_Occurred()) return NULL; |
| 7726 | } Py_INCREF(Py_None); |
| 7727 | _resultobj = Py_None; |
| 7728 | return _resultobj; |
| 7729 | } |
| 7730 | |
| 7731 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
| 7732 | wxMenu *src; |
| 7733 | wxEvtHandler *dest; |
| 7734 | src = (wxMenu *) ptr; |
| 7735 | dest = (wxEvtHandler *) src; |
| 7736 | return (void *) dest; |
| 7737 | } |
| 7738 | |
| 7739 | static void *SwigwxMenuTowxObject(void *ptr) { |
| 7740 | wxMenu *src; |
| 7741 | wxObject *dest; |
| 7742 | src = (wxMenu *) ptr; |
| 7743 | dest = (wxObject *) src; |
| 7744 | return (void *) dest; |
| 7745 | } |
| 7746 | |
| 7747 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
| 7748 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7749 | PyObject * _resultobj; |
| 7750 | wxMenu * _result; |
| 7751 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
| 7752 | long _arg1 = (long ) 0; |
| 7753 | PyObject * _obj0 = 0; |
| 7754 | char *_kwnames[] = { "title","style", NULL }; |
| 7755 | char _ptemp[128]; |
| 7756 | |
| 7757 | self = self; |
| 7758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
| 7759 | return NULL; |
| 7760 | if (_obj0) |
| 7761 | { |
| 7762 | _arg0 = wxString_in_helper(_obj0); |
| 7763 | if (_arg0 == NULL) |
| 7764 | return NULL; |
| 7765 | } |
| 7766 | { |
| 7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7768 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
| 7769 | |
| 7770 | wxPyEndAllowThreads(__tstate); |
| 7771 | if (PyErr_Occurred()) return NULL; |
| 7772 | } if (_result) { |
| 7773 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); |
| 7774 | _resultobj = Py_BuildValue("s",_ptemp); |
| 7775 | } else { |
| 7776 | Py_INCREF(Py_None); |
| 7777 | _resultobj = Py_None; |
| 7778 | } |
| 7779 | { |
| 7780 | if (_obj0) |
| 7781 | delete _arg0; |
| 7782 | } |
| 7783 | return _resultobj; |
| 7784 | } |
| 7785 | |
| 7786 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 7787 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7788 | PyObject * _resultobj; |
| 7789 | wxMenu * _arg0; |
| 7790 | int _arg1; |
| 7791 | wxString * _arg2; |
| 7792 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 7793 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
| 7794 | PyObject * _argo0 = 0; |
| 7795 | PyObject * _obj2 = 0; |
| 7796 | PyObject * _obj3 = 0; |
| 7797 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; |
| 7798 | |
| 7799 | self = self; |
| 7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
| 7801 | return NULL; |
| 7802 | if (_argo0) { |
| 7803 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 7805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
| 7806 | return NULL; |
| 7807 | } |
| 7808 | } |
| 7809 | { |
| 7810 | _arg2 = wxString_in_helper(_obj2); |
| 7811 | if (_arg2 == NULL) |
| 7812 | return NULL; |
| 7813 | } |
| 7814 | if (_obj3) |
| 7815 | { |
| 7816 | _arg3 = wxString_in_helper(_obj3); |
| 7817 | if (_arg3 == NULL) |
| 7818 | return NULL; |
| 7819 | } |
| 7820 | { |
| 7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7822 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
| 7823 | |
| 7824 | wxPyEndAllowThreads(__tstate); |
| 7825 | if (PyErr_Occurred()) return NULL; |
| 7826 | } Py_INCREF(Py_None); |
| 7827 | _resultobj = Py_None; |
| 7828 | { |
| 7829 | if (_obj2) |
| 7830 | delete _arg2; |
| 7831 | } |
| 7832 | { |
| 7833 | if (_obj3) |
| 7834 | delete _arg3; |
| 7835 | } |
| 7836 | return _resultobj; |
| 7837 | } |
| 7838 | |
| 7839 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 7840 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7841 | PyObject * _resultobj; |
| 7842 | wxMenu * _arg0; |
| 7843 | int _arg1; |
| 7844 | wxString * _arg2; |
| 7845 | wxMenu * _arg3; |
| 7846 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
| 7847 | PyObject * _argo0 = 0; |
| 7848 | PyObject * _obj2 = 0; |
| 7849 | PyObject * _argo3 = 0; |
| 7850 | PyObject * _obj4 = 0; |
| 7851 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
| 7852 | |
| 7853 | self = self; |
| 7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
| 7855 | return NULL; |
| 7856 | if (_argo0) { |
| 7857 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 7859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
| 7860 | return NULL; |
| 7861 | } |
| 7862 | } |
| 7863 | { |
| 7864 | _arg2 = wxString_in_helper(_obj2); |
| 7865 | if (_arg2 == NULL) |
| 7866 | return NULL; |
| 7867 | } |
| 7868 | if (_argo3) { |
| 7869 | if (_argo3 == Py_None) { _arg3 = NULL; } |
| 7870 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { |
| 7871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
| 7872 | return NULL; |
| 7873 | } |
| 7874 | } |
| 7875 | if (_obj4) |
| 7876 | { |
| 7877 | _arg4 = wxString_in_helper(_obj4); |
| 7878 | if (_arg4 == NULL) |
| 7879 | return NULL; |
| 7880 | } |
| 7881 | { |
| 7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7883 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
| 7884 | |
| 7885 | wxPyEndAllowThreads(__tstate); |
| 7886 | if (PyErr_Occurred()) return NULL; |
| 7887 | } Py_INCREF(Py_None); |
| 7888 | _resultobj = Py_None; |
| 7889 | { |
| 7890 | if (_obj2) |
| 7891 | delete _arg2; |
| 7892 | } |
| 7893 | { |
| 7894 | if (_obj4) |
| 7895 | delete _arg4; |
| 7896 | } |
| 7897 | return _resultobj; |
| 7898 | } |
| 7899 | |
| 7900 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
| 7901 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7902 | PyObject * _resultobj; |
| 7903 | wxMenu * _arg0; |
| 7904 | wxMenuItem * _arg1; |
| 7905 | PyObject * _argo0 = 0; |
| 7906 | PyObject * _argo1 = 0; |
| 7907 | char *_kwnames[] = { "self","item", NULL }; |
| 7908 | |
| 7909 | self = self; |
| 7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
| 7911 | return NULL; |
| 7912 | if (_argo0) { |
| 7913 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); |
| 7916 | return NULL; |
| 7917 | } |
| 7918 | } |
| 7919 | if (_argo1) { |
| 7920 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 7921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { |
| 7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); |
| 7923 | return NULL; |
| 7924 | } |
| 7925 | } |
| 7926 | { |
| 7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7928 | wxMenu_AppendItem(_arg0,_arg1); |
| 7929 | |
| 7930 | wxPyEndAllowThreads(__tstate); |
| 7931 | if (PyErr_Occurred()) return NULL; |
| 7932 | } Py_INCREF(Py_None); |
| 7933 | _resultobj = Py_None; |
| 7934 | return _resultobj; |
| 7935 | } |
| 7936 | |
| 7937 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
| 7938 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7939 | PyObject * _resultobj; |
| 7940 | wxMenu * _arg0; |
| 7941 | int _arg1; |
| 7942 | wxString * _arg2; |
| 7943 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 7944 | PyObject * _argo0 = 0; |
| 7945 | PyObject * _obj2 = 0; |
| 7946 | PyObject * _obj3 = 0; |
| 7947 | char *_kwnames[] = { "self","id","text","help", NULL }; |
| 7948 | |
| 7949 | self = self; |
| 7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
| 7951 | return NULL; |
| 7952 | if (_argo0) { |
| 7953 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 7954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); |
| 7956 | return NULL; |
| 7957 | } |
| 7958 | } |
| 7959 | { |
| 7960 | _arg2 = wxString_in_helper(_obj2); |
| 7961 | if (_arg2 == NULL) |
| 7962 | return NULL; |
| 7963 | } |
| 7964 | if (_obj3) |
| 7965 | { |
| 7966 | _arg3 = wxString_in_helper(_obj3); |
| 7967 | if (_arg3 == NULL) |
| 7968 | return NULL; |
| 7969 | } |
| 7970 | { |
| 7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 7972 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
| 7973 | |
| 7974 | wxPyEndAllowThreads(__tstate); |
| 7975 | if (PyErr_Occurred()) return NULL; |
| 7976 | } Py_INCREF(Py_None); |
| 7977 | _resultobj = Py_None; |
| 7978 | { |
| 7979 | if (_obj2) |
| 7980 | delete _arg2; |
| 7981 | } |
| 7982 | { |
| 7983 | if (_obj3) |
| 7984 | delete _arg3; |
| 7985 | } |
| 7986 | return _resultobj; |
| 7987 | } |
| 7988 | |
| 7989 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
| 7990 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 7991 | PyObject * _resultobj; |
| 7992 | wxMenu * _arg0; |
| 7993 | int _arg1; |
| 7994 | wxString * _arg2; |
| 7995 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 7996 | PyObject * _argo0 = 0; |
| 7997 | PyObject * _obj2 = 0; |
| 7998 | PyObject * _obj3 = 0; |
| 7999 | char *_kwnames[] = { "self","id","text","help", NULL }; |
| 8000 | |
| 8001 | self = self; |
| 8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
| 8003 | return NULL; |
| 8004 | if (_argo0) { |
| 8005 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); |
| 8008 | return NULL; |
| 8009 | } |
| 8010 | } |
| 8011 | { |
| 8012 | _arg2 = wxString_in_helper(_obj2); |
| 8013 | if (_arg2 == NULL) |
| 8014 | return NULL; |
| 8015 | } |
| 8016 | if (_obj3) |
| 8017 | { |
| 8018 | _arg3 = wxString_in_helper(_obj3); |
| 8019 | if (_arg3 == NULL) |
| 8020 | return NULL; |
| 8021 | } |
| 8022 | { |
| 8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8024 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
| 8025 | |
| 8026 | wxPyEndAllowThreads(__tstate); |
| 8027 | if (PyErr_Occurred()) return NULL; |
| 8028 | } Py_INCREF(Py_None); |
| 8029 | _resultobj = Py_None; |
| 8030 | { |
| 8031 | if (_obj2) |
| 8032 | delete _arg2; |
| 8033 | } |
| 8034 | { |
| 8035 | if (_obj3) |
| 8036 | delete _arg3; |
| 8037 | } |
| 8038 | return _resultobj; |
| 8039 | } |
| 8040 | |
| 8041 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
| 8042 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8043 | PyObject * _resultobj; |
| 8044 | wxMenu * _arg0; |
| 8045 | PyObject * _argo0 = 0; |
| 8046 | char *_kwnames[] = { "self", NULL }; |
| 8047 | |
| 8048 | self = self; |
| 8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
| 8050 | return NULL; |
| 8051 | if (_argo0) { |
| 8052 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
| 8055 | return NULL; |
| 8056 | } |
| 8057 | } |
| 8058 | { |
| 8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8060 | wxMenu_AppendSeparator(_arg0); |
| 8061 | |
| 8062 | wxPyEndAllowThreads(__tstate); |
| 8063 | if (PyErr_Occurred()) return NULL; |
| 8064 | } Py_INCREF(Py_None); |
| 8065 | _resultobj = Py_None; |
| 8066 | return _resultobj; |
| 8067 | } |
| 8068 | |
| 8069 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
| 8070 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8071 | PyObject * _resultobj; |
| 8072 | wxMenu * _arg0; |
| 8073 | size_t _arg1; |
| 8074 | int _arg2; |
| 8075 | wxString * _arg3; |
| 8076 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
| 8077 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
| 8078 | PyObject * _argo0 = 0; |
| 8079 | PyObject * _obj3 = 0; |
| 8080 | PyObject * _obj4 = 0; |
| 8081 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; |
| 8082 | |
| 8083 | self = self; |
| 8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) |
| 8085 | return NULL; |
| 8086 | if (_argo0) { |
| 8087 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); |
| 8090 | return NULL; |
| 8091 | } |
| 8092 | } |
| 8093 | { |
| 8094 | _arg3 = wxString_in_helper(_obj3); |
| 8095 | if (_arg3 == NULL) |
| 8096 | return NULL; |
| 8097 | } |
| 8098 | if (_obj4) |
| 8099 | { |
| 8100 | _arg4 = wxString_in_helper(_obj4); |
| 8101 | if (_arg4 == NULL) |
| 8102 | return NULL; |
| 8103 | } |
| 8104 | { |
| 8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8106 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); |
| 8107 | |
| 8108 | wxPyEndAllowThreads(__tstate); |
| 8109 | if (PyErr_Occurred()) return NULL; |
| 8110 | } Py_INCREF(Py_None); |
| 8111 | _resultobj = Py_None; |
| 8112 | { |
| 8113 | if (_obj3) |
| 8114 | delete _arg3; |
| 8115 | } |
| 8116 | { |
| 8117 | if (_obj4) |
| 8118 | delete _arg4; |
| 8119 | } |
| 8120 | return _resultobj; |
| 8121 | } |
| 8122 | |
| 8123 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) |
| 8124 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8125 | PyObject * _resultobj; |
| 8126 | wxMenu * _arg0; |
| 8127 | size_t _arg1; |
| 8128 | PyObject * _argo0 = 0; |
| 8129 | char *_kwnames[] = { "self","pos", NULL }; |
| 8130 | |
| 8131 | self = self; |
| 8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) |
| 8133 | return NULL; |
| 8134 | if (_argo0) { |
| 8135 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); |
| 8138 | return NULL; |
| 8139 | } |
| 8140 | } |
| 8141 | { |
| 8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8143 | wxMenu_InsertSeparator(_arg0,_arg1); |
| 8144 | |
| 8145 | wxPyEndAllowThreads(__tstate); |
| 8146 | if (PyErr_Occurred()) return NULL; |
| 8147 | } Py_INCREF(Py_None); |
| 8148 | _resultobj = Py_None; |
| 8149 | return _resultobj; |
| 8150 | } |
| 8151 | |
| 8152 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 8153 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8154 | PyObject * _resultobj; |
| 8155 | wxMenu * _arg0; |
| 8156 | size_t _arg1; |
| 8157 | int _arg2; |
| 8158 | wxString * _arg3; |
| 8159 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
| 8160 | PyObject * _argo0 = 0; |
| 8161 | PyObject * _obj3 = 0; |
| 8162 | PyObject * _obj4 = 0; |
| 8163 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; |
| 8164 | |
| 8165 | self = self; |
| 8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) |
| 8167 | return NULL; |
| 8168 | if (_argo0) { |
| 8169 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); |
| 8172 | return NULL; |
| 8173 | } |
| 8174 | } |
| 8175 | { |
| 8176 | _arg3 = wxString_in_helper(_obj3); |
| 8177 | if (_arg3 == NULL) |
| 8178 | return NULL; |
| 8179 | } |
| 8180 | if (_obj4) |
| 8181 | { |
| 8182 | _arg4 = wxString_in_helper(_obj4); |
| 8183 | if (_arg4 == NULL) |
| 8184 | return NULL; |
| 8185 | } |
| 8186 | { |
| 8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8188 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); |
| 8189 | |
| 8190 | wxPyEndAllowThreads(__tstate); |
| 8191 | if (PyErr_Occurred()) return NULL; |
| 8192 | } Py_INCREF(Py_None); |
| 8193 | _resultobj = Py_None; |
| 8194 | { |
| 8195 | if (_obj3) |
| 8196 | delete _arg3; |
| 8197 | } |
| 8198 | { |
| 8199 | if (_obj4) |
| 8200 | delete _arg4; |
| 8201 | } |
| 8202 | return _resultobj; |
| 8203 | } |
| 8204 | |
| 8205 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 8206 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8207 | PyObject * _resultobj; |
| 8208 | wxMenu * _arg0; |
| 8209 | size_t _arg1; |
| 8210 | int _arg2; |
| 8211 | wxString * _arg3; |
| 8212 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
| 8213 | PyObject * _argo0 = 0; |
| 8214 | PyObject * _obj3 = 0; |
| 8215 | PyObject * _obj4 = 0; |
| 8216 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; |
| 8217 | |
| 8218 | self = self; |
| 8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) |
| 8220 | return NULL; |
| 8221 | if (_argo0) { |
| 8222 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); |
| 8225 | return NULL; |
| 8226 | } |
| 8227 | } |
| 8228 | { |
| 8229 | _arg3 = wxString_in_helper(_obj3); |
| 8230 | if (_arg3 == NULL) |
| 8231 | return NULL; |
| 8232 | } |
| 8233 | if (_obj4) |
| 8234 | { |
| 8235 | _arg4 = wxString_in_helper(_obj4); |
| 8236 | if (_arg4 == NULL) |
| 8237 | return NULL; |
| 8238 | } |
| 8239 | { |
| 8240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8241 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); |
| 8242 | |
| 8243 | wxPyEndAllowThreads(__tstate); |
| 8244 | if (PyErr_Occurred()) return NULL; |
| 8245 | } Py_INCREF(Py_None); |
| 8246 | _resultobj = Py_None; |
| 8247 | { |
| 8248 | if (_obj3) |
| 8249 | delete _arg3; |
| 8250 | } |
| 8251 | { |
| 8252 | if (_obj4) |
| 8253 | delete _arg4; |
| 8254 | } |
| 8255 | return _resultobj; |
| 8256 | } |
| 8257 | |
| 8258 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
| 8259 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8260 | PyObject * _resultobj; |
| 8261 | wxMenu * _arg0; |
| 8262 | size_t _arg1; |
| 8263 | int _arg2; |
| 8264 | wxString * _arg3; |
| 8265 | wxMenu * _arg4; |
| 8266 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
| 8267 | PyObject * _argo0 = 0; |
| 8268 | PyObject * _obj3 = 0; |
| 8269 | PyObject * _argo4 = 0; |
| 8270 | PyObject * _obj5 = 0; |
| 8271 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; |
| 8272 | |
| 8273 | self = self; |
| 8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) |
| 8275 | return NULL; |
| 8276 | if (_argo0) { |
| 8277 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); |
| 8280 | return NULL; |
| 8281 | } |
| 8282 | } |
| 8283 | { |
| 8284 | _arg3 = wxString_in_helper(_obj3); |
| 8285 | if (_arg3 == NULL) |
| 8286 | return NULL; |
| 8287 | } |
| 8288 | if (_argo4) { |
| 8289 | if (_argo4 == Py_None) { _arg4 = NULL; } |
| 8290 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { |
| 8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); |
| 8292 | return NULL; |
| 8293 | } |
| 8294 | } |
| 8295 | if (_obj5) |
| 8296 | { |
| 8297 | _arg5 = wxString_in_helper(_obj5); |
| 8298 | if (_arg5 == NULL) |
| 8299 | return NULL; |
| 8300 | } |
| 8301 | { |
| 8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8303 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); |
| 8304 | |
| 8305 | wxPyEndAllowThreads(__tstate); |
| 8306 | if (PyErr_Occurred()) return NULL; |
| 8307 | } Py_INCREF(Py_None); |
| 8308 | _resultobj = Py_None; |
| 8309 | { |
| 8310 | if (_obj3) |
| 8311 | delete _arg3; |
| 8312 | } |
| 8313 | { |
| 8314 | if (_obj5) |
| 8315 | delete _arg5; |
| 8316 | } |
| 8317 | return _resultobj; |
| 8318 | } |
| 8319 | |
| 8320 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
| 8321 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8322 | PyObject * _resultobj; |
| 8323 | bool _result; |
| 8324 | wxMenu * _arg0; |
| 8325 | size_t _arg1; |
| 8326 | wxMenuItem * _arg2; |
| 8327 | PyObject * _argo0 = 0; |
| 8328 | PyObject * _argo2 = 0; |
| 8329 | char *_kwnames[] = { "self","pos","item", NULL }; |
| 8330 | |
| 8331 | self = self; |
| 8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
| 8333 | return NULL; |
| 8334 | if (_argo0) { |
| 8335 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); |
| 8338 | return NULL; |
| 8339 | } |
| 8340 | } |
| 8341 | if (_argo2) { |
| 8342 | if (_argo2 == Py_None) { _arg2 = NULL; } |
| 8343 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { |
| 8344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); |
| 8345 | return NULL; |
| 8346 | } |
| 8347 | } |
| 8348 | { |
| 8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8350 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
| 8351 | |
| 8352 | wxPyEndAllowThreads(__tstate); |
| 8353 | if (PyErr_Occurred()) return NULL; |
| 8354 | } _resultobj = Py_BuildValue("i",_result); |
| 8355 | return _resultobj; |
| 8356 | } |
| 8357 | |
| 8358 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 8359 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8360 | PyObject * _resultobj; |
| 8361 | wxMenu * _arg0; |
| 8362 | int _arg1; |
| 8363 | wxString * _arg2; |
| 8364 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 8365 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
| 8366 | PyObject * _argo0 = 0; |
| 8367 | PyObject * _obj2 = 0; |
| 8368 | PyObject * _obj3 = 0; |
| 8369 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; |
| 8370 | |
| 8371 | self = self; |
| 8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
| 8373 | return NULL; |
| 8374 | if (_argo0) { |
| 8375 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); |
| 8378 | return NULL; |
| 8379 | } |
| 8380 | } |
| 8381 | { |
| 8382 | _arg2 = wxString_in_helper(_obj2); |
| 8383 | if (_arg2 == NULL) |
| 8384 | return NULL; |
| 8385 | } |
| 8386 | if (_obj3) |
| 8387 | { |
| 8388 | _arg3 = wxString_in_helper(_obj3); |
| 8389 | if (_arg3 == NULL) |
| 8390 | return NULL; |
| 8391 | } |
| 8392 | { |
| 8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8394 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
| 8395 | |
| 8396 | wxPyEndAllowThreads(__tstate); |
| 8397 | if (PyErr_Occurred()) return NULL; |
| 8398 | } Py_INCREF(Py_None); |
| 8399 | _resultobj = Py_None; |
| 8400 | { |
| 8401 | if (_obj2) |
| 8402 | delete _arg2; |
| 8403 | } |
| 8404 | { |
| 8405 | if (_obj3) |
| 8406 | delete _arg3; |
| 8407 | } |
| 8408 | return _resultobj; |
| 8409 | } |
| 8410 | |
| 8411 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
| 8412 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8413 | PyObject * _resultobj; |
| 8414 | wxMenu * _arg0; |
| 8415 | PyObject * _argo0 = 0; |
| 8416 | char *_kwnames[] = { "self", NULL }; |
| 8417 | |
| 8418 | self = self; |
| 8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
| 8420 | return NULL; |
| 8421 | if (_argo0) { |
| 8422 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); |
| 8425 | return NULL; |
| 8426 | } |
| 8427 | } |
| 8428 | { |
| 8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8430 | wxMenu_PrependSeparator(_arg0); |
| 8431 | |
| 8432 | wxPyEndAllowThreads(__tstate); |
| 8433 | if (PyErr_Occurred()) return NULL; |
| 8434 | } Py_INCREF(Py_None); |
| 8435 | _resultobj = Py_None; |
| 8436 | return _resultobj; |
| 8437 | } |
| 8438 | |
| 8439 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
| 8440 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8441 | PyObject * _resultobj; |
| 8442 | wxMenu * _arg0; |
| 8443 | int _arg1; |
| 8444 | wxString * _arg2; |
| 8445 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 8446 | PyObject * _argo0 = 0; |
| 8447 | PyObject * _obj2 = 0; |
| 8448 | PyObject * _obj3 = 0; |
| 8449 | char *_kwnames[] = { "self","id","text","help", NULL }; |
| 8450 | |
| 8451 | self = self; |
| 8452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
| 8453 | return NULL; |
| 8454 | if (_argo0) { |
| 8455 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); |
| 8458 | return NULL; |
| 8459 | } |
| 8460 | } |
| 8461 | { |
| 8462 | _arg2 = wxString_in_helper(_obj2); |
| 8463 | if (_arg2 == NULL) |
| 8464 | return NULL; |
| 8465 | } |
| 8466 | if (_obj3) |
| 8467 | { |
| 8468 | _arg3 = wxString_in_helper(_obj3); |
| 8469 | if (_arg3 == NULL) |
| 8470 | return NULL; |
| 8471 | } |
| 8472 | { |
| 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8474 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
| 8475 | |
| 8476 | wxPyEndAllowThreads(__tstate); |
| 8477 | if (PyErr_Occurred()) return NULL; |
| 8478 | } Py_INCREF(Py_None); |
| 8479 | _resultobj = Py_None; |
| 8480 | { |
| 8481 | if (_obj2) |
| 8482 | delete _arg2; |
| 8483 | } |
| 8484 | { |
| 8485 | if (_obj3) |
| 8486 | delete _arg3; |
| 8487 | } |
| 8488 | return _resultobj; |
| 8489 | } |
| 8490 | |
| 8491 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
| 8492 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8493 | PyObject * _resultobj; |
| 8494 | wxMenu * _arg0; |
| 8495 | int _arg1; |
| 8496 | wxString * _arg2; |
| 8497 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 8498 | PyObject * _argo0 = 0; |
| 8499 | PyObject * _obj2 = 0; |
| 8500 | PyObject * _obj3 = 0; |
| 8501 | char *_kwnames[] = { "self","id","text","help", NULL }; |
| 8502 | |
| 8503 | self = self; |
| 8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
| 8505 | return NULL; |
| 8506 | if (_argo0) { |
| 8507 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
| 8510 | return NULL; |
| 8511 | } |
| 8512 | } |
| 8513 | { |
| 8514 | _arg2 = wxString_in_helper(_obj2); |
| 8515 | if (_arg2 == NULL) |
| 8516 | return NULL; |
| 8517 | } |
| 8518 | if (_obj3) |
| 8519 | { |
| 8520 | _arg3 = wxString_in_helper(_obj3); |
| 8521 | if (_arg3 == NULL) |
| 8522 | return NULL; |
| 8523 | } |
| 8524 | { |
| 8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8526 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
| 8527 | |
| 8528 | wxPyEndAllowThreads(__tstate); |
| 8529 | if (PyErr_Occurred()) return NULL; |
| 8530 | } Py_INCREF(Py_None); |
| 8531 | _resultobj = Py_None; |
| 8532 | { |
| 8533 | if (_obj2) |
| 8534 | delete _arg2; |
| 8535 | } |
| 8536 | { |
| 8537 | if (_obj3) |
| 8538 | delete _arg3; |
| 8539 | } |
| 8540 | return _resultobj; |
| 8541 | } |
| 8542 | |
| 8543 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
| 8544 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8545 | PyObject * _resultobj; |
| 8546 | wxMenu * _arg0; |
| 8547 | int _arg1; |
| 8548 | wxString * _arg2; |
| 8549 | wxMenu * _arg3; |
| 8550 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
| 8551 | PyObject * _argo0 = 0; |
| 8552 | PyObject * _obj2 = 0; |
| 8553 | PyObject * _argo3 = 0; |
| 8554 | PyObject * _obj4 = 0; |
| 8555 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
| 8556 | |
| 8557 | self = self; |
| 8558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
| 8559 | return NULL; |
| 8560 | if (_argo0) { |
| 8561 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
| 8564 | return NULL; |
| 8565 | } |
| 8566 | } |
| 8567 | { |
| 8568 | _arg2 = wxString_in_helper(_obj2); |
| 8569 | if (_arg2 == NULL) |
| 8570 | return NULL; |
| 8571 | } |
| 8572 | if (_argo3) { |
| 8573 | if (_argo3 == Py_None) { _arg3 = NULL; } |
| 8574 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { |
| 8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
| 8576 | return NULL; |
| 8577 | } |
| 8578 | } |
| 8579 | if (_obj4) |
| 8580 | { |
| 8581 | _arg4 = wxString_in_helper(_obj4); |
| 8582 | if (_arg4 == NULL) |
| 8583 | return NULL; |
| 8584 | } |
| 8585 | { |
| 8586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8587 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
| 8588 | |
| 8589 | wxPyEndAllowThreads(__tstate); |
| 8590 | if (PyErr_Occurred()) return NULL; |
| 8591 | } Py_INCREF(Py_None); |
| 8592 | _resultobj = Py_None; |
| 8593 | { |
| 8594 | if (_obj2) |
| 8595 | delete _arg2; |
| 8596 | } |
| 8597 | { |
| 8598 | if (_obj4) |
| 8599 | delete _arg4; |
| 8600 | } |
| 8601 | return _resultobj; |
| 8602 | } |
| 8603 | |
| 8604 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
| 8605 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8606 | PyObject * _resultobj; |
| 8607 | wxMenu * _arg0; |
| 8608 | wxMenuItem * _arg1; |
| 8609 | PyObject * _argo0 = 0; |
| 8610 | PyObject * _argo1 = 0; |
| 8611 | char *_kwnames[] = { "self","item", NULL }; |
| 8612 | |
| 8613 | self = self; |
| 8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
| 8615 | return NULL; |
| 8616 | if (_argo0) { |
| 8617 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
| 8620 | return NULL; |
| 8621 | } |
| 8622 | } |
| 8623 | if (_argo1) { |
| 8624 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 8625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { |
| 8626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
| 8627 | return NULL; |
| 8628 | } |
| 8629 | } |
| 8630 | { |
| 8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8632 | wxMenu_PrependItem(_arg0,_arg1); |
| 8633 | |
| 8634 | wxPyEndAllowThreads(__tstate); |
| 8635 | if (PyErr_Occurred()) return NULL; |
| 8636 | } Py_INCREF(Py_None); |
| 8637 | _resultobj = Py_None; |
| 8638 | return _resultobj; |
| 8639 | } |
| 8640 | |
| 8641 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) |
| 8642 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8643 | PyObject * _resultobj; |
| 8644 | wxMenu * _arg0; |
| 8645 | PyObject * _argo0 = 0; |
| 8646 | char *_kwnames[] = { "self", NULL }; |
| 8647 | |
| 8648 | self = self; |
| 8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
| 8650 | return NULL; |
| 8651 | if (_argo0) { |
| 8652 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
| 8655 | return NULL; |
| 8656 | } |
| 8657 | } |
| 8658 | { |
| 8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8660 | wxMenu_Break(_arg0); |
| 8661 | |
| 8662 | wxPyEndAllowThreads(__tstate); |
| 8663 | if (PyErr_Occurred()) return NULL; |
| 8664 | } Py_INCREF(Py_None); |
| 8665 | _resultobj = Py_None; |
| 8666 | return _resultobj; |
| 8667 | } |
| 8668 | |
| 8669 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) |
| 8670 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8671 | PyObject * _resultobj; |
| 8672 | wxMenu * _arg0; |
| 8673 | int _arg1; |
| 8674 | bool _arg2; |
| 8675 | PyObject * _argo0 = 0; |
| 8676 | int tempbool2; |
| 8677 | char *_kwnames[] = { "self","id","flag", NULL }; |
| 8678 | |
| 8679 | self = self; |
| 8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
| 8681 | return NULL; |
| 8682 | if (_argo0) { |
| 8683 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
| 8686 | return NULL; |
| 8687 | } |
| 8688 | } |
| 8689 | _arg2 = (bool ) tempbool2; |
| 8690 | { |
| 8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8692 | wxMenu_Check(_arg0,_arg1,_arg2); |
| 8693 | |
| 8694 | wxPyEndAllowThreads(__tstate); |
| 8695 | if (PyErr_Occurred()) return NULL; |
| 8696 | } Py_INCREF(Py_None); |
| 8697 | _resultobj = Py_None; |
| 8698 | return _resultobj; |
| 8699 | } |
| 8700 | |
| 8701 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
| 8702 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8703 | PyObject * _resultobj; |
| 8704 | bool _result; |
| 8705 | wxMenu * _arg0; |
| 8706 | int _arg1; |
| 8707 | PyObject * _argo0 = 0; |
| 8708 | char *_kwnames[] = { "self","id", NULL }; |
| 8709 | |
| 8710 | self = self; |
| 8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) |
| 8712 | return NULL; |
| 8713 | if (_argo0) { |
| 8714 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); |
| 8717 | return NULL; |
| 8718 | } |
| 8719 | } |
| 8720 | { |
| 8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8722 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
| 8723 | |
| 8724 | wxPyEndAllowThreads(__tstate); |
| 8725 | if (PyErr_Occurred()) return NULL; |
| 8726 | } _resultobj = Py_BuildValue("i",_result); |
| 8727 | return _resultobj; |
| 8728 | } |
| 8729 | |
| 8730 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
| 8731 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8732 | PyObject * _resultobj; |
| 8733 | wxMenu * _arg0; |
| 8734 | int _arg1; |
| 8735 | bool _arg2; |
| 8736 | PyObject * _argo0 = 0; |
| 8737 | int tempbool2; |
| 8738 | char *_kwnames[] = { "self","id","enable", NULL }; |
| 8739 | |
| 8740 | self = self; |
| 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
| 8742 | return NULL; |
| 8743 | if (_argo0) { |
| 8744 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
| 8747 | return NULL; |
| 8748 | } |
| 8749 | } |
| 8750 | _arg2 = (bool ) tempbool2; |
| 8751 | { |
| 8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8753 | wxMenu_Enable(_arg0,_arg1,_arg2); |
| 8754 | |
| 8755 | wxPyEndAllowThreads(__tstate); |
| 8756 | if (PyErr_Occurred()) return NULL; |
| 8757 | } Py_INCREF(Py_None); |
| 8758 | _resultobj = Py_None; |
| 8759 | return _resultobj; |
| 8760 | } |
| 8761 | |
| 8762 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
| 8763 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8764 | PyObject * _resultobj; |
| 8765 | bool _result; |
| 8766 | wxMenu * _arg0; |
| 8767 | int _arg1; |
| 8768 | PyObject * _argo0 = 0; |
| 8769 | char *_kwnames[] = { "self","id", NULL }; |
| 8770 | |
| 8771 | self = self; |
| 8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) |
| 8773 | return NULL; |
| 8774 | if (_argo0) { |
| 8775 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); |
| 8778 | return NULL; |
| 8779 | } |
| 8780 | } |
| 8781 | { |
| 8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8783 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
| 8784 | |
| 8785 | wxPyEndAllowThreads(__tstate); |
| 8786 | if (PyErr_Occurred()) return NULL; |
| 8787 | } _resultobj = Py_BuildValue("i",_result); |
| 8788 | return _resultobj; |
| 8789 | } |
| 8790 | |
| 8791 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
| 8792 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8793 | PyObject * _resultobj; |
| 8794 | int _result; |
| 8795 | wxMenu * _arg0; |
| 8796 | wxString * _arg1; |
| 8797 | PyObject * _argo0 = 0; |
| 8798 | PyObject * _obj1 = 0; |
| 8799 | char *_kwnames[] = { "self","itemString", NULL }; |
| 8800 | |
| 8801 | self = self; |
| 8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
| 8803 | return NULL; |
| 8804 | if (_argo0) { |
| 8805 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
| 8808 | return NULL; |
| 8809 | } |
| 8810 | } |
| 8811 | { |
| 8812 | _arg1 = wxString_in_helper(_obj1); |
| 8813 | if (_arg1 == NULL) |
| 8814 | return NULL; |
| 8815 | } |
| 8816 | { |
| 8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8818 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
| 8819 | |
| 8820 | wxPyEndAllowThreads(__tstate); |
| 8821 | if (PyErr_Occurred()) return NULL; |
| 8822 | } _resultobj = Py_BuildValue("i",_result); |
| 8823 | { |
| 8824 | if (_obj1) |
| 8825 | delete _arg1; |
| 8826 | } |
| 8827 | return _resultobj; |
| 8828 | } |
| 8829 | |
| 8830 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
| 8831 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8832 | PyObject * _resultobj; |
| 8833 | wxMenuItem * _result; |
| 8834 | wxMenu * _arg0; |
| 8835 | int _arg1; |
| 8836 | PyObject * _argo0 = 0; |
| 8837 | char *_kwnames[] = { "self","id", NULL }; |
| 8838 | |
| 8839 | self = self; |
| 8840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) |
| 8841 | return NULL; |
| 8842 | if (_argo0) { |
| 8843 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); |
| 8846 | return NULL; |
| 8847 | } |
| 8848 | } |
| 8849 | { |
| 8850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8851 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
| 8852 | |
| 8853 | wxPyEndAllowThreads(__tstate); |
| 8854 | if (PyErr_Occurred()) return NULL; |
| 8855 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 8856 | return _resultobj; |
| 8857 | } |
| 8858 | |
| 8859 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
| 8860 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8861 | PyObject * _resultobj; |
| 8862 | wxString * _result; |
| 8863 | wxMenu * _arg0; |
| 8864 | PyObject * _argo0 = 0; |
| 8865 | char *_kwnames[] = { "self", NULL }; |
| 8866 | |
| 8867 | self = self; |
| 8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
| 8869 | return NULL; |
| 8870 | if (_argo0) { |
| 8871 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
| 8874 | return NULL; |
| 8875 | } |
| 8876 | } |
| 8877 | { |
| 8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8879 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
| 8880 | |
| 8881 | wxPyEndAllowThreads(__tstate); |
| 8882 | if (PyErr_Occurred()) return NULL; |
| 8883 | }{ |
| 8884 | #if wxUSE_UNICODE |
| 8885 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 8886 | #else |
| 8887 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 8888 | #endif |
| 8889 | } |
| 8890 | { |
| 8891 | delete _result; |
| 8892 | } |
| 8893 | return _resultobj; |
| 8894 | } |
| 8895 | |
| 8896 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
| 8897 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8898 | PyObject * _resultobj; |
| 8899 | wxMenu * _arg0; |
| 8900 | wxString * _arg1; |
| 8901 | PyObject * _argo0 = 0; |
| 8902 | PyObject * _obj1 = 0; |
| 8903 | char *_kwnames[] = { "self","title", NULL }; |
| 8904 | |
| 8905 | self = self; |
| 8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
| 8907 | return NULL; |
| 8908 | if (_argo0) { |
| 8909 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
| 8912 | return NULL; |
| 8913 | } |
| 8914 | } |
| 8915 | { |
| 8916 | _arg1 = wxString_in_helper(_obj1); |
| 8917 | if (_arg1 == NULL) |
| 8918 | return NULL; |
| 8919 | } |
| 8920 | { |
| 8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8922 | wxMenu_SetTitle(_arg0,*_arg1); |
| 8923 | |
| 8924 | wxPyEndAllowThreads(__tstate); |
| 8925 | if (PyErr_Occurred()) return NULL; |
| 8926 | } Py_INCREF(Py_None); |
| 8927 | _resultobj = Py_None; |
| 8928 | { |
| 8929 | if (_obj1) |
| 8930 | delete _arg1; |
| 8931 | } |
| 8932 | return _resultobj; |
| 8933 | } |
| 8934 | |
| 8935 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
| 8936 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8937 | PyObject * _resultobj; |
| 8938 | wxString * _result; |
| 8939 | wxMenu * _arg0; |
| 8940 | int _arg1; |
| 8941 | PyObject * _argo0 = 0; |
| 8942 | char *_kwnames[] = { "self","id", NULL }; |
| 8943 | |
| 8944 | self = self; |
| 8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
| 8946 | return NULL; |
| 8947 | if (_argo0) { |
| 8948 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
| 8951 | return NULL; |
| 8952 | } |
| 8953 | } |
| 8954 | { |
| 8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 8956 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
| 8957 | |
| 8958 | wxPyEndAllowThreads(__tstate); |
| 8959 | if (PyErr_Occurred()) return NULL; |
| 8960 | }{ |
| 8961 | #if wxUSE_UNICODE |
| 8962 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 8963 | #else |
| 8964 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 8965 | #endif |
| 8966 | } |
| 8967 | { |
| 8968 | delete _result; |
| 8969 | } |
| 8970 | return _resultobj; |
| 8971 | } |
| 8972 | |
| 8973 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
| 8974 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 8975 | PyObject * _resultobj; |
| 8976 | wxMenu * _arg0; |
| 8977 | int _arg1; |
| 8978 | wxString * _arg2; |
| 8979 | PyObject * _argo0 = 0; |
| 8980 | PyObject * _obj2 = 0; |
| 8981 | char *_kwnames[] = { "self","id","label", NULL }; |
| 8982 | |
| 8983 | self = self; |
| 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
| 8985 | return NULL; |
| 8986 | if (_argo0) { |
| 8987 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
| 8990 | return NULL; |
| 8991 | } |
| 8992 | } |
| 8993 | { |
| 8994 | _arg2 = wxString_in_helper(_obj2); |
| 8995 | if (_arg2 == NULL) |
| 8996 | return NULL; |
| 8997 | } |
| 8998 | { |
| 8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9000 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
| 9001 | |
| 9002 | wxPyEndAllowThreads(__tstate); |
| 9003 | if (PyErr_Occurred()) return NULL; |
| 9004 | } Py_INCREF(Py_None); |
| 9005 | _resultobj = Py_None; |
| 9006 | { |
| 9007 | if (_obj2) |
| 9008 | delete _arg2; |
| 9009 | } |
| 9010 | return _resultobj; |
| 9011 | } |
| 9012 | |
| 9013 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
| 9014 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9015 | PyObject * _resultobj; |
| 9016 | wxString * _result; |
| 9017 | wxMenu * _arg0; |
| 9018 | int _arg1; |
| 9019 | PyObject * _argo0 = 0; |
| 9020 | char *_kwnames[] = { "self","id", NULL }; |
| 9021 | |
| 9022 | self = self; |
| 9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
| 9024 | return NULL; |
| 9025 | if (_argo0) { |
| 9026 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
| 9029 | return NULL; |
| 9030 | } |
| 9031 | } |
| 9032 | { |
| 9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9034 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
| 9035 | |
| 9036 | wxPyEndAllowThreads(__tstate); |
| 9037 | if (PyErr_Occurred()) return NULL; |
| 9038 | }{ |
| 9039 | #if wxUSE_UNICODE |
| 9040 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 9041 | #else |
| 9042 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 9043 | #endif |
| 9044 | } |
| 9045 | { |
| 9046 | delete _result; |
| 9047 | } |
| 9048 | return _resultobj; |
| 9049 | } |
| 9050 | |
| 9051 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) |
| 9052 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9053 | PyObject * _resultobj; |
| 9054 | wxMenu * _arg0; |
| 9055 | int _arg1; |
| 9056 | wxString * _arg2; |
| 9057 | PyObject * _argo0 = 0; |
| 9058 | PyObject * _obj2 = 0; |
| 9059 | char *_kwnames[] = { "self","id","helpString", NULL }; |
| 9060 | |
| 9061 | self = self; |
| 9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
| 9063 | return NULL; |
| 9064 | if (_argo0) { |
| 9065 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
| 9068 | return NULL; |
| 9069 | } |
| 9070 | } |
| 9071 | { |
| 9072 | _arg2 = wxString_in_helper(_obj2); |
| 9073 | if (_arg2 == NULL) |
| 9074 | return NULL; |
| 9075 | } |
| 9076 | { |
| 9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9078 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
| 9079 | |
| 9080 | wxPyEndAllowThreads(__tstate); |
| 9081 | if (PyErr_Occurred()) return NULL; |
| 9082 | } Py_INCREF(Py_None); |
| 9083 | _resultobj = Py_None; |
| 9084 | { |
| 9085 | if (_obj2) |
| 9086 | delete _arg2; |
| 9087 | } |
| 9088 | return _resultobj; |
| 9089 | } |
| 9090 | |
| 9091 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
| 9092 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9093 | PyObject * _resultobj; |
| 9094 | wxMenu * _arg0; |
| 9095 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
| 9096 | PyObject * _argo0 = 0; |
| 9097 | PyObject * _argo1 = 0; |
| 9098 | char *_kwnames[] = { "self","source", NULL }; |
| 9099 | |
| 9100 | self = self; |
| 9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
| 9102 | return NULL; |
| 9103 | if (_argo0) { |
| 9104 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
| 9107 | return NULL; |
| 9108 | } |
| 9109 | } |
| 9110 | if (_argo1) { |
| 9111 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 9113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); |
| 9114 | return NULL; |
| 9115 | } |
| 9116 | } |
| 9117 | { |
| 9118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9119 | wxMenu_UpdateUI(_arg0,_arg1); |
| 9120 | |
| 9121 | wxPyEndAllowThreads(__tstate); |
| 9122 | if (PyErr_Occurred()) return NULL; |
| 9123 | } Py_INCREF(Py_None); |
| 9124 | _resultobj = Py_None; |
| 9125 | return _resultobj; |
| 9126 | } |
| 9127 | |
| 9128 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
| 9129 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9130 | PyObject * _resultobj; |
| 9131 | bool _result; |
| 9132 | wxMenu * _arg0; |
| 9133 | int _arg1; |
| 9134 | PyObject * _argo0 = 0; |
| 9135 | char *_kwnames[] = { "self","id", NULL }; |
| 9136 | |
| 9137 | self = self; |
| 9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
| 9139 | return NULL; |
| 9140 | if (_argo0) { |
| 9141 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
| 9144 | return NULL; |
| 9145 | } |
| 9146 | } |
| 9147 | { |
| 9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9149 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
| 9150 | |
| 9151 | wxPyEndAllowThreads(__tstate); |
| 9152 | if (PyErr_Occurred()) return NULL; |
| 9153 | } _resultobj = Py_BuildValue("i",_result); |
| 9154 | return _resultobj; |
| 9155 | } |
| 9156 | |
| 9157 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
| 9158 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9159 | PyObject * _resultobj; |
| 9160 | bool _result; |
| 9161 | wxMenu * _arg0; |
| 9162 | wxMenuItem * _arg1; |
| 9163 | PyObject * _argo0 = 0; |
| 9164 | PyObject * _argo1 = 0; |
| 9165 | char *_kwnames[] = { "self","item", NULL }; |
| 9166 | |
| 9167 | self = self; |
| 9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
| 9169 | return NULL; |
| 9170 | if (_argo0) { |
| 9171 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
| 9174 | return NULL; |
| 9175 | } |
| 9176 | } |
| 9177 | if (_argo1) { |
| 9178 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { |
| 9180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); |
| 9181 | return NULL; |
| 9182 | } |
| 9183 | } |
| 9184 | { |
| 9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9186 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
| 9187 | |
| 9188 | wxPyEndAllowThreads(__tstate); |
| 9189 | if (PyErr_Occurred()) return NULL; |
| 9190 | } _resultobj = Py_BuildValue("i",_result); |
| 9191 | return _resultobj; |
| 9192 | } |
| 9193 | |
| 9194 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
| 9195 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9196 | PyObject * _resultobj; |
| 9197 | wxMenuItem * _result; |
| 9198 | wxMenu * _arg0; |
| 9199 | int _arg1; |
| 9200 | PyObject * _argo0 = 0; |
| 9201 | char *_kwnames[] = { "self","id", NULL }; |
| 9202 | |
| 9203 | self = self; |
| 9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
| 9205 | return NULL; |
| 9206 | if (_argo0) { |
| 9207 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
| 9210 | return NULL; |
| 9211 | } |
| 9212 | } |
| 9213 | { |
| 9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9215 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
| 9216 | |
| 9217 | wxPyEndAllowThreads(__tstate); |
| 9218 | if (PyErr_Occurred()) return NULL; |
| 9219 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9220 | return _resultobj; |
| 9221 | } |
| 9222 | |
| 9223 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
| 9224 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9225 | PyObject * _resultobj; |
| 9226 | wxMenuItem * _result; |
| 9227 | wxMenu * _arg0; |
| 9228 | wxMenuItem * _arg1; |
| 9229 | PyObject * _argo0 = 0; |
| 9230 | PyObject * _argo1 = 0; |
| 9231 | char *_kwnames[] = { "self","item", NULL }; |
| 9232 | |
| 9233 | self = self; |
| 9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
| 9235 | return NULL; |
| 9236 | if (_argo0) { |
| 9237 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); |
| 9240 | return NULL; |
| 9241 | } |
| 9242 | } |
| 9243 | if (_argo1) { |
| 9244 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { |
| 9246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); |
| 9247 | return NULL; |
| 9248 | } |
| 9249 | } |
| 9250 | { |
| 9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9252 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
| 9253 | |
| 9254 | wxPyEndAllowThreads(__tstate); |
| 9255 | if (PyErr_Occurred()) return NULL; |
| 9256 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9257 | return _resultobj; |
| 9258 | } |
| 9259 | |
| 9260 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
| 9261 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9262 | PyObject * _resultobj; |
| 9263 | wxMenu * _arg0; |
| 9264 | PyObject * _argo0 = 0; |
| 9265 | char *_kwnames[] = { "self", NULL }; |
| 9266 | |
| 9267 | self = self; |
| 9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
| 9269 | return NULL; |
| 9270 | if (_argo0) { |
| 9271 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); |
| 9274 | return NULL; |
| 9275 | } |
| 9276 | } |
| 9277 | { |
| 9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9279 | wxMenu_Destroy(_arg0); |
| 9280 | |
| 9281 | wxPyEndAllowThreads(__tstate); |
| 9282 | if (PyErr_Occurred()) return NULL; |
| 9283 | } Py_INCREF(Py_None); |
| 9284 | _resultobj = Py_None; |
| 9285 | return _resultobj; |
| 9286 | } |
| 9287 | |
| 9288 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
| 9289 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9290 | PyObject * _resultobj; |
| 9291 | bool _result; |
| 9292 | wxMenu * _arg0; |
| 9293 | int _arg1; |
| 9294 | PyObject * _argo0 = 0; |
| 9295 | char *_kwnames[] = { "self","id", NULL }; |
| 9296 | |
| 9297 | self = self; |
| 9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
| 9299 | return NULL; |
| 9300 | if (_argo0) { |
| 9301 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); |
| 9304 | return NULL; |
| 9305 | } |
| 9306 | } |
| 9307 | { |
| 9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9309 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
| 9310 | |
| 9311 | wxPyEndAllowThreads(__tstate); |
| 9312 | if (PyErr_Occurred()) return NULL; |
| 9313 | } _resultobj = Py_BuildValue("i",_result); |
| 9314 | return _resultobj; |
| 9315 | } |
| 9316 | |
| 9317 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
| 9318 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9319 | PyObject * _resultobj; |
| 9320 | bool _result; |
| 9321 | wxMenu * _arg0; |
| 9322 | wxMenuItem * _arg1; |
| 9323 | PyObject * _argo0 = 0; |
| 9324 | PyObject * _argo1 = 0; |
| 9325 | char *_kwnames[] = { "self","item", NULL }; |
| 9326 | |
| 9327 | self = self; |
| 9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
| 9329 | return NULL; |
| 9330 | if (_argo0) { |
| 9331 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); |
| 9334 | return NULL; |
| 9335 | } |
| 9336 | } |
| 9337 | if (_argo1) { |
| 9338 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { |
| 9340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); |
| 9341 | return NULL; |
| 9342 | } |
| 9343 | } |
| 9344 | { |
| 9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9346 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
| 9347 | |
| 9348 | wxPyEndAllowThreads(__tstate); |
| 9349 | if (PyErr_Occurred()) return NULL; |
| 9350 | } _resultobj = Py_BuildValue("i",_result); |
| 9351 | return _resultobj; |
| 9352 | } |
| 9353 | |
| 9354 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
| 9355 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9356 | PyObject * _resultobj; |
| 9357 | size_t _result; |
| 9358 | wxMenu * _arg0; |
| 9359 | PyObject * _argo0 = 0; |
| 9360 | char *_kwnames[] = { "self", NULL }; |
| 9361 | |
| 9362 | self = self; |
| 9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
| 9364 | return NULL; |
| 9365 | if (_argo0) { |
| 9366 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); |
| 9369 | return NULL; |
| 9370 | } |
| 9371 | } |
| 9372 | { |
| 9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9374 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
| 9375 | |
| 9376 | wxPyEndAllowThreads(__tstate); |
| 9377 | if (PyErr_Occurred()) return NULL; |
| 9378 | } _resultobj = Py_BuildValue("i",_result); |
| 9379 | return _resultobj; |
| 9380 | } |
| 9381 | |
| 9382 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
| 9383 | wxMenuItemList& list = self->GetMenuItems(); |
| 9384 | return wxPy_ConvertList(&list, "wxMenuItem"); |
| 9385 | } |
| 9386 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9387 | PyObject * _resultobj; |
| 9388 | PyObject * _result; |
| 9389 | wxMenu * _arg0; |
| 9390 | PyObject * _argo0 = 0; |
| 9391 | char *_kwnames[] = { "self", NULL }; |
| 9392 | |
| 9393 | self = self; |
| 9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
| 9395 | return NULL; |
| 9396 | if (_argo0) { |
| 9397 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); |
| 9400 | return NULL; |
| 9401 | } |
| 9402 | } |
| 9403 | { |
| 9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9405 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
| 9406 | |
| 9407 | wxPyEndAllowThreads(__tstate); |
| 9408 | if (PyErr_Occurred()) return NULL; |
| 9409 | }{ |
| 9410 | _resultobj = _result; |
| 9411 | } |
| 9412 | return _resultobj; |
| 9413 | } |
| 9414 | |
| 9415 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
| 9416 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9417 | PyObject * _resultobj; |
| 9418 | wxMenu * _arg0; |
| 9419 | wxEvtHandler * _arg1; |
| 9420 | PyObject * _argo0 = 0; |
| 9421 | PyObject * _argo1 = 0; |
| 9422 | char *_kwnames[] = { "self","handler", NULL }; |
| 9423 | |
| 9424 | self = self; |
| 9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
| 9426 | return NULL; |
| 9427 | if (_argo0) { |
| 9428 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); |
| 9431 | return NULL; |
| 9432 | } |
| 9433 | } |
| 9434 | if (_argo1) { |
| 9435 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { |
| 9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); |
| 9438 | return NULL; |
| 9439 | } |
| 9440 | } |
| 9441 | { |
| 9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9443 | wxMenu_SetEventHandler(_arg0,_arg1); |
| 9444 | |
| 9445 | wxPyEndAllowThreads(__tstate); |
| 9446 | if (PyErr_Occurred()) return NULL; |
| 9447 | } Py_INCREF(Py_None); |
| 9448 | _resultobj = Py_None; |
| 9449 | return _resultobj; |
| 9450 | } |
| 9451 | |
| 9452 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
| 9453 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9454 | PyObject * _resultobj; |
| 9455 | wxEvtHandler * _result; |
| 9456 | wxMenu * _arg0; |
| 9457 | PyObject * _argo0 = 0; |
| 9458 | char *_kwnames[] = { "self", NULL }; |
| 9459 | |
| 9460 | self = self; |
| 9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
| 9462 | return NULL; |
| 9463 | if (_argo0) { |
| 9464 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); |
| 9467 | return NULL; |
| 9468 | } |
| 9469 | } |
| 9470 | { |
| 9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9472 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
| 9473 | |
| 9474 | wxPyEndAllowThreads(__tstate); |
| 9475 | if (PyErr_Occurred()) return NULL; |
| 9476 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9477 | return _resultobj; |
| 9478 | } |
| 9479 | |
| 9480 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
| 9481 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9482 | PyObject * _resultobj; |
| 9483 | wxMenu * _arg0; |
| 9484 | wxWindow * _arg1; |
| 9485 | PyObject * _argo0 = 0; |
| 9486 | PyObject * _argo1 = 0; |
| 9487 | char *_kwnames[] = { "self","win", NULL }; |
| 9488 | |
| 9489 | self = self; |
| 9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
| 9491 | return NULL; |
| 9492 | if (_argo0) { |
| 9493 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); |
| 9496 | return NULL; |
| 9497 | } |
| 9498 | } |
| 9499 | if (_argo1) { |
| 9500 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
| 9502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); |
| 9503 | return NULL; |
| 9504 | } |
| 9505 | } |
| 9506 | { |
| 9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9508 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
| 9509 | |
| 9510 | wxPyEndAllowThreads(__tstate); |
| 9511 | if (PyErr_Occurred()) return NULL; |
| 9512 | } Py_INCREF(Py_None); |
| 9513 | _resultobj = Py_None; |
| 9514 | return _resultobj; |
| 9515 | } |
| 9516 | |
| 9517 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
| 9518 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9519 | PyObject * _resultobj; |
| 9520 | wxWindow * _result; |
| 9521 | wxMenu * _arg0; |
| 9522 | PyObject * _argo0 = 0; |
| 9523 | char *_kwnames[] = { "self", NULL }; |
| 9524 | |
| 9525 | self = self; |
| 9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
| 9527 | return NULL; |
| 9528 | if (_argo0) { |
| 9529 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); |
| 9532 | return NULL; |
| 9533 | } |
| 9534 | } |
| 9535 | { |
| 9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9537 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
| 9538 | |
| 9539 | wxPyEndAllowThreads(__tstate); |
| 9540 | if (PyErr_Occurred()) return NULL; |
| 9541 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9542 | return _resultobj; |
| 9543 | } |
| 9544 | |
| 9545 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
| 9546 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9547 | PyObject * _resultobj; |
| 9548 | long _result; |
| 9549 | wxMenu * _arg0; |
| 9550 | PyObject * _argo0 = 0; |
| 9551 | char *_kwnames[] = { "self", NULL }; |
| 9552 | |
| 9553 | self = self; |
| 9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
| 9555 | return NULL; |
| 9556 | if (_argo0) { |
| 9557 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); |
| 9560 | return NULL; |
| 9561 | } |
| 9562 | } |
| 9563 | { |
| 9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9565 | _result = (long )wxMenu_GetStyle(_arg0); |
| 9566 | |
| 9567 | wxPyEndAllowThreads(__tstate); |
| 9568 | if (PyErr_Occurred()) return NULL; |
| 9569 | } _resultobj = Py_BuildValue("l",_result); |
| 9570 | return _resultobj; |
| 9571 | } |
| 9572 | |
| 9573 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
| 9574 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9575 | PyObject * _resultobj; |
| 9576 | bool _result; |
| 9577 | wxMenu * _arg0; |
| 9578 | PyObject * _argo0 = 0; |
| 9579 | char *_kwnames[] = { "self", NULL }; |
| 9580 | |
| 9581 | self = self; |
| 9582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
| 9583 | return NULL; |
| 9584 | if (_argo0) { |
| 9585 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); |
| 9588 | return NULL; |
| 9589 | } |
| 9590 | } |
| 9591 | { |
| 9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9593 | _result = (bool )wxMenu_IsAttached(_arg0); |
| 9594 | |
| 9595 | wxPyEndAllowThreads(__tstate); |
| 9596 | if (PyErr_Occurred()) return NULL; |
| 9597 | } _resultobj = Py_BuildValue("i",_result); |
| 9598 | return _resultobj; |
| 9599 | } |
| 9600 | |
| 9601 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
| 9602 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9603 | PyObject * _resultobj; |
| 9604 | wxMenu * _arg0; |
| 9605 | wxMenu * _arg1; |
| 9606 | PyObject * _argo0 = 0; |
| 9607 | PyObject * _argo1 = 0; |
| 9608 | char *_kwnames[] = { "self","parent", NULL }; |
| 9609 | |
| 9610 | self = self; |
| 9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
| 9612 | return NULL; |
| 9613 | if (_argo0) { |
| 9614 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); |
| 9617 | return NULL; |
| 9618 | } |
| 9619 | } |
| 9620 | if (_argo1) { |
| 9621 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9622 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
| 9623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); |
| 9624 | return NULL; |
| 9625 | } |
| 9626 | } |
| 9627 | { |
| 9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9629 | wxMenu_SetParent(_arg0,_arg1); |
| 9630 | |
| 9631 | wxPyEndAllowThreads(__tstate); |
| 9632 | if (PyErr_Occurred()) return NULL; |
| 9633 | } Py_INCREF(Py_None); |
| 9634 | _resultobj = Py_None; |
| 9635 | return _resultobj; |
| 9636 | } |
| 9637 | |
| 9638 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
| 9639 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9640 | PyObject * _resultobj; |
| 9641 | wxMenu * _result; |
| 9642 | wxMenu * _arg0; |
| 9643 | PyObject * _argo0 = 0; |
| 9644 | char *_kwnames[] = { "self", NULL }; |
| 9645 | |
| 9646 | self = self; |
| 9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
| 9648 | return NULL; |
| 9649 | if (_argo0) { |
| 9650 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); |
| 9653 | return NULL; |
| 9654 | } |
| 9655 | } |
| 9656 | { |
| 9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9658 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
| 9659 | |
| 9660 | wxPyEndAllowThreads(__tstate); |
| 9661 | if (PyErr_Occurred()) return NULL; |
| 9662 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9663 | return _resultobj; |
| 9664 | } |
| 9665 | |
| 9666 | static void *SwigwxMenuBarTowxWindow(void *ptr) { |
| 9667 | wxMenuBar *src; |
| 9668 | wxWindow *dest; |
| 9669 | src = (wxMenuBar *) ptr; |
| 9670 | dest = (wxWindow *) src; |
| 9671 | return (void *) dest; |
| 9672 | } |
| 9673 | |
| 9674 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { |
| 9675 | wxMenuBar *src; |
| 9676 | wxEvtHandler *dest; |
| 9677 | src = (wxMenuBar *) ptr; |
| 9678 | dest = (wxEvtHandler *) src; |
| 9679 | return (void *) dest; |
| 9680 | } |
| 9681 | |
| 9682 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
| 9683 | wxMenuBar *src; |
| 9684 | wxObject *dest; |
| 9685 | src = (wxMenuBar *) ptr; |
| 9686 | dest = (wxObject *) src; |
| 9687 | return (void *) dest; |
| 9688 | } |
| 9689 | |
| 9690 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
| 9691 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9692 | PyObject * _resultobj; |
| 9693 | wxMenuBar * _result; |
| 9694 | long _arg0 = (long ) 0; |
| 9695 | char *_kwnames[] = { "style", NULL }; |
| 9696 | char _ptemp[128]; |
| 9697 | |
| 9698 | self = self; |
| 9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
| 9700 | return NULL; |
| 9701 | { |
| 9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9703 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
| 9704 | |
| 9705 | wxPyEndAllowThreads(__tstate); |
| 9706 | if (PyErr_Occurred()) return NULL; |
| 9707 | } if (_result) { |
| 9708 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); |
| 9709 | _resultobj = Py_BuildValue("s",_ptemp); |
| 9710 | } else { |
| 9711 | Py_INCREF(Py_None); |
| 9712 | _resultobj = Py_None; |
| 9713 | } |
| 9714 | return _resultobj; |
| 9715 | } |
| 9716 | |
| 9717 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
| 9718 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9719 | PyObject * _resultobj; |
| 9720 | bool _result; |
| 9721 | wxMenuBar * _arg0; |
| 9722 | wxMenu * _arg1; |
| 9723 | wxString * _arg2; |
| 9724 | PyObject * _argo0 = 0; |
| 9725 | PyObject * _argo1 = 0; |
| 9726 | PyObject * _obj2 = 0; |
| 9727 | char *_kwnames[] = { "self","menu","title", NULL }; |
| 9728 | |
| 9729 | self = self; |
| 9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
| 9731 | return NULL; |
| 9732 | if (_argo0) { |
| 9733 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
| 9736 | return NULL; |
| 9737 | } |
| 9738 | } |
| 9739 | if (_argo1) { |
| 9740 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 9741 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
| 9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); |
| 9743 | return NULL; |
| 9744 | } |
| 9745 | } |
| 9746 | { |
| 9747 | _arg2 = wxString_in_helper(_obj2); |
| 9748 | if (_arg2 == NULL) |
| 9749 | return NULL; |
| 9750 | } |
| 9751 | { |
| 9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9753 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
| 9754 | |
| 9755 | wxPyEndAllowThreads(__tstate); |
| 9756 | if (PyErr_Occurred()) return NULL; |
| 9757 | } _resultobj = Py_BuildValue("i",_result); |
| 9758 | { |
| 9759 | if (_obj2) |
| 9760 | delete _arg2; |
| 9761 | } |
| 9762 | return _resultobj; |
| 9763 | } |
| 9764 | |
| 9765 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
| 9766 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9767 | PyObject * _resultobj; |
| 9768 | bool _result; |
| 9769 | wxMenuBar * _arg0; |
| 9770 | size_t _arg1; |
| 9771 | wxMenu * _arg2; |
| 9772 | wxString * _arg3; |
| 9773 | PyObject * _argo0 = 0; |
| 9774 | PyObject * _argo2 = 0; |
| 9775 | PyObject * _obj3 = 0; |
| 9776 | char *_kwnames[] = { "self","pos","menu","title", NULL }; |
| 9777 | |
| 9778 | self = self; |
| 9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
| 9780 | return NULL; |
| 9781 | if (_argo0) { |
| 9782 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
| 9785 | return NULL; |
| 9786 | } |
| 9787 | } |
| 9788 | if (_argo2) { |
| 9789 | if (_argo2 == Py_None) { _arg2 = NULL; } |
| 9790 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { |
| 9791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); |
| 9792 | return NULL; |
| 9793 | } |
| 9794 | } |
| 9795 | { |
| 9796 | _arg3 = wxString_in_helper(_obj3); |
| 9797 | if (_arg3 == NULL) |
| 9798 | return NULL; |
| 9799 | } |
| 9800 | { |
| 9801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9802 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
| 9803 | |
| 9804 | wxPyEndAllowThreads(__tstate); |
| 9805 | if (PyErr_Occurred()) return NULL; |
| 9806 | } _resultobj = Py_BuildValue("i",_result); |
| 9807 | { |
| 9808 | if (_obj3) |
| 9809 | delete _arg3; |
| 9810 | } |
| 9811 | return _resultobj; |
| 9812 | } |
| 9813 | |
| 9814 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
| 9815 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9816 | PyObject * _resultobj; |
| 9817 | size_t _result; |
| 9818 | wxMenuBar * _arg0; |
| 9819 | PyObject * _argo0 = 0; |
| 9820 | char *_kwnames[] = { "self", NULL }; |
| 9821 | |
| 9822 | self = self; |
| 9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
| 9824 | return NULL; |
| 9825 | if (_argo0) { |
| 9826 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
| 9829 | return NULL; |
| 9830 | } |
| 9831 | } |
| 9832 | { |
| 9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9834 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
| 9835 | |
| 9836 | wxPyEndAllowThreads(__tstate); |
| 9837 | if (PyErr_Occurred()) return NULL; |
| 9838 | } _resultobj = Py_BuildValue("i",_result); |
| 9839 | return _resultobj; |
| 9840 | } |
| 9841 | |
| 9842 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
| 9843 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9844 | PyObject * _resultobj; |
| 9845 | wxMenu * _result; |
| 9846 | wxMenuBar * _arg0; |
| 9847 | size_t _arg1; |
| 9848 | PyObject * _argo0 = 0; |
| 9849 | char *_kwnames[] = { "self","pos", NULL }; |
| 9850 | |
| 9851 | self = self; |
| 9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
| 9853 | return NULL; |
| 9854 | if (_argo0) { |
| 9855 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
| 9858 | return NULL; |
| 9859 | } |
| 9860 | } |
| 9861 | { |
| 9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9863 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
| 9864 | |
| 9865 | wxPyEndAllowThreads(__tstate); |
| 9866 | if (PyErr_Occurred()) return NULL; |
| 9867 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9868 | return _resultobj; |
| 9869 | } |
| 9870 | |
| 9871 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
| 9872 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9873 | PyObject * _resultobj; |
| 9874 | wxMenu * _result; |
| 9875 | wxMenuBar * _arg0; |
| 9876 | size_t _arg1; |
| 9877 | wxMenu * _arg2; |
| 9878 | wxString * _arg3; |
| 9879 | PyObject * _argo0 = 0; |
| 9880 | PyObject * _argo2 = 0; |
| 9881 | PyObject * _obj3 = 0; |
| 9882 | char *_kwnames[] = { "self","pos","menu","title", NULL }; |
| 9883 | |
| 9884 | self = self; |
| 9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
| 9886 | return NULL; |
| 9887 | if (_argo0) { |
| 9888 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); |
| 9891 | return NULL; |
| 9892 | } |
| 9893 | } |
| 9894 | if (_argo2) { |
| 9895 | if (_argo2 == Py_None) { _arg2 = NULL; } |
| 9896 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { |
| 9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); |
| 9898 | return NULL; |
| 9899 | } |
| 9900 | } |
| 9901 | { |
| 9902 | _arg3 = wxString_in_helper(_obj3); |
| 9903 | if (_arg3 == NULL) |
| 9904 | return NULL; |
| 9905 | } |
| 9906 | { |
| 9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9908 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
| 9909 | |
| 9910 | wxPyEndAllowThreads(__tstate); |
| 9911 | if (PyErr_Occurred()) return NULL; |
| 9912 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9913 | { |
| 9914 | if (_obj3) |
| 9915 | delete _arg3; |
| 9916 | } |
| 9917 | return _resultobj; |
| 9918 | } |
| 9919 | |
| 9920 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
| 9921 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9922 | PyObject * _resultobj; |
| 9923 | wxMenu * _result; |
| 9924 | wxMenuBar * _arg0; |
| 9925 | size_t _arg1; |
| 9926 | PyObject * _argo0 = 0; |
| 9927 | char *_kwnames[] = { "self","pos", NULL }; |
| 9928 | |
| 9929 | self = self; |
| 9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) |
| 9931 | return NULL; |
| 9932 | if (_argo0) { |
| 9933 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); |
| 9936 | return NULL; |
| 9937 | } |
| 9938 | } |
| 9939 | { |
| 9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9941 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
| 9942 | |
| 9943 | wxPyEndAllowThreads(__tstate); |
| 9944 | if (PyErr_Occurred()) return NULL; |
| 9945 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 9946 | return _resultobj; |
| 9947 | } |
| 9948 | |
| 9949 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
| 9950 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9951 | PyObject * _resultobj; |
| 9952 | wxMenuBar * _arg0; |
| 9953 | size_t _arg1; |
| 9954 | bool _arg2; |
| 9955 | PyObject * _argo0 = 0; |
| 9956 | int tempbool2; |
| 9957 | char *_kwnames[] = { "self","pos","enable", NULL }; |
| 9958 | |
| 9959 | self = self; |
| 9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) |
| 9961 | return NULL; |
| 9962 | if (_argo0) { |
| 9963 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); |
| 9966 | return NULL; |
| 9967 | } |
| 9968 | } |
| 9969 | _arg2 = (bool ) tempbool2; |
| 9970 | { |
| 9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 9972 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
| 9973 | |
| 9974 | wxPyEndAllowThreads(__tstate); |
| 9975 | if (PyErr_Occurred()) return NULL; |
| 9976 | } Py_INCREF(Py_None); |
| 9977 | _resultobj = Py_None; |
| 9978 | return _resultobj; |
| 9979 | } |
| 9980 | |
| 9981 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) |
| 9982 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 9983 | PyObject * _resultobj; |
| 9984 | wxMenuBar * _arg0; |
| 9985 | size_t _arg1; |
| 9986 | wxString * _arg2; |
| 9987 | PyObject * _argo0 = 0; |
| 9988 | PyObject * _obj2 = 0; |
| 9989 | char *_kwnames[] = { "self","pos","label", NULL }; |
| 9990 | |
| 9991 | self = self; |
| 9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
| 9993 | return NULL; |
| 9994 | if (_argo0) { |
| 9995 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 9996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 9997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); |
| 9998 | return NULL; |
| 9999 | } |
| 10000 | } |
| 10001 | { |
| 10002 | _arg2 = wxString_in_helper(_obj2); |
| 10003 | if (_arg2 == NULL) |
| 10004 | return NULL; |
| 10005 | } |
| 10006 | { |
| 10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10008 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
| 10009 | |
| 10010 | wxPyEndAllowThreads(__tstate); |
| 10011 | if (PyErr_Occurred()) return NULL; |
| 10012 | } Py_INCREF(Py_None); |
| 10013 | _resultobj = Py_None; |
| 10014 | { |
| 10015 | if (_obj2) |
| 10016 | delete _arg2; |
| 10017 | } |
| 10018 | return _resultobj; |
| 10019 | } |
| 10020 | |
| 10021 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) |
| 10022 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10023 | PyObject * _resultobj; |
| 10024 | wxString * _result; |
| 10025 | wxMenuBar * _arg0; |
| 10026 | size_t _arg1; |
| 10027 | PyObject * _argo0 = 0; |
| 10028 | char *_kwnames[] = { "self","pos", NULL }; |
| 10029 | |
| 10030 | self = self; |
| 10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) |
| 10032 | return NULL; |
| 10033 | if (_argo0) { |
| 10034 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); |
| 10037 | return NULL; |
| 10038 | } |
| 10039 | } |
| 10040 | { |
| 10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10042 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
| 10043 | |
| 10044 | wxPyEndAllowThreads(__tstate); |
| 10045 | if (PyErr_Occurred()) return NULL; |
| 10046 | }{ |
| 10047 | #if wxUSE_UNICODE |
| 10048 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 10049 | #else |
| 10050 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 10051 | #endif |
| 10052 | } |
| 10053 | { |
| 10054 | delete _result; |
| 10055 | } |
| 10056 | return _resultobj; |
| 10057 | } |
| 10058 | |
| 10059 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
| 10060 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10061 | PyObject * _resultobj; |
| 10062 | int _result; |
| 10063 | wxMenuBar * _arg0; |
| 10064 | wxString * _arg1; |
| 10065 | PyObject * _argo0 = 0; |
| 10066 | PyObject * _obj1 = 0; |
| 10067 | char *_kwnames[] = { "self","title", NULL }; |
| 10068 | |
| 10069 | self = self; |
| 10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) |
| 10071 | return NULL; |
| 10072 | if (_argo0) { |
| 10073 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); |
| 10076 | return NULL; |
| 10077 | } |
| 10078 | } |
| 10079 | { |
| 10080 | _arg1 = wxString_in_helper(_obj1); |
| 10081 | if (_arg1 == NULL) |
| 10082 | return NULL; |
| 10083 | } |
| 10084 | { |
| 10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10086 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
| 10087 | |
| 10088 | wxPyEndAllowThreads(__tstate); |
| 10089 | if (PyErr_Occurred()) return NULL; |
| 10090 | } _resultobj = Py_BuildValue("i",_result); |
| 10091 | { |
| 10092 | if (_obj1) |
| 10093 | delete _arg1; |
| 10094 | } |
| 10095 | return _resultobj; |
| 10096 | } |
| 10097 | |
| 10098 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
| 10099 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10100 | PyObject * _resultobj; |
| 10101 | int _result; |
| 10102 | wxMenuBar * _arg0; |
| 10103 | wxString * _arg1; |
| 10104 | wxString * _arg2; |
| 10105 | PyObject * _argo0 = 0; |
| 10106 | PyObject * _obj1 = 0; |
| 10107 | PyObject * _obj2 = 0; |
| 10108 | char *_kwnames[] = { "self","menuString","itemString", NULL }; |
| 10109 | |
| 10110 | self = self; |
| 10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) |
| 10112 | return NULL; |
| 10113 | if (_argo0) { |
| 10114 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); |
| 10117 | return NULL; |
| 10118 | } |
| 10119 | } |
| 10120 | { |
| 10121 | _arg1 = wxString_in_helper(_obj1); |
| 10122 | if (_arg1 == NULL) |
| 10123 | return NULL; |
| 10124 | } |
| 10125 | { |
| 10126 | _arg2 = wxString_in_helper(_obj2); |
| 10127 | if (_arg2 == NULL) |
| 10128 | return NULL; |
| 10129 | } |
| 10130 | { |
| 10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10132 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
| 10133 | |
| 10134 | wxPyEndAllowThreads(__tstate); |
| 10135 | if (PyErr_Occurred()) return NULL; |
| 10136 | } _resultobj = Py_BuildValue("i",_result); |
| 10137 | { |
| 10138 | if (_obj1) |
| 10139 | delete _arg1; |
| 10140 | } |
| 10141 | { |
| 10142 | if (_obj2) |
| 10143 | delete _arg2; |
| 10144 | } |
| 10145 | return _resultobj; |
| 10146 | } |
| 10147 | |
| 10148 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
| 10149 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10150 | PyObject * _resultobj; |
| 10151 | wxMenuItem * _result; |
| 10152 | wxMenuBar * _arg0; |
| 10153 | int _arg1; |
| 10154 | PyObject * _argo0 = 0; |
| 10155 | char *_kwnames[] = { "self","id", NULL }; |
| 10156 | |
| 10157 | self = self; |
| 10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) |
| 10159 | return NULL; |
| 10160 | if (_argo0) { |
| 10161 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); |
| 10164 | return NULL; |
| 10165 | } |
| 10166 | } |
| 10167 | { |
| 10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10169 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
| 10170 | |
| 10171 | wxPyEndAllowThreads(__tstate); |
| 10172 | if (PyErr_Occurred()) return NULL; |
| 10173 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 10174 | return _resultobj; |
| 10175 | } |
| 10176 | |
| 10177 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
| 10178 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10179 | PyObject * _resultobj; |
| 10180 | wxMenuBar * _arg0; |
| 10181 | int _arg1; |
| 10182 | bool _arg2; |
| 10183 | PyObject * _argo0 = 0; |
| 10184 | int tempbool2; |
| 10185 | char *_kwnames[] = { "self","id","enable", NULL }; |
| 10186 | |
| 10187 | self = self; |
| 10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
| 10189 | return NULL; |
| 10190 | if (_argo0) { |
| 10191 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); |
| 10194 | return NULL; |
| 10195 | } |
| 10196 | } |
| 10197 | _arg2 = (bool ) tempbool2; |
| 10198 | { |
| 10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10200 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
| 10201 | |
| 10202 | wxPyEndAllowThreads(__tstate); |
| 10203 | if (PyErr_Occurred()) return NULL; |
| 10204 | } Py_INCREF(Py_None); |
| 10205 | _resultobj = Py_None; |
| 10206 | return _resultobj; |
| 10207 | } |
| 10208 | |
| 10209 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) |
| 10210 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10211 | PyObject * _resultobj; |
| 10212 | wxMenuBar * _arg0; |
| 10213 | int _arg1; |
| 10214 | bool _arg2; |
| 10215 | PyObject * _argo0 = 0; |
| 10216 | int tempbool2; |
| 10217 | char *_kwnames[] = { "self","id","check", NULL }; |
| 10218 | |
| 10219 | self = self; |
| 10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
| 10221 | return NULL; |
| 10222 | if (_argo0) { |
| 10223 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); |
| 10226 | return NULL; |
| 10227 | } |
| 10228 | } |
| 10229 | _arg2 = (bool ) tempbool2; |
| 10230 | { |
| 10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10232 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
| 10233 | |
| 10234 | wxPyEndAllowThreads(__tstate); |
| 10235 | if (PyErr_Occurred()) return NULL; |
| 10236 | } Py_INCREF(Py_None); |
| 10237 | _resultobj = Py_None; |
| 10238 | return _resultobj; |
| 10239 | } |
| 10240 | |
| 10241 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
| 10242 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10243 | PyObject * _resultobj; |
| 10244 | bool _result; |
| 10245 | wxMenuBar * _arg0; |
| 10246 | int _arg1; |
| 10247 | PyObject * _argo0 = 0; |
| 10248 | char *_kwnames[] = { "self","id", NULL }; |
| 10249 | |
| 10250 | self = self; |
| 10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
| 10252 | return NULL; |
| 10253 | if (_argo0) { |
| 10254 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); |
| 10257 | return NULL; |
| 10258 | } |
| 10259 | } |
| 10260 | { |
| 10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10262 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
| 10263 | |
| 10264 | wxPyEndAllowThreads(__tstate); |
| 10265 | if (PyErr_Occurred()) return NULL; |
| 10266 | } _resultobj = Py_BuildValue("i",_result); |
| 10267 | return _resultobj; |
| 10268 | } |
| 10269 | |
| 10270 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
| 10271 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10272 | PyObject * _resultobj; |
| 10273 | bool _result; |
| 10274 | wxMenuBar * _arg0; |
| 10275 | int _arg1; |
| 10276 | PyObject * _argo0 = 0; |
| 10277 | char *_kwnames[] = { "self","id", NULL }; |
| 10278 | |
| 10279 | self = self; |
| 10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
| 10281 | return NULL; |
| 10282 | if (_argo0) { |
| 10283 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); |
| 10286 | return NULL; |
| 10287 | } |
| 10288 | } |
| 10289 | { |
| 10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10291 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
| 10292 | |
| 10293 | wxPyEndAllowThreads(__tstate); |
| 10294 | if (PyErr_Occurred()) return NULL; |
| 10295 | } _resultobj = Py_BuildValue("i",_result); |
| 10296 | return _resultobj; |
| 10297 | } |
| 10298 | |
| 10299 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
| 10300 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10301 | PyObject * _resultobj; |
| 10302 | wxMenuBar * _arg0; |
| 10303 | int _arg1; |
| 10304 | wxString * _arg2; |
| 10305 | PyObject * _argo0 = 0; |
| 10306 | PyObject * _obj2 = 0; |
| 10307 | char *_kwnames[] = { "self","id","label", NULL }; |
| 10308 | |
| 10309 | self = self; |
| 10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
| 10311 | return NULL; |
| 10312 | if (_argo0) { |
| 10313 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); |
| 10316 | return NULL; |
| 10317 | } |
| 10318 | } |
| 10319 | { |
| 10320 | _arg2 = wxString_in_helper(_obj2); |
| 10321 | if (_arg2 == NULL) |
| 10322 | return NULL; |
| 10323 | } |
| 10324 | { |
| 10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10326 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
| 10327 | |
| 10328 | wxPyEndAllowThreads(__tstate); |
| 10329 | if (PyErr_Occurred()) return NULL; |
| 10330 | } Py_INCREF(Py_None); |
| 10331 | _resultobj = Py_None; |
| 10332 | { |
| 10333 | if (_obj2) |
| 10334 | delete _arg2; |
| 10335 | } |
| 10336 | return _resultobj; |
| 10337 | } |
| 10338 | |
| 10339 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
| 10340 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10341 | PyObject * _resultobj; |
| 10342 | wxString * _result; |
| 10343 | wxMenuBar * _arg0; |
| 10344 | int _arg1; |
| 10345 | PyObject * _argo0 = 0; |
| 10346 | char *_kwnames[] = { "self","id", NULL }; |
| 10347 | |
| 10348 | self = self; |
| 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
| 10350 | return NULL; |
| 10351 | if (_argo0) { |
| 10352 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); |
| 10355 | return NULL; |
| 10356 | } |
| 10357 | } |
| 10358 | { |
| 10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10360 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
| 10361 | |
| 10362 | wxPyEndAllowThreads(__tstate); |
| 10363 | if (PyErr_Occurred()) return NULL; |
| 10364 | }{ |
| 10365 | #if wxUSE_UNICODE |
| 10366 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 10367 | #else |
| 10368 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 10369 | #endif |
| 10370 | } |
| 10371 | { |
| 10372 | delete _result; |
| 10373 | } |
| 10374 | return _resultobj; |
| 10375 | } |
| 10376 | |
| 10377 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) |
| 10378 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10379 | PyObject * _resultobj; |
| 10380 | wxMenuBar * _arg0; |
| 10381 | int _arg1; |
| 10382 | wxString * _arg2; |
| 10383 | PyObject * _argo0 = 0; |
| 10384 | PyObject * _obj2 = 0; |
| 10385 | char *_kwnames[] = { "self","id","helpString", NULL }; |
| 10386 | |
| 10387 | self = self; |
| 10388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
| 10389 | return NULL; |
| 10390 | if (_argo0) { |
| 10391 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); |
| 10394 | return NULL; |
| 10395 | } |
| 10396 | } |
| 10397 | { |
| 10398 | _arg2 = wxString_in_helper(_obj2); |
| 10399 | if (_arg2 == NULL) |
| 10400 | return NULL; |
| 10401 | } |
| 10402 | { |
| 10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10404 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
| 10405 | |
| 10406 | wxPyEndAllowThreads(__tstate); |
| 10407 | if (PyErr_Occurred()) return NULL; |
| 10408 | } Py_INCREF(Py_None); |
| 10409 | _resultobj = Py_None; |
| 10410 | { |
| 10411 | if (_obj2) |
| 10412 | delete _arg2; |
| 10413 | } |
| 10414 | return _resultobj; |
| 10415 | } |
| 10416 | |
| 10417 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
| 10418 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10419 | PyObject * _resultobj; |
| 10420 | wxString * _result; |
| 10421 | wxMenuBar * _arg0; |
| 10422 | int _arg1; |
| 10423 | PyObject * _argo0 = 0; |
| 10424 | char *_kwnames[] = { "self","id", NULL }; |
| 10425 | |
| 10426 | self = self; |
| 10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) |
| 10428 | return NULL; |
| 10429 | if (_argo0) { |
| 10430 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
| 10432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); |
| 10433 | return NULL; |
| 10434 | } |
| 10435 | } |
| 10436 | { |
| 10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10438 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
| 10439 | |
| 10440 | wxPyEndAllowThreads(__tstate); |
| 10441 | if (PyErr_Occurred()) return NULL; |
| 10442 | }{ |
| 10443 | #if wxUSE_UNICODE |
| 10444 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 10445 | #else |
| 10446 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 10447 | #endif |
| 10448 | } |
| 10449 | { |
| 10450 | delete _result; |
| 10451 | } |
| 10452 | return _resultobj; |
| 10453 | } |
| 10454 | |
| 10455 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
| 10456 | wxMenuItem *src; |
| 10457 | wxObject *dest; |
| 10458 | src = (wxMenuItem *) ptr; |
| 10459 | dest = (wxObject *) src; |
| 10460 | return (void *) dest; |
| 10461 | } |
| 10462 | |
| 10463 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
| 10464 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10465 | PyObject * _resultobj; |
| 10466 | wxMenuItem * _result; |
| 10467 | wxMenu * _arg0 = (wxMenu *) NULL; |
| 10468 | int _arg1 = (int ) wxID_SEPARATOR; |
| 10469 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
| 10470 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
| 10471 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
| 10472 | wxMenu * _arg5 = (wxMenu *) NULL; |
| 10473 | PyObject * _argo0 = 0; |
| 10474 | PyObject * _obj2 = 0; |
| 10475 | PyObject * _obj3 = 0; |
| 10476 | PyObject * _argo5 = 0; |
| 10477 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
| 10478 | char _ptemp[128]; |
| 10479 | |
| 10480 | self = self; |
| 10481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
| 10482 | return NULL; |
| 10483 | if (_argo0) { |
| 10484 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
| 10486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); |
| 10487 | return NULL; |
| 10488 | } |
| 10489 | } |
| 10490 | if (_obj2) |
| 10491 | { |
| 10492 | _arg2 = wxString_in_helper(_obj2); |
| 10493 | if (_arg2 == NULL) |
| 10494 | return NULL; |
| 10495 | } |
| 10496 | if (_obj3) |
| 10497 | { |
| 10498 | _arg3 = wxString_in_helper(_obj3); |
| 10499 | if (_arg3 == NULL) |
| 10500 | return NULL; |
| 10501 | } |
| 10502 | if (_argo5) { |
| 10503 | if (_argo5 == Py_None) { _arg5 = NULL; } |
| 10504 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { |
| 10505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); |
| 10506 | return NULL; |
| 10507 | } |
| 10508 | } |
| 10509 | { |
| 10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10511 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
| 10512 | |
| 10513 | wxPyEndAllowThreads(__tstate); |
| 10514 | if (PyErr_Occurred()) return NULL; |
| 10515 | } if (_result) { |
| 10516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); |
| 10517 | _resultobj = Py_BuildValue("s",_ptemp); |
| 10518 | } else { |
| 10519 | Py_INCREF(Py_None); |
| 10520 | _resultobj = Py_None; |
| 10521 | } |
| 10522 | { |
| 10523 | if (_obj2) |
| 10524 | delete _arg2; |
| 10525 | } |
| 10526 | { |
| 10527 | if (_obj3) |
| 10528 | delete _arg3; |
| 10529 | } |
| 10530 | return _resultobj; |
| 10531 | } |
| 10532 | |
| 10533 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
| 10534 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10535 | PyObject * _resultobj; |
| 10536 | wxMenu * _result; |
| 10537 | wxMenuItem * _arg0; |
| 10538 | PyObject * _argo0 = 0; |
| 10539 | char *_kwnames[] = { "self", NULL }; |
| 10540 | |
| 10541 | self = self; |
| 10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
| 10543 | return NULL; |
| 10544 | if (_argo0) { |
| 10545 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
| 10548 | return NULL; |
| 10549 | } |
| 10550 | } |
| 10551 | { |
| 10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10553 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
| 10554 | |
| 10555 | wxPyEndAllowThreads(__tstate); |
| 10556 | if (PyErr_Occurred()) return NULL; |
| 10557 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 10558 | return _resultobj; |
| 10559 | } |
| 10560 | |
| 10561 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
| 10562 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10563 | PyObject * _resultobj; |
| 10564 | wxMenuItem * _arg0; |
| 10565 | int _arg1; |
| 10566 | PyObject * _argo0 = 0; |
| 10567 | char *_kwnames[] = { "self","id", NULL }; |
| 10568 | |
| 10569 | self = self; |
| 10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
| 10571 | return NULL; |
| 10572 | if (_argo0) { |
| 10573 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
| 10576 | return NULL; |
| 10577 | } |
| 10578 | } |
| 10579 | { |
| 10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10581 | wxMenuItem_SetId(_arg0,_arg1); |
| 10582 | |
| 10583 | wxPyEndAllowThreads(__tstate); |
| 10584 | if (PyErr_Occurred()) return NULL; |
| 10585 | } Py_INCREF(Py_None); |
| 10586 | _resultobj = Py_None; |
| 10587 | return _resultobj; |
| 10588 | } |
| 10589 | |
| 10590 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
| 10591 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10592 | PyObject * _resultobj; |
| 10593 | int _result; |
| 10594 | wxMenuItem * _arg0; |
| 10595 | PyObject * _argo0 = 0; |
| 10596 | char *_kwnames[] = { "self", NULL }; |
| 10597 | |
| 10598 | self = self; |
| 10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
| 10600 | return NULL; |
| 10601 | if (_argo0) { |
| 10602 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
| 10605 | return NULL; |
| 10606 | } |
| 10607 | } |
| 10608 | { |
| 10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10610 | _result = (int )wxMenuItem_GetId(_arg0); |
| 10611 | |
| 10612 | wxPyEndAllowThreads(__tstate); |
| 10613 | if (PyErr_Occurred()) return NULL; |
| 10614 | } _resultobj = Py_BuildValue("i",_result); |
| 10615 | return _resultobj; |
| 10616 | } |
| 10617 | |
| 10618 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
| 10619 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10620 | PyObject * _resultobj; |
| 10621 | bool _result; |
| 10622 | wxMenuItem * _arg0; |
| 10623 | PyObject * _argo0 = 0; |
| 10624 | char *_kwnames[] = { "self", NULL }; |
| 10625 | |
| 10626 | self = self; |
| 10627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
| 10628 | return NULL; |
| 10629 | if (_argo0) { |
| 10630 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
| 10633 | return NULL; |
| 10634 | } |
| 10635 | } |
| 10636 | { |
| 10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10638 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
| 10639 | |
| 10640 | wxPyEndAllowThreads(__tstate); |
| 10641 | if (PyErr_Occurred()) return NULL; |
| 10642 | } _resultobj = Py_BuildValue("i",_result); |
| 10643 | return _resultobj; |
| 10644 | } |
| 10645 | |
| 10646 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
| 10647 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10648 | PyObject * _resultobj; |
| 10649 | wxMenuItem * _arg0; |
| 10650 | wxString * _arg1; |
| 10651 | PyObject * _argo0 = 0; |
| 10652 | PyObject * _obj1 = 0; |
| 10653 | char *_kwnames[] = { "self","str", NULL }; |
| 10654 | |
| 10655 | self = self; |
| 10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
| 10657 | return NULL; |
| 10658 | if (_argo0) { |
| 10659 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
| 10662 | return NULL; |
| 10663 | } |
| 10664 | } |
| 10665 | { |
| 10666 | _arg1 = wxString_in_helper(_obj1); |
| 10667 | if (_arg1 == NULL) |
| 10668 | return NULL; |
| 10669 | } |
| 10670 | { |
| 10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10672 | wxMenuItem_SetText(_arg0,*_arg1); |
| 10673 | |
| 10674 | wxPyEndAllowThreads(__tstate); |
| 10675 | if (PyErr_Occurred()) return NULL; |
| 10676 | } Py_INCREF(Py_None); |
| 10677 | _resultobj = Py_None; |
| 10678 | { |
| 10679 | if (_obj1) |
| 10680 | delete _arg1; |
| 10681 | } |
| 10682 | return _resultobj; |
| 10683 | } |
| 10684 | |
| 10685 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
| 10686 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10687 | PyObject * _resultobj; |
| 10688 | wxString * _result; |
| 10689 | wxMenuItem * _arg0; |
| 10690 | PyObject * _argo0 = 0; |
| 10691 | char *_kwnames[] = { "self", NULL }; |
| 10692 | |
| 10693 | self = self; |
| 10694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
| 10695 | return NULL; |
| 10696 | if (_argo0) { |
| 10697 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
| 10700 | return NULL; |
| 10701 | } |
| 10702 | } |
| 10703 | { |
| 10704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10705 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
| 10706 | |
| 10707 | wxPyEndAllowThreads(__tstate); |
| 10708 | if (PyErr_Occurred()) return NULL; |
| 10709 | }{ |
| 10710 | #if wxUSE_UNICODE |
| 10711 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 10712 | #else |
| 10713 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 10714 | #endif |
| 10715 | } |
| 10716 | { |
| 10717 | delete _result; |
| 10718 | } |
| 10719 | return _resultobj; |
| 10720 | } |
| 10721 | |
| 10722 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
| 10723 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10724 | PyObject * _resultobj; |
| 10725 | wxString * _result; |
| 10726 | wxMenuItem * _arg0; |
| 10727 | PyObject * _argo0 = 0; |
| 10728 | char *_kwnames[] = { "self", NULL }; |
| 10729 | |
| 10730 | self = self; |
| 10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
| 10732 | return NULL; |
| 10733 | if (_argo0) { |
| 10734 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
| 10737 | return NULL; |
| 10738 | } |
| 10739 | } |
| 10740 | { |
| 10741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10742 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
| 10743 | _result = (wxString *) &_result_ref; |
| 10744 | |
| 10745 | wxPyEndAllowThreads(__tstate); |
| 10746 | if (PyErr_Occurred()) return NULL; |
| 10747 | }{ |
| 10748 | #if wxUSE_UNICODE |
| 10749 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 10750 | #else |
| 10751 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 10752 | #endif |
| 10753 | } |
| 10754 | return _resultobj; |
| 10755 | } |
| 10756 | |
| 10757 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
| 10758 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10759 | PyObject * _resultobj; |
| 10760 | wxItemKind _result; |
| 10761 | wxMenuItem * _arg0; |
| 10762 | PyObject * _argo0 = 0; |
| 10763 | char *_kwnames[] = { "self", NULL }; |
| 10764 | |
| 10765 | self = self; |
| 10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) |
| 10767 | return NULL; |
| 10768 | if (_argo0) { |
| 10769 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); |
| 10772 | return NULL; |
| 10773 | } |
| 10774 | } |
| 10775 | { |
| 10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10777 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); |
| 10778 | |
| 10779 | wxPyEndAllowThreads(__tstate); |
| 10780 | if (PyErr_Occurred()) return NULL; |
| 10781 | } _resultobj = Py_BuildValue("i",_result); |
| 10782 | return _resultobj; |
| 10783 | } |
| 10784 | |
| 10785 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
| 10786 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10787 | PyObject * _resultobj; |
| 10788 | wxMenuItem * _arg0; |
| 10789 | bool _arg1; |
| 10790 | PyObject * _argo0 = 0; |
| 10791 | int tempbool1; |
| 10792 | char *_kwnames[] = { "self","checkable", NULL }; |
| 10793 | |
| 10794 | self = self; |
| 10795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
| 10796 | return NULL; |
| 10797 | if (_argo0) { |
| 10798 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
| 10801 | return NULL; |
| 10802 | } |
| 10803 | } |
| 10804 | _arg1 = (bool ) tempbool1; |
| 10805 | { |
| 10806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10807 | wxMenuItem_SetCheckable(_arg0,_arg1); |
| 10808 | |
| 10809 | wxPyEndAllowThreads(__tstate); |
| 10810 | if (PyErr_Occurred()) return NULL; |
| 10811 | } Py_INCREF(Py_None); |
| 10812 | _resultobj = Py_None; |
| 10813 | return _resultobj; |
| 10814 | } |
| 10815 | |
| 10816 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
| 10817 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10818 | PyObject * _resultobj; |
| 10819 | bool _result; |
| 10820 | wxMenuItem * _arg0; |
| 10821 | PyObject * _argo0 = 0; |
| 10822 | char *_kwnames[] = { "self", NULL }; |
| 10823 | |
| 10824 | self = self; |
| 10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
| 10826 | return NULL; |
| 10827 | if (_argo0) { |
| 10828 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
| 10831 | return NULL; |
| 10832 | } |
| 10833 | } |
| 10834 | { |
| 10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10836 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
| 10837 | |
| 10838 | wxPyEndAllowThreads(__tstate); |
| 10839 | if (PyErr_Occurred()) return NULL; |
| 10840 | } _resultobj = Py_BuildValue("i",_result); |
| 10841 | return _resultobj; |
| 10842 | } |
| 10843 | |
| 10844 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
| 10845 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10846 | PyObject * _resultobj; |
| 10847 | bool _result; |
| 10848 | wxMenuItem * _arg0; |
| 10849 | PyObject * _argo0 = 0; |
| 10850 | char *_kwnames[] = { "self", NULL }; |
| 10851 | |
| 10852 | self = self; |
| 10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
| 10854 | return NULL; |
| 10855 | if (_argo0) { |
| 10856 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
| 10859 | return NULL; |
| 10860 | } |
| 10861 | } |
| 10862 | { |
| 10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10864 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
| 10865 | |
| 10866 | wxPyEndAllowThreads(__tstate); |
| 10867 | if (PyErr_Occurred()) return NULL; |
| 10868 | } _resultobj = Py_BuildValue("i",_result); |
| 10869 | return _resultobj; |
| 10870 | } |
| 10871 | |
| 10872 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
| 10873 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10874 | PyObject * _resultobj; |
| 10875 | wxMenuItem * _arg0; |
| 10876 | wxMenu * _arg1; |
| 10877 | PyObject * _argo0 = 0; |
| 10878 | PyObject * _argo1 = 0; |
| 10879 | char *_kwnames[] = { "self","menu", NULL }; |
| 10880 | |
| 10881 | self = self; |
| 10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
| 10883 | return NULL; |
| 10884 | if (_argo0) { |
| 10885 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
| 10888 | return NULL; |
| 10889 | } |
| 10890 | } |
| 10891 | if (_argo1) { |
| 10892 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 10893 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
| 10894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); |
| 10895 | return NULL; |
| 10896 | } |
| 10897 | } |
| 10898 | { |
| 10899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10900 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
| 10901 | |
| 10902 | wxPyEndAllowThreads(__tstate); |
| 10903 | if (PyErr_Occurred()) return NULL; |
| 10904 | } Py_INCREF(Py_None); |
| 10905 | _resultobj = Py_None; |
| 10906 | return _resultobj; |
| 10907 | } |
| 10908 | |
| 10909 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
| 10910 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10911 | PyObject * _resultobj; |
| 10912 | wxMenu * _result; |
| 10913 | wxMenuItem * _arg0; |
| 10914 | PyObject * _argo0 = 0; |
| 10915 | char *_kwnames[] = { "self", NULL }; |
| 10916 | |
| 10917 | self = self; |
| 10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
| 10919 | return NULL; |
| 10920 | if (_argo0) { |
| 10921 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
| 10924 | return NULL; |
| 10925 | } |
| 10926 | } |
| 10927 | { |
| 10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10929 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
| 10930 | |
| 10931 | wxPyEndAllowThreads(__tstate); |
| 10932 | if (PyErr_Occurred()) return NULL; |
| 10933 | }{ _resultobj = wxPyMake_wxObject(_result); } |
| 10934 | return _resultobj; |
| 10935 | } |
| 10936 | |
| 10937 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
| 10938 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10939 | PyObject * _resultobj; |
| 10940 | wxMenuItem * _arg0; |
| 10941 | bool _arg1 = (bool ) TRUE; |
| 10942 | PyObject * _argo0 = 0; |
| 10943 | int tempbool1 = (int) TRUE; |
| 10944 | char *_kwnames[] = { "self","enable", NULL }; |
| 10945 | |
| 10946 | self = self; |
| 10947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) |
| 10948 | return NULL; |
| 10949 | if (_argo0) { |
| 10950 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); |
| 10953 | return NULL; |
| 10954 | } |
| 10955 | } |
| 10956 | _arg1 = (bool ) tempbool1; |
| 10957 | { |
| 10958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10959 | wxMenuItem_Enable(_arg0,_arg1); |
| 10960 | |
| 10961 | wxPyEndAllowThreads(__tstate); |
| 10962 | if (PyErr_Occurred()) return NULL; |
| 10963 | } Py_INCREF(Py_None); |
| 10964 | _resultobj = Py_None; |
| 10965 | return _resultobj; |
| 10966 | } |
| 10967 | |
| 10968 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
| 10969 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10970 | PyObject * _resultobj; |
| 10971 | bool _result; |
| 10972 | wxMenuItem * _arg0; |
| 10973 | PyObject * _argo0 = 0; |
| 10974 | char *_kwnames[] = { "self", NULL }; |
| 10975 | |
| 10976 | self = self; |
| 10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
| 10978 | return NULL; |
| 10979 | if (_argo0) { |
| 10980 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 10981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 10982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
| 10983 | return NULL; |
| 10984 | } |
| 10985 | } |
| 10986 | { |
| 10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 10988 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
| 10989 | |
| 10990 | wxPyEndAllowThreads(__tstate); |
| 10991 | if (PyErr_Occurred()) return NULL; |
| 10992 | } _resultobj = Py_BuildValue("i",_result); |
| 10993 | return _resultobj; |
| 10994 | } |
| 10995 | |
| 10996 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
| 10997 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 10998 | PyObject * _resultobj; |
| 10999 | wxMenuItem * _arg0; |
| 11000 | bool _arg1 = (bool ) TRUE; |
| 11001 | PyObject * _argo0 = 0; |
| 11002 | int tempbool1 = (int) TRUE; |
| 11003 | char *_kwnames[] = { "self","check", NULL }; |
| 11004 | |
| 11005 | self = self; |
| 11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
| 11007 | return NULL; |
| 11008 | if (_argo0) { |
| 11009 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
| 11012 | return NULL; |
| 11013 | } |
| 11014 | } |
| 11015 | _arg1 = (bool ) tempbool1; |
| 11016 | { |
| 11017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11018 | wxMenuItem_Check(_arg0,_arg1); |
| 11019 | |
| 11020 | wxPyEndAllowThreads(__tstate); |
| 11021 | if (PyErr_Occurred()) return NULL; |
| 11022 | } Py_INCREF(Py_None); |
| 11023 | _resultobj = Py_None; |
| 11024 | return _resultobj; |
| 11025 | } |
| 11026 | |
| 11027 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
| 11028 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11029 | PyObject * _resultobj; |
| 11030 | bool _result; |
| 11031 | wxMenuItem * _arg0; |
| 11032 | PyObject * _argo0 = 0; |
| 11033 | char *_kwnames[] = { "self", NULL }; |
| 11034 | |
| 11035 | self = self; |
| 11036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
| 11037 | return NULL; |
| 11038 | if (_argo0) { |
| 11039 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
| 11042 | return NULL; |
| 11043 | } |
| 11044 | } |
| 11045 | { |
| 11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11047 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
| 11048 | |
| 11049 | wxPyEndAllowThreads(__tstate); |
| 11050 | if (PyErr_Occurred()) return NULL; |
| 11051 | } _resultobj = Py_BuildValue("i",_result); |
| 11052 | return _resultobj; |
| 11053 | } |
| 11054 | |
| 11055 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
| 11056 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11057 | PyObject * _resultobj; |
| 11058 | wxMenuItem * _arg0; |
| 11059 | PyObject * _argo0 = 0; |
| 11060 | char *_kwnames[] = { "self", NULL }; |
| 11061 | |
| 11062 | self = self; |
| 11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
| 11064 | return NULL; |
| 11065 | if (_argo0) { |
| 11066 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
| 11069 | return NULL; |
| 11070 | } |
| 11071 | } |
| 11072 | { |
| 11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11074 | wxMenuItem_Toggle(_arg0); |
| 11075 | |
| 11076 | wxPyEndAllowThreads(__tstate); |
| 11077 | if (PyErr_Occurred()) return NULL; |
| 11078 | } Py_INCREF(Py_None); |
| 11079 | _resultobj = Py_None; |
| 11080 | return _resultobj; |
| 11081 | } |
| 11082 | |
| 11083 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
| 11084 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11085 | PyObject * _resultobj; |
| 11086 | wxMenuItem * _arg0; |
| 11087 | wxString * _arg1; |
| 11088 | PyObject * _argo0 = 0; |
| 11089 | PyObject * _obj1 = 0; |
| 11090 | char *_kwnames[] = { "self","str", NULL }; |
| 11091 | |
| 11092 | self = self; |
| 11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
| 11094 | return NULL; |
| 11095 | if (_argo0) { |
| 11096 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
| 11099 | return NULL; |
| 11100 | } |
| 11101 | } |
| 11102 | { |
| 11103 | _arg1 = wxString_in_helper(_obj1); |
| 11104 | if (_arg1 == NULL) |
| 11105 | return NULL; |
| 11106 | } |
| 11107 | { |
| 11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11109 | wxMenuItem_SetHelp(_arg0,*_arg1); |
| 11110 | |
| 11111 | wxPyEndAllowThreads(__tstate); |
| 11112 | if (PyErr_Occurred()) return NULL; |
| 11113 | } Py_INCREF(Py_None); |
| 11114 | _resultobj = Py_None; |
| 11115 | { |
| 11116 | if (_obj1) |
| 11117 | delete _arg1; |
| 11118 | } |
| 11119 | return _resultobj; |
| 11120 | } |
| 11121 | |
| 11122 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
| 11123 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11124 | PyObject * _resultobj; |
| 11125 | wxString * _result; |
| 11126 | wxMenuItem * _arg0; |
| 11127 | PyObject * _argo0 = 0; |
| 11128 | char *_kwnames[] = { "self", NULL }; |
| 11129 | |
| 11130 | self = self; |
| 11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
| 11132 | return NULL; |
| 11133 | if (_argo0) { |
| 11134 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
| 11137 | return NULL; |
| 11138 | } |
| 11139 | } |
| 11140 | { |
| 11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11142 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
| 11143 | _result = (wxString *) &_result_ref; |
| 11144 | |
| 11145 | wxPyEndAllowThreads(__tstate); |
| 11146 | if (PyErr_Occurred()) return NULL; |
| 11147 | }{ |
| 11148 | #if wxUSE_UNICODE |
| 11149 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 11150 | #else |
| 11151 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 11152 | #endif |
| 11153 | } |
| 11154 | return _resultobj; |
| 11155 | } |
| 11156 | |
| 11157 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
| 11158 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11159 | PyObject * _resultobj; |
| 11160 | wxAcceleratorEntry * _result; |
| 11161 | wxMenuItem * _arg0; |
| 11162 | PyObject * _argo0 = 0; |
| 11163 | char *_kwnames[] = { "self", NULL }; |
| 11164 | char _ptemp[128]; |
| 11165 | |
| 11166 | self = self; |
| 11167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
| 11168 | return NULL; |
| 11169 | if (_argo0) { |
| 11170 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
| 11173 | return NULL; |
| 11174 | } |
| 11175 | } |
| 11176 | { |
| 11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11178 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
| 11179 | |
| 11180 | wxPyEndAllowThreads(__tstate); |
| 11181 | if (PyErr_Occurred()) return NULL; |
| 11182 | } if (_result) { |
| 11183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); |
| 11184 | _resultobj = Py_BuildValue("s",_ptemp); |
| 11185 | } else { |
| 11186 | Py_INCREF(Py_None); |
| 11187 | _resultobj = Py_None; |
| 11188 | } |
| 11189 | return _resultobj; |
| 11190 | } |
| 11191 | |
| 11192 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
| 11193 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11194 | PyObject * _resultobj; |
| 11195 | wxMenuItem * _arg0; |
| 11196 | wxAcceleratorEntry * _arg1; |
| 11197 | PyObject * _argo0 = 0; |
| 11198 | PyObject * _argo1 = 0; |
| 11199 | char *_kwnames[] = { "self","accel", NULL }; |
| 11200 | |
| 11201 | self = self; |
| 11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
| 11203 | return NULL; |
| 11204 | if (_argo0) { |
| 11205 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
| 11208 | return NULL; |
| 11209 | } |
| 11210 | } |
| 11211 | if (_argo1) { |
| 11212 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 11213 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
| 11214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); |
| 11215 | return NULL; |
| 11216 | } |
| 11217 | } |
| 11218 | { |
| 11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11220 | wxMenuItem_SetAccel(_arg0,_arg1); |
| 11221 | |
| 11222 | wxPyEndAllowThreads(__tstate); |
| 11223 | if (PyErr_Occurred()) return NULL; |
| 11224 | } Py_INCREF(Py_None); |
| 11225 | _resultobj = Py_None; |
| 11226 | return _resultobj; |
| 11227 | } |
| 11228 | |
| 11229 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11230 | PyObject * _resultobj; |
| 11231 | wxString * _result; |
| 11232 | wxString * _arg0; |
| 11233 | PyObject * _obj0 = 0; |
| 11234 | char *_kwnames[] = { "text", NULL }; |
| 11235 | |
| 11236 | self = self; |
| 11237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) |
| 11238 | return NULL; |
| 11239 | { |
| 11240 | _arg0 = wxString_in_helper(_obj0); |
| 11241 | if (_arg0 == NULL) |
| 11242 | return NULL; |
| 11243 | } |
| 11244 | { |
| 11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11246 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
| 11247 | |
| 11248 | wxPyEndAllowThreads(__tstate); |
| 11249 | if (PyErr_Occurred()) return NULL; |
| 11250 | }{ |
| 11251 | #if wxUSE_UNICODE |
| 11252 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); |
| 11253 | #else |
| 11254 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
| 11255 | #endif |
| 11256 | } |
| 11257 | { |
| 11258 | if (_obj0) |
| 11259 | delete _arg0; |
| 11260 | } |
| 11261 | { |
| 11262 | delete _result; |
| 11263 | } |
| 11264 | return _resultobj; |
| 11265 | } |
| 11266 | |
| 11267 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) |
| 11268 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11269 | PyObject * _resultobj; |
| 11270 | wxMenuItem * _arg0; |
| 11271 | wxBitmap * _arg1; |
| 11272 | PyObject * _argo0 = 0; |
| 11273 | PyObject * _argo1 = 0; |
| 11274 | char *_kwnames[] = { "self","bitmap", NULL }; |
| 11275 | |
| 11276 | self = self; |
| 11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) |
| 11278 | return NULL; |
| 11279 | if (_argo0) { |
| 11280 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); |
| 11283 | return NULL; |
| 11284 | } |
| 11285 | } |
| 11286 | if (_argo1) { |
| 11287 | if (_argo1 == Py_None) { _arg1 = NULL; } |
| 11288 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
| 11289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); |
| 11290 | return NULL; |
| 11291 | } |
| 11292 | } |
| 11293 | { |
| 11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11295 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
| 11296 | |
| 11297 | wxPyEndAllowThreads(__tstate); |
| 11298 | if (PyErr_Occurred()) return NULL; |
| 11299 | } Py_INCREF(Py_None); |
| 11300 | _resultobj = Py_None; |
| 11301 | return _resultobj; |
| 11302 | } |
| 11303 | |
| 11304 | #define wxMenuItem_GetBitmap(_swigobj) (_swigobj->GetBitmap()) |
| 11305 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
| 11306 | PyObject * _resultobj; |
| 11307 | wxBitmap * _result; |
| 11308 | wxMenuItem * _arg0; |
| 11309 | PyObject * _argo0 = 0; |
| 11310 | char *_kwnames[] = { "self", NULL }; |
| 11311 | char _ptemp[128]; |
| 11312 | |
| 11313 | self = self; |
| 11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBitmap",_kwnames,&_argo0)) |
| 11315 | return NULL; |
| 11316 | if (_argo0) { |
| 11317 | if (_argo0 == Py_None) { _arg0 = NULL; } |
| 11318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { |
| 11319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); |
| 11320 | return NULL; |
| 11321 | } |
| 11322 | } |
| 11323 | { |
| 11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
| 11325 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0); |
| 11326 | _result = (wxBitmap *) &_result_ref; |
| 11327 | |
| 11328 | wxPyEndAllowThreads(__tstate); |
| 11329 | if (PyErr_Occurred()) return NULL; |
| 11330 | } if (_result) { |
| 11331 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); |
| 11332 | _resultobj = Py_BuildValue("s",_ptemp); |
| 11333 | } else { |
| 11334 | Py_INCREF(Py_None); |
| 11335 | _resultobj = Py_None; |
| 11336 | } |
| 11337 | return _resultobj; |
| 11338 | } |
| 11339 | |
| 11340 | static PyMethodDef windowscMethods[] = { |
| 11341 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, |
| 11342 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, |
| 11343 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
| 11344 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
| 11345 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, |
| 11346 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, |
| 11347 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, |
| 11348 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, |
| 11349 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
| 11350 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
| 11351 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11352 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
| 11353 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11354 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11355 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11356 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
| 11357 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
| 11358 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
| 11359 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
| 11360 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11361 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, |
| 11362 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
| 11363 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
| 11364 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, |
| 11365 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11366 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
| 11367 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
| 11368 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
| 11369 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11370 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11371 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11372 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
| 11373 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
| 11374 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
| 11375 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
| 11376 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, |
| 11377 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11378 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
| 11379 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
| 11380 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, |
| 11381 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, |
| 11382 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, |
| 11383 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11384 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, |
| 11385 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, |
| 11386 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
| 11387 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, |
| 11388 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
| 11389 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, |
| 11390 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, |
| 11391 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
| 11392 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11393 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11394 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11395 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11396 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, |
| 11397 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, |
| 11398 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, |
| 11399 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, |
| 11400 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
| 11401 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
| 11402 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, |
| 11403 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
| 11404 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, |
| 11405 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
| 11406 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
| 11407 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
| 11408 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11409 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11410 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
| 11411 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, |
| 11412 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
| 11413 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
| 11414 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11415 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
| 11416 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
| 11417 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
| 11418 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, |
| 11419 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
| 11420 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11421 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, |
| 11422 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, |
| 11423 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, |
| 11424 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, |
| 11425 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
| 11426 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11427 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, |
| 11428 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, |
| 11429 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, |
| 11430 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, |
| 11431 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
| 11432 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
| 11433 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, |
| 11434 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
| 11435 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11436 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, |
| 11437 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11438 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
| 11439 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
| 11440 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
| 11441 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, |
| 11442 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, |
| 11443 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, |
| 11444 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
| 11445 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, |
| 11446 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
| 11447 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, |
| 11448 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
| 11449 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11450 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
| 11451 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
| 11452 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, |
| 11453 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, |
| 11454 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, |
| 11455 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11456 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
| 11457 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
| 11458 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
| 11459 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
| 11460 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11461 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11462 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
| 11463 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
| 11464 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, |
| 11465 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
| 11466 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
| 11467 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, |
| 11468 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
| 11469 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, |
| 11470 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, |
| 11471 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
| 11472 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
| 11473 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
| 11474 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
| 11475 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
| 11476 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
| 11477 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, |
| 11478 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, |
| 11479 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, |
| 11480 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
| 11481 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, |
| 11482 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, |
| 11483 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, |
| 11484 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, |
| 11485 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, |
| 11486 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
| 11487 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
| 11488 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, |
| 11489 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
| 11490 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
| 11491 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, |
| 11492 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
| 11493 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, |
| 11494 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
| 11495 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
| 11496 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
| 11497 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
| 11498 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
| 11499 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, |
| 11500 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
| 11501 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
| 11502 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
| 11503 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
| 11504 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
| 11505 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
| 11506 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
| 11507 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, |
| 11508 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, |
| 11509 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, |
| 11510 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, |
| 11511 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, |
| 11512 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, |
| 11513 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, |
| 11514 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
| 11515 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
| 11516 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11517 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11518 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, |
| 11519 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
| 11520 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
| 11521 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11522 | { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS }, |
| 11523 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
| 11524 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, |
| 11525 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, |
| 11526 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
| 11527 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
| 11528 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, |
| 11529 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
| 11530 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, |
| 11531 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
| 11532 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
| 11533 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
| 11534 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, |
| 11535 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, |
| 11536 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, |
| 11537 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, |
| 11538 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, |
| 11539 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, |
| 11540 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
| 11541 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, |
| 11542 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
| 11543 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
| 11544 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
| 11545 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
| 11546 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
| 11547 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
| 11548 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
| 11549 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
| 11550 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11551 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, |
| 11552 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, |
| 11553 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, |
| 11554 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
| 11555 | { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS }, |
| 11556 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
| 11557 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
| 11558 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, |
| 11559 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, |
| 11560 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, |
| 11561 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11562 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11563 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11564 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
| 11565 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, |
| 11566 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, |
| 11567 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, |
| 11568 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, |
| 11569 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
| 11570 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, |
| 11571 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, |
| 11572 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, |
| 11573 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
| 11574 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, |
| 11575 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, |
| 11576 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11577 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
| 11578 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
| 11579 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
| 11580 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
| 11581 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
| 11582 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
| 11583 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
| 11584 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, |
| 11585 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, |
| 11586 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, |
| 11587 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, |
| 11588 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, |
| 11589 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
| 11590 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, |
| 11591 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, |
| 11592 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, |
| 11593 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, |
| 11594 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
| 11595 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
| 11596 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, |
| 11597 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, |
| 11598 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11599 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11600 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, |
| 11601 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
| 11602 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
| 11603 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
| 11604 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, |
| 11605 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11606 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
| 11607 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
| 11608 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, |
| 11609 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
| 11610 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
| 11611 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, |
| 11612 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, |
| 11613 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
| 11614 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
| 11615 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
| 11616 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, |
| 11617 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
| 11618 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, |
| 11619 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, |
| 11620 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
| 11621 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
| 11622 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, |
| 11623 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, |
| 11624 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, |
| 11625 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, |
| 11626 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
| 11627 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
| 11628 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, |
| 11629 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
| 11630 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, |
| 11631 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, |
| 11632 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, |
| 11633 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
| 11634 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11635 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11636 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
| 11637 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
| 11638 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
| 11639 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, |
| 11640 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11641 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
| 11642 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, |
| 11643 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, |
| 11644 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
| 11645 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
| 11646 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
| 11647 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11648 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11649 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11650 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11651 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11652 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, |
| 11653 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
| 11654 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
| 11655 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
| 11656 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, |
| 11657 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
| 11658 | { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS }, |
| 11659 | { NULL, NULL } |
| 11660 | }; |
| 11661 | #ifdef __cplusplus |
| 11662 | } |
| 11663 | #endif |
| 11664 | /* |
| 11665 | * This table is used by the pointer type-checker |
| 11666 | */ |
| 11667 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { |
| 11668 | { "_signed_long","_long",0}, |
| 11669 | { "_wxPrintQuality","_wxCoord",0}, |
| 11670 | { "_wxPrintQuality","_int",0}, |
| 11671 | { "_wxPrintQuality","_signed_int",0}, |
| 11672 | { "_wxPrintQuality","_unsigned_int",0}, |
| 11673 | { "_wxPrintQuality","_wxWindowID",0}, |
| 11674 | { "_wxPrintQuality","_uint",0}, |
| 11675 | { "_wxPrintQuality","_EBool",0}, |
| 11676 | { "_wxPrintQuality","_size_t",0}, |
| 11677 | { "_wxPrintQuality","_time_t",0}, |
| 11678 | { "_byte","_unsigned_char",0}, |
| 11679 | { "_long","_unsigned_long",0}, |
| 11680 | { "_long","_signed_long",0}, |
| 11681 | { "_size_t","_wxCoord",0}, |
| 11682 | { "_size_t","_wxPrintQuality",0}, |
| 11683 | { "_size_t","_time_t",0}, |
| 11684 | { "_size_t","_unsigned_int",0}, |
| 11685 | { "_size_t","_int",0}, |
| 11686 | { "_size_t","_wxWindowID",0}, |
| 11687 | { "_size_t","_uint",0}, |
| 11688 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
| 11689 | { "_uint","_wxCoord",0}, |
| 11690 | { "_uint","_wxPrintQuality",0}, |
| 11691 | { "_uint","_time_t",0}, |
| 11692 | { "_uint","_size_t",0}, |
| 11693 | { "_uint","_unsigned_int",0}, |
| 11694 | { "_uint","_int",0}, |
| 11695 | { "_uint","_wxWindowID",0}, |
| 11696 | { "_wxChar","_char",0}, |
| 11697 | { "_char","_wxChar",0}, |
| 11698 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
| 11699 | { "_EBool","_wxCoord",0}, |
| 11700 | { "_EBool","_wxPrintQuality",0}, |
| 11701 | { "_EBool","_signed_int",0}, |
| 11702 | { "_EBool","_int",0}, |
| 11703 | { "_EBool","_wxWindowID",0}, |
| 11704 | { "_unsigned_long","_long",0}, |
| 11705 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
| 11706 | { "_signed_int","_wxCoord",0}, |
| 11707 | { "_signed_int","_wxPrintQuality",0}, |
| 11708 | { "_signed_int","_EBool",0}, |
| 11709 | { "_signed_int","_wxWindowID",0}, |
| 11710 | { "_signed_int","_int",0}, |
| 11711 | { "_WXTYPE","_short",0}, |
| 11712 | { "_WXTYPE","_signed_short",0}, |
| 11713 | { "_WXTYPE","_unsigned_short",0}, |
| 11714 | { "_unsigned_short","_WXTYPE",0}, |
| 11715 | { "_unsigned_short","_short",0}, |
| 11716 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
| 11717 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
| 11718 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
| 11719 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
| 11720 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
| 11721 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
| 11722 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
| 11723 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
| 11724 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
| 11725 | { "_signed_short","_WXTYPE",0}, |
| 11726 | { "_signed_short","_short",0}, |
| 11727 | { "_unsigned_char","_byte",0}, |
| 11728 | { "_unsigned_int","_wxCoord",0}, |
| 11729 | { "_unsigned_int","_wxPrintQuality",0}, |
| 11730 | { "_unsigned_int","_time_t",0}, |
| 11731 | { "_unsigned_int","_size_t",0}, |
| 11732 | { "_unsigned_int","_uint",0}, |
| 11733 | { "_unsigned_int","_wxWindowID",0}, |
| 11734 | { "_unsigned_int","_int",0}, |
| 11735 | { "_short","_WXTYPE",0}, |
| 11736 | { "_short","_unsigned_short",0}, |
| 11737 | { "_short","_signed_short",0}, |
| 11738 | { "_wxWindowID","_wxCoord",0}, |
| 11739 | { "_wxWindowID","_wxPrintQuality",0}, |
| 11740 | { "_wxWindowID","_time_t",0}, |
| 11741 | { "_wxWindowID","_size_t",0}, |
| 11742 | { "_wxWindowID","_EBool",0}, |
| 11743 | { "_wxWindowID","_uint",0}, |
| 11744 | { "_wxWindowID","_int",0}, |
| 11745 | { "_wxWindowID","_signed_int",0}, |
| 11746 | { "_wxWindowID","_unsigned_int",0}, |
| 11747 | { "_int","_wxCoord",0}, |
| 11748 | { "_int","_wxPrintQuality",0}, |
| 11749 | { "_int","_time_t",0}, |
| 11750 | { "_int","_size_t",0}, |
| 11751 | { "_int","_EBool",0}, |
| 11752 | { "_int","_uint",0}, |
| 11753 | { "_int","_wxWindowID",0}, |
| 11754 | { "_int","_unsigned_int",0}, |
| 11755 | { "_int","_signed_int",0}, |
| 11756 | { "_time_t","_wxCoord",0}, |
| 11757 | { "_time_t","_wxPrintQuality",0}, |
| 11758 | { "_time_t","_unsigned_int",0}, |
| 11759 | { "_time_t","_int",0}, |
| 11760 | { "_time_t","_wxWindowID",0}, |
| 11761 | { "_time_t","_uint",0}, |
| 11762 | { "_time_t","_size_t",0}, |
| 11763 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
| 11764 | { "_wxCoord","_int",0}, |
| 11765 | { "_wxCoord","_signed_int",0}, |
| 11766 | { "_wxCoord","_unsigned_int",0}, |
| 11767 | { "_wxCoord","_wxWindowID",0}, |
| 11768 | { "_wxCoord","_uint",0}, |
| 11769 | { "_wxCoord","_EBool",0}, |
| 11770 | { "_wxCoord","_size_t",0}, |
| 11771 | { "_wxCoord","_time_t",0}, |
| 11772 | { "_wxCoord","_wxPrintQuality",0}, |
| 11773 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
| 11774 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
| 11775 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
| 11776 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
| 11777 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
| 11778 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
| 11779 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
| 11780 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
| 11781 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
| 11782 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
| 11783 | {0,0,0}}; |
| 11784 | |
| 11785 | static PyObject *SWIG_globals; |
| 11786 | #ifdef __cplusplus |
| 11787 | extern "C" |
| 11788 | #endif |
| 11789 | SWIGEXPORT(void) initwindowsc() { |
| 11790 | PyObject *m, *d; |
| 11791 | SWIG_globals = SWIG_newvarlink(); |
| 11792 | m = Py_InitModule("windowsc", windowscMethods); |
| 11793 | d = PyModule_GetDict(m); |
| 11794 | { |
| 11795 | int i; |
| 11796 | for (i = 0; _swig_mapping[i].n1; i++) |
| 11797 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); |
| 11798 | } |
| 11799 | } |