]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/core_wrap.cpp
Take advantage of the new ctors accepting a wxArrayString
[wxWidgets.git] / wxPython / src / gtk / core_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
234 #define SWIGTYPE_p_wxRealPoint swig_types[1]
235 #define SWIGTYPE_p_wxSizerItem swig_types[2]
236 #define SWIGTYPE_p_wxGBSizerItem swig_types[3]
237 #define SWIGTYPE_p_wxScrollEvent swig_types[4]
238 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
239 #define SWIGTYPE_p_wxSizer swig_types[6]
240 #define SWIGTYPE_p_wxBoxSizer swig_types[7]
241 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
242 #define SWIGTYPE_p_wxGridBagSizer swig_types[9]
243 #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
244 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
245 #define SWIGTYPE_p_wxMenu swig_types[12]
246 #define SWIGTYPE_p_wxEvent swig_types[13]
247 #define SWIGTYPE_p_wxGridSizer swig_types[14]
248 #define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
249 #define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
250 #define SWIGTYPE_p_wxItemContainer swig_types[17]
251 #define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
252 #define SWIGTYPE_p_wxPaintEvent swig_types[19]
253 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
254 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
255 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
256 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
257 #define SWIGTYPE_p_wxControl swig_types[24]
258 #define SWIGTYPE_p_wxFont swig_types[25]
259 #define SWIGTYPE_p_wxMenuBarBase swig_types[26]
260 #define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
261 #define SWIGTYPE_p_wxFSFile swig_types[28]
262 #define SWIGTYPE_p_wxCaret swig_types[29]
263 #define SWIGTYPE_p_wxRegion swig_types[30]
264 #define SWIGTYPE_p_wxPoint2D swig_types[31]
265 #define SWIGTYPE_p_int swig_types[32]
266 #define SWIGTYPE_p_wxSize swig_types[33]
267 #define SWIGTYPE_p_wxDC swig_types[34]
268 #define SWIGTYPE_p_wxPySizer swig_types[35]
269 #define SWIGTYPE_p_wxNotifyEvent swig_types[36]
270 #define SWIGTYPE_p_wxPyEvent swig_types[37]
271 #define SWIGTYPE_p_wxPropagationDisabler swig_types[38]
272 #define SWIGTYPE_p_wxAppTraits swig_types[39]
273 #define SWIGTYPE_p_wxArrayString swig_types[40]
274 #define SWIGTYPE_p_wxShowEvent swig_types[41]
275 #define SWIGTYPE_p_wxToolTip swig_types[42]
276 #define SWIGTYPE_p_wxIconizeEvent swig_types[43]
277 #define SWIGTYPE_p_wxActivateEvent swig_types[44]
278 #define SWIGTYPE_p_wxMoveEvent swig_types[45]
279 #define SWIGTYPE_p_wxSizeEvent swig_types[46]
280 #define SWIGTYPE_p_wxMaximizeEvent swig_types[47]
281 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48]
282 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[49]
283 #define SWIGTYPE_p_wxIdleEvent swig_types[50]
284 #define SWIGTYPE_p_wxMenuItem swig_types[51]
285 #define SWIGTYPE_p_wxStaticBox swig_types[52]
286 #define SWIGTYPE_p_long swig_types[53]
287 #define SWIGTYPE_p_wxTIFFHandler swig_types[54]
288 #define SWIGTYPE_p_wxXPMHandler swig_types[55]
289 #define SWIGTYPE_p_wxPNMHandler swig_types[56]
290 #define SWIGTYPE_p_wxJPEGHandler swig_types[57]
291 #define SWIGTYPE_p_wxPCXHandler swig_types[58]
292 #define SWIGTYPE_p_wxGIFHandler swig_types[59]
293 #define SWIGTYPE_p_wxPNGHandler swig_types[60]
294 #define SWIGTYPE_p_wxANIHandler swig_types[61]
295 #define SWIGTYPE_p_wxMemoryFSHandler swig_types[62]
296 #define SWIGTYPE_p_wxZipFSHandler swig_types[63]
297 #define SWIGTYPE_p_wxEvtHandler swig_types[64]
298 #define SWIGTYPE_p_wxCURHandler swig_types[65]
299 #define SWIGTYPE_p_wxICOHandler swig_types[66]
300 #define SWIGTYPE_p_wxBMPHandler swig_types[67]
301 #define SWIGTYPE_p_wxImageHandler swig_types[68]
302 #define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
303 #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
304 #define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
305 #define SWIGTYPE_p_wxRect swig_types[72]
306 #define SWIGTYPE_p_wxGBSpan swig_types[73]
307 #define SWIGTYPE_p_wxPropagateOnce swig_types[74]
308 #define SWIGTYPE_p_wxAcceleratorTable swig_types[75]
309 #define SWIGTYPE_p_char swig_types[76]
310 #define SWIGTYPE_p_wxGBPosition swig_types[77]
311 #define SWIGTYPE_p_wxImage swig_types[78]
312 #define SWIGTYPE_p_wxFrame swig_types[79]
313 #define SWIGTYPE_p_wxScrollWinEvent swig_types[80]
314 #define SWIGTYPE_p_wxImageHistogram swig_types[81]
315 #define SWIGTYPE_p_byte swig_types[82]
316 #define SWIGTYPE_p_wxPoint swig_types[83]
317 #define SWIGTYPE_p_wxCursor swig_types[84]
318 #define SWIGTYPE_p_wxObject swig_types[85]
319 #define SWIGTYPE_p_wxPyInputStream swig_types[86]
320 #define SWIGTYPE_p_wxOutputStream swig_types[87]
321 #define SWIGTYPE_p_wxInputStream swig_types[88]
322 #define SWIGTYPE_p_wxDateTime swig_types[89]
323 #define SWIGTYPE_p_wxKeyEvent swig_types[90]
324 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
325 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[92]
326 #define SWIGTYPE_p_wxWindow swig_types[93]
327 #define SWIGTYPE_p_wxMenuBar swig_types[94]
328 #define SWIGTYPE_p_wxString swig_types[95]
329 #define SWIGTYPE_p_wxFileSystem swig_types[96]
330 #define SWIGTYPE_p_wxBitmap swig_types[97]
331 #define SWIGTYPE_p_wxMenuEvent swig_types[98]
332 #define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
333 #define SWIGTYPE_p_unsigned_char swig_types[100]
334 #define SWIGTYPE_p_wxCloseEvent swig_types[101]
335 #define SWIGTYPE_p_wxEraseEvent swig_types[102]
336 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
337 #define SWIGTYPE_p_wxPyApp swig_types[104]
338 #define SWIGTYPE_p_wxCommandEvent swig_types[105]
339 #define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
340 #define SWIGTYPE_p_wxPyDropTarget swig_types[107]
341 #define SWIGTYPE_p_wxChildFocusEvent swig_types[108]
342 #define SWIGTYPE_p_wxFocusEvent swig_types[109]
343 #define SWIGTYPE_p_wxDropFilesEvent swig_types[110]
344 #define SWIGTYPE_p_wxControlWithItems swig_types[111]
345 #define SWIGTYPE_p_wxColour swig_types[112]
346 #define SWIGTYPE_p_wxValidator swig_types[113]
347 #define SWIGTYPE_p_wxPyValidator swig_types[114]
348 static swig_type_info *swig_types[116];
349
350 /* -------- TYPES TABLE (END) -------- */
351
352
353 /*-----------------------------------------------
354 @(target):= _core.so
355 ------------------------------------------------*/
356 #define SWIG_init init_core
357
358 #define SWIG_name "_core"
359
360 #include <limits.h>
361 #include <float.h>
362 #include <string.h>
363
364 #ifndef SWIGSTATIC
365 #ifdef __cplusplus
366 #define SWIGSTATIC(a) static inline a
367 #else
368 #define SWIGSTATIC(a) static a
369 #endif
370 #endif
371
372 #ifndef numeric_cast
373 #ifdef __cplusplus
374 #ifdef HAVE_NUMERIC_CAST
375 #define numeric_cast(type,a) numeric_cast<type>(a)
376 #else
377 #define numeric_cast(type,a) static_cast<type>(a)
378 #endif
379 #else
380 #define numeric_cast(type,a) (type)(a)
381 #endif
382 #endif
383
384
385
386 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
387 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
388 #define SWIG_PyObj_FromShort PyInt_FromLong
389 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
390 #define SWIG_PyObj_FromInt PyInt_FromLong
391 #define SWIG_PyObj_FromLong PyInt_FromLong
392 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
393 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
394 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
395 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
396
397
398 #include "wx/wxPython/wxPython_int.h"
399 #include "wx/wxPython/pyclasses.h"
400
401
402 #ifndef wxPyUSE_EXPORT
403 // Helper functions for dealing with SWIG objects and such. These are
404 // located here so they know about the SWIG types and functions declared
405 // in the wrapper code.
406
407 #include <wx/hashmap.h>
408 WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
409
410
411 // Maintains a hashmap of className to swig_type_info pointers. Given the
412 // name of a class either looks up the type info in the cache, or scans the
413 // SWIG tables for it.
414 extern PyObject* wxPyPtrTypeMap;
415 static
416 swig_type_info* wxPyFindSwigType(const wxChar* className) {
417
418 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
419
420 if (typeInfoCache == NULL)
421 typeInfoCache = new wxPyTypeInfoHashMap;
422
423 wxString name(className);
424 swig_type_info* swigType = (*typeInfoCache)[name];
425
426 if (! swigType) {
427 // it wasn't in the cache, so look it up from SWIG
428 name.Append(wxT(" *"));
429 swigType = SWIG_Python_TypeQuery(name.mb_str());
430
431 // if it still wasn't found, try looking for a mapped name
432 if (!swigType) {
433 PyObject* item;
434 name = className;
435
436 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
437 (char*)(const char*)name.mbc_str())) != NULL) {
438 name = wxString(PyString_AsString(item), *wxConvCurrent);
439 name.Append(wxT(" *"));
440 swigType = SWIG_Python_TypeQuery(name.mb_str());
441 }
442 }
443 if (swigType) {
444 // and add it to the map if found
445 (*typeInfoCache)[className] = swigType;
446 }
447 }
448 return swigType;
449 }
450
451
452 // Check if a class name is a type known to SWIG
453 bool wxPyCheckSwigType(const wxChar* className) {
454
455 swig_type_info* swigType = wxPyFindSwigType(className);
456 return swigType != NULL;
457 }
458
459
460 // Given a pointer to a C++ object and a class name, construct a Python proxy
461 // object for it.
462 PyObject* wxPyConstructObject(void* ptr,
463 const wxChar* className,
464 int setThisOwn) {
465
466 swig_type_info* swigType = wxPyFindSwigType(className);
467 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
468
469 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
470 }
471
472
473 // Extract a pointer to the wrapped C++ object from a Python proxy object.
474 // Ensures that the proxy object is of the specified (or derived) type. If
475 // not able to perform the conversion then a Python exception is set and the
476 // error should be handled properly in the caller. Returns True on success.
477 bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
478 const wxChar* className) {
479
480 swig_type_info* swigType = wxPyFindSwigType(className);
481 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
482
483 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
484 }
485
486
487 // Make a SWIGified pointer object suitable for a .this attribute
488 PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
489
490 PyObject* robj = NULL;
491
492 swig_type_info* swigType = wxPyFindSwigType(className);
493 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
494
495 #ifdef SWIG_COBJECT_TYPES
496 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
497 #else
498 {
499 char result[1024];
500 char *r = result;
501 *(r++) = '_';
502 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
503 strcpy(r, swigType->name);
504 robj = PyString_FromString(result);
505 }
506 #endif
507
508 return robj;
509 }
510
511
512
513
514 // Export a C API in a struct. Other modules will be able to load this from
515 // the wx.core module and will then have safe access to these functions, even if
516 // they are located in another shared library.
517 static wxPyCoreAPI API = {
518
519 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
520 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
521 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
522 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
523 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
524 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
525 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
526 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
527 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
528 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
529 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
530 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
531 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
532 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
533 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
534 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
535 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
536
537 (p_SWIG_PyObj_AsCharPtr_t)SWIG_PyObj_AsCharPtr,
538 (p_SWIG_PyObj_FromCharPtr_t)SWIG_PyObj_FromCharPtr,
539 (p_SWIG_PyObj_AsUnsignedLong_t)SWIG_PyObj_AsUnsignedLong,
540 (p_SWIG_PyObj_AsLongInRange_t)SWIG_PyObj_AsLongInRange,
541 (p_SWIG_PyObj_AsUnsignedLongInRange_t)SWIG_PyObj_AsUnsignedLongInRange,
542 (p_SWIG_PyObj_AsNewCharPtr_t)SWIG_PyObj_AsNewCharPtr,
543 (p_SWIG_PyObj_AsCharPtrAndSize_t)SWIG_PyObj_AsCharPtrAndSize,
544 (p_SWIG_PyObj_AsCharArray_t)SWIG_PyObj_AsCharArray,
545 (p_SWIG_PyObj_FromCharArray_t)SWIG_PyObj_FromCharArray,
546 (p_SWIG_PyObj_AsFloatConv_t)SWIG_PyObj_AsFloatConv,
547
548 wxPyCheckSwigType,
549 wxPyConstructObject,
550 wxPyConvertSwigPtr,
551 wxPyMakeSwigPtr,
552
553 wxPyBeginAllowThreads,
554 wxPyEndAllowThreads,
555 wxPyBeginBlockThreads,
556 wxPyEndBlockThreads,
557
558 wxPy_ConvertList,
559
560 wxString_in_helper,
561 Py2wxString,
562 wx2PyString,
563
564 byte_LIST_helper,
565 int_LIST_helper,
566 long_LIST_helper,
567 string_LIST_helper,
568 wxPoint_LIST_helper,
569 wxBitmap_LIST_helper,
570 wxString_LIST_helper,
571 wxAcceleratorEntry_LIST_helper,
572
573 wxSize_helper,
574 wxPoint_helper,
575 wxRealPoint_helper,
576 wxRect_helper,
577 wxColour_helper,
578 wxPoint2D_helper,
579
580 wxPySimple_typecheck,
581 wxColour_typecheck,
582
583 wxPyCBH_setCallbackInfo,
584 wxPyCBH_findCallback,
585 wxPyCBH_callCallback,
586 wxPyCBH_callCallbackObj,
587 wxPyCBH_delete,
588
589 wxPyMake_wxObject,
590 wxPyMake_wxSizer,
591 wxPyPtrTypeMap_Add,
592 wxPy2int_seq_helper,
593 wxPy4int_seq_helper,
594 wxArrayString2PyList_helper,
595 wxArrayInt2PyList_helper,
596
597 wxPyClientData_dtor,
598 wxPyUserData_dtor,
599 wxPyOORClientData_dtor,
600
601 wxPyCBInputStream_create,
602
603 wxPyInstance_Check,
604 wxPySwigInstance_Check
605
606 };
607
608 #endif
609
610
611 #if ! wxUSE_HOTKEY
612 enum wxHotkeyModifier
613 {
614 wxMOD_NONE = 0,
615 wxMOD_ALT = 1,
616 wxMOD_CONTROL = 2,
617 wxMOD_SHIFT = 4,
618 wxMOD_WIN = 8
619 };
620 #define wxEVT_HOTKEY 9999
621 #endif
622
623 static const wxString wxPyEmptyString(wxEmptyString);
624 wxString wxObject_GetClassName(wxObject *self){
625 return self->GetClassInfo()->GetClassName();
626 }
627 void wxObject_Destroy(wxObject *self){
628 delete self;
629 }
630
631 #ifndef __WXMAC__
632 #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
633 #endif
634
635
636 SWIGSTATIC(int)
637 SWIG_PyObj_AsInt(PyObject *obj)
638 {
639 return numeric_cast(int,
640 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
641 }
642
643
644 SWIGSTATIC(PyObject*)
645 SWIG_PyObj_FromBool(bool value)
646 {
647 PyObject *obj = value ? Py_True : Py_False;
648 Py_INCREF(obj);
649 return obj;
650 }
651
652 PyObject *wxSize_Get(wxSize *self){
653 wxPyBeginBlockThreads();
654 PyObject* tup = PyTuple_New(2);
655 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
656 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
657 wxPyEndBlockThreads();
658 return tup;
659 }
660
661 SWIGSTATIC(double)
662 SWIG_PyObj_AsDouble(PyObject *obj)
663 {
664 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
665 #if HAVE_LONG_LONG
666 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
667 #else
668 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
669 #endif
670 if (PyErr_Occurred()) {
671 PyErr_Clear();
672 PyErr_SetString(PyExc_TypeError, "a double is expected");
673 }
674 }
675
676 void wxRealPoint_Set(wxRealPoint *self,double x,double y){
677 self->x = x;
678 self->y = y;
679 }
680 PyObject *wxRealPoint_Get(wxRealPoint *self){
681 wxPyBeginBlockThreads();
682 PyObject* tup = PyTuple_New(2);
683 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
684 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
685 wxPyEndBlockThreads();
686 return tup;
687 }
688
689 SWIGSTATIC(long)
690 SWIG_PyObj_AsLong(PyObject * obj)
691 {
692 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
693 }
694
695 void wxPoint_Set(wxPoint *self,long x,long y){
696 self->x = x;
697 self->y = y;
698 }
699 PyObject *wxPoint_Get(wxPoint *self){
700 wxPyBeginBlockThreads();
701 PyObject* tup = PyTuple_New(2);
702 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
703 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
704 wxPyEndBlockThreads();
705 return tup;
706 }
707 void wxRect_Set(wxRect *self,int x,int y,int width,int height){
708 self->x = x;
709 self->y = y;
710 self->width = width;
711 self->height = height;
712 }
713 PyObject *wxRect_Get(wxRect *self){
714 wxPyBeginBlockThreads();
715 PyObject* tup = PyTuple_New(4);
716 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
717 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
718 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
719 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
720 wxPyEndBlockThreads();
721 return tup;
722 }
723
724 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
725 wxRegion reg1(*r1);
726 wxRegion reg2(*r2);
727 wxRect dest(0,0,0,0);
728 PyObject* obj;
729
730 reg1.Intersect(reg2);
731 dest = reg1.GetBox();
732
733 if (dest != wxRect(0,0,0,0)) {
734 wxPyBeginBlockThreads();
735 wxRect* newRect = new wxRect(dest);
736 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
737 wxPyEndBlockThreads();
738 return obj;
739 }
740 Py_INCREF(Py_None);
741 return Py_None;
742 }
743
744
745 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
746 PyObject* o2;
747 PyObject* o3;
748
749 if (!target) {
750 target = o;
751 } else if (target == Py_None) {
752 Py_DECREF(Py_None);
753 target = o;
754 } else {
755 if (!PyTuple_Check(target)) {
756 o2 = target;
757 target = PyTuple_New(1);
758 PyTuple_SetItem(target, 0, o2);
759 }
760 o3 = PyTuple_New(1);
761 PyTuple_SetItem(o3, 0, o);
762
763 o2 = target;
764 target = PySequence_Concat(o2, o3);
765 Py_DECREF(o2);
766 Py_DECREF(o3);
767 }
768 return target;
769 }
770
771 void wxPoint2D_Set(wxPoint2D *self,double x,double y){
772 self->m_x = x;
773 self->m_y = y;
774 }
775 PyObject *wxPoint2D_Get(wxPoint2D *self){
776 wxPyBeginBlockThreads();
777 PyObject* tup = PyTuple_New(2);
778 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
779 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
780 wxPyEndBlockThreads();
781 return tup;
782 }
783
784 #include "wx/wxPython/pyistream.h"
785
786 wxPyInputStream *new_wxPyInputStream(PyObject *p){
787 wxInputStream* wxis = wxPyCBInputStream::create(p);
788 if (wxis)
789 return new wxPyInputStream(wxis);
790 else
791 return NULL;
792 }
793
794 SWIGSTATIC(PyObject*)
795 SWIG_PyObj_FromChar(char c)
796 {
797 return PyString_FromStringAndSize(&c,1);
798 }
799
800
801 SWIGSTATIC(PyObject* )
802 SWIG_PyObj_FromUnsignedLong(unsigned long value)
803 {
804 return (value > (unsigned long)(LONG_MAX)) ?
805 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
806 }
807
808
809 SWIGSTATIC(char)
810 SWIG_PyObj_AsChar(PyObject *obj)
811 {
812 char c = 0;
813 if (PyInt_Check(obj) || PyLong_Check(obj)) {
814 c = numeric_cast(char,
815 SWIG_PyObj_AsLongInRange(obj, "char",CHAR_MIN, CHAR_MAX));
816 } else {
817 char* cptr; size_t csize;
818 SWIG_PyObj_AsCharPtrAndSize(obj, 0, &cptr, &csize);
819 if (csize == 1) {
820 c = cptr[0];
821 } else {
822 PyErr_SetString(PyExc_TypeError, "a char is expected");
823 }
824 }
825 return c;
826 }
827
828 void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
829 // We use only strings for the streams, not unicode
830 PyObject* str = PyObject_Str(obj);
831 if (! str) {
832 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
833 return;
834 }
835 self->Write(PyString_AS_STRING(str),
836 PyString_GET_SIZE(str));
837 Py_DECREF(str);
838 }
839
840 #include "wx/wxPython/pyistream.h"
841
842
843 class wxPyFileSystemHandler : public wxFileSystemHandler
844 {
845 public:
846 wxPyFileSystemHandler() : wxFileSystemHandler() {}
847
848 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
849 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
850 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
851 DEC_PYCALLBACK_STRING__pure(FindNext);
852
853 wxString GetProtocol(const wxString& location) {
854 return wxFileSystemHandler::GetProtocol(location);
855 }
856
857 wxString GetLeftLocation(const wxString& location) {
858 return wxFileSystemHandler::GetLeftLocation(location);
859 }
860
861 wxString GetAnchor(const wxString& location) {
862 return wxFileSystemHandler::GetAnchor(location);
863 }
864
865 wxString GetRightLocation(const wxString& location) {
866 return wxFileSystemHandler::GetRightLocation(location);
867 }
868
869 wxString GetMimeTypeFromExt(const wxString& location) {
870 return wxFileSystemHandler::GetMimeTypeFromExt(location);
871 }
872
873 PYPRIVATE;
874 };
875
876
877 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
878 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
879 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
880 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
881
882
883 SWIGSTATIC(bool)
884 SWIG_PyObj_AsBool(PyObject *obj)
885 {
886 return PyObject_IsTrue(obj) ? true : false;
887 }
888
889
890 wxString wxFileSystem_URLToFileName(const wxString& url) {
891 wxFileName fname = wxFileSystem::URLToFileName(url);
892 return fname.GetFullPath();
893 }
894
895
896 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
897 wxImage& image,
898 long type) {
899 wxMemoryFSHandler::AddFile(filename, image, type);
900 }
901
902 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
903 const wxBitmap& bitmap,
904 long type) {
905 wxMemoryFSHandler::AddFile(filename, bitmap, type);
906 }
907
908 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
909 PyObject* data) {
910 wxMemoryFSHandler::AddFile(filename,
911 // TODO: Verify data type
912 (void*)PyString_AsString(data),
913 (size_t)PyString_Size(data));
914 }
915
916
917 #include "wx/wxPython/pyistream.h"
918
919
920 SWIGSTATIC(unsigned char)
921 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
922 {
923 return numeric_cast(unsigned char,
924 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
925 }
926
927 wxImage *new_wxImage(int width,int height,bool clear){
928 if (width > 0 && height > 0)
929 return new wxImage(width, height, clear);
930 else
931 return new wxImage;
932 }
933 wxImage *new_wxImage(wxBitmap const &bitmap){
934 return new wxImage(bitmap.ConvertToImage());
935 }
936 wxImage *new_wxImage(int width,int height,unsigned char *data){
937 // Copy the source data so the wxImage can clean it up later
938 unsigned char* copy = (unsigned char*)malloc(width*height*3);
939 if (copy == NULL) {
940 PyErr_NoMemory();
941 return NULL;
942 }
943 memcpy(copy, data, width*height*3);
944 return new wxImage(width, height, copy, False);
945 }
946 PyObject *wxImage_GetData(wxImage *self){
947 unsigned char* data = self->GetData();
948 int len = self->GetWidth() * self->GetHeight() * 3;
949 PyObject* rv;
950 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
951 return rv;
952 }
953 void wxImage_SetData(wxImage *self,PyObject *data){
954 unsigned char* dataPtr;
955
956 if (! PyString_Check(data)) {
957 PyErr_SetString(PyExc_TypeError, "Expected string object");
958 return /* NULL */ ;
959 }
960
961 size_t len = self->GetWidth() * self->GetHeight() * 3;
962 dataPtr = (unsigned char*) malloc(len);
963 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
964 self->SetData(dataPtr);
965 // wxImage takes ownership of dataPtr...
966 }
967 PyObject *wxImage_GetDataBuffer(wxImage *self){
968 unsigned char* data = self->GetData();
969 int len = self->GetWidth() * self->GetHeight() * 3;
970 PyObject* rv;
971 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
972 return rv;
973 }
974 void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
975 unsigned char* buffer;
976 int size;
977
978 wxPyBeginBlockThreads();
979 if (!PyArg_Parse(data, "t#", &buffer, &size))
980 goto done;
981
982 if (size != self->GetWidth() * self->GetHeight() * 3) {
983 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
984 goto done;
985 }
986 self->SetData(buffer);
987 done:
988 wxPyEndBlockThreads();
989 }
990 PyObject *wxImage_GetAlphaData(wxImage *self){
991 unsigned char* data = self->GetAlpha();
992 if (! data) {
993 RETURN_NONE();
994 } else {
995 int len = self->GetWidth() * self->GetHeight();
996 PyObject* rv;
997 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
998 return rv;
999 }
1000 }
1001 void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1002 unsigned char* dataPtr;
1003
1004 if (! PyString_Check(data)) {
1005 PyErr_SetString(PyExc_TypeError, "Expected string object");
1006 return /* NULL */ ;
1007 }
1008
1009 size_t len = self->GetWidth() * self->GetHeight();
1010 dataPtr = (unsigned char*) malloc(len);
1011 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1012 self->SetAlpha(dataPtr);
1013 // wxImage takes ownership of dataPtr...
1014 }
1015 PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1016 unsigned char* data = self->GetAlpha();
1017 int len = self->GetWidth() * self->GetHeight();
1018 PyObject* rv;
1019 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1020 return rv;
1021 }
1022 void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1023 unsigned char* buffer;
1024 int size;
1025
1026 wxPyBeginBlockThreads();
1027 if (!PyArg_Parse(data, "t#", &buffer, &size))
1028 goto done;
1029
1030 if (size != self->GetWidth() * self->GetHeight()) {
1031 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1032 goto done;
1033 }
1034 self->SetAlpha(buffer);
1035 done:
1036 wxPyEndBlockThreads();
1037 }
1038 wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1039 wxBitmap bitmap(*self);
1040 return bitmap;
1041 }
1042 wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1043 wxImage mono = self->ConvertToMono( red, green, blue );
1044 wxBitmap bitmap( mono, 1 );
1045 return bitmap;
1046 }
1047 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1048 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1049 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1050 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1051 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1052 void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1053 if (PyCallable_Check(func)) {
1054 self->Connect(id, lastId, eventType,
1055 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1056 new wxPyCallback(func));
1057 }
1058 else if (func == Py_None) {
1059 self->Disconnect(id, lastId, eventType,
1060 (wxObjectEventFunction)
1061 &wxPyCallback::EventThunker);
1062 }
1063 else {
1064 PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
1065 }
1066 }
1067 bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1068 return self->Disconnect(id, lastId, eventType,
1069 (wxObjectEventFunction)
1070 &wxPyCallback::EventThunker);
1071 }
1072 void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1073 if (_self && _self != Py_None) {
1074 self->SetClientObject(new wxPyOORClientData(_self));
1075 }
1076 else {
1077 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1078 if (data) {
1079 self->SetClientObject(NULL); // This will delete it too
1080 }
1081 }
1082 }
1083 int wxKeyEvent_GetUniChar(wxKeyEvent *self){
1084 #if wxUSE_UNICODE
1085 return self->m_uniChar;
1086 #else
1087 return 0;
1088 #endif
1089 }
1090
1091 #define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong
1092
1093
1094 SWIGSTATIC(unsigned int)
1095 SWIG_PyObj_AsUnsignedInt(PyObject *obj)
1096 {
1097 return numeric_cast(unsigned int,
1098 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX));
1099 }
1100
1101 void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1102 self->m_size = size;
1103 }
1104 void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1105 self->m_pos = pos;
1106 }
1107 PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1108 int count = self->GetNumberOfFiles();
1109 wxString* files = self->GetFiles();
1110 PyObject* list = PyList_New(count);
1111
1112 if (!list) {
1113 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1114 return NULL;
1115 }
1116
1117 for (int i=0; i<count; i++) {
1118 PyList_SetItem(list, i, wx2PyString(files[i]));
1119 }
1120 return list;
1121 }
1122
1123
1124 wxPyApp *new_wxPyApp(){
1125 wxPythonApp = new wxPyApp();
1126 return wxPythonApp;
1127 }
1128 int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
1129
1130 void wxApp_CleanUp() {
1131 __wxPyCleanup();
1132 }
1133
1134
1135 wxPyApp* wxGetApp() {
1136 return (wxPyApp*)wxTheApp;
1137 }
1138
1139
1140
1141 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1142 PyObject *wxWindow_GetChildren(wxWindow *self){
1143 wxWindowList& list = self->GetChildren();
1144 return wxPy_ConvertList(&list);
1145 }
1146 bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1147
1148
1149
1150 return False;
1151
1152 }
1153 bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1154
1155
1156
1157 return False;
1158
1159 }
1160 long wxWindow_GetHandle(wxWindow *self){
1161 return wxPyGetWinHandle(self);
1162 }
1163
1164 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1165 return wxWindow::FindWindowById(id, parent);
1166 }
1167
1168 wxWindow* wxFindWindowByName( const wxString& name,
1169 const wxWindow *parent = NULL ) {
1170 return wxWindow::FindWindowByName(name, parent);
1171 }
1172
1173 wxWindow* wxFindWindowByLabel( const wxString& label,
1174 const wxWindow *parent = NULL ) {
1175 return wxWindow::FindWindowByLabel(label, parent);
1176 }
1177
1178
1179 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
1180 #ifdef __WXMSW__
1181 wxWindow* win = new wxWindow;
1182 win->SetHWND(hWnd);
1183 win->SubclassWin(hWnd);
1184 return win;
1185 #else
1186 wxPyRaiseNotImplemented();
1187 return NULL;
1188 #endif
1189 }
1190
1191
1192 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1193 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1194 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1195
1196 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1197
1198 void wxMenu_Destroy(wxMenu *self){ delete self; }
1199 PyObject *wxMenu_GetMenuItems(wxMenu *self){
1200 wxMenuItemList& list = self->GetMenuItems();
1201 return wxPy_ConvertList(&list);
1202 }
1203 int MenuItem_GetDefaultMarginWidth(){ return 0; }
1204 static const wxString wxPyControlNameStr(wxControlNameStr);
1205 int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1206 if (clientData) {
1207 wxPyClientData* data = new wxPyClientData(clientData);
1208 return self->Append(item, data);
1209 } else
1210 return self->Append(item);
1211 }
1212 int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1213 if (clientData) {
1214 wxPyClientData* data = new wxPyClientData(clientData);
1215 return self->Insert(item, pos, data);
1216 } else
1217 return self->Insert(item, pos);
1218 }
1219 PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1220 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1221 if (data) {
1222 Py_INCREF(data->m_obj);
1223 return data->m_obj;
1224 } else {
1225 Py_INCREF(Py_None);
1226 return Py_None;
1227 }
1228 }
1229 void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1230 wxPyClientData* data = new wxPyClientData(clientData);
1231 self->SetClientObject(n, data);
1232 }
1233
1234
1235
1236 SWIGSTATIC(float)
1237 SWIG_PyObj_AsFloat(PyObject *obj)
1238 {
1239 return SWIG_PyObj_AsFloatConv(obj, SWIG_PyObj_AsDouble);
1240 }
1241
1242 PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1243 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1244 if (data) {
1245 Py_INCREF(data->m_obj);
1246 return data->m_obj;
1247 } else {
1248 Py_INCREF(Py_None);
1249 return Py_None;
1250 }
1251 }
1252
1253 // Figure out the type of the sizer item
1254
1255 struct wxPySizerItemInfo {
1256 wxPySizerItemInfo()
1257 : window(NULL), sizer(NULL), gotSize(False),
1258 size(wxDefaultSize), gotPos(False), pos(-1)
1259 {}
1260
1261 wxWindow* window;
1262 wxSizer* sizer;
1263 bool gotSize;
1264 wxSize size;
1265 bool gotPos;
1266 int pos;
1267 };
1268
1269 static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1270
1271 wxPySizerItemInfo info;
1272 wxSize size;
1273 wxSize* sizePtr = &size;
1274
1275 // Find out what the type of the item is
1276 // try wxWindow
1277 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1278 PyErr_Clear();
1279 info.window = NULL;
1280
1281 // try wxSizer
1282 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1283 PyErr_Clear();
1284 info.sizer = NULL;
1285
1286 // try wxSize or (w,h)
1287 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1288 info.size = *sizePtr;
1289 info.gotSize = True;
1290 }
1291
1292 // or a single int
1293 if (checkIdx && PyInt_Check(item)) {
1294 info.pos = PyInt_AsLong(item);
1295 info.gotPos = True;
1296 }
1297 }
1298 }
1299
1300 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1301 // no expected type, figure out what kind of error message to generate
1302 if ( !checkSize && !checkIdx )
1303 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1304 else if ( checkSize && !checkIdx )
1305 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1306 else if ( !checkSize && checkIdx)
1307 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1308 else
1309 // can this one happen?
1310 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1311 }
1312
1313 return info;
1314 }
1315
1316 void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1317 self->SetClientObject(new wxPyOORClientData(_self));
1318 }
1319 void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1320
1321 wxPyUserData* data = NULL;
1322 wxPyBeginBlockThreads();
1323 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1324 if ( userData && (info.window || info.sizer || info.gotSize) )
1325 data = new wxPyUserData(userData);
1326 wxPyEndBlockThreads();
1327
1328 // Now call the real Add method if a valid item type was found
1329 if ( info.window )
1330 self->Add(info.window, proportion, flag, border, data);
1331 else if ( info.sizer )
1332 self->Add(info.sizer, proportion, flag, border, data);
1333 else if (info.gotSize)
1334 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1335 proportion, flag, border, data);
1336 }
1337 void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1338
1339 wxPyUserData* data = NULL;
1340 wxPyBeginBlockThreads();
1341 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1342 if ( userData && (info.window || info.sizer || info.gotSize) )
1343 data = new wxPyUserData(userData);
1344 wxPyEndBlockThreads();
1345
1346 // Now call the real Insert method if a valid item type was found
1347 if ( info.window )
1348 self->Insert(before, info.window, proportion, flag, border, data);
1349 else if ( info.sizer )
1350 self->Insert(before, info.sizer, proportion, flag, border, data);
1351 else if (info.gotSize)
1352 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1353 proportion, flag, border, data);
1354 }
1355 void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1356
1357 wxPyUserData* data = NULL;
1358 wxPyBeginBlockThreads();
1359 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1360 if ( userData && (info.window || info.sizer || info.gotSize) )
1361 data = new wxPyUserData(userData);
1362 wxPyEndBlockThreads();
1363
1364 // Now call the real Prepend method if a valid item type was found
1365 if ( info.window )
1366 self->Prepend(info.window, proportion, flag, border, data);
1367 else if ( info.sizer )
1368 self->Prepend(info.sizer, proportion, flag, border, data);
1369 else if (info.gotSize)
1370 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1371 proportion, flag, border, data);
1372 }
1373 bool wxSizer_Remove(wxSizer *self,PyObject *item){
1374 wxPyBeginBlockThreads();
1375 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1376 wxPyEndBlockThreads();
1377 if ( info.window )
1378 return self->Remove(info.window);
1379 else if ( info.sizer )
1380 return self->Remove(info.sizer);
1381 else if ( info.gotPos )
1382 return self->Remove(info.pos);
1383 else
1384 return False;
1385 }
1386 void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1387 wxPyBeginBlockThreads();
1388 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1389 wxPyEndBlockThreads();
1390 if ( info.window )
1391 self->SetItemMinSize(info.window, size);
1392 else if ( info.sizer )
1393 self->SetItemMinSize(info.sizer, size);
1394 else if ( info.gotPos )
1395 self->SetItemMinSize(info.pos, size);
1396 }
1397 PyObject *wxSizer_GetChildren(wxSizer *self){
1398 wxSizerItemList& list = self->GetChildren();
1399 return wxPy_ConvertList(&list);
1400 }
1401 void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
1402 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1403 if ( info.window )
1404 self->Show(info.window, show);
1405 else if ( info.sizer )
1406 self->Show(info.sizer, show);
1407 }
1408 void wxSizer_Hide(wxSizer *self,PyObject *item){
1409 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1410 if ( info.window )
1411 self->Hide(info.window);
1412 else if ( info.sizer )
1413 self->Hide(info.sizer);
1414 }
1415 bool wxSizer_IsShown(wxSizer *self,PyObject *item){
1416 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
1417 if ( info.window )
1418 return self->IsShown(info.window);
1419 else if ( info.sizer )
1420 return self->IsShown(info.sizer);
1421 else
1422 return False;
1423 }
1424
1425 // See pyclasses.h
1426 IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1427 IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1428 IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1429
1430
1431
1432
1433 bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1434 {
1435 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1436 }
1437
1438 bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1439 {
1440 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1441 }
1442
1443
1444 void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1445 self->SetRow(row);
1446 self->SetCol(col);
1447 }
1448 PyObject *wxGBPosition_Get(wxGBPosition *self){
1449 wxPyBeginBlockThreads();
1450 PyObject* tup = PyTuple_New(2);
1451 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1452 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1453 wxPyEndBlockThreads();
1454 return tup;
1455 }
1456 void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1457 self->SetRowspan(rowspan);
1458 self->SetColspan(colspan);
1459 }
1460 PyObject *wxGBSpan_Get(wxGBSpan *self){
1461 wxPyBeginBlockThreads();
1462 PyObject* tup = PyTuple_New(2);
1463 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1464 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1465 wxPyEndBlockThreads();
1466 return tup;
1467 }
1468 bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1469
1470 wxPyUserData* data = NULL;
1471 wxPyBeginBlockThreads();
1472 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1473 if ( userData && (info.window || info.sizer || info.gotSize) )
1474 data = new wxPyUserData(userData);
1475 wxPyEndBlockThreads();
1476
1477 // Now call the real Add method if a valid item type was found
1478 if ( info.window )
1479 return self->Add(info.window, pos, span, flag, border, data);
1480 else if ( info.sizer )
1481 return self->Add(info.sizer, pos, span, flag, border, data);
1482 else if (info.gotSize)
1483 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1484 pos, span, flag, border, data);
1485 return False;
1486 }
1487
1488
1489 #ifdef __cplusplus
1490 extern "C" {
1491 #endif
1492 static int _wrap_EmptyString_set(PyObject *_val) {
1493 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1494 return 1;
1495 }
1496
1497
1498 static PyObject *_wrap_EmptyString_get() {
1499 PyObject *pyobj;
1500
1501 {
1502 #if wxUSE_UNICODE
1503 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1504 #else
1505 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1506 #endif
1507 }
1508 return pyobj;
1509 }
1510
1511
1512 static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 wxObject *arg1 = (wxObject *) 0 ;
1515 wxString result;
1516 PyObject * obj0 = 0 ;
1517 char *kwnames[] = {
1518 (char *) "self", NULL
1519 };
1520
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1523 {
1524 PyThreadState* __tstate = wxPyBeginAllowThreads();
1525 result = wxObject_GetClassName(arg1);
1526
1527 wxPyEndAllowThreads(__tstate);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 }
1530 {
1531 #if wxUSE_UNICODE
1532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1533 #else
1534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1535 #endif
1536 }
1537 return resultobj;
1538 fail:
1539 return NULL;
1540 }
1541
1542
1543 static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1544 PyObject *resultobj;
1545 wxObject *arg1 = (wxObject *) 0 ;
1546 PyObject * obj0 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "self", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1553 {
1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
1555 wxObject_Destroy(arg1);
1556
1557 wxPyEndAllowThreads(__tstate);
1558 if (PyErr_Occurred()) SWIG_fail;
1559 }
1560 Py_INCREF(Py_None); resultobj = Py_None;
1561 return resultobj;
1562 fail:
1563 return NULL;
1564 }
1565
1566
1567 static PyObject * Object_swigregister(PyObject *self, PyObject *args) {
1568 PyObject *obj;
1569 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1570 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1571 Py_INCREF(obj);
1572 return Py_BuildValue((char *)"");
1573 }
1574 static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject *resultobj;
1576 wxSize *arg1 = (wxSize *) 0 ;
1577 int arg2 ;
1578 PyObject * obj0 = 0 ;
1579 PyObject * obj1 = 0 ;
1580 char *kwnames[] = {
1581 (char *) "self",(char *) "x", NULL
1582 };
1583
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
1585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1586 {
1587 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 }
1590 if (arg1) (arg1)->x = arg2;
1591
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596 }
1597
1598
1599 static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxSize *arg1 = (wxSize *) 0 ;
1602 int result;
1603 PyObject * obj0 = 0 ;
1604 char *kwnames[] = {
1605 (char *) "self", NULL
1606 };
1607
1608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1610 result = (int) ((arg1)->x);
1611
1612 resultobj = SWIG_PyObj_FromInt((int)result);
1613 return resultobj;
1614 fail:
1615 return NULL;
1616 }
1617
1618
1619 static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1620 PyObject *resultobj;
1621 wxSize *arg1 = (wxSize *) 0 ;
1622 int arg2 ;
1623 PyObject * obj0 = 0 ;
1624 PyObject * obj1 = 0 ;
1625 char *kwnames[] = {
1626 (char *) "self",(char *) "y", NULL
1627 };
1628
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
1630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1631 {
1632 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1633 if (PyErr_Occurred()) SWIG_fail;
1634 }
1635 if (arg1) (arg1)->y = arg2;
1636
1637 Py_INCREF(Py_None); resultobj = Py_None;
1638 return resultobj;
1639 fail:
1640 return NULL;
1641 }
1642
1643
1644 static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1645 PyObject *resultobj;
1646 wxSize *arg1 = (wxSize *) 0 ;
1647 int result;
1648 PyObject * obj0 = 0 ;
1649 char *kwnames[] = {
1650 (char *) "self", NULL
1651 };
1652
1653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
1654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1655 result = (int) ((arg1)->y);
1656
1657 resultobj = SWIG_PyObj_FromInt((int)result);
1658 return resultobj;
1659 fail:
1660 return NULL;
1661 }
1662
1663
1664 static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1665 PyObject *resultobj;
1666 int arg1 = (int) 0 ;
1667 int arg2 = (int) 0 ;
1668 wxSize *result;
1669 PyObject * obj0 = 0 ;
1670 PyObject * obj1 = 0 ;
1671 char *kwnames[] = {
1672 (char *) "w",(char *) "h", NULL
1673 };
1674
1675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
1676 if (obj0) {
1677 {
1678 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1679 if (PyErr_Occurred()) SWIG_fail;
1680 }
1681 }
1682 if (obj1) {
1683 {
1684 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 }
1687 }
1688 {
1689 PyThreadState* __tstate = wxPyBeginAllowThreads();
1690 result = (wxSize *)new wxSize(arg1,arg2);
1691
1692 wxPyEndAllowThreads(__tstate);
1693 if (PyErr_Occurred()) SWIG_fail;
1694 }
1695 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1);
1696 return resultobj;
1697 fail:
1698 return NULL;
1699 }
1700
1701
1702 static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1703 PyObject *resultobj;
1704 wxSize *arg1 = (wxSize *) 0 ;
1705 PyObject * obj0 = 0 ;
1706 char *kwnames[] = {
1707 (char *) "self", NULL
1708 };
1709
1710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
1711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1712 {
1713 PyThreadState* __tstate = wxPyBeginAllowThreads();
1714 delete arg1;
1715
1716 wxPyEndAllowThreads(__tstate);
1717 if (PyErr_Occurred()) SWIG_fail;
1718 }
1719 Py_INCREF(Py_None); resultobj = Py_None;
1720 return resultobj;
1721 fail:
1722 return NULL;
1723 }
1724
1725
1726 static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1727 PyObject *resultobj;
1728 wxSize *arg1 = (wxSize *) 0 ;
1729 wxSize *arg2 = 0 ;
1730 bool result;
1731 wxSize temp2 ;
1732 PyObject * obj0 = 0 ;
1733 PyObject * obj1 = 0 ;
1734 char *kwnames[] = {
1735 (char *) "self",(char *) "sz", NULL
1736 };
1737
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
1739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1740 {
1741 arg2 = &temp2;
1742 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1743 }
1744 {
1745 PyThreadState* __tstate = wxPyBeginAllowThreads();
1746 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
1747
1748 wxPyEndAllowThreads(__tstate);
1749 if (PyErr_Occurred()) SWIG_fail;
1750 }
1751 resultobj = SWIG_PyObj_FromBool((bool)result);
1752 return resultobj;
1753 fail:
1754 return NULL;
1755 }
1756
1757
1758 static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject *resultobj;
1760 wxSize *arg1 = (wxSize *) 0 ;
1761 wxSize *arg2 = 0 ;
1762 bool result;
1763 wxSize temp2 ;
1764 PyObject * obj0 = 0 ;
1765 PyObject * obj1 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "self",(char *) "sz", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
1771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1772 {
1773 arg2 = &temp2;
1774 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1775 }
1776 {
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 resultobj = SWIG_PyObj_FromBool((bool)result);
1784 return resultobj;
1785 fail:
1786 return NULL;
1787 }
1788
1789
1790 static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
1791 PyObject *resultobj;
1792 wxSize *arg1 = (wxSize *) 0 ;
1793 wxSize *arg2 = 0 ;
1794 wxSize result;
1795 wxSize temp2 ;
1796 PyObject * obj0 = 0 ;
1797 PyObject * obj1 = 0 ;
1798 char *kwnames[] = {
1799 (char *) "self",(char *) "sz", NULL
1800 };
1801
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
1803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1804 {
1805 arg2 = &temp2;
1806 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1807 }
1808 {
1809 PyThreadState* __tstate = wxPyBeginAllowThreads();
1810 result = (arg1)->operator +((wxSize const &)*arg2);
1811
1812 wxPyEndAllowThreads(__tstate);
1813 if (PyErr_Occurred()) SWIG_fail;
1814 }
1815 {
1816 wxSize * resultptr;
1817 resultptr = new wxSize((wxSize &) result);
1818 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1819 }
1820 return resultobj;
1821 fail:
1822 return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxSize *arg1 = (wxSize *) 0 ;
1829 wxSize *arg2 = 0 ;
1830 wxSize result;
1831 wxSize temp2 ;
1832 PyObject * obj0 = 0 ;
1833 PyObject * obj1 = 0 ;
1834 char *kwnames[] = {
1835 (char *) "self",(char *) "sz", NULL
1836 };
1837
1838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
1839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1840 {
1841 arg2 = &temp2;
1842 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1843 }
1844 {
1845 PyThreadState* __tstate = wxPyBeginAllowThreads();
1846 result = (arg1)->operator -((wxSize const &)*arg2);
1847
1848 wxPyEndAllowThreads(__tstate);
1849 if (PyErr_Occurred()) SWIG_fail;
1850 }
1851 {
1852 wxSize * resultptr;
1853 resultptr = new wxSize((wxSize &) result);
1854 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1855 }
1856 return resultobj;
1857 fail:
1858 return NULL;
1859 }
1860
1861
1862 static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1863 PyObject *resultobj;
1864 wxSize *arg1 = (wxSize *) 0 ;
1865 wxSize *arg2 = 0 ;
1866 wxSize temp2 ;
1867 PyObject * obj0 = 0 ;
1868 PyObject * obj1 = 0 ;
1869 char *kwnames[] = {
1870 (char *) "self",(char *) "sz", NULL
1871 };
1872
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
1874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1875 {
1876 arg2 = &temp2;
1877 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1878 }
1879 {
1880 PyThreadState* __tstate = wxPyBeginAllowThreads();
1881 (arg1)->IncTo((wxSize const &)*arg2);
1882
1883 wxPyEndAllowThreads(__tstate);
1884 if (PyErr_Occurred()) SWIG_fail;
1885 }
1886 Py_INCREF(Py_None); resultobj = Py_None;
1887 return resultobj;
1888 fail:
1889 return NULL;
1890 }
1891
1892
1893 static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1894 PyObject *resultobj;
1895 wxSize *arg1 = (wxSize *) 0 ;
1896 wxSize *arg2 = 0 ;
1897 wxSize temp2 ;
1898 PyObject * obj0 = 0 ;
1899 PyObject * obj1 = 0 ;
1900 char *kwnames[] = {
1901 (char *) "self",(char *) "sz", NULL
1902 };
1903
1904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
1905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1906 {
1907 arg2 = &temp2;
1908 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1909 }
1910 {
1911 PyThreadState* __tstate = wxPyBeginAllowThreads();
1912 (arg1)->DecTo((wxSize const &)*arg2);
1913
1914 wxPyEndAllowThreads(__tstate);
1915 if (PyErr_Occurred()) SWIG_fail;
1916 }
1917 Py_INCREF(Py_None); resultobj = Py_None;
1918 return resultobj;
1919 fail:
1920 return NULL;
1921 }
1922
1923
1924 static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1925 PyObject *resultobj;
1926 wxSize *arg1 = (wxSize *) 0 ;
1927 int arg2 ;
1928 int arg3 ;
1929 PyObject * obj0 = 0 ;
1930 PyObject * obj1 = 0 ;
1931 PyObject * obj2 = 0 ;
1932 char *kwnames[] = {
1933 (char *) "self",(char *) "w",(char *) "h", NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
1937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1938 {
1939 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 {
1943 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 }
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 (arg1)->Set(arg2,arg3);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
1953 Py_INCREF(Py_None); resultobj = Py_None;
1954 return resultobj;
1955 fail:
1956 return NULL;
1957 }
1958
1959
1960 static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxSize *arg1 = (wxSize *) 0 ;
1963 int arg2 ;
1964 PyObject * obj0 = 0 ;
1965 PyObject * obj1 = 0 ;
1966 char *kwnames[] = {
1967 (char *) "self",(char *) "w", NULL
1968 };
1969
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1972 {
1973 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1974 if (PyErr_Occurred()) SWIG_fail;
1975 }
1976 {
1977 PyThreadState* __tstate = wxPyBeginAllowThreads();
1978 (arg1)->SetWidth(arg2);
1979
1980 wxPyEndAllowThreads(__tstate);
1981 if (PyErr_Occurred()) SWIG_fail;
1982 }
1983 Py_INCREF(Py_None); resultobj = Py_None;
1984 return resultobj;
1985 fail:
1986 return NULL;
1987 }
1988
1989
1990 static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1991 PyObject *resultobj;
1992 wxSize *arg1 = (wxSize *) 0 ;
1993 int arg2 ;
1994 PyObject * obj0 = 0 ;
1995 PyObject * obj1 = 0 ;
1996 char *kwnames[] = {
1997 (char *) "self",(char *) "h", NULL
1998 };
1999
2000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2002 {
2003 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2004 if (PyErr_Occurred()) SWIG_fail;
2005 }
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 (arg1)->SetHeight(arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 Py_INCREF(Py_None); resultobj = Py_None;
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 wxSize *arg1 = (wxSize *) 0 ;
2023 int result;
2024 PyObject * obj0 = 0 ;
2025 char *kwnames[] = {
2026 (char *) "self", NULL
2027 };
2028
2029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2031 {
2032 PyThreadState* __tstate = wxPyBeginAllowThreads();
2033 result = (int)((wxSize const *)arg1)->GetWidth();
2034
2035 wxPyEndAllowThreads(__tstate);
2036 if (PyErr_Occurred()) SWIG_fail;
2037 }
2038 resultobj = SWIG_PyObj_FromInt((int)result);
2039 return resultobj;
2040 fail:
2041 return NULL;
2042 }
2043
2044
2045 static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject *resultobj;
2047 wxSize *arg1 = (wxSize *) 0 ;
2048 int result;
2049 PyObject * obj0 = 0 ;
2050 char *kwnames[] = {
2051 (char *) "self", NULL
2052 };
2053
2054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2056 {
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 result = (int)((wxSize const *)arg1)->GetHeight();
2059
2060 wxPyEndAllowThreads(__tstate);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 }
2063 resultobj = SWIG_PyObj_FromInt((int)result);
2064 return resultobj;
2065 fail:
2066 return NULL;
2067 }
2068
2069
2070 static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 wxSize *arg1 = (wxSize *) 0 ;
2073 PyObject *result;
2074 PyObject * obj0 = 0 ;
2075 char *kwnames[] = {
2076 (char *) "self", NULL
2077 };
2078
2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2081 {
2082 PyThreadState* __tstate = wxPyBeginAllowThreads();
2083 result = (PyObject *)wxSize_Get(arg1);
2084
2085 wxPyEndAllowThreads(__tstate);
2086 if (PyErr_Occurred()) SWIG_fail;
2087 }
2088 resultobj = result;
2089 return resultobj;
2090 fail:
2091 return NULL;
2092 }
2093
2094
2095 static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2096 PyObject *obj;
2097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2098 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2099 Py_INCREF(obj);
2100 return Py_BuildValue((char *)"");
2101 }
2102 static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject *resultobj;
2104 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2105 double arg2 ;
2106 PyObject * obj0 = 0 ;
2107 PyObject * obj1 = 0 ;
2108 char *kwnames[] = {
2109 (char *) "self",(char *) "x", NULL
2110 };
2111
2112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2114 {
2115 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
2118 if (arg1) (arg1)->x = arg2;
2119
2120 Py_INCREF(Py_None); resultobj = Py_None;
2121 return resultobj;
2122 fail:
2123 return NULL;
2124 }
2125
2126
2127 static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject *resultobj;
2129 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2130 double result;
2131 PyObject * obj0 = 0 ;
2132 char *kwnames[] = {
2133 (char *) "self", NULL
2134 };
2135
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2138 result = (double) ((arg1)->x);
2139
2140 resultobj = SWIG_PyObj_FromDouble((double)result);
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2150 double arg2 ;
2151 PyObject * obj0 = 0 ;
2152 PyObject * obj1 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "self",(char *) "y", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2159 {
2160 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2161 if (PyErr_Occurred()) SWIG_fail;
2162 }
2163 if (arg1) (arg1)->y = arg2;
2164
2165 Py_INCREF(Py_None); resultobj = Py_None;
2166 return resultobj;
2167 fail:
2168 return NULL;
2169 }
2170
2171
2172 static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2173 PyObject *resultobj;
2174 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2175 double result;
2176 PyObject * obj0 = 0 ;
2177 char *kwnames[] = {
2178 (char *) "self", NULL
2179 };
2180
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2183 result = (double) ((arg1)->y);
2184
2185 resultobj = SWIG_PyObj_FromDouble((double)result);
2186 return resultobj;
2187 fail:
2188 return NULL;
2189 }
2190
2191
2192 static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2193 PyObject *resultobj;
2194 double arg1 = (double) 0.0 ;
2195 double arg2 = (double) 0.0 ;
2196 wxRealPoint *result;
2197 PyObject * obj0 = 0 ;
2198 PyObject * obj1 = 0 ;
2199 char *kwnames[] = {
2200 (char *) "x",(char *) "y", NULL
2201 };
2202
2203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2204 if (obj0) {
2205 {
2206 arg1 = (double) SWIG_PyObj_AsDouble(obj0);
2207 if (PyErr_Occurred()) SWIG_fail;
2208 }
2209 }
2210 if (obj1) {
2211 {
2212 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 }
2215 }
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1);
2224 return resultobj;
2225 fail:
2226 return NULL;
2227 }
2228
2229
2230 static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2231 PyObject *resultobj;
2232 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2233 PyObject * obj0 = 0 ;
2234 char *kwnames[] = {
2235 (char *) "self", NULL
2236 };
2237
2238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2240 {
2241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2242 delete arg1;
2243
2244 wxPyEndAllowThreads(__tstate);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 }
2247 Py_INCREF(Py_None); resultobj = Py_None;
2248 return resultobj;
2249 fail:
2250 return NULL;
2251 }
2252
2253
2254 static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2255 PyObject *resultobj;
2256 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2257 wxRealPoint *arg2 = 0 ;
2258 bool result;
2259 wxRealPoint temp2 ;
2260 PyObject * obj0 = 0 ;
2261 PyObject * obj1 = 0 ;
2262 char *kwnames[] = {
2263 (char *) "self",(char *) "pt", NULL
2264 };
2265
2266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2268 {
2269 arg2 = &temp2;
2270 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2271 }
2272 {
2273 PyThreadState* __tstate = wxPyBeginAllowThreads();
2274 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2275
2276 wxPyEndAllowThreads(__tstate);
2277 if (PyErr_Occurred()) SWIG_fail;
2278 }
2279 resultobj = SWIG_PyObj_FromBool((bool)result);
2280 return resultobj;
2281 fail:
2282 return NULL;
2283 }
2284
2285
2286 static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2287 PyObject *resultobj;
2288 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2289 wxRealPoint *arg2 = 0 ;
2290 bool result;
2291 wxRealPoint temp2 ;
2292 PyObject * obj0 = 0 ;
2293 PyObject * obj1 = 0 ;
2294 char *kwnames[] = {
2295 (char *) "self",(char *) "pt", NULL
2296 };
2297
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2300 {
2301 arg2 = &temp2;
2302 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2303 }
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 }
2311 resultobj = SWIG_PyObj_FromBool((bool)result);
2312 return resultobj;
2313 fail:
2314 return NULL;
2315 }
2316
2317
2318 static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2319 PyObject *resultobj;
2320 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2321 wxRealPoint *arg2 = 0 ;
2322 wxRealPoint result;
2323 wxRealPoint temp2 ;
2324 PyObject * obj0 = 0 ;
2325 PyObject * obj1 = 0 ;
2326 char *kwnames[] = {
2327 (char *) "self",(char *) "pt", NULL
2328 };
2329
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2332 {
2333 arg2 = &temp2;
2334 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2335 }
2336 {
2337 PyThreadState* __tstate = wxPyBeginAllowThreads();
2338 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2339
2340 wxPyEndAllowThreads(__tstate);
2341 if (PyErr_Occurred()) SWIG_fail;
2342 }
2343 {
2344 wxRealPoint * resultptr;
2345 resultptr = new wxRealPoint((wxRealPoint &) result);
2346 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1);
2347 }
2348 return resultobj;
2349 fail:
2350 return NULL;
2351 }
2352
2353
2354 static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2355 PyObject *resultobj;
2356 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2357 wxRealPoint *arg2 = 0 ;
2358 wxRealPoint result;
2359 wxRealPoint temp2 ;
2360 PyObject * obj0 = 0 ;
2361 PyObject * obj1 = 0 ;
2362 char *kwnames[] = {
2363 (char *) "self",(char *) "pt", NULL
2364 };
2365
2366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2368 {
2369 arg2 = &temp2;
2370 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2371 }
2372 {
2373 PyThreadState* __tstate = wxPyBeginAllowThreads();
2374 result = (arg1)->operator -((wxRealPoint const &)*arg2);
2375
2376 wxPyEndAllowThreads(__tstate);
2377 if (PyErr_Occurred()) SWIG_fail;
2378 }
2379 {
2380 wxRealPoint * resultptr;
2381 resultptr = new wxRealPoint((wxRealPoint &) result);
2382 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1);
2383 }
2384 return resultobj;
2385 fail:
2386 return NULL;
2387 }
2388
2389
2390 static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2391 PyObject *resultobj;
2392 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2393 double arg2 ;
2394 double arg3 ;
2395 PyObject * obj0 = 0 ;
2396 PyObject * obj1 = 0 ;
2397 PyObject * obj2 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self",(char *) "x",(char *) "y", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2404 {
2405 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 wxRealPoint_Set(arg1,arg2,arg3);
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 Py_INCREF(Py_None); resultobj = Py_None;
2420 return resultobj;
2421 fail:
2422 return NULL;
2423 }
2424
2425
2426 static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2427 PyObject *resultobj;
2428 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2429 PyObject *result;
2430 PyObject * obj0 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
2436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2437 {
2438 PyThreadState* __tstate = wxPyBeginAllowThreads();
2439 result = (PyObject *)wxRealPoint_Get(arg1);
2440
2441 wxPyEndAllowThreads(__tstate);
2442 if (PyErr_Occurred()) SWIG_fail;
2443 }
2444 resultobj = result;
2445 return resultobj;
2446 fail:
2447 return NULL;
2448 }
2449
2450
2451 static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2452 PyObject *obj;
2453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2454 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2455 Py_INCREF(obj);
2456 return Py_BuildValue((char *)"");
2457 }
2458 static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2459 PyObject *resultobj;
2460 wxPoint *arg1 = (wxPoint *) 0 ;
2461 int arg2 ;
2462 PyObject * obj0 = 0 ;
2463 PyObject * obj1 = 0 ;
2464 char *kwnames[] = {
2465 (char *) "self",(char *) "x", NULL
2466 };
2467
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
2469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2470 {
2471 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 if (arg1) (arg1)->x = arg2;
2475
2476 Py_INCREF(Py_None); resultobj = Py_None;
2477 return resultobj;
2478 fail:
2479 return NULL;
2480 }
2481
2482
2483 static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2484 PyObject *resultobj;
2485 wxPoint *arg1 = (wxPoint *) 0 ;
2486 int result;
2487 PyObject * obj0 = 0 ;
2488 char *kwnames[] = {
2489 (char *) "self", NULL
2490 };
2491
2492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2494 result = (int) ((arg1)->x);
2495
2496 resultobj = SWIG_PyObj_FromInt((int)result);
2497 return resultobj;
2498 fail:
2499 return NULL;
2500 }
2501
2502
2503 static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2504 PyObject *resultobj;
2505 wxPoint *arg1 = (wxPoint *) 0 ;
2506 int arg2 ;
2507 PyObject * obj0 = 0 ;
2508 PyObject * obj1 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self",(char *) "y", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2515 {
2516 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2517 if (PyErr_Occurred()) SWIG_fail;
2518 }
2519 if (arg1) (arg1)->y = arg2;
2520
2521 Py_INCREF(Py_None); resultobj = Py_None;
2522 return resultobj;
2523 fail:
2524 return NULL;
2525 }
2526
2527
2528 static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2529 PyObject *resultobj;
2530 wxPoint *arg1 = (wxPoint *) 0 ;
2531 int result;
2532 PyObject * obj0 = 0 ;
2533 char *kwnames[] = {
2534 (char *) "self", NULL
2535 };
2536
2537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2539 result = (int) ((arg1)->y);
2540
2541 resultobj = SWIG_PyObj_FromInt((int)result);
2542 return resultobj;
2543 fail:
2544 return NULL;
2545 }
2546
2547
2548 static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2549 PyObject *resultobj;
2550 int arg1 = (int) 0 ;
2551 int arg2 = (int) 0 ;
2552 wxPoint *result;
2553 PyObject * obj0 = 0 ;
2554 PyObject * obj1 = 0 ;
2555 char *kwnames[] = {
2556 (char *) "x",(char *) "y", NULL
2557 };
2558
2559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2560 if (obj0) {
2561 {
2562 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2563 if (PyErr_Occurred()) SWIG_fail;
2564 }
2565 }
2566 if (obj1) {
2567 {
2568 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 }
2572 {
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = (wxPoint *)new wxPoint(arg1,arg2);
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1);
2580 return resultobj;
2581 fail:
2582 return NULL;
2583 }
2584
2585
2586 static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2587 PyObject *resultobj;
2588 wxPoint *arg1 = (wxPoint *) 0 ;
2589 PyObject * obj0 = 0 ;
2590 char *kwnames[] = {
2591 (char *) "self", NULL
2592 };
2593
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
2595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2596 {
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 delete arg1;
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 Py_INCREF(Py_None); resultobj = Py_None;
2604 return resultobj;
2605 fail:
2606 return NULL;
2607 }
2608
2609
2610 static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2611 PyObject *resultobj;
2612 wxPoint *arg1 = (wxPoint *) 0 ;
2613 wxPoint *arg2 = 0 ;
2614 bool result;
2615 wxPoint temp2 ;
2616 PyObject * obj0 = 0 ;
2617 PyObject * obj1 = 0 ;
2618 char *kwnames[] = {
2619 (char *) "self",(char *) "pt", NULL
2620 };
2621
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
2623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2624 {
2625 arg2 = &temp2;
2626 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2627 }
2628 {
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 resultobj = SWIG_PyObj_FromBool((bool)result);
2636 return resultobj;
2637 fail:
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 wxPoint *arg1 = (wxPoint *) 0 ;
2645 wxPoint *arg2 = 0 ;
2646 bool result;
2647 wxPoint temp2 ;
2648 PyObject * obj0 = 0 ;
2649 PyObject * obj1 = 0 ;
2650 char *kwnames[] = {
2651 (char *) "self",(char *) "pt", NULL
2652 };
2653
2654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
2655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2656 {
2657 arg2 = &temp2;
2658 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2659 }
2660 {
2661 PyThreadState* __tstate = wxPyBeginAllowThreads();
2662 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
2663
2664 wxPyEndAllowThreads(__tstate);
2665 if (PyErr_Occurred()) SWIG_fail;
2666 }
2667 resultobj = SWIG_PyObj_FromBool((bool)result);
2668 return resultobj;
2669 fail:
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj;
2676 wxPoint *arg1 = (wxPoint *) 0 ;
2677 wxPoint *arg2 = 0 ;
2678 wxPoint result;
2679 wxPoint temp2 ;
2680 PyObject * obj0 = 0 ;
2681 PyObject * obj1 = 0 ;
2682 char *kwnames[] = {
2683 (char *) "self",(char *) "pt", NULL
2684 };
2685
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
2687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2688 {
2689 arg2 = &temp2;
2690 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2691 }
2692 {
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (arg1)->operator +((wxPoint const &)*arg2);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 {
2700 wxPoint * resultptr;
2701 resultptr = new wxPoint((wxPoint &) result);
2702 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
2703 }
2704 return resultobj;
2705 fail:
2706 return NULL;
2707 }
2708
2709
2710 static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2711 PyObject *resultobj;
2712 wxPoint *arg1 = (wxPoint *) 0 ;
2713 wxPoint *arg2 = 0 ;
2714 wxPoint result;
2715 wxPoint temp2 ;
2716 PyObject * obj0 = 0 ;
2717 PyObject * obj1 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "self",(char *) "pt", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2724 {
2725 arg2 = &temp2;
2726 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2727 }
2728 {
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 result = (arg1)->operator -((wxPoint const &)*arg2);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 {
2736 wxPoint * resultptr;
2737 resultptr = new wxPoint((wxPoint &) result);
2738 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
2739 }
2740 return resultobj;
2741 fail:
2742 return NULL;
2743 }
2744
2745
2746 static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
2747 PyObject *resultobj;
2748 wxPoint *arg1 = (wxPoint *) 0 ;
2749 wxPoint *arg2 = 0 ;
2750 wxPoint *result;
2751 wxPoint temp2 ;
2752 PyObject * obj0 = 0 ;
2753 PyObject * obj1 = 0 ;
2754 char *kwnames[] = {
2755 (char *) "self",(char *) "pt", NULL
2756 };
2757
2758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
2759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2760 {
2761 arg2 = &temp2;
2762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2763 }
2764 {
2765 PyThreadState* __tstate = wxPyBeginAllowThreads();
2766 {
2767 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
2768 result = (wxPoint *) &_result_ref;
2769 }
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) SWIG_fail;
2773 }
2774 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
2775 return resultobj;
2776 fail:
2777 return NULL;
2778 }
2779
2780
2781 static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2782 PyObject *resultobj;
2783 wxPoint *arg1 = (wxPoint *) 0 ;
2784 wxPoint *arg2 = 0 ;
2785 wxPoint *result;
2786 wxPoint temp2 ;
2787 PyObject * obj0 = 0 ;
2788 PyObject * obj1 = 0 ;
2789 char *kwnames[] = {
2790 (char *) "self",(char *) "pt", NULL
2791 };
2792
2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
2794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2795 {
2796 arg2 = &temp2;
2797 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2798 }
2799 {
2800 PyThreadState* __tstate = wxPyBeginAllowThreads();
2801 {
2802 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
2803 result = (wxPoint *) &_result_ref;
2804 }
2805
2806 wxPyEndAllowThreads(__tstate);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
2810 return resultobj;
2811 fail:
2812 return NULL;
2813 }
2814
2815
2816 static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject *resultobj;
2818 wxPoint *arg1 = (wxPoint *) 0 ;
2819 long arg2 ;
2820 long arg3 ;
2821 PyObject * obj0 = 0 ;
2822 PyObject * obj1 = 0 ;
2823 PyObject * obj2 = 0 ;
2824 char *kwnames[] = {
2825 (char *) "self",(char *) "x",(char *) "y", NULL
2826 };
2827
2828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2830 {
2831 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
2834 {
2835 arg3 = (long) SWIG_PyObj_AsLong(obj2);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 }
2838 {
2839 PyThreadState* __tstate = wxPyBeginAllowThreads();
2840 wxPoint_Set(arg1,arg2,arg3);
2841
2842 wxPyEndAllowThreads(__tstate);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 }
2845 Py_INCREF(Py_None); resultobj = Py_None;
2846 return resultobj;
2847 fail:
2848 return NULL;
2849 }
2850
2851
2852 static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2853 PyObject *resultobj;
2854 wxPoint *arg1 = (wxPoint *) 0 ;
2855 PyObject *result;
2856 PyObject * obj0 = 0 ;
2857 char *kwnames[] = {
2858 (char *) "self", NULL
2859 };
2860
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
2862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2863 {
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 result = (PyObject *)wxPoint_Get(arg1);
2866
2867 wxPyEndAllowThreads(__tstate);
2868 if (PyErr_Occurred()) SWIG_fail;
2869 }
2870 resultobj = result;
2871 return resultobj;
2872 fail:
2873 return NULL;
2874 }
2875
2876
2877 static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
2878 PyObject *obj;
2879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2880 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
2881 Py_INCREF(obj);
2882 return Py_BuildValue((char *)"");
2883 }
2884 static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
2885 PyObject *resultobj;
2886 int arg1 = (int) 0 ;
2887 int arg2 = (int) 0 ;
2888 int arg3 = (int) 0 ;
2889 int arg4 = (int) 0 ;
2890 wxRect *result;
2891 PyObject * obj0 = 0 ;
2892 PyObject * obj1 = 0 ;
2893 PyObject * obj2 = 0 ;
2894 PyObject * obj3 = 0 ;
2895 char *kwnames[] = {
2896 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
2897 };
2898
2899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2900 if (obj0) {
2901 {
2902 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 }
2906 if (obj1) {
2907 {
2908 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 }
2912 if (obj2) {
2913 {
2914 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2915 if (PyErr_Occurred()) SWIG_fail;
2916 }
2917 }
2918 if (obj3) {
2919 {
2920 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 }
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
2932 return resultobj;
2933 fail:
2934 return NULL;
2935 }
2936
2937
2938 static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject *resultobj;
2940 wxPoint *arg1 = 0 ;
2941 wxPoint *arg2 = 0 ;
2942 wxRect *result;
2943 wxPoint temp1 ;
2944 wxPoint temp2 ;
2945 PyObject * obj0 = 0 ;
2946 PyObject * obj1 = 0 ;
2947 char *kwnames[] = {
2948 (char *) "topLeft",(char *) "bottomRight", NULL
2949 };
2950
2951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
2952 {
2953 arg1 = &temp1;
2954 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
2955 }
2956 {
2957 arg2 = &temp2;
2958 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2959 }
2960 {
2961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2962 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
2963
2964 wxPyEndAllowThreads(__tstate);
2965 if (PyErr_Occurred()) SWIG_fail;
2966 }
2967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
2968 return resultobj;
2969 fail:
2970 return NULL;
2971 }
2972
2973
2974 static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
2975 PyObject *resultobj;
2976 wxPoint *arg1 = 0 ;
2977 wxSize *arg2 = 0 ;
2978 wxRect *result;
2979 wxPoint temp1 ;
2980 wxSize temp2 ;
2981 PyObject * obj0 = 0 ;
2982 PyObject * obj1 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "pos",(char *) "size", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
2988 {
2989 arg1 = &temp1;
2990 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
2991 }
2992 {
2993 arg2 = &temp2;
2994 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2995 }
2996 {
2997 PyThreadState* __tstate = wxPyBeginAllowThreads();
2998 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
2999
3000 wxPyEndAllowThreads(__tstate);
3001 if (PyErr_Occurred()) SWIG_fail;
3002 }
3003 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
3004 return resultobj;
3005 fail:
3006 return NULL;
3007 }
3008
3009
3010 static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3011 PyObject *resultobj;
3012 wxRect *arg1 = (wxRect *) 0 ;
3013 PyObject * obj0 = 0 ;
3014 char *kwnames[] = {
3015 (char *) "self", NULL
3016 };
3017
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3020 {
3021 PyThreadState* __tstate = wxPyBeginAllowThreads();
3022 delete arg1;
3023
3024 wxPyEndAllowThreads(__tstate);
3025 if (PyErr_Occurred()) SWIG_fail;
3026 }
3027 Py_INCREF(Py_None); resultobj = Py_None;
3028 return resultobj;
3029 fail:
3030 return NULL;
3031 }
3032
3033
3034 static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3035 PyObject *resultobj;
3036 wxRect *arg1 = (wxRect *) 0 ;
3037 int result;
3038 PyObject * obj0 = 0 ;
3039 char *kwnames[] = {
3040 (char *) "self", NULL
3041 };
3042
3043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 result = (int)((wxRect const *)arg1)->GetX();
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 resultobj = SWIG_PyObj_FromInt((int)result);
3053 return resultobj;
3054 fail:
3055 return NULL;
3056 }
3057
3058
3059 static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3060 PyObject *resultobj;
3061 wxRect *arg1 = (wxRect *) 0 ;
3062 int arg2 ;
3063 PyObject * obj0 = 0 ;
3064 PyObject * obj1 = 0 ;
3065 char *kwnames[] = {
3066 (char *) "self",(char *) "x", NULL
3067 };
3068
3069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3071 {
3072 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 {
3076 PyThreadState* __tstate = wxPyBeginAllowThreads();
3077 (arg1)->SetX(arg2);
3078
3079 wxPyEndAllowThreads(__tstate);
3080 if (PyErr_Occurred()) SWIG_fail;
3081 }
3082 Py_INCREF(Py_None); resultobj = Py_None;
3083 return resultobj;
3084 fail:
3085 return NULL;
3086 }
3087
3088
3089 static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3090 PyObject *resultobj;
3091 wxRect *arg1 = (wxRect *) 0 ;
3092 int result;
3093 PyObject * obj0 = 0 ;
3094 char *kwnames[] = {
3095 (char *) "self", NULL
3096 };
3097
3098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3100 {
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 result = (int)(arg1)->GetY();
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) SWIG_fail;
3106 }
3107 resultobj = SWIG_PyObj_FromInt((int)result);
3108 return resultobj;
3109 fail:
3110 return NULL;
3111 }
3112
3113
3114 static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3115 PyObject *resultobj;
3116 wxRect *arg1 = (wxRect *) 0 ;
3117 int arg2 ;
3118 PyObject * obj0 = 0 ;
3119 PyObject * obj1 = 0 ;
3120 char *kwnames[] = {
3121 (char *) "self",(char *) "y", NULL
3122 };
3123
3124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3126 {
3127 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3128 if (PyErr_Occurred()) SWIG_fail;
3129 }
3130 {
3131 PyThreadState* __tstate = wxPyBeginAllowThreads();
3132 (arg1)->SetY(arg2);
3133
3134 wxPyEndAllowThreads(__tstate);
3135 if (PyErr_Occurred()) SWIG_fail;
3136 }
3137 Py_INCREF(Py_None); resultobj = Py_None;
3138 return resultobj;
3139 fail:
3140 return NULL;
3141 }
3142
3143
3144 static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject *resultobj;
3146 wxRect *arg1 = (wxRect *) 0 ;
3147 int result;
3148 PyObject * obj0 = 0 ;
3149 char *kwnames[] = {
3150 (char *) "self", NULL
3151 };
3152
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3155 {
3156 PyThreadState* __tstate = wxPyBeginAllowThreads();
3157 result = (int)((wxRect const *)arg1)->GetWidth();
3158
3159 wxPyEndAllowThreads(__tstate);
3160 if (PyErr_Occurred()) SWIG_fail;
3161 }
3162 resultobj = SWIG_PyObj_FromInt((int)result);
3163 return resultobj;
3164 fail:
3165 return NULL;
3166 }
3167
3168
3169 static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3170 PyObject *resultobj;
3171 wxRect *arg1 = (wxRect *) 0 ;
3172 int arg2 ;
3173 PyObject * obj0 = 0 ;
3174 PyObject * obj1 = 0 ;
3175 char *kwnames[] = {
3176 (char *) "self",(char *) "w", NULL
3177 };
3178
3179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3181 {
3182 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3183 if (PyErr_Occurred()) SWIG_fail;
3184 }
3185 {
3186 PyThreadState* __tstate = wxPyBeginAllowThreads();
3187 (arg1)->SetWidth(arg2);
3188
3189 wxPyEndAllowThreads(__tstate);
3190 if (PyErr_Occurred()) SWIG_fail;
3191 }
3192 Py_INCREF(Py_None); resultobj = Py_None;
3193 return resultobj;
3194 fail:
3195 return NULL;
3196 }
3197
3198
3199 static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3200 PyObject *resultobj;
3201 wxRect *arg1 = (wxRect *) 0 ;
3202 int result;
3203 PyObject * obj0 = 0 ;
3204 char *kwnames[] = {
3205 (char *) "self", NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = (int)((wxRect const *)arg1)->GetHeight();
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 resultobj = SWIG_PyObj_FromInt((int)result);
3218 return resultobj;
3219 fail:
3220 return NULL;
3221 }
3222
3223
3224 static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject *resultobj;
3226 wxRect *arg1 = (wxRect *) 0 ;
3227 int arg2 ;
3228 PyObject * obj0 = 0 ;
3229 PyObject * obj1 = 0 ;
3230 char *kwnames[] = {
3231 (char *) "self",(char *) "h", NULL
3232 };
3233
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3236 {
3237 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3238 if (PyErr_Occurred()) SWIG_fail;
3239 }
3240 {
3241 PyThreadState* __tstate = wxPyBeginAllowThreads();
3242 (arg1)->SetHeight(arg2);
3243
3244 wxPyEndAllowThreads(__tstate);
3245 if (PyErr_Occurred()) SWIG_fail;
3246 }
3247 Py_INCREF(Py_None); resultobj = Py_None;
3248 return resultobj;
3249 fail:
3250 return NULL;
3251 }
3252
3253
3254 static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3255 PyObject *resultobj;
3256 wxRect *arg1 = (wxRect *) 0 ;
3257 wxPoint result;
3258 PyObject * obj0 = 0 ;
3259 char *kwnames[] = {
3260 (char *) "self", NULL
3261 };
3262
3263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 result = ((wxRect const *)arg1)->GetPosition();
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) SWIG_fail;
3271 }
3272 {
3273 wxPoint * resultptr;
3274 resultptr = new wxPoint((wxPoint &) result);
3275 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3276 }
3277 return resultobj;
3278 fail:
3279 return NULL;
3280 }
3281
3282
3283 static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject *resultobj;
3285 wxRect *arg1 = (wxRect *) 0 ;
3286 wxPoint *arg2 = 0 ;
3287 wxPoint temp2 ;
3288 PyObject * obj0 = 0 ;
3289 PyObject * obj1 = 0 ;
3290 char *kwnames[] = {
3291 (char *) "self",(char *) "p", NULL
3292 };
3293
3294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3296 {
3297 arg2 = &temp2;
3298 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3299 }
3300 {
3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
3302 (arg1)->SetPosition((wxPoint const &)*arg2);
3303
3304 wxPyEndAllowThreads(__tstate);
3305 if (PyErr_Occurred()) SWIG_fail;
3306 }
3307 Py_INCREF(Py_None); resultobj = Py_None;
3308 return resultobj;
3309 fail:
3310 return NULL;
3311 }
3312
3313
3314 static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3315 PyObject *resultobj;
3316 wxRect *arg1 = (wxRect *) 0 ;
3317 wxSize result;
3318 PyObject * obj0 = 0 ;
3319 char *kwnames[] = {
3320 (char *) "self", NULL
3321 };
3322
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
3327 result = ((wxRect const *)arg1)->GetSize();
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) SWIG_fail;
3331 }
3332 {
3333 wxSize * resultptr;
3334 resultptr = new wxSize((wxSize &) result);
3335 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3336 }
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject *resultobj;
3345 wxRect *arg1 = (wxRect *) 0 ;
3346 wxSize *arg2 = 0 ;
3347 wxSize temp2 ;
3348 PyObject * obj0 = 0 ;
3349 PyObject * obj1 = 0 ;
3350 char *kwnames[] = {
3351 (char *) "self",(char *) "s", NULL
3352 };
3353
3354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3356 {
3357 arg2 = &temp2;
3358 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3359 }
3360 {
3361 PyThreadState* __tstate = wxPyBeginAllowThreads();
3362 (arg1)->SetSize((wxSize const &)*arg2);
3363
3364 wxPyEndAllowThreads(__tstate);
3365 if (PyErr_Occurred()) SWIG_fail;
3366 }
3367 Py_INCREF(Py_None); resultobj = Py_None;
3368 return resultobj;
3369 fail:
3370 return NULL;
3371 }
3372
3373
3374 static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3375 PyObject *resultobj;
3376 wxRect *arg1 = (wxRect *) 0 ;
3377 wxPoint result;
3378 PyObject * obj0 = 0 ;
3379 char *kwnames[] = {
3380 (char *) "self", NULL
3381 };
3382
3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3385 {
3386 PyThreadState* __tstate = wxPyBeginAllowThreads();
3387 result = ((wxRect const *)arg1)->GetTopLeft();
3388
3389 wxPyEndAllowThreads(__tstate);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 }
3392 {
3393 wxPoint * resultptr;
3394 resultptr = new wxPoint((wxPoint &) result);
3395 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3396 }
3397 return resultobj;
3398 fail:
3399 return NULL;
3400 }
3401
3402
3403 static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj;
3405 wxRect *arg1 = (wxRect *) 0 ;
3406 wxPoint *arg2 = 0 ;
3407 wxPoint temp2 ;
3408 PyObject * obj0 = 0 ;
3409 PyObject * obj1 = 0 ;
3410 char *kwnames[] = {
3411 (char *) "self",(char *) "p", NULL
3412 };
3413
3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3416 {
3417 arg2 = &temp2;
3418 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3419 }
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 Py_INCREF(Py_None); resultobj = Py_None;
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxRect *arg1 = (wxRect *) 0 ;
3437 wxPoint result;
3438 PyObject * obj0 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "self", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 result = ((wxRect const *)arg1)->GetBottomRight();
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 {
3453 wxPoint * resultptr;
3454 resultptr = new wxPoint((wxPoint &) result);
3455 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3456 }
3457 return resultobj;
3458 fail:
3459 return NULL;
3460 }
3461
3462
3463 static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3464 PyObject *resultobj;
3465 wxRect *arg1 = (wxRect *) 0 ;
3466 wxPoint *arg2 = 0 ;
3467 wxPoint temp2 ;
3468 PyObject * obj0 = 0 ;
3469 PyObject * obj1 = 0 ;
3470 char *kwnames[] = {
3471 (char *) "self",(char *) "p", NULL
3472 };
3473
3474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3476 {
3477 arg2 = &temp2;
3478 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3479 }
3480 {
3481 PyThreadState* __tstate = wxPyBeginAllowThreads();
3482 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3483
3484 wxPyEndAllowThreads(__tstate);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 Py_INCREF(Py_None); resultobj = Py_None;
3488 return resultobj;
3489 fail:
3490 return NULL;
3491 }
3492
3493
3494 static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3495 PyObject *resultobj;
3496 wxRect *arg1 = (wxRect *) 0 ;
3497 int result;
3498 PyObject * obj0 = 0 ;
3499 char *kwnames[] = {
3500 (char *) "self", NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3505 {
3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
3507 result = (int)((wxRect const *)arg1)->GetLeft();
3508
3509 wxPyEndAllowThreads(__tstate);
3510 if (PyErr_Occurred()) SWIG_fail;
3511 }
3512 resultobj = SWIG_PyObj_FromInt((int)result);
3513 return resultobj;
3514 fail:
3515 return NULL;
3516 }
3517
3518
3519 static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj;
3521 wxRect *arg1 = (wxRect *) 0 ;
3522 int result;
3523 PyObject * obj0 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "self", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (int)((wxRect const *)arg1)->GetTop();
3533
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 resultobj = SWIG_PyObj_FromInt((int)result);
3538 return resultobj;
3539 fail:
3540 return NULL;
3541 }
3542
3543
3544 static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3545 PyObject *resultobj;
3546 wxRect *arg1 = (wxRect *) 0 ;
3547 int result;
3548 PyObject * obj0 = 0 ;
3549 char *kwnames[] = {
3550 (char *) "self", NULL
3551 };
3552
3553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 result = (int)((wxRect const *)arg1)->GetBottom();
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 resultobj = SWIG_PyObj_FromInt((int)result);
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj;
3571 wxRect *arg1 = (wxRect *) 0 ;
3572 int result;
3573 PyObject * obj0 = 0 ;
3574 char *kwnames[] = {
3575 (char *) "self", NULL
3576 };
3577
3578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
3579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (int)((wxRect const *)arg1)->GetRight();
3583
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 resultobj = SWIG_PyObj_FromInt((int)result);
3588 return resultobj;
3589 fail:
3590 return NULL;
3591 }
3592
3593
3594 static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject *resultobj;
3596 wxRect *arg1 = (wxRect *) 0 ;
3597 int arg2 ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 char *kwnames[] = {
3601 (char *) "self",(char *) "left", NULL
3602 };
3603
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
3605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3606 {
3607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 {
3611 PyThreadState* __tstate = wxPyBeginAllowThreads();
3612 (arg1)->SetLeft(arg2);
3613
3614 wxPyEndAllowThreads(__tstate);
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 Py_INCREF(Py_None); resultobj = Py_None;
3618 return resultobj;
3619 fail:
3620 return NULL;
3621 }
3622
3623
3624 static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3625 PyObject *resultobj;
3626 wxRect *arg1 = (wxRect *) 0 ;
3627 int arg2 ;
3628 PyObject * obj0 = 0 ;
3629 PyObject * obj1 = 0 ;
3630 char *kwnames[] = {
3631 (char *) "self",(char *) "right", NULL
3632 };
3633
3634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
3635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3636 {
3637 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3638 if (PyErr_Occurred()) SWIG_fail;
3639 }
3640 {
3641 PyThreadState* __tstate = wxPyBeginAllowThreads();
3642 (arg1)->SetRight(arg2);
3643
3644 wxPyEndAllowThreads(__tstate);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 Py_INCREF(Py_None); resultobj = Py_None;
3648 return resultobj;
3649 fail:
3650 return NULL;
3651 }
3652
3653
3654 static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3655 PyObject *resultobj;
3656 wxRect *arg1 = (wxRect *) 0 ;
3657 int arg2 ;
3658 PyObject * obj0 = 0 ;
3659 PyObject * obj1 = 0 ;
3660 char *kwnames[] = {
3661 (char *) "self",(char *) "top", NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
3665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3666 {
3667 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3668 if (PyErr_Occurred()) SWIG_fail;
3669 }
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 (arg1)->SetTop(arg2);
3673
3674 wxPyEndAllowThreads(__tstate);
3675 if (PyErr_Occurred()) SWIG_fail;
3676 }
3677 Py_INCREF(Py_None); resultobj = Py_None;
3678 return resultobj;
3679 fail:
3680 return NULL;
3681 }
3682
3683
3684 static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3685 PyObject *resultobj;
3686 wxRect *arg1 = (wxRect *) 0 ;
3687 int arg2 ;
3688 PyObject * obj0 = 0 ;
3689 PyObject * obj1 = 0 ;
3690 char *kwnames[] = {
3691 (char *) "self",(char *) "bottom", NULL
3692 };
3693
3694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
3695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3696 {
3697 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 (arg1)->SetBottom(arg2);
3703
3704 wxPyEndAllowThreads(__tstate);
3705 if (PyErr_Occurred()) SWIG_fail;
3706 }
3707 Py_INCREF(Py_None); resultobj = Py_None;
3708 return resultobj;
3709 fail:
3710 return NULL;
3711 }
3712
3713
3714 static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
3715 PyObject *resultobj;
3716 wxRect *arg1 = (wxRect *) 0 ;
3717 int arg2 ;
3718 int arg3 ;
3719 wxRect *result;
3720 PyObject * obj0 = 0 ;
3721 PyObject * obj1 = 0 ;
3722 PyObject * obj2 = 0 ;
3723 char *kwnames[] = {
3724 (char *) "self",(char *) "dx",(char *) "dy", NULL
3725 };
3726
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
3728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3729 {
3730 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 {
3734 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 {
3740 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
3741 result = (wxRect *) &_result_ref;
3742 }
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxRect *arg1 = (wxRect *) 0 ;
3757 int arg2 ;
3758 int arg3 ;
3759 wxRect *result;
3760 PyObject * obj0 = 0 ;
3761 PyObject * obj1 = 0 ;
3762 PyObject * obj2 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self",(char *) "dx",(char *) "dy", NULL
3765 };
3766
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3769 {
3770 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 {
3774 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 {
3780 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
3781 result = (wxRect *) &_result_ref;
3782 }
3783
3784 wxPyEndAllowThreads(__tstate);
3785 if (PyErr_Occurred()) SWIG_fail;
3786 }
3787 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3788 return resultobj;
3789 fail:
3790 return NULL;
3791 }
3792
3793
3794 static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj;
3796 wxRect *arg1 = (wxRect *) 0 ;
3797 int arg2 ;
3798 int arg3 ;
3799 PyObject * obj0 = 0 ;
3800 PyObject * obj1 = 0 ;
3801 PyObject * obj2 = 0 ;
3802 char *kwnames[] = {
3803 (char *) "self",(char *) "dx",(char *) "dy", NULL
3804 };
3805
3806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
3807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3808 {
3809 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3810 if (PyErr_Occurred()) SWIG_fail;
3811 }
3812 {
3813 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 {
3817 PyThreadState* __tstate = wxPyBeginAllowThreads();
3818 (arg1)->Offset(arg2,arg3);
3819
3820 wxPyEndAllowThreads(__tstate);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 }
3823 Py_INCREF(Py_None); resultobj = Py_None;
3824 return resultobj;
3825 fail:
3826 return NULL;
3827 }
3828
3829
3830 static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3831 PyObject *resultobj;
3832 wxRect *arg1 = (wxRect *) 0 ;
3833 wxPoint *arg2 = 0 ;
3834 wxPoint temp2 ;
3835 PyObject * obj0 = 0 ;
3836 PyObject * obj1 = 0 ;
3837 char *kwnames[] = {
3838 (char *) "self",(char *) "pt", NULL
3839 };
3840
3841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
3842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3843 {
3844 arg2 = &temp2;
3845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3846 }
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 (arg1)->Offset((wxPoint const &)*arg2);
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 Py_INCREF(Py_None); resultobj = Py_None;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxRect *arg1 = (wxRect *) 0 ;
3864 wxRect *arg2 = 0 ;
3865 wxRect *result;
3866 wxRect temp2 ;
3867 PyObject * obj0 = 0 ;
3868 PyObject * obj1 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "rect", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3875 {
3876 arg2 = &temp2;
3877 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3878 }
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 {
3882 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
3883 result = (wxRect *) &_result_ref;
3884 }
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3890 return resultobj;
3891 fail:
3892 return NULL;
3893 }
3894
3895
3896 static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxRect *arg1 = (wxRect *) 0 ;
3899 wxRect *arg2 = 0 ;
3900 wxRect result;
3901 wxRect temp2 ;
3902 PyObject * obj0 = 0 ;
3903 PyObject * obj1 = 0 ;
3904 char *kwnames[] = {
3905 (char *) "self",(char *) "rect", NULL
3906 };
3907
3908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
3909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3910 {
3911 arg2 = &temp2;
3912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3913 }
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 {
3922 wxRect * resultptr;
3923 resultptr = new wxRect((wxRect &) result);
3924 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
3925 }
3926 return resultobj;
3927 fail:
3928 return NULL;
3929 }
3930
3931
3932 static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3933 PyObject *resultobj;
3934 wxRect *arg1 = (wxRect *) 0 ;
3935 wxRect *arg2 = 0 ;
3936 wxRect *result;
3937 wxRect temp2 ;
3938 PyObject * obj0 = 0 ;
3939 PyObject * obj1 = 0 ;
3940 char *kwnames[] = {
3941 (char *) "self",(char *) "rect", NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
3945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3946 {
3947 arg2 = &temp2;
3948 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3949 }
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 {
3953 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
3954 result = (wxRect *) &_result_ref;
3955 }
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxRect *arg1 = (wxRect *) 0 ;
3970 wxRect *arg2 = 0 ;
3971 bool result;
3972 wxRect temp2 ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 char *kwnames[] = {
3976 (char *) "self",(char *) "rect", NULL
3977 };
3978
3979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
3980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3981 {
3982 arg2 = &temp2;
3983 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3984 }
3985 {
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
3988
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 resultobj = SWIG_PyObj_FromBool((bool)result);
3993 return resultobj;
3994 fail:
3995 return NULL;
3996 }
3997
3998
3999 static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4000 PyObject *resultobj;
4001 wxRect *arg1 = (wxRect *) 0 ;
4002 wxRect *arg2 = 0 ;
4003 bool result;
4004 wxRect temp2 ;
4005 PyObject * obj0 = 0 ;
4006 PyObject * obj1 = 0 ;
4007 char *kwnames[] = {
4008 (char *) "self",(char *) "rect", NULL
4009 };
4010
4011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4013 {
4014 arg2 = &temp2;
4015 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4016 }
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4020
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 resultobj = SWIG_PyObj_FromBool((bool)result);
4025 return resultobj;
4026 fail:
4027 return NULL;
4028 }
4029
4030
4031 static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4032 PyObject *resultobj;
4033 wxRect *arg1 = (wxRect *) 0 ;
4034 int arg2 ;
4035 int arg3 ;
4036 bool result;
4037 PyObject * obj0 = 0 ;
4038 PyObject * obj1 = 0 ;
4039 PyObject * obj2 = 0 ;
4040 char *kwnames[] = {
4041 (char *) "self",(char *) "x",(char *) "y", NULL
4042 };
4043
4044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4046 {
4047 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_PyObj_FromBool((bool)result);
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj;
4070 wxRect *arg1 = (wxRect *) 0 ;
4071 wxPoint *arg2 = 0 ;
4072 bool result;
4073 wxPoint temp2 ;
4074 PyObject * obj0 = 0 ;
4075 PyObject * obj1 = 0 ;
4076 char *kwnames[] = {
4077 (char *) "self",(char *) "pt", NULL
4078 };
4079
4080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4082 {
4083 arg2 = &temp2;
4084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4085 }
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_PyObj_FromBool((bool)result);
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxRect *arg1 = (wxRect *) 0 ;
4103 wxRect *arg2 = 0 ;
4104 bool result;
4105 wxRect temp2 ;
4106 PyObject * obj0 = 0 ;
4107 PyObject * obj1 = 0 ;
4108 char *kwnames[] = {
4109 (char *) "self",(char *) "rect", NULL
4110 };
4111
4112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4114 {
4115 arg2 = &temp2;
4116 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4117 }
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 resultobj = SWIG_PyObj_FromBool((bool)result);
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj;
4134 wxRect *arg1 = (wxRect *) 0 ;
4135 int arg2 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self",(char *) "x", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144 {
4145 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 if (arg1) (arg1)->x = arg2;
4149
4150 Py_INCREF(Py_None); resultobj = Py_None;
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxRect *arg1 = (wxRect *) 0 ;
4160 int result;
4161 PyObject * obj0 = 0 ;
4162 char *kwnames[] = {
4163 (char *) "self", NULL
4164 };
4165
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4168 result = (int) ((arg1)->x);
4169
4170 resultobj = SWIG_PyObj_FromInt((int)result);
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj;
4179 wxRect *arg1 = (wxRect *) 0 ;
4180 int arg2 ;
4181 PyObject * obj0 = 0 ;
4182 PyObject * obj1 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "y", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4189 {
4190 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 if (arg1) (arg1)->y = arg2;
4194
4195 Py_INCREF(Py_None); resultobj = Py_None;
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj;
4204 wxRect *arg1 = (wxRect *) 0 ;
4205 int result;
4206 PyObject * obj0 = 0 ;
4207 char *kwnames[] = {
4208 (char *) "self", NULL
4209 };
4210
4211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4213 result = (int) ((arg1)->y);
4214
4215 resultobj = SWIG_PyObj_FromInt((int)result);
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj;
4224 wxRect *arg1 = (wxRect *) 0 ;
4225 int arg2 ;
4226 PyObject * obj0 = 0 ;
4227 PyObject * obj1 = 0 ;
4228 char *kwnames[] = {
4229 (char *) "self",(char *) "width", NULL
4230 };
4231
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4234 {
4235 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 if (arg1) (arg1)->width = arg2;
4239
4240 Py_INCREF(Py_None); resultobj = Py_None;
4241 return resultobj;
4242 fail:
4243 return NULL;
4244 }
4245
4246
4247 static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj;
4249 wxRect *arg1 = (wxRect *) 0 ;
4250 int result;
4251 PyObject * obj0 = 0 ;
4252 char *kwnames[] = {
4253 (char *) "self", NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4258 result = (int) ((arg1)->width);
4259
4260 resultobj = SWIG_PyObj_FromInt((int)result);
4261 return resultobj;
4262 fail:
4263 return NULL;
4264 }
4265
4266
4267 static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj;
4269 wxRect *arg1 = (wxRect *) 0 ;
4270 int arg2 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 char *kwnames[] = {
4274 (char *) "self",(char *) "height", NULL
4275 };
4276
4277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4279 {
4280 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 if (arg1) (arg1)->height = arg2;
4284
4285 Py_INCREF(Py_None); resultobj = Py_None;
4286 return resultobj;
4287 fail:
4288 return NULL;
4289 }
4290
4291
4292 static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject *resultobj;
4294 wxRect *arg1 = (wxRect *) 0 ;
4295 int result;
4296 PyObject * obj0 = 0 ;
4297 char *kwnames[] = {
4298 (char *) "self", NULL
4299 };
4300
4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4303 result = (int) ((arg1)->height);
4304
4305 resultobj = SWIG_PyObj_FromInt((int)result);
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxRect *arg1 = (wxRect *) 0 ;
4315 int arg2 = (int) 0 ;
4316 int arg3 = (int) 0 ;
4317 int arg4 = (int) 0 ;
4318 int arg5 = (int) 0 ;
4319 PyObject * obj0 = 0 ;
4320 PyObject * obj1 = 0 ;
4321 PyObject * obj2 = 0 ;
4322 PyObject * obj3 = 0 ;
4323 PyObject * obj4 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4330 if (obj1) {
4331 {
4332 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 }
4336 if (obj2) {
4337 {
4338 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 }
4342 if (obj3) {
4343 {
4344 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 }
4348 if (obj4) {
4349 {
4350 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 }
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 Py_INCREF(Py_None); resultobj = Py_None;
4362 return resultobj;
4363 fail:
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxRect *arg1 = (wxRect *) 0 ;
4371 PyObject *result;
4372 PyObject * obj0 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (PyObject *)wxRect_Get(arg1);
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 resultobj = result;
4387 return resultobj;
4388 fail:
4389 return NULL;
4390 }
4391
4392
4393 static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4394 PyObject *obj;
4395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4396 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4397 Py_INCREF(obj);
4398 return Py_BuildValue((char *)"");
4399 }
4400 static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxRect *arg1 = (wxRect *) 0 ;
4403 wxRect *arg2 = (wxRect *) 0 ;
4404 PyObject *result;
4405 PyObject * obj0 = 0 ;
4406 PyObject * obj1 = 0 ;
4407 char *kwnames[] = {
4408 (char *) "r1",(char *) "r2", NULL
4409 };
4410
4411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4413 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 result = (PyObject *)wxIntersectRect(arg1,arg2);
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 resultobj = result;
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj;
4430 double arg1 = (double) 0.0 ;
4431 double arg2 = (double) 0.0 ;
4432 wxPoint2D *result;
4433 PyObject * obj0 = 0 ;
4434 PyObject * obj1 = 0 ;
4435 char *kwnames[] = {
4436 (char *) "x",(char *) "y", NULL
4437 };
4438
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4440 if (obj0) {
4441 {
4442 arg1 = (double) SWIG_PyObj_AsDouble(obj0);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 }
4446 if (obj1) {
4447 {
4448 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 }
4452 {
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4455
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4467 PyObject *resultobj;
4468 wxPoint2D *arg1 = 0 ;
4469 wxPoint2D *result;
4470 wxPoint2D temp1 ;
4471 PyObject * obj0 = 0 ;
4472 char *kwnames[] = {
4473 (char *) "pt", NULL
4474 };
4475
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4477 {
4478 arg1 = &temp1;
4479 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4480 }
4481 {
4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
4483 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4484
4485 wxPyEndAllowThreads(__tstate);
4486 if (PyErr_Occurred()) SWIG_fail;
4487 }
4488 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj;
4497 wxPoint *arg1 = 0 ;
4498 wxPoint2D *result;
4499 wxPoint temp1 ;
4500 PyObject * obj0 = 0 ;
4501 char *kwnames[] = {
4502 (char *) "pt", NULL
4503 };
4504
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4506 {
4507 arg1 = &temp1;
4508 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4509 }
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) SWIG_fail;
4516 }
4517 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4518 return resultobj;
4519 fail:
4520 return NULL;
4521 }
4522
4523
4524 static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4525 PyObject *resultobj;
4526 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4527 int *arg2 = (int *) 0 ;
4528 int *arg3 = (int *) 0 ;
4529 int temp2 ;
4530 int temp3 ;
4531 PyObject * obj0 = 0 ;
4532 char *kwnames[] = {
4533 (char *) "self", NULL
4534 };
4535
4536 arg2 = &temp2;
4537 arg3 = &temp3;
4538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 Py_INCREF(Py_None); resultobj = Py_None;
4548 {
4549 PyObject *o = PyInt_FromLong((long) (*arg2));
4550 resultobj = t_output_helper(resultobj,o);
4551 }
4552 {
4553 PyObject *o = PyInt_FromLong((long) (*arg3));
4554 resultobj = t_output_helper(resultobj,o);
4555 }
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4565 int *arg2 = (int *) 0 ;
4566 int *arg3 = (int *) 0 ;
4567 int temp2 ;
4568 int temp3 ;
4569 PyObject * obj0 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self", NULL
4572 };
4573
4574 arg2 = &temp2;
4575 arg3 = &temp3;
4576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
4577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4578 {
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
4581
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 Py_INCREF(Py_None); resultobj = Py_None;
4586 {
4587 PyObject *o = PyInt_FromLong((long) (*arg2));
4588 resultobj = t_output_helper(resultobj,o);
4589 }
4590 {
4591 PyObject *o = PyInt_FromLong((long) (*arg3));
4592 resultobj = t_output_helper(resultobj,o);
4593 }
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4603 double result;
4604 PyObject * obj0 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "self", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
4610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 resultobj = SWIG_PyObj_FromDouble((double)result);
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj;
4627 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4628 double result;
4629 PyObject * obj0 = 0 ;
4630 char *kwnames[] = {
4631 (char *) "self", NULL
4632 };
4633
4634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
4635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4636 {
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
4639
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 resultobj = SWIG_PyObj_FromDouble((double)result);
4644 return resultobj;
4645 fail:
4646 return NULL;
4647 }
4648
4649
4650 static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
4651 PyObject *resultobj;
4652 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4653 double arg2 ;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self",(char *) "length", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4662 {
4663 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4664 if (PyErr_Occurred()) SWIG_fail;
4665 }
4666 {
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 (arg1)->SetVectorLength(arg2);
4669
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 Py_INCREF(Py_None); resultobj = Py_None;
4674 return resultobj;
4675 fail:
4676 return NULL;
4677 }
4678
4679
4680 static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
4681 PyObject *resultobj;
4682 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4683 double arg2 ;
4684 PyObject * obj0 = 0 ;
4685 PyObject * obj1 = 0 ;
4686 char *kwnames[] = {
4687 (char *) "self",(char *) "degrees", NULL
4688 };
4689
4690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
4691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4692 {
4693 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 (arg1)->SetVectorAngle(arg2);
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 Py_INCREF(Py_None); resultobj = Py_None;
4704 return resultobj;
4705 fail:
4706 return NULL;
4707 }
4708
4709
4710 static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
4711 PyObject *resultobj;
4712 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4713 wxPoint2D *arg2 = 0 ;
4714 double result;
4715 wxPoint2D temp2 ;
4716 PyObject * obj0 = 0 ;
4717 PyObject * obj1 = 0 ;
4718 char *kwnames[] = {
4719 (char *) "self",(char *) "pt", NULL
4720 };
4721
4722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
4723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4724 {
4725 arg2 = &temp2;
4726 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4727 }
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = SWIG_PyObj_FromDouble((double)result);
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4745 wxPoint2D *arg2 = 0 ;
4746 double result;
4747 wxPoint2D temp2 ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "self",(char *) "pt", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
4755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4756 {
4757 arg2 = &temp2;
4758 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4759 }
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_PyObj_FromDouble((double)result);
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4777 wxPoint2D *arg2 = 0 ;
4778 double result;
4779 wxPoint2D temp2 ;
4780 PyObject * obj0 = 0 ;
4781 PyObject * obj1 = 0 ;
4782 char *kwnames[] = {
4783 (char *) "self",(char *) "vec", NULL
4784 };
4785
4786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
4787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4788 {
4789 arg2 = &temp2;
4790 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4791 }
4792 {
4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
4794 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
4795
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 resultobj = SWIG_PyObj_FromDouble((double)result);
4800 return resultobj;
4801 fail:
4802 return NULL;
4803 }
4804
4805
4806 static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4807 PyObject *resultobj;
4808 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4809 wxPoint2D *arg2 = 0 ;
4810 double result;
4811 wxPoint2D temp2 ;
4812 PyObject * obj0 = 0 ;
4813 PyObject * obj1 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "self",(char *) "vec", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
4819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4820 {
4821 arg2 = &temp2;
4822 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4823 }
4824 {
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
4827
4828 wxPyEndAllowThreads(__tstate);
4829 if (PyErr_Occurred()) SWIG_fail;
4830 }
4831 resultobj = SWIG_PyObj_FromDouble((double)result);
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj;
4840 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4841 wxPoint2D result;
4842 PyObject * obj0 = 0 ;
4843 char *kwnames[] = {
4844 (char *) "self", NULL
4845 };
4846
4847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
4848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (arg1)->operator -();
4852
4853 wxPyEndAllowThreads(__tstate);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 {
4857 wxPoint2D * resultptr;
4858 resultptr = new wxPoint2D((wxPoint2D &) result);
4859 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1);
4860 }
4861 return resultobj;
4862 fail:
4863 return NULL;
4864 }
4865
4866
4867 static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject *resultobj;
4869 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4870 wxPoint2D *arg2 = 0 ;
4871 wxPoint2D *result;
4872 wxPoint2D temp2 ;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 char *kwnames[] = {
4876 (char *) "self",(char *) "pt", NULL
4877 };
4878
4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
4880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4881 {
4882 arg2 = &temp2;
4883 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4884 }
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 {
4888 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
4889 result = (wxPoint2D *) &_result_ref;
4890 }
4891
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject *resultobj;
4904 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4905 wxPoint2D *arg2 = 0 ;
4906 wxPoint2D *result;
4907 wxPoint2D temp2 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char *kwnames[] = {
4911 (char *) "self",(char *) "pt", NULL
4912 };
4913
4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
4915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4916 {
4917 arg2 = &temp2;
4918 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4919 }
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 {
4923 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
4924 result = (wxPoint2D *) &_result_ref;
4925 }
4926
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject *resultobj;
4939 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4940 wxPoint2D *arg2 = 0 ;
4941 wxPoint2D *result;
4942 wxPoint2D temp2 ;
4943 PyObject * obj0 = 0 ;
4944 PyObject * obj1 = 0 ;
4945 char *kwnames[] = {
4946 (char *) "self",(char *) "pt", NULL
4947 };
4948
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
4950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4951 {
4952 arg2 = &temp2;
4953 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4954 }
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 {
4958 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
4959 result = (wxPoint2D *) &_result_ref;
4960 }
4961
4962 wxPyEndAllowThreads(__tstate);
4963 if (PyErr_Occurred()) SWIG_fail;
4964 }
4965 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4966 return resultobj;
4967 fail:
4968 return NULL;
4969 }
4970
4971
4972 static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
4973 PyObject *resultobj;
4974 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4975 wxPoint2D *arg2 = 0 ;
4976 wxPoint2D *result;
4977 wxPoint2D temp2 ;
4978 PyObject * obj0 = 0 ;
4979 PyObject * obj1 = 0 ;
4980 char *kwnames[] = {
4981 (char *) "self",(char *) "pt", NULL
4982 };
4983
4984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
4985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4986 {
4987 arg2 = &temp2;
4988 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 {
4993 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
4994 result = (wxPoint2D *) &_result_ref;
4995 }
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
5001 return resultobj;
5002 fail:
5003 return NULL;
5004 }
5005
5006
5007 static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj;
5009 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5010 wxPoint2D *arg2 = 0 ;
5011 bool result;
5012 wxPoint2D temp2 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "pt", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5021 {
5022 arg2 = &temp2;
5023 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = SWIG_PyObj_FromBool((bool)result);
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5042 wxPoint2D *arg2 = 0 ;
5043 bool result;
5044 wxPoint2D temp2 ;
5045 PyObject * obj0 = 0 ;
5046 PyObject * obj1 = 0 ;
5047 char *kwnames[] = {
5048 (char *) "self",(char *) "pt", NULL
5049 };
5050
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5053 {
5054 arg2 = &temp2;
5055 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 resultobj = SWIG_PyObj_FromBool((bool)result);
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5074 double arg2 ;
5075 PyObject * obj0 = 0 ;
5076 PyObject * obj1 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self",(char *) "m_x", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5083 {
5084 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 if (arg1) (arg1)->m_x = arg2;
5088
5089 Py_INCREF(Py_None); resultobj = Py_None;
5090 return resultobj;
5091 fail:
5092 return NULL;
5093 }
5094
5095
5096 static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5097 PyObject *resultobj;
5098 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5099 double result;
5100 PyObject * obj0 = 0 ;
5101 char *kwnames[] = {
5102 (char *) "self", NULL
5103 };
5104
5105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5107 result = (double) ((arg1)->m_x);
5108
5109 resultobj = SWIG_PyObj_FromDouble((double)result);
5110 return resultobj;
5111 fail:
5112 return NULL;
5113 }
5114
5115
5116 static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5117 PyObject *resultobj;
5118 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5119 double arg2 ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 char *kwnames[] = {
5123 (char *) "self",(char *) "m_y", NULL
5124 };
5125
5126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5128 {
5129 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 if (arg1) (arg1)->m_y = arg2;
5133
5134 Py_INCREF(Py_None); resultobj = Py_None;
5135 return resultobj;
5136 fail:
5137 return NULL;
5138 }
5139
5140
5141 static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj;
5143 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5144 double result;
5145 PyObject * obj0 = 0 ;
5146 char *kwnames[] = {
5147 (char *) "self", NULL
5148 };
5149
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5152 result = (double) ((arg1)->m_y);
5153
5154 resultobj = SWIG_PyObj_FromDouble((double)result);
5155 return resultobj;
5156 fail:
5157 return NULL;
5158 }
5159
5160
5161 static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5162 PyObject *resultobj;
5163 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5164 double arg2 = (double) 0 ;
5165 double arg3 = (double) 0 ;
5166 PyObject * obj0 = 0 ;
5167 PyObject * obj1 = 0 ;
5168 PyObject * obj2 = 0 ;
5169 char *kwnames[] = {
5170 (char *) "self",(char *) "x",(char *) "y", NULL
5171 };
5172
5173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5175 if (obj1) {
5176 {
5177 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5178 if (PyErr_Occurred()) SWIG_fail;
5179 }
5180 }
5181 if (obj2) {
5182 {
5183 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 }
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 wxPoint2D_Set(arg1,arg2,arg3);
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 Py_INCREF(Py_None); resultobj = Py_None;
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj;
5203 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5204 PyObject *result;
5205 PyObject * obj0 = 0 ;
5206 char *kwnames[] = {
5207 (char *) "self", NULL
5208 };
5209
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (PyObject *)wxPoint2D_Get(arg1);
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = result;
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5227 PyObject *obj;
5228 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5229 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5230 Py_INCREF(obj);
5231 return Py_BuildValue((char *)"");
5232 }
5233 static int _wrap_DefaultPosition_set(PyObject *_val) {
5234 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5235 return 1;
5236 }
5237
5238
5239 static PyObject *_wrap_DefaultPosition_get() {
5240 PyObject *pyobj;
5241
5242 pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0);
5243 return pyobj;
5244 }
5245
5246
5247 static int _wrap_DefaultSize_set(PyObject *_val) {
5248 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5249 return 1;
5250 }
5251
5252
5253 static PyObject *_wrap_DefaultSize_get() {
5254 PyObject *pyobj;
5255
5256 pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0);
5257 return pyobj;
5258 }
5259
5260
5261 static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 PyObject *arg1 = (PyObject *) 0 ;
5264 wxPyInputStream *result;
5265 PyObject * obj0 = 0 ;
5266 char *kwnames[] = {
5267 (char *) "p", NULL
5268 };
5269
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5271 arg1 = obj0;
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1);
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5289 PyObject * obj0 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 (arg1)->close();
5299
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 Py_INCREF(Py_None); resultobj = Py_None;
5304 return resultobj;
5305 fail:
5306 return NULL;
5307 }
5308
5309
5310 static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5311 PyObject *resultobj;
5312 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5313 PyObject * obj0 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5320 {
5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
5322 (arg1)->flush();
5323
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 }
5327 Py_INCREF(Py_None); resultobj = Py_None;
5328 return resultobj;
5329 fail:
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5337 bool result;
5338 PyObject * obj0 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 result = (bool)(arg1)->eof();
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 resultobj = SWIG_PyObj_FromBool((bool)result);
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj;
5361 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5362 int arg2 = (int) -1 ;
5363 PyObject *result;
5364 PyObject * obj0 = 0 ;
5365 PyObject * obj1 = 0 ;
5366 char *kwnames[] = {
5367 (char *) "self",(char *) "size", NULL
5368 };
5369
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
5371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5372 if (obj1) {
5373 {
5374 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 }
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 result = (PyObject *)(arg1)->read(arg2);
5381
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = result;
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj;
5394 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5395 int arg2 = (int) -1 ;
5396 PyObject *result;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self",(char *) "size", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5405 if (obj1) {
5406 {
5407 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 }
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (PyObject *)(arg1)->readline(arg2);
5414
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = result;
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5426 PyObject *resultobj;
5427 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5428 int arg2 = (int) -1 ;
5429 PyObject *result;
5430 PyObject * obj0 = 0 ;
5431 PyObject * obj1 = 0 ;
5432 char *kwnames[] = {
5433 (char *) "self",(char *) "sizehint", NULL
5434 };
5435
5436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
5437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5438 if (obj1) {
5439 {
5440 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 }
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 result = (PyObject *)(arg1)->readlines(arg2);
5447
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = result;
5452 return resultobj;
5453 fail:
5454 return NULL;
5455 }
5456
5457
5458 static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj;
5460 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5461 int arg2 ;
5462 int arg3 = (int) 0 ;
5463 PyObject * obj0 = 0 ;
5464 PyObject * obj1 = 0 ;
5465 PyObject * obj2 = 0 ;
5466 char *kwnames[] = {
5467 (char *) "self",(char *) "offset",(char *) "whence", NULL
5468 };
5469
5470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
5471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5472 {
5473 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 }
5476 if (obj2) {
5477 {
5478 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 }
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->seek(arg2,arg3);
5485
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 Py_INCREF(Py_None); resultobj = Py_None;
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj;
5498 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5499 int result;
5500 PyObject * obj0 = 0 ;
5501 char *kwnames[] = {
5502 (char *) "self", NULL
5503 };
5504
5505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (int)(arg1)->tell();
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 resultobj = SWIG_PyObj_FromInt((int)result);
5515 return resultobj;
5516 fail:
5517 return NULL;
5518 }
5519
5520
5521 static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject *resultobj;
5523 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5524 char result;
5525 PyObject * obj0 = 0 ;
5526 char *kwnames[] = {
5527 (char *) "self", NULL
5528 };
5529
5530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5532 {
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 result = (char)(arg1)->Peek();
5535
5536 wxPyEndAllowThreads(__tstate);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 resultobj = SWIG_PyObj_FromChar((char)result);
5540 return resultobj;
5541 fail:
5542 return NULL;
5543 }
5544
5545
5546 static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj;
5548 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5549 char result;
5550 PyObject * obj0 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
5556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 result = (char)(arg1)->GetC();
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 resultobj = SWIG_PyObj_FromChar((char)result);
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5572 PyObject *resultobj;
5573 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5574 size_t result;
5575 PyObject * obj0 = 0 ;
5576 char *kwnames[] = {
5577 (char *) "self", NULL
5578 };
5579
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
5581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (size_t)(arg1)->LastRead();
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
5589 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
5590 return resultobj;
5591 fail:
5592 return NULL;
5593 }
5594
5595
5596 static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj;
5598 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5599 bool result;
5600 PyObject * obj0 = 0 ;
5601 char *kwnames[] = {
5602 (char *) "self", NULL
5603 };
5604
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
5606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 result = (bool)(arg1)->CanRead();
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 resultobj = SWIG_PyObj_FromBool((bool)result);
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5622 PyObject *resultobj;
5623 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5624 bool result;
5625 PyObject * obj0 = 0 ;
5626 char *kwnames[] = {
5627 (char *) "self", NULL
5628 };
5629
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5632 {
5633 PyThreadState* __tstate = wxPyBeginAllowThreads();
5634 result = (bool)(arg1)->Eof();
5635
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 resultobj = SWIG_PyObj_FromBool((bool)result);
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj;
5648 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5649 char arg2 ;
5650 bool result;
5651 PyObject * obj0 = 0 ;
5652 PyObject * obj1 = 0 ;
5653 char *kwnames[] = {
5654 (char *) "self",(char *) "c", NULL
5655 };
5656
5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
5658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5659 {
5660 arg2 = (char) SWIG_PyObj_AsChar(obj1);
5661 if (PyErr_Occurred()) SWIG_fail;
5662 }
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 result = (bool)(arg1)->Ungetch(arg2);
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 resultobj = SWIG_PyObj_FromBool((bool)result);
5671 return resultobj;
5672 fail:
5673 return NULL;
5674 }
5675
5676
5677 static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
5678 PyObject *resultobj;
5679 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5680 long arg2 ;
5681 int arg3 = (int) wxFromStart ;
5682 long result;
5683 PyObject * obj0 = 0 ;
5684 PyObject * obj1 = 0 ;
5685 PyObject * obj2 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self",(char *) "pos",(char *) "mode", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 {
5693 arg2 = (long) SWIG_PyObj_AsLong(obj1);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
5696 if (obj2) {
5697 {
5698 arg3 = (wxSeekMode) SWIG_PyObj_AsInt(obj2);
5699 if (PyErr_Occurred()) SWIG_fail;
5700 }
5701 }
5702 {
5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
5704 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
5705
5706 wxPyEndAllowThreads(__tstate);
5707 if (PyErr_Occurred()) SWIG_fail;
5708 }
5709 resultobj = SWIG_PyObj_FromLong((long)result);
5710 return resultobj;
5711 fail:
5712 return NULL;
5713 }
5714
5715
5716 static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
5717 PyObject *resultobj;
5718 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5719 long result;
5720 PyObject * obj0 = 0 ;
5721 char *kwnames[] = {
5722 (char *) "self", NULL
5723 };
5724
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
5726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5727 {
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 result = (long)(arg1)->TellI();
5730
5731 wxPyEndAllowThreads(__tstate);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 resultobj = SWIG_PyObj_FromLong((long)result);
5735 return resultobj;
5736 fail:
5737 return NULL;
5738 }
5739
5740
5741 static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
5742 PyObject *obj;
5743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5744 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
5745 Py_INCREF(obj);
5746 return Py_BuildValue((char *)"");
5747 }
5748 static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj;
5750 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
5751 PyObject *arg2 = (PyObject *) 0 ;
5752 PyObject * obj0 = 0 ;
5753 PyObject * obj1 = 0 ;
5754 char *kwnames[] = {
5755 (char *) "self",(char *) "obj", NULL
5756 };
5757
5758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
5759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5760 arg2 = obj1;
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
5763 wxOutputStream_write(arg1,arg2);
5764
5765 wxPyEndAllowThreads(__tstate);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 Py_INCREF(Py_None); resultobj = Py_None;
5769 return resultobj;
5770 fail:
5771 return NULL;
5772 }
5773
5774
5775 static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
5776 PyObject *obj;
5777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5778 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
5779 Py_INCREF(obj);
5780 return Py_BuildValue((char *)"");
5781 }
5782 static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxInputStream *arg1 = (wxInputStream *) 0 ;
5785 wxString *arg2 = 0 ;
5786 wxString *arg3 = 0 ;
5787 wxString *arg4 = 0 ;
5788 wxDateTime arg5 ;
5789 wxFSFile *result;
5790 wxPyInputStream *temp1 ;
5791 bool created1 ;
5792 bool temp2 = False ;
5793 bool temp3 = False ;
5794 bool temp4 = False ;
5795 wxDateTime *argp5 ;
5796 PyObject * obj0 = 0 ;
5797 PyObject * obj1 = 0 ;
5798 PyObject * obj2 = 0 ;
5799 PyObject * obj3 = 0 ;
5800 PyObject * obj4 = 0 ;
5801 char *kwnames[] = {
5802 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
5803 };
5804
5805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5806 {
5807 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
5808 arg1 = temp1->m_wxis;
5809 created1 = False;
5810 } else {
5811 PyErr_Clear(); // clear the failure of the wxPyConvert above
5812 arg1 = wxPyCBInputStream_create(obj0, False);
5813 if (arg1 == NULL) {
5814 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
5815 SWIG_fail;
5816 }
5817 created1 = True;
5818 }
5819 }
5820 {
5821 arg2 = wxString_in_helper(obj1);
5822 if (arg2 == NULL) SWIG_fail;
5823 temp2 = True;
5824 }
5825 {
5826 arg3 = wxString_in_helper(obj2);
5827 if (arg3 == NULL) SWIG_fail;
5828 temp3 = True;
5829 }
5830 {
5831 arg4 = wxString_in_helper(obj3);
5832 if (arg4 == NULL) SWIG_fail;
5833 temp4 = True;
5834 }
5835 if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5836 arg5 = *argp5;
5837 {
5838 PyThreadState* __tstate = wxPyBeginAllowThreads();
5839 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
5840
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 {
5845 resultobj = wxPyMake_wxObject(result);
5846 }
5847 {
5848 if (created1)
5849 delete arg1;
5850 }
5851 {
5852 if (temp2)
5853 delete arg2;
5854 }
5855 {
5856 if (temp3)
5857 delete arg3;
5858 }
5859 {
5860 if (temp4)
5861 delete arg4;
5862 }
5863 return resultobj;
5864 fail:
5865 {
5866 if (created1)
5867 delete arg1;
5868 }
5869 {
5870 if (temp2)
5871 delete arg2;
5872 }
5873 {
5874 if (temp3)
5875 delete arg3;
5876 }
5877 {
5878 if (temp4)
5879 delete arg4;
5880 }
5881 return NULL;
5882 }
5883
5884
5885 static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5886 PyObject *resultobj;
5887 wxFSFile *arg1 = (wxFSFile *) 0 ;
5888 PyObject * obj0 = 0 ;
5889 char *kwnames[] = {
5890 (char *) "self", NULL
5891 };
5892
5893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
5894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 delete arg1;
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 Py_INCREF(Py_None); resultobj = Py_None;
5903 return resultobj;
5904 fail:
5905 return NULL;
5906 }
5907
5908
5909 static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj;
5911 wxFSFile *arg1 = (wxFSFile *) 0 ;
5912 wxInputStream *result;
5913 PyObject * obj0 = 0 ;
5914 char *kwnames[] = {
5915 (char *) "self", NULL
5916 };
5917
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
5919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5920 {
5921 PyThreadState* __tstate = wxPyBeginAllowThreads();
5922 result = (wxInputStream *)(arg1)->GetStream();
5923
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 {
5928 wxPyInputStream * _ptr = NULL;
5929
5930 if (result) {
5931 _ptr = new wxPyInputStream(result);
5932 }
5933 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
5934 }
5935 return resultobj;
5936 fail:
5937 return NULL;
5938 }
5939
5940
5941 static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
5942 PyObject *resultobj;
5943 wxFSFile *arg1 = (wxFSFile *) 0 ;
5944 wxString *result;
5945 PyObject * obj0 = 0 ;
5946 char *kwnames[] = {
5947 (char *) "self", NULL
5948 };
5949
5950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
5951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 {
5955 wxString const &_result_ref = (arg1)->GetMimeType();
5956 result = (wxString *) &_result_ref;
5957 }
5958
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 {
5963 #if wxUSE_UNICODE
5964 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5965 #else
5966 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5967 #endif
5968 }
5969 return resultobj;
5970 fail:
5971 return NULL;
5972 }
5973
5974
5975 static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxFSFile *arg1 = (wxFSFile *) 0 ;
5978 wxString *result;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 {
5989 wxString const &_result_ref = (arg1)->GetLocation();
5990 result = (wxString *) &_result_ref;
5991 }
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 {
5997 #if wxUSE_UNICODE
5998 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5999 #else
6000 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6001 #endif
6002 }
6003 return resultobj;
6004 fail:
6005 return NULL;
6006 }
6007
6008
6009 static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject *resultobj;
6011 wxFSFile *arg1 = (wxFSFile *) 0 ;
6012 wxString *result;
6013 PyObject * obj0 = 0 ;
6014 char *kwnames[] = {
6015 (char *) "self", NULL
6016 };
6017
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6020 {
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 {
6023 wxString const &_result_ref = (arg1)->GetAnchor();
6024 result = (wxString *) &_result_ref;
6025 }
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 {
6031 #if wxUSE_UNICODE
6032 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6033 #else
6034 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6035 #endif
6036 }
6037 return resultobj;
6038 fail:
6039 return NULL;
6040 }
6041
6042
6043 static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6044 PyObject *resultobj;
6045 wxFSFile *arg1 = (wxFSFile *) 0 ;
6046 wxDateTime result;
6047 PyObject * obj0 = 0 ;
6048 char *kwnames[] = {
6049 (char *) "self", NULL
6050 };
6051
6052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 result = (arg1)->GetModificationTime();
6057
6058 wxPyEndAllowThreads(__tstate);
6059 if (PyErr_Occurred()) SWIG_fail;
6060 }
6061 {
6062 wxDateTime * resultptr;
6063 resultptr = new wxDateTime((wxDateTime &) result);
6064 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
6065 }
6066 return resultobj;
6067 fail:
6068 return NULL;
6069 }
6070
6071
6072 static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6073 PyObject *obj;
6074 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6075 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6076 Py_INCREF(obj);
6077 return Py_BuildValue((char *)"");
6078 }
6079 static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6080 PyObject *obj;
6081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6082 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6083 Py_INCREF(obj);
6084 return Py_BuildValue((char *)"");
6085 }
6086 static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6087 PyObject *resultobj;
6088 wxPyFileSystemHandler *result;
6089 char *kwnames[] = {
6090 NULL
6091 };
6092
6093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1);
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6109 PyObject *resultobj;
6110 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6111 PyObject *arg2 = (PyObject *) 0 ;
6112 PyObject *arg3 = (PyObject *) 0 ;
6113 PyObject * obj0 = 0 ;
6114 PyObject * obj1 = 0 ;
6115 PyObject * obj2 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self",(char *) "self",(char *) "_class", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6122 arg2 = obj1;
6123 arg3 = obj2;
6124 {
6125 PyThreadState* __tstate = wxPyBeginAllowThreads();
6126 (arg1)->_setCallbackInfo(arg2,arg3);
6127
6128 wxPyEndAllowThreads(__tstate);
6129 if (PyErr_Occurred()) SWIG_fail;
6130 }
6131 Py_INCREF(Py_None); resultobj = Py_None;
6132 return resultobj;
6133 fail:
6134 return NULL;
6135 }
6136
6137
6138 static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6139 PyObject *resultobj;
6140 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6141 wxString *arg2 = 0 ;
6142 bool result;
6143 bool temp2 = False ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char *kwnames[] = {
6147 (char *) "self",(char *) "location", NULL
6148 };
6149
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6152 {
6153 arg2 = wxString_in_helper(obj1);
6154 if (arg2 == NULL) SWIG_fail;
6155 temp2 = True;
6156 }
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) SWIG_fail;
6163 }
6164 resultobj = SWIG_PyObj_FromBool((bool)result);
6165 {
6166 if (temp2)
6167 delete arg2;
6168 }
6169 return resultobj;
6170 fail:
6171 {
6172 if (temp2)
6173 delete arg2;
6174 }
6175 return NULL;
6176 }
6177
6178
6179 static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj;
6181 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6182 wxFileSystem *arg2 = 0 ;
6183 wxString *arg3 = 0 ;
6184 wxFSFile *result;
6185 bool temp3 = False ;
6186 PyObject * obj0 = 0 ;
6187 PyObject * obj1 = 0 ;
6188 PyObject * obj2 = 0 ;
6189 char *kwnames[] = {
6190 (char *) "self",(char *) "fs",(char *) "location", NULL
6191 };
6192
6193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6195 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6196 if (arg2 == NULL) {
6197 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6198 }
6199 {
6200 arg3 = wxString_in_helper(obj2);
6201 if (arg3 == NULL) SWIG_fail;
6202 temp3 = True;
6203 }
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 {
6212 resultobj = wxPyMake_wxObject(result);
6213 }
6214 {
6215 if (temp3)
6216 delete arg3;
6217 }
6218 return resultobj;
6219 fail:
6220 {
6221 if (temp3)
6222 delete arg3;
6223 }
6224 return NULL;
6225 }
6226
6227
6228 static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6229 PyObject *resultobj;
6230 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6231 wxString *arg2 = 0 ;
6232 int arg3 = (int) 0 ;
6233 wxString result;
6234 bool temp2 = False ;
6235 PyObject * obj0 = 0 ;
6236 PyObject * obj1 = 0 ;
6237 PyObject * obj2 = 0 ;
6238 char *kwnames[] = {
6239 (char *) "self",(char *) "spec",(char *) "flags", NULL
6240 };
6241
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6244 {
6245 arg2 = wxString_in_helper(obj1);
6246 if (arg2 == NULL) SWIG_fail;
6247 temp2 = True;
6248 }
6249 if (obj2) {
6250 {
6251 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 }
6255 {
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6258
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 {
6263 #if wxUSE_UNICODE
6264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6265 #else
6266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6267 #endif
6268 }
6269 {
6270 if (temp2)
6271 delete arg2;
6272 }
6273 return resultobj;
6274 fail:
6275 {
6276 if (temp2)
6277 delete arg2;
6278 }
6279 return NULL;
6280 }
6281
6282
6283 static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj;
6285 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6286 wxString result;
6287 PyObject * obj0 = 0 ;
6288 char *kwnames[] = {
6289 (char *) "self", NULL
6290 };
6291
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 result = (arg1)->FindNext();
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 {
6302 #if wxUSE_UNICODE
6303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6304 #else
6305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6306 #endif
6307 }
6308 return resultobj;
6309 fail:
6310 return NULL;
6311 }
6312
6313
6314 static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj;
6316 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6317 wxString *arg2 = 0 ;
6318 wxString result;
6319 bool temp2 = False ;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 char *kwnames[] = {
6323 (char *) "self",(char *) "location", NULL
6324 };
6325
6326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6328 {
6329 arg2 = wxString_in_helper(obj1);
6330 if (arg2 == NULL) SWIG_fail;
6331 temp2 = True;
6332 }
6333 {
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 result = (arg1)->GetProtocol((wxString const &)*arg2);
6336
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 {
6341 #if wxUSE_UNICODE
6342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6343 #else
6344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6345 #endif
6346 }
6347 {
6348 if (temp2)
6349 delete arg2;
6350 }
6351 return resultobj;
6352 fail:
6353 {
6354 if (temp2)
6355 delete arg2;
6356 }
6357 return NULL;
6358 }
6359
6360
6361 static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6364 wxString *arg2 = 0 ;
6365 wxString result;
6366 bool temp2 = False ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self",(char *) "location", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6375 {
6376 arg2 = wxString_in_helper(obj1);
6377 if (arg2 == NULL) SWIG_fail;
6378 temp2 = True;
6379 }
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 {
6388 #if wxUSE_UNICODE
6389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6390 #else
6391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6392 #endif
6393 }
6394 {
6395 if (temp2)
6396 delete arg2;
6397 }
6398 return resultobj;
6399 fail:
6400 {
6401 if (temp2)
6402 delete arg2;
6403 }
6404 return NULL;
6405 }
6406
6407
6408 static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6411 wxString *arg2 = 0 ;
6412 wxString result;
6413 bool temp2 = False ;
6414 PyObject * obj0 = 0 ;
6415 PyObject * obj1 = 0 ;
6416 char *kwnames[] = {
6417 (char *) "self",(char *) "location", NULL
6418 };
6419
6420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6422 {
6423 arg2 = wxString_in_helper(obj1);
6424 if (arg2 == NULL) SWIG_fail;
6425 temp2 = True;
6426 }
6427 {
6428 PyThreadState* __tstate = wxPyBeginAllowThreads();
6429 result = (arg1)->GetAnchor((wxString const &)*arg2);
6430
6431 wxPyEndAllowThreads(__tstate);
6432 if (PyErr_Occurred()) SWIG_fail;
6433 }
6434 {
6435 #if wxUSE_UNICODE
6436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6437 #else
6438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6439 #endif
6440 }
6441 {
6442 if (temp2)
6443 delete arg2;
6444 }
6445 return resultobj;
6446 fail:
6447 {
6448 if (temp2)
6449 delete arg2;
6450 }
6451 return NULL;
6452 }
6453
6454
6455 static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6458 wxString *arg2 = 0 ;
6459 wxString result;
6460 bool temp2 = False ;
6461 PyObject * obj0 = 0 ;
6462 PyObject * obj1 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self",(char *) "location", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6469 {
6470 arg2 = wxString_in_helper(obj1);
6471 if (arg2 == NULL) SWIG_fail;
6472 temp2 = True;
6473 }
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 {
6482 #if wxUSE_UNICODE
6483 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6484 #else
6485 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6486 #endif
6487 }
6488 {
6489 if (temp2)
6490 delete arg2;
6491 }
6492 return resultobj;
6493 fail:
6494 {
6495 if (temp2)
6496 delete arg2;
6497 }
6498 return NULL;
6499 }
6500
6501
6502 static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6503 PyObject *resultobj;
6504 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6505 wxString *arg2 = 0 ;
6506 wxString result;
6507 bool temp2 = False ;
6508 PyObject * obj0 = 0 ;
6509 PyObject * obj1 = 0 ;
6510 char *kwnames[] = {
6511 (char *) "self",(char *) "location", NULL
6512 };
6513
6514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6516 {
6517 arg2 = wxString_in_helper(obj1);
6518 if (arg2 == NULL) SWIG_fail;
6519 temp2 = True;
6520 }
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 {
6529 #if wxUSE_UNICODE
6530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6531 #else
6532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6533 #endif
6534 }
6535 {
6536 if (temp2)
6537 delete arg2;
6538 }
6539 return resultobj;
6540 fail:
6541 {
6542 if (temp2)
6543 delete arg2;
6544 }
6545 return NULL;
6546 }
6547
6548
6549 static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6550 PyObject *obj;
6551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6552 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
6553 Py_INCREF(obj);
6554 return Py_BuildValue((char *)"");
6555 }
6556 static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj;
6558 wxFileSystem *result;
6559 char *kwnames[] = {
6560 NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
6564 {
6565 PyThreadState* __tstate = wxPyBeginAllowThreads();
6566 result = (wxFileSystem *)new wxFileSystem();
6567
6568 wxPyEndAllowThreads(__tstate);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 {
6572 resultobj = wxPyMake_wxObject(result);
6573 }
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6581 PyObject *resultobj;
6582 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6583 PyObject * obj0 = 0 ;
6584 char *kwnames[] = {
6585 (char *) "self", NULL
6586 };
6587
6588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
6589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6590 {
6591 PyThreadState* __tstate = wxPyBeginAllowThreads();
6592 delete arg1;
6593
6594 wxPyEndAllowThreads(__tstate);
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 Py_INCREF(Py_None); resultobj = Py_None;
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj;
6606 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6607 wxString *arg2 = 0 ;
6608 bool arg3 = (bool) False ;
6609 bool temp2 = False ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 PyObject * obj2 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self",(char *) "location",(char *) "is_dir", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6619 {
6620 arg2 = wxString_in_helper(obj1);
6621 if (arg2 == NULL) SWIG_fail;
6622 temp2 = True;
6623 }
6624 if (obj2) {
6625 {
6626 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 }
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 Py_INCREF(Py_None); resultobj = Py_None;
6638 {
6639 if (temp2)
6640 delete arg2;
6641 }
6642 return resultobj;
6643 fail:
6644 {
6645 if (temp2)
6646 delete arg2;
6647 }
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6655 wxString result;
6656 PyObject * obj0 = 0 ;
6657 char *kwnames[] = {
6658 (char *) "self", NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
6662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (arg1)->GetPath();
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 {
6671 #if wxUSE_UNICODE
6672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6673 #else
6674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6675 #endif
6676 }
6677 return resultobj;
6678 fail:
6679 return NULL;
6680 }
6681
6682
6683 static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6684 PyObject *resultobj;
6685 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6686 wxString *arg2 = 0 ;
6687 wxFSFile *result;
6688 bool temp2 = False ;
6689 PyObject * obj0 = 0 ;
6690 PyObject * obj1 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "self",(char *) "location", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
6696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6697 {
6698 arg2 = wxString_in_helper(obj1);
6699 if (arg2 == NULL) SWIG_fail;
6700 temp2 = True;
6701 }
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 resultobj = wxPyMake_wxObject(result);
6711 }
6712 {
6713 if (temp2)
6714 delete arg2;
6715 }
6716 return resultobj;
6717 fail:
6718 {
6719 if (temp2)
6720 delete arg2;
6721 }
6722 return NULL;
6723 }
6724
6725
6726 static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6729 wxString *arg2 = 0 ;
6730 int arg3 = (int) 0 ;
6731 wxString result;
6732 bool temp2 = False ;
6733 PyObject * obj0 = 0 ;
6734 PyObject * obj1 = 0 ;
6735 PyObject * obj2 = 0 ;
6736 char *kwnames[] = {
6737 (char *) "self",(char *) "spec",(char *) "flags", NULL
6738 };
6739
6740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6742 {
6743 arg2 = wxString_in_helper(obj1);
6744 if (arg2 == NULL) SWIG_fail;
6745 temp2 = True;
6746 }
6747 if (obj2) {
6748 {
6749 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 }
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6756
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 {
6761 #if wxUSE_UNICODE
6762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6763 #else
6764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6765 #endif
6766 }
6767 {
6768 if (temp2)
6769 delete arg2;
6770 }
6771 return resultobj;
6772 fail:
6773 {
6774 if (temp2)
6775 delete arg2;
6776 }
6777 return NULL;
6778 }
6779
6780
6781 static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj;
6783 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6784 wxString result;
6785 PyObject * obj0 = 0 ;
6786 char *kwnames[] = {
6787 (char *) "self", NULL
6788 };
6789
6790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
6791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6792 {
6793 PyThreadState* __tstate = wxPyBeginAllowThreads();
6794 result = (arg1)->FindNext();
6795
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 {
6800 #if wxUSE_UNICODE
6801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6802 #else
6803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6804 #endif
6805 }
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
6815 PyObject * obj0 = 0 ;
6816 char *kwnames[] = {
6817 (char *) "handler", NULL
6818 };
6819
6820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
6821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6822 {
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 wxFileSystem::AddHandler(arg1);
6825
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 Py_INCREF(Py_None); resultobj = Py_None;
6830 return resultobj;
6831 fail:
6832 return NULL;
6833 }
6834
6835
6836 static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
6837 PyObject *resultobj;
6838 char *kwnames[] = {
6839 NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 wxFileSystem::CleanUpHandlers();
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 Py_INCREF(Py_None); resultobj = Py_None;
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxString *arg1 = 0 ;
6860 wxString result;
6861 bool temp1 = False ;
6862 PyObject * obj0 = 0 ;
6863 char *kwnames[] = {
6864 (char *) "filename", NULL
6865 };
6866
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
6868 {
6869 arg1 = wxString_in_helper(obj0);
6870 if (arg1 == NULL) SWIG_fail;
6871 temp1 = True;
6872 }
6873 {
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 {
6881 #if wxUSE_UNICODE
6882 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6883 #else
6884 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6885 #endif
6886 }
6887 {
6888 if (temp1)
6889 delete arg1;
6890 }
6891 return resultobj;
6892 fail:
6893 {
6894 if (temp1)
6895 delete arg1;
6896 }
6897 return NULL;
6898 }
6899
6900
6901 static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
6902 PyObject *obj;
6903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6904 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
6905 Py_INCREF(obj);
6906 return Py_BuildValue((char *)"");
6907 }
6908 static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
6909 PyObject *resultobj;
6910 wxString *arg1 = 0 ;
6911 wxString result;
6912 bool temp1 = False ;
6913 PyObject * obj0 = 0 ;
6914 char *kwnames[] = {
6915 (char *) "url", NULL
6916 };
6917
6918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
6919 {
6920 arg1 = wxString_in_helper(obj0);
6921 if (arg1 == NULL) SWIG_fail;
6922 temp1 = True;
6923 }
6924 {
6925 PyThreadState* __tstate = wxPyBeginAllowThreads();
6926 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
6927
6928 wxPyEndAllowThreads(__tstate);
6929 if (PyErr_Occurred()) SWIG_fail;
6930 }
6931 {
6932 #if wxUSE_UNICODE
6933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6934 #else
6935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6936 #endif
6937 }
6938 {
6939 if (temp1)
6940 delete arg1;
6941 }
6942 return resultobj;
6943 fail:
6944 {
6945 if (temp1)
6946 delete arg1;
6947 }
6948 return NULL;
6949 }
6950
6951
6952 static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj;
6954 wxInternetFSHandler *result;
6955 char *kwnames[] = {
6956 NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 result = (wxInternetFSHandler *)new wxInternetFSHandler();
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1);
6968 return resultobj;
6969 fail:
6970 return NULL;
6971 }
6972
6973
6974 static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6975 PyObject *resultobj;
6976 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
6977 wxString *arg2 = 0 ;
6978 bool result;
6979 bool temp2 = False ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self",(char *) "location", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6988 {
6989 arg2 = wxString_in_helper(obj1);
6990 if (arg2 == NULL) SWIG_fail;
6991 temp2 = True;
6992 }
6993 {
6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
6995 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6996
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 resultobj = SWIG_PyObj_FromBool((bool)result);
7001 {
7002 if (temp2)
7003 delete arg2;
7004 }
7005 return resultobj;
7006 fail:
7007 {
7008 if (temp2)
7009 delete arg2;
7010 }
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7018 wxFileSystem *arg2 = 0 ;
7019 wxString *arg3 = 0 ;
7020 wxFSFile *result;
7021 bool temp3 = False ;
7022 PyObject * obj0 = 0 ;
7023 PyObject * obj1 = 0 ;
7024 PyObject * obj2 = 0 ;
7025 char *kwnames[] = {
7026 (char *) "self",(char *) "fs",(char *) "location", NULL
7027 };
7028
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7031 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7032 if (arg2 == NULL) {
7033 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7034 }
7035 {
7036 arg3 = wxString_in_helper(obj2);
7037 if (arg3 == NULL) SWIG_fail;
7038 temp3 = True;
7039 }
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7043
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 resultobj = wxPyMake_wxObject(result);
7049 }
7050 {
7051 if (temp3)
7052 delete arg3;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp3)
7058 delete arg3;
7059 }
7060 return NULL;
7061 }
7062
7063
7064 static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7065 PyObject *obj;
7066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7067 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7068 Py_INCREF(obj);
7069 return Py_BuildValue((char *)"");
7070 }
7071 static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7072 PyObject *resultobj;
7073 wxZipFSHandler *result;
7074 char *kwnames[] = {
7075 NULL
7076 };
7077
7078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 result = (wxZipFSHandler *)new wxZipFSHandler();
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1);
7087 return resultobj;
7088 fail:
7089 return NULL;
7090 }
7091
7092
7093 static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7094 PyObject *resultobj;
7095 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7096 wxString *arg2 = 0 ;
7097 bool result;
7098 bool temp2 = False ;
7099 PyObject * obj0 = 0 ;
7100 PyObject * obj1 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "self",(char *) "location", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7107 {
7108 arg2 = wxString_in_helper(obj1);
7109 if (arg2 == NULL) SWIG_fail;
7110 temp2 = True;
7111 }
7112 {
7113 PyThreadState* __tstate = wxPyBeginAllowThreads();
7114 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7115
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_PyObj_FromBool((bool)result);
7120 {
7121 if (temp2)
7122 delete arg2;
7123 }
7124 return resultobj;
7125 fail:
7126 {
7127 if (temp2)
7128 delete arg2;
7129 }
7130 return NULL;
7131 }
7132
7133
7134 static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7135 PyObject *resultobj;
7136 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7137 wxFileSystem *arg2 = 0 ;
7138 wxString *arg3 = 0 ;
7139 wxFSFile *result;
7140 bool temp3 = False ;
7141 PyObject * obj0 = 0 ;
7142 PyObject * obj1 = 0 ;
7143 PyObject * obj2 = 0 ;
7144 char *kwnames[] = {
7145 (char *) "self",(char *) "fs",(char *) "location", NULL
7146 };
7147
7148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7150 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7151 if (arg2 == NULL) {
7152 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7153 }
7154 {
7155 arg3 = wxString_in_helper(obj2);
7156 if (arg3 == NULL) SWIG_fail;
7157 temp3 = True;
7158 }
7159 {
7160 PyThreadState* __tstate = wxPyBeginAllowThreads();
7161 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7162
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 {
7167 resultobj = wxPyMake_wxObject(result);
7168 }
7169 {
7170 if (temp3)
7171 delete arg3;
7172 }
7173 return resultobj;
7174 fail:
7175 {
7176 if (temp3)
7177 delete arg3;
7178 }
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7186 wxString *arg2 = 0 ;
7187 int arg3 = (int) 0 ;
7188 wxString result;
7189 bool temp2 = False ;
7190 PyObject * obj0 = 0 ;
7191 PyObject * obj1 = 0 ;
7192 PyObject * obj2 = 0 ;
7193 char *kwnames[] = {
7194 (char *) "self",(char *) "spec",(char *) "flags", NULL
7195 };
7196
7197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7199 {
7200 arg2 = wxString_in_helper(obj1);
7201 if (arg2 == NULL) SWIG_fail;
7202 temp2 = True;
7203 }
7204 if (obj2) {
7205 {
7206 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 }
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7213
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 #if wxUSE_UNICODE
7219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7220 #else
7221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7222 #endif
7223 }
7224 {
7225 if (temp2)
7226 delete arg2;
7227 }
7228 return resultobj;
7229 fail:
7230 {
7231 if (temp2)
7232 delete arg2;
7233 }
7234 return NULL;
7235 }
7236
7237
7238 static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj;
7240 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7241 wxString result;
7242 PyObject * obj0 = 0 ;
7243 char *kwnames[] = {
7244 (char *) "self", NULL
7245 };
7246
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 result = (arg1)->FindNext();
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 {
7257 #if wxUSE_UNICODE
7258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7259 #else
7260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7261 #endif
7262 }
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7270 PyObject *obj;
7271 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7272 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7273 Py_INCREF(obj);
7274 return Py_BuildValue((char *)"");
7275 }
7276 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj;
7278 wxString *arg1 = 0 ;
7279 wxImage *arg2 = 0 ;
7280 long arg3 ;
7281 bool temp1 = False ;
7282 PyObject * obj0 = 0 ;
7283 PyObject * obj1 = 0 ;
7284 PyObject * obj2 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "filename",(char *) "image",(char *) "type", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7290 {
7291 arg1 = wxString_in_helper(obj0);
7292 if (arg1 == NULL) SWIG_fail;
7293 temp1 = True;
7294 }
7295 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7296 if (arg2 == NULL) {
7297 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7298 }
7299 {
7300 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 Py_INCREF(Py_None); resultobj = Py_None;
7311 {
7312 if (temp1)
7313 delete arg1;
7314 }
7315 return resultobj;
7316 fail:
7317 {
7318 if (temp1)
7319 delete arg1;
7320 }
7321 return NULL;
7322 }
7323
7324
7325 static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7326 PyObject *resultobj;
7327 wxString *arg1 = 0 ;
7328 wxBitmap *arg2 = 0 ;
7329 long arg3 ;
7330 bool temp1 = False ;
7331 PyObject * obj0 = 0 ;
7332 PyObject * obj1 = 0 ;
7333 PyObject * obj2 = 0 ;
7334 char *kwnames[] = {
7335 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
7339 {
7340 arg1 = wxString_in_helper(obj0);
7341 if (arg1 == NULL) SWIG_fail;
7342 temp1 = True;
7343 }
7344 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7345 if (arg2 == NULL) {
7346 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7347 }
7348 {
7349 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7355
7356 wxPyEndAllowThreads(__tstate);
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 Py_INCREF(Py_None); resultobj = Py_None;
7360 {
7361 if (temp1)
7362 delete arg1;
7363 }
7364 return resultobj;
7365 fail:
7366 {
7367 if (temp1)
7368 delete arg1;
7369 }
7370 return NULL;
7371 }
7372
7373
7374 static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj;
7376 wxString *arg1 = 0 ;
7377 PyObject *arg2 = (PyObject *) 0 ;
7378 bool temp1 = False ;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 char *kwnames[] = {
7382 (char *) "filename",(char *) "data", NULL
7383 };
7384
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7386 {
7387 arg1 = wxString_in_helper(obj0);
7388 if (arg1 == NULL) SWIG_fail;
7389 temp1 = True;
7390 }
7391 arg2 = obj1;
7392 {
7393 PyThreadState* __tstate = wxPyBeginAllowThreads();
7394 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7395
7396 wxPyEndAllowThreads(__tstate);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 Py_INCREF(Py_None); resultobj = Py_None;
7400 {
7401 if (temp1)
7402 delete arg1;
7403 }
7404 return resultobj;
7405 fail:
7406 {
7407 if (temp1)
7408 delete arg1;
7409 }
7410 return NULL;
7411 }
7412
7413
7414 static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj;
7416 wxMemoryFSHandler *result;
7417 char *kwnames[] = {
7418 NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7422 {
7423 PyThreadState* __tstate = wxPyBeginAllowThreads();
7424 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7425
7426 wxPyEndAllowThreads(__tstate);
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
7429 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1);
7430 return resultobj;
7431 fail:
7432 return NULL;
7433 }
7434
7435
7436 static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7437 PyObject *resultobj;
7438 wxString *arg1 = 0 ;
7439 bool temp1 = False ;
7440 PyObject * obj0 = 0 ;
7441 char *kwnames[] = {
7442 (char *) "filename", NULL
7443 };
7444
7445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7446 {
7447 arg1 = wxString_in_helper(obj0);
7448 if (arg1 == NULL) SWIG_fail;
7449 temp1 = True;
7450 }
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7454
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 Py_INCREF(Py_None); resultobj = Py_None;
7459 {
7460 if (temp1)
7461 delete arg1;
7462 }
7463 return resultobj;
7464 fail:
7465 {
7466 if (temp1)
7467 delete arg1;
7468 }
7469 return NULL;
7470 }
7471
7472
7473 static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7476 wxString *arg2 = 0 ;
7477 bool result;
7478 bool temp2 = False ;
7479 PyObject * obj0 = 0 ;
7480 PyObject * obj1 = 0 ;
7481 char *kwnames[] = {
7482 (char *) "self",(char *) "location", NULL
7483 };
7484
7485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7487 {
7488 arg2 = wxString_in_helper(obj1);
7489 if (arg2 == NULL) SWIG_fail;
7490 temp2 = True;
7491 }
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7495
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_PyObj_FromBool((bool)result);
7500 {
7501 if (temp2)
7502 delete arg2;
7503 }
7504 return resultobj;
7505 fail:
7506 {
7507 if (temp2)
7508 delete arg2;
7509 }
7510 return NULL;
7511 }
7512
7513
7514 static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7517 wxFileSystem *arg2 = 0 ;
7518 wxString *arg3 = 0 ;
7519 wxFSFile *result;
7520 bool temp3 = False ;
7521 PyObject * obj0 = 0 ;
7522 PyObject * obj1 = 0 ;
7523 PyObject * obj2 = 0 ;
7524 char *kwnames[] = {
7525 (char *) "self",(char *) "fs",(char *) "location", NULL
7526 };
7527
7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7530 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7531 if (arg2 == NULL) {
7532 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7533 }
7534 {
7535 arg3 = wxString_in_helper(obj2);
7536 if (arg3 == NULL) SWIG_fail;
7537 temp3 = True;
7538 }
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 resultobj = wxPyMake_wxObject(result);
7548 }
7549 {
7550 if (temp3)
7551 delete arg3;
7552 }
7553 return resultobj;
7554 fail:
7555 {
7556 if (temp3)
7557 delete arg3;
7558 }
7559 return NULL;
7560 }
7561
7562
7563 static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj;
7565 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7566 wxString *arg2 = 0 ;
7567 int arg3 = (int) 0 ;
7568 wxString result;
7569 bool temp2 = False ;
7570 PyObject * obj0 = 0 ;
7571 PyObject * obj1 = 0 ;
7572 PyObject * obj2 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self",(char *) "spec",(char *) "flags", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7579 {
7580 arg2 = wxString_in_helper(obj1);
7581 if (arg2 == NULL) SWIG_fail;
7582 temp2 = True;
7583 }
7584 if (obj2) {
7585 {
7586 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7587 if (PyErr_Occurred()) SWIG_fail;
7588 }
7589 }
7590 {
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7593
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 {
7598 #if wxUSE_UNICODE
7599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7600 #else
7601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7602 #endif
7603 }
7604 {
7605 if (temp2)
7606 delete arg2;
7607 }
7608 return resultobj;
7609 fail:
7610 {
7611 if (temp2)
7612 delete arg2;
7613 }
7614 return NULL;
7615 }
7616
7617
7618 static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7619 PyObject *resultobj;
7620 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7621 wxString result;
7622 PyObject * obj0 = 0 ;
7623 char *kwnames[] = {
7624 (char *) "self", NULL
7625 };
7626
7627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
7628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (arg1)->FindNext();
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 {
7637 #if wxUSE_UNICODE
7638 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7639 #else
7640 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7641 #endif
7642 }
7643 return resultobj;
7644 fail:
7645 return NULL;
7646 }
7647
7648
7649 static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
7650 PyObject *obj;
7651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7652 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
7653 Py_INCREF(obj);
7654 return Py_BuildValue((char *)"");
7655 }
7656 static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7659 wxString result;
7660 PyObject * obj0 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "self", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
7666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7667 {
7668 PyThreadState* __tstate = wxPyBeginAllowThreads();
7669 result = (arg1)->GetName();
7670
7671 wxPyEndAllowThreads(__tstate);
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 {
7675 #if wxUSE_UNICODE
7676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7677 #else
7678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7679 #endif
7680 }
7681 return resultobj;
7682 fail:
7683 return NULL;
7684 }
7685
7686
7687 static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj;
7689 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7690 wxString result;
7691 PyObject * obj0 = 0 ;
7692 char *kwnames[] = {
7693 (char *) "self", NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
7697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 result = (arg1)->GetExtension();
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 {
7706 #if wxUSE_UNICODE
7707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7708 #else
7709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7710 #endif
7711 }
7712 return resultobj;
7713 fail:
7714 return NULL;
7715 }
7716
7717
7718 static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
7719 PyObject *resultobj;
7720 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7721 long result;
7722 PyObject * obj0 = 0 ;
7723 char *kwnames[] = {
7724 (char *) "self", NULL
7725 };
7726
7727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
7728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (long)(arg1)->GetType();
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_PyObj_FromLong((long)result);
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7746 wxString result;
7747 PyObject * obj0 = 0 ;
7748 char *kwnames[] = {
7749 (char *) "self", NULL
7750 };
7751
7752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
7753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7754 {
7755 PyThreadState* __tstate = wxPyBeginAllowThreads();
7756 result = (arg1)->GetMimeType();
7757
7758 wxPyEndAllowThreads(__tstate);
7759 if (PyErr_Occurred()) SWIG_fail;
7760 }
7761 {
7762 #if wxUSE_UNICODE
7763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7764 #else
7765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7766 #endif
7767 }
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj;
7776 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7777 wxString *arg2 = 0 ;
7778 bool result;
7779 bool temp2 = False ;
7780 PyObject * obj0 = 0 ;
7781 PyObject * obj1 = 0 ;
7782 char *kwnames[] = {
7783 (char *) "self",(char *) "name", NULL
7784 };
7785
7786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
7787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7788 {
7789 arg2 = wxString_in_helper(obj1);
7790 if (arg2 == NULL) SWIG_fail;
7791 temp2 = True;
7792 }
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 resultobj = SWIG_PyObj_FromBool((bool)result);
7801 {
7802 if (temp2)
7803 delete arg2;
7804 }
7805 return resultobj;
7806 fail:
7807 {
7808 if (temp2)
7809 delete arg2;
7810 }
7811 return NULL;
7812 }
7813
7814
7815 static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj;
7817 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7818 wxString *arg2 = 0 ;
7819 bool temp2 = False ;
7820 PyObject * obj0 = 0 ;
7821 PyObject * obj1 = 0 ;
7822 char *kwnames[] = {
7823 (char *) "self",(char *) "name", NULL
7824 };
7825
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
7827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7828 {
7829 arg2 = wxString_in_helper(obj1);
7830 if (arg2 == NULL) SWIG_fail;
7831 temp2 = True;
7832 }
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 (arg1)->SetName((wxString const &)*arg2);
7836
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 Py_INCREF(Py_None); resultobj = Py_None;
7841 {
7842 if (temp2)
7843 delete arg2;
7844 }
7845 return resultobj;
7846 fail:
7847 {
7848 if (temp2)
7849 delete arg2;
7850 }
7851 return NULL;
7852 }
7853
7854
7855 static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
7856 PyObject *resultobj;
7857 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7858 wxString *arg2 = 0 ;
7859 bool temp2 = False ;
7860 PyObject * obj0 = 0 ;
7861 PyObject * obj1 = 0 ;
7862 char *kwnames[] = {
7863 (char *) "self",(char *) "extension", NULL
7864 };
7865
7866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
7867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7868 {
7869 arg2 = wxString_in_helper(obj1);
7870 if (arg2 == NULL) SWIG_fail;
7871 temp2 = True;
7872 }
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 (arg1)->SetExtension((wxString const &)*arg2);
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 Py_INCREF(Py_None); resultobj = Py_None;
7881 {
7882 if (temp2)
7883 delete arg2;
7884 }
7885 return resultobj;
7886 fail:
7887 {
7888 if (temp2)
7889 delete arg2;
7890 }
7891 return NULL;
7892 }
7893
7894
7895 static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7898 long arg2 ;
7899 PyObject * obj0 = 0 ;
7900 PyObject * obj1 = 0 ;
7901 char *kwnames[] = {
7902 (char *) "self",(char *) "type", NULL
7903 };
7904
7905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
7906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7907 {
7908 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 (arg1)->SetType(arg2);
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 Py_INCREF(Py_None); resultobj = Py_None;
7919 return resultobj;
7920 fail:
7921 return NULL;
7922 }
7923
7924
7925 static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
7926 PyObject *resultobj;
7927 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7928 wxString *arg2 = 0 ;
7929 bool temp2 = False ;
7930 PyObject * obj0 = 0 ;
7931 PyObject * obj1 = 0 ;
7932 char *kwnames[] = {
7933 (char *) "self",(char *) "mimetype", NULL
7934 };
7935
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
7937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7938 {
7939 arg2 = wxString_in_helper(obj1);
7940 if (arg2 == NULL) SWIG_fail;
7941 temp2 = True;
7942 }
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 (arg1)->SetMimeType((wxString const &)*arg2);
7946
7947 wxPyEndAllowThreads(__tstate);
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 Py_INCREF(Py_None); resultobj = Py_None;
7951 {
7952 if (temp2)
7953 delete arg2;
7954 }
7955 return resultobj;
7956 fail:
7957 {
7958 if (temp2)
7959 delete arg2;
7960 }
7961 return NULL;
7962 }
7963
7964
7965 static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
7966 PyObject *obj;
7967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7968 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
7969 Py_INCREF(obj);
7970 return Py_BuildValue((char *)"");
7971 }
7972 static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj;
7974 wxImageHistogram *result;
7975 char *kwnames[] = {
7976 NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
7980 {
7981 PyThreadState* __tstate = wxPyBeginAllowThreads();
7982 result = (wxImageHistogram *)new wxImageHistogram();
7983
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1);
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 unsigned char arg1 ;
7997 unsigned char arg2 ;
7998 unsigned char arg3 ;
7999 unsigned long result;
8000 PyObject * obj0 = 0 ;
8001 PyObject * obj1 = 0 ;
8002 PyObject * obj2 = 0 ;
8003 char *kwnames[] = {
8004 (char *) "r",(char *) "g",(char *) "b", NULL
8005 };
8006
8007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8008 {
8009 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
8010 if (PyErr_Occurred()) SWIG_fail;
8011 }
8012 {
8013 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 {
8017 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 {
8021 PyThreadState* __tstate = wxPyBeginAllowThreads();
8022 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8023
8024 wxPyEndAllowThreads(__tstate);
8025 if (PyErr_Occurred()) SWIG_fail;
8026 }
8027 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
8028 return resultobj;
8029 fail:
8030 return NULL;
8031 }
8032
8033
8034 static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8037 unsigned char *arg2 = (unsigned char *) 0 ;
8038 unsigned char *arg3 = (unsigned char *) 0 ;
8039 unsigned char *arg4 = (unsigned char *) 0 ;
8040 unsigned char arg5 = (unsigned char) 1 ;
8041 unsigned char arg6 = (unsigned char) 0 ;
8042 unsigned char arg7 = (unsigned char) 0 ;
8043 bool result;
8044 unsigned char temp2 ;
8045 unsigned char temp3 ;
8046 unsigned char temp4 ;
8047 PyObject * obj0 = 0 ;
8048 PyObject * obj1 = 0 ;
8049 PyObject * obj2 = 0 ;
8050 PyObject * obj3 = 0 ;
8051 char *kwnames[] = {
8052 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8053 };
8054
8055 arg2 = &temp2;
8056 arg3 = &temp3;
8057 arg4 = &temp4;
8058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8060 if (obj1) {
8061 {
8062 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 }
8066 if (obj2) {
8067 {
8068 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 }
8072 if (obj3) {
8073 {
8074 arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 }
8078 {
8079 PyThreadState* __tstate = wxPyBeginAllowThreads();
8080 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8081
8082 wxPyEndAllowThreads(__tstate);
8083 if (PyErr_Occurred()) SWIG_fail;
8084 }
8085 resultobj = SWIG_PyObj_FromBool((bool)result);
8086 {
8087 PyObject *o = PyInt_FromLong((long) (*arg2));
8088 resultobj = t_output_helper(resultobj,o);
8089 }
8090 {
8091 PyObject *o = PyInt_FromLong((long) (*arg3));
8092 resultobj = t_output_helper(resultobj,o);
8093 }
8094 {
8095 PyObject *o = PyInt_FromLong((long) (*arg4));
8096 resultobj = t_output_helper(resultobj,o);
8097 }
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8105 PyObject *obj;
8106 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8107 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8108 Py_INCREF(obj);
8109 return Py_BuildValue((char *)"");
8110 }
8111 static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject *resultobj;
8113 wxString *arg1 = 0 ;
8114 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8115 int arg3 = (int) -1 ;
8116 wxImage *result;
8117 bool temp1 = False ;
8118 PyObject * obj0 = 0 ;
8119 PyObject * obj1 = 0 ;
8120 PyObject * obj2 = 0 ;
8121 char *kwnames[] = {
8122 (char *) "name",(char *) "type",(char *) "index", NULL
8123 };
8124
8125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8126 {
8127 arg1 = wxString_in_helper(obj0);
8128 if (arg1 == NULL) SWIG_fail;
8129 temp1 = True;
8130 }
8131 if (obj1) {
8132 {
8133 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 }
8137 if (obj2) {
8138 {
8139 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8140 if (PyErr_Occurred()) SWIG_fail;
8141 }
8142 }
8143 {
8144 PyThreadState* __tstate = wxPyBeginAllowThreads();
8145 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8146
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8151 {
8152 if (temp1)
8153 delete arg1;
8154 }
8155 return resultobj;
8156 fail:
8157 {
8158 if (temp1)
8159 delete arg1;
8160 }
8161 return NULL;
8162 }
8163
8164
8165 static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj;
8167 wxImage *arg1 = (wxImage *) 0 ;
8168 PyObject * obj0 = 0 ;
8169 char *kwnames[] = {
8170 (char *) "self", NULL
8171 };
8172
8173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8175 {
8176 PyThreadState* __tstate = wxPyBeginAllowThreads();
8177 delete arg1;
8178
8179 wxPyEndAllowThreads(__tstate);
8180 if (PyErr_Occurred()) SWIG_fail;
8181 }
8182 Py_INCREF(Py_None); resultobj = Py_None;
8183 return resultobj;
8184 fail:
8185 return NULL;
8186 }
8187
8188
8189 static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject *resultobj;
8191 wxString *arg1 = 0 ;
8192 wxString *arg2 = 0 ;
8193 int arg3 = (int) -1 ;
8194 wxImage *result;
8195 bool temp1 = False ;
8196 bool temp2 = False ;
8197 PyObject * obj0 = 0 ;
8198 PyObject * obj1 = 0 ;
8199 PyObject * obj2 = 0 ;
8200 char *kwnames[] = {
8201 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8202 };
8203
8204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8205 {
8206 arg1 = wxString_in_helper(obj0);
8207 if (arg1 == NULL) SWIG_fail;
8208 temp1 = True;
8209 }
8210 {
8211 arg2 = wxString_in_helper(obj1);
8212 if (arg2 == NULL) SWIG_fail;
8213 temp2 = True;
8214 }
8215 if (obj2) {
8216 {
8217 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 }
8220 }
8221 {
8222 PyThreadState* __tstate = wxPyBeginAllowThreads();
8223 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8224
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8229 {
8230 if (temp1)
8231 delete arg1;
8232 }
8233 {
8234 if (temp2)
8235 delete arg2;
8236 }
8237 return resultobj;
8238 fail:
8239 {
8240 if (temp1)
8241 delete arg1;
8242 }
8243 {
8244 if (temp2)
8245 delete arg2;
8246 }
8247 return NULL;
8248 }
8249
8250
8251 static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8252 PyObject *resultobj;
8253 wxInputStream *arg1 = 0 ;
8254 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8255 int arg3 = (int) -1 ;
8256 wxImage *result;
8257 wxPyInputStream *temp1 ;
8258 bool created1 ;
8259 PyObject * obj0 = 0 ;
8260 PyObject * obj1 = 0 ;
8261 PyObject * obj2 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "stream",(char *) "type",(char *) "index", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8267 {
8268 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8269 arg1 = temp1->m_wxis;
8270 created1 = False;
8271 } else {
8272 PyErr_Clear(); // clear the failure of the wxPyConvert above
8273 arg1 = wxPyCBInputStream_create(obj0, False);
8274 if (arg1 == NULL) {
8275 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8276 SWIG_fail;
8277 }
8278 created1 = True;
8279 }
8280 }
8281 if (obj1) {
8282 {
8283 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 }
8287 if (obj2) {
8288 {
8289 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 }
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8296
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8301 {
8302 if (created1)
8303 delete arg1;
8304 }
8305 return resultobj;
8306 fail:
8307 {
8308 if (created1)
8309 delete arg1;
8310 }
8311 return NULL;
8312 }
8313
8314
8315 static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj;
8317 wxInputStream *arg1 = 0 ;
8318 wxString *arg2 = 0 ;
8319 int arg3 = (int) -1 ;
8320 wxImage *result;
8321 wxPyInputStream *temp1 ;
8322 bool created1 ;
8323 bool temp2 = False ;
8324 PyObject * obj0 = 0 ;
8325 PyObject * obj1 = 0 ;
8326 PyObject * obj2 = 0 ;
8327 char *kwnames[] = {
8328 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8329 };
8330
8331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8332 {
8333 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8334 arg1 = temp1->m_wxis;
8335 created1 = False;
8336 } else {
8337 PyErr_Clear(); // clear the failure of the wxPyConvert above
8338 arg1 = wxPyCBInputStream_create(obj0, False);
8339 if (arg1 == NULL) {
8340 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8341 SWIG_fail;
8342 }
8343 created1 = True;
8344 }
8345 }
8346 {
8347 arg2 = wxString_in_helper(obj1);
8348 if (arg2 == NULL) SWIG_fail;
8349 temp2 = True;
8350 }
8351 if (obj2) {
8352 {
8353 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8354 if (PyErr_Occurred()) SWIG_fail;
8355 }
8356 }
8357 {
8358 PyThreadState* __tstate = wxPyBeginAllowThreads();
8359 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8360
8361 wxPyEndAllowThreads(__tstate);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8365 {
8366 if (created1)
8367 delete arg1;
8368 }
8369 {
8370 if (temp2)
8371 delete arg2;
8372 }
8373 return resultobj;
8374 fail:
8375 {
8376 if (created1)
8377 delete arg1;
8378 }
8379 {
8380 if (temp2)
8381 delete arg2;
8382 }
8383 return NULL;
8384 }
8385
8386
8387 static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj;
8389 int arg1 = (int) 0 ;
8390 int arg2 = (int) 0 ;
8391 bool arg3 = (bool) True ;
8392 wxImage *result;
8393 PyObject * obj0 = 0 ;
8394 PyObject * obj1 = 0 ;
8395 PyObject * obj2 = 0 ;
8396 char *kwnames[] = {
8397 (char *) "width",(char *) "height",(char *) "clear", NULL
8398 };
8399
8400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
8401 if (obj0) {
8402 {
8403 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 }
8407 if (obj1) {
8408 {
8409 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 }
8413 if (obj2) {
8414 {
8415 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 }
8419 {
8420 PyThreadState* __tstate = wxPyBeginAllowThreads();
8421 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8422
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8427 return resultobj;
8428 fail:
8429 return NULL;
8430 }
8431
8432
8433 static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8434 PyObject *resultobj;
8435 wxBitmap *arg1 = 0 ;
8436 wxImage *result;
8437 PyObject * obj0 = 0 ;
8438 char *kwnames[] = {
8439 (char *) "bitmap", NULL
8440 };
8441
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8444 if (arg1 == NULL) {
8445 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8446 }
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8455 return resultobj;
8456 fail:
8457 return NULL;
8458 }
8459
8460
8461 static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8462 PyObject *resultobj;
8463 int arg1 ;
8464 int arg2 ;
8465 unsigned char *arg3 = (unsigned char *) 0 ;
8466 wxImage *result;
8467 PyObject * obj0 = 0 ;
8468 PyObject * obj1 = 0 ;
8469 PyObject * obj2 = 0 ;
8470 char *kwnames[] = {
8471 (char *) "width",(char *) "height",(char *) "data", NULL
8472 };
8473
8474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8475 {
8476 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 {
8480 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8484 {
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8487
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8499 PyObject *resultobj;
8500 wxImage *arg1 = (wxImage *) 0 ;
8501 int arg2 ;
8502 int arg3 ;
8503 PyObject * obj0 = 0 ;
8504 PyObject * obj1 = 0 ;
8505 PyObject * obj2 = 0 ;
8506 char *kwnames[] = {
8507 (char *) "self",(char *) "width",(char *) "height", NULL
8508 };
8509
8510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8512 {
8513 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 {
8517 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 {
8521 PyThreadState* __tstate = wxPyBeginAllowThreads();
8522 (arg1)->Create(arg2,arg3);
8523
8524 wxPyEndAllowThreads(__tstate);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 Py_INCREF(Py_None); resultobj = Py_None;
8528 return resultobj;
8529 fail:
8530 return NULL;
8531 }
8532
8533
8534 static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
8535 PyObject *resultobj;
8536 wxImage *arg1 = (wxImage *) 0 ;
8537 PyObject * obj0 = 0 ;
8538 char *kwnames[] = {
8539 (char *) "self", NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
8543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 (arg1)->Destroy();
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 Py_INCREF(Py_None); resultobj = Py_None;
8552 return resultobj;
8553 fail:
8554 return NULL;
8555 }
8556
8557
8558 static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj;
8560 wxImage *arg1 = (wxImage *) 0 ;
8561 int arg2 ;
8562 int arg3 ;
8563 SwigValueWrapper< wxImage > result;
8564 PyObject * obj0 = 0 ;
8565 PyObject * obj1 = 0 ;
8566 PyObject * obj2 = 0 ;
8567 char *kwnames[] = {
8568 (char *) "self",(char *) "width",(char *) "height", NULL
8569 };
8570
8571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
8572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8573 {
8574 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 {
8578 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8579 if (PyErr_Occurred()) SWIG_fail;
8580 }
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 result = (arg1)->Scale(arg2,arg3);
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 {
8589 wxImage * resultptr;
8590 resultptr = new wxImage((wxImage &) result);
8591 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
8592 }
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxImage *arg1 = (wxImage *) 0 ;
8602 int arg2 ;
8603 int arg3 ;
8604 SwigValueWrapper< wxImage > result;
8605 PyObject * obj0 = 0 ;
8606 PyObject * obj1 = 0 ;
8607 PyObject * obj2 = 0 ;
8608 char *kwnames[] = {
8609 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
8610 };
8611
8612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
8613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8614 {
8615 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
8625
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 {
8630 wxImage * resultptr;
8631 resultptr = new wxImage((wxImage &) result);
8632 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
8633 }
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj;
8642 wxImage *arg1 = (wxImage *) 0 ;
8643 int arg2 ;
8644 int arg3 ;
8645 wxImage *result;
8646 PyObject * obj0 = 0 ;
8647 PyObject * obj1 = 0 ;
8648 PyObject * obj2 = 0 ;
8649 char *kwnames[] = {
8650 (char *) "self",(char *) "width",(char *) "height", NULL
8651 };
8652
8653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
8654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8655 {
8656 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8657 if (PyErr_Occurred()) SWIG_fail;
8658 }
8659 {
8660 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8661 if (PyErr_Occurred()) SWIG_fail;
8662 }
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 {
8666 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
8667 result = (wxImage *) &_result_ref;
8668 }
8669
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0);
8674 return resultobj;
8675 fail:
8676 return NULL;
8677 }
8678
8679
8680 static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj;
8682 wxImage *arg1 = (wxImage *) 0 ;
8683 int arg2 ;
8684 int arg3 ;
8685 unsigned char arg4 ;
8686 unsigned char arg5 ;
8687 unsigned char arg6 ;
8688 PyObject * obj0 = 0 ;
8689 PyObject * obj1 = 0 ;
8690 PyObject * obj2 = 0 ;
8691 PyObject * obj3 = 0 ;
8692 PyObject * obj4 = 0 ;
8693 PyObject * obj5 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8700 {
8701 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 {
8705 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 {
8709 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 {
8713 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 {
8717 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5);
8718 if (PyErr_Occurred()) SWIG_fail;
8719 }
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
8723
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 Py_INCREF(Py_None); resultobj = Py_None;
8728 return resultobj;
8729 fail:
8730 return NULL;
8731 }
8732
8733
8734 static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj;
8736 wxImage *arg1 = (wxImage *) 0 ;
8737 int arg2 ;
8738 int arg3 ;
8739 unsigned char result;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 PyObject * obj2 = 0 ;
8743 char *kwnames[] = {
8744 (char *) "self",(char *) "x",(char *) "y", NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
8748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8749 {
8750 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 {
8754 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) SWIG_fail;
8763 }
8764 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
8765 return resultobj;
8766 fail:
8767 return NULL;
8768 }
8769
8770
8771 static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject *resultobj;
8773 wxImage *arg1 = (wxImage *) 0 ;
8774 int arg2 ;
8775 int arg3 ;
8776 unsigned char result;
8777 PyObject * obj0 = 0 ;
8778 PyObject * obj1 = 0 ;
8779 PyObject * obj2 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self",(char *) "x",(char *) "y", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8786 {
8787 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8788 if (PyErr_Occurred()) SWIG_fail;
8789 }
8790 {
8791 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj;
8810 wxImage *arg1 = (wxImage *) 0 ;
8811 int arg2 ;
8812 int arg3 ;
8813 unsigned char result;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 PyObject * obj2 = 0 ;
8817 char *kwnames[] = {
8818 (char *) "self",(char *) "x",(char *) "y", NULL
8819 };
8820
8821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
8822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8823 {
8824 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8825 if (PyErr_Occurred()) SWIG_fail;
8826 }
8827 {
8828 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 }
8831 {
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
8834
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
8839 return resultobj;
8840 fail:
8841 return NULL;
8842 }
8843
8844
8845 static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxImage *arg1 = (wxImage *) 0 ;
8848 int arg2 ;
8849 int arg3 ;
8850 unsigned char arg4 ;
8851 PyObject * obj0 = 0 ;
8852 PyObject * obj1 = 0 ;
8853 PyObject * obj2 = 0 ;
8854 PyObject * obj3 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8861 {
8862 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 {
8866 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8867 if (PyErr_Occurred()) SWIG_fail;
8868 }
8869 {
8870 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 {
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 (arg1)->SetAlpha(arg2,arg3,arg4);
8876
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 Py_INCREF(Py_None); resultobj = Py_None;
8881 return resultobj;
8882 fail:
8883 return NULL;
8884 }
8885
8886
8887 static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8888 PyObject *resultobj;
8889 wxImage *arg1 = (wxImage *) 0 ;
8890 int arg2 ;
8891 int arg3 ;
8892 unsigned char result;
8893 PyObject * obj0 = 0 ;
8894 PyObject * obj1 = 0 ;
8895 PyObject * obj2 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "self",(char *) "x",(char *) "y", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
8901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8902 {
8903 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 {
8907 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
8912 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
8918 return resultobj;
8919 fail:
8920 return NULL;
8921 }
8922
8923
8924 static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj;
8926 wxImage *arg1 = (wxImage *) 0 ;
8927 bool result;
8928 PyObject * obj0 = 0 ;
8929 char *kwnames[] = {
8930 (char *) "self", NULL
8931 };
8932
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
8934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8935 {
8936 PyThreadState* __tstate = wxPyBeginAllowThreads();
8937 result = (bool)(arg1)->HasAlpha();
8938
8939 wxPyEndAllowThreads(__tstate);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 resultobj = SWIG_PyObj_FromBool((bool)result);
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8950 PyObject *resultobj;
8951 wxImage *arg1 = (wxImage *) 0 ;
8952 byte *arg2 = (byte *) 0 ;
8953 byte *arg3 = (byte *) 0 ;
8954 byte *arg4 = (byte *) 0 ;
8955 byte arg5 = (byte) 0 ;
8956 byte arg6 = (byte) 0 ;
8957 byte arg7 = (byte) 0 ;
8958 bool result;
8959 byte temp2 ;
8960 byte temp3 ;
8961 byte temp4 ;
8962 PyObject * obj0 = 0 ;
8963 PyObject * obj1 = 0 ;
8964 PyObject * obj2 = 0 ;
8965 PyObject * obj3 = 0 ;
8966 char *kwnames[] = {
8967 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8968 };
8969
8970 arg2 = &temp2;
8971 arg3 = &temp3;
8972 arg4 = &temp4;
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8975 if (obj1) {
8976 {
8977 arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 }
8981 if (obj2) {
8982 {
8983 arg6 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 }
8987 if (obj3) {
8988 {
8989 arg7 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 }
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_PyObj_FromBool((bool)result);
9001 {
9002 PyObject *o = PyInt_FromLong((long) (*arg2));
9003 resultobj = t_output_helper(resultobj,o);
9004 }
9005 {
9006 PyObject *o = PyInt_FromLong((long) (*arg3));
9007 resultobj = t_output_helper(resultobj,o);
9008 }
9009 {
9010 PyObject *o = PyInt_FromLong((long) (*arg4));
9011 resultobj = t_output_helper(resultobj,o);
9012 }
9013 return resultobj;
9014 fail:
9015 return NULL;
9016 }
9017
9018
9019 static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9020 PyObject *resultobj;
9021 wxImage *arg1 = (wxImage *) 0 ;
9022 wxImage *arg2 = 0 ;
9023 byte arg3 ;
9024 byte arg4 ;
9025 byte arg5 ;
9026 bool result;
9027 PyObject * obj0 = 0 ;
9028 PyObject * obj1 = 0 ;
9029 PyObject * obj2 = 0 ;
9030 PyObject * obj3 = 0 ;
9031 PyObject * obj4 = 0 ;
9032 char *kwnames[] = {
9033 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9034 };
9035
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9038 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9039 if (arg2 == NULL) {
9040 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9041 }
9042 {
9043 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
9044 if (PyErr_Occurred()) SWIG_fail;
9045 }
9046 {
9047 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 }
9050 {
9051 arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj4);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9057
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
9061 resultobj = SWIG_PyObj_FromBool((bool)result);
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxString *arg1 = 0 ;
9071 bool result;
9072 bool temp1 = False ;
9073 PyObject * obj0 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "name", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9079 {
9080 arg1 = wxString_in_helper(obj0);
9081 if (arg1 == NULL) SWIG_fail;
9082 temp1 = True;
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 resultobj = SWIG_PyObj_FromBool((bool)result);
9092 {
9093 if (temp1)
9094 delete arg1;
9095 }
9096 return resultobj;
9097 fail:
9098 {
9099 if (temp1)
9100 delete arg1;
9101 }
9102 return NULL;
9103 }
9104
9105
9106 static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj;
9108 wxString *arg1 = 0 ;
9109 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9110 int result;
9111 bool temp1 = False ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "name",(char *) "type", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9119 {
9120 arg1 = wxString_in_helper(obj0);
9121 if (arg1 == NULL) SWIG_fail;
9122 temp1 = True;
9123 }
9124 if (obj1) {
9125 {
9126 arg2 = (long) SWIG_PyObj_AsLong(obj1);
9127 if (PyErr_Occurred()) SWIG_fail;
9128 }
9129 }
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9133
9134 wxPyEndAllowThreads(__tstate);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 resultobj = SWIG_PyObj_FromInt((int)result);
9138 {
9139 if (temp1)
9140 delete arg1;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp1)
9146 delete arg1;
9147 }
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxImage *arg1 = (wxImage *) 0 ;
9155 wxString *arg2 = 0 ;
9156 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9157 int arg4 = (int) -1 ;
9158 bool result;
9159 bool temp2 = False ;
9160 PyObject * obj0 = 0 ;
9161 PyObject * obj1 = 0 ;
9162 PyObject * obj2 = 0 ;
9163 PyObject * obj3 = 0 ;
9164 char *kwnames[] = {
9165 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9166 };
9167
9168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9170 {
9171 arg2 = wxString_in_helper(obj1);
9172 if (arg2 == NULL) SWIG_fail;
9173 temp2 = True;
9174 }
9175 if (obj2) {
9176 {
9177 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 }
9181 if (obj3) {
9182 {
9183 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 }
9186 }
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 resultobj = SWIG_PyObj_FromBool((bool)result);
9195 {
9196 if (temp2)
9197 delete arg2;
9198 }
9199 return resultobj;
9200 fail:
9201 {
9202 if (temp2)
9203 delete arg2;
9204 }
9205 return NULL;
9206 }
9207
9208
9209 static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj;
9211 wxImage *arg1 = (wxImage *) 0 ;
9212 wxString *arg2 = 0 ;
9213 wxString *arg3 = 0 ;
9214 int arg4 = (int) -1 ;
9215 bool result;
9216 bool temp2 = False ;
9217 bool temp3 = False ;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 PyObject * obj2 = 0 ;
9221 PyObject * obj3 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9228 {
9229 arg2 = wxString_in_helper(obj1);
9230 if (arg2 == NULL) SWIG_fail;
9231 temp2 = True;
9232 }
9233 {
9234 arg3 = wxString_in_helper(obj2);
9235 if (arg3 == NULL) SWIG_fail;
9236 temp3 = True;
9237 }
9238 if (obj3) {
9239 {
9240 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 }
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_PyObj_FromBool((bool)result);
9252 {
9253 if (temp2)
9254 delete arg2;
9255 }
9256 {
9257 if (temp3)
9258 delete arg3;
9259 }
9260 return resultobj;
9261 fail:
9262 {
9263 if (temp2)
9264 delete arg2;
9265 }
9266 {
9267 if (temp3)
9268 delete arg3;
9269 }
9270 return NULL;
9271 }
9272
9273
9274 static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9275 PyObject *resultobj;
9276 wxImage *arg1 = (wxImage *) 0 ;
9277 wxString *arg2 = 0 ;
9278 int arg3 ;
9279 bool result;
9280 bool temp2 = False ;
9281 PyObject * obj0 = 0 ;
9282 PyObject * obj1 = 0 ;
9283 PyObject * obj2 = 0 ;
9284 char *kwnames[] = {
9285 (char *) "self",(char *) "name",(char *) "type", NULL
9286 };
9287
9288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9290 {
9291 arg2 = wxString_in_helper(obj1);
9292 if (arg2 == NULL) SWIG_fail;
9293 temp2 = True;
9294 }
9295 {
9296 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9302
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_PyObj_FromBool((bool)result);
9307 {
9308 if (temp2)
9309 delete arg2;
9310 }
9311 return resultobj;
9312 fail:
9313 {
9314 if (temp2)
9315 delete arg2;
9316 }
9317 return NULL;
9318 }
9319
9320
9321 static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj;
9323 wxImage *arg1 = (wxImage *) 0 ;
9324 wxString *arg2 = 0 ;
9325 wxString *arg3 = 0 ;
9326 bool result;
9327 bool temp2 = False ;
9328 bool temp3 = False ;
9329 PyObject * obj0 = 0 ;
9330 PyObject * obj1 = 0 ;
9331 PyObject * obj2 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9338 {
9339 arg2 = wxString_in_helper(obj1);
9340 if (arg2 == NULL) SWIG_fail;
9341 temp2 = True;
9342 }
9343 {
9344 arg3 = wxString_in_helper(obj2);
9345 if (arg3 == NULL) SWIG_fail;
9346 temp3 = True;
9347 }
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9351
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 resultobj = SWIG_PyObj_FromBool((bool)result);
9356 {
9357 if (temp2)
9358 delete arg2;
9359 }
9360 {
9361 if (temp3)
9362 delete arg3;
9363 }
9364 return resultobj;
9365 fail:
9366 {
9367 if (temp2)
9368 delete arg2;
9369 }
9370 {
9371 if (temp3)
9372 delete arg3;
9373 }
9374 return NULL;
9375 }
9376
9377
9378 static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj;
9380 wxInputStream *arg1 = 0 ;
9381 bool result;
9382 wxPyInputStream *temp1 ;
9383 bool created1 ;
9384 PyObject * obj0 = 0 ;
9385 char *kwnames[] = {
9386 (char *) "stream", NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9390 {
9391 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9392 arg1 = temp1->m_wxis;
9393 created1 = False;
9394 } else {
9395 PyErr_Clear(); // clear the failure of the wxPyConvert above
9396 arg1 = wxPyCBInputStream_create(obj0, False);
9397 if (arg1 == NULL) {
9398 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9399 SWIG_fail;
9400 }
9401 created1 = True;
9402 }
9403 }
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 result = (bool)wxImage::CanRead(*arg1);
9407
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = SWIG_PyObj_FromBool((bool)result);
9412 {
9413 if (created1)
9414 delete arg1;
9415 }
9416 return resultobj;
9417 fail:
9418 {
9419 if (created1)
9420 delete arg1;
9421 }
9422 return NULL;
9423 }
9424
9425
9426 static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj;
9428 wxImage *arg1 = (wxImage *) 0 ;
9429 wxInputStream *arg2 = 0 ;
9430 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9431 int arg4 = (int) -1 ;
9432 bool result;
9433 wxPyInputStream *temp2 ;
9434 bool created2 ;
9435 PyObject * obj0 = 0 ;
9436 PyObject * obj1 = 0 ;
9437 PyObject * obj2 = 0 ;
9438 PyObject * obj3 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9445 {
9446 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9447 arg2 = temp2->m_wxis;
9448 created2 = False;
9449 } else {
9450 PyErr_Clear(); // clear the failure of the wxPyConvert above
9451 arg2 = wxPyCBInputStream_create(obj1, False);
9452 if (arg2 == NULL) {
9453 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9454 SWIG_fail;
9455 }
9456 created2 = True;
9457 }
9458 }
9459 if (obj2) {
9460 {
9461 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 }
9465 if (obj3) {
9466 {
9467 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 }
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9474
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_PyObj_FromBool((bool)result);
9479 {
9480 if (created2)
9481 delete arg2;
9482 }
9483 return resultobj;
9484 fail:
9485 {
9486 if (created2)
9487 delete arg2;
9488 }
9489 return NULL;
9490 }
9491
9492
9493 static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj;
9495 wxImage *arg1 = (wxImage *) 0 ;
9496 wxInputStream *arg2 = 0 ;
9497 wxString *arg3 = 0 ;
9498 int arg4 = (int) -1 ;
9499 bool result;
9500 wxPyInputStream *temp2 ;
9501 bool created2 ;
9502 bool temp3 = False ;
9503 PyObject * obj0 = 0 ;
9504 PyObject * obj1 = 0 ;
9505 PyObject * obj2 = 0 ;
9506 PyObject * obj3 = 0 ;
9507 char *kwnames[] = {
9508 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9509 };
9510
9511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9513 {
9514 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9515 arg2 = temp2->m_wxis;
9516 created2 = False;
9517 } else {
9518 PyErr_Clear(); // clear the failure of the wxPyConvert above
9519 arg2 = wxPyCBInputStream_create(obj1, False);
9520 if (arg2 == NULL) {
9521 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9522 SWIG_fail;
9523 }
9524 created2 = True;
9525 }
9526 }
9527 {
9528 arg3 = wxString_in_helper(obj2);
9529 if (arg3 == NULL) SWIG_fail;
9530 temp3 = True;
9531 }
9532 if (obj3) {
9533 {
9534 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 }
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
9541
9542 wxPyEndAllowThreads(__tstate);
9543 if (PyErr_Occurred()) SWIG_fail;
9544 }
9545 resultobj = SWIG_PyObj_FromBool((bool)result);
9546 {
9547 if (created2)
9548 delete arg2;
9549 }
9550 {
9551 if (temp3)
9552 delete arg3;
9553 }
9554 return resultobj;
9555 fail:
9556 {
9557 if (created2)
9558 delete arg2;
9559 }
9560 {
9561 if (temp3)
9562 delete arg3;
9563 }
9564 return NULL;
9565 }
9566
9567
9568 static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 wxImage *arg1 = (wxImage *) 0 ;
9571 bool result;
9572 PyObject * obj0 = 0 ;
9573 char *kwnames[] = {
9574 (char *) "self", NULL
9575 };
9576
9577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
9578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (bool)(arg1)->Ok();
9582
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 }
9586 resultobj = SWIG_PyObj_FromBool((bool)result);
9587 return resultobj;
9588 fail:
9589 return NULL;
9590 }
9591
9592
9593 static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9594 PyObject *resultobj;
9595 wxImage *arg1 = (wxImage *) 0 ;
9596 int result;
9597 PyObject * obj0 = 0 ;
9598 char *kwnames[] = {
9599 (char *) "self", NULL
9600 };
9601
9602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
9603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 result = (int)(arg1)->GetWidth();
9607
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_PyObj_FromInt((int)result);
9612 return resultobj;
9613 fail:
9614 return NULL;
9615 }
9616
9617
9618 static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj;
9620 wxImage *arg1 = (wxImage *) 0 ;
9621 int result;
9622 PyObject * obj0 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "self", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
9628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 result = (int)(arg1)->GetHeight();
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
9636 resultobj = SWIG_PyObj_FromInt((int)result);
9637 return resultobj;
9638 fail:
9639 return NULL;
9640 }
9641
9642
9643 static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj;
9645 wxImage *arg1 = (wxImage *) 0 ;
9646 wxRect *arg2 = 0 ;
9647 SwigValueWrapper< wxImage > result;
9648 wxRect temp2 ;
9649 PyObject * obj0 = 0 ;
9650 PyObject * obj1 = 0 ;
9651 char *kwnames[] = {
9652 (char *) "self",(char *) "rect", NULL
9653 };
9654
9655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
9656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9657 {
9658 arg2 = &temp2;
9659 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9660 }
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 result = (arg1)->GetSubImage((wxRect const &)*arg2);
9664
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 {
9669 wxImage * resultptr;
9670 resultptr = new wxImage((wxImage &) result);
9671 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
9672 }
9673 return resultobj;
9674 fail:
9675 return NULL;
9676 }
9677
9678
9679 static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9680 PyObject *resultobj;
9681 wxImage *arg1 = (wxImage *) 0 ;
9682 SwigValueWrapper< wxImage > result;
9683 PyObject * obj0 = 0 ;
9684 char *kwnames[] = {
9685 (char *) "self", NULL
9686 };
9687
9688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
9689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 result = (arg1)->Copy();
9693
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 {
9698 wxImage * resultptr;
9699 resultptr = new wxImage((wxImage &) result);
9700 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
9701 }
9702 return resultobj;
9703 fail:
9704 return NULL;
9705 }
9706
9707
9708 static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9709 PyObject *resultobj;
9710 wxImage *arg1 = (wxImage *) 0 ;
9711 wxImage *arg2 = 0 ;
9712 int arg3 ;
9713 int arg4 ;
9714 PyObject * obj0 = 0 ;
9715 PyObject * obj1 = 0 ;
9716 PyObject * obj2 = 0 ;
9717 PyObject * obj3 = 0 ;
9718 char *kwnames[] = {
9719 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
9720 };
9721
9722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9724 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9725 if (arg2 == NULL) {
9726 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9727 }
9728 {
9729 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 {
9737 PyThreadState* __tstate = wxPyBeginAllowThreads();
9738 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
9739
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 Py_INCREF(Py_None); resultobj = Py_None;
9744 return resultobj;
9745 fail:
9746 return NULL;
9747 }
9748
9749
9750 static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj;
9752 wxImage *arg1 = (wxImage *) 0 ;
9753 PyObject *result;
9754 PyObject * obj0 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (PyObject *)wxImage_GetData(arg1);
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = result;
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj;
9777 wxImage *arg1 = (wxImage *) 0 ;
9778 PyObject *arg2 = (PyObject *) 0 ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj1 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self",(char *) "data", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9787 arg2 = obj1;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 wxImage_SetData(arg1,arg2);
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 Py_INCREF(Py_None); resultobj = Py_None;
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxImage *arg1 = (wxImage *) 0 ;
9805 PyObject *result;
9806 PyObject * obj0 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = (PyObject *)wxImage_GetDataBuffer(arg1);
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 resultobj = result;
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj;
9829 wxImage *arg1 = (wxImage *) 0 ;
9830 PyObject *arg2 = (PyObject *) 0 ;
9831 PyObject * obj0 = 0 ;
9832 PyObject * obj1 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self",(char *) "data", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
9838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9839 arg2 = obj1;
9840 {
9841 PyThreadState* __tstate = wxPyBeginAllowThreads();
9842 wxImage_SetDataBuffer(arg1,arg2);
9843
9844 wxPyEndAllowThreads(__tstate);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 }
9847 Py_INCREF(Py_None); resultobj = Py_None;
9848 return resultobj;
9849 fail:
9850 return NULL;
9851 }
9852
9853
9854 static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
9855 PyObject *resultobj;
9856 wxImage *arg1 = (wxImage *) 0 ;
9857 PyObject *result;
9858 PyObject * obj0 = 0 ;
9859 char *kwnames[] = {
9860 (char *) "self", NULL
9861 };
9862
9863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
9864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (PyObject *)wxImage_GetAlphaData(arg1);
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = result;
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj;
9881 wxImage *arg1 = (wxImage *) 0 ;
9882 PyObject *arg2 = (PyObject *) 0 ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 char *kwnames[] = {
9886 (char *) "self",(char *) "data", NULL
9887 };
9888
9889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
9890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9891 arg2 = obj1;
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 wxImage_SetAlphaData(arg1,arg2);
9895
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 Py_INCREF(Py_None); resultobj = Py_None;
9900 return resultobj;
9901 fail:
9902 return NULL;
9903 }
9904
9905
9906 static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj;
9908 wxImage *arg1 = (wxImage *) 0 ;
9909 PyObject *result;
9910 PyObject * obj0 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
9920
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = result;
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj;
9933 wxImage *arg1 = (wxImage *) 0 ;
9934 PyObject *arg2 = (PyObject *) 0 ;
9935 PyObject * obj0 = 0 ;
9936 PyObject * obj1 = 0 ;
9937 char *kwnames[] = {
9938 (char *) "self",(char *) "data", NULL
9939 };
9940
9941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
9942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9943 arg2 = obj1;
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 wxImage_SetAlphaBuffer(arg1,arg2);
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 Py_INCREF(Py_None); resultobj = Py_None;
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxImage *arg1 = (wxImage *) 0 ;
9961 unsigned char arg2 ;
9962 unsigned char arg3 ;
9963 unsigned char arg4 ;
9964 PyObject * obj0 = 0 ;
9965 PyObject * obj1 = 0 ;
9966 PyObject * obj2 = 0 ;
9967 PyObject * obj3 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9974 {
9975 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
9978 {
9979 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 PyThreadState* __tstate = wxPyBeginAllowThreads();
9988 (arg1)->SetMaskColour(arg2,arg3,arg4);
9989
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 Py_INCREF(Py_None); resultobj = Py_None;
9994 return resultobj;
9995 fail:
9996 return NULL;
9997 }
9998
9999
10000 static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj;
10002 wxImage *arg1 = (wxImage *) 0 ;
10003 unsigned char result;
10004 PyObject * obj0 = 0 ;
10005 char *kwnames[] = {
10006 (char *) "self", NULL
10007 };
10008
10009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 result = (unsigned char)(arg1)->GetMaskRed();
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxImage *arg1 = (wxImage *) 0 ;
10028 unsigned char result;
10029 PyObject * obj0 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10036 {
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 result = (unsigned char)(arg1)->GetMaskGreen();
10039
10040 wxPyEndAllowThreads(__tstate);
10041 if (PyErr_Occurred()) SWIG_fail;
10042 }
10043 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
10044 return resultobj;
10045 fail:
10046 return NULL;
10047 }
10048
10049
10050 static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10051 PyObject *resultobj;
10052 wxImage *arg1 = (wxImage *) 0 ;
10053 unsigned char result;
10054 PyObject * obj0 = 0 ;
10055 char *kwnames[] = {
10056 (char *) "self", NULL
10057 };
10058
10059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10061 {
10062 PyThreadState* __tstate = wxPyBeginAllowThreads();
10063 result = (unsigned char)(arg1)->GetMaskBlue();
10064
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
10069 return resultobj;
10070 fail:
10071 return NULL;
10072 }
10073
10074
10075 static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj;
10077 wxImage *arg1 = (wxImage *) 0 ;
10078 bool arg2 = (bool) True ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 char *kwnames[] = {
10082 (char *) "self",(char *) "mask", NULL
10083 };
10084
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10087 if (obj1) {
10088 {
10089 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 (arg1)->SetMask(arg2);
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 Py_INCREF(Py_None); resultobj = Py_None;
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxImage *arg1 = (wxImage *) 0 ;
10110 bool result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (bool)(arg1)->HasMask();
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 resultobj = SWIG_PyObj_FromBool((bool)result);
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxImage *arg1 = (wxImage *) 0 ;
10135 double arg2 ;
10136 wxPoint *arg3 = 0 ;
10137 bool arg4 = (bool) True ;
10138 wxPoint *arg5 = (wxPoint *) NULL ;
10139 SwigValueWrapper< wxImage > result;
10140 wxPoint temp3 ;
10141 PyObject * obj0 = 0 ;
10142 PyObject * obj1 = 0 ;
10143 PyObject * obj2 = 0 ;
10144 PyObject * obj3 = 0 ;
10145 PyObject * obj4 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10152 {
10153 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
10154 if (PyErr_Occurred()) SWIG_fail;
10155 }
10156 {
10157 arg3 = &temp3;
10158 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10159 }
10160 if (obj3) {
10161 {
10162 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 }
10166 if (obj4) {
10167 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10168 }
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 {
10177 wxImage * resultptr;
10178 resultptr = new wxImage((wxImage &) result);
10179 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10180 }
10181 return resultobj;
10182 fail:
10183 return NULL;
10184 }
10185
10186
10187 static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10188 PyObject *resultobj;
10189 wxImage *arg1 = (wxImage *) 0 ;
10190 bool arg2 = (bool) True ;
10191 SwigValueWrapper< wxImage > result;
10192 PyObject * obj0 = 0 ;
10193 PyObject * obj1 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "self",(char *) "clockwise", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10200 if (obj1) {
10201 {
10202 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 }
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (arg1)->Rotate90(arg2);
10209
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 {
10214 wxImage * resultptr;
10215 resultptr = new wxImage((wxImage &) result);
10216 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10217 }
10218 return resultobj;
10219 fail:
10220 return NULL;
10221 }
10222
10223
10224 static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10225 PyObject *resultobj;
10226 wxImage *arg1 = (wxImage *) 0 ;
10227 bool arg2 = (bool) True ;
10228 SwigValueWrapper< wxImage > result;
10229 PyObject * obj0 = 0 ;
10230 PyObject * obj1 = 0 ;
10231 char *kwnames[] = {
10232 (char *) "self",(char *) "horizontally", NULL
10233 };
10234
10235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10237 if (obj1) {
10238 {
10239 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 }
10242 }
10243 {
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (arg1)->Mirror(arg2);
10246
10247 wxPyEndAllowThreads(__tstate);
10248 if (PyErr_Occurred()) SWIG_fail;
10249 }
10250 {
10251 wxImage * resultptr;
10252 resultptr = new wxImage((wxImage &) result);
10253 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10254 }
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj;
10263 wxImage *arg1 = (wxImage *) 0 ;
10264 unsigned char arg2 ;
10265 unsigned char arg3 ;
10266 unsigned char arg4 ;
10267 unsigned char arg5 ;
10268 unsigned char arg6 ;
10269 unsigned char arg7 ;
10270 PyObject * obj0 = 0 ;
10271 PyObject * obj1 = 0 ;
10272 PyObject * obj2 = 0 ;
10273 PyObject * obj3 = 0 ;
10274 PyObject * obj4 = 0 ;
10275 PyObject * obj5 = 0 ;
10276 PyObject * obj6 = 0 ;
10277 char *kwnames[] = {
10278 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10279 };
10280
10281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10283 {
10284 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
10292 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 {
10296 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 {
10300 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 {
10304 arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj6);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10310
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 Py_INCREF(Py_None); resultobj = Py_None;
10315 return resultobj;
10316 fail:
10317 return NULL;
10318 }
10319
10320
10321 static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj;
10323 wxImage *arg1 = (wxImage *) 0 ;
10324 unsigned char arg2 ;
10325 unsigned char arg3 ;
10326 unsigned char arg4 ;
10327 SwigValueWrapper< wxImage > result;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 PyObject * obj2 = 0 ;
10331 PyObject * obj3 = 0 ;
10332 char *kwnames[] = {
10333 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10334 };
10335
10336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10338 {
10339 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 {
10343 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 {
10358 wxImage * resultptr;
10359 resultptr = new wxImage((wxImage &) result);
10360 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10361 }
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj;
10370 wxImage *arg1 = (wxImage *) 0 ;
10371 wxString *arg2 = 0 ;
10372 wxString *arg3 = 0 ;
10373 bool temp2 = False ;
10374 bool temp3 = False ;
10375 PyObject * obj0 = 0 ;
10376 PyObject * obj1 = 0 ;
10377 PyObject * obj2 = 0 ;
10378 char *kwnames[] = {
10379 (char *) "self",(char *) "name",(char *) "value", NULL
10380 };
10381
10382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10384 {
10385 arg2 = wxString_in_helper(obj1);
10386 if (arg2 == NULL) SWIG_fail;
10387 temp2 = True;
10388 }
10389 {
10390 arg3 = wxString_in_helper(obj2);
10391 if (arg3 == NULL) SWIG_fail;
10392 temp3 = True;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 Py_INCREF(Py_None); resultobj = Py_None;
10402 {
10403 if (temp2)
10404 delete arg2;
10405 }
10406 {
10407 if (temp3)
10408 delete arg3;
10409 }
10410 return resultobj;
10411 fail:
10412 {
10413 if (temp2)
10414 delete arg2;
10415 }
10416 {
10417 if (temp3)
10418 delete arg3;
10419 }
10420 return NULL;
10421 }
10422
10423
10424 static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj;
10426 wxImage *arg1 = (wxImage *) 0 ;
10427 wxString *arg2 = 0 ;
10428 int arg3 ;
10429 bool temp2 = False ;
10430 PyObject * obj0 = 0 ;
10431 PyObject * obj1 = 0 ;
10432 PyObject * obj2 = 0 ;
10433 char *kwnames[] = {
10434 (char *) "self",(char *) "name",(char *) "value", NULL
10435 };
10436
10437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
10438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10439 {
10440 arg2 = wxString_in_helper(obj1);
10441 if (arg2 == NULL) SWIG_fail;
10442 temp2 = True;
10443 }
10444 {
10445 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
10448 {
10449 PyThreadState* __tstate = wxPyBeginAllowThreads();
10450 (arg1)->SetOption((wxString const &)*arg2,arg3);
10451
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 Py_INCREF(Py_None); resultobj = Py_None;
10456 {
10457 if (temp2)
10458 delete arg2;
10459 }
10460 return resultobj;
10461 fail:
10462 {
10463 if (temp2)
10464 delete arg2;
10465 }
10466 return NULL;
10467 }
10468
10469
10470 static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj;
10472 wxImage *arg1 = (wxImage *) 0 ;
10473 wxString *arg2 = 0 ;
10474 wxString result;
10475 bool temp2 = False ;
10476 PyObject * obj0 = 0 ;
10477 PyObject * obj1 = 0 ;
10478 char *kwnames[] = {
10479 (char *) "self",(char *) "name", NULL
10480 };
10481
10482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10484 {
10485 arg2 = wxString_in_helper(obj1);
10486 if (arg2 == NULL) SWIG_fail;
10487 temp2 = True;
10488 }
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 {
10497 #if wxUSE_UNICODE
10498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10499 #else
10500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10501 #endif
10502 }
10503 {
10504 if (temp2)
10505 delete arg2;
10506 }
10507 return resultobj;
10508 fail:
10509 {
10510 if (temp2)
10511 delete arg2;
10512 }
10513 return NULL;
10514 }
10515
10516
10517 static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj;
10519 wxImage *arg1 = (wxImage *) 0 ;
10520 wxString *arg2 = 0 ;
10521 int result;
10522 bool temp2 = False ;
10523 PyObject * obj0 = 0 ;
10524 PyObject * obj1 = 0 ;
10525 char *kwnames[] = {
10526 (char *) "self",(char *) "name", NULL
10527 };
10528
10529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
10530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10531 {
10532 arg2 = wxString_in_helper(obj1);
10533 if (arg2 == NULL) SWIG_fail;
10534 temp2 = True;
10535 }
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
10539
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_PyObj_FromInt((int)result);
10544 {
10545 if (temp2)
10546 delete arg2;
10547 }
10548 return resultobj;
10549 fail:
10550 {
10551 if (temp2)
10552 delete arg2;
10553 }
10554 return NULL;
10555 }
10556
10557
10558 static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxImage *arg1 = (wxImage *) 0 ;
10561 wxString *arg2 = 0 ;
10562 bool result;
10563 bool temp2 = False ;
10564 PyObject * obj0 = 0 ;
10565 PyObject * obj1 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self",(char *) "name", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10572 {
10573 arg2 = wxString_in_helper(obj1);
10574 if (arg2 == NULL) SWIG_fail;
10575 temp2 = True;
10576 }
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_PyObj_FromBool((bool)result);
10585 {
10586 if (temp2)
10587 delete arg2;
10588 }
10589 return resultobj;
10590 fail:
10591 {
10592 if (temp2)
10593 delete arg2;
10594 }
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxImage *arg1 = (wxImage *) 0 ;
10602 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
10603 unsigned long result;
10604 PyObject * obj0 = 0 ;
10605 PyObject * obj1 = 0 ;
10606 char *kwnames[] = {
10607 (char *) "self",(char *) "stopafter", NULL
10608 };
10609
10610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
10611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10612 if (obj1) {
10613 {
10614 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 }
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 result = (unsigned long)(arg1)->CountColours(arg2);
10621
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj;
10634 wxImage *arg1 = (wxImage *) 0 ;
10635 wxImageHistogram *arg2 = 0 ;
10636 unsigned long result;
10637 PyObject * obj0 = 0 ;
10638 PyObject * obj1 = 0 ;
10639 char *kwnames[] = {
10640 (char *) "self",(char *) "h", NULL
10641 };
10642
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
10644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10645 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10646 if (arg2 == NULL) {
10647 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10648 }
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
10652
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
10657 return resultobj;
10658 fail:
10659 return NULL;
10660 }
10661
10662
10663 static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj;
10665 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10666 PyObject * obj0 = 0 ;
10667 char *kwnames[] = {
10668 (char *) "handler", NULL
10669 };
10670
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
10672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 wxImage::AddHandler(arg1);
10676
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 Py_INCREF(Py_None); resultobj = Py_None;
10681 return resultobj;
10682 fail:
10683 return NULL;
10684 }
10685
10686
10687 static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj;
10689 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10690 PyObject * obj0 = 0 ;
10691 char *kwnames[] = {
10692 (char *) "handler", NULL
10693 };
10694
10695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
10696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 wxImage::InsertHandler(arg1);
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 Py_INCREF(Py_None); resultobj = Py_None;
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxString *arg1 = 0 ;
10714 bool result;
10715 bool temp1 = False ;
10716 PyObject * obj0 = 0 ;
10717 char *kwnames[] = {
10718 (char *) "name", NULL
10719 };
10720
10721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
10722 {
10723 arg1 = wxString_in_helper(obj0);
10724 if (arg1 == NULL) SWIG_fail;
10725 temp1 = True;
10726 }
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_PyObj_FromBool((bool)result);
10735 {
10736 if (temp1)
10737 delete arg1;
10738 }
10739 return resultobj;
10740 fail:
10741 {
10742 if (temp1)
10743 delete arg1;
10744 }
10745 return NULL;
10746 }
10747
10748
10749 static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj;
10751 wxString result;
10752 char *kwnames[] = {
10753 NULL
10754 };
10755
10756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = wxImage::GetImageExtWildcard();
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 {
10765 #if wxUSE_UNICODE
10766 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10767 #else
10768 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10769 #endif
10770 }
10771 return resultobj;
10772 fail:
10773 return NULL;
10774 }
10775
10776
10777 static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj;
10779 wxImage *arg1 = (wxImage *) 0 ;
10780 wxBitmap result;
10781 PyObject * obj0 = 0 ;
10782 char *kwnames[] = {
10783 (char *) "self", NULL
10784 };
10785
10786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
10787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 result = wxImage_ConvertToBitmap(arg1);
10791
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 {
10796 wxBitmap * resultptr;
10797 resultptr = new wxBitmap((wxBitmap &) result);
10798 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
10799 }
10800 return resultobj;
10801 fail:
10802 return NULL;
10803 }
10804
10805
10806 static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj;
10808 wxImage *arg1 = (wxImage *) 0 ;
10809 unsigned char arg2 ;
10810 unsigned char arg3 ;
10811 unsigned char arg4 ;
10812 wxBitmap result;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 PyObject * obj2 = 0 ;
10816 PyObject * obj3 = 0 ;
10817 char *kwnames[] = {
10818 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
10819 };
10820
10821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10823 {
10824 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 {
10828 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 {
10832 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 {
10843 wxBitmap * resultptr;
10844 resultptr = new wxBitmap((wxBitmap &) result);
10845 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
10846 }
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
10854 PyObject *obj;
10855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10856 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
10857 Py_INCREF(obj);
10858 return Py_BuildValue((char *)"");
10859 }
10860 static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
10861 PyObject *resultobj;
10862 char *kwnames[] = {
10863 NULL
10864 };
10865
10866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail;
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 wxInitAllImageHandlers();
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 Py_INCREF(Py_None); resultobj = Py_None;
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static int _wrap_NullImage_set(PyObject *_val) {
10882 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
10883 return 1;
10884 }
10885
10886
10887 static PyObject *_wrap_NullImage_get() {
10888 PyObject *pyobj;
10889
10890 pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0);
10891 return pyobj;
10892 }
10893
10894
10895 static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) {
10896 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
10897 return 1;
10898 }
10899
10900
10901 static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
10902 PyObject *pyobj;
10903
10904 {
10905 #if wxUSE_UNICODE
10906 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
10907 #else
10908 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
10909 #endif
10910 }
10911 return pyobj;
10912 }
10913
10914
10915 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) {
10916 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
10917 return 1;
10918 }
10919
10920
10921 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
10922 PyObject *pyobj;
10923
10924 {
10925 #if wxUSE_UNICODE
10926 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
10927 #else
10928 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
10929 #endif
10930 }
10931 return pyobj;
10932 }
10933
10934
10935 static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) {
10936 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
10937 return 1;
10938 }
10939
10940
10941 static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
10942 PyObject *pyobj;
10943
10944 {
10945 #if wxUSE_UNICODE
10946 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
10947 #else
10948 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
10949 #endif
10950 }
10951 return pyobj;
10952 }
10953
10954
10955 static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) {
10956 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
10957 return 1;
10958 }
10959
10960
10961 static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
10962 PyObject *pyobj;
10963
10964 {
10965 #if wxUSE_UNICODE
10966 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
10967 #else
10968 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
10969 #endif
10970 }
10971 return pyobj;
10972 }
10973
10974
10975 static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) {
10976 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
10977 return 1;
10978 }
10979
10980
10981 static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
10982 PyObject *pyobj;
10983
10984 {
10985 #if wxUSE_UNICODE
10986 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
10987 #else
10988 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
10989 #endif
10990 }
10991 return pyobj;
10992 }
10993
10994
10995 static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj;
10997 wxBMPHandler *result;
10998 char *kwnames[] = {
10999 NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = (wxBMPHandler *)new wxBMPHandler();
11006
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1);
11011 return resultobj;
11012 fail:
11013 return NULL;
11014 }
11015
11016
11017 static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11018 PyObject *obj;
11019 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11020 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11021 Py_INCREF(obj);
11022 return Py_BuildValue((char *)"");
11023 }
11024 static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11025 PyObject *resultobj;
11026 wxICOHandler *result;
11027 char *kwnames[] = {
11028 NULL
11029 };
11030
11031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (wxICOHandler *)new wxICOHandler();
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1);
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11047 PyObject *obj;
11048 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11049 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11050 Py_INCREF(obj);
11051 return Py_BuildValue((char *)"");
11052 }
11053 static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj;
11055 wxCURHandler *result;
11056 char *kwnames[] = {
11057 NULL
11058 };
11059
11060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (wxCURHandler *)new wxCURHandler();
11064
11065 wxPyEndAllowThreads(__tstate);
11066 if (PyErr_Occurred()) SWIG_fail;
11067 }
11068 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1);
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11076 PyObject *obj;
11077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11078 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11079 Py_INCREF(obj);
11080 return Py_BuildValue((char *)"");
11081 }
11082 static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxANIHandler *result;
11085 char *kwnames[] = {
11086 NULL
11087 };
11088
11089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 result = (wxANIHandler *)new wxANIHandler();
11093
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1);
11098 return resultobj;
11099 fail:
11100 return NULL;
11101 }
11102
11103
11104 static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11105 PyObject *obj;
11106 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11107 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11108 Py_INCREF(obj);
11109 return Py_BuildValue((char *)"");
11110 }
11111 static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj;
11113 wxPNGHandler *result;
11114 char *kwnames[] = {
11115 NULL
11116 };
11117
11118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 result = (wxPNGHandler *)new wxPNGHandler();
11122
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1);
11127 return resultobj;
11128 fail:
11129 return NULL;
11130 }
11131
11132
11133 static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11134 PyObject *obj;
11135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11136 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11137 Py_INCREF(obj);
11138 return Py_BuildValue((char *)"");
11139 }
11140 static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11141 PyObject *resultobj;
11142 wxGIFHandler *result;
11143 char *kwnames[] = {
11144 NULL
11145 };
11146
11147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 result = (wxGIFHandler *)new wxGIFHandler();
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1);
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11163 PyObject *obj;
11164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11165 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11166 Py_INCREF(obj);
11167 return Py_BuildValue((char *)"");
11168 }
11169 static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj;
11171 wxPCXHandler *result;
11172 char *kwnames[] = {
11173 NULL
11174 };
11175
11176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11177 {
11178 PyThreadState* __tstate = wxPyBeginAllowThreads();
11179 result = (wxPCXHandler *)new wxPCXHandler();
11180
11181 wxPyEndAllowThreads(__tstate);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 }
11184 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1);
11185 return resultobj;
11186 fail:
11187 return NULL;
11188 }
11189
11190
11191 static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11192 PyObject *obj;
11193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11194 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11195 Py_INCREF(obj);
11196 return Py_BuildValue((char *)"");
11197 }
11198 static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxJPEGHandler *result;
11201 char *kwnames[] = {
11202 NULL
11203 };
11204
11205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 result = (wxJPEGHandler *)new wxJPEGHandler();
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1);
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11221 PyObject *obj;
11222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11223 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11224 Py_INCREF(obj);
11225 return Py_BuildValue((char *)"");
11226 }
11227 static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11228 PyObject *resultobj;
11229 wxPNMHandler *result;
11230 char *kwnames[] = {
11231 NULL
11232 };
11233
11234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = (wxPNMHandler *)new wxPNMHandler();
11238
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1);
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11250 PyObject *obj;
11251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11252 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11253 Py_INCREF(obj);
11254 return Py_BuildValue((char *)"");
11255 }
11256 static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxXPMHandler *result;
11259 char *kwnames[] = {
11260 NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (wxXPMHandler *)new wxXPMHandler();
11267
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1);
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11279 PyObject *obj;
11280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11281 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11282 Py_INCREF(obj);
11283 return Py_BuildValue((char *)"");
11284 }
11285 static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11286 PyObject *resultobj;
11287 wxTIFFHandler *result;
11288 char *kwnames[] = {
11289 NULL
11290 };
11291
11292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (wxTIFFHandler *)new wxTIFFHandler();
11296
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1);
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11308 PyObject *obj;
11309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11310 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11311 Py_INCREF(obj);
11312 return Py_BuildValue((char *)"");
11313 }
11314 static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj;
11316 wxEvtHandler *result;
11317 char *kwnames[] = {
11318 NULL
11319 };
11320
11321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (wxEvtHandler *)new wxEvtHandler();
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 {
11330 resultobj = wxPyMake_wxObject(result);
11331 }
11332 return resultobj;
11333 fail:
11334 return NULL;
11335 }
11336
11337
11338 static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11339 PyObject *resultobj;
11340 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11341 wxEvtHandler *result;
11342 PyObject * obj0 = 0 ;
11343 char *kwnames[] = {
11344 (char *) "self", NULL
11345 };
11346
11347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11352
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 {
11357 resultobj = wxPyMake_wxObject(result);
11358 }
11359 return resultobj;
11360 fail:
11361 return NULL;
11362 }
11363
11364
11365 static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj;
11367 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11368 wxEvtHandler *result;
11369 PyObject * obj0 = 0 ;
11370 char *kwnames[] = {
11371 (char *) "self", NULL
11372 };
11373
11374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 {
11384 resultobj = wxPyMake_wxObject(result);
11385 }
11386 return resultobj;
11387 fail:
11388 return NULL;
11389 }
11390
11391
11392 static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj;
11394 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11395 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 char *kwnames[] = {
11399 (char *) "self",(char *) "handler", NULL
11400 };
11401
11402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11404 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 (arg1)->SetNextHandler(arg2);
11408
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 Py_INCREF(Py_None); resultobj = Py_None;
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj;
11421 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11422 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11423 PyObject * obj0 = 0 ;
11424 PyObject * obj1 = 0 ;
11425 char *kwnames[] = {
11426 (char *) "self",(char *) "handler", NULL
11427 };
11428
11429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11431 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11432 {
11433 PyThreadState* __tstate = wxPyBeginAllowThreads();
11434 (arg1)->SetPreviousHandler(arg2);
11435
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 Py_INCREF(Py_None); resultobj = Py_None;
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11447 PyObject *resultobj;
11448 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11449 bool result;
11450 PyObject * obj0 = 0 ;
11451 char *kwnames[] = {
11452 (char *) "self", NULL
11453 };
11454
11455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
11456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11457 {
11458 PyThreadState* __tstate = wxPyBeginAllowThreads();
11459 result = (bool)(arg1)->GetEvtHandlerEnabled();
11460
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 resultobj = SWIG_PyObj_FromBool((bool)result);
11465 return resultobj;
11466 fail:
11467 return NULL;
11468 }
11469
11470
11471 static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11472 PyObject *resultobj;
11473 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11474 bool arg2 ;
11475 PyObject * obj0 = 0 ;
11476 PyObject * obj1 = 0 ;
11477 char *kwnames[] = {
11478 (char *) "self",(char *) "enabled", NULL
11479 };
11480
11481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
11482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11483 {
11484 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 (arg1)->SetEvtHandlerEnabled(arg2);
11490
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 Py_INCREF(Py_None); resultobj = Py_None;
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj;
11503 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11504 wxEvent *arg2 = 0 ;
11505 bool result;
11506 PyObject * obj0 = 0 ;
11507 PyObject * obj1 = 0 ;
11508 char *kwnames[] = {
11509 (char *) "self",(char *) "event", NULL
11510 };
11511
11512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
11513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11514 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11515 if (arg2 == NULL) {
11516 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11517 }
11518 {
11519 PyThreadState* __tstate = wxPyBeginAllowThreads();
11520 result = (bool)(arg1)->ProcessEvent(*arg2);
11521
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 resultobj = SWIG_PyObj_FromBool((bool)result);
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj;
11534 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11535 wxEvent *arg2 = 0 ;
11536 PyObject * obj0 = 0 ;
11537 PyObject * obj1 = 0 ;
11538 char *kwnames[] = {
11539 (char *) "self",(char *) "event", NULL
11540 };
11541
11542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
11543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11544 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11545 if (arg2 == NULL) {
11546 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 (arg1)->AddPendingEvent(*arg2);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 Py_INCREF(Py_None); resultobj = Py_None;
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
11563 PyObject *resultobj;
11564 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11565 PyObject * obj0 = 0 ;
11566 char *kwnames[] = {
11567 (char *) "self", NULL
11568 };
11569
11570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
11571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 (arg1)->ProcessPendingEvents();
11575
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 Py_INCREF(Py_None); resultobj = Py_None;
11580 return resultobj;
11581 fail:
11582 return NULL;
11583 }
11584
11585
11586 static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
11587 PyObject *resultobj;
11588 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11589 int arg2 ;
11590 int arg3 ;
11591 int arg4 ;
11592 PyObject *arg5 = (PyObject *) 0 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 PyObject * obj2 = 0 ;
11596 PyObject * obj3 = 0 ;
11597 PyObject * obj4 = 0 ;
11598 char *kwnames[] = {
11599 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
11600 };
11601
11602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11604 {
11605 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 {
11609 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 {
11613 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 arg5 = obj4;
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 Py_INCREF(Py_None); resultobj = Py_None;
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj;
11633 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11634 int arg2 ;
11635 int arg3 = (int) -1 ;
11636 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
11637 bool result;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
11640 PyObject * obj2 = 0 ;
11641 PyObject * obj3 = 0 ;
11642 char *kwnames[] = {
11643 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
11644 };
11645
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11648 {
11649 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 if (obj2) {
11653 {
11654 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 }
11657 }
11658 if (obj3) {
11659 {
11660 arg4 = (wxEventType) SWIG_PyObj_AsInt(obj3);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 }
11664 {
11665 PyThreadState* __tstate = wxPyBeginAllowThreads();
11666 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
11667
11668 wxPyEndAllowThreads(__tstate);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 resultobj = SWIG_PyObj_FromBool((bool)result);
11672 return resultobj;
11673 fail:
11674 return NULL;
11675 }
11676
11677
11678 static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11679 PyObject *resultobj;
11680 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11681 PyObject *arg2 = (PyObject *) 0 ;
11682 PyObject * obj0 = 0 ;
11683 PyObject * obj1 = 0 ;
11684 char *kwnames[] = {
11685 (char *) "self",(char *) "_self", NULL
11686 };
11687
11688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
11689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11690 arg2 = obj1;
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 wxEvtHandler__setOORInfo(arg1,arg2);
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 Py_INCREF(Py_None); resultobj = Py_None;
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
11706 PyObject *obj;
11707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11708 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
11709 Py_INCREF(obj);
11710 return Py_BuildValue((char *)"");
11711 }
11712 static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxEventType result;
11715 char *kwnames[] = {
11716 NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = (wxEventType)wxNewEventType();
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = SWIG_PyObj_FromInt((int)result);
11728 return resultobj;
11729 fail:
11730 return NULL;
11731 }
11732
11733
11734 static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
11735 PyObject *resultobj;
11736 wxEvent *arg1 = (wxEvent *) 0 ;
11737 PyObject * obj0 = 0 ;
11738 char *kwnames[] = {
11739 (char *) "self", NULL
11740 };
11741
11742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
11743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11744 {
11745 PyThreadState* __tstate = wxPyBeginAllowThreads();
11746 delete arg1;
11747
11748 wxPyEndAllowThreads(__tstate);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 Py_INCREF(Py_None); resultobj = Py_None;
11752 return resultobj;
11753 fail:
11754 return NULL;
11755 }
11756
11757
11758 static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11759 PyObject *resultobj;
11760 wxEvent *arg1 = (wxEvent *) 0 ;
11761 wxEventType arg2 ;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 char *kwnames[] = {
11765 (char *) "self",(char *) "typ", NULL
11766 };
11767
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
11769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11770 {
11771 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->SetEventType(arg2);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 return resultobj;
11783 fail:
11784 return NULL;
11785 }
11786
11787
11788 static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxEvent *arg1 = (wxEvent *) 0 ;
11791 wxEventType result;
11792 PyObject * obj0 = 0 ;
11793 char *kwnames[] = {
11794 (char *) "self", NULL
11795 };
11796
11797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
11798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11799 {
11800 PyThreadState* __tstate = wxPyBeginAllowThreads();
11801 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
11802
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 resultobj = SWIG_PyObj_FromInt((int)result);
11807 return resultobj;
11808 fail:
11809 return NULL;
11810 }
11811
11812
11813 static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj;
11815 wxEvent *arg1 = (wxEvent *) 0 ;
11816 wxObject *result;
11817 PyObject * obj0 = 0 ;
11818 char *kwnames[] = {
11819 (char *) "self", NULL
11820 };
11821
11822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
11823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
11827
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 {
11832 resultobj = wxPyMake_wxObject(result);
11833 }
11834 return resultobj;
11835 fail:
11836 return NULL;
11837 }
11838
11839
11840 static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
11841 PyObject *resultobj;
11842 wxEvent *arg1 = (wxEvent *) 0 ;
11843 wxObject *arg2 = (wxObject *) 0 ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "self",(char *) "obj", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11852 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 (arg1)->SetEventObject(arg2);
11856
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 Py_INCREF(Py_None); resultobj = Py_None;
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj;
11869 wxEvent *arg1 = (wxEvent *) 0 ;
11870 long result;
11871 PyObject * obj0 = 0 ;
11872 char *kwnames[] = {
11873 (char *) "self", NULL
11874 };
11875
11876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
11877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 result = (long)((wxEvent const *)arg1)->GetTimestamp();
11881
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_PyObj_FromLong((long)result);
11886 return resultobj;
11887 fail:
11888 return NULL;
11889 }
11890
11891
11892 static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj;
11894 wxEvent *arg1 = (wxEvent *) 0 ;
11895 long arg2 = (long) 0 ;
11896 PyObject * obj0 = 0 ;
11897 PyObject * obj1 = 0 ;
11898 char *kwnames[] = {
11899 (char *) "self",(char *) "ts", NULL
11900 };
11901
11902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
11903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11904 if (obj1) {
11905 {
11906 arg2 = (long) SWIG_PyObj_AsLong(obj1);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 }
11910 {
11911 PyThreadState* __tstate = wxPyBeginAllowThreads();
11912 (arg1)->SetTimestamp(arg2);
11913
11914 wxPyEndAllowThreads(__tstate);
11915 if (PyErr_Occurred()) SWIG_fail;
11916 }
11917 Py_INCREF(Py_None); resultobj = Py_None;
11918 return resultobj;
11919 fail:
11920 return NULL;
11921 }
11922
11923
11924 static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
11925 PyObject *resultobj;
11926 wxEvent *arg1 = (wxEvent *) 0 ;
11927 int result;
11928 PyObject * obj0 = 0 ;
11929 char *kwnames[] = {
11930 (char *) "self", NULL
11931 };
11932
11933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
11934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (int)((wxEvent const *)arg1)->GetId();
11938
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 resultobj = SWIG_PyObj_FromInt((int)result);
11943 return resultobj;
11944 fail:
11945 return NULL;
11946 }
11947
11948
11949 static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
11950 PyObject *resultobj;
11951 wxEvent *arg1 = (wxEvent *) 0 ;
11952 int arg2 ;
11953 PyObject * obj0 = 0 ;
11954 PyObject * obj1 = 0 ;
11955 char *kwnames[] = {
11956 (char *) "self",(char *) "Id", NULL
11957 };
11958
11959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
11960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11961 {
11962 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 (arg1)->SetId(arg2);
11968
11969 wxPyEndAllowThreads(__tstate);
11970 if (PyErr_Occurred()) SWIG_fail;
11971 }
11972 Py_INCREF(Py_None); resultobj = Py_None;
11973 return resultobj;
11974 fail:
11975 return NULL;
11976 }
11977
11978
11979 static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11980 PyObject *resultobj;
11981 wxEvent *arg1 = (wxEvent *) 0 ;
11982 bool result;
11983 PyObject * obj0 = 0 ;
11984 char *kwnames[] = {
11985 (char *) "self", NULL
11986 };
11987
11988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
11989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
11993
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_PyObj_FromBool((bool)result);
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj;
12006 wxEvent *arg1 = (wxEvent *) 0 ;
12007 bool arg2 = (bool) True ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 char *kwnames[] = {
12011 (char *) "self",(char *) "skip", NULL
12012 };
12013
12014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12016 if (obj1) {
12017 {
12018 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 }
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 (arg1)->Skip(arg2);
12025
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 Py_INCREF(Py_None); resultobj = Py_None;
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj;
12038 wxEvent *arg1 = (wxEvent *) 0 ;
12039 bool result;
12040 PyObject * obj0 = 0 ;
12041 char *kwnames[] = {
12042 (char *) "self", NULL
12043 };
12044
12045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12050
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 resultobj = SWIG_PyObj_FromBool((bool)result);
12055 return resultobj;
12056 fail:
12057 return NULL;
12058 }
12059
12060
12061 static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12062 PyObject *resultobj;
12063 wxEvent *arg1 = (wxEvent *) 0 ;
12064 bool result;
12065 PyObject * obj0 = 0 ;
12066 char *kwnames[] = {
12067 (char *) "self", NULL
12068 };
12069
12070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12075
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 resultobj = SWIG_PyObj_FromBool((bool)result);
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12087 PyObject *resultobj;
12088 wxEvent *arg1 = (wxEvent *) 0 ;
12089 int result;
12090 PyObject * obj0 = 0 ;
12091 char *kwnames[] = {
12092 (char *) "self", NULL
12093 };
12094
12095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12097 {
12098 PyThreadState* __tstate = wxPyBeginAllowThreads();
12099 result = (int)(arg1)->StopPropagation();
12100
12101 wxPyEndAllowThreads(__tstate);
12102 if (PyErr_Occurred()) SWIG_fail;
12103 }
12104 resultobj = SWIG_PyObj_FromInt((int)result);
12105 return resultobj;
12106 fail:
12107 return NULL;
12108 }
12109
12110
12111 static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12112 PyObject *resultobj;
12113 wxEvent *arg1 = (wxEvent *) 0 ;
12114 int arg2 ;
12115 PyObject * obj0 = 0 ;
12116 PyObject * obj1 = 0 ;
12117 char *kwnames[] = {
12118 (char *) "self",(char *) "propagationLevel", NULL
12119 };
12120
12121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12123 {
12124 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 (arg1)->ResumePropagation(arg2);
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 Py_INCREF(Py_None); resultobj = Py_None;
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj;
12143 wxEvent *arg1 = (wxEvent *) 0 ;
12144 wxEvent *result;
12145 PyObject * obj0 = 0 ;
12146 char *kwnames[] = {
12147 (char *) "self", NULL
12148 };
12149
12150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12152 {
12153 PyThreadState* __tstate = wxPyBeginAllowThreads();
12154 result = (wxEvent *)(arg1)->Clone();
12155
12156 wxPyEndAllowThreads(__tstate);
12157 if (PyErr_Occurred()) SWIG_fail;
12158 }
12159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0);
12160 return resultobj;
12161 fail:
12162 return NULL;
12163 }
12164
12165
12166 static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12167 PyObject *obj;
12168 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12169 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12170 Py_INCREF(obj);
12171 return Py_BuildValue((char *)"");
12172 }
12173 static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12174 PyObject *resultobj;
12175 wxEvent *arg1 = 0 ;
12176 wxPropagationDisabler *result;
12177 PyObject * obj0 = 0 ;
12178 char *kwnames[] = {
12179 (char *) "event", NULL
12180 };
12181
12182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12184 if (arg1 == NULL) {
12185 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12186 }
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12190
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1);
12195 return resultobj;
12196 fail:
12197 return NULL;
12198 }
12199
12200
12201 static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12202 PyObject *resultobj;
12203 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12204 PyObject * obj0 = 0 ;
12205 char *kwnames[] = {
12206 (char *) "self", NULL
12207 };
12208
12209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 delete arg1;
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 Py_INCREF(Py_None); resultobj = Py_None;
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12226 PyObject *obj;
12227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12228 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12229 Py_INCREF(obj);
12230 return Py_BuildValue((char *)"");
12231 }
12232 static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12233 PyObject *resultobj;
12234 wxEvent *arg1 = 0 ;
12235 wxPropagateOnce *result;
12236 PyObject * obj0 = 0 ;
12237 char *kwnames[] = {
12238 (char *) "event", NULL
12239 };
12240
12241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12243 if (arg1 == NULL) {
12244 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12245 }
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12249
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1);
12254 return resultobj;
12255 fail:
12256 return NULL;
12257 }
12258
12259
12260 static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12261 PyObject *resultobj;
12262 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12263 PyObject * obj0 = 0 ;
12264 char *kwnames[] = {
12265 (char *) "self", NULL
12266 };
12267
12268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 delete arg1;
12273
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 Py_INCREF(Py_None); resultobj = Py_None;
12278 return resultobj;
12279 fail:
12280 return NULL;
12281 }
12282
12283
12284 static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12285 PyObject *obj;
12286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12287 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12288 Py_INCREF(obj);
12289 return Py_BuildValue((char *)"");
12290 }
12291 static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12292 PyObject *resultobj;
12293 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12294 int arg2 = (int) 0 ;
12295 wxCommandEvent *result;
12296 PyObject * obj0 = 0 ;
12297 PyObject * obj1 = 0 ;
12298 char *kwnames[] = {
12299 (char *) "commandType",(char *) "winid", NULL
12300 };
12301
12302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12303 if (obj0) {
12304 {
12305 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 }
12309 if (obj1) {
12310 {
12311 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 }
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1);
12323 return resultobj;
12324 fail:
12325 return NULL;
12326 }
12327
12328
12329 static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12330 PyObject *resultobj;
12331 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12332 int result;
12333 PyObject * obj0 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 resultobj = SWIG_PyObj_FromInt((int)result);
12348 return resultobj;
12349 fail:
12350 return NULL;
12351 }
12352
12353
12354 static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12355 PyObject *resultobj;
12356 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12357 wxString *arg2 = 0 ;
12358 bool temp2 = False ;
12359 PyObject * obj0 = 0 ;
12360 PyObject * obj1 = 0 ;
12361 char *kwnames[] = {
12362 (char *) "self",(char *) "s", NULL
12363 };
12364
12365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12367 {
12368 arg2 = wxString_in_helper(obj1);
12369 if (arg2 == NULL) SWIG_fail;
12370 temp2 = True;
12371 }
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 (arg1)->SetString((wxString const &)*arg2);
12375
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 Py_INCREF(Py_None); resultobj = Py_None;
12380 {
12381 if (temp2)
12382 delete arg2;
12383 }
12384 return resultobj;
12385 fail:
12386 {
12387 if (temp2)
12388 delete arg2;
12389 }
12390 return NULL;
12391 }
12392
12393
12394 static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12395 PyObject *resultobj;
12396 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12397 wxString result;
12398 PyObject * obj0 = 0 ;
12399 char *kwnames[] = {
12400 (char *) "self", NULL
12401 };
12402
12403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 result = ((wxCommandEvent const *)arg1)->GetString();
12408
12409 wxPyEndAllowThreads(__tstate);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 {
12413 #if wxUSE_UNICODE
12414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12415 #else
12416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12417 #endif
12418 }
12419 return resultobj;
12420 fail:
12421 return NULL;
12422 }
12423
12424
12425 static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj;
12427 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12428 bool result;
12429 PyObject * obj0 = 0 ;
12430 char *kwnames[] = {
12431 (char *) "self", NULL
12432 };
12433
12434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
12435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_PyObj_FromBool((bool)result);
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj;
12452 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12453 bool result;
12454 PyObject * obj0 = 0 ;
12455 char *kwnames[] = {
12456 (char *) "self", NULL
12457 };
12458
12459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
12460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_PyObj_FromBool((bool)result);
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj;
12477 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12478 long arg2 ;
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 char *kwnames[] = {
12482 (char *) "self",(char *) "extraLong", NULL
12483 };
12484
12485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
12486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12487 {
12488 arg2 = (long) SWIG_PyObj_AsLong(obj1);
12489 if (PyErr_Occurred()) SWIG_fail;
12490 }
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 (arg1)->SetExtraLong(arg2);
12494
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 Py_INCREF(Py_None); resultobj = Py_None;
12499 return resultobj;
12500 fail:
12501 return NULL;
12502 }
12503
12504
12505 static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj;
12507 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12508 long result;
12509 PyObject * obj0 = 0 ;
12510 char *kwnames[] = {
12511 (char *) "self", NULL
12512 };
12513
12514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
12515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
12519
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 resultobj = SWIG_PyObj_FromLong((long)result);
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj;
12532 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12533 int arg2 ;
12534 PyObject * obj0 = 0 ;
12535 PyObject * obj1 = 0 ;
12536 char *kwnames[] = {
12537 (char *) "self",(char *) "i", NULL
12538 };
12539
12540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
12541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12542 {
12543 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetInt(arg2);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12563 long result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = (long)((wxCommandEvent const *)arg1)->GetInt();
12574
12575 wxPyEndAllowThreads(__tstate);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 }
12578 resultobj = SWIG_PyObj_FromLong((long)result);
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12588 wxEvent *result;
12589 PyObject * obj0 = 0 ;
12590 char *kwnames[] = {
12591 (char *) "self", NULL
12592 };
12593
12594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
12595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0);
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
12611 PyObject *obj;
12612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12613 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
12614 Py_INCREF(obj);
12615 return Py_BuildValue((char *)"");
12616 }
12617 static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12618 PyObject *resultobj;
12619 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12620 int arg2 = (int) 0 ;
12621 wxNotifyEvent *result;
12622 PyObject * obj0 = 0 ;
12623 PyObject * obj1 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "commandType",(char *) "winid", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
12629 if (obj0) {
12630 {
12631 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 }
12635 if (obj1) {
12636 {
12637 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 }
12641 {
12642 PyThreadState* __tstate = wxPyBeginAllowThreads();
12643 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
12644
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1);
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj;
12657 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12658 PyObject * obj0 = 0 ;
12659 char *kwnames[] = {
12660 (char *) "self", NULL
12661 };
12662
12663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
12664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12665 {
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 (arg1)->Veto();
12668
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 Py_INCREF(Py_None); resultobj = Py_None;
12673 return resultobj;
12674 fail:
12675 return NULL;
12676 }
12677
12678
12679 static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
12680 PyObject *resultobj;
12681 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12682 PyObject * obj0 = 0 ;
12683 char *kwnames[] = {
12684 (char *) "self", NULL
12685 };
12686
12687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
12688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 (arg1)->Allow();
12692
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 Py_INCREF(Py_None); resultobj = Py_None;
12697 return resultobj;
12698 fail:
12699 return NULL;
12700 }
12701
12702
12703 static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12706 bool result;
12707 PyObject * obj0 = 0 ;
12708 char *kwnames[] = {
12709 (char *) "self", NULL
12710 };
12711
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 result = (bool)(arg1)->IsAllowed();
12717
12718 wxPyEndAllowThreads(__tstate);
12719 if (PyErr_Occurred()) SWIG_fail;
12720 }
12721 resultobj = SWIG_PyObj_FromBool((bool)result);
12722 return resultobj;
12723 fail:
12724 return NULL;
12725 }
12726
12727
12728 static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
12729 PyObject *obj;
12730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12731 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
12732 Py_INCREF(obj);
12733 return Py_BuildValue((char *)"");
12734 }
12735 static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12736 PyObject *resultobj;
12737 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12738 int arg2 = (int) 0 ;
12739 int arg3 = (int) 0 ;
12740 int arg4 = (int) 0 ;
12741 wxScrollEvent *result;
12742 PyObject * obj0 = 0 ;
12743 PyObject * obj1 = 0 ;
12744 PyObject * obj2 = 0 ;
12745 PyObject * obj3 = 0 ;
12746 char *kwnames[] = {
12747 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
12748 };
12749
12750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12751 if (obj0) {
12752 {
12753 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 }
12757 if (obj1) {
12758 {
12759 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12760 if (PyErr_Occurred()) SWIG_fail;
12761 }
12762 }
12763 if (obj2) {
12764 {
12765 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 }
12769 if (obj3) {
12770 {
12771 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 }
12775 {
12776 PyThreadState* __tstate = wxPyBeginAllowThreads();
12777 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
12778
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1);
12783 return resultobj;
12784 fail:
12785 return NULL;
12786 }
12787
12788
12789 static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj;
12791 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12792 int result;
12793 PyObject * obj0 = 0 ;
12794 char *kwnames[] = {
12795 (char *) "self", NULL
12796 };
12797
12798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
12799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
12803
12804 wxPyEndAllowThreads(__tstate);
12805 if (PyErr_Occurred()) SWIG_fail;
12806 }
12807 resultobj = SWIG_PyObj_FromInt((int)result);
12808 return resultobj;
12809 fail:
12810 return NULL;
12811 }
12812
12813
12814 static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12815 PyObject *resultobj;
12816 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12817 int result;
12818 PyObject * obj0 = 0 ;
12819 char *kwnames[] = {
12820 (char *) "self", NULL
12821 };
12822
12823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
12824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
12828
12829 wxPyEndAllowThreads(__tstate);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 resultobj = SWIG_PyObj_FromInt((int)result);
12833 return resultobj;
12834 fail:
12835 return NULL;
12836 }
12837
12838
12839 static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12840 PyObject *resultobj;
12841 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12842 int arg2 ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 char *kwnames[] = {
12846 (char *) "self",(char *) "orient", NULL
12847 };
12848
12849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
12850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12851 {
12852 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 (arg1)->SetOrientation(arg2);
12858
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 Py_INCREF(Py_None); resultobj = Py_None;
12863 return resultobj;
12864 fail:
12865 return NULL;
12866 }
12867
12868
12869 static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj;
12871 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12872 int arg2 ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 char *kwnames[] = {
12876 (char *) "self",(char *) "pos", NULL
12877 };
12878
12879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
12880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12881 {
12882 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12883 if (PyErr_Occurred()) SWIG_fail;
12884 }
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 (arg1)->SetPosition(arg2);
12888
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 Py_INCREF(Py_None); resultobj = Py_None;
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
12900 PyObject *obj;
12901 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12902 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
12903 Py_INCREF(obj);
12904 return Py_BuildValue((char *)"");
12905 }
12906 static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12907 PyObject *resultobj;
12908 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12909 int arg2 = (int) 0 ;
12910 int arg3 = (int) 0 ;
12911 wxScrollWinEvent *result;
12912 PyObject * obj0 = 0 ;
12913 PyObject * obj1 = 0 ;
12914 PyObject * obj2 = 0 ;
12915 char *kwnames[] = {
12916 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
12917 };
12918
12919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12920 if (obj0) {
12921 {
12922 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 }
12926 if (obj1) {
12927 {
12928 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 }
12932 if (obj2) {
12933 {
12934 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 }
12938 {
12939 PyThreadState* __tstate = wxPyBeginAllowThreads();
12940 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
12941
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1);
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12953 PyObject *resultobj;
12954 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
12955 int result;
12956 PyObject * obj0 = 0 ;
12957 char *kwnames[] = {
12958 (char *) "self", NULL
12959 };
12960
12961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
12962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12963 {
12964 PyThreadState* __tstate = wxPyBeginAllowThreads();
12965 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
12966
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_PyObj_FromInt((int)result);
12971 return resultobj;
12972 fail:
12973 return NULL;
12974 }
12975
12976
12977 static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12978 PyObject *resultobj;
12979 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
12980 int result;
12981 PyObject * obj0 = 0 ;
12982 char *kwnames[] = {
12983 (char *) "self", NULL
12984 };
12985
12986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
12987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
12991
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 resultobj = SWIG_PyObj_FromInt((int)result);
12996 return resultobj;
12997 fail:
12998 return NULL;
12999 }
13000
13001
13002 static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj;
13004 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13005 int arg2 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 char *kwnames[] = {
13009 (char *) "self",(char *) "orient", NULL
13010 };
13011
13012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13014 {
13015 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 {
13019 PyThreadState* __tstate = wxPyBeginAllowThreads();
13020 (arg1)->SetOrientation(arg2);
13021
13022 wxPyEndAllowThreads(__tstate);
13023 if (PyErr_Occurred()) SWIG_fail;
13024 }
13025 Py_INCREF(Py_None); resultobj = Py_None;
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13033 PyObject *resultobj;
13034 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13035 int arg2 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 char *kwnames[] = {
13039 (char *) "self",(char *) "pos", NULL
13040 };
13041
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13044 {
13045 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13046 if (PyErr_Occurred()) SWIG_fail;
13047 }
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 (arg1)->SetPosition(arg2);
13051
13052 wxPyEndAllowThreads(__tstate);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 Py_INCREF(Py_None); resultobj = Py_None;
13056 return resultobj;
13057 fail:
13058 return NULL;
13059 }
13060
13061
13062 static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13063 PyObject *obj;
13064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13065 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13066 Py_INCREF(obj);
13067 return Py_BuildValue((char *)"");
13068 }
13069 static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13070 PyObject *resultobj;
13071 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13072 wxMouseEvent *result;
13073 PyObject * obj0 = 0 ;
13074 char *kwnames[] = {
13075 (char *) "mouseType", NULL
13076 };
13077
13078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13079 if (obj0) {
13080 {
13081 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
13082 if (PyErr_Occurred()) SWIG_fail;
13083 }
13084 }
13085 {
13086 PyThreadState* __tstate = wxPyBeginAllowThreads();
13087 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13088
13089 wxPyEndAllowThreads(__tstate);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 }
13092 {
13093 resultobj = wxPyMake_wxObject(result);
13094 }
13095 return resultobj;
13096 fail:
13097 return NULL;
13098 }
13099
13100
13101 static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13102 PyObject *resultobj;
13103 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13104 bool result;
13105 PyObject * obj0 = 0 ;
13106 char *kwnames[] = {
13107 (char *) "self", NULL
13108 };
13109
13110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 resultobj = SWIG_PyObj_FromBool((bool)result);
13120 return resultobj;
13121 fail:
13122 return NULL;
13123 }
13124
13125
13126 static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13129 int arg2 = (int) wxMOUSE_BTN_ANY ;
13130 bool result;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char *kwnames[] = {
13134 (char *) "self",(char *) "but", NULL
13135 };
13136
13137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13139 if (obj1) {
13140 {
13141 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13142 if (PyErr_Occurred()) SWIG_fail;
13143 }
13144 }
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 resultobj = SWIG_PyObj_FromBool((bool)result);
13153 return resultobj;
13154 fail:
13155 return NULL;
13156 }
13157
13158
13159 static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13160 PyObject *resultobj;
13161 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13162 int arg2 = (int) wxMOUSE_BTN_ANY ;
13163 bool result;
13164 PyObject * obj0 = 0 ;
13165 PyObject * obj1 = 0 ;
13166 char *kwnames[] = {
13167 (char *) "self",(char *) "but", NULL
13168 };
13169
13170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13172 if (obj1) {
13173 {
13174 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 }
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = SWIG_PyObj_FromBool((bool)result);
13186 return resultobj;
13187 fail:
13188 return NULL;
13189 }
13190
13191
13192 static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13195 int arg2 = (int) wxMOUSE_BTN_ANY ;
13196 bool result;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self",(char *) "but", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13205 if (obj1) {
13206 {
13207 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 }
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = SWIG_PyObj_FromBool((bool)result);
13219 return resultobj;
13220 fail:
13221 return NULL;
13222 }
13223
13224
13225 static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj;
13227 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13228 int arg2 ;
13229 bool result;
13230 PyObject * obj0 = 0 ;
13231 PyObject * obj1 = 0 ;
13232 char *kwnames[] = {
13233 (char *) "self",(char *) "but", NULL
13234 };
13235
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
13237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13238 {
13239 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13245
13246 wxPyEndAllowThreads(__tstate);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 resultobj = SWIG_PyObj_FromBool((bool)result);
13250 return resultobj;
13251 fail:
13252 return NULL;
13253 }
13254
13255
13256 static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13257 PyObject *resultobj;
13258 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13259 int arg2 ;
13260 bool result;
13261 PyObject * obj0 = 0 ;
13262 PyObject * obj1 = 0 ;
13263 char *kwnames[] = {
13264 (char *) "self",(char *) "but", NULL
13265 };
13266
13267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
13268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13269 {
13270 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
13275 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13276
13277 wxPyEndAllowThreads(__tstate);
13278 if (PyErr_Occurred()) SWIG_fail;
13279 }
13280 resultobj = SWIG_PyObj_FromBool((bool)result);
13281 return resultobj;
13282 fail:
13283 return NULL;
13284 }
13285
13286
13287 static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13288 PyObject *resultobj;
13289 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13290 int result;
13291 PyObject * obj0 = 0 ;
13292 char *kwnames[] = {
13293 (char *) "self", NULL
13294 };
13295
13296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_PyObj_FromInt((int)result);
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj;
13314 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13315 bool result;
13316 PyObject * obj0 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_PyObj_FromBool((bool)result);
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj;
13339 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13340 bool result;
13341 PyObject * obj0 = 0 ;
13342 char *kwnames[] = {
13343 (char *) "self", NULL
13344 };
13345
13346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13351
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_PyObj_FromBool((bool)result);
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj;
13364 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13365 bool result;
13366 PyObject * obj0 = 0 ;
13367 char *kwnames[] = {
13368 (char *) "self", NULL
13369 };
13370
13371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13376
13377 wxPyEndAllowThreads(__tstate);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 resultobj = SWIG_PyObj_FromBool((bool)result);
13381 return resultobj;
13382 fail:
13383 return NULL;
13384 }
13385
13386
13387 static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13388 PyObject *resultobj;
13389 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13390 bool result;
13391 PyObject * obj0 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "self", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
13401
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_PyObj_FromBool((bool)result);
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj;
13414 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13415 bool result;
13416 PyObject * obj0 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_PyObj_FromBool((bool)result);
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13440 bool result;
13441 PyObject * obj0 = 0 ;
13442 char *kwnames[] = {
13443 (char *) "self", NULL
13444 };
13445
13446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
13447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
13451
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 resultobj = SWIG_PyObj_FromBool((bool)result);
13456 return resultobj;
13457 fail:
13458 return NULL;
13459 }
13460
13461
13462 static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13463 PyObject *resultobj;
13464 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13465 bool result;
13466 PyObject * obj0 = 0 ;
13467 char *kwnames[] = {
13468 (char *) "self", NULL
13469 };
13470
13471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
13472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
13476
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 resultobj = SWIG_PyObj_FromBool((bool)result);
13481 return resultobj;
13482 fail:
13483 return NULL;
13484 }
13485
13486
13487 static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13488 PyObject *resultobj;
13489 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13490 bool result;
13491 PyObject * obj0 = 0 ;
13492 char *kwnames[] = {
13493 (char *) "self", NULL
13494 };
13495
13496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
13497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13498 {
13499 PyThreadState* __tstate = wxPyBeginAllowThreads();
13500 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
13501
13502 wxPyEndAllowThreads(__tstate);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 }
13505 resultobj = SWIG_PyObj_FromBool((bool)result);
13506 return resultobj;
13507 fail:
13508 return NULL;
13509 }
13510
13511
13512 static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13513 PyObject *resultobj;
13514 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13515 bool result;
13516 PyObject * obj0 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self", NULL
13519 };
13520
13521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
13522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 resultobj = SWIG_PyObj_FromBool((bool)result);
13531 return resultobj;
13532 fail:
13533 return NULL;
13534 }
13535
13536
13537 static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13538 PyObject *resultobj;
13539 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13540 bool result;
13541 PyObject * obj0 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
13547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_PyObj_FromBool((bool)result);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13565 bool result;
13566 PyObject * obj0 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_PyObj_FromBool((bool)result);
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj;
13589 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13590 bool result;
13591 PyObject * obj0 = 0 ;
13592 char *kwnames[] = {
13593 (char *) "self", NULL
13594 };
13595
13596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
13597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
13601
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 resultobj = SWIG_PyObj_FromBool((bool)result);
13606 return resultobj;
13607 fail:
13608 return NULL;
13609 }
13610
13611
13612 static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13613 PyObject *resultobj;
13614 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13615 bool result;
13616 PyObject * obj0 = 0 ;
13617 char *kwnames[] = {
13618 (char *) "self", NULL
13619 };
13620
13621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
13622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
13626
13627 wxPyEndAllowThreads(__tstate);
13628 if (PyErr_Occurred()) SWIG_fail;
13629 }
13630 resultobj = SWIG_PyObj_FromBool((bool)result);
13631 return resultobj;
13632 fail:
13633 return NULL;
13634 }
13635
13636
13637 static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13638 PyObject *resultobj;
13639 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13640 bool result;
13641 PyObject * obj0 = 0 ;
13642 char *kwnames[] = {
13643 (char *) "self", NULL
13644 };
13645
13646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
13647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 result = (bool)(arg1)->LeftIsDown();
13651
13652 wxPyEndAllowThreads(__tstate);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 resultobj = SWIG_PyObj_FromBool((bool)result);
13656 return resultobj;
13657 fail:
13658 return NULL;
13659 }
13660
13661
13662 static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13663 PyObject *resultobj;
13664 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13665 bool result;
13666 PyObject * obj0 = 0 ;
13667 char *kwnames[] = {
13668 (char *) "self", NULL
13669 };
13670
13671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
13672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13673 {
13674 PyThreadState* __tstate = wxPyBeginAllowThreads();
13675 result = (bool)(arg1)->MiddleIsDown();
13676
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = SWIG_PyObj_FromBool((bool)result);
13681 return resultobj;
13682 fail:
13683 return NULL;
13684 }
13685
13686
13687 static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13688 PyObject *resultobj;
13689 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13690 bool result;
13691 PyObject * obj0 = 0 ;
13692 char *kwnames[] = {
13693 (char *) "self", NULL
13694 };
13695
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
13697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 result = (bool)(arg1)->RightIsDown();
13701
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 resultobj = SWIG_PyObj_FromBool((bool)result);
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13715 bool result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
13726
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 resultobj = SWIG_PyObj_FromBool((bool)result);
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj;
13739 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13740 bool result;
13741 PyObject * obj0 = 0 ;
13742 char *kwnames[] = {
13743 (char *) "self", NULL
13744 };
13745
13746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
13747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (bool)((wxMouseEvent const *)arg1)->Moving();
13751
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_PyObj_FromBool((bool)result);
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13765 bool result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
13772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (bool)((wxMouseEvent const *)arg1)->Entering();
13776
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
13780 resultobj = SWIG_PyObj_FromBool((bool)result);
13781 return resultobj;
13782 fail:
13783 return NULL;
13784 }
13785
13786
13787 static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj;
13789 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13790 bool result;
13791 PyObject * obj0 = 0 ;
13792 char *kwnames[] = {
13793 (char *) "self", NULL
13794 };
13795
13796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
13797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_PyObj_FromBool((bool)result);
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13815 wxPoint result;
13816 PyObject * obj0 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (arg1)->GetPosition();
13826
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 {
13831 wxPoint * resultptr;
13832 resultptr = new wxPoint((wxPoint &) result);
13833 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13834 }
13835 return resultobj;
13836 fail:
13837 return NULL;
13838 }
13839
13840
13841 static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13842 PyObject *resultobj;
13843 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13844 long *arg2 = (long *) 0 ;
13845 long *arg3 = (long *) 0 ;
13846 long temp2 ;
13847 long temp3 ;
13848 PyObject * obj0 = 0 ;
13849 char *kwnames[] = {
13850 (char *) "self", NULL
13851 };
13852
13853 arg2 = &temp2;
13854 arg3 = &temp3;
13855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
13856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 (arg1)->GetPosition(arg2,arg3);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 Py_INCREF(Py_None); resultobj = Py_None;
13865 {
13866 PyObject *o = PyInt_FromLong((long) (*arg2));
13867 resultobj = t_output_helper(resultobj,o);
13868 }
13869 {
13870 PyObject *o = PyInt_FromLong((long) (*arg3));
13871 resultobj = t_output_helper(resultobj,o);
13872 }
13873 return resultobj;
13874 fail:
13875 return NULL;
13876 }
13877
13878
13879 static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13880 PyObject *resultobj;
13881 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13882 wxDC *arg2 = 0 ;
13883 wxPoint result;
13884 PyObject * obj0 = 0 ;
13885 PyObject * obj1 = 0 ;
13886 char *kwnames[] = {
13887 (char *) "self",(char *) "dc", NULL
13888 };
13889
13890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
13891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13893 if (arg2 == NULL) {
13894 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13895 }
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
13899
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 {
13904 wxPoint * resultptr;
13905 resultptr = new wxPoint((wxPoint &) result);
13906 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13907 }
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13917 int result;
13918 PyObject * obj0 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13925 {
13926 PyThreadState* __tstate = wxPyBeginAllowThreads();
13927 result = (int)((wxMouseEvent const *)arg1)->GetX();
13928
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 resultobj = SWIG_PyObj_FromInt((int)result);
13933 return resultobj;
13934 fail:
13935 return NULL;
13936 }
13937
13938
13939 static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
13940 PyObject *resultobj;
13941 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13942 int result;
13943 PyObject * obj0 = 0 ;
13944 char *kwnames[] = {
13945 (char *) "self", NULL
13946 };
13947
13948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
13949 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13950 {
13951 PyThreadState* __tstate = wxPyBeginAllowThreads();
13952 result = (int)((wxMouseEvent const *)arg1)->GetY();
13953
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_PyObj_FromInt((int)result);
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
13965 PyObject *resultobj;
13966 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13967 int result;
13968 PyObject * obj0 = 0 ;
13969 char *kwnames[] = {
13970 (char *) "self", NULL
13971 };
13972
13973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
13974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13975 {
13976 PyThreadState* __tstate = wxPyBeginAllowThreads();
13977 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
13978
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 resultobj = SWIG_PyObj_FromInt((int)result);
13983 return resultobj;
13984 fail:
13985 return NULL;
13986 }
13987
13988
13989 static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
13990 PyObject *resultobj;
13991 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13992 int result;
13993 PyObject * obj0 = 0 ;
13994 char *kwnames[] = {
13995 (char *) "self", NULL
13996 };
13997
13998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
13999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14003
14004 wxPyEndAllowThreads(__tstate);
14005 if (PyErr_Occurred()) SWIG_fail;
14006 }
14007 resultobj = SWIG_PyObj_FromInt((int)result);
14008 return resultobj;
14009 fail:
14010 return NULL;
14011 }
14012
14013
14014 static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj;
14016 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14017 int result;
14018 PyObject * obj0 = 0 ;
14019 char *kwnames[] = {
14020 (char *) "self", NULL
14021 };
14022
14023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14025 {
14026 PyThreadState* __tstate = wxPyBeginAllowThreads();
14027 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14028
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_PyObj_FromInt((int)result);
14033 return resultobj;
14034 fail:
14035 return NULL;
14036 }
14037
14038
14039 static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14040 PyObject *resultobj;
14041 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14042 bool result;
14043 PyObject * obj0 = 0 ;
14044 char *kwnames[] = {
14045 (char *) "self", NULL
14046 };
14047
14048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14053
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 resultobj = SWIG_PyObj_FromBool((bool)result);
14058 return resultobj;
14059 fail:
14060 return NULL;
14061 }
14062
14063
14064 static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14065 PyObject *resultobj;
14066 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14067 int arg2 ;
14068 PyObject * obj0 = 0 ;
14069 PyObject * obj1 = 0 ;
14070 char *kwnames[] = {
14071 (char *) "self",(char *) "m_x", NULL
14072 };
14073
14074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14076 {
14077 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 if (arg1) (arg1)->m_x = arg2;
14081
14082 Py_INCREF(Py_None); resultobj = Py_None;
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14092 int result;
14093 PyObject * obj0 = 0 ;
14094 char *kwnames[] = {
14095 (char *) "self", NULL
14096 };
14097
14098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14100 result = (int) ((arg1)->m_x);
14101
14102 resultobj = SWIG_PyObj_FromInt((int)result);
14103 return resultobj;
14104 fail:
14105 return NULL;
14106 }
14107
14108
14109 static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14110 PyObject *resultobj;
14111 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14112 int arg2 ;
14113 PyObject * obj0 = 0 ;
14114 PyObject * obj1 = 0 ;
14115 char *kwnames[] = {
14116 (char *) "self",(char *) "m_y", NULL
14117 };
14118
14119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14121 {
14122 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 if (arg1) (arg1)->m_y = arg2;
14126
14127 Py_INCREF(Py_None); resultobj = Py_None;
14128 return resultobj;
14129 fail:
14130 return NULL;
14131 }
14132
14133
14134 static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14135 PyObject *resultobj;
14136 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14137 int result;
14138 PyObject * obj0 = 0 ;
14139 char *kwnames[] = {
14140 (char *) "self", NULL
14141 };
14142
14143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14145 result = (int) ((arg1)->m_y);
14146
14147 resultobj = SWIG_PyObj_FromInt((int)result);
14148 return resultobj;
14149 fail:
14150 return NULL;
14151 }
14152
14153
14154 static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14155 PyObject *resultobj;
14156 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14157 bool arg2 ;
14158 PyObject * obj0 = 0 ;
14159 PyObject * obj1 = 0 ;
14160 char *kwnames[] = {
14161 (char *) "self",(char *) "m_leftDown", NULL
14162 };
14163
14164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14166 {
14167 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 if (arg1) (arg1)->m_leftDown = arg2;
14171
14172 Py_INCREF(Py_None); resultobj = Py_None;
14173 return resultobj;
14174 fail:
14175 return NULL;
14176 }
14177
14178
14179 static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14180 PyObject *resultobj;
14181 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14182 bool result;
14183 PyObject * obj0 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self", NULL
14186 };
14187
14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14190 result = (bool) ((arg1)->m_leftDown);
14191
14192 resultobj = SWIG_PyObj_FromBool((bool)result);
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14202 bool arg2 ;
14203 PyObject * obj0 = 0 ;
14204 PyObject * obj1 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self",(char *) "m_middleDown", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14211 {
14212 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 if (arg1) (arg1)->m_middleDown = arg2;
14216
14217 Py_INCREF(Py_None); resultobj = Py_None;
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj;
14226 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14227 bool result;
14228 PyObject * obj0 = 0 ;
14229 char *kwnames[] = {
14230 (char *) "self", NULL
14231 };
14232
14233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14235 result = (bool) ((arg1)->m_middleDown);
14236
14237 resultobj = SWIG_PyObj_FromBool((bool)result);
14238 return resultobj;
14239 fail:
14240 return NULL;
14241 }
14242
14243
14244 static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14245 PyObject *resultobj;
14246 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14247 bool arg2 ;
14248 PyObject * obj0 = 0 ;
14249 PyObject * obj1 = 0 ;
14250 char *kwnames[] = {
14251 (char *) "self",(char *) "m_rightDown", NULL
14252 };
14253
14254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14256 {
14257 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 if (arg1) (arg1)->m_rightDown = arg2;
14261
14262 Py_INCREF(Py_None); resultobj = Py_None;
14263 return resultobj;
14264 fail:
14265 return NULL;
14266 }
14267
14268
14269 static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14272 bool result;
14273 PyObject * obj0 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14280 result = (bool) ((arg1)->m_rightDown);
14281
14282 resultobj = SWIG_PyObj_FromBool((bool)result);
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14292 bool arg2 ;
14293 PyObject * obj0 = 0 ;
14294 PyObject * obj1 = 0 ;
14295 char *kwnames[] = {
14296 (char *) "self",(char *) "m_controlDown", NULL
14297 };
14298
14299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14301 {
14302 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 if (arg1) (arg1)->m_controlDown = arg2;
14306
14307 Py_INCREF(Py_None); resultobj = Py_None;
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14317 bool result;
14318 PyObject * obj0 = 0 ;
14319 char *kwnames[] = {
14320 (char *) "self", NULL
14321 };
14322
14323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14325 result = (bool) ((arg1)->m_controlDown);
14326
14327 resultobj = SWIG_PyObj_FromBool((bool)result);
14328 return resultobj;
14329 fail:
14330 return NULL;
14331 }
14332
14333
14334 static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14335 PyObject *resultobj;
14336 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14337 bool arg2 ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 char *kwnames[] = {
14341 (char *) "self",(char *) "m_shiftDown", NULL
14342 };
14343
14344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14345 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14346 {
14347 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 if (arg1) (arg1)->m_shiftDown = arg2;
14351
14352 Py_INCREF(Py_None); resultobj = Py_None;
14353 return resultobj;
14354 fail:
14355 return NULL;
14356 }
14357
14358
14359 static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj;
14361 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14362 bool result;
14363 PyObject * obj0 = 0 ;
14364 char *kwnames[] = {
14365 (char *) "self", NULL
14366 };
14367
14368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14370 result = (bool) ((arg1)->m_shiftDown);
14371
14372 resultobj = SWIG_PyObj_FromBool((bool)result);
14373 return resultobj;
14374 fail:
14375 return NULL;
14376 }
14377
14378
14379 static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14382 bool arg2 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 char *kwnames[] = {
14386 (char *) "self",(char *) "m_altDown", NULL
14387 };
14388
14389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14391 {
14392 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 if (arg1) (arg1)->m_altDown = arg2;
14396
14397 Py_INCREF(Py_None); resultobj = Py_None;
14398 return resultobj;
14399 fail:
14400 return NULL;
14401 }
14402
14403
14404 static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj;
14406 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14407 bool result;
14408 PyObject * obj0 = 0 ;
14409 char *kwnames[] = {
14410 (char *) "self", NULL
14411 };
14412
14413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
14414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14415 result = (bool) ((arg1)->m_altDown);
14416
14417 resultobj = SWIG_PyObj_FromBool((bool)result);
14418 return resultobj;
14419 fail:
14420 return NULL;
14421 }
14422
14423
14424 static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj;
14426 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14427 bool arg2 ;
14428 PyObject * obj0 = 0 ;
14429 PyObject * obj1 = 0 ;
14430 char *kwnames[] = {
14431 (char *) "self",(char *) "m_metaDown", NULL
14432 };
14433
14434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
14435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14436 {
14437 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 if (arg1) (arg1)->m_metaDown = arg2;
14441
14442 Py_INCREF(Py_None); resultobj = Py_None;
14443 return resultobj;
14444 fail:
14445 return NULL;
14446 }
14447
14448
14449 static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj;
14451 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14452 bool result;
14453 PyObject * obj0 = 0 ;
14454 char *kwnames[] = {
14455 (char *) "self", NULL
14456 };
14457
14458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
14459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14460 result = (bool) ((arg1)->m_metaDown);
14461
14462 resultobj = SWIG_PyObj_FromBool((bool)result);
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj;
14471 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14472 int arg2 ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 char *kwnames[] = {
14476 (char *) "self",(char *) "m_wheelRotation", NULL
14477 };
14478
14479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
14480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14481 {
14482 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 if (arg1) (arg1)->m_wheelRotation = arg2;
14486
14487 Py_INCREF(Py_None); resultobj = Py_None;
14488 return resultobj;
14489 fail:
14490 return NULL;
14491 }
14492
14493
14494 static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14495 PyObject *resultobj;
14496 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14497 int result;
14498 PyObject * obj0 = 0 ;
14499 char *kwnames[] = {
14500 (char *) "self", NULL
14501 };
14502
14503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
14504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14505 result = (int) ((arg1)->m_wheelRotation);
14506
14507 resultobj = SWIG_PyObj_FromInt((int)result);
14508 return resultobj;
14509 fail:
14510 return NULL;
14511 }
14512
14513
14514 static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14515 PyObject *resultobj;
14516 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14517 int arg2 ;
14518 PyObject * obj0 = 0 ;
14519 PyObject * obj1 = 0 ;
14520 char *kwnames[] = {
14521 (char *) "self",(char *) "m_wheelDelta", NULL
14522 };
14523
14524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
14525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14526 {
14527 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 if (arg1) (arg1)->m_wheelDelta = arg2;
14531
14532 Py_INCREF(Py_None); resultobj = Py_None;
14533 return resultobj;
14534 fail:
14535 return NULL;
14536 }
14537
14538
14539 static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj;
14541 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14542 int result;
14543 PyObject * obj0 = 0 ;
14544 char *kwnames[] = {
14545 (char *) "self", NULL
14546 };
14547
14548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
14549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14550 result = (int) ((arg1)->m_wheelDelta);
14551
14552 resultobj = SWIG_PyObj_FromInt((int)result);
14553 return resultobj;
14554 fail:
14555 return NULL;
14556 }
14557
14558
14559 static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj;
14561 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14562 int arg2 ;
14563 PyObject * obj0 = 0 ;
14564 PyObject * obj1 = 0 ;
14565 char *kwnames[] = {
14566 (char *) "self",(char *) "m_linesPerAction", NULL
14567 };
14568
14569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
14570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14571 {
14572 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 if (arg1) (arg1)->m_linesPerAction = arg2;
14576
14577 Py_INCREF(Py_None); resultobj = Py_None;
14578 return resultobj;
14579 fail:
14580 return NULL;
14581 }
14582
14583
14584 static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14585 PyObject *resultobj;
14586 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14587 int result;
14588 PyObject * obj0 = 0 ;
14589 char *kwnames[] = {
14590 (char *) "self", NULL
14591 };
14592
14593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
14594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14595 result = (int) ((arg1)->m_linesPerAction);
14596
14597 resultobj = SWIG_PyObj_FromInt((int)result);
14598 return resultobj;
14599 fail:
14600 return NULL;
14601 }
14602
14603
14604 static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
14605 PyObject *obj;
14606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14607 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
14608 Py_INCREF(obj);
14609 return Py_BuildValue((char *)"");
14610 }
14611 static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14612 PyObject *resultobj;
14613 int arg1 = (int) 0 ;
14614 int arg2 = (int) 0 ;
14615 wxSetCursorEvent *result;
14616 PyObject * obj0 = 0 ;
14617 PyObject * obj1 = 0 ;
14618 char *kwnames[] = {
14619 (char *) "x",(char *) "y", NULL
14620 };
14621
14622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
14623 if (obj0) {
14624 {
14625 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 }
14629 if (obj1) {
14630 {
14631 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 }
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
14638
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1);
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj;
14651 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14652 int result;
14653 PyObject * obj0 = 0 ;
14654 char *kwnames[] = {
14655 (char *) "self", NULL
14656 };
14657
14658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
14659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
14663
14664 wxPyEndAllowThreads(__tstate);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 resultobj = SWIG_PyObj_FromInt((int)result);
14668 return resultobj;
14669 fail:
14670 return NULL;
14671 }
14672
14673
14674 static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14675 PyObject *resultobj;
14676 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14677 int result;
14678 PyObject * obj0 = 0 ;
14679 char *kwnames[] = {
14680 (char *) "self", NULL
14681 };
14682
14683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
14684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14685 {
14686 PyThreadState* __tstate = wxPyBeginAllowThreads();
14687 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
14688
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_PyObj_FromInt((int)result);
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14702 wxCursor *arg2 = 0 ;
14703 PyObject * obj0 = 0 ;
14704 PyObject * obj1 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self",(char *) "cursor", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
14710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14711 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14712 if (arg2 == NULL) {
14713 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 (arg1)->SetCursor((wxCursor const &)*arg2);
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 Py_INCREF(Py_None); resultobj = Py_None;
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj;
14731 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14732 wxCursor *result;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 {
14743 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
14744 result = (wxCursor *) &_result_ref;
14745 }
14746
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0);
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14758 PyObject *resultobj;
14759 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14760 bool result;
14761 PyObject * obj0 = 0 ;
14762 char *kwnames[] = {
14763 (char *) "self", NULL
14764 };
14765
14766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
14767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
14771
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 resultobj = SWIG_PyObj_FromBool((bool)result);
14776 return resultobj;
14777 fail:
14778 return NULL;
14779 }
14780
14781
14782 static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
14783 PyObject *obj;
14784 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14785 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
14786 Py_INCREF(obj);
14787 return Py_BuildValue((char *)"");
14788 }
14789 static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14790 PyObject *resultobj;
14791 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14792 wxKeyEvent *result;
14793 PyObject * obj0 = 0 ;
14794 char *kwnames[] = {
14795 (char *) "keyType", NULL
14796 };
14797
14798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
14799 if (obj0) {
14800 {
14801 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14802 if (PyErr_Occurred()) SWIG_fail;
14803 }
14804 }
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 result = (wxKeyEvent *)new wxKeyEvent(arg1);
14808
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
14812 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1);
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj;
14821 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14822 bool result;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "self", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
14833
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = SWIG_PyObj_FromBool((bool)result);
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14845 PyObject *resultobj;
14846 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14847 bool result;
14848 PyObject * obj0 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
14858
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_PyObj_FromBool((bool)result);
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj;
14871 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14872 bool result;
14873 PyObject * obj0 = 0 ;
14874 char *kwnames[] = {
14875 (char *) "self", NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
14879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
14883
14884 wxPyEndAllowThreads(__tstate);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 resultobj = SWIG_PyObj_FromBool((bool)result);
14888 return resultobj;
14889 fail:
14890 return NULL;
14891 }
14892
14893
14894 static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14895 PyObject *resultobj;
14896 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14897 bool result;
14898 PyObject * obj0 = 0 ;
14899 char *kwnames[] = {
14900 (char *) "self", NULL
14901 };
14902
14903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
14904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
14908
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 resultobj = SWIG_PyObj_FromBool((bool)result);
14913 return resultobj;
14914 fail:
14915 return NULL;
14916 }
14917
14918
14919 static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
14920 PyObject *resultobj;
14921 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14922 bool result;
14923 PyObject * obj0 = 0 ;
14924 char *kwnames[] = {
14925 (char *) "self", NULL
14926 };
14927
14928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
14929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
14932 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
14933
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
14937 resultobj = SWIG_PyObj_FromBool((bool)result);
14938 return resultobj;
14939 fail:
14940 return NULL;
14941 }
14942
14943
14944 static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj;
14946 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14947 int result;
14948 PyObject * obj0 = 0 ;
14949 char *kwnames[] = {
14950 (char *) "self", NULL
14951 };
14952
14953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
14954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14955 {
14956 PyThreadState* __tstate = wxPyBeginAllowThreads();
14957 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
14958
14959 wxPyEndAllowThreads(__tstate);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 }
14962 resultobj = SWIG_PyObj_FromInt((int)result);
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj;
14971 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14972 int result;
14973 PyObject * obj0 = 0 ;
14974 char *kwnames[] = {
14975 (char *) "self", NULL
14976 };
14977
14978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail;
14979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14980 {
14981 PyThreadState* __tstate = wxPyBeginAllowThreads();
14982 result = (int)wxKeyEvent_GetUniChar(arg1);
14983
14984 wxPyEndAllowThreads(__tstate);
14985 if (PyErr_Occurred()) SWIG_fail;
14986 }
14987 resultobj = SWIG_PyObj_FromInt((int)result);
14988 return resultobj;
14989 fail:
14990 return NULL;
14991 }
14992
14993
14994 static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
14995 PyObject *resultobj;
14996 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14997 unsigned int result;
14998 PyObject * obj0 = 0 ;
14999 char *kwnames[] = {
15000 (char *) "self", NULL
15001 };
15002
15003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15005 {
15006 PyThreadState* __tstate = wxPyBeginAllowThreads();
15007 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15008
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
15013 return resultobj;
15014 fail:
15015 return NULL;
15016 }
15017
15018
15019 static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15020 PyObject *resultobj;
15021 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15022 unsigned int result;
15023 PyObject * obj0 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15030 {
15031 PyThreadState* __tstate = wxPyBeginAllowThreads();
15032 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15033
15034 wxPyEndAllowThreads(__tstate);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
15038 return resultobj;
15039 fail:
15040 return NULL;
15041 }
15042
15043
15044 static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15045 PyObject *resultobj;
15046 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15047 wxPoint result;
15048 PyObject * obj0 = 0 ;
15049 char *kwnames[] = {
15050 (char *) "self", NULL
15051 };
15052
15053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15055 {
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 result = (arg1)->GetPosition();
15058
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 {
15063 wxPoint * resultptr;
15064 resultptr = new wxPoint((wxPoint &) result);
15065 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
15066 }
15067 return resultobj;
15068 fail:
15069 return NULL;
15070 }
15071
15072
15073 static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj;
15075 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15076 long *arg2 = (long *) 0 ;
15077 long *arg3 = (long *) 0 ;
15078 long temp2 ;
15079 long temp3 ;
15080 PyObject * obj0 = 0 ;
15081 char *kwnames[] = {
15082 (char *) "self", NULL
15083 };
15084
15085 arg2 = &temp2;
15086 arg3 = &temp3;
15087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15089 {
15090 PyThreadState* __tstate = wxPyBeginAllowThreads();
15091 (arg1)->GetPosition(arg2,arg3);
15092
15093 wxPyEndAllowThreads(__tstate);
15094 if (PyErr_Occurred()) SWIG_fail;
15095 }
15096 Py_INCREF(Py_None); resultobj = Py_None;
15097 {
15098 PyObject *o = PyInt_FromLong((long) (*arg2));
15099 resultobj = t_output_helper(resultobj,o);
15100 }
15101 {
15102 PyObject *o = PyInt_FromLong((long) (*arg3));
15103 resultobj = t_output_helper(resultobj,o);
15104 }
15105 return resultobj;
15106 fail:
15107 return NULL;
15108 }
15109
15110
15111 static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15112 PyObject *resultobj;
15113 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15114 int result;
15115 PyObject * obj0 = 0 ;
15116 char *kwnames[] = {
15117 (char *) "self", NULL
15118 };
15119
15120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (int)((wxKeyEvent const *)arg1)->GetX();
15125
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 resultobj = SWIG_PyObj_FromInt((int)result);
15130 return resultobj;
15131 fail:
15132 return NULL;
15133 }
15134
15135
15136 static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15137 PyObject *resultobj;
15138 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15139 int result;
15140 PyObject * obj0 = 0 ;
15141 char *kwnames[] = {
15142 (char *) "self", NULL
15143 };
15144
15145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 result = (int)((wxKeyEvent const *)arg1)->GetY();
15150
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 resultobj = SWIG_PyObj_FromInt((int)result);
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15162 PyObject *resultobj;
15163 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15164 int arg2 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 char *kwnames[] = {
15168 (char *) "self",(char *) "m_x", NULL
15169 };
15170
15171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15173 {
15174 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15175 if (PyErr_Occurred()) SWIG_fail;
15176 }
15177 if (arg1) (arg1)->m_x = arg2;
15178
15179 Py_INCREF(Py_None); resultobj = Py_None;
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj;
15188 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15189 int result;
15190 PyObject * obj0 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15197 result = (int) ((arg1)->m_x);
15198
15199 resultobj = SWIG_PyObj_FromInt((int)result);
15200 return resultobj;
15201 fail:
15202 return NULL;
15203 }
15204
15205
15206 static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15207 PyObject *resultobj;
15208 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15209 int arg2 ;
15210 PyObject * obj0 = 0 ;
15211 PyObject * obj1 = 0 ;
15212 char *kwnames[] = {
15213 (char *) "self",(char *) "m_y", NULL
15214 };
15215
15216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15218 {
15219 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15220 if (PyErr_Occurred()) SWIG_fail;
15221 }
15222 if (arg1) (arg1)->m_y = arg2;
15223
15224 Py_INCREF(Py_None); resultobj = Py_None;
15225 return resultobj;
15226 fail:
15227 return NULL;
15228 }
15229
15230
15231 static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15232 PyObject *resultobj;
15233 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15234 int result;
15235 PyObject * obj0 = 0 ;
15236 char *kwnames[] = {
15237 (char *) "self", NULL
15238 };
15239
15240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15242 result = (int) ((arg1)->m_y);
15243
15244 resultobj = SWIG_PyObj_FromInt((int)result);
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15254 long arg2 ;
15255 PyObject * obj0 = 0 ;
15256 PyObject * obj1 = 0 ;
15257 char *kwnames[] = {
15258 (char *) "self",(char *) "m_keyCode", NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
15262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15263 {
15264 arg2 = (long) SWIG_PyObj_AsLong(obj1);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 if (arg1) (arg1)->m_keyCode = arg2;
15268
15269 Py_INCREF(Py_None); resultobj = Py_None;
15270 return resultobj;
15271 fail:
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15279 long result;
15280 PyObject * obj0 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "self", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15287 result = (long) ((arg1)->m_keyCode);
15288
15289 resultobj = SWIG_PyObj_FromLong((long)result);
15290 return resultobj;
15291 fail:
15292 return NULL;
15293 }
15294
15295
15296 static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj;
15298 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15299 bool arg2 ;
15300 PyObject * obj0 = 0 ;
15301 PyObject * obj1 = 0 ;
15302 char *kwnames[] = {
15303 (char *) "self",(char *) "m_controlDown", NULL
15304 };
15305
15306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15308 {
15309 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 if (arg1) (arg1)->m_controlDown = arg2;
15313
15314 Py_INCREF(Py_None); resultobj = Py_None;
15315 return resultobj;
15316 fail:
15317 return NULL;
15318 }
15319
15320
15321 static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj;
15323 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15324 bool result;
15325 PyObject * obj0 = 0 ;
15326 char *kwnames[] = {
15327 (char *) "self", NULL
15328 };
15329
15330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15332 result = (bool) ((arg1)->m_controlDown);
15333
15334 resultobj = SWIG_PyObj_FromBool((bool)result);
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15344 bool arg2 ;
15345 PyObject * obj0 = 0 ;
15346 PyObject * obj1 = 0 ;
15347 char *kwnames[] = {
15348 (char *) "self",(char *) "m_shiftDown", NULL
15349 };
15350
15351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15353 {
15354 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 if (arg1) (arg1)->m_shiftDown = arg2;
15358
15359 Py_INCREF(Py_None); resultobj = Py_None;
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15369 bool result;
15370 PyObject * obj0 = 0 ;
15371 char *kwnames[] = {
15372 (char *) "self", NULL
15373 };
15374
15375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15377 result = (bool) ((arg1)->m_shiftDown);
15378
15379 resultobj = SWIG_PyObj_FromBool((bool)result);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15389 bool arg2 ;
15390 PyObject * obj0 = 0 ;
15391 PyObject * obj1 = 0 ;
15392 char *kwnames[] = {
15393 (char *) "self",(char *) "m_altDown", NULL
15394 };
15395
15396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15398 {
15399 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 if (arg1) (arg1)->m_altDown = arg2;
15403
15404 Py_INCREF(Py_None); resultobj = Py_None;
15405 return resultobj;
15406 fail:
15407 return NULL;
15408 }
15409
15410
15411 static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj;
15413 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15414 bool result;
15415 PyObject * obj0 = 0 ;
15416 char *kwnames[] = {
15417 (char *) "self", NULL
15418 };
15419
15420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15422 result = (bool) ((arg1)->m_altDown);
15423
15424 resultobj = SWIG_PyObj_FromBool((bool)result);
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj;
15433 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15434 bool arg2 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char *kwnames[] = {
15438 (char *) "self",(char *) "m_metaDown", NULL
15439 };
15440
15441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15443 {
15444 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15445 if (PyErr_Occurred()) SWIG_fail;
15446 }
15447 if (arg1) (arg1)->m_metaDown = arg2;
15448
15449 Py_INCREF(Py_None); resultobj = Py_None;
15450 return resultobj;
15451 fail:
15452 return NULL;
15453 }
15454
15455
15456 static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj;
15458 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15459 bool result;
15460 PyObject * obj0 = 0 ;
15461 char *kwnames[] = {
15462 (char *) "self", NULL
15463 };
15464
15465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15467 result = (bool) ((arg1)->m_metaDown);
15468
15469 resultobj = SWIG_PyObj_FromBool((bool)result);
15470 return resultobj;
15471 fail:
15472 return NULL;
15473 }
15474
15475
15476 static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj;
15478 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15479 bool arg2 ;
15480 PyObject * obj0 = 0 ;
15481 PyObject * obj1 = 0 ;
15482 char *kwnames[] = {
15483 (char *) "self",(char *) "m_scanCode", NULL
15484 };
15485
15486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
15487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15488 {
15489 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 if (arg1) (arg1)->m_scanCode = arg2;
15493
15494 Py_INCREF(Py_None); resultobj = Py_None;
15495 return resultobj;
15496 fail:
15497 return NULL;
15498 }
15499
15500
15501 static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15502 PyObject *resultobj;
15503 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15504 bool result;
15505 PyObject * obj0 = 0 ;
15506 char *kwnames[] = {
15507 (char *) "self", NULL
15508 };
15509
15510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
15511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15512 result = (bool) ((arg1)->m_scanCode);
15513
15514 resultobj = SWIG_PyObj_FromBool((bool)result);
15515 return resultobj;
15516 fail:
15517 return NULL;
15518 }
15519
15520
15521 static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15522 PyObject *resultobj;
15523 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15524 unsigned int arg2 ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 char *kwnames[] = {
15528 (char *) "self",(char *) "m_rawCode", NULL
15529 };
15530
15531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
15532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15533 {
15534 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 if (arg1) (arg1)->m_rawCode = arg2;
15538
15539 Py_INCREF(Py_None); resultobj = Py_None;
15540 return resultobj;
15541 fail:
15542 return NULL;
15543 }
15544
15545
15546 static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15547 PyObject *resultobj;
15548 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15549 unsigned int result;
15550 PyObject * obj0 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15557 result = (unsigned int) ((arg1)->m_rawCode);
15558
15559 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
15560 return resultobj;
15561 fail:
15562 return NULL;
15563 }
15564
15565
15566 static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj;
15568 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15569 unsigned int arg2 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "self",(char *) "m_rawFlags", NULL
15574 };
15575
15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
15577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15578 {
15579 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 if (arg1) (arg1)->m_rawFlags = arg2;
15583
15584 Py_INCREF(Py_None); resultobj = Py_None;
15585 return resultobj;
15586 fail:
15587 return NULL;
15588 }
15589
15590
15591 static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15592 PyObject *resultobj;
15593 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15594 unsigned int result;
15595 PyObject * obj0 = 0 ;
15596 char *kwnames[] = {
15597 (char *) "self", NULL
15598 };
15599
15600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
15601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15602 result = (unsigned int) ((arg1)->m_rawFlags);
15603
15604 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
15605 return resultobj;
15606 fail:
15607 return NULL;
15608 }
15609
15610
15611 static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
15612 PyObject *obj;
15613 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15614 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
15615 Py_INCREF(obj);
15616 return Py_BuildValue((char *)"");
15617 }
15618 static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj;
15620 wxSize const &arg1_defvalue = wxDefaultSize ;
15621 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
15622 int arg2 = (int) 0 ;
15623 wxSizeEvent *result;
15624 wxSize temp1 ;
15625 PyObject * obj0 = 0 ;
15626 PyObject * obj1 = 0 ;
15627 char *kwnames[] = {
15628 (char *) "sz",(char *) "winid", NULL
15629 };
15630
15631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
15632 if (obj0) {
15633 {
15634 arg1 = &temp1;
15635 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
15636 }
15637 }
15638 if (obj1) {
15639 {
15640 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 }
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
15647
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1);
15652 return resultobj;
15653 fail:
15654 return NULL;
15655 }
15656
15657
15658 static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15659 PyObject *resultobj;
15660 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15661 wxSize result;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "self", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
15668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15669 {
15670 PyThreadState* __tstate = wxPyBeginAllowThreads();
15671 result = ((wxSizeEvent const *)arg1)->GetSize();
15672
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 {
15677 wxSize * resultptr;
15678 resultptr = new wxSize((wxSize &) result);
15679 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
15680 }
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj;
15689 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15690 wxRect result;
15691 PyObject * obj0 = 0 ;
15692 char *kwnames[] = {
15693 (char *) "self", NULL
15694 };
15695
15696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
15697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 result = ((wxSizeEvent const *)arg1)->GetRect();
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 {
15706 wxRect * resultptr;
15707 resultptr = new wxRect((wxRect &) result);
15708 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
15709 }
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj;
15718 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15719 wxRect arg2 ;
15720 wxRect *argp2 ;
15721 PyObject * obj0 = 0 ;
15722 PyObject * obj1 = 0 ;
15723 char *kwnames[] = {
15724 (char *) "self",(char *) "rect", NULL
15725 };
15726
15727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
15728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15729 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15730 arg2 = *argp2;
15731 {
15732 PyThreadState* __tstate = wxPyBeginAllowThreads();
15733 (arg1)->SetRect(arg2);
15734
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 Py_INCREF(Py_None); resultobj = Py_None;
15739 return resultobj;
15740 fail:
15741 return NULL;
15742 }
15743
15744
15745 static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15746 PyObject *resultobj;
15747 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15748 wxSize arg2 ;
15749 wxSize *argp2 ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 char *kwnames[] = {
15753 (char *) "self",(char *) "size", NULL
15754 };
15755
15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15758 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15759 arg2 = *argp2;
15760 {
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 wxSizeEvent_SetSize(arg1,arg2);
15763
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 Py_INCREF(Py_None); resultobj = Py_None;
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15777 wxSize *arg2 = (wxSize *) 0 ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 char *kwnames[] = {
15781 (char *) "self",(char *) "m_size", NULL
15782 };
15783
15784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
15785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15786 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15787 if (arg1) (arg1)->m_size = *arg2;
15788
15789 Py_INCREF(Py_None); resultobj = Py_None;
15790 return resultobj;
15791 fail:
15792 return NULL;
15793 }
15794
15795
15796 static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15797 PyObject *resultobj;
15798 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15799 wxSize *result;
15800 PyObject * obj0 = 0 ;
15801 char *kwnames[] = {
15802 (char *) "self", NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
15806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15807 result = (wxSize *)& ((arg1)->m_size);
15808
15809 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0);
15810 return resultobj;
15811 fail:
15812 return NULL;
15813 }
15814
15815
15816 static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj;
15818 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15819 wxRect *arg2 = (wxRect *) 0 ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self",(char *) "m_rect", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15828 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15829 if (arg1) (arg1)->m_rect = *arg2;
15830
15831 Py_INCREF(Py_None); resultobj = Py_None;
15832 return resultobj;
15833 fail:
15834 return NULL;
15835 }
15836
15837
15838 static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15841 wxRect *result;
15842 PyObject * obj0 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15849 result = (wxRect *)& ((arg1)->m_rect);
15850
15851 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
15852 return resultobj;
15853 fail:
15854 return NULL;
15855 }
15856
15857
15858 static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
15859 PyObject *obj;
15860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15861 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
15862 Py_INCREF(obj);
15863 return Py_BuildValue((char *)"");
15864 }
15865 static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15866 PyObject *resultobj;
15867 wxPoint const &arg1_defvalue = wxDefaultPosition ;
15868 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
15869 int arg2 = (int) 0 ;
15870 wxMoveEvent *result;
15871 wxPoint temp1 ;
15872 PyObject * obj0 = 0 ;
15873 PyObject * obj1 = 0 ;
15874 char *kwnames[] = {
15875 (char *) "pos",(char *) "winid", NULL
15876 };
15877
15878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
15879 if (obj0) {
15880 {
15881 arg1 = &temp1;
15882 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
15883 }
15884 }
15885 if (obj1) {
15886 {
15887 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 }
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1);
15899 return resultobj;
15900 fail:
15901 return NULL;
15902 }
15903
15904
15905 static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj;
15907 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15908 wxPoint result;
15909 PyObject * obj0 = 0 ;
15910 char *kwnames[] = {
15911 (char *) "self", NULL
15912 };
15913
15914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
15915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = ((wxMoveEvent const *)arg1)->GetPosition();
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 {
15924 wxPoint * resultptr;
15925 resultptr = new wxPoint((wxPoint &) result);
15926 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
15927 }
15928 return resultobj;
15929 fail:
15930 return NULL;
15931 }
15932
15933
15934 static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15937 wxRect result;
15938 PyObject * obj0 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15945 {
15946 PyThreadState* __tstate = wxPyBeginAllowThreads();
15947 result = ((wxMoveEvent const *)arg1)->GetRect();
15948
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
15952 {
15953 wxRect * resultptr;
15954 resultptr = new wxRect((wxRect &) result);
15955 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
15956 }
15957 return resultobj;
15958 fail:
15959 return NULL;
15960 }
15961
15962
15963 static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj;
15965 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15966 wxRect arg2 ;
15967 wxRect *argp2 ;
15968 PyObject * obj0 = 0 ;
15969 PyObject * obj1 = 0 ;
15970 char *kwnames[] = {
15971 (char *) "self",(char *) "rect", NULL
15972 };
15973
15974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
15975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15976 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15977 arg2 = *argp2;
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 (arg1)->SetRect(arg2);
15981
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 Py_INCREF(Py_None); resultobj = Py_None;
15986 return resultobj;
15987 fail:
15988 return NULL;
15989 }
15990
15991
15992 static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15993 PyObject *resultobj;
15994 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15995 wxPoint arg2 ;
15996 wxPoint *argp2 ;
15997 PyObject * obj0 = 0 ;
15998 PyObject * obj1 = 0 ;
15999 char *kwnames[] = {
16000 (char *) "self",(char *) "pos", NULL
16001 };
16002
16003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16005 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16006 arg2 = *argp2;
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 wxMoveEvent_SetPosition(arg1,arg2);
16010
16011 wxPyEndAllowThreads(__tstate);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 }
16014 Py_INCREF(Py_None); resultobj = Py_None;
16015 return resultobj;
16016 fail:
16017 return NULL;
16018 }
16019
16020
16021 static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16022 PyObject *resultobj;
16023 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16024 wxPoint *arg2 = (wxPoint *) 0 ;
16025 PyObject * obj0 = 0 ;
16026 PyObject * obj1 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self",(char *) "m_pos", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16033 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16034 if (arg1) (arg1)->m_pos = *arg2;
16035
16036 Py_INCREF(Py_None); resultobj = Py_None;
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj;
16045 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16046 wxPoint *result;
16047 PyObject * obj0 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "self", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16054 result = (wxPoint *)& ((arg1)->m_pos);
16055
16056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
16057 return resultobj;
16058 fail:
16059 return NULL;
16060 }
16061
16062
16063 static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj;
16065 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16066 wxRect *arg2 = (wxRect *) 0 ;
16067 PyObject * obj0 = 0 ;
16068 PyObject * obj1 = 0 ;
16069 char *kwnames[] = {
16070 (char *) "self",(char *) "m_rect", NULL
16071 };
16072
16073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16076 if (arg1) (arg1)->m_rect = *arg2;
16077
16078 Py_INCREF(Py_None); resultobj = Py_None;
16079 return resultobj;
16080 fail:
16081 return NULL;
16082 }
16083
16084
16085 static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16086 PyObject *resultobj;
16087 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16088 wxRect *result;
16089 PyObject * obj0 = 0 ;
16090 char *kwnames[] = {
16091 (char *) "self", NULL
16092 };
16093
16094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16096 result = (wxRect *)& ((arg1)->m_rect);
16097
16098 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
16099 return resultobj;
16100 fail:
16101 return NULL;
16102 }
16103
16104
16105 static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16106 PyObject *obj;
16107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16108 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16109 Py_INCREF(obj);
16110 return Py_BuildValue((char *)"");
16111 }
16112 static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 int arg1 = (int) 0 ;
16115 wxPaintEvent *result;
16116 PyObject * obj0 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "Id", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16122 if (obj0) {
16123 {
16124 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 }
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16131
16132 wxPyEndAllowThreads(__tstate);
16133 if (PyErr_Occurred()) SWIG_fail;
16134 }
16135 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1);
16136 return resultobj;
16137 fail:
16138 return NULL;
16139 }
16140
16141
16142 static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16143 PyObject *obj;
16144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16145 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16146 Py_INCREF(obj);
16147 return Py_BuildValue((char *)"");
16148 }
16149 static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16150 PyObject *resultobj;
16151 int arg1 = (int) 0 ;
16152 wxNcPaintEvent *result;
16153 PyObject * obj0 = 0 ;
16154 char *kwnames[] = {
16155 (char *) "winid", NULL
16156 };
16157
16158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16159 if (obj0) {
16160 {
16161 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 }
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16168
16169 wxPyEndAllowThreads(__tstate);
16170 if (PyErr_Occurred()) SWIG_fail;
16171 }
16172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1);
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16180 PyObject *obj;
16181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16182 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16183 Py_INCREF(obj);
16184 return Py_BuildValue((char *)"");
16185 }
16186 static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj;
16188 int arg1 = (int) 0 ;
16189 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16190 wxEraseEvent *result;
16191 PyObject * obj0 = 0 ;
16192 PyObject * obj1 = 0 ;
16193 char *kwnames[] = {
16194 (char *) "Id",(char *) "dc", NULL
16195 };
16196
16197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16198 if (obj0) {
16199 {
16200 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16201 if (PyErr_Occurred()) SWIG_fail;
16202 }
16203 }
16204 if (obj1) {
16205 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1);
16215 return resultobj;
16216 fail:
16217 return NULL;
16218 }
16219
16220
16221 static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16222 PyObject *resultobj;
16223 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16224 wxDC *result;
16225 PyObject * obj0 = 0 ;
16226 char *kwnames[] = {
16227 (char *) "self", NULL
16228 };
16229
16230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16232 {
16233 PyThreadState* __tstate = wxPyBeginAllowThreads();
16234 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16235
16236 wxPyEndAllowThreads(__tstate);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 }
16239 {
16240 resultobj = wxPyMake_wxObject(result);
16241 }
16242 return resultobj;
16243 fail:
16244 return NULL;
16245 }
16246
16247
16248 static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16249 PyObject *obj;
16250 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16251 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16252 Py_INCREF(obj);
16253 return Py_BuildValue((char *)"");
16254 }
16255 static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16256 PyObject *resultobj;
16257 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16258 int arg2 = (int) 0 ;
16259 wxFocusEvent *result;
16260 PyObject * obj0 = 0 ;
16261 PyObject * obj1 = 0 ;
16262 char *kwnames[] = {
16263 (char *) "type",(char *) "winid", NULL
16264 };
16265
16266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16267 if (obj0) {
16268 {
16269 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 }
16273 if (obj1) {
16274 {
16275 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 }
16279 {
16280 PyThreadState* __tstate = wxPyBeginAllowThreads();
16281 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16282
16283 wxPyEndAllowThreads(__tstate);
16284 if (PyErr_Occurred()) SWIG_fail;
16285 }
16286 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1);
16287 return resultobj;
16288 fail:
16289 return NULL;
16290 }
16291
16292
16293 static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16294 PyObject *resultobj;
16295 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16296 wxWindow *result;
16297 PyObject * obj0 = 0 ;
16298 char *kwnames[] = {
16299 (char *) "self", NULL
16300 };
16301
16302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16307
16308 wxPyEndAllowThreads(__tstate);
16309 if (PyErr_Occurred()) SWIG_fail;
16310 }
16311 {
16312 resultobj = wxPyMake_wxObject(result);
16313 }
16314 return resultobj;
16315 fail:
16316 return NULL;
16317 }
16318
16319
16320 static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj;
16322 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16323 wxWindow *arg2 = (wxWindow *) 0 ;
16324 PyObject * obj0 = 0 ;
16325 PyObject * obj1 = 0 ;
16326 char *kwnames[] = {
16327 (char *) "self",(char *) "win", NULL
16328 };
16329
16330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
16331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16332 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 (arg1)->SetWindow(arg2);
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
16348 PyObject *obj;
16349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16350 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
16351 Py_INCREF(obj);
16352 return Py_BuildValue((char *)"");
16353 }
16354 static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16355 PyObject *resultobj;
16356 wxWindow *arg1 = (wxWindow *) NULL ;
16357 wxChildFocusEvent *result;
16358 PyObject * obj0 = 0 ;
16359 char *kwnames[] = {
16360 (char *) "win", NULL
16361 };
16362
16363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
16364 if (obj0) {
16365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16366 }
16367 {
16368 PyThreadState* __tstate = wxPyBeginAllowThreads();
16369 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
16370
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1);
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj;
16383 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
16384 wxWindow *result;
16385 PyObject * obj0 = 0 ;
16386 char *kwnames[] = {
16387 (char *) "self", NULL
16388 };
16389
16390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
16395
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 {
16400 resultobj = wxPyMake_wxObject(result);
16401 }
16402 return resultobj;
16403 fail:
16404 return NULL;
16405 }
16406
16407
16408 static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
16409 PyObject *obj;
16410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16411 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
16412 Py_INCREF(obj);
16413 return Py_BuildValue((char *)"");
16414 }
16415 static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16418 bool arg2 = (bool) True ;
16419 int arg3 = (int) 0 ;
16420 wxActivateEvent *result;
16421 PyObject * obj0 = 0 ;
16422 PyObject * obj1 = 0 ;
16423 PyObject * obj2 = 0 ;
16424 char *kwnames[] = {
16425 (char *) "type",(char *) "active",(char *) "Id", NULL
16426 };
16427
16428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16429 if (obj0) {
16430 {
16431 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 }
16435 if (obj1) {
16436 {
16437 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 }
16441 if (obj2) {
16442 {
16443 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 }
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
16450
16451 wxPyEndAllowThreads(__tstate);
16452 if (PyErr_Occurred()) SWIG_fail;
16453 }
16454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1);
16455 return resultobj;
16456 fail:
16457 return NULL;
16458 }
16459
16460
16461 static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
16462 PyObject *resultobj;
16463 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
16464 bool result;
16465 PyObject * obj0 = 0 ;
16466 char *kwnames[] = {
16467 (char *) "self", NULL
16468 };
16469
16470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
16471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16472 {
16473 PyThreadState* __tstate = wxPyBeginAllowThreads();
16474 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
16475
16476 wxPyEndAllowThreads(__tstate);
16477 if (PyErr_Occurred()) SWIG_fail;
16478 }
16479 resultobj = SWIG_PyObj_FromBool((bool)result);
16480 return resultobj;
16481 fail:
16482 return NULL;
16483 }
16484
16485
16486 static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
16487 PyObject *obj;
16488 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16489 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
16490 Py_INCREF(obj);
16491 return Py_BuildValue((char *)"");
16492 }
16493 static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj;
16495 int arg1 = (int) 0 ;
16496 wxInitDialogEvent *result;
16497 PyObject * obj0 = 0 ;
16498 char *kwnames[] = {
16499 (char *) "Id", NULL
16500 };
16501
16502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
16503 if (obj0) {
16504 {
16505 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 }
16509 {
16510 PyThreadState* __tstate = wxPyBeginAllowThreads();
16511 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
16512
16513 wxPyEndAllowThreads(__tstate);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1);
16517 return resultobj;
16518 fail:
16519 return NULL;
16520 }
16521
16522
16523 static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
16524 PyObject *obj;
16525 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16526 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
16527 Py_INCREF(obj);
16528 return Py_BuildValue((char *)"");
16529 }
16530 static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16531 PyObject *resultobj;
16532 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16533 int arg2 = (int) 0 ;
16534 wxMenu *arg3 = (wxMenu *) NULL ;
16535 wxMenuEvent *result;
16536 PyObject * obj0 = 0 ;
16537 PyObject * obj1 = 0 ;
16538 PyObject * obj2 = 0 ;
16539 char *kwnames[] = {
16540 (char *) "type",(char *) "winid",(char *) "menu", NULL
16541 };
16542
16543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16544 if (obj0) {
16545 {
16546 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 }
16549 }
16550 if (obj1) {
16551 {
16552 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16553 if (PyErr_Occurred()) SWIG_fail;
16554 }
16555 }
16556 if (obj2) {
16557 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16558 }
16559 {
16560 PyThreadState* __tstate = wxPyBeginAllowThreads();
16561 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
16562
16563 wxPyEndAllowThreads(__tstate);
16564 if (PyErr_Occurred()) SWIG_fail;
16565 }
16566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1);
16567 return resultobj;
16568 fail:
16569 return NULL;
16570 }
16571
16572
16573 static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj;
16575 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16576 int result;
16577 PyObject * obj0 = 0 ;
16578 char *kwnames[] = {
16579 (char *) "self", NULL
16580 };
16581
16582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
16583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
16586 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
16587
16588 wxPyEndAllowThreads(__tstate);
16589 if (PyErr_Occurred()) SWIG_fail;
16590 }
16591 resultobj = SWIG_PyObj_FromInt((int)result);
16592 return resultobj;
16593 fail:
16594 return NULL;
16595 }
16596
16597
16598 static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
16599 PyObject *resultobj;
16600 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16601 bool result;
16602 PyObject * obj0 = 0 ;
16603 char *kwnames[] = {
16604 (char *) "self", NULL
16605 };
16606
16607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
16608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
16612
16613 wxPyEndAllowThreads(__tstate);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 resultobj = SWIG_PyObj_FromBool((bool)result);
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj;
16625 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16626 wxMenu *result;
16627 PyObject * obj0 = 0 ;
16628 char *kwnames[] = {
16629 (char *) "self", NULL
16630 };
16631
16632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
16633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16634 {
16635 PyThreadState* __tstate = wxPyBeginAllowThreads();
16636 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
16637
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 {
16642 resultobj = wxPyMake_wxObject(result);
16643 }
16644 return resultobj;
16645 fail:
16646 return NULL;
16647 }
16648
16649
16650 static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
16651 PyObject *obj;
16652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16653 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
16654 Py_INCREF(obj);
16655 return Py_BuildValue((char *)"");
16656 }
16657 static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16658 PyObject *resultobj;
16659 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16660 int arg2 = (int) 0 ;
16661 wxCloseEvent *result;
16662 PyObject * obj0 = 0 ;
16663 PyObject * obj1 = 0 ;
16664 char *kwnames[] = {
16665 (char *) "type",(char *) "winid", NULL
16666 };
16667
16668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
16669 if (obj0) {
16670 {
16671 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
16674 }
16675 if (obj1) {
16676 {
16677 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 }
16681 {
16682 PyThreadState* __tstate = wxPyBeginAllowThreads();
16683 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
16684
16685 wxPyEndAllowThreads(__tstate);
16686 if (PyErr_Occurred()) SWIG_fail;
16687 }
16688 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1);
16689 return resultobj;
16690 fail:
16691 return NULL;
16692 }
16693
16694
16695 static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
16696 PyObject *resultobj;
16697 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16698 bool arg2 ;
16699 PyObject * obj0 = 0 ;
16700 PyObject * obj1 = 0 ;
16701 char *kwnames[] = {
16702 (char *) "self",(char *) "logOff", NULL
16703 };
16704
16705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
16706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16707 {
16708 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 (arg1)->SetLoggingOff(arg2);
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 Py_INCREF(Py_None); resultobj = Py_None;
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16728 bool result;
16729 PyObject * obj0 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "self", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
16735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16736 {
16737 PyThreadState* __tstate = wxPyBeginAllowThreads();
16738 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
16739
16740 wxPyEndAllowThreads(__tstate);
16741 if (PyErr_Occurred()) SWIG_fail;
16742 }
16743 resultobj = SWIG_PyObj_FromBool((bool)result);
16744 return resultobj;
16745 fail:
16746 return NULL;
16747 }
16748
16749
16750 static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj;
16752 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16753 bool arg2 = (bool) True ;
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 char *kwnames[] = {
16757 (char *) "self",(char *) "veto", NULL
16758 };
16759
16760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
16761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16762 if (obj1) {
16763 {
16764 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
16767 }
16768 {
16769 PyThreadState* __tstate = wxPyBeginAllowThreads();
16770 (arg1)->Veto(arg2);
16771
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 Py_INCREF(Py_None); resultobj = Py_None;
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16783 PyObject *resultobj;
16784 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16785 bool arg2 ;
16786 PyObject * obj0 = 0 ;
16787 PyObject * obj1 = 0 ;
16788 char *kwnames[] = {
16789 (char *) "self",(char *) "canVeto", NULL
16790 };
16791
16792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
16793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16794 {
16795 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 (arg1)->SetCanVeto(arg2);
16801
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 Py_INCREF(Py_None); resultobj = Py_None;
16806 return resultobj;
16807 fail:
16808 return NULL;
16809 }
16810
16811
16812 static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16813 PyObject *resultobj;
16814 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16815 bool result;
16816 PyObject * obj0 = 0 ;
16817 char *kwnames[] = {
16818 (char *) "self", NULL
16819 };
16820
16821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
16822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16823 {
16824 PyThreadState* __tstate = wxPyBeginAllowThreads();
16825 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
16826
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 resultobj = SWIG_PyObj_FromBool((bool)result);
16831 return resultobj;
16832 fail:
16833 return NULL;
16834 }
16835
16836
16837 static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16838 PyObject *resultobj;
16839 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16840 bool result;
16841 PyObject * obj0 = 0 ;
16842 char *kwnames[] = {
16843 (char *) "self", NULL
16844 };
16845
16846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
16847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_PyObj_FromBool((bool)result);
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
16863 PyObject *obj;
16864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16865 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
16866 Py_INCREF(obj);
16867 return Py_BuildValue((char *)"");
16868 }
16869 static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj;
16871 int arg1 = (int) 0 ;
16872 bool arg2 = (bool) False ;
16873 wxShowEvent *result;
16874 PyObject * obj0 = 0 ;
16875 PyObject * obj1 = 0 ;
16876 char *kwnames[] = {
16877 (char *) "winid",(char *) "show", NULL
16878 };
16879
16880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
16881 if (obj0) {
16882 {
16883 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 }
16887 if (obj1) {
16888 {
16889 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 }
16893 {
16894 PyThreadState* __tstate = wxPyBeginAllowThreads();
16895 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
16896
16897 wxPyEndAllowThreads(__tstate);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 }
16900 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1);
16901 return resultobj;
16902 fail:
16903 return NULL;
16904 }
16905
16906
16907 static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
16908 PyObject *resultobj;
16909 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
16910 bool arg2 ;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 char *kwnames[] = {
16914 (char *) "self",(char *) "show", NULL
16915 };
16916
16917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
16918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16919 {
16920 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 }
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 (arg1)->SetShow(arg2);
16926
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 Py_INCREF(Py_None); resultobj = Py_None;
16931 return resultobj;
16932 fail:
16933 return NULL;
16934 }
16935
16936
16937 static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
16938 PyObject *resultobj;
16939 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
16940 bool result;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16948 {
16949 PyThreadState* __tstate = wxPyBeginAllowThreads();
16950 result = (bool)((wxShowEvent const *)arg1)->GetShow();
16951
16952 wxPyEndAllowThreads(__tstate);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 resultobj = SWIG_PyObj_FromBool((bool)result);
16956 return resultobj;
16957 fail:
16958 return NULL;
16959 }
16960
16961
16962 static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
16963 PyObject *obj;
16964 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16965 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
16966 Py_INCREF(obj);
16967 return Py_BuildValue((char *)"");
16968 }
16969 static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16970 PyObject *resultobj;
16971 int arg1 = (int) 0 ;
16972 bool arg2 = (bool) True ;
16973 wxIconizeEvent *result;
16974 PyObject * obj0 = 0 ;
16975 PyObject * obj1 = 0 ;
16976 char *kwnames[] = {
16977 (char *) "id",(char *) "iconized", NULL
16978 };
16979
16980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
16981 if (obj0) {
16982 {
16983 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 }
16987 if (obj1) {
16988 {
16989 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 }
16993 {
16994 PyThreadState* __tstate = wxPyBeginAllowThreads();
16995 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
16996
16997 wxPyEndAllowThreads(__tstate);
16998 if (PyErr_Occurred()) SWIG_fail;
16999 }
17000 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1);
17001 return resultobj;
17002 fail:
17003 return NULL;
17004 }
17005
17006
17007 static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17008 PyObject *resultobj;
17009 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17010 bool result;
17011 PyObject * obj0 = 0 ;
17012 char *kwnames[] = {
17013 (char *) "self", NULL
17014 };
17015
17016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17018 {
17019 PyThreadState* __tstate = wxPyBeginAllowThreads();
17020 result = (bool)(arg1)->Iconized();
17021
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 resultobj = SWIG_PyObj_FromBool((bool)result);
17026 return resultobj;
17027 fail:
17028 return NULL;
17029 }
17030
17031
17032 static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17033 PyObject *obj;
17034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17035 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17036 Py_INCREF(obj);
17037 return Py_BuildValue((char *)"");
17038 }
17039 static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj;
17041 int arg1 = (int) 0 ;
17042 wxMaximizeEvent *result;
17043 PyObject * obj0 = 0 ;
17044 char *kwnames[] = {
17045 (char *) "id", NULL
17046 };
17047
17048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17049 if (obj0) {
17050 {
17051 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17052 if (PyErr_Occurred()) SWIG_fail;
17053 }
17054 }
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17058
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1);
17063 return resultobj;
17064 fail:
17065 return NULL;
17066 }
17067
17068
17069 static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17070 PyObject *obj;
17071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17072 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17073 Py_INCREF(obj);
17074 return Py_BuildValue((char *)"");
17075 }
17076 static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17077 PyObject *resultobj;
17078 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17079 wxPoint result;
17080 PyObject * obj0 = 0 ;
17081 char *kwnames[] = {
17082 (char *) "self", NULL
17083 };
17084
17085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (arg1)->GetPosition();
17090
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 {
17095 wxPoint * resultptr;
17096 resultptr = new wxPoint((wxPoint &) result);
17097 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
17098 }
17099 return resultobj;
17100 fail:
17101 return NULL;
17102 }
17103
17104
17105 static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj;
17107 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17108 int result;
17109 PyObject * obj0 = 0 ;
17110 char *kwnames[] = {
17111 (char *) "self", NULL
17112 };
17113
17114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = (int)(arg1)->GetNumberOfFiles();
17119
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 resultobj = SWIG_PyObj_FromInt((int)result);
17124 return resultobj;
17125 fail:
17126 return NULL;
17127 }
17128
17129
17130 static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj;
17132 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17133 PyObject *result;
17134 PyObject * obj0 = 0 ;
17135 char *kwnames[] = {
17136 (char *) "self", NULL
17137 };
17138
17139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17144
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 resultobj = result;
17149 return resultobj;
17150 fail:
17151 return NULL;
17152 }
17153
17154
17155 static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17156 PyObject *obj;
17157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17158 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17159 Py_INCREF(obj);
17160 return Py_BuildValue((char *)"");
17161 }
17162 static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17163 PyObject *resultobj;
17164 int arg1 = (int) 0 ;
17165 wxUpdateUIEvent *result;
17166 PyObject * obj0 = 0 ;
17167 char *kwnames[] = {
17168 (char *) "commandId", NULL
17169 };
17170
17171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17172 if (obj0) {
17173 {
17174 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 }
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
17180 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17181
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1);
17186 return resultobj;
17187 fail:
17188 return NULL;
17189 }
17190
17191
17192 static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj;
17194 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17195 bool result;
17196 PyObject * obj0 = 0 ;
17197 char *kwnames[] = {
17198 (char *) "self", NULL
17199 };
17200
17201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17203 {
17204 PyThreadState* __tstate = wxPyBeginAllowThreads();
17205 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17206
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 resultobj = SWIG_PyObj_FromBool((bool)result);
17211 return resultobj;
17212 fail:
17213 return NULL;
17214 }
17215
17216
17217 static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj;
17219 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17220 bool result;
17221 PyObject * obj0 = 0 ;
17222 char *kwnames[] = {
17223 (char *) "self", NULL
17224 };
17225
17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17228 {
17229 PyThreadState* __tstate = wxPyBeginAllowThreads();
17230 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17231
17232 wxPyEndAllowThreads(__tstate);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 resultobj = SWIG_PyObj_FromBool((bool)result);
17236 return resultobj;
17237 fail:
17238 return NULL;
17239 }
17240
17241
17242 static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj;
17244 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17245 wxString result;
17246 PyObject * obj0 = 0 ;
17247 char *kwnames[] = {
17248 (char *) "self", NULL
17249 };
17250
17251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17253 {
17254 PyThreadState* __tstate = wxPyBeginAllowThreads();
17255 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17256
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 {
17261 #if wxUSE_UNICODE
17262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17263 #else
17264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17265 #endif
17266 }
17267 return resultobj;
17268 fail:
17269 return NULL;
17270 }
17271
17272
17273 static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17274 PyObject *resultobj;
17275 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17276 bool result;
17277 PyObject * obj0 = 0 ;
17278 char *kwnames[] = {
17279 (char *) "self", NULL
17280 };
17281
17282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
17283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
17287
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 resultobj = SWIG_PyObj_FromBool((bool)result);
17292 return resultobj;
17293 fail:
17294 return NULL;
17295 }
17296
17297
17298 static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17301 bool result;
17302 PyObject * obj0 = 0 ;
17303 char *kwnames[] = {
17304 (char *) "self", NULL
17305 };
17306
17307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
17308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17309 {
17310 PyThreadState* __tstate = wxPyBeginAllowThreads();
17311 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
17312
17313 wxPyEndAllowThreads(__tstate);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 }
17316 resultobj = SWIG_PyObj_FromBool((bool)result);
17317 return resultobj;
17318 fail:
17319 return NULL;
17320 }
17321
17322
17323 static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17324 PyObject *resultobj;
17325 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17326 bool result;
17327 PyObject * obj0 = 0 ;
17328 char *kwnames[] = {
17329 (char *) "self", NULL
17330 };
17331
17332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
17333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17334 {
17335 PyThreadState* __tstate = wxPyBeginAllowThreads();
17336 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
17337
17338 wxPyEndAllowThreads(__tstate);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 }
17341 resultobj = SWIG_PyObj_FromBool((bool)result);
17342 return resultobj;
17343 fail:
17344 return NULL;
17345 }
17346
17347
17348 static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj;
17350 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17351 bool arg2 ;
17352 PyObject * obj0 = 0 ;
17353 PyObject * obj1 = 0 ;
17354 char *kwnames[] = {
17355 (char *) "self",(char *) "check", NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
17359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17360 {
17361 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 {
17365 PyThreadState* __tstate = wxPyBeginAllowThreads();
17366 (arg1)->Check(arg2);
17367
17368 wxPyEndAllowThreads(__tstate);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 }
17371 Py_INCREF(Py_None); resultobj = Py_None;
17372 return resultobj;
17373 fail:
17374 return NULL;
17375 }
17376
17377
17378 static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj;
17380 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17381 bool arg2 ;
17382 PyObject * obj0 = 0 ;
17383 PyObject * obj1 = 0 ;
17384 char *kwnames[] = {
17385 (char *) "self",(char *) "enable", NULL
17386 };
17387
17388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
17389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17390 {
17391 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 {
17395 PyThreadState* __tstate = wxPyBeginAllowThreads();
17396 (arg1)->Enable(arg2);
17397
17398 wxPyEndAllowThreads(__tstate);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 Py_INCREF(Py_None); resultobj = Py_None;
17402 return resultobj;
17403 fail:
17404 return NULL;
17405 }
17406
17407
17408 static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17409 PyObject *resultobj;
17410 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17411 wxString *arg2 = 0 ;
17412 bool temp2 = False ;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 char *kwnames[] = {
17416 (char *) "self",(char *) "text", NULL
17417 };
17418
17419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
17420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17421 {
17422 arg2 = wxString_in_helper(obj1);
17423 if (arg2 == NULL) SWIG_fail;
17424 temp2 = True;
17425 }
17426 {
17427 PyThreadState* __tstate = wxPyBeginAllowThreads();
17428 (arg1)->SetText((wxString const &)*arg2);
17429
17430 wxPyEndAllowThreads(__tstate);
17431 if (PyErr_Occurred()) SWIG_fail;
17432 }
17433 Py_INCREF(Py_None); resultobj = Py_None;
17434 {
17435 if (temp2)
17436 delete arg2;
17437 }
17438 return resultobj;
17439 fail:
17440 {
17441 if (temp2)
17442 delete arg2;
17443 }
17444 return NULL;
17445 }
17446
17447
17448 static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 long arg1 ;
17451 PyObject * obj0 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "updateInterval", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
17457 {
17458 arg1 = (long) SWIG_PyObj_AsLong(obj0);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 wxUpdateUIEvent::SetUpdateInterval(arg1);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 Py_INCREF(Py_None); resultobj = Py_None;
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 long result;
17478 char *kwnames[] = {
17479 NULL
17480 };
17481
17482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (long)wxUpdateUIEvent::GetUpdateInterval();
17486
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 resultobj = SWIG_PyObj_FromLong((long)result);
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj;
17499 wxWindow *arg1 = (wxWindow *) 0 ;
17500 bool result;
17501 PyObject * obj0 = 0 ;
17502 char *kwnames[] = {
17503 (char *) "win", NULL
17504 };
17505
17506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
17507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17508 {
17509 PyThreadState* __tstate = wxPyBeginAllowThreads();
17510 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
17511
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_PyObj_FromBool((bool)result);
17516 return resultobj;
17517 fail:
17518 return NULL;
17519 }
17520
17521
17522 static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj;
17524 char *kwnames[] = {
17525 NULL
17526 };
17527
17528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
17529 {
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 wxUpdateUIEvent::ResetUpdateTime();
17532
17533 wxPyEndAllowThreads(__tstate);
17534 if (PyErr_Occurred()) SWIG_fail;
17535 }
17536 Py_INCREF(Py_None); resultobj = Py_None;
17537 return resultobj;
17538 fail:
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj;
17545 int arg1 ;
17546 PyObject * obj0 = 0 ;
17547 char *kwnames[] = {
17548 (char *) "mode", NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
17552 {
17553 arg1 = (wxUpdateUIMode) SWIG_PyObj_AsInt(obj0);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 }
17556 {
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 Py_INCREF(Py_None); resultobj = Py_None;
17564 return resultobj;
17565 fail:
17566 return NULL;
17567 }
17568
17569
17570 static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 int result;
17573 char *kwnames[] = {
17574 NULL
17575 };
17576
17577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 result = (int)wxUpdateUIEvent::GetMode();
17581
17582 wxPyEndAllowThreads(__tstate);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
17585 resultobj = SWIG_PyObj_FromInt((int)result);
17586 return resultobj;
17587 fail:
17588 return NULL;
17589 }
17590
17591
17592 static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
17593 PyObject *obj;
17594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17595 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
17596 Py_INCREF(obj);
17597 return Py_BuildValue((char *)"");
17598 }
17599 static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj;
17601 wxSysColourChangedEvent *result;
17602 char *kwnames[] = {
17603 NULL
17604 };
17605
17606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
17607 {
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
17610
17611 wxPyEndAllowThreads(__tstate);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
17614 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1);
17615 return resultobj;
17616 fail:
17617 return NULL;
17618 }
17619
17620
17621 static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
17622 PyObject *obj;
17623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17624 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
17625 Py_INCREF(obj);
17626 return Py_BuildValue((char *)"");
17627 }
17628 static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17629 PyObject *resultobj;
17630 int arg1 = (int) 0 ;
17631 wxWindow *arg2 = (wxWindow *) NULL ;
17632 wxMouseCaptureChangedEvent *result;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 char *kwnames[] = {
17636 (char *) "winid",(char *) "gainedCapture", NULL
17637 };
17638
17639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
17640 if (obj0) {
17641 {
17642 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 }
17646 if (obj1) {
17647 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17648 }
17649 {
17650 PyThreadState* __tstate = wxPyBeginAllowThreads();
17651 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
17652
17653 wxPyEndAllowThreads(__tstate);
17654 if (PyErr_Occurred()) SWIG_fail;
17655 }
17656 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
17657 return resultobj;
17658 fail:
17659 return NULL;
17660 }
17661
17662
17663 static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17664 PyObject *resultobj;
17665 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
17666 wxWindow *result;
17667 PyObject * obj0 = 0 ;
17668 char *kwnames[] = {
17669 (char *) "self", NULL
17670 };
17671
17672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
17673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
17676 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 {
17682 resultobj = wxPyMake_wxObject(result);
17683 }
17684 return resultobj;
17685 fail:
17686 return NULL;
17687 }
17688
17689
17690 static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
17691 PyObject *obj;
17692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17693 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
17694 Py_INCREF(obj);
17695 return Py_BuildValue((char *)"");
17696 }
17697 static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17698 PyObject *resultobj;
17699 wxDisplayChangedEvent *result;
17700 char *kwnames[] = {
17701 NULL
17702 };
17703
17704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
17708
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1);
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
17720 PyObject *obj;
17721 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17722 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
17723 Py_INCREF(obj);
17724 return Py_BuildValue((char *)"");
17725 }
17726 static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj;
17728 int arg1 = (int) 0 ;
17729 wxPaletteChangedEvent *result;
17730 PyObject * obj0 = 0 ;
17731 char *kwnames[] = {
17732 (char *) "id", NULL
17733 };
17734
17735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
17736 if (obj0) {
17737 {
17738 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 }
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
17745
17746 wxPyEndAllowThreads(__tstate);
17747 if (PyErr_Occurred()) SWIG_fail;
17748 }
17749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1);
17750 return resultobj;
17751 fail:
17752 return NULL;
17753 }
17754
17755
17756 static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17757 PyObject *resultobj;
17758 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
17759 wxWindow *arg2 = (wxWindow *) 0 ;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 char *kwnames[] = {
17763 (char *) "self",(char *) "win", NULL
17764 };
17765
17766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
17767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17768 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 (arg1)->SetChangedWindow(arg2);
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 Py_INCREF(Py_None); resultobj = Py_None;
17777 return resultobj;
17778 fail:
17779 return NULL;
17780 }
17781
17782
17783 static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17784 PyObject *resultobj;
17785 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
17786 wxWindow *result;
17787 PyObject * obj0 = 0 ;
17788 char *kwnames[] = {
17789 (char *) "self", NULL
17790 };
17791
17792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
17793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17794 {
17795 PyThreadState* __tstate = wxPyBeginAllowThreads();
17796 result = (wxWindow *)(arg1)->GetChangedWindow();
17797
17798 wxPyEndAllowThreads(__tstate);
17799 if (PyErr_Occurred()) SWIG_fail;
17800 }
17801 {
17802 resultobj = wxPyMake_wxObject(result);
17803 }
17804 return resultobj;
17805 fail:
17806 return NULL;
17807 }
17808
17809
17810 static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
17811 PyObject *obj;
17812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17813 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
17814 Py_INCREF(obj);
17815 return Py_BuildValue((char *)"");
17816 }
17817 static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17818 PyObject *resultobj;
17819 int arg1 = (int) 0 ;
17820 wxQueryNewPaletteEvent *result;
17821 PyObject * obj0 = 0 ;
17822 char *kwnames[] = {
17823 (char *) "winid", NULL
17824 };
17825
17826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
17827 if (obj0) {
17828 {
17829 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17830 if (PyErr_Occurred()) SWIG_fail;
17831 }
17832 }
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
17850 bool arg2 ;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 char *kwnames[] = {
17854 (char *) "self",(char *) "realized", NULL
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
17858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17859 {
17860 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 (arg1)->SetPaletteRealized(arg2);
17866
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 Py_INCREF(Py_None); resultobj = Py_None;
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
17880 bool result;
17881 PyObject * obj0 = 0 ;
17882 char *kwnames[] = {
17883 (char *) "self", NULL
17884 };
17885
17886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
17887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_PyObj_FromBool((bool)result);
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
17903 PyObject *obj;
17904 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17905 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
17906 Py_INCREF(obj);
17907 return Py_BuildValue((char *)"");
17908 }
17909 static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxNavigationKeyEvent *result;
17912 char *kwnames[] = {
17913 NULL
17914 };
17915
17916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
17920
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1);
17925 return resultobj;
17926 fail:
17927 return NULL;
17928 }
17929
17930
17931 static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj;
17933 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17934 bool result;
17935 PyObject * obj0 = 0 ;
17936 char *kwnames[] = {
17937 (char *) "self", NULL
17938 };
17939
17940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
17941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
17945
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 resultobj = SWIG_PyObj_FromBool((bool)result);
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj;
17958 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17959 bool arg2 ;
17960 PyObject * obj0 = 0 ;
17961 PyObject * obj1 = 0 ;
17962 char *kwnames[] = {
17963 (char *) "self",(char *) "bForward", NULL
17964 };
17965
17966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
17967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17968 {
17969 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->SetDirection(arg2);
17975
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 Py_INCREF(Py_None); resultobj = Py_None;
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj;
17988 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17989 bool result;
17990 PyObject * obj0 = 0 ;
17991 char *kwnames[] = {
17992 (char *) "self", NULL
17993 };
17994
17995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
17996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_PyObj_FromBool((bool)result);
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18014 bool arg2 ;
18015 PyObject * obj0 = 0 ;
18016 PyObject * obj1 = 0 ;
18017 char *kwnames[] = {
18018 (char *) "self",(char *) "bIs", NULL
18019 };
18020
18021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18023 {
18024 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 (arg1)->SetWindowChange(arg2);
18030
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 Py_INCREF(Py_None); resultobj = Py_None;
18035 return resultobj;
18036 fail:
18037 return NULL;
18038 }
18039
18040
18041 static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18042 PyObject *resultobj;
18043 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18044 wxWindow *result;
18045 PyObject * obj0 = 0 ;
18046 char *kwnames[] = {
18047 (char *) "self", NULL
18048 };
18049
18050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18052 {
18053 PyThreadState* __tstate = wxPyBeginAllowThreads();
18054 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18055
18056 wxPyEndAllowThreads(__tstate);
18057 if (PyErr_Occurred()) SWIG_fail;
18058 }
18059 {
18060 resultobj = wxPyMake_wxObject(result);
18061 }
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18071 wxWindow *arg2 = (wxWindow *) 0 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "win", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18080 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18081 {
18082 PyThreadState* __tstate = wxPyBeginAllowThreads();
18083 (arg1)->SetCurrentFocus(arg2);
18084
18085 wxPyEndAllowThreads(__tstate);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 }
18088 Py_INCREF(Py_None); resultobj = Py_None;
18089 return resultobj;
18090 fail:
18091 return NULL;
18092 }
18093
18094
18095 static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18096 PyObject *obj;
18097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18098 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18099 Py_INCREF(obj);
18100 return Py_BuildValue((char *)"");
18101 }
18102 static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj;
18104 wxWindow *arg1 = (wxWindow *) NULL ;
18105 wxWindowCreateEvent *result;
18106 PyObject * obj0 = 0 ;
18107 char *kwnames[] = {
18108 (char *) "win", NULL
18109 };
18110
18111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18112 if (obj0) {
18113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18114 }
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18118
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1);
18123 return resultobj;
18124 fail:
18125 return NULL;
18126 }
18127
18128
18129 static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj;
18131 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18132 wxWindow *result;
18133 PyObject * obj0 = 0 ;
18134 char *kwnames[] = {
18135 (char *) "self", NULL
18136 };
18137
18138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 {
18148 resultobj = wxPyMake_wxObject(result);
18149 }
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18157 PyObject *obj;
18158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18159 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18160 Py_INCREF(obj);
18161 return Py_BuildValue((char *)"");
18162 }
18163 static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18164 PyObject *resultobj;
18165 wxWindow *arg1 = (wxWindow *) NULL ;
18166 wxWindowDestroyEvent *result;
18167 PyObject * obj0 = 0 ;
18168 char *kwnames[] = {
18169 (char *) "win", NULL
18170 };
18171
18172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18173 if (obj0) {
18174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18175 }
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18179
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1);
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj;
18192 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18193 wxWindow *result;
18194 PyObject * obj0 = 0 ;
18195 char *kwnames[] = {
18196 (char *) "self", NULL
18197 };
18198
18199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18204
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 {
18209 resultobj = wxPyMake_wxObject(result);
18210 }
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18218 PyObject *obj;
18219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18220 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18221 Py_INCREF(obj);
18222 return Py_BuildValue((char *)"");
18223 }
18224 static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj;
18226 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18227 int arg2 = (int) 0 ;
18228 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18229 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18230 wxContextMenuEvent *result;
18231 wxPoint temp3 ;
18232 PyObject * obj0 = 0 ;
18233 PyObject * obj1 = 0 ;
18234 PyObject * obj2 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "type",(char *) "winid",(char *) "pt", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18240 if (obj0) {
18241 {
18242 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 }
18246 if (obj1) {
18247 {
18248 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 }
18252 if (obj2) {
18253 {
18254 arg3 = &temp3;
18255 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18256 }
18257 }
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18261
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1);
18266 return resultobj;
18267 fail:
18268 return NULL;
18269 }
18270
18271
18272 static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj;
18274 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18275 wxPoint *result;
18276 PyObject * obj0 = 0 ;
18277 char *kwnames[] = {
18278 (char *) "self", NULL
18279 };
18280
18281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
18282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 {
18286 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
18287 result = (wxPoint *) &_result_ref;
18288 }
18289
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
18294 return resultobj;
18295 fail:
18296 return NULL;
18297 }
18298
18299
18300 static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18301 PyObject *resultobj;
18302 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18303 wxPoint *arg2 = 0 ;
18304 wxPoint temp2 ;
18305 PyObject * obj0 = 0 ;
18306 PyObject * obj1 = 0 ;
18307 char *kwnames[] = {
18308 (char *) "self",(char *) "pos", NULL
18309 };
18310
18311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
18312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18313 {
18314 arg2 = &temp2;
18315 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18316 }
18317 {
18318 PyThreadState* __tstate = wxPyBeginAllowThreads();
18319 (arg1)->SetPosition((wxPoint const &)*arg2);
18320
18321 wxPyEndAllowThreads(__tstate);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 Py_INCREF(Py_None); resultobj = Py_None;
18325 return resultobj;
18326 fail:
18327 return NULL;
18328 }
18329
18330
18331 static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
18332 PyObject *obj;
18333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18334 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
18335 Py_INCREF(obj);
18336 return Py_BuildValue((char *)"");
18337 }
18338 static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj;
18340 wxIdleEvent *result;
18341 char *kwnames[] = {
18342 NULL
18343 };
18344
18345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 result = (wxIdleEvent *)new wxIdleEvent();
18349
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1);
18354 return resultobj;
18355 fail:
18356 return NULL;
18357 }
18358
18359
18360 static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
18361 PyObject *resultobj;
18362 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
18363 bool arg2 = (bool) True ;
18364 PyObject * obj0 = 0 ;
18365 PyObject * obj1 = 0 ;
18366 char *kwnames[] = {
18367 (char *) "self",(char *) "needMore", NULL
18368 };
18369
18370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
18371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18372 if (obj1) {
18373 {
18374 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 }
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 (arg1)->RequestMore(arg2);
18381
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 Py_INCREF(Py_None); resultobj = Py_None;
18386 return resultobj;
18387 fail:
18388 return NULL;
18389 }
18390
18391
18392 static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
18393 PyObject *resultobj;
18394 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
18395 bool result;
18396 PyObject * obj0 = 0 ;
18397 char *kwnames[] = {
18398 (char *) "self", NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
18402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_PyObj_FromBool((bool)result);
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 int arg1 ;
18420 PyObject * obj0 = 0 ;
18421 char *kwnames[] = {
18422 (char *) "mode", NULL
18423 };
18424
18425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
18426 {
18427 arg1 = (wxIdleMode) SWIG_PyObj_AsInt(obj0);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 {
18431 PyThreadState* __tstate = wxPyBeginAllowThreads();
18432 wxIdleEvent::SetMode((wxIdleMode )arg1);
18433
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 Py_INCREF(Py_None); resultobj = Py_None;
18438 return resultobj;
18439 fail:
18440 return NULL;
18441 }
18442
18443
18444 static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18445 PyObject *resultobj;
18446 int result;
18447 char *kwnames[] = {
18448 NULL
18449 };
18450
18451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
18452 {
18453 PyThreadState* __tstate = wxPyBeginAllowThreads();
18454 result = (int)wxIdleEvent::GetMode();
18455
18456 wxPyEndAllowThreads(__tstate);
18457 if (PyErr_Occurred()) SWIG_fail;
18458 }
18459 resultobj = SWIG_PyObj_FromInt((int)result);
18460 return resultobj;
18461 fail:
18462 return NULL;
18463 }
18464
18465
18466 static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
18467 PyObject *resultobj;
18468 wxWindow *arg1 = (wxWindow *) 0 ;
18469 bool result;
18470 PyObject * obj0 = 0 ;
18471 char *kwnames[] = {
18472 (char *) "win", NULL
18473 };
18474
18475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
18476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18477 {
18478 PyThreadState* __tstate = wxPyBeginAllowThreads();
18479 result = (bool)wxIdleEvent::CanSend(arg1);
18480
18481 wxPyEndAllowThreads(__tstate);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 }
18484 resultobj = SWIG_PyObj_FromBool((bool)result);
18485 return resultobj;
18486 fail:
18487 return NULL;
18488 }
18489
18490
18491 static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
18492 PyObject *obj;
18493 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18494 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
18495 Py_INCREF(obj);
18496 return Py_BuildValue((char *)"");
18497 }
18498 static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj;
18500 int arg1 = (int) 0 ;
18501 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
18502 wxPyEvent *result;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 char *kwnames[] = {
18506 (char *) "winid",(char *) "commandType", NULL
18507 };
18508
18509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
18510 if (obj0) {
18511 {
18512 arg1 = (int) SWIG_PyObj_AsInt(obj0);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 }
18515 }
18516 if (obj1) {
18517 {
18518 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
18519 if (PyErr_Occurred()) SWIG_fail;
18520 }
18521 }
18522 {
18523 PyThreadState* __tstate = wxPyBeginAllowThreads();
18524 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
18525
18526 wxPyEndAllowThreads(__tstate);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1);
18530 return resultobj;
18531 fail:
18532 return NULL;
18533 }
18534
18535
18536 static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj;
18538 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18539 PyObject * obj0 = 0 ;
18540 char *kwnames[] = {
18541 (char *) "self", NULL
18542 };
18543
18544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
18545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 delete arg1;
18549
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 Py_INCREF(Py_None); resultobj = Py_None;
18554 return resultobj;
18555 fail:
18556 return NULL;
18557 }
18558
18559
18560 static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18561 PyObject *resultobj;
18562 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18563 PyObject *arg2 = (PyObject *) 0 ;
18564 PyObject * obj0 = 0 ;
18565 PyObject * obj1 = 0 ;
18566 char *kwnames[] = {
18567 (char *) "self",(char *) "self", NULL
18568 };
18569
18570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
18571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18572 arg2 = obj1;
18573 {
18574 PyThreadState* __tstate = wxPyBeginAllowThreads();
18575 (arg1)->SetSelf(arg2);
18576
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 Py_INCREF(Py_None); resultobj = Py_None;
18581 return resultobj;
18582 fail:
18583 return NULL;
18584 }
18585
18586
18587 static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18588 PyObject *resultobj;
18589 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18590 PyObject *result;
18591 PyObject * obj0 = 0 ;
18592 char *kwnames[] = {
18593 (char *) "self", NULL
18594 };
18595
18596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
18597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18598 {
18599 PyThreadState* __tstate = wxPyBeginAllowThreads();
18600 result = (PyObject *)(arg1)->GetSelf();
18601
18602 wxPyEndAllowThreads(__tstate);
18603 if (PyErr_Occurred()) SWIG_fail;
18604 }
18605 resultobj = result;
18606 return resultobj;
18607 fail:
18608 return NULL;
18609 }
18610
18611
18612 static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
18613 PyObject *obj;
18614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18615 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
18616 Py_INCREF(obj);
18617 return Py_BuildValue((char *)"");
18618 }
18619 static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18620 PyObject *resultobj;
18621 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18622 int arg2 = (int) 0 ;
18623 wxPyCommandEvent *result;
18624 PyObject * obj0 = 0 ;
18625 PyObject * obj1 = 0 ;
18626 char *kwnames[] = {
18627 (char *) "commandType",(char *) "id", NULL
18628 };
18629
18630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
18631 if (obj0) {
18632 {
18633 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 }
18637 if (obj1) {
18638 {
18639 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 }
18643 {
18644 PyThreadState* __tstate = wxPyBeginAllowThreads();
18645 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
18646
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1);
18651 return resultobj;
18652 fail:
18653 return NULL;
18654 }
18655
18656
18657 static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18658 PyObject *resultobj;
18659 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18660 PyObject * obj0 = 0 ;
18661 char *kwnames[] = {
18662 (char *) "self", NULL
18663 };
18664
18665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
18666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18667 {
18668 PyThreadState* __tstate = wxPyBeginAllowThreads();
18669 delete arg1;
18670
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 Py_INCREF(Py_None); resultobj = Py_None;
18675 return resultobj;
18676 fail:
18677 return NULL;
18678 }
18679
18680
18681 static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18682 PyObject *resultobj;
18683 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18684 PyObject *arg2 = (PyObject *) 0 ;
18685 PyObject * obj0 = 0 ;
18686 PyObject * obj1 = 0 ;
18687 char *kwnames[] = {
18688 (char *) "self",(char *) "self", NULL
18689 };
18690
18691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
18692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18693 arg2 = obj1;
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 (arg1)->SetSelf(arg2);
18697
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 Py_INCREF(Py_None); resultobj = Py_None;
18702 return resultobj;
18703 fail:
18704 return NULL;
18705 }
18706
18707
18708 static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18709 PyObject *resultobj;
18710 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18711 PyObject *result;
18712 PyObject * obj0 = 0 ;
18713 char *kwnames[] = {
18714 (char *) "self", NULL
18715 };
18716
18717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
18718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 result = (PyObject *)(arg1)->GetSelf();
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = result;
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
18734 PyObject *obj;
18735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18736 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
18737 Py_INCREF(obj);
18738 return Py_BuildValue((char *)"");
18739 }
18740 static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
18741 PyObject *resultobj;
18742 wxPyApp *result;
18743 char *kwnames[] = {
18744 NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
18748 {
18749 PyThreadState* __tstate = wxPyBeginAllowThreads();
18750 result = (wxPyApp *)new_wxPyApp();
18751
18752 wxPyEndAllowThreads(__tstate);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 }
18755 {
18756 resultobj = wxPyMake_wxObject(result);
18757 }
18758 return resultobj;
18759 fail:
18760 return NULL;
18761 }
18762
18763
18764 static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj;
18766 wxPyApp *arg1 = (wxPyApp *) 0 ;
18767 PyObject * obj0 = 0 ;
18768 char *kwnames[] = {
18769 (char *) "self", NULL
18770 };
18771
18772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
18773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18774 {
18775 PyThreadState* __tstate = wxPyBeginAllowThreads();
18776 delete arg1;
18777
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 Py_INCREF(Py_None); resultobj = Py_None;
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj;
18790 wxPyApp *arg1 = (wxPyApp *) 0 ;
18791 PyObject *arg2 = (PyObject *) 0 ;
18792 PyObject *arg3 = (PyObject *) 0 ;
18793 PyObject * obj0 = 0 ;
18794 PyObject * obj1 = 0 ;
18795 PyObject * obj2 = 0 ;
18796 char *kwnames[] = {
18797 (char *) "self",(char *) "self",(char *) "_class", NULL
18798 };
18799
18800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
18801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18802 arg2 = obj1;
18803 arg3 = obj2;
18804 {
18805 PyThreadState* __tstate = wxPyBeginAllowThreads();
18806 (arg1)->_setCallbackInfo(arg2,arg3);
18807
18808 wxPyEndAllowThreads(__tstate);
18809 if (PyErr_Occurred()) SWIG_fail;
18810 }
18811 Py_INCREF(Py_None); resultobj = Py_None;
18812 return resultobj;
18813 fail:
18814 return NULL;
18815 }
18816
18817
18818 static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
18819 PyObject *resultobj;
18820 wxPyApp *arg1 = (wxPyApp *) 0 ;
18821 wxString result;
18822 PyObject * obj0 = 0 ;
18823 char *kwnames[] = {
18824 (char *) "self", NULL
18825 };
18826
18827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
18828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18829 {
18830 PyThreadState* __tstate = wxPyBeginAllowThreads();
18831 result = ((wxPyApp const *)arg1)->GetAppName();
18832
18833 wxPyEndAllowThreads(__tstate);
18834 if (PyErr_Occurred()) SWIG_fail;
18835 }
18836 {
18837 #if wxUSE_UNICODE
18838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18839 #else
18840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18841 #endif
18842 }
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj;
18851 wxPyApp *arg1 = (wxPyApp *) 0 ;
18852 wxString *arg2 = 0 ;
18853 bool temp2 = False ;
18854 PyObject * obj0 = 0 ;
18855 PyObject * obj1 = 0 ;
18856 char *kwnames[] = {
18857 (char *) "self",(char *) "name", NULL
18858 };
18859
18860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
18861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18862 {
18863 arg2 = wxString_in_helper(obj1);
18864 if (arg2 == NULL) SWIG_fail;
18865 temp2 = True;
18866 }
18867 {
18868 PyThreadState* __tstate = wxPyBeginAllowThreads();
18869 (arg1)->SetAppName((wxString const &)*arg2);
18870
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 Py_INCREF(Py_None); resultobj = Py_None;
18875 {
18876 if (temp2)
18877 delete arg2;
18878 }
18879 return resultobj;
18880 fail:
18881 {
18882 if (temp2)
18883 delete arg2;
18884 }
18885 return NULL;
18886 }
18887
18888
18889 static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
18890 PyObject *resultobj;
18891 wxPyApp *arg1 = (wxPyApp *) 0 ;
18892 wxString result;
18893 PyObject * obj0 = 0 ;
18894 char *kwnames[] = {
18895 (char *) "self", NULL
18896 };
18897
18898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
18899 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18900 {
18901 PyThreadState* __tstate = wxPyBeginAllowThreads();
18902 result = ((wxPyApp const *)arg1)->GetClassName();
18903
18904 wxPyEndAllowThreads(__tstate);
18905 if (PyErr_Occurred()) SWIG_fail;
18906 }
18907 {
18908 #if wxUSE_UNICODE
18909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18910 #else
18911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18912 #endif
18913 }
18914 return resultobj;
18915 fail:
18916 return NULL;
18917 }
18918
18919
18920 static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
18921 PyObject *resultobj;
18922 wxPyApp *arg1 = (wxPyApp *) 0 ;
18923 wxString *arg2 = 0 ;
18924 bool temp2 = False ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 char *kwnames[] = {
18928 (char *) "self",(char *) "name", NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
18932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18933 {
18934 arg2 = wxString_in_helper(obj1);
18935 if (arg2 == NULL) SWIG_fail;
18936 temp2 = True;
18937 }
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 (arg1)->SetClassName((wxString const &)*arg2);
18941
18942 wxPyEndAllowThreads(__tstate);
18943 if (PyErr_Occurred()) SWIG_fail;
18944 }
18945 Py_INCREF(Py_None); resultobj = Py_None;
18946 {
18947 if (temp2)
18948 delete arg2;
18949 }
18950 return resultobj;
18951 fail:
18952 {
18953 if (temp2)
18954 delete arg2;
18955 }
18956 return NULL;
18957 }
18958
18959
18960 static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
18961 PyObject *resultobj;
18962 wxPyApp *arg1 = (wxPyApp *) 0 ;
18963 wxString *result;
18964 PyObject * obj0 = 0 ;
18965 char *kwnames[] = {
18966 (char *) "self", NULL
18967 };
18968
18969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
18970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18971 {
18972 PyThreadState* __tstate = wxPyBeginAllowThreads();
18973 {
18974 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
18975 result = (wxString *) &_result_ref;
18976 }
18977
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 {
18982 #if wxUSE_UNICODE
18983 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18984 #else
18985 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18986 #endif
18987 }
18988 return resultobj;
18989 fail:
18990 return NULL;
18991 }
18992
18993
18994 static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
18995 PyObject *resultobj;
18996 wxPyApp *arg1 = (wxPyApp *) 0 ;
18997 wxString *arg2 = 0 ;
18998 bool temp2 = False ;
18999 PyObject * obj0 = 0 ;
19000 PyObject * obj1 = 0 ;
19001 char *kwnames[] = {
19002 (char *) "self",(char *) "name", NULL
19003 };
19004
19005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19007 {
19008 arg2 = wxString_in_helper(obj1);
19009 if (arg2 == NULL) SWIG_fail;
19010 temp2 = True;
19011 }
19012 {
19013 PyThreadState* __tstate = wxPyBeginAllowThreads();
19014 (arg1)->SetVendorName((wxString const &)*arg2);
19015
19016 wxPyEndAllowThreads(__tstate);
19017 if (PyErr_Occurred()) SWIG_fail;
19018 }
19019 Py_INCREF(Py_None); resultobj = Py_None;
19020 {
19021 if (temp2)
19022 delete arg2;
19023 }
19024 return resultobj;
19025 fail:
19026 {
19027 if (temp2)
19028 delete arg2;
19029 }
19030 return NULL;
19031 }
19032
19033
19034 static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19035 PyObject *resultobj;
19036 wxPyApp *arg1 = (wxPyApp *) 0 ;
19037 wxAppTraits *result;
19038 PyObject * obj0 = 0 ;
19039 char *kwnames[] = {
19040 (char *) "self", NULL
19041 };
19042
19043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19045 {
19046 PyThreadState* __tstate = wxPyBeginAllowThreads();
19047 result = (wxAppTraits *)(arg1)->GetTraits();
19048
19049 wxPyEndAllowThreads(__tstate);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0);
19053 return resultobj;
19054 fail:
19055 return NULL;
19056 }
19057
19058
19059 static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19060 PyObject *resultobj;
19061 wxPyApp *arg1 = (wxPyApp *) 0 ;
19062 PyObject * obj0 = 0 ;
19063 char *kwnames[] = {
19064 (char *) "self", NULL
19065 };
19066
19067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19069 {
19070 PyThreadState* __tstate = wxPyBeginAllowThreads();
19071 (arg1)->ProcessPendingEvents();
19072
19073 wxPyEndAllowThreads(__tstate);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
19076 Py_INCREF(Py_None); resultobj = Py_None;
19077 return resultobj;
19078 fail:
19079 return NULL;
19080 }
19081
19082
19083 static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19084 PyObject *resultobj;
19085 wxPyApp *arg1 = (wxPyApp *) 0 ;
19086 bool arg2 = (bool) False ;
19087 bool result;
19088 PyObject * obj0 = 0 ;
19089 PyObject * obj1 = 0 ;
19090 char *kwnames[] = {
19091 (char *) "self",(char *) "onlyIfNeeded", NULL
19092 };
19093
19094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19096 if (obj1) {
19097 {
19098 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
19099 if (PyErr_Occurred()) SWIG_fail;
19100 }
19101 }
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 result = (bool)(arg1)->Yield(arg2);
19105
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 resultobj = SWIG_PyObj_FromBool((bool)result);
19110 return resultobj;
19111 fail:
19112 return NULL;
19113 }
19114
19115
19116 static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19117 PyObject *resultobj;
19118 wxPyApp *arg1 = (wxPyApp *) 0 ;
19119 PyObject * obj0 = 0 ;
19120 char *kwnames[] = {
19121 (char *) "self", NULL
19122 };
19123
19124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 (arg1)->WakeUpIdle();
19129
19130 wxPyEndAllowThreads(__tstate);
19131 if (PyErr_Occurred()) SWIG_fail;
19132 }
19133 Py_INCREF(Py_None); resultobj = Py_None;
19134 return resultobj;
19135 fail:
19136 return NULL;
19137 }
19138
19139
19140 static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19141 PyObject *resultobj;
19142 wxPyApp *arg1 = (wxPyApp *) 0 ;
19143 int result;
19144 PyObject * obj0 = 0 ;
19145 char *kwnames[] = {
19146 (char *) "self", NULL
19147 };
19148
19149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19151 {
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 result = (int)(arg1)->MainLoop();
19154
19155 wxPyEndAllowThreads(__tstate);
19156 if (PyErr_Occurred()) SWIG_fail;
19157 }
19158 resultobj = SWIG_PyObj_FromInt((int)result);
19159 return resultobj;
19160 fail:
19161 return NULL;
19162 }
19163
19164
19165 static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19166 PyObject *resultobj;
19167 wxPyApp *arg1 = (wxPyApp *) 0 ;
19168 PyObject * obj0 = 0 ;
19169 char *kwnames[] = {
19170 (char *) "self", NULL
19171 };
19172
19173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 (arg1)->Exit();
19178
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 Py_INCREF(Py_None); resultobj = Py_None;
19183 return resultobj;
19184 fail:
19185 return NULL;
19186 }
19187
19188
19189 static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19190 PyObject *resultobj;
19191 wxPyApp *arg1 = (wxPyApp *) 0 ;
19192 PyObject * obj0 = 0 ;
19193 char *kwnames[] = {
19194 (char *) "self", NULL
19195 };
19196
19197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19199 {
19200 PyThreadState* __tstate = wxPyBeginAllowThreads();
19201 (arg1)->ExitMainLoop();
19202
19203 wxPyEndAllowThreads(__tstate);
19204 if (PyErr_Occurred()) SWIG_fail;
19205 }
19206 Py_INCREF(Py_None); resultobj = Py_None;
19207 return resultobj;
19208 fail:
19209 return NULL;
19210 }
19211
19212
19213 static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
19214 PyObject *resultobj;
19215 wxPyApp *arg1 = (wxPyApp *) 0 ;
19216 bool result;
19217 PyObject * obj0 = 0 ;
19218 char *kwnames[] = {
19219 (char *) "self", NULL
19220 };
19221
19222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
19223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19224 {
19225 PyThreadState* __tstate = wxPyBeginAllowThreads();
19226 result = (bool)(arg1)->Pending();
19227
19228 wxPyEndAllowThreads(__tstate);
19229 if (PyErr_Occurred()) SWIG_fail;
19230 }
19231 resultobj = SWIG_PyObj_FromBool((bool)result);
19232 return resultobj;
19233 fail:
19234 return NULL;
19235 }
19236
19237
19238 static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19239 PyObject *resultobj;
19240 wxPyApp *arg1 = (wxPyApp *) 0 ;
19241 bool result;
19242 PyObject * obj0 = 0 ;
19243 char *kwnames[] = {
19244 (char *) "self", NULL
19245 };
19246
19247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
19248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 result = (bool)(arg1)->Dispatch();
19252
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
19256 resultobj = SWIG_PyObj_FromBool((bool)result);
19257 return resultobj;
19258 fail:
19259 return NULL;
19260 }
19261
19262
19263 static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19264 PyObject *resultobj;
19265 wxPyApp *arg1 = (wxPyApp *) 0 ;
19266 bool result;
19267 PyObject * obj0 = 0 ;
19268 char *kwnames[] = {
19269 (char *) "self", NULL
19270 };
19271
19272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
19273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 result = (bool)(arg1)->ProcessIdle();
19277
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 resultobj = SWIG_PyObj_FromBool((bool)result);
19282 return resultobj;
19283 fail:
19284 return NULL;
19285 }
19286
19287
19288 static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj;
19290 wxPyApp *arg1 = (wxPyApp *) 0 ;
19291 wxWindow *arg2 = (wxWindow *) 0 ;
19292 wxIdleEvent *arg3 = 0 ;
19293 bool result;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 PyObject * obj2 = 0 ;
19297 char *kwnames[] = {
19298 (char *) "self",(char *) "win",(char *) "event", NULL
19299 };
19300
19301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
19302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19303 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19304 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19305 if (arg3 == NULL) {
19306 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19307 }
19308 {
19309 PyThreadState* __tstate = wxPyBeginAllowThreads();
19310 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
19311
19312 wxPyEndAllowThreads(__tstate);
19313 if (PyErr_Occurred()) SWIG_fail;
19314 }
19315 resultobj = SWIG_PyObj_FromBool((bool)result);
19316 return resultobj;
19317 fail:
19318 return NULL;
19319 }
19320
19321
19322 static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj;
19324 wxPyApp *arg1 = (wxPyApp *) 0 ;
19325 bool result;
19326 PyObject * obj0 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 result = (bool)((wxPyApp const *)arg1)->IsActive();
19336
19337 wxPyEndAllowThreads(__tstate);
19338 if (PyErr_Occurred()) SWIG_fail;
19339 }
19340 resultobj = SWIG_PyObj_FromBool((bool)result);
19341 return resultobj;
19342 fail:
19343 return NULL;
19344 }
19345
19346
19347 static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj;
19349 wxPyApp *arg1 = (wxPyApp *) 0 ;
19350 wxWindow *arg2 = (wxWindow *) 0 ;
19351 PyObject * obj0 = 0 ;
19352 PyObject * obj1 = 0 ;
19353 char *kwnames[] = {
19354 (char *) "self",(char *) "win", NULL
19355 };
19356
19357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
19358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19359 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 (arg1)->SetTopWindow(arg2);
19363
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 Py_INCREF(Py_None); resultobj = Py_None;
19368 return resultobj;
19369 fail:
19370 return NULL;
19371 }
19372
19373
19374 static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19375 PyObject *resultobj;
19376 wxPyApp *arg1 = (wxPyApp *) 0 ;
19377 wxWindow *result;
19378 PyObject * obj0 = 0 ;
19379 char *kwnames[] = {
19380 (char *) "self", NULL
19381 };
19382
19383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
19384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19385 {
19386 PyThreadState* __tstate = wxPyBeginAllowThreads();
19387 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
19388
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 {
19393 resultobj = wxPyMake_wxObject(result);
19394 }
19395 return resultobj;
19396 fail:
19397 return NULL;
19398 }
19399
19400
19401 static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
19402 PyObject *resultobj;
19403 wxPyApp *arg1 = (wxPyApp *) 0 ;
19404 bool arg2 ;
19405 PyObject * obj0 = 0 ;
19406 PyObject * obj1 = 0 ;
19407 char *kwnames[] = {
19408 (char *) "self",(char *) "flag", NULL
19409 };
19410
19411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
19412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19413 {
19414 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
19415 if (PyErr_Occurred()) SWIG_fail;
19416 }
19417 {
19418 PyThreadState* __tstate = wxPyBeginAllowThreads();
19419 (arg1)->SetExitOnFrameDelete(arg2);
19420
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 Py_INCREF(Py_None); resultobj = Py_None;
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj;
19433 wxPyApp *arg1 = (wxPyApp *) 0 ;
19434 bool result;
19435 PyObject * obj0 = 0 ;
19436 char *kwnames[] = {
19437 (char *) "self", NULL
19438 };
19439
19440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
19441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
19445
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 resultobj = SWIG_PyObj_FromBool((bool)result);
19450 return resultobj;
19451 fail:
19452 return NULL;
19453 }
19454
19455
19456 static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj;
19458 wxPyApp *arg1 = (wxPyApp *) 0 ;
19459 bool arg2 ;
19460 PyObject * obj0 = 0 ;
19461 PyObject * obj1 = 0 ;
19462 char *kwnames[] = {
19463 (char *) "self",(char *) "flag", NULL
19464 };
19465
19466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
19467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19468 {
19469 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 {
19473 PyThreadState* __tstate = wxPyBeginAllowThreads();
19474 (arg1)->SetUseBestVisual(arg2);
19475
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 Py_INCREF(Py_None); resultobj = Py_None;
19480 return resultobj;
19481 fail:
19482 return NULL;
19483 }
19484
19485
19486 static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
19487 PyObject *resultobj;
19488 wxPyApp *arg1 = (wxPyApp *) 0 ;
19489 bool result;
19490 PyObject * obj0 = 0 ;
19491 char *kwnames[] = {
19492 (char *) "self", NULL
19493 };
19494
19495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
19496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19497 {
19498 PyThreadState* __tstate = wxPyBeginAllowThreads();
19499 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
19500
19501 wxPyEndAllowThreads(__tstate);
19502 if (PyErr_Occurred()) SWIG_fail;
19503 }
19504 resultobj = SWIG_PyObj_FromBool((bool)result);
19505 return resultobj;
19506 fail:
19507 return NULL;
19508 }
19509
19510
19511 static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj;
19513 wxPyApp *arg1 = (wxPyApp *) 0 ;
19514 int arg2 ;
19515 PyObject * obj0 = 0 ;
19516 PyObject * obj1 = 0 ;
19517 char *kwnames[] = {
19518 (char *) "self",(char *) "mode", NULL
19519 };
19520
19521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
19522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19523 {
19524 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 {
19528 PyThreadState* __tstate = wxPyBeginAllowThreads();
19529 (arg1)->SetPrintMode(arg2);
19530
19531 wxPyEndAllowThreads(__tstate);
19532 if (PyErr_Occurred()) SWIG_fail;
19533 }
19534 Py_INCREF(Py_None); resultobj = Py_None;
19535 return resultobj;
19536 fail:
19537 return NULL;
19538 }
19539
19540
19541 static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj;
19543 wxPyApp *arg1 = (wxPyApp *) 0 ;
19544 int result;
19545 PyObject * obj0 = 0 ;
19546 char *kwnames[] = {
19547 (char *) "self", NULL
19548 };
19549
19550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
19551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19552 {
19553 PyThreadState* __tstate = wxPyBeginAllowThreads();
19554 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
19555
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 resultobj = SWIG_PyObj_FromInt((int)result);
19560 return resultobj;
19561 fail:
19562 return NULL;
19563 }
19564
19565
19566 static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19567 PyObject *resultobj;
19568 wxPyApp *arg1 = (wxPyApp *) 0 ;
19569 int arg2 ;
19570 PyObject * obj0 = 0 ;
19571 PyObject * obj1 = 0 ;
19572 char *kwnames[] = {
19573 (char *) "self",(char *) "mode", NULL
19574 };
19575
19576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
19577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19578 {
19579 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 (arg1)->SetAssertMode(arg2);
19585
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 Py_INCREF(Py_None); resultobj = Py_None;
19590 return resultobj;
19591 fail:
19592 return NULL;
19593 }
19594
19595
19596 static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj;
19598 wxPyApp *arg1 = (wxPyApp *) 0 ;
19599 int result;
19600 PyObject * obj0 = 0 ;
19601 char *kwnames[] = {
19602 (char *) "self", NULL
19603 };
19604
19605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
19606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19607 {
19608 PyThreadState* __tstate = wxPyBeginAllowThreads();
19609 result = (int)(arg1)->GetAssertMode();
19610
19611 wxPyEndAllowThreads(__tstate);
19612 if (PyErr_Occurred()) SWIG_fail;
19613 }
19614 resultobj = SWIG_PyObj_FromInt((int)result);
19615 return resultobj;
19616 fail:
19617 return NULL;
19618 }
19619
19620
19621 static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
19622 PyObject *resultobj;
19623 bool result;
19624 char *kwnames[] = {
19625 NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
19632
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 resultobj = SWIG_PyObj_FromBool((bool)result);
19637 return resultobj;
19638 fail:
19639 return NULL;
19640 }
19641
19642
19643 static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19644 PyObject *resultobj;
19645 long result;
19646 char *kwnames[] = {
19647 NULL
19648 };
19649
19650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
19651 {
19652 PyThreadState* __tstate = wxPyBeginAllowThreads();
19653 result = (long)wxPyApp::GetMacAboutMenuItemId();
19654
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 resultobj = SWIG_PyObj_FromLong((long)result);
19659 return resultobj;
19660 fail:
19661 return NULL;
19662 }
19663
19664
19665 static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj;
19667 long result;
19668 char *kwnames[] = {
19669 NULL
19670 };
19671
19672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
19673 {
19674 PyThreadState* __tstate = wxPyBeginAllowThreads();
19675 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
19676
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 resultobj = SWIG_PyObj_FromLong((long)result);
19681 return resultobj;
19682 fail:
19683 return NULL;
19684 }
19685
19686
19687 static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj;
19689 long result;
19690 char *kwnames[] = {
19691 NULL
19692 };
19693
19694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
19695 {
19696 PyThreadState* __tstate = wxPyBeginAllowThreads();
19697 result = (long)wxPyApp::GetMacExitMenuItemId();
19698
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
19702 resultobj = SWIG_PyObj_FromLong((long)result);
19703 return resultobj;
19704 fail:
19705 return NULL;
19706 }
19707
19708
19709 static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj;
19711 wxString result;
19712 char *kwnames[] = {
19713 NULL
19714 };
19715
19716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = wxPyApp::GetMacHelpMenuTitleName();
19720
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 {
19725 #if wxUSE_UNICODE
19726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19727 #else
19728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19729 #endif
19730 }
19731 return resultobj;
19732 fail:
19733 return NULL;
19734 }
19735
19736
19737 static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj;
19739 bool arg1 ;
19740 PyObject * obj0 = 0 ;
19741 char *kwnames[] = {
19742 (char *) "val", NULL
19743 };
19744
19745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
19746 {
19747 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
19748 if (PyErr_Occurred()) SWIG_fail;
19749 }
19750 {
19751 PyThreadState* __tstate = wxPyBeginAllowThreads();
19752 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
19753
19754 wxPyEndAllowThreads(__tstate);
19755 if (PyErr_Occurred()) SWIG_fail;
19756 }
19757 Py_INCREF(Py_None); resultobj = Py_None;
19758 return resultobj;
19759 fail:
19760 return NULL;
19761 }
19762
19763
19764 static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19765 PyObject *resultobj;
19766 long arg1 ;
19767 PyObject * obj0 = 0 ;
19768 char *kwnames[] = {
19769 (char *) "val", NULL
19770 };
19771
19772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
19773 {
19774 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19775 if (PyErr_Occurred()) SWIG_fail;
19776 }
19777 {
19778 PyThreadState* __tstate = wxPyBeginAllowThreads();
19779 wxPyApp::SetMacAboutMenuItemId(arg1);
19780
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 Py_INCREF(Py_None); resultobj = Py_None;
19785 return resultobj;
19786 fail:
19787 return NULL;
19788 }
19789
19790
19791 static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19792 PyObject *resultobj;
19793 long arg1 ;
19794 PyObject * obj0 = 0 ;
19795 char *kwnames[] = {
19796 (char *) "val", NULL
19797 };
19798
19799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
19800 {
19801 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 wxPyApp::SetMacPreferencesMenuItemId(arg1);
19807
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 Py_INCREF(Py_None); resultobj = Py_None;
19812 return resultobj;
19813 fail:
19814 return NULL;
19815 }
19816
19817
19818 static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19819 PyObject *resultobj;
19820 long arg1 ;
19821 PyObject * obj0 = 0 ;
19822 char *kwnames[] = {
19823 (char *) "val", NULL
19824 };
19825
19826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
19827 {
19828 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19829 if (PyErr_Occurred()) SWIG_fail;
19830 }
19831 {
19832 PyThreadState* __tstate = wxPyBeginAllowThreads();
19833 wxPyApp::SetMacExitMenuItemId(arg1);
19834
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 Py_INCREF(Py_None); resultobj = Py_None;
19839 return resultobj;
19840 fail:
19841 return NULL;
19842 }
19843
19844
19845 static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
19846 PyObject *resultobj;
19847 wxString *arg1 = 0 ;
19848 bool temp1 = False ;
19849 PyObject * obj0 = 0 ;
19850 char *kwnames[] = {
19851 (char *) "val", NULL
19852 };
19853
19854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
19855 {
19856 arg1 = wxString_in_helper(obj0);
19857 if (arg1 == NULL) SWIG_fail;
19858 temp1 = True;
19859 }
19860 {
19861 PyThreadState* __tstate = wxPyBeginAllowThreads();
19862 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
19863
19864 wxPyEndAllowThreads(__tstate);
19865 if (PyErr_Occurred()) SWIG_fail;
19866 }
19867 Py_INCREF(Py_None); resultobj = Py_None;
19868 {
19869 if (temp1)
19870 delete arg1;
19871 }
19872 return resultobj;
19873 fail:
19874 {
19875 if (temp1)
19876 delete arg1;
19877 }
19878 return NULL;
19879 }
19880
19881
19882 static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19883 PyObject *resultobj;
19884 wxPyApp *arg1 = (wxPyApp *) 0 ;
19885 PyObject * obj0 = 0 ;
19886 char *kwnames[] = {
19887 (char *) "self", NULL
19888 };
19889
19890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
19891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19892 {
19893 PyThreadState* __tstate = wxPyBeginAllowThreads();
19894 (arg1)->_BootstrapApp();
19895
19896 wxPyEndAllowThreads(__tstate);
19897 if (PyErr_Occurred()) SWIG_fail;
19898 }
19899 Py_INCREF(Py_None); resultobj = Py_None;
19900 return resultobj;
19901 fail:
19902 return NULL;
19903 }
19904
19905
19906 static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
19907 PyObject *resultobj;
19908 int result;
19909 char *kwnames[] = {
19910 NULL
19911 };
19912
19913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 result = (int)PyApp_GetComCtl32Version();
19917
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 resultobj = SWIG_PyObj_FromInt((int)result);
19922 return resultobj;
19923 fail:
19924 return NULL;
19925 }
19926
19927
19928 static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
19929 PyObject *obj;
19930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19931 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
19932 Py_INCREF(obj);
19933 return Py_BuildValue((char *)"");
19934 }
19935 static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19936 PyObject *resultobj;
19937 char *kwnames[] = {
19938 NULL
19939 };
19940
19941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 wxExit();
19945
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 Py_INCREF(Py_None); resultobj = Py_None;
19950 return resultobj;
19951 fail:
19952 return NULL;
19953 }
19954
19955
19956 static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19957 PyObject *resultobj;
19958 bool result;
19959 char *kwnames[] = {
19960 NULL
19961 };
19962
19963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 result = (bool)wxYield();
19967
19968 wxPyEndAllowThreads(__tstate);
19969 if (PyErr_Occurred()) SWIG_fail;
19970 }
19971 resultobj = SWIG_PyObj_FromBool((bool)result);
19972 return resultobj;
19973 fail:
19974 return NULL;
19975 }
19976
19977
19978 static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj;
19980 bool result;
19981 char *kwnames[] = {
19982 NULL
19983 };
19984
19985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
19986 {
19987 PyThreadState* __tstate = wxPyBeginAllowThreads();
19988 result = (bool)wxYieldIfNeeded();
19989
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_PyObj_FromBool((bool)result);
19994 return resultobj;
19995 fail:
19996 return NULL;
19997 }
19998
19999
20000 static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20001 PyObject *resultobj;
20002 wxWindow *arg1 = (wxWindow *) NULL ;
20003 bool arg2 = (bool) False ;
20004 bool result;
20005 PyObject * obj0 = 0 ;
20006 PyObject * obj1 = 0 ;
20007 char *kwnames[] = {
20008 (char *) "win",(char *) "onlyIfNeeded", NULL
20009 };
20010
20011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20012 if (obj0) {
20013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20014 }
20015 if (obj1) {
20016 {
20017 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 }
20021 {
20022 PyThreadState* __tstate = wxPyBeginAllowThreads();
20023 result = (bool)wxSafeYield(arg1,arg2);
20024
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 resultobj = SWIG_PyObj_FromBool((bool)result);
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj;
20037 char *kwnames[] = {
20038 NULL
20039 };
20040
20041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20042 {
20043 PyThreadState* __tstate = wxPyBeginAllowThreads();
20044 wxWakeUpIdle();
20045
20046 wxPyEndAllowThreads(__tstate);
20047 if (PyErr_Occurred()) SWIG_fail;
20048 }
20049 Py_INCREF(Py_None); resultobj = Py_None;
20050 return resultobj;
20051 fail:
20052 return NULL;
20053 }
20054
20055
20056 static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20057 PyObject *resultobj;
20058 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20059 wxEvent *arg2 = 0 ;
20060 PyObject * obj0 = 0 ;
20061 PyObject * obj1 = 0 ;
20062 char *kwnames[] = {
20063 (char *) "dest",(char *) "event", NULL
20064 };
20065
20066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20069 if (arg2 == NULL) {
20070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20071 }
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 wxPostEvent(arg1,*arg2);
20075
20076 wxPyEndAllowThreads(__tstate);
20077 if (PyErr_Occurred()) SWIG_fail;
20078 }
20079 Py_INCREF(Py_None); resultobj = Py_None;
20080 return resultobj;
20081 fail:
20082 return NULL;
20083 }
20084
20085
20086 static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20087 PyObject *resultobj;
20088 char *kwnames[] = {
20089 NULL
20090 };
20091
20092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20093 {
20094 PyThreadState* __tstate = wxPyBeginAllowThreads();
20095 wxApp_CleanUp();
20096
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 Py_INCREF(Py_None); resultobj = Py_None;
20101 return resultobj;
20102 fail:
20103 return NULL;
20104 }
20105
20106
20107 static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20108 PyObject *resultobj;
20109 wxPyApp *result;
20110 char *kwnames[] = {
20111 NULL
20112 };
20113
20114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 result = (wxPyApp *)wxGetApp();
20118
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 {
20123 resultobj = wxPyMake_wxObject(result);
20124 }
20125 return resultobj;
20126 fail:
20127 return NULL;
20128 }
20129
20130
20131 static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20132 PyObject *resultobj;
20133 int arg1 = (int) 0 ;
20134 int arg2 = (int) 0 ;
20135 int arg3 = (int) 0 ;
20136 wxMenuItem *arg4 = (wxMenuItem *) NULL ;
20137 wxAcceleratorEntry *result;
20138 PyObject * obj0 = 0 ;
20139 PyObject * obj1 = 0 ;
20140 PyObject * obj2 = 0 ;
20141 PyObject * obj3 = 0 ;
20142 char *kwnames[] = {
20143 (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL
20144 };
20145
20146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20147 if (obj0) {
20148 {
20149 arg1 = (int) SWIG_PyObj_AsInt(obj0);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 }
20153 if (obj1) {
20154 {
20155 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20156 if (PyErr_Occurred()) SWIG_fail;
20157 }
20158 }
20159 if (obj2) {
20160 {
20161 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 }
20165 if (obj3) {
20166 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20167 }
20168 {
20169 PyThreadState* __tstate = wxPyBeginAllowThreads();
20170 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4);
20171
20172 wxPyEndAllowThreads(__tstate);
20173 if (PyErr_Occurred()) SWIG_fail;
20174 }
20175 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1);
20176 return resultobj;
20177 fail:
20178 return NULL;
20179 }
20180
20181
20182 static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20183 PyObject *resultobj;
20184 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20185 PyObject * obj0 = 0 ;
20186 char *kwnames[] = {
20187 (char *) "self", NULL
20188 };
20189
20190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20192 {
20193 PyThreadState* __tstate = wxPyBeginAllowThreads();
20194 delete arg1;
20195
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 Py_INCREF(Py_None); resultobj = Py_None;
20200 return resultobj;
20201 fail:
20202 return NULL;
20203 }
20204
20205
20206 static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj;
20208 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20209 int arg2 ;
20210 int arg3 ;
20211 int arg4 ;
20212 wxMenuItem *arg5 = (wxMenuItem *) NULL ;
20213 PyObject * obj0 = 0 ;
20214 PyObject * obj1 = 0 ;
20215 PyObject * obj2 = 0 ;
20216 PyObject * obj3 = 0 ;
20217 PyObject * obj4 = 0 ;
20218 char *kwnames[] = {
20219 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL
20220 };
20221
20222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20224 {
20225 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20226 if (PyErr_Occurred()) SWIG_fail;
20227 }
20228 {
20229 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20230 if (PyErr_Occurred()) SWIG_fail;
20231 }
20232 {
20233 arg4 = (int) SWIG_PyObj_AsInt(obj3);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 }
20236 if (obj4) {
20237 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20238 }
20239 {
20240 PyThreadState* __tstate = wxPyBeginAllowThreads();
20241 (arg1)->Set(arg2,arg3,arg4,arg5);
20242
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 Py_INCREF(Py_None); resultobj = Py_None;
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj;
20255 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20256 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
20257 PyObject * obj0 = 0 ;
20258 PyObject * obj1 = 0 ;
20259 char *kwnames[] = {
20260 (char *) "self",(char *) "item", NULL
20261 };
20262
20263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail;
20264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20265 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 (arg1)->SetMenuItem(arg2);
20269
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 Py_INCREF(Py_None); resultobj = Py_None;
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj;
20282 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20283 wxMenuItem *result;
20284 PyObject * obj0 = 0 ;
20285 char *kwnames[] = {
20286 (char *) "self", NULL
20287 };
20288
20289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail;
20290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20291 {
20292 PyThreadState* __tstate = wxPyBeginAllowThreads();
20293 result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem();
20294
20295 wxPyEndAllowThreads(__tstate);
20296 if (PyErr_Occurred()) SWIG_fail;
20297 }
20298 {
20299 resultobj = wxPyMake_wxObject(result);
20300 }
20301 return resultobj;
20302 fail:
20303 return NULL;
20304 }
20305
20306
20307 static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
20308 PyObject *resultobj;
20309 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20310 int result;
20311 PyObject * obj0 = 0 ;
20312 char *kwnames[] = {
20313 (char *) "self", NULL
20314 };
20315
20316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
20317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20318 {
20319 PyThreadState* __tstate = wxPyBeginAllowThreads();
20320 result = (int)(arg1)->GetFlags();
20321
20322 wxPyEndAllowThreads(__tstate);
20323 if (PyErr_Occurred()) SWIG_fail;
20324 }
20325 resultobj = SWIG_PyObj_FromInt((int)result);
20326 return resultobj;
20327 fail:
20328 return NULL;
20329 }
20330
20331
20332 static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj;
20334 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20335 int result;
20336 PyObject * obj0 = 0 ;
20337 char *kwnames[] = {
20338 (char *) "self", NULL
20339 };
20340
20341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
20342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20343 {
20344 PyThreadState* __tstate = wxPyBeginAllowThreads();
20345 result = (int)(arg1)->GetKeyCode();
20346
20347 wxPyEndAllowThreads(__tstate);
20348 if (PyErr_Occurred()) SWIG_fail;
20349 }
20350 resultobj = SWIG_PyObj_FromInt((int)result);
20351 return resultobj;
20352 fail:
20353 return NULL;
20354 }
20355
20356
20357 static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
20358 PyObject *resultobj;
20359 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20360 int result;
20361 PyObject * obj0 = 0 ;
20362 char *kwnames[] = {
20363 (char *) "self", NULL
20364 };
20365
20366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
20367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 result = (int)(arg1)->GetCommand();
20371
20372 wxPyEndAllowThreads(__tstate);
20373 if (PyErr_Occurred()) SWIG_fail;
20374 }
20375 resultobj = SWIG_PyObj_FromInt((int)result);
20376 return resultobj;
20377 fail:
20378 return NULL;
20379 }
20380
20381
20382 static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
20383 PyObject *obj;
20384 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20385 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
20386 Py_INCREF(obj);
20387 return Py_BuildValue((char *)"");
20388 }
20389 static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
20390 PyObject *resultobj;
20391 int arg1 ;
20392 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
20393 wxAcceleratorTable *result;
20394 PyObject * obj0 = 0 ;
20395 char *kwnames[] = {
20396 (char *) "n", NULL
20397 };
20398
20399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
20400 {
20401 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
20402 if (arg2) arg1 = PyList_Size(obj0);
20403 else arg1 = 0;
20404 }
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1);
20413 {
20414 delete [] arg2;
20415 }
20416 return resultobj;
20417 fail:
20418 {
20419 delete [] arg2;
20420 }
20421 return NULL;
20422 }
20423
20424
20425 static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj;
20427 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
20428 PyObject * obj0 = 0 ;
20429 char *kwnames[] = {
20430 (char *) "self", NULL
20431 };
20432
20433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
20434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20435 {
20436 PyThreadState* __tstate = wxPyBeginAllowThreads();
20437 delete arg1;
20438
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 Py_INCREF(Py_None); resultobj = Py_None;
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
20450 PyObject *resultobj;
20451 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
20452 bool result;
20453 PyObject * obj0 = 0 ;
20454 char *kwnames[] = {
20455 (char *) "self", NULL
20456 };
20457
20458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
20459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
20463
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = SWIG_PyObj_FromBool((bool)result);
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
20475 PyObject *obj;
20476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20477 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
20478 Py_INCREF(obj);
20479 return Py_BuildValue((char *)"");
20480 }
20481 static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
20482 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
20483 return 1;
20484 }
20485
20486
20487 static PyObject *_wrap_NullAcceleratorTable_get() {
20488 PyObject *pyobj;
20489
20490 pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0);
20491 return pyobj;
20492 }
20493
20494
20495 static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
20496 PyObject *resultobj;
20497 wxString *arg1 = 0 ;
20498 wxAcceleratorEntry *result;
20499 bool temp1 = False ;
20500 PyObject * obj0 = 0 ;
20501 char *kwnames[] = {
20502 (char *) "label", NULL
20503 };
20504
20505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
20506 {
20507 arg1 = wxString_in_helper(obj0);
20508 if (arg1 == NULL) SWIG_fail;
20509 temp1 = True;
20510 }
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
20514
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0);
20519 {
20520 if (temp1)
20521 delete arg1;
20522 }
20523 return resultobj;
20524 fail:
20525 {
20526 if (temp1)
20527 delete arg1;
20528 }
20529 return NULL;
20530 }
20531
20532
20533 static int _wrap_PanelNameStr_set(PyObject *_val) {
20534 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
20535 return 1;
20536 }
20537
20538
20539 static PyObject *_wrap_PanelNameStr_get() {
20540 PyObject *pyobj;
20541
20542 {
20543 #if wxUSE_UNICODE
20544 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
20545 #else
20546 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
20547 #endif
20548 }
20549 return pyobj;
20550 }
20551
20552
20553 static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
20554 PyObject *resultobj;
20555 wxWindow *arg1 = (wxWindow *) 0 ;
20556 int arg2 ;
20557 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20558 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20559 wxSize const &arg4_defvalue = wxDefaultSize ;
20560 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20561 long arg5 = (long) 0 ;
20562 wxString const &arg6_defvalue = wxPyPanelNameStr ;
20563 wxString *arg6 = (wxString *) &arg6_defvalue ;
20564 wxWindow *result;
20565 wxPoint temp3 ;
20566 wxSize temp4 ;
20567 bool temp6 = False ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 PyObject * obj2 = 0 ;
20571 PyObject * obj3 = 0 ;
20572 PyObject * obj4 = 0 ;
20573 PyObject * obj5 = 0 ;
20574 char *kwnames[] = {
20575 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20576 };
20577
20578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
20579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20580 {
20581 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 if (obj2) {
20585 {
20586 arg3 = &temp3;
20587 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20588 }
20589 }
20590 if (obj3) {
20591 {
20592 arg4 = &temp4;
20593 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20594 }
20595 }
20596 if (obj4) {
20597 {
20598 arg5 = (long) SWIG_PyObj_AsLong(obj4);
20599 if (PyErr_Occurred()) SWIG_fail;
20600 }
20601 }
20602 if (obj5) {
20603 {
20604 arg6 = wxString_in_helper(obj5);
20605 if (arg6 == NULL) SWIG_fail;
20606 temp6 = True;
20607 }
20608 }
20609 {
20610 PyThreadState* __tstate = wxPyBeginAllowThreads();
20611 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20612
20613 wxPyEndAllowThreads(__tstate);
20614 if (PyErr_Occurred()) SWIG_fail;
20615 }
20616 {
20617 resultobj = wxPyMake_wxObject(result);
20618 }
20619 {
20620 if (temp6)
20621 delete arg6;
20622 }
20623 return resultobj;
20624 fail:
20625 {
20626 if (temp6)
20627 delete arg6;
20628 }
20629 return NULL;
20630 }
20631
20632
20633 static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj;
20635 wxWindow *result;
20636 char *kwnames[] = {
20637 NULL
20638 };
20639
20640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
20641 {
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 result = (wxWindow *)new wxWindow();
20644
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 {
20649 resultobj = wxPyMake_wxObject(result);
20650 }
20651 return resultobj;
20652 fail:
20653 return NULL;
20654 }
20655
20656
20657 static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj;
20659 wxWindow *arg1 = (wxWindow *) 0 ;
20660 wxWindow *arg2 = (wxWindow *) 0 ;
20661 int arg3 ;
20662 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20663 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20664 wxSize const &arg5_defvalue = wxDefaultSize ;
20665 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20666 long arg6 = (long) 0 ;
20667 wxString const &arg7_defvalue = wxPyPanelNameStr ;
20668 wxString *arg7 = (wxString *) &arg7_defvalue ;
20669 bool result;
20670 wxPoint temp4 ;
20671 wxSize temp5 ;
20672 bool temp7 = False ;
20673 PyObject * obj0 = 0 ;
20674 PyObject * obj1 = 0 ;
20675 PyObject * obj2 = 0 ;
20676 PyObject * obj3 = 0 ;
20677 PyObject * obj4 = 0 ;
20678 PyObject * obj5 = 0 ;
20679 PyObject * obj6 = 0 ;
20680 char *kwnames[] = {
20681 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20682 };
20683
20684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
20685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20687 {
20688 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
20689 if (PyErr_Occurred()) SWIG_fail;
20690 }
20691 if (obj3) {
20692 {
20693 arg4 = &temp4;
20694 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20695 }
20696 }
20697 if (obj4) {
20698 {
20699 arg5 = &temp5;
20700 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20701 }
20702 }
20703 if (obj5) {
20704 {
20705 arg6 = (long) SWIG_PyObj_AsLong(obj5);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 }
20709 if (obj6) {
20710 {
20711 arg7 = wxString_in_helper(obj6);
20712 if (arg7 == NULL) SWIG_fail;
20713 temp7 = True;
20714 }
20715 }
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20719
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_PyObj_FromBool((bool)result);
20724 {
20725 if (temp7)
20726 delete arg7;
20727 }
20728 return resultobj;
20729 fail:
20730 {
20731 if (temp7)
20732 delete arg7;
20733 }
20734 return NULL;
20735 }
20736
20737
20738 static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
20739 PyObject *resultobj;
20740 wxWindow *arg1 = (wxWindow *) 0 ;
20741 bool arg2 = (bool) False ;
20742 bool result;
20743 PyObject * obj0 = 0 ;
20744 PyObject * obj1 = 0 ;
20745 char *kwnames[] = {
20746 (char *) "self",(char *) "force", NULL
20747 };
20748
20749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
20750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20751 if (obj1) {
20752 {
20753 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
20754 if (PyErr_Occurred()) SWIG_fail;
20755 }
20756 }
20757 {
20758 PyThreadState* __tstate = wxPyBeginAllowThreads();
20759 result = (bool)(arg1)->Close(arg2);
20760
20761 wxPyEndAllowThreads(__tstate);
20762 if (PyErr_Occurred()) SWIG_fail;
20763 }
20764 resultobj = SWIG_PyObj_FromBool((bool)result);
20765 return resultobj;
20766 fail:
20767 return NULL;
20768 }
20769
20770
20771 static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
20772 PyObject *resultobj;
20773 wxWindow *arg1 = (wxWindow *) 0 ;
20774 bool result;
20775 PyObject * obj0 = 0 ;
20776 char *kwnames[] = {
20777 (char *) "self", NULL
20778 };
20779
20780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
20781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = (bool)(arg1)->Destroy();
20785
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 resultobj = SWIG_PyObj_FromBool((bool)result);
20790 return resultobj;
20791 fail:
20792 return NULL;
20793 }
20794
20795
20796 static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
20797 PyObject *resultobj;
20798 wxWindow *arg1 = (wxWindow *) 0 ;
20799 bool result;
20800 PyObject * obj0 = 0 ;
20801 char *kwnames[] = {
20802 (char *) "self", NULL
20803 };
20804
20805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
20806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20807 {
20808 PyThreadState* __tstate = wxPyBeginAllowThreads();
20809 result = (bool)(arg1)->DestroyChildren();
20810
20811 wxPyEndAllowThreads(__tstate);
20812 if (PyErr_Occurred()) SWIG_fail;
20813 }
20814 resultobj = SWIG_PyObj_FromBool((bool)result);
20815 return resultobj;
20816 fail:
20817 return NULL;
20818 }
20819
20820
20821 static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
20822 PyObject *resultobj;
20823 wxWindow *arg1 = (wxWindow *) 0 ;
20824 bool result;
20825 PyObject * obj0 = 0 ;
20826 char *kwnames[] = {
20827 (char *) "self", NULL
20828 };
20829
20830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
20831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20832 {
20833 PyThreadState* __tstate = wxPyBeginAllowThreads();
20834 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
20835
20836 wxPyEndAllowThreads(__tstate);
20837 if (PyErr_Occurred()) SWIG_fail;
20838 }
20839 resultobj = SWIG_PyObj_FromBool((bool)result);
20840 return resultobj;
20841 fail:
20842 return NULL;
20843 }
20844
20845
20846 static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
20847 PyObject *resultobj;
20848 wxWindow *arg1 = (wxWindow *) 0 ;
20849 wxString *arg2 = 0 ;
20850 bool temp2 = False ;
20851 PyObject * obj0 = 0 ;
20852 PyObject * obj1 = 0 ;
20853 char *kwnames[] = {
20854 (char *) "self",(char *) "title", NULL
20855 };
20856
20857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
20858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20859 {
20860 arg2 = wxString_in_helper(obj1);
20861 if (arg2 == NULL) SWIG_fail;
20862 temp2 = True;
20863 }
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 (arg1)->SetTitle((wxString const &)*arg2);
20867
20868 wxPyEndAllowThreads(__tstate);
20869 if (PyErr_Occurred()) SWIG_fail;
20870 }
20871 Py_INCREF(Py_None); resultobj = Py_None;
20872 {
20873 if (temp2)
20874 delete arg2;
20875 }
20876 return resultobj;
20877 fail:
20878 {
20879 if (temp2)
20880 delete arg2;
20881 }
20882 return NULL;
20883 }
20884
20885
20886 static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj;
20888 wxWindow *arg1 = (wxWindow *) 0 ;
20889 wxString result;
20890 PyObject * obj0 = 0 ;
20891 char *kwnames[] = {
20892 (char *) "self", NULL
20893 };
20894
20895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
20896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = ((wxWindow const *)arg1)->GetTitle();
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 {
20905 #if wxUSE_UNICODE
20906 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20907 #else
20908 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20909 #endif
20910 }
20911 return resultobj;
20912 fail:
20913 return NULL;
20914 }
20915
20916
20917 static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20918 PyObject *resultobj;
20919 wxWindow *arg1 = (wxWindow *) 0 ;
20920 wxString *arg2 = 0 ;
20921 bool temp2 = False ;
20922 PyObject * obj0 = 0 ;
20923 PyObject * obj1 = 0 ;
20924 char *kwnames[] = {
20925 (char *) "self",(char *) "label", NULL
20926 };
20927
20928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
20929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20930 {
20931 arg2 = wxString_in_helper(obj1);
20932 if (arg2 == NULL) SWIG_fail;
20933 temp2 = True;
20934 }
20935 {
20936 PyThreadState* __tstate = wxPyBeginAllowThreads();
20937 (arg1)->SetLabel((wxString const &)*arg2);
20938
20939 wxPyEndAllowThreads(__tstate);
20940 if (PyErr_Occurred()) SWIG_fail;
20941 }
20942 Py_INCREF(Py_None); resultobj = Py_None;
20943 {
20944 if (temp2)
20945 delete arg2;
20946 }
20947 return resultobj;
20948 fail:
20949 {
20950 if (temp2)
20951 delete arg2;
20952 }
20953 return NULL;
20954 }
20955
20956
20957 static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20958 PyObject *resultobj;
20959 wxWindow *arg1 = (wxWindow *) 0 ;
20960 wxString result;
20961 PyObject * obj0 = 0 ;
20962 char *kwnames[] = {
20963 (char *) "self", NULL
20964 };
20965
20966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
20967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20968 {
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 result = ((wxWindow const *)arg1)->GetLabel();
20971
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 {
20976 #if wxUSE_UNICODE
20977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20978 #else
20979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20980 #endif
20981 }
20982 return resultobj;
20983 fail:
20984 return NULL;
20985 }
20986
20987
20988 static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
20989 PyObject *resultobj;
20990 wxWindow *arg1 = (wxWindow *) 0 ;
20991 wxString *arg2 = 0 ;
20992 bool temp2 = False ;
20993 PyObject * obj0 = 0 ;
20994 PyObject * obj1 = 0 ;
20995 char *kwnames[] = {
20996 (char *) "self",(char *) "name", NULL
20997 };
20998
20999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
21000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21001 {
21002 arg2 = wxString_in_helper(obj1);
21003 if (arg2 == NULL) SWIG_fail;
21004 temp2 = True;
21005 }
21006 {
21007 PyThreadState* __tstate = wxPyBeginAllowThreads();
21008 (arg1)->SetName((wxString const &)*arg2);
21009
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 Py_INCREF(Py_None); resultobj = Py_None;
21014 {
21015 if (temp2)
21016 delete arg2;
21017 }
21018 return resultobj;
21019 fail:
21020 {
21021 if (temp2)
21022 delete arg2;
21023 }
21024 return NULL;
21025 }
21026
21027
21028 static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj;
21030 wxWindow *arg1 = (wxWindow *) 0 ;
21031 wxString result;
21032 PyObject * obj0 = 0 ;
21033 char *kwnames[] = {
21034 (char *) "self", NULL
21035 };
21036
21037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21039 {
21040 PyThreadState* __tstate = wxPyBeginAllowThreads();
21041 result = ((wxWindow const *)arg1)->GetName();
21042
21043 wxPyEndAllowThreads(__tstate);
21044 if (PyErr_Occurred()) SWIG_fail;
21045 }
21046 {
21047 #if wxUSE_UNICODE
21048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21049 #else
21050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21051 #endif
21052 }
21053 return resultobj;
21054 fail:
21055 return NULL;
21056 }
21057
21058
21059 static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj;
21061 wxWindow *arg1 = (wxWindow *) 0 ;
21062 int arg2 ;
21063 PyObject * obj0 = 0 ;
21064 PyObject * obj1 = 0 ;
21065 char *kwnames[] = {
21066 (char *) "self",(char *) "winid", NULL
21067 };
21068
21069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
21070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21071 {
21072 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 {
21076 PyThreadState* __tstate = wxPyBeginAllowThreads();
21077 (arg1)->SetId(arg2);
21078
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 Py_INCREF(Py_None); resultobj = Py_None;
21083 return resultobj;
21084 fail:
21085 return NULL;
21086 }
21087
21088
21089 static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21090 PyObject *resultobj;
21091 wxWindow *arg1 = (wxWindow *) 0 ;
21092 int result;
21093 PyObject * obj0 = 0 ;
21094 char *kwnames[] = {
21095 (char *) "self", NULL
21096 };
21097
21098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
21099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21100 {
21101 PyThreadState* __tstate = wxPyBeginAllowThreads();
21102 result = (int)((wxWindow const *)arg1)->GetId();
21103
21104 wxPyEndAllowThreads(__tstate);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 resultobj = SWIG_PyObj_FromInt((int)result);
21108 return resultobj;
21109 fail:
21110 return NULL;
21111 }
21112
21113
21114 static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21115 PyObject *resultobj;
21116 int result;
21117 char *kwnames[] = {
21118 NULL
21119 };
21120
21121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
21122 {
21123 PyThreadState* __tstate = wxPyBeginAllowThreads();
21124 result = (int)wxWindow::NewControlId();
21125
21126 wxPyEndAllowThreads(__tstate);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 }
21129 resultobj = SWIG_PyObj_FromInt((int)result);
21130 return resultobj;
21131 fail:
21132 return NULL;
21133 }
21134
21135
21136 static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj;
21138 int arg1 ;
21139 int result;
21140 PyObject * obj0 = 0 ;
21141 char *kwnames[] = {
21142 (char *) "winid", NULL
21143 };
21144
21145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
21146 {
21147 arg1 = (int) SWIG_PyObj_AsInt(obj0);
21148 if (PyErr_Occurred()) SWIG_fail;
21149 }
21150 {
21151 PyThreadState* __tstate = wxPyBeginAllowThreads();
21152 result = (int)wxWindow::NextControlId(arg1);
21153
21154 wxPyEndAllowThreads(__tstate);
21155 if (PyErr_Occurred()) SWIG_fail;
21156 }
21157 resultobj = SWIG_PyObj_FromInt((int)result);
21158 return resultobj;
21159 fail:
21160 return NULL;
21161 }
21162
21163
21164 static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21165 PyObject *resultobj;
21166 int arg1 ;
21167 int result;
21168 PyObject * obj0 = 0 ;
21169 char *kwnames[] = {
21170 (char *) "winid", NULL
21171 };
21172
21173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
21174 {
21175 arg1 = (int) SWIG_PyObj_AsInt(obj0);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = (int)wxWindow::PrevControlId(arg1);
21181
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 resultobj = SWIG_PyObj_FromInt((int)result);
21186 return resultobj;
21187 fail:
21188 return NULL;
21189 }
21190
21191
21192 static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21193 PyObject *resultobj;
21194 wxWindow *arg1 = (wxWindow *) 0 ;
21195 wxSize *arg2 = 0 ;
21196 wxSize temp2 ;
21197 PyObject * obj0 = 0 ;
21198 PyObject * obj1 = 0 ;
21199 char *kwnames[] = {
21200 (char *) "self",(char *) "size", NULL
21201 };
21202
21203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
21204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21205 {
21206 arg2 = &temp2;
21207 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21208 }
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 (arg1)->SetSize((wxSize const &)*arg2);
21212
21213 wxPyEndAllowThreads(__tstate);
21214 if (PyErr_Occurred()) SWIG_fail;
21215 }
21216 Py_INCREF(Py_None); resultobj = Py_None;
21217 return resultobj;
21218 fail:
21219 return NULL;
21220 }
21221
21222
21223 static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
21224 PyObject *resultobj;
21225 wxWindow *arg1 = (wxWindow *) 0 ;
21226 int arg2 ;
21227 int arg3 ;
21228 int arg4 ;
21229 int arg5 ;
21230 int arg6 = (int) wxSIZE_AUTO ;
21231 PyObject * obj0 = 0 ;
21232 PyObject * obj1 = 0 ;
21233 PyObject * obj2 = 0 ;
21234 PyObject * obj3 = 0 ;
21235 PyObject * obj4 = 0 ;
21236 PyObject * obj5 = 0 ;
21237 char *kwnames[] = {
21238 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
21239 };
21240
21241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21243 {
21244 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21245 if (PyErr_Occurred()) SWIG_fail;
21246 }
21247 {
21248 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 {
21252 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 {
21256 arg5 = (int) SWIG_PyObj_AsInt(obj4);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 if (obj5) {
21260 {
21261 arg6 = (int) SWIG_PyObj_AsInt(obj5);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 }
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
21268
21269 wxPyEndAllowThreads(__tstate);
21270 if (PyErr_Occurred()) SWIG_fail;
21271 }
21272 Py_INCREF(Py_None); resultobj = Py_None;
21273 return resultobj;
21274 fail:
21275 return NULL;
21276 }
21277
21278
21279 static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21280 PyObject *resultobj;
21281 wxWindow *arg1 = (wxWindow *) 0 ;
21282 wxRect *arg2 = 0 ;
21283 int arg3 = (int) wxSIZE_AUTO ;
21284 wxRect temp2 ;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 PyObject * obj2 = 0 ;
21288 char *kwnames[] = {
21289 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
21290 };
21291
21292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
21293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21294 {
21295 arg2 = &temp2;
21296 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21297 }
21298 if (obj2) {
21299 {
21300 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 }
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 (arg1)->SetSize((wxRect const &)*arg2,arg3);
21307
21308 wxPyEndAllowThreads(__tstate);
21309 if (PyErr_Occurred()) SWIG_fail;
21310 }
21311 Py_INCREF(Py_None); resultobj = Py_None;
21312 return resultobj;
21313 fail:
21314 return NULL;
21315 }
21316
21317
21318 static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
21319 PyObject *resultobj;
21320 wxWindow *arg1 = (wxWindow *) 0 ;
21321 int arg2 ;
21322 int arg3 ;
21323 PyObject * obj0 = 0 ;
21324 PyObject * obj1 = 0 ;
21325 PyObject * obj2 = 0 ;
21326 char *kwnames[] = {
21327 (char *) "self",(char *) "width",(char *) "height", NULL
21328 };
21329
21330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
21331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21332 {
21333 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 {
21337 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21338 if (PyErr_Occurred()) SWIG_fail;
21339 }
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 (arg1)->SetSize(arg2,arg3);
21343
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 Py_INCREF(Py_None); resultobj = Py_None;
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
21355 PyObject *resultobj;
21356 wxWindow *arg1 = (wxWindow *) 0 ;
21357 wxPoint *arg2 = 0 ;
21358 int arg3 = (int) wxSIZE_USE_EXISTING ;
21359 wxPoint temp2 ;
21360 PyObject * obj0 = 0 ;
21361 PyObject * obj1 = 0 ;
21362 PyObject * obj2 = 0 ;
21363 char *kwnames[] = {
21364 (char *) "self",(char *) "pt",(char *) "flags", NULL
21365 };
21366
21367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
21368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21369 {
21370 arg2 = &temp2;
21371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21372 }
21373 if (obj2) {
21374 {
21375 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 }
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 (arg1)->Move((wxPoint const &)*arg2,arg3);
21382
21383 wxPyEndAllowThreads(__tstate);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 Py_INCREF(Py_None); resultobj = Py_None;
21387 return resultobj;
21388 fail:
21389 return NULL;
21390 }
21391
21392
21393 static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
21394 PyObject *resultobj;
21395 wxWindow *arg1 = (wxWindow *) 0 ;
21396 int arg2 ;
21397 int arg3 ;
21398 int arg4 = (int) wxSIZE_USE_EXISTING ;
21399 PyObject * obj0 = 0 ;
21400 PyObject * obj1 = 0 ;
21401 PyObject * obj2 = 0 ;
21402 PyObject * obj3 = 0 ;
21403 char *kwnames[] = {
21404 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
21405 };
21406
21407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21409 {
21410 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 {
21414 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 if (obj3) {
21418 {
21419 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21420 if (PyErr_Occurred()) SWIG_fail;
21421 }
21422 }
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 (arg1)->Move(arg2,arg3,arg4);
21426
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 Py_INCREF(Py_None); resultobj = Py_None;
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
21438 PyObject *resultobj;
21439 wxWindow *arg1 = (wxWindow *) 0 ;
21440 PyObject * obj0 = 0 ;
21441 char *kwnames[] = {
21442 (char *) "self", NULL
21443 };
21444
21445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
21446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 (arg1)->Raise();
21450
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 Py_INCREF(Py_None); resultobj = Py_None;
21455 return resultobj;
21456 fail:
21457 return NULL;
21458 }
21459
21460
21461 static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj;
21463 wxWindow *arg1 = (wxWindow *) 0 ;
21464 PyObject * obj0 = 0 ;
21465 char *kwnames[] = {
21466 (char *) "self", NULL
21467 };
21468
21469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
21470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21471 {
21472 PyThreadState* __tstate = wxPyBeginAllowThreads();
21473 (arg1)->Lower();
21474
21475 wxPyEndAllowThreads(__tstate);
21476 if (PyErr_Occurred()) SWIG_fail;
21477 }
21478 Py_INCREF(Py_None); resultobj = Py_None;
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj;
21487 wxWindow *arg1 = (wxWindow *) 0 ;
21488 wxSize *arg2 = 0 ;
21489 wxSize temp2 ;
21490 PyObject * obj0 = 0 ;
21491 PyObject * obj1 = 0 ;
21492 char *kwnames[] = {
21493 (char *) "self",(char *) "size", NULL
21494 };
21495
21496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
21497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21498 {
21499 arg2 = &temp2;
21500 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21501 }
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 (arg1)->SetClientSize((wxSize const &)*arg2);
21505
21506 wxPyEndAllowThreads(__tstate);
21507 if (PyErr_Occurred()) SWIG_fail;
21508 }
21509 Py_INCREF(Py_None); resultobj = Py_None;
21510 return resultobj;
21511 fail:
21512 return NULL;
21513 }
21514
21515
21516 static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
21517 PyObject *resultobj;
21518 wxWindow *arg1 = (wxWindow *) 0 ;
21519 int arg2 ;
21520 int arg3 ;
21521 PyObject * obj0 = 0 ;
21522 PyObject * obj1 = 0 ;
21523 PyObject * obj2 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self",(char *) "width",(char *) "height", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
21529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21530 {
21531 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 {
21535 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 (arg1)->SetClientSize(arg2,arg3);
21541
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
21545 Py_INCREF(Py_None); resultobj = Py_None;
21546 return resultobj;
21547 fail:
21548 return NULL;
21549 }
21550
21551
21552 static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21553 PyObject *resultobj;
21554 wxWindow *arg1 = (wxWindow *) 0 ;
21555 wxRect *arg2 = 0 ;
21556 wxRect temp2 ;
21557 PyObject * obj0 = 0 ;
21558 PyObject * obj1 = 0 ;
21559 char *kwnames[] = {
21560 (char *) "self",(char *) "rect", NULL
21561 };
21562
21563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
21564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21565 {
21566 arg2 = &temp2;
21567 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21568 }
21569 {
21570 PyThreadState* __tstate = wxPyBeginAllowThreads();
21571 (arg1)->SetClientSize((wxRect const &)*arg2);
21572
21573 wxPyEndAllowThreads(__tstate);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 Py_INCREF(Py_None); resultobj = Py_None;
21577 return resultobj;
21578 fail:
21579 return NULL;
21580 }
21581
21582
21583 static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21584 PyObject *resultobj;
21585 wxWindow *arg1 = (wxWindow *) 0 ;
21586 wxPoint result;
21587 PyObject * obj0 = 0 ;
21588 char *kwnames[] = {
21589 (char *) "self", NULL
21590 };
21591
21592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
21593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21594 {
21595 PyThreadState* __tstate = wxPyBeginAllowThreads();
21596 result = (arg1)->GetPosition();
21597
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 {
21602 wxPoint * resultptr;
21603 resultptr = new wxPoint((wxPoint &) result);
21604 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
21605 }
21606 return resultobj;
21607 fail:
21608 return NULL;
21609 }
21610
21611
21612 static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21613 PyObject *resultobj;
21614 wxWindow *arg1 = (wxWindow *) 0 ;
21615 int *arg2 = (int *) 0 ;
21616 int *arg3 = (int *) 0 ;
21617 int temp2 ;
21618 int temp3 ;
21619 PyObject * obj0 = 0 ;
21620 char *kwnames[] = {
21621 (char *) "self", NULL
21622 };
21623
21624 arg2 = &temp2;
21625 arg3 = &temp3;
21626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
21627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21628 {
21629 PyThreadState* __tstate = wxPyBeginAllowThreads();
21630 (arg1)->GetPosition(arg2,arg3);
21631
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 Py_INCREF(Py_None); resultobj = Py_None;
21636 {
21637 PyObject *o = PyInt_FromLong((long) (*arg2));
21638 resultobj = t_output_helper(resultobj,o);
21639 }
21640 {
21641 PyObject *o = PyInt_FromLong((long) (*arg3));
21642 resultobj = t_output_helper(resultobj,o);
21643 }
21644 return resultobj;
21645 fail:
21646 return NULL;
21647 }
21648
21649
21650 static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21651 PyObject *resultobj;
21652 wxWindow *arg1 = (wxWindow *) 0 ;
21653 wxSize result;
21654 PyObject * obj0 = 0 ;
21655 char *kwnames[] = {
21656 (char *) "self", NULL
21657 };
21658
21659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
21660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21661 {
21662 PyThreadState* __tstate = wxPyBeginAllowThreads();
21663 result = ((wxWindow const *)arg1)->GetSize();
21664
21665 wxPyEndAllowThreads(__tstate);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 {
21669 wxSize * resultptr;
21670 resultptr = new wxSize((wxSize &) result);
21671 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21672 }
21673 return resultobj;
21674 fail:
21675 return NULL;
21676 }
21677
21678
21679 static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21680 PyObject *resultobj;
21681 wxWindow *arg1 = (wxWindow *) 0 ;
21682 int *arg2 = (int *) 0 ;
21683 int *arg3 = (int *) 0 ;
21684 int temp2 ;
21685 int temp3 ;
21686 PyObject * obj0 = 0 ;
21687 char *kwnames[] = {
21688 (char *) "self", NULL
21689 };
21690
21691 arg2 = &temp2;
21692 arg3 = &temp3;
21693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
21694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21695 {
21696 PyThreadState* __tstate = wxPyBeginAllowThreads();
21697 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
21698
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 Py_INCREF(Py_None); resultobj = Py_None;
21703 {
21704 PyObject *o = PyInt_FromLong((long) (*arg2));
21705 resultobj = t_output_helper(resultobj,o);
21706 }
21707 {
21708 PyObject *o = PyInt_FromLong((long) (*arg3));
21709 resultobj = t_output_helper(resultobj,o);
21710 }
21711 return resultobj;
21712 fail:
21713 return NULL;
21714 }
21715
21716
21717 static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj;
21719 wxWindow *arg1 = (wxWindow *) 0 ;
21720 wxRect result;
21721 PyObject * obj0 = 0 ;
21722 char *kwnames[] = {
21723 (char *) "self", NULL
21724 };
21725
21726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
21727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = ((wxWindow const *)arg1)->GetRect();
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 {
21736 wxRect * resultptr;
21737 resultptr = new wxRect((wxRect &) result);
21738 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
21739 }
21740 return resultobj;
21741 fail:
21742 return NULL;
21743 }
21744
21745
21746 static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj;
21748 wxWindow *arg1 = (wxWindow *) 0 ;
21749 wxSize result;
21750 PyObject * obj0 = 0 ;
21751 char *kwnames[] = {
21752 (char *) "self", NULL
21753 };
21754
21755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
21756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 result = ((wxWindow const *)arg1)->GetClientSize();
21760
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 {
21765 wxSize * resultptr;
21766 resultptr = new wxSize((wxSize &) result);
21767 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21768 }
21769 return resultobj;
21770 fail:
21771 return NULL;
21772 }
21773
21774
21775 static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj;
21777 wxWindow *arg1 = (wxWindow *) 0 ;
21778 int *arg2 = (int *) 0 ;
21779 int *arg3 = (int *) 0 ;
21780 int temp2 ;
21781 int temp3 ;
21782 PyObject * obj0 = 0 ;
21783 char *kwnames[] = {
21784 (char *) "self", NULL
21785 };
21786
21787 arg2 = &temp2;
21788 arg3 = &temp3;
21789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
21790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21791 {
21792 PyThreadState* __tstate = wxPyBeginAllowThreads();
21793 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
21794
21795 wxPyEndAllowThreads(__tstate);
21796 if (PyErr_Occurred()) SWIG_fail;
21797 }
21798 Py_INCREF(Py_None); resultobj = Py_None;
21799 {
21800 PyObject *o = PyInt_FromLong((long) (*arg2));
21801 resultobj = t_output_helper(resultobj,o);
21802 }
21803 {
21804 PyObject *o = PyInt_FromLong((long) (*arg3));
21805 resultobj = t_output_helper(resultobj,o);
21806 }
21807 return resultobj;
21808 fail:
21809 return NULL;
21810 }
21811
21812
21813 static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
21814 PyObject *resultobj;
21815 wxWindow *arg1 = (wxWindow *) 0 ;
21816 wxPoint result;
21817 PyObject * obj0 = 0 ;
21818 char *kwnames[] = {
21819 (char *) "self", NULL
21820 };
21821
21822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
21823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21824 {
21825 PyThreadState* __tstate = wxPyBeginAllowThreads();
21826 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
21827
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 {
21832 wxPoint * resultptr;
21833 resultptr = new wxPoint((wxPoint &) result);
21834 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
21835 }
21836 return resultobj;
21837 fail:
21838 return NULL;
21839 }
21840
21841
21842 static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21843 PyObject *resultobj;
21844 wxWindow *arg1 = (wxWindow *) 0 ;
21845 wxRect result;
21846 PyObject * obj0 = 0 ;
21847 char *kwnames[] = {
21848 (char *) "self", NULL
21849 };
21850
21851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
21852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21853 {
21854 PyThreadState* __tstate = wxPyBeginAllowThreads();
21855 result = ((wxWindow const *)arg1)->GetClientRect();
21856
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 {
21861 wxRect * resultptr;
21862 resultptr = new wxRect((wxRect &) result);
21863 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
21864 }
21865 return resultobj;
21866 fail:
21867 return NULL;
21868 }
21869
21870
21871 static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21872 PyObject *resultobj;
21873 wxWindow *arg1 = (wxWindow *) 0 ;
21874 wxSize result;
21875 PyObject * obj0 = 0 ;
21876 char *kwnames[] = {
21877 (char *) "self", NULL
21878 };
21879
21880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
21881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = ((wxWindow const *)arg1)->GetBestSize();
21885
21886 wxPyEndAllowThreads(__tstate);
21887 if (PyErr_Occurred()) SWIG_fail;
21888 }
21889 {
21890 wxSize * resultptr;
21891 resultptr = new wxSize((wxSize &) result);
21892 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21893 }
21894 return resultobj;
21895 fail:
21896 return NULL;
21897 }
21898
21899
21900 static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21901 PyObject *resultobj;
21902 wxWindow *arg1 = (wxWindow *) 0 ;
21903 int *arg2 = (int *) 0 ;
21904 int *arg3 = (int *) 0 ;
21905 int temp2 ;
21906 int temp3 ;
21907 PyObject * obj0 = 0 ;
21908 char *kwnames[] = {
21909 (char *) "self", NULL
21910 };
21911
21912 arg2 = &temp2;
21913 arg3 = &temp3;
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21916 {
21917 PyThreadState* __tstate = wxPyBeginAllowThreads();
21918 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
21919
21920 wxPyEndAllowThreads(__tstate);
21921 if (PyErr_Occurred()) SWIG_fail;
21922 }
21923 Py_INCREF(Py_None); resultobj = Py_None;
21924 {
21925 PyObject *o = PyInt_FromLong((long) (*arg2));
21926 resultobj = t_output_helper(resultobj,o);
21927 }
21928 {
21929 PyObject *o = PyInt_FromLong((long) (*arg3));
21930 resultobj = t_output_helper(resultobj,o);
21931 }
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21939 PyObject *resultobj;
21940 wxWindow *arg1 = (wxWindow *) 0 ;
21941 wxSize result;
21942 PyObject * obj0 = 0 ;
21943 char *kwnames[] = {
21944 (char *) "self", NULL
21945 };
21946
21947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
21948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21949 {
21950 PyThreadState* __tstate = wxPyBeginAllowThreads();
21951 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
21952
21953 wxPyEndAllowThreads(__tstate);
21954 if (PyErr_Occurred()) SWIG_fail;
21955 }
21956 {
21957 wxSize * resultptr;
21958 resultptr = new wxSize((wxSize &) result);
21959 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21960 }
21961 return resultobj;
21962 fail:
21963 return NULL;
21964 }
21965
21966
21967 static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
21968 PyObject *resultobj;
21969 wxWindow *arg1 = (wxWindow *) 0 ;
21970 int arg2 = (int) wxBOTH ;
21971 PyObject * obj0 = 0 ;
21972 PyObject * obj1 = 0 ;
21973 char *kwnames[] = {
21974 (char *) "self",(char *) "direction", NULL
21975 };
21976
21977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
21978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21979 if (obj1) {
21980 {
21981 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21982 if (PyErr_Occurred()) SWIG_fail;
21983 }
21984 }
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 (arg1)->Center(arg2);
21988
21989 wxPyEndAllowThreads(__tstate);
21990 if (PyErr_Occurred()) SWIG_fail;
21991 }
21992 Py_INCREF(Py_None); resultobj = Py_None;
21993 return resultobj;
21994 fail:
21995 return NULL;
21996 }
21997
21998
21999 static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
22000 PyObject *resultobj;
22001 wxWindow *arg1 = (wxWindow *) 0 ;
22002 int arg2 = (int) wxBOTH ;
22003 PyObject * obj0 = 0 ;
22004 PyObject * obj1 = 0 ;
22005 char *kwnames[] = {
22006 (char *) "self",(char *) "dir", NULL
22007 };
22008
22009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
22010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22011 if (obj1) {
22012 {
22013 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 }
22017 {
22018 PyThreadState* __tstate = wxPyBeginAllowThreads();
22019 (arg1)->CenterOnScreen(arg2);
22020
22021 wxPyEndAllowThreads(__tstate);
22022 if (PyErr_Occurred()) SWIG_fail;
22023 }
22024 Py_INCREF(Py_None); resultobj = Py_None;
22025 return resultobj;
22026 fail:
22027 return NULL;
22028 }
22029
22030
22031 static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
22032 PyObject *resultobj;
22033 wxWindow *arg1 = (wxWindow *) 0 ;
22034 int arg2 = (int) wxBOTH ;
22035 PyObject * obj0 = 0 ;
22036 PyObject * obj1 = 0 ;
22037 char *kwnames[] = {
22038 (char *) "self",(char *) "dir", NULL
22039 };
22040
22041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
22042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22043 if (obj1) {
22044 {
22045 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22046 if (PyErr_Occurred()) SWIG_fail;
22047 }
22048 }
22049 {
22050 PyThreadState* __tstate = wxPyBeginAllowThreads();
22051 (arg1)->CenterOnParent(arg2);
22052
22053 wxPyEndAllowThreads(__tstate);
22054 if (PyErr_Occurred()) SWIG_fail;
22055 }
22056 Py_INCREF(Py_None); resultobj = Py_None;
22057 return resultobj;
22058 fail:
22059 return NULL;
22060 }
22061
22062
22063 static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
22064 PyObject *resultobj;
22065 wxWindow *arg1 = (wxWindow *) 0 ;
22066 PyObject * obj0 = 0 ;
22067 char *kwnames[] = {
22068 (char *) "self", NULL
22069 };
22070
22071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
22072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22073 {
22074 PyThreadState* __tstate = wxPyBeginAllowThreads();
22075 (arg1)->Fit();
22076
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 Py_INCREF(Py_None); resultobj = Py_None;
22081 return resultobj;
22082 fail:
22083 return NULL;
22084 }
22085
22086
22087 static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
22088 PyObject *resultobj;
22089 wxWindow *arg1 = (wxWindow *) 0 ;
22090 PyObject * obj0 = 0 ;
22091 char *kwnames[] = {
22092 (char *) "self", NULL
22093 };
22094
22095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
22096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 (arg1)->FitInside();
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 Py_INCREF(Py_None); resultobj = Py_None;
22105 return resultobj;
22106 fail:
22107 return NULL;
22108 }
22109
22110
22111 static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
22112 PyObject *resultobj;
22113 wxWindow *arg1 = (wxWindow *) 0 ;
22114 int arg2 ;
22115 int arg3 ;
22116 int arg4 = (int) -1 ;
22117 int arg5 = (int) -1 ;
22118 int arg6 = (int) -1 ;
22119 int arg7 = (int) -1 ;
22120 PyObject * obj0 = 0 ;
22121 PyObject * obj1 = 0 ;
22122 PyObject * obj2 = 0 ;
22123 PyObject * obj3 = 0 ;
22124 PyObject * obj4 = 0 ;
22125 PyObject * obj5 = 0 ;
22126 PyObject * obj6 = 0 ;
22127 char *kwnames[] = {
22128 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
22129 };
22130
22131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22133 {
22134 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22135 if (PyErr_Occurred()) SWIG_fail;
22136 }
22137 {
22138 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22139 if (PyErr_Occurred()) SWIG_fail;
22140 }
22141 if (obj3) {
22142 {
22143 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 }
22147 if (obj4) {
22148 {
22149 arg5 = (int) SWIG_PyObj_AsInt(obj4);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 }
22153 if (obj5) {
22154 {
22155 arg6 = (int) SWIG_PyObj_AsInt(obj5);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 }
22159 if (obj6) {
22160 {
22161 arg7 = (int) SWIG_PyObj_AsInt(obj6);
22162 if (PyErr_Occurred()) SWIG_fail;
22163 }
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
22168
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 Py_INCREF(Py_None); resultobj = Py_None;
22173 return resultobj;
22174 fail:
22175 return NULL;
22176 }
22177
22178
22179 static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
22180 PyObject *resultobj;
22181 wxWindow *arg1 = (wxWindow *) 0 ;
22182 int arg2 ;
22183 int arg3 ;
22184 int arg4 = (int) -1 ;
22185 int arg5 = (int) -1 ;
22186 PyObject * obj0 = 0 ;
22187 PyObject * obj1 = 0 ;
22188 PyObject * obj2 = 0 ;
22189 PyObject * obj3 = 0 ;
22190 PyObject * obj4 = 0 ;
22191 char *kwnames[] = {
22192 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
22193 };
22194
22195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22197 {
22198 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22199 if (PyErr_Occurred()) SWIG_fail;
22200 }
22201 {
22202 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 if (obj3) {
22206 {
22207 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 }
22211 if (obj4) {
22212 {
22213 arg5 = (int) SWIG_PyObj_AsInt(obj4);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 }
22217 {
22218 PyThreadState* __tstate = wxPyBeginAllowThreads();
22219 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
22220
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 Py_INCREF(Py_None); resultobj = Py_None;
22225 return resultobj;
22226 fail:
22227 return NULL;
22228 }
22229
22230
22231 static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
22232 PyObject *resultobj;
22233 wxWindow *arg1 = (wxWindow *) 0 ;
22234 int result;
22235 PyObject * obj0 = 0 ;
22236 char *kwnames[] = {
22237 (char *) "self", NULL
22238 };
22239
22240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
22241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 result = (int)((wxWindow const *)arg1)->GetMinWidth();
22245
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 resultobj = SWIG_PyObj_FromInt((int)result);
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
22257 PyObject *resultobj;
22258 wxWindow *arg1 = (wxWindow *) 0 ;
22259 int result;
22260 PyObject * obj0 = 0 ;
22261 char *kwnames[] = {
22262 (char *) "self", NULL
22263 };
22264
22265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
22266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 result = (int)((wxWindow const *)arg1)->GetMinHeight();
22270
22271 wxPyEndAllowThreads(__tstate);
22272 if (PyErr_Occurred()) SWIG_fail;
22273 }
22274 resultobj = SWIG_PyObj_FromInt((int)result);
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
22282 PyObject *resultobj;
22283 wxWindow *arg1 = (wxWindow *) 0 ;
22284 int result;
22285 PyObject * obj0 = 0 ;
22286 char *kwnames[] = {
22287 (char *) "self", NULL
22288 };
22289
22290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
22291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22292 {
22293 PyThreadState* __tstate = wxPyBeginAllowThreads();
22294 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
22295
22296 wxPyEndAllowThreads(__tstate);
22297 if (PyErr_Occurred()) SWIG_fail;
22298 }
22299 resultobj = SWIG_PyObj_FromInt((int)result);
22300 return resultobj;
22301 fail:
22302 return NULL;
22303 }
22304
22305
22306 static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
22307 PyObject *resultobj;
22308 wxWindow *arg1 = (wxWindow *) 0 ;
22309 int result;
22310 PyObject * obj0 = 0 ;
22311 char *kwnames[] = {
22312 (char *) "self", NULL
22313 };
22314
22315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
22316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 resultobj = SWIG_PyObj_FromInt((int)result);
22325 return resultobj;
22326 fail:
22327 return NULL;
22328 }
22329
22330
22331 static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22332 PyObject *resultobj;
22333 wxWindow *arg1 = (wxWindow *) 0 ;
22334 wxSize result;
22335 PyObject * obj0 = 0 ;
22336 char *kwnames[] = {
22337 (char *) "self", NULL
22338 };
22339
22340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
22341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 result = ((wxWindow const *)arg1)->GetMaxSize();
22345
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 {
22350 wxSize * resultptr;
22351 resultptr = new wxSize((wxSize &) result);
22352 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22353 }
22354 return resultobj;
22355 fail:
22356 return NULL;
22357 }
22358
22359
22360 static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj;
22362 wxWindow *arg1 = (wxWindow *) 0 ;
22363 wxSize *arg2 = 0 ;
22364 wxSize temp2 ;
22365 PyObject * obj0 = 0 ;
22366 PyObject * obj1 = 0 ;
22367 char *kwnames[] = {
22368 (char *) "self",(char *) "size", NULL
22369 };
22370
22371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
22372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22373 {
22374 arg2 = &temp2;
22375 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22376 }
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 (arg1)->SetVirtualSize((wxSize const &)*arg2);
22380
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 Py_INCREF(Py_None); resultobj = Py_None;
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj;
22393 wxWindow *arg1 = (wxWindow *) 0 ;
22394 int arg2 ;
22395 int arg3 ;
22396 PyObject * obj0 = 0 ;
22397 PyObject * obj1 = 0 ;
22398 PyObject * obj2 = 0 ;
22399 char *kwnames[] = {
22400 (char *) "self",(char *) "w",(char *) "h", NULL
22401 };
22402
22403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22405 {
22406 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 }
22409 {
22410 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 {
22414 PyThreadState* __tstate = wxPyBeginAllowThreads();
22415 (arg1)->SetVirtualSize(arg2,arg3);
22416
22417 wxPyEndAllowThreads(__tstate);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 Py_INCREF(Py_None); resultobj = Py_None;
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22428 PyObject *resultobj;
22429 wxWindow *arg1 = (wxWindow *) 0 ;
22430 wxSize result;
22431 PyObject * obj0 = 0 ;
22432 char *kwnames[] = {
22433 (char *) "self", NULL
22434 };
22435
22436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
22437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22438 {
22439 PyThreadState* __tstate = wxPyBeginAllowThreads();
22440 result = ((wxWindow const *)arg1)->GetVirtualSize();
22441
22442 wxPyEndAllowThreads(__tstate);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 }
22445 {
22446 wxSize * resultptr;
22447 resultptr = new wxSize((wxSize &) result);
22448 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22449 }
22450 return resultobj;
22451 fail:
22452 return NULL;
22453 }
22454
22455
22456 static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22457 PyObject *resultobj;
22458 wxWindow *arg1 = (wxWindow *) 0 ;
22459 int *arg2 = (int *) 0 ;
22460 int *arg3 = (int *) 0 ;
22461 int temp2 ;
22462 int temp3 ;
22463 PyObject * obj0 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self", NULL
22466 };
22467
22468 arg2 = &temp2;
22469 arg3 = &temp3;
22470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
22471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
22475
22476 wxPyEndAllowThreads(__tstate);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 }
22479 Py_INCREF(Py_None); resultobj = Py_None;
22480 {
22481 PyObject *o = PyInt_FromLong((long) (*arg2));
22482 resultobj = t_output_helper(resultobj,o);
22483 }
22484 {
22485 PyObject *o = PyInt_FromLong((long) (*arg3));
22486 resultobj = t_output_helper(resultobj,o);
22487 }
22488 return resultobj;
22489 fail:
22490 return NULL;
22491 }
22492
22493
22494 static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22495 PyObject *resultobj;
22496 wxWindow *arg1 = (wxWindow *) 0 ;
22497 wxSize result;
22498 PyObject * obj0 = 0 ;
22499 char *kwnames[] = {
22500 (char *) "self", NULL
22501 };
22502
22503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
22504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
22508
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 {
22513 wxSize * resultptr;
22514 resultptr = new wxSize((wxSize &) result);
22515 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22516 }
22517 return resultobj;
22518 fail:
22519 return NULL;
22520 }
22521
22522
22523 static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
22524 PyObject *resultobj;
22525 wxWindow *arg1 = (wxWindow *) 0 ;
22526 bool arg2 = (bool) True ;
22527 bool result;
22528 PyObject * obj0 = 0 ;
22529 PyObject * obj1 = 0 ;
22530 char *kwnames[] = {
22531 (char *) "self",(char *) "show", NULL
22532 };
22533
22534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
22535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22536 if (obj1) {
22537 {
22538 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 }
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = (bool)(arg1)->Show(arg2);
22545
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 resultobj = SWIG_PyObj_FromBool((bool)result);
22550 return resultobj;
22551 fail:
22552 return NULL;
22553 }
22554
22555
22556 static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
22557 PyObject *resultobj;
22558 wxWindow *arg1 = (wxWindow *) 0 ;
22559 bool result;
22560 PyObject * obj0 = 0 ;
22561 char *kwnames[] = {
22562 (char *) "self", NULL
22563 };
22564
22565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
22566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = (bool)(arg1)->Hide();
22570
22571 wxPyEndAllowThreads(__tstate);
22572 if (PyErr_Occurred()) SWIG_fail;
22573 }
22574 resultobj = SWIG_PyObj_FromBool((bool)result);
22575 return resultobj;
22576 fail:
22577 return NULL;
22578 }
22579
22580
22581 static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
22582 PyObject *resultobj;
22583 wxWindow *arg1 = (wxWindow *) 0 ;
22584 bool arg2 = (bool) True ;
22585 bool result;
22586 PyObject * obj0 = 0 ;
22587 PyObject * obj1 = 0 ;
22588 char *kwnames[] = {
22589 (char *) "self",(char *) "enable", NULL
22590 };
22591
22592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
22593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22594 if (obj1) {
22595 {
22596 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 }
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 result = (bool)(arg1)->Enable(arg2);
22603
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 resultobj = SWIG_PyObj_FromBool((bool)result);
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxWindow *arg1 = (wxWindow *) 0 ;
22617 bool result;
22618 PyObject * obj0 = 0 ;
22619 char *kwnames[] = {
22620 (char *) "self", NULL
22621 };
22622
22623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
22624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 result = (bool)(arg1)->Disable();
22628
22629 wxPyEndAllowThreads(__tstate);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 resultobj = SWIG_PyObj_FromBool((bool)result);
22633 return resultobj;
22634 fail:
22635 return NULL;
22636 }
22637
22638
22639 static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
22640 PyObject *resultobj;
22641 wxWindow *arg1 = (wxWindow *) 0 ;
22642 bool result;
22643 PyObject * obj0 = 0 ;
22644 char *kwnames[] = {
22645 (char *) "self", NULL
22646 };
22647
22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
22649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22650 {
22651 PyThreadState* __tstate = wxPyBeginAllowThreads();
22652 result = (bool)((wxWindow const *)arg1)->IsShown();
22653
22654 wxPyEndAllowThreads(__tstate);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 }
22657 resultobj = SWIG_PyObj_FromBool((bool)result);
22658 return resultobj;
22659 fail:
22660 return NULL;
22661 }
22662
22663
22664 static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22665 PyObject *resultobj;
22666 wxWindow *arg1 = (wxWindow *) 0 ;
22667 bool result;
22668 PyObject * obj0 = 0 ;
22669 char *kwnames[] = {
22670 (char *) "self", NULL
22671 };
22672
22673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
22674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22675 {
22676 PyThreadState* __tstate = wxPyBeginAllowThreads();
22677 result = (bool)((wxWindow const *)arg1)->IsEnabled();
22678
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 resultobj = SWIG_PyObj_FromBool((bool)result);
22683 return resultobj;
22684 fail:
22685 return NULL;
22686 }
22687
22688
22689 static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22690 PyObject *resultobj;
22691 wxWindow *arg1 = (wxWindow *) 0 ;
22692 long arg2 ;
22693 PyObject * obj0 = 0 ;
22694 PyObject * obj1 = 0 ;
22695 char *kwnames[] = {
22696 (char *) "self",(char *) "style", NULL
22697 };
22698
22699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22701 {
22702 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 {
22706 PyThreadState* __tstate = wxPyBeginAllowThreads();
22707 (arg1)->SetWindowStyleFlag(arg2);
22708
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 Py_INCREF(Py_None); resultobj = Py_None;
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22720 PyObject *resultobj;
22721 wxWindow *arg1 = (wxWindow *) 0 ;
22722 long result;
22723 PyObject * obj0 = 0 ;
22724 char *kwnames[] = {
22725 (char *) "self", NULL
22726 };
22727
22728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
22729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22730 {
22731 PyThreadState* __tstate = wxPyBeginAllowThreads();
22732 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
22733
22734 wxPyEndAllowThreads(__tstate);
22735 if (PyErr_Occurred()) SWIG_fail;
22736 }
22737 resultobj = SWIG_PyObj_FromLong((long)result);
22738 return resultobj;
22739 fail:
22740 return NULL;
22741 }
22742
22743
22744 static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj;
22746 wxWindow *arg1 = (wxWindow *) 0 ;
22747 long arg2 ;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char *kwnames[] = {
22751 (char *) "self",(char *) "style", NULL
22752 };
22753
22754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyle",kwnames,&obj0,&obj1)) goto fail;
22755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22756 {
22757 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 {
22761 PyThreadState* __tstate = wxPyBeginAllowThreads();
22762 (arg1)->SetWindowStyle(arg2);
22763
22764 wxPyEndAllowThreads(__tstate);
22765 if (PyErr_Occurred()) SWIG_fail;
22766 }
22767 Py_INCREF(Py_None); resultobj = Py_None;
22768 return resultobj;
22769 fail:
22770 return NULL;
22771 }
22772
22773
22774 static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj;
22776 wxWindow *arg1 = (wxWindow *) 0 ;
22777 long result;
22778 PyObject * obj0 = 0 ;
22779 char *kwnames[] = {
22780 (char *) "self", NULL
22781 };
22782
22783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail;
22784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = (long)((wxWindow const *)arg1)->GetWindowStyle();
22788
22789 wxPyEndAllowThreads(__tstate);
22790 if (PyErr_Occurred()) SWIG_fail;
22791 }
22792 resultobj = SWIG_PyObj_FromLong((long)result);
22793 return resultobj;
22794 fail:
22795 return NULL;
22796 }
22797
22798
22799 static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22800 PyObject *resultobj;
22801 wxWindow *arg1 = (wxWindow *) 0 ;
22802 int arg2 ;
22803 bool result;
22804 PyObject * obj0 = 0 ;
22805 PyObject * obj1 = 0 ;
22806 char *kwnames[] = {
22807 (char *) "self",(char *) "flag", NULL
22808 };
22809
22810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
22811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22812 {
22813 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
22819
22820 wxPyEndAllowThreads(__tstate);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 resultobj = SWIG_PyObj_FromBool((bool)result);
22824 return resultobj;
22825 fail:
22826 return NULL;
22827 }
22828
22829
22830 static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
22831 PyObject *resultobj;
22832 wxWindow *arg1 = (wxWindow *) 0 ;
22833 bool result;
22834 PyObject * obj0 = 0 ;
22835 char *kwnames[] = {
22836 (char *) "self", NULL
22837 };
22838
22839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
22840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22841 {
22842 PyThreadState* __tstate = wxPyBeginAllowThreads();
22843 result = (bool)((wxWindow const *)arg1)->IsRetained();
22844
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 resultobj = SWIG_PyObj_FromBool((bool)result);
22849 return resultobj;
22850 fail:
22851 return NULL;
22852 }
22853
22854
22855 static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22856 PyObject *resultobj;
22857 wxWindow *arg1 = (wxWindow *) 0 ;
22858 long arg2 ;
22859 PyObject * obj0 = 0 ;
22860 PyObject * obj1 = 0 ;
22861 char *kwnames[] = {
22862 (char *) "self",(char *) "exStyle", NULL
22863 };
22864
22865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
22866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22867 {
22868 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 }
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 (arg1)->SetExtraStyle(arg2);
22874
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 Py_INCREF(Py_None); resultobj = Py_None;
22879 return resultobj;
22880 fail:
22881 return NULL;
22882 }
22883
22884
22885 static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22886 PyObject *resultobj;
22887 wxWindow *arg1 = (wxWindow *) 0 ;
22888 long result;
22889 PyObject * obj0 = 0 ;
22890 char *kwnames[] = {
22891 (char *) "self", NULL
22892 };
22893
22894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
22895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
22899
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 resultobj = SWIG_PyObj_FromLong((long)result);
22904 return resultobj;
22905 fail:
22906 return NULL;
22907 }
22908
22909
22910 static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
22911 PyObject *resultobj;
22912 wxWindow *arg1 = (wxWindow *) 0 ;
22913 bool arg2 = (bool) True ;
22914 PyObject * obj0 = 0 ;
22915 PyObject * obj1 = 0 ;
22916 char *kwnames[] = {
22917 (char *) "self",(char *) "modal", NULL
22918 };
22919
22920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
22921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22922 if (obj1) {
22923 {
22924 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 }
22927 }
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 (arg1)->MakeModal(arg2);
22931
22932 wxPyEndAllowThreads(__tstate);
22933 if (PyErr_Occurred()) SWIG_fail;
22934 }
22935 Py_INCREF(Py_None); resultobj = Py_None;
22936 return resultobj;
22937 fail:
22938 return NULL;
22939 }
22940
22941
22942 static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22943 PyObject *resultobj;
22944 wxWindow *arg1 = (wxWindow *) 0 ;
22945 bool arg2 ;
22946 PyObject * obj0 = 0 ;
22947 PyObject * obj1 = 0 ;
22948 char *kwnames[] = {
22949 (char *) "self",(char *) "enableTheme", NULL
22950 };
22951
22952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
22953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22954 {
22955 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 {
22959 PyThreadState* __tstate = wxPyBeginAllowThreads();
22960 (arg1)->SetThemeEnabled(arg2);
22961
22962 wxPyEndAllowThreads(__tstate);
22963 if (PyErr_Occurred()) SWIG_fail;
22964 }
22965 Py_INCREF(Py_None); resultobj = Py_None;
22966 return resultobj;
22967 fail:
22968 return NULL;
22969 }
22970
22971
22972 static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22973 PyObject *resultobj;
22974 wxWindow *arg1 = (wxWindow *) 0 ;
22975 bool result;
22976 PyObject * obj0 = 0 ;
22977 char *kwnames[] = {
22978 (char *) "self", NULL
22979 };
22980
22981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
22982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22983 {
22984 PyThreadState* __tstate = wxPyBeginAllowThreads();
22985 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
22986
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 resultobj = SWIG_PyObj_FromBool((bool)result);
22991 return resultobj;
22992 fail:
22993 return NULL;
22994 }
22995
22996
22997 static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
22998 PyObject *resultobj;
22999 wxWindow *arg1 = (wxWindow *) 0 ;
23000 bool result;
23001 PyObject * obj0 = 0 ;
23002 char *kwnames[] = {
23003 (char *) "self", NULL
23004 };
23005
23006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
23007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23008 {
23009 PyThreadState* __tstate = wxPyBeginAllowThreads();
23010 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
23011
23012 wxPyEndAllowThreads(__tstate);
23013 if (PyErr_Occurred()) SWIG_fail;
23014 }
23015 resultobj = SWIG_PyObj_FromBool((bool)result);
23016 return resultobj;
23017 fail:
23018 return NULL;
23019 }
23020
23021
23022 static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23023 PyObject *resultobj;
23024 wxWindow *arg1 = (wxWindow *) 0 ;
23025 PyObject * obj0 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "self", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
23031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23032 {
23033 PyThreadState* __tstate = wxPyBeginAllowThreads();
23034 (arg1)->SetFocus();
23035
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 Py_INCREF(Py_None); resultobj = Py_None;
23040 return resultobj;
23041 fail:
23042 return NULL;
23043 }
23044
23045
23046 static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
23047 PyObject *resultobj;
23048 wxWindow *arg1 = (wxWindow *) 0 ;
23049 PyObject * obj0 = 0 ;
23050 char *kwnames[] = {
23051 (char *) "self", NULL
23052 };
23053
23054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
23055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 (arg1)->SetFocusFromKbd();
23059
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 Py_INCREF(Py_None); resultobj = Py_None;
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23071 PyObject *resultobj;
23072 wxWindow *result;
23073 char *kwnames[] = {
23074 NULL
23075 };
23076
23077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 result = (wxWindow *)wxWindow::FindFocus();
23081
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 {
23086 resultobj = wxPyMake_wxObject(result);
23087 }
23088 return resultobj;
23089 fail:
23090 return NULL;
23091 }
23092
23093
23094 static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23095 PyObject *resultobj;
23096 wxWindow *arg1 = (wxWindow *) 0 ;
23097 bool result;
23098 PyObject * obj0 = 0 ;
23099 char *kwnames[] = {
23100 (char *) "self", NULL
23101 };
23102
23103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
23104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
23108
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 resultobj = SWIG_PyObj_FromBool((bool)result);
23113 return resultobj;
23114 fail:
23115 return NULL;
23116 }
23117
23118
23119 static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
23120 PyObject *resultobj;
23121 wxWindow *arg1 = (wxWindow *) 0 ;
23122 bool result;
23123 PyObject * obj0 = 0 ;
23124 char *kwnames[] = {
23125 (char *) "self", NULL
23126 };
23127
23128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
23129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23130 {
23131 PyThreadState* __tstate = wxPyBeginAllowThreads();
23132 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
23133
23134 wxPyEndAllowThreads(__tstate);
23135 if (PyErr_Occurred()) SWIG_fail;
23136 }
23137 resultobj = SWIG_PyObj_FromBool((bool)result);
23138 return resultobj;
23139 fail:
23140 return NULL;
23141 }
23142
23143
23144 static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23145 PyObject *resultobj;
23146 wxWindow *arg1 = (wxWindow *) 0 ;
23147 wxWindow *result;
23148 PyObject * obj0 = 0 ;
23149 char *kwnames[] = {
23150 (char *) "self", NULL
23151 };
23152
23153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
23154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
23158
23159 wxPyEndAllowThreads(__tstate);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 }
23162 {
23163 resultobj = wxPyMake_wxObject(result);
23164 }
23165 return resultobj;
23166 fail:
23167 return NULL;
23168 }
23169
23170
23171 static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23172 PyObject *resultobj;
23173 wxWindow *arg1 = (wxWindow *) 0 ;
23174 wxWindow *arg2 = (wxWindow *) 0 ;
23175 wxWindow *result;
23176 PyObject * obj0 = 0 ;
23177 PyObject * obj1 = 0 ;
23178 char *kwnames[] = {
23179 (char *) "self",(char *) "child", NULL
23180 };
23181
23182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
23183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23184 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23185 {
23186 PyThreadState* __tstate = wxPyBeginAllowThreads();
23187 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
23188
23189 wxPyEndAllowThreads(__tstate);
23190 if (PyErr_Occurred()) SWIG_fail;
23191 }
23192 {
23193 resultobj = wxPyMake_wxObject(result);
23194 }
23195 return resultobj;
23196 fail:
23197 return NULL;
23198 }
23199
23200
23201 static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23202 PyObject *resultobj;
23203 wxWindow *arg1 = (wxWindow *) 0 ;
23204 wxWindow *arg2 = (wxWindow *) 0 ;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 char *kwnames[] = {
23208 (char *) "self",(char *) "win", NULL
23209 };
23210
23211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
23212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23213 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23214 {
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 (arg1)->SetTmpDefaultItem(arg2);
23217
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 Py_INCREF(Py_None); resultobj = Py_None;
23222 return resultobj;
23223 fail:
23224 return NULL;
23225 }
23226
23227
23228 static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
23229 PyObject *resultobj;
23230 wxWindow *arg1 = (wxWindow *) 0 ;
23231 PyObject *result;
23232 PyObject * obj0 = 0 ;
23233 char *kwnames[] = {
23234 (char *) "self", NULL
23235 };
23236
23237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
23238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23239 {
23240 PyThreadState* __tstate = wxPyBeginAllowThreads();
23241 result = (PyObject *)wxWindow_GetChildren(arg1);
23242
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 resultobj = result;
23247 return resultobj;
23248 fail:
23249 return NULL;
23250 }
23251
23252
23253 static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23254 PyObject *resultobj;
23255 wxWindow *arg1 = (wxWindow *) 0 ;
23256 wxWindow *result;
23257 PyObject * obj0 = 0 ;
23258 char *kwnames[] = {
23259 (char *) "self", NULL
23260 };
23261
23262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
23263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23264 {
23265 PyThreadState* __tstate = wxPyBeginAllowThreads();
23266 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
23267
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 {
23272 resultobj = wxPyMake_wxObject(result);
23273 }
23274 return resultobj;
23275 fail:
23276 return NULL;
23277 }
23278
23279
23280 static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23281 PyObject *resultobj;
23282 wxWindow *arg1 = (wxWindow *) 0 ;
23283 wxWindow *result;
23284 PyObject * obj0 = 0 ;
23285 char *kwnames[] = {
23286 (char *) "self", NULL
23287 };
23288
23289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
23290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
23294
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 {
23299 resultobj = wxPyMake_wxObject(result);
23300 }
23301 return resultobj;
23302 fail:
23303 return NULL;
23304 }
23305
23306
23307 static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
23308 PyObject *resultobj;
23309 wxWindow *arg1 = (wxWindow *) 0 ;
23310 bool result;
23311 PyObject * obj0 = 0 ;
23312 char *kwnames[] = {
23313 (char *) "self", NULL
23314 };
23315
23316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
23317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23318 {
23319 PyThreadState* __tstate = wxPyBeginAllowThreads();
23320 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
23321
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_PyObj_FromBool((bool)result);
23326 return resultobj;
23327 fail:
23328 return NULL;
23329 }
23330
23331
23332 static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
23333 PyObject *resultobj;
23334 wxWindow *arg1 = (wxWindow *) 0 ;
23335 wxWindow *arg2 = (wxWindow *) 0 ;
23336 bool result;
23337 PyObject * obj0 = 0 ;
23338 PyObject * obj1 = 0 ;
23339 char *kwnames[] = {
23340 (char *) "self",(char *) "newParent", NULL
23341 };
23342
23343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
23344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23345 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 result = (bool)(arg1)->Reparent(arg2);
23349
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = SWIG_PyObj_FromBool((bool)result);
23354 return resultobj;
23355 fail:
23356 return NULL;
23357 }
23358
23359
23360 static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
23361 PyObject *resultobj;
23362 wxWindow *arg1 = (wxWindow *) 0 ;
23363 wxWindow *arg2 = (wxWindow *) 0 ;
23364 PyObject * obj0 = 0 ;
23365 PyObject * obj1 = 0 ;
23366 char *kwnames[] = {
23367 (char *) "self",(char *) "child", NULL
23368 };
23369
23370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
23371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23372 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23373 {
23374 PyThreadState* __tstate = wxPyBeginAllowThreads();
23375 (arg1)->AddChild(arg2);
23376
23377 wxPyEndAllowThreads(__tstate);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 }
23380 Py_INCREF(Py_None); resultobj = Py_None;
23381 return resultobj;
23382 fail:
23383 return NULL;
23384 }
23385
23386
23387 static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
23388 PyObject *resultobj;
23389 wxWindow *arg1 = (wxWindow *) 0 ;
23390 wxWindow *arg2 = (wxWindow *) 0 ;
23391 PyObject * obj0 = 0 ;
23392 PyObject * obj1 = 0 ;
23393 char *kwnames[] = {
23394 (char *) "self",(char *) "child", NULL
23395 };
23396
23397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
23398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23399 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 (arg1)->RemoveChild(arg2);
23403
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 Py_INCREF(Py_None); resultobj = Py_None;
23408 return resultobj;
23409 fail:
23410 return NULL;
23411 }
23412
23413
23414 static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
23415 PyObject *resultobj;
23416 wxWindow *arg1 = (wxWindow *) 0 ;
23417 long arg2 ;
23418 wxWindow *result;
23419 PyObject * obj0 = 0 ;
23420 PyObject * obj1 = 0 ;
23421 char *kwnames[] = {
23422 (char *) "self",(char *) "winid", NULL
23423 };
23424
23425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
23426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23427 {
23428 arg2 = (long) SWIG_PyObj_AsLong(obj1);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 {
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 result = (wxWindow *)(arg1)->FindWindow(arg2);
23434
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 {
23439 resultobj = wxPyMake_wxObject(result);
23440 }
23441 return resultobj;
23442 fail:
23443 return NULL;
23444 }
23445
23446
23447 static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
23448 PyObject *resultobj;
23449 wxWindow *arg1 = (wxWindow *) 0 ;
23450 wxString *arg2 = 0 ;
23451 wxWindow *result;
23452 bool temp2 = False ;
23453 PyObject * obj0 = 0 ;
23454 PyObject * obj1 = 0 ;
23455 char *kwnames[] = {
23456 (char *) "self",(char *) "name", NULL
23457 };
23458
23459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
23460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23461 {
23462 arg2 = wxString_in_helper(obj1);
23463 if (arg2 == NULL) SWIG_fail;
23464 temp2 = True;
23465 }
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
23469
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 {
23474 resultobj = wxPyMake_wxObject(result);
23475 }
23476 {
23477 if (temp2)
23478 delete arg2;
23479 }
23480 return resultobj;
23481 fail:
23482 {
23483 if (temp2)
23484 delete arg2;
23485 }
23486 return NULL;
23487 }
23488
23489
23490 static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj;
23492 wxWindow *arg1 = (wxWindow *) 0 ;
23493 wxEvtHandler *result;
23494 PyObject * obj0 = 0 ;
23495 char *kwnames[] = {
23496 (char *) "self", NULL
23497 };
23498
23499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
23500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 {
23509 resultobj = wxPyMake_wxObject(result);
23510 }
23511 return resultobj;
23512 fail:
23513 return NULL;
23514 }
23515
23516
23517 static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23518 PyObject *resultobj;
23519 wxWindow *arg1 = (wxWindow *) 0 ;
23520 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23521 PyObject * obj0 = 0 ;
23522 PyObject * obj1 = 0 ;
23523 char *kwnames[] = {
23524 (char *) "self",(char *) "handler", NULL
23525 };
23526
23527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
23528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23529 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 (arg1)->SetEventHandler(arg2);
23533
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 Py_INCREF(Py_None); resultobj = Py_None;
23538 return resultobj;
23539 fail:
23540 return NULL;
23541 }
23542
23543
23544 static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxWindow *arg1 = (wxWindow *) 0 ;
23547 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23548 PyObject * obj0 = 0 ;
23549 PyObject * obj1 = 0 ;
23550 char *kwnames[] = {
23551 (char *) "self",(char *) "handler", NULL
23552 };
23553
23554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
23555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23556 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 (arg1)->PushEventHandler(arg2);
23560
23561 wxPyEndAllowThreads(__tstate);
23562 if (PyErr_Occurred()) SWIG_fail;
23563 }
23564 Py_INCREF(Py_None); resultobj = Py_None;
23565 return resultobj;
23566 fail:
23567 return NULL;
23568 }
23569
23570
23571 static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23572 PyObject *resultobj;
23573 wxWindow *arg1 = (wxWindow *) 0 ;
23574 bool arg2 = (bool) False ;
23575 wxEvtHandler *result;
23576 PyObject * obj0 = 0 ;
23577 PyObject * obj1 = 0 ;
23578 char *kwnames[] = {
23579 (char *) "self",(char *) "deleteHandler", NULL
23580 };
23581
23582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
23583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23584 if (obj1) {
23585 {
23586 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 }
23589 }
23590 {
23591 PyThreadState* __tstate = wxPyBeginAllowThreads();
23592 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
23593
23594 wxPyEndAllowThreads(__tstate);
23595 if (PyErr_Occurred()) SWIG_fail;
23596 }
23597 {
23598 resultobj = wxPyMake_wxObject(result);
23599 }
23600 return resultobj;
23601 fail:
23602 return NULL;
23603 }
23604
23605
23606 static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23607 PyObject *resultobj;
23608 wxWindow *arg1 = (wxWindow *) 0 ;
23609 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23610 bool result;
23611 PyObject * obj0 = 0 ;
23612 PyObject * obj1 = 0 ;
23613 char *kwnames[] = {
23614 (char *) "self",(char *) "handler", NULL
23615 };
23616
23617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
23618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23619 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23620 {
23621 PyThreadState* __tstate = wxPyBeginAllowThreads();
23622 result = (bool)(arg1)->RemoveEventHandler(arg2);
23623
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 resultobj = SWIG_PyObj_FromBool((bool)result);
23628 return resultobj;
23629 fail:
23630 return NULL;
23631 }
23632
23633
23634 static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
23635 PyObject *resultobj;
23636 wxWindow *arg1 = (wxWindow *) 0 ;
23637 wxValidator *arg2 = 0 ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 char *kwnames[] = {
23641 (char *) "self",(char *) "validator", NULL
23642 };
23643
23644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
23645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23646 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23647 if (arg2 == NULL) {
23648 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23649 }
23650 {
23651 PyThreadState* __tstate = wxPyBeginAllowThreads();
23652 (arg1)->SetValidator((wxValidator const &)*arg2);
23653
23654 wxPyEndAllowThreads(__tstate);
23655 if (PyErr_Occurred()) SWIG_fail;
23656 }
23657 Py_INCREF(Py_None); resultobj = Py_None;
23658 return resultobj;
23659 fail:
23660 return NULL;
23661 }
23662
23663
23664 static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
23665 PyObject *resultobj;
23666 wxWindow *arg1 = (wxWindow *) 0 ;
23667 wxValidator *result;
23668 PyObject * obj0 = 0 ;
23669 char *kwnames[] = {
23670 (char *) "self", NULL
23671 };
23672
23673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
23674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (wxValidator *)(arg1)->GetValidator();
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 {
23683 resultobj = wxPyMake_wxObject(result);
23684 }
23685 return resultobj;
23686 fail:
23687 return NULL;
23688 }
23689
23690
23691 static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
23692 PyObject *resultobj;
23693 wxWindow *arg1 = (wxWindow *) 0 ;
23694 wxAcceleratorTable *arg2 = 0 ;
23695 PyObject * obj0 = 0 ;
23696 PyObject * obj1 = 0 ;
23697 char *kwnames[] = {
23698 (char *) "self",(char *) "accel", NULL
23699 };
23700
23701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
23702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23703 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23704 if (arg2 == NULL) {
23705 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23706 }
23707 {
23708 PyThreadState* __tstate = wxPyBeginAllowThreads();
23709 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
23710
23711 wxPyEndAllowThreads(__tstate);
23712 if (PyErr_Occurred()) SWIG_fail;
23713 }
23714 Py_INCREF(Py_None); resultobj = Py_None;
23715 return resultobj;
23716 fail:
23717 return NULL;
23718 }
23719
23720
23721 static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
23722 PyObject *resultobj;
23723 wxWindow *arg1 = (wxWindow *) 0 ;
23724 wxAcceleratorTable *result;
23725 PyObject * obj0 = 0 ;
23726 char *kwnames[] = {
23727 (char *) "self", NULL
23728 };
23729
23730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
23731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
23735
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0);
23740 return resultobj;
23741 fail:
23742 return NULL;
23743 }
23744
23745
23746 static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj;
23748 wxWindow *arg1 = (wxWindow *) 0 ;
23749 int arg2 ;
23750 int arg3 ;
23751 int arg4 ;
23752 bool result;
23753 PyObject * obj0 = 0 ;
23754 PyObject * obj1 = 0 ;
23755 PyObject * obj2 = 0 ;
23756 PyObject * obj3 = 0 ;
23757 char *kwnames[] = {
23758 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
23759 };
23760
23761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23763 {
23764 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 {
23768 arg3 = (int) SWIG_PyObj_AsInt(obj2);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 {
23772 arg4 = (int) SWIG_PyObj_AsInt(obj3);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
23778
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_PyObj_FromBool((bool)result);
23783 return resultobj;
23784 fail:
23785 return NULL;
23786 }
23787
23788
23789 static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
23790 PyObject *resultobj;
23791 wxWindow *arg1 = (wxWindow *) 0 ;
23792 int arg2 ;
23793 bool result;
23794 PyObject * obj0 = 0 ;
23795 PyObject * obj1 = 0 ;
23796 char *kwnames[] = {
23797 (char *) "self",(char *) "hotkeyId", NULL
23798 };
23799
23800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
23801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23802 {
23803 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
23809
23810 wxPyEndAllowThreads(__tstate);
23811 if (PyErr_Occurred()) SWIG_fail;
23812 }
23813 resultobj = SWIG_PyObj_FromBool((bool)result);
23814 return resultobj;
23815 fail:
23816 return NULL;
23817 }
23818
23819
23820 static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
23821 PyObject *resultobj;
23822 wxWindow *arg1 = (wxWindow *) 0 ;
23823 wxPoint *arg2 = 0 ;
23824 wxPoint result;
23825 wxPoint temp2 ;
23826 PyObject * obj0 = 0 ;
23827 PyObject * obj1 = 0 ;
23828 char *kwnames[] = {
23829 (char *) "self",(char *) "pt", NULL
23830 };
23831
23832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
23833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23834 {
23835 arg2 = &temp2;
23836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23837 }
23838 {
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 {
23846 wxPoint * resultptr;
23847 resultptr = new wxPoint((wxPoint &) result);
23848 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23849 }
23850 return resultobj;
23851 fail:
23852 return NULL;
23853 }
23854
23855
23856 static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
23857 PyObject *resultobj;
23858 wxWindow *arg1 = (wxWindow *) 0 ;
23859 wxSize *arg2 = 0 ;
23860 wxSize result;
23861 wxSize temp2 ;
23862 PyObject * obj0 = 0 ;
23863 PyObject * obj1 = 0 ;
23864 char *kwnames[] = {
23865 (char *) "self",(char *) "sz", NULL
23866 };
23867
23868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
23869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23870 {
23871 arg2 = &temp2;
23872 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23873 }
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
23877
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 {
23882 wxSize * resultptr;
23883 resultptr = new wxSize((wxSize &) result);
23884 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
23885 }
23886 return resultobj;
23887 fail:
23888 return NULL;
23889 }
23890
23891
23892 static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj;
23894 wxWindow *arg1 = (wxWindow *) 0 ;
23895 wxPoint *arg2 = 0 ;
23896 wxPoint result;
23897 wxPoint temp2 ;
23898 PyObject * obj0 = 0 ;
23899 PyObject * obj1 = 0 ;
23900 char *kwnames[] = {
23901 (char *) "self",(char *) "pt", NULL
23902 };
23903
23904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
23905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23906 {
23907 arg2 = &temp2;
23908 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23909 }
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
23913
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 {
23918 wxPoint * resultptr;
23919 resultptr = new wxPoint((wxPoint &) result);
23920 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23921 }
23922 return resultobj;
23923 fail:
23924 return NULL;
23925 }
23926
23927
23928 static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
23929 PyObject *resultobj;
23930 wxWindow *arg1 = (wxWindow *) 0 ;
23931 wxSize *arg2 = 0 ;
23932 wxSize result;
23933 wxSize temp2 ;
23934 PyObject * obj0 = 0 ;
23935 PyObject * obj1 = 0 ;
23936 char *kwnames[] = {
23937 (char *) "self",(char *) "sz", NULL
23938 };
23939
23940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
23941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23942 {
23943 arg2 = &temp2;
23944 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23945 }
23946 {
23947 PyThreadState* __tstate = wxPyBeginAllowThreads();
23948 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
23949
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 {
23954 wxSize * resultptr;
23955 resultptr = new wxSize((wxSize &) result);
23956 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
23957 }
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj;
23966 wxWindow *arg1 = (wxWindow *) 0 ;
23967 wxPoint *arg2 = 0 ;
23968 wxPoint result;
23969 wxPoint temp2 ;
23970 PyObject * obj0 = 0 ;
23971 PyObject * obj1 = 0 ;
23972 char *kwnames[] = {
23973 (char *) "self",(char *) "pt", NULL
23974 };
23975
23976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
23977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23978 {
23979 arg2 = &temp2;
23980 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23981 }
23982 {
23983 PyThreadState* __tstate = wxPyBeginAllowThreads();
23984 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
23985
23986 wxPyEndAllowThreads(__tstate);
23987 if (PyErr_Occurred()) SWIG_fail;
23988 }
23989 {
23990 wxPoint * resultptr;
23991 resultptr = new wxPoint((wxPoint &) result);
23992 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23993 }
23994 return resultobj;
23995 fail:
23996 return NULL;
23997 }
23998
23999
24000 static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
24001 PyObject *resultobj;
24002 wxWindow *arg1 = (wxWindow *) 0 ;
24003 wxSize *arg2 = 0 ;
24004 wxSize result;
24005 wxSize temp2 ;
24006 PyObject * obj0 = 0 ;
24007 PyObject * obj1 = 0 ;
24008 char *kwnames[] = {
24009 (char *) "self",(char *) "sz", NULL
24010 };
24011
24012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
24013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24014 {
24015 arg2 = &temp2;
24016 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24017 }
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
24021
24022 wxPyEndAllowThreads(__tstate);
24023 if (PyErr_Occurred()) SWIG_fail;
24024 }
24025 {
24026 wxSize * resultptr;
24027 resultptr = new wxSize((wxSize &) result);
24028 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
24029 }
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj;
24038 wxWindow *arg1 = (wxWindow *) 0 ;
24039 int arg2 ;
24040 int arg3 ;
24041 PyObject * obj0 = 0 ;
24042 PyObject * obj1 = 0 ;
24043 PyObject * obj2 = 0 ;
24044 char *kwnames[] = {
24045 (char *) "self",(char *) "x",(char *) "y", NULL
24046 };
24047
24048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24050 {
24051 arg2 = (int) SWIG_PyObj_AsInt(obj1);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 {
24055 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 {
24059 PyThreadState* __tstate = wxPyBeginAllowThreads();
24060 (arg1)->WarpPointer(arg2,arg3);
24061
24062 wxPyEndAllowThreads(__tstate);
24063 if (PyErr_Occurred()) SWIG_fail;
24064 }
24065 Py_INCREF(Py_None); resultobj = Py_None;
24066 return resultobj;
24067 fail:
24068 return NULL;
24069 }
24070
24071
24072 static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
24073 PyObject *resultobj;
24074 wxWindow *arg1 = (wxWindow *) 0 ;
24075 PyObject * obj0 = 0 ;
24076 char *kwnames[] = {
24077 (char *) "self", NULL
24078 };
24079
24080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
24081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 (arg1)->CaptureMouse();
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 Py_INCREF(Py_None); resultobj = Py_None;
24090 return resultobj;
24091 fail:
24092 return NULL;
24093 }
24094
24095
24096 static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
24097 PyObject *resultobj;
24098 wxWindow *arg1 = (wxWindow *) 0 ;
24099 PyObject * obj0 = 0 ;
24100 char *kwnames[] = {
24101 (char *) "self", NULL
24102 };
24103
24104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
24105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24106 {
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
24108 (arg1)->ReleaseMouse();
24109
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 Py_INCREF(Py_None); resultobj = Py_None;
24114 return resultobj;
24115 fail:
24116 return NULL;
24117 }
24118
24119
24120 static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
24121 PyObject *resultobj;
24122 wxWindow *result;
24123 char *kwnames[] = {
24124 NULL
24125 };
24126
24127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 result = (wxWindow *)wxWindow::GetCapture();
24131
24132 wxPyEndAllowThreads(__tstate);
24133 if (PyErr_Occurred()) SWIG_fail;
24134 }
24135 {
24136 resultobj = wxPyMake_wxObject(result);
24137 }
24138 return resultobj;
24139 fail:
24140 return NULL;
24141 }
24142
24143
24144 static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj;
24146 wxWindow *arg1 = (wxWindow *) 0 ;
24147 bool result;
24148 PyObject * obj0 = 0 ;
24149 char *kwnames[] = {
24150 (char *) "self", NULL
24151 };
24152
24153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
24154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 result = (bool)((wxWindow const *)arg1)->HasCapture();
24158
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_PyObj_FromBool((bool)result);
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj;
24171 wxWindow *arg1 = (wxWindow *) 0 ;
24172 bool arg2 = (bool) True ;
24173 wxRect *arg3 = (wxRect *) NULL ;
24174 PyObject * obj0 = 0 ;
24175 PyObject * obj1 = 0 ;
24176 PyObject * obj2 = 0 ;
24177 char *kwnames[] = {
24178 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
24179 };
24180
24181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
24182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24183 if (obj1) {
24184 {
24185 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
24186 if (PyErr_Occurred()) SWIG_fail;
24187 }
24188 }
24189 if (obj2) {
24190 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24191 }
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 (arg1)->Refresh(arg2,(wxRect const *)arg3);
24195
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 Py_INCREF(Py_None); resultobj = Py_None;
24200 return resultobj;
24201 fail:
24202 return NULL;
24203 }
24204
24205
24206 static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj;
24208 wxWindow *arg1 = (wxWindow *) 0 ;
24209 wxRect *arg2 = 0 ;
24210 wxRect temp2 ;
24211 PyObject * obj0 = 0 ;
24212 PyObject * obj1 = 0 ;
24213 char *kwnames[] = {
24214 (char *) "self",(char *) "rect", NULL
24215 };
24216
24217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
24218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24219 {
24220 arg2 = &temp2;
24221 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24222 }
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 (arg1)->RefreshRect((wxRect const &)*arg2);
24226
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 Py_INCREF(Py_None); resultobj = Py_None;
24231 return resultobj;
24232 fail:
24233 return NULL;
24234 }
24235
24236
24237 static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj;
24239 wxWindow *arg1 = (wxWindow *) 0 ;
24240 PyObject * obj0 = 0 ;
24241 char *kwnames[] = {
24242 (char *) "self", NULL
24243 };
24244
24245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
24246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24247 {
24248 PyThreadState* __tstate = wxPyBeginAllowThreads();
24249 (arg1)->Update();
24250
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 Py_INCREF(Py_None); resultobj = Py_None;
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj;
24263 wxWindow *arg1 = (wxWindow *) 0 ;
24264 PyObject * obj0 = 0 ;
24265 char *kwnames[] = {
24266 (char *) "self", NULL
24267 };
24268
24269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
24270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24271 {
24272 PyThreadState* __tstate = wxPyBeginAllowThreads();
24273 (arg1)->ClearBackground();
24274
24275 wxPyEndAllowThreads(__tstate);
24276 if (PyErr_Occurred()) SWIG_fail;
24277 }
24278 Py_INCREF(Py_None); resultobj = Py_None;
24279 return resultobj;
24280 fail:
24281 return NULL;
24282 }
24283
24284
24285 static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
24286 PyObject *resultobj;
24287 wxWindow *arg1 = (wxWindow *) 0 ;
24288 PyObject * obj0 = 0 ;
24289 char *kwnames[] = {
24290 (char *) "self", NULL
24291 };
24292
24293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
24294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24295 {
24296 PyThreadState* __tstate = wxPyBeginAllowThreads();
24297 (arg1)->Freeze();
24298
24299 wxPyEndAllowThreads(__tstate);
24300 if (PyErr_Occurred()) SWIG_fail;
24301 }
24302 Py_INCREF(Py_None); resultobj = Py_None;
24303 return resultobj;
24304 fail:
24305 return NULL;
24306 }
24307
24308
24309 static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
24310 PyObject *resultobj;
24311 wxWindow *arg1 = (wxWindow *) 0 ;
24312 PyObject * obj0 = 0 ;
24313 char *kwnames[] = {
24314 (char *) "self", NULL
24315 };
24316
24317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
24318 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 (arg1)->Thaw();
24322
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 Py_INCREF(Py_None); resultobj = Py_None;
24327 return resultobj;
24328 fail:
24329 return NULL;
24330 }
24331
24332
24333 static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
24334 PyObject *resultobj;
24335 wxWindow *arg1 = (wxWindow *) 0 ;
24336 wxDC *arg2 = 0 ;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339 char *kwnames[] = {
24340 (char *) "self",(char *) "dc", NULL
24341 };
24342
24343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
24344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24345 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24346 if (arg2 == NULL) {
24347 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24348 }
24349 {
24350 PyThreadState* __tstate = wxPyBeginAllowThreads();
24351 (arg1)->PrepareDC(*arg2);
24352
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 Py_INCREF(Py_None); resultobj = Py_None;
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
24364 PyObject *resultobj;
24365 wxWindow *arg1 = (wxWindow *) 0 ;
24366 wxRegion *result;
24367 PyObject * obj0 = 0 ;
24368 char *kwnames[] = {
24369 (char *) "self", NULL
24370 };
24371
24372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
24373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 {
24377 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
24378 result = (wxRegion *) &_result_ref;
24379 }
24380
24381 wxPyEndAllowThreads(__tstate);
24382 if (PyErr_Occurred()) SWIG_fail;
24383 }
24384 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0);
24385 return resultobj;
24386 fail:
24387 return NULL;
24388 }
24389
24390
24391 static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24392 PyObject *resultobj;
24393 wxWindow *arg1 = (wxWindow *) 0 ;
24394 wxRect result;
24395 PyObject * obj0 = 0 ;
24396 char *kwnames[] = {
24397 (char *) "self", NULL
24398 };
24399
24400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
24401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
24405
24406 wxPyEndAllowThreads(__tstate);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 {
24410 wxRect * resultptr;
24411 resultptr = new wxRect((wxRect &) result);
24412 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
24413 }
24414 return resultobj;
24415 fail:
24416 return NULL;
24417 }
24418
24419
24420 static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
24421 PyObject *resultobj;
24422 wxWindow *arg1 = (wxWindow *) 0 ;
24423 int arg2 ;
24424 int arg3 ;
24425 int arg4 = (int) 1 ;
24426 int arg5 = (int) 1 ;
24427 bool result;
24428 PyObject * obj0 = 0 ;
24429 PyObject * obj1 = 0 ;
24430 PyObject * obj2 = 0 ;
24431 PyObject * obj3 = 0 ;
24432 PyObject * obj4 = 0 ;
24433 char *kwnames[] = {
24434 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24435 };
24436
24437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
24438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24439 {
24440 arg2 = (int) SWIG_PyObj_AsInt(obj1);
24441 if (PyErr_Occurred()) SWIG_fail;
24442 }
24443 {
24444 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24445 if (PyErr_Occurred()) SWIG_fail;
24446 }
24447 if (obj3) {
24448 {
24449 arg4 = (int) SWIG_PyObj_AsInt(obj3);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 }
24453 if (obj4) {
24454 {
24455 arg5 = (int) SWIG_PyObj_AsInt(obj4);
24456 if (PyErr_Occurred()) SWIG_fail;
24457 }
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
24462
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 resultobj = SWIG_PyObj_FromBool((bool)result);
24467 return resultobj;
24468 fail:
24469 return NULL;
24470 }
24471
24472
24473 static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24474 PyObject *resultobj;
24475 wxWindow *arg1 = (wxWindow *) 0 ;
24476 wxPoint *arg2 = 0 ;
24477 bool result;
24478 wxPoint temp2 ;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 char *kwnames[] = {
24482 (char *) "self",(char *) "pt", NULL
24483 };
24484
24485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
24486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24487 {
24488 arg2 = &temp2;
24489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24490 }
24491 {
24492 PyThreadState* __tstate = wxPyBeginAllowThreads();
24493 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
24494
24495 wxPyEndAllowThreads(__tstate);
24496 if (PyErr_Occurred()) SWIG_fail;
24497 }
24498 resultobj = SWIG_PyObj_FromBool((bool)result);
24499 return resultobj;
24500 fail:
24501 return NULL;
24502 }
24503
24504
24505 static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24506 PyObject *resultobj;
24507 wxWindow *arg1 = (wxWindow *) 0 ;
24508 wxRect *arg2 = 0 ;
24509 bool result;
24510 wxRect temp2 ;
24511 PyObject * obj0 = 0 ;
24512 PyObject * obj1 = 0 ;
24513 char *kwnames[] = {
24514 (char *) "self",(char *) "rect", NULL
24515 };
24516
24517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail;
24518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24519 {
24520 arg2 = &temp2;
24521 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24522 }
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
24526
24527 wxPyEndAllowThreads(__tstate);
24528 if (PyErr_Occurred()) SWIG_fail;
24529 }
24530 resultobj = SWIG_PyObj_FromBool((bool)result);
24531 return resultobj;
24532 fail:
24533 return NULL;
24534 }
24535
24536
24537 static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24538 PyObject *resultobj;
24539 wxWindow *arg1 = (wxWindow *) 0 ;
24540 wxColour *arg2 = 0 ;
24541 bool result;
24542 wxColour temp2 ;
24543 PyObject * obj0 = 0 ;
24544 PyObject * obj1 = 0 ;
24545 char *kwnames[] = {
24546 (char *) "self",(char *) "colour", NULL
24547 };
24548
24549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24551 {
24552 arg2 = &temp2;
24553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24554 }
24555 {
24556 PyThreadState* __tstate = wxPyBeginAllowThreads();
24557 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
24558
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 resultobj = SWIG_PyObj_FromBool((bool)result);
24563 return resultobj;
24564 fail:
24565 return NULL;
24566 }
24567
24568
24569 static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj;
24571 wxWindow *arg1 = (wxWindow *) 0 ;
24572 wxColour *arg2 = 0 ;
24573 bool result;
24574 wxColour temp2 ;
24575 PyObject * obj0 = 0 ;
24576 PyObject * obj1 = 0 ;
24577 char *kwnames[] = {
24578 (char *) "self",(char *) "colour", NULL
24579 };
24580
24581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
24582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24583 {
24584 arg2 = &temp2;
24585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24586 }
24587 {
24588 PyThreadState* __tstate = wxPyBeginAllowThreads();
24589 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
24590
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 resultobj = SWIG_PyObj_FromBool((bool)result);
24595 return resultobj;
24596 fail:
24597 return NULL;
24598 }
24599
24600
24601 static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24602 PyObject *resultobj;
24603 wxWindow *arg1 = (wxWindow *) 0 ;
24604 wxColour result;
24605 PyObject * obj0 = 0 ;
24606 char *kwnames[] = {
24607 (char *) "self", NULL
24608 };
24609
24610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
24611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24612 {
24613 PyThreadState* __tstate = wxPyBeginAllowThreads();
24614 result = ((wxWindow const *)arg1)->GetBackgroundColour();
24615
24616 wxPyEndAllowThreads(__tstate);
24617 if (PyErr_Occurred()) SWIG_fail;
24618 }
24619 {
24620 wxColour * resultptr;
24621 resultptr = new wxColour((wxColour &) result);
24622 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24623 }
24624 return resultobj;
24625 fail:
24626 return NULL;
24627 }
24628
24629
24630 static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj;
24632 wxWindow *arg1 = (wxWindow *) 0 ;
24633 wxColour result;
24634 PyObject * obj0 = 0 ;
24635 char *kwnames[] = {
24636 (char *) "self", NULL
24637 };
24638
24639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
24640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 result = ((wxWindow const *)arg1)->GetForegroundColour();
24644
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 {
24649 wxColour * resultptr;
24650 resultptr = new wxColour((wxColour &) result);
24651 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24652 }
24653 return resultobj;
24654 fail:
24655 return NULL;
24656 }
24657
24658
24659 static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
24660 PyObject *resultobj;
24661 wxWindow *arg1 = (wxWindow *) 0 ;
24662 wxCursor *arg2 = 0 ;
24663 bool result;
24664 PyObject * obj0 = 0 ;
24665 PyObject * obj1 = 0 ;
24666 char *kwnames[] = {
24667 (char *) "self",(char *) "cursor", NULL
24668 };
24669
24670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
24671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24672 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24673 if (arg2 == NULL) {
24674 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24675 }
24676 {
24677 PyThreadState* __tstate = wxPyBeginAllowThreads();
24678 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
24679
24680 wxPyEndAllowThreads(__tstate);
24681 if (PyErr_Occurred()) SWIG_fail;
24682 }
24683 resultobj = SWIG_PyObj_FromBool((bool)result);
24684 return resultobj;
24685 fail:
24686 return NULL;
24687 }
24688
24689
24690 static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
24691 PyObject *resultobj;
24692 wxWindow *arg1 = (wxWindow *) 0 ;
24693 wxCursor *result;
24694 PyObject * obj0 = 0 ;
24695 char *kwnames[] = {
24696 (char *) "self", NULL
24697 };
24698
24699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
24700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24701 {
24702 PyThreadState* __tstate = wxPyBeginAllowThreads();
24703 {
24704 wxCursor &_result_ref = (arg1)->GetCursor();
24705 result = (wxCursor *) &_result_ref;
24706 }
24707
24708 wxPyEndAllowThreads(__tstate);
24709 if (PyErr_Occurred()) SWIG_fail;
24710 }
24711 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0);
24712 return resultobj;
24713 fail:
24714 return NULL;
24715 }
24716
24717
24718 static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj;
24720 wxWindow *arg1 = (wxWindow *) 0 ;
24721 wxFont *arg2 = 0 ;
24722 bool result;
24723 PyObject * obj0 = 0 ;
24724 PyObject * obj1 = 0 ;
24725 char *kwnames[] = {
24726 (char *) "self",(char *) "font", NULL
24727 };
24728
24729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
24730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24731 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24732 if (arg2 == NULL) {
24733 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24734 }
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
24738
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 resultobj = SWIG_PyObj_FromBool((bool)result);
24743 return resultobj;
24744 fail:
24745 return NULL;
24746 }
24747
24748
24749 static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24750 PyObject *resultobj;
24751 wxWindow *arg1 = (wxWindow *) 0 ;
24752 wxFont *result;
24753 PyObject * obj0 = 0 ;
24754 char *kwnames[] = {
24755 (char *) "self", NULL
24756 };
24757
24758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
24759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 {
24763 wxFont &_result_ref = (arg1)->GetFont();
24764 result = (wxFont *) &_result_ref;
24765 }
24766
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
24771 return resultobj;
24772 fail:
24773 return NULL;
24774 }
24775
24776
24777 static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj;
24779 wxWindow *arg1 = (wxWindow *) 0 ;
24780 wxCaret *arg2 = (wxCaret *) 0 ;
24781 PyObject * obj0 = 0 ;
24782 PyObject * obj1 = 0 ;
24783 char *kwnames[] = {
24784 (char *) "self",(char *) "caret", NULL
24785 };
24786
24787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
24788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24789 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 (arg1)->SetCaret(arg2);
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 Py_INCREF(Py_None); resultobj = Py_None;
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxWindow *arg1 = (wxWindow *) 0 ;
24807 wxCaret *result;
24808 PyObject * obj0 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
24818
24819 wxPyEndAllowThreads(__tstate);
24820 if (PyErr_Occurred()) SWIG_fail;
24821 }
24822 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0);
24823 return resultobj;
24824 fail:
24825 return NULL;
24826 }
24827
24828
24829 static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
24830 PyObject *resultobj;
24831 wxWindow *arg1 = (wxWindow *) 0 ;
24832 int result;
24833 PyObject * obj0 = 0 ;
24834 char *kwnames[] = {
24835 (char *) "self", NULL
24836 };
24837
24838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
24839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24840 {
24841 PyThreadState* __tstate = wxPyBeginAllowThreads();
24842 result = (int)((wxWindow const *)arg1)->GetCharHeight();
24843
24844 wxPyEndAllowThreads(__tstate);
24845 if (PyErr_Occurred()) SWIG_fail;
24846 }
24847 resultobj = SWIG_PyObj_FromInt((int)result);
24848 return resultobj;
24849 fail:
24850 return NULL;
24851 }
24852
24853
24854 static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj;
24856 wxWindow *arg1 = (wxWindow *) 0 ;
24857 int result;
24858 PyObject * obj0 = 0 ;
24859 char *kwnames[] = {
24860 (char *) "self", NULL
24861 };
24862
24863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
24864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24865 {
24866 PyThreadState* __tstate = wxPyBeginAllowThreads();
24867 result = (int)((wxWindow const *)arg1)->GetCharWidth();
24868
24869 wxPyEndAllowThreads(__tstate);
24870 if (PyErr_Occurred()) SWIG_fail;
24871 }
24872 resultobj = SWIG_PyObj_FromInt((int)result);
24873 return resultobj;
24874 fail:
24875 return NULL;
24876 }
24877
24878
24879 static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
24880 PyObject *resultobj;
24881 wxWindow *arg1 = (wxWindow *) 0 ;
24882 wxString *arg2 = 0 ;
24883 int *arg3 = (int *) 0 ;
24884 int *arg4 = (int *) 0 ;
24885 bool temp2 = False ;
24886 int temp3 ;
24887 int temp4 ;
24888 PyObject * obj0 = 0 ;
24889 PyObject * obj1 = 0 ;
24890 char *kwnames[] = {
24891 (char *) "self",(char *) "string", NULL
24892 };
24893
24894 arg3 = &temp3;
24895 arg4 = &temp4;
24896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
24897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24898 {
24899 arg2 = wxString_in_helper(obj1);
24900 if (arg2 == NULL) SWIG_fail;
24901 temp2 = True;
24902 }
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
24906
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 Py_INCREF(Py_None); resultobj = Py_None;
24911 {
24912 PyObject *o = PyInt_FromLong((long) (*arg3));
24913 resultobj = t_output_helper(resultobj,o);
24914 }
24915 {
24916 PyObject *o = PyInt_FromLong((long) (*arg4));
24917 resultobj = t_output_helper(resultobj,o);
24918 }
24919 {
24920 if (temp2)
24921 delete arg2;
24922 }
24923 return resultobj;
24924 fail:
24925 {
24926 if (temp2)
24927 delete arg2;
24928 }
24929 return NULL;
24930 }
24931
24932
24933 static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
24934 PyObject *resultobj;
24935 wxWindow *arg1 = (wxWindow *) 0 ;
24936 wxString *arg2 = 0 ;
24937 int *arg3 = (int *) 0 ;
24938 int *arg4 = (int *) 0 ;
24939 int *arg5 = (int *) 0 ;
24940 int *arg6 = (int *) 0 ;
24941 wxFont *arg7 = (wxFont *) NULL ;
24942 bool temp2 = False ;
24943 int temp3 ;
24944 int temp4 ;
24945 int temp5 ;
24946 int temp6 ;
24947 PyObject * obj0 = 0 ;
24948 PyObject * obj1 = 0 ;
24949 PyObject * obj2 = 0 ;
24950 char *kwnames[] = {
24951 (char *) "self",(char *) "string",(char *) "font", NULL
24952 };
24953
24954 arg3 = &temp3;
24955 arg4 = &temp4;
24956 arg5 = &temp5;
24957 arg6 = &temp6;
24958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
24959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24960 {
24961 arg2 = wxString_in_helper(obj1);
24962 if (arg2 == NULL) SWIG_fail;
24963 temp2 = True;
24964 }
24965 if (obj2) {
24966 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24967 }
24968 {
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
24971
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 Py_INCREF(Py_None); resultobj = Py_None;
24976 {
24977 PyObject *o = PyInt_FromLong((long) (*arg3));
24978 resultobj = t_output_helper(resultobj,o);
24979 }
24980 {
24981 PyObject *o = PyInt_FromLong((long) (*arg4));
24982 resultobj = t_output_helper(resultobj,o);
24983 }
24984 {
24985 PyObject *o = PyInt_FromLong((long) (*arg5));
24986 resultobj = t_output_helper(resultobj,o);
24987 }
24988 {
24989 PyObject *o = PyInt_FromLong((long) (*arg6));
24990 resultobj = t_output_helper(resultobj,o);
24991 }
24992 {
24993 if (temp2)
24994 delete arg2;
24995 }
24996 return resultobj;
24997 fail:
24998 {
24999 if (temp2)
25000 delete arg2;
25001 }
25002 return NULL;
25003 }
25004
25005
25006 static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25007 PyObject *resultobj;
25008 wxWindow *arg1 = (wxWindow *) 0 ;
25009 int *arg2 = (int *) 0 ;
25010 int *arg3 = (int *) 0 ;
25011 int temp2 ;
25012 int temp3 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 PyObject * obj2 = 0 ;
25016 char *kwnames[] = {
25017 (char *) "self",(char *) "x",(char *) "y", NULL
25018 };
25019
25020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
25021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25022 {
25023 temp2 = PyInt_AsLong(obj1);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 arg2 = &temp2;
25026 }
25027 {
25028 temp3 = PyInt_AsLong(obj2);
25029 if (PyErr_Occurred()) SWIG_fail;
25030 arg3 = &temp3;
25031 }
25032 {
25033 PyThreadState* __tstate = wxPyBeginAllowThreads();
25034 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
25035
25036 wxPyEndAllowThreads(__tstate);
25037 if (PyErr_Occurred()) SWIG_fail;
25038 }
25039 Py_INCREF(Py_None); resultobj = Py_None;
25040 {
25041 PyObject *o = PyInt_FromLong((long) (*arg2));
25042 resultobj = t_output_helper(resultobj,o);
25043 }
25044 {
25045 PyObject *o = PyInt_FromLong((long) (*arg3));
25046 resultobj = t_output_helper(resultobj,o);
25047 }
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj;
25056 wxWindow *arg1 = (wxWindow *) 0 ;
25057 int *arg2 = (int *) 0 ;
25058 int *arg3 = (int *) 0 ;
25059 int temp2 ;
25060 int temp3 ;
25061 PyObject * obj0 = 0 ;
25062 PyObject * obj1 = 0 ;
25063 PyObject * obj2 = 0 ;
25064 char *kwnames[] = {
25065 (char *) "self",(char *) "x",(char *) "y", NULL
25066 };
25067
25068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
25069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25070 {
25071 temp2 = PyInt_AsLong(obj1);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 arg2 = &temp2;
25074 }
25075 {
25076 temp3 = PyInt_AsLong(obj2);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 arg3 = &temp3;
25079 }
25080 {
25081 PyThreadState* __tstate = wxPyBeginAllowThreads();
25082 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
25083
25084 wxPyEndAllowThreads(__tstate);
25085 if (PyErr_Occurred()) SWIG_fail;
25086 }
25087 Py_INCREF(Py_None); resultobj = Py_None;
25088 {
25089 PyObject *o = PyInt_FromLong((long) (*arg2));
25090 resultobj = t_output_helper(resultobj,o);
25091 }
25092 {
25093 PyObject *o = PyInt_FromLong((long) (*arg3));
25094 resultobj = t_output_helper(resultobj,o);
25095 }
25096 return resultobj;
25097 fail:
25098 return NULL;
25099 }
25100
25101
25102 static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
25103 PyObject *resultobj;
25104 wxWindow *arg1 = (wxWindow *) 0 ;
25105 wxPoint *arg2 = 0 ;
25106 wxPoint result;
25107 wxPoint temp2 ;
25108 PyObject * obj0 = 0 ;
25109 PyObject * obj1 = 0 ;
25110 char *kwnames[] = {
25111 (char *) "self",(char *) "pt", NULL
25112 };
25113
25114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
25115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25116 {
25117 arg2 = &temp2;
25118 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25119 }
25120 {
25121 PyThreadState* __tstate = wxPyBeginAllowThreads();
25122 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
25123
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 {
25128 wxPoint * resultptr;
25129 resultptr = new wxPoint((wxPoint &) result);
25130 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
25131 }
25132 return resultobj;
25133 fail:
25134 return NULL;
25135 }
25136
25137
25138 static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
25139 PyObject *resultobj;
25140 wxWindow *arg1 = (wxWindow *) 0 ;
25141 wxPoint *arg2 = 0 ;
25142 wxPoint result;
25143 wxPoint temp2 ;
25144 PyObject * obj0 = 0 ;
25145 PyObject * obj1 = 0 ;
25146 char *kwnames[] = {
25147 (char *) "self",(char *) "pt", NULL
25148 };
25149
25150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
25151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25152 {
25153 arg2 = &temp2;
25154 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25155 }
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
25159
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 {
25164 wxPoint * resultptr;
25165 resultptr = new wxPoint((wxPoint &) result);
25166 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
25167 }
25168 return resultobj;
25169 fail:
25170 return NULL;
25171 }
25172
25173
25174 static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25175 PyObject *resultobj;
25176 wxWindow *arg1 = (wxWindow *) 0 ;
25177 int arg2 ;
25178 int arg3 ;
25179 int result;
25180 PyObject * obj0 = 0 ;
25181 PyObject * obj1 = 0 ;
25182 PyObject * obj2 = 0 ;
25183 char *kwnames[] = {
25184 (char *) "self",(char *) "x",(char *) "y", NULL
25185 };
25186
25187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
25188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25189 {
25190 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 {
25194 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 {
25198 PyThreadState* __tstate = wxPyBeginAllowThreads();
25199 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
25200
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 resultobj = SWIG_PyObj_FromInt((int)result);
25205 return resultobj;
25206 fail:
25207 return NULL;
25208 }
25209
25210
25211 static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
25212 PyObject *resultobj;
25213 wxWindow *arg1 = (wxWindow *) 0 ;
25214 wxPoint *arg2 = 0 ;
25215 int result;
25216 wxPoint temp2 ;
25217 PyObject * obj0 = 0 ;
25218 PyObject * obj1 = 0 ;
25219 char *kwnames[] = {
25220 (char *) "self",(char *) "pt", NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
25224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25225 {
25226 arg2 = &temp2;
25227 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25228 }
25229 {
25230 PyThreadState* __tstate = wxPyBeginAllowThreads();
25231 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
25232
25233 wxPyEndAllowThreads(__tstate);
25234 if (PyErr_Occurred()) SWIG_fail;
25235 }
25236 resultobj = SWIG_PyObj_FromInt((int)result);
25237 return resultobj;
25238 fail:
25239 return NULL;
25240 }
25241
25242
25243 static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
25244 PyObject *resultobj;
25245 wxWindow *arg1 = (wxWindow *) 0 ;
25246 long arg2 ;
25247 int result;
25248 PyObject * obj0 = 0 ;
25249 PyObject * obj1 = 0 ;
25250 char *kwnames[] = {
25251 (char *) "self",(char *) "flags", NULL
25252 };
25253
25254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetBorderFlags",kwnames,&obj0,&obj1)) goto fail;
25255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25256 {
25257 arg2 = (long) SWIG_PyObj_AsLong(obj1);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 {
25261 PyThreadState* __tstate = wxPyBeginAllowThreads();
25262 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
25263
25264 wxPyEndAllowThreads(__tstate);
25265 if (PyErr_Occurred()) SWIG_fail;
25266 }
25267 resultobj = SWIG_PyObj_FromInt((int)result);
25268 return resultobj;
25269 fail:
25270 return NULL;
25271 }
25272
25273
25274 static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
25275 PyObject *resultobj;
25276 wxWindow *arg1 = (wxWindow *) 0 ;
25277 int result;
25278 PyObject * obj0 = 0 ;
25279 char *kwnames[] = {
25280 (char *) "self", NULL
25281 };
25282
25283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail;
25284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25285 {
25286 PyThreadState* __tstate = wxPyBeginAllowThreads();
25287 result = (int)((wxWindow const *)arg1)->GetBorder();
25288
25289 wxPyEndAllowThreads(__tstate);
25290 if (PyErr_Occurred()) SWIG_fail;
25291 }
25292 resultobj = SWIG_PyObj_FromInt((int)result);
25293 return resultobj;
25294 fail:
25295 return NULL;
25296 }
25297
25298
25299 static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
25300 PyObject *resultobj;
25301 wxWindow *arg1 = (wxWindow *) 0 ;
25302 long arg2 = (long) wxUPDATE_UI_NONE ;
25303 PyObject * obj0 = 0 ;
25304 PyObject * obj1 = 0 ;
25305 char *kwnames[] = {
25306 (char *) "self",(char *) "flags", NULL
25307 };
25308
25309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
25310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25311 if (obj1) {
25312 {
25313 arg2 = (long) SWIG_PyObj_AsLong(obj1);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 }
25317 {
25318 PyThreadState* __tstate = wxPyBeginAllowThreads();
25319 (arg1)->UpdateWindowUI(arg2);
25320
25321 wxPyEndAllowThreads(__tstate);
25322 if (PyErr_Occurred()) SWIG_fail;
25323 }
25324 Py_INCREF(Py_None); resultobj = Py_None;
25325 return resultobj;
25326 fail:
25327 return NULL;
25328 }
25329
25330
25331 static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25332 PyObject *resultobj;
25333 wxWindow *arg1 = (wxWindow *) 0 ;
25334 wxMenu *arg2 = (wxMenu *) 0 ;
25335 int arg3 ;
25336 int arg4 ;
25337 bool result;
25338 PyObject * obj0 = 0 ;
25339 PyObject * obj1 = 0 ;
25340 PyObject * obj2 = 0 ;
25341 PyObject * obj3 = 0 ;
25342 char *kwnames[] = {
25343 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
25344 };
25345
25346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25348 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25349 {
25350 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 {
25354 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25355 if (PyErr_Occurred()) SWIG_fail;
25356 }
25357 {
25358 PyThreadState* __tstate = wxPyBeginAllowThreads();
25359 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
25360
25361 wxPyEndAllowThreads(__tstate);
25362 if (PyErr_Occurred()) SWIG_fail;
25363 }
25364 resultobj = SWIG_PyObj_FromBool((bool)result);
25365 return resultobj;
25366 fail:
25367 return NULL;
25368 }
25369
25370
25371 static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
25372 PyObject *resultobj;
25373 wxWindow *arg1 = (wxWindow *) 0 ;
25374 wxMenu *arg2 = (wxMenu *) 0 ;
25375 wxPoint *arg3 = 0 ;
25376 bool result;
25377 wxPoint temp3 ;
25378 PyObject * obj0 = 0 ;
25379 PyObject * obj1 = 0 ;
25380 PyObject * obj2 = 0 ;
25381 char *kwnames[] = {
25382 (char *) "self",(char *) "menu",(char *) "pos", NULL
25383 };
25384
25385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
25386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25387 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25388 {
25389 arg3 = &temp3;
25390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25391 }
25392 {
25393 PyThreadState* __tstate = wxPyBeginAllowThreads();
25394 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
25395
25396 wxPyEndAllowThreads(__tstate);
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_PyObj_FromBool((bool)result);
25400 return resultobj;
25401 fail:
25402 return NULL;
25403 }
25404
25405
25406 static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
25407 PyObject *resultobj;
25408 wxWindow *arg1 = (wxWindow *) 0 ;
25409 long result;
25410 PyObject * obj0 = 0 ;
25411 char *kwnames[] = {
25412 (char *) "self", NULL
25413 };
25414
25415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
25416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 result = (long)wxWindow_GetHandle(arg1);
25420
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 resultobj = SWIG_PyObj_FromLong((long)result);
25425 return resultobj;
25426 fail:
25427 return NULL;
25428 }
25429
25430
25431 static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
25432 PyObject *resultobj;
25433 wxWindow *arg1 = (wxWindow *) 0 ;
25434 int arg2 ;
25435 bool result;
25436 PyObject * obj0 = 0 ;
25437 PyObject * obj1 = 0 ;
25438 char *kwnames[] = {
25439 (char *) "self",(char *) "orient", NULL
25440 };
25441
25442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
25443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25444 {
25445 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25446 if (PyErr_Occurred()) SWIG_fail;
25447 }
25448 {
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
25451
25452 wxPyEndAllowThreads(__tstate);
25453 if (PyErr_Occurred()) SWIG_fail;
25454 }
25455 resultobj = SWIG_PyObj_FromBool((bool)result);
25456 return resultobj;
25457 fail:
25458 return NULL;
25459 }
25460
25461
25462 static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
25463 PyObject *resultobj;
25464 wxWindow *arg1 = (wxWindow *) 0 ;
25465 int arg2 ;
25466 int arg3 ;
25467 int arg4 ;
25468 int arg5 ;
25469 bool arg6 = (bool) True ;
25470 PyObject * obj0 = 0 ;
25471 PyObject * obj1 = 0 ;
25472 PyObject * obj2 = 0 ;
25473 PyObject * obj3 = 0 ;
25474 PyObject * obj4 = 0 ;
25475 PyObject * obj5 = 0 ;
25476 char *kwnames[] = {
25477 (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL
25478 };
25479
25480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
25481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25482 {
25483 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25484 if (PyErr_Occurred()) SWIG_fail;
25485 }
25486 {
25487 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 {
25491 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25492 if (PyErr_Occurred()) SWIG_fail;
25493 }
25494 {
25495 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 if (obj5) {
25499 {
25500 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
25501 if (PyErr_Occurred()) SWIG_fail;
25502 }
25503 }
25504 {
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
25507
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 Py_INCREF(Py_None); resultobj = Py_None;
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
25519 PyObject *resultobj;
25520 wxWindow *arg1 = (wxWindow *) 0 ;
25521 int arg2 ;
25522 int arg3 ;
25523 bool arg4 = (bool) True ;
25524 PyObject * obj0 = 0 ;
25525 PyObject * obj1 = 0 ;
25526 PyObject * obj2 = 0 ;
25527 PyObject * obj3 = 0 ;
25528 char *kwnames[] = {
25529 (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL
25530 };
25531
25532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25534 {
25535 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25536 if (PyErr_Occurred()) SWIG_fail;
25537 }
25538 {
25539 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 if (obj3) {
25543 {
25544 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
25545 if (PyErr_Occurred()) SWIG_fail;
25546 }
25547 }
25548 {
25549 PyThreadState* __tstate = wxPyBeginAllowThreads();
25550 (arg1)->SetScrollPos(arg2,arg3,arg4);
25551
25552 wxPyEndAllowThreads(__tstate);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 Py_INCREF(Py_None); resultobj = Py_None;
25556 return resultobj;
25557 fail:
25558 return NULL;
25559 }
25560
25561
25562 static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
25563 PyObject *resultobj;
25564 wxWindow *arg1 = (wxWindow *) 0 ;
25565 int arg2 ;
25566 int result;
25567 PyObject * obj0 = 0 ;
25568 PyObject * obj1 = 0 ;
25569 char *kwnames[] = {
25570 (char *) "self",(char *) "orient", NULL
25571 };
25572
25573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
25574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25575 {
25576 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25577 if (PyErr_Occurred()) SWIG_fail;
25578 }
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
25582
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_PyObj_FromInt((int)result);
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj;
25595 wxWindow *arg1 = (wxWindow *) 0 ;
25596 int arg2 ;
25597 int result;
25598 PyObject * obj0 = 0 ;
25599 PyObject * obj1 = 0 ;
25600 char *kwnames[] = {
25601 (char *) "self",(char *) "orient", NULL
25602 };
25603
25604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
25605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25606 {
25607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 {
25611 PyThreadState* __tstate = wxPyBeginAllowThreads();
25612 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
25613
25614 wxPyEndAllowThreads(__tstate);
25615 if (PyErr_Occurred()) SWIG_fail;
25616 }
25617 resultobj = SWIG_PyObj_FromInt((int)result);
25618 return resultobj;
25619 fail:
25620 return NULL;
25621 }
25622
25623
25624 static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
25625 PyObject *resultobj;
25626 wxWindow *arg1 = (wxWindow *) 0 ;
25627 int arg2 ;
25628 int result;
25629 PyObject * obj0 = 0 ;
25630 PyObject * obj1 = 0 ;
25631 char *kwnames[] = {
25632 (char *) "self",(char *) "orient", NULL
25633 };
25634
25635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
25636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25637 {
25638 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25639 if (PyErr_Occurred()) SWIG_fail;
25640 }
25641 {
25642 PyThreadState* __tstate = wxPyBeginAllowThreads();
25643 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
25644
25645 wxPyEndAllowThreads(__tstate);
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
25648 resultobj = SWIG_PyObj_FromInt((int)result);
25649 return resultobj;
25650 fail:
25651 return NULL;
25652 }
25653
25654
25655 static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25656 PyObject *resultobj;
25657 wxWindow *arg1 = (wxWindow *) 0 ;
25658 int arg2 ;
25659 int arg3 ;
25660 wxRect *arg4 = (wxRect *) NULL ;
25661 PyObject * obj0 = 0 ;
25662 PyObject * obj1 = 0 ;
25663 PyObject * obj2 = 0 ;
25664 PyObject * obj3 = 0 ;
25665 char *kwnames[] = {
25666 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
25667 };
25668
25669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25671 {
25672 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 {
25676 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25677 if (PyErr_Occurred()) SWIG_fail;
25678 }
25679 if (obj3) {
25680 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25681 }
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
25685
25686 wxPyEndAllowThreads(__tstate);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 Py_INCREF(Py_None); resultobj = Py_None;
25690 return resultobj;
25691 fail:
25692 return NULL;
25693 }
25694
25695
25696 static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
25697 PyObject *resultobj;
25698 wxWindow *arg1 = (wxWindow *) 0 ;
25699 int arg2 ;
25700 bool result;
25701 PyObject * obj0 = 0 ;
25702 PyObject * obj1 = 0 ;
25703 char *kwnames[] = {
25704 (char *) "self",(char *) "lines", NULL
25705 };
25706
25707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
25708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25709 {
25710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 {
25714 PyThreadState* __tstate = wxPyBeginAllowThreads();
25715 result = (bool)(arg1)->ScrollLines(arg2);
25716
25717 wxPyEndAllowThreads(__tstate);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 resultobj = SWIG_PyObj_FromBool((bool)result);
25721 return resultobj;
25722 fail:
25723 return NULL;
25724 }
25725
25726
25727 static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
25728 PyObject *resultobj;
25729 wxWindow *arg1 = (wxWindow *) 0 ;
25730 int arg2 ;
25731 bool result;
25732 PyObject * obj0 = 0 ;
25733 PyObject * obj1 = 0 ;
25734 char *kwnames[] = {
25735 (char *) "self",(char *) "pages", NULL
25736 };
25737
25738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
25739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25740 {
25741 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25742 if (PyErr_Occurred()) SWIG_fail;
25743 }
25744 {
25745 PyThreadState* __tstate = wxPyBeginAllowThreads();
25746 result = (bool)(arg1)->ScrollPages(arg2);
25747
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 resultobj = SWIG_PyObj_FromBool((bool)result);
25752 return resultobj;
25753 fail:
25754 return NULL;
25755 }
25756
25757
25758 static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
25759 PyObject *resultobj;
25760 wxWindow *arg1 = (wxWindow *) 0 ;
25761 bool result;
25762 PyObject * obj0 = 0 ;
25763 char *kwnames[] = {
25764 (char *) "self", NULL
25765 };
25766
25767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
25768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25769 {
25770 PyThreadState* __tstate = wxPyBeginAllowThreads();
25771 result = (bool)(arg1)->LineUp();
25772
25773 wxPyEndAllowThreads(__tstate);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_PyObj_FromBool((bool)result);
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
25784 PyObject *resultobj;
25785 wxWindow *arg1 = (wxWindow *) 0 ;
25786 bool result;
25787 PyObject * obj0 = 0 ;
25788 char *kwnames[] = {
25789 (char *) "self", NULL
25790 };
25791
25792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
25793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25794 {
25795 PyThreadState* __tstate = wxPyBeginAllowThreads();
25796 result = (bool)(arg1)->LineDown();
25797
25798 wxPyEndAllowThreads(__tstate);
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 resultobj = SWIG_PyObj_FromBool((bool)result);
25802 return resultobj;
25803 fail:
25804 return NULL;
25805 }
25806
25807
25808 static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
25809 PyObject *resultobj;
25810 wxWindow *arg1 = (wxWindow *) 0 ;
25811 bool result;
25812 PyObject * obj0 = 0 ;
25813 char *kwnames[] = {
25814 (char *) "self", NULL
25815 };
25816
25817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
25818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25819 {
25820 PyThreadState* __tstate = wxPyBeginAllowThreads();
25821 result = (bool)(arg1)->PageUp();
25822
25823 wxPyEndAllowThreads(__tstate);
25824 if (PyErr_Occurred()) SWIG_fail;
25825 }
25826 resultobj = SWIG_PyObj_FromBool((bool)result);
25827 return resultobj;
25828 fail:
25829 return NULL;
25830 }
25831
25832
25833 static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
25834 PyObject *resultobj;
25835 wxWindow *arg1 = (wxWindow *) 0 ;
25836 bool result;
25837 PyObject * obj0 = 0 ;
25838 char *kwnames[] = {
25839 (char *) "self", NULL
25840 };
25841
25842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
25843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25844 {
25845 PyThreadState* __tstate = wxPyBeginAllowThreads();
25846 result = (bool)(arg1)->PageDown();
25847
25848 wxPyEndAllowThreads(__tstate);
25849 if (PyErr_Occurred()) SWIG_fail;
25850 }
25851 resultobj = SWIG_PyObj_FromBool((bool)result);
25852 return resultobj;
25853 fail:
25854 return NULL;
25855 }
25856
25857
25858 static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
25859 PyObject *resultobj;
25860 wxWindow *arg1 = (wxWindow *) 0 ;
25861 wxString *arg2 = 0 ;
25862 bool temp2 = False ;
25863 PyObject * obj0 = 0 ;
25864 PyObject * obj1 = 0 ;
25865 char *kwnames[] = {
25866 (char *) "self",(char *) "text", NULL
25867 };
25868
25869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
25870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25871 {
25872 arg2 = wxString_in_helper(obj1);
25873 if (arg2 == NULL) SWIG_fail;
25874 temp2 = True;
25875 }
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 (arg1)->SetHelpText((wxString const &)*arg2);
25879
25880 wxPyEndAllowThreads(__tstate);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 Py_INCREF(Py_None); resultobj = Py_None;
25884 {
25885 if (temp2)
25886 delete arg2;
25887 }
25888 return resultobj;
25889 fail:
25890 {
25891 if (temp2)
25892 delete arg2;
25893 }
25894 return NULL;
25895 }
25896
25897
25898 static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj;
25900 wxWindow *arg1 = (wxWindow *) 0 ;
25901 wxString *arg2 = 0 ;
25902 bool temp2 = False ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 char *kwnames[] = {
25906 (char *) "self",(char *) "text", NULL
25907 };
25908
25909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
25910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25911 {
25912 arg2 = wxString_in_helper(obj1);
25913 if (arg2 == NULL) SWIG_fail;
25914 temp2 = True;
25915 }
25916 {
25917 PyThreadState* __tstate = wxPyBeginAllowThreads();
25918 (arg1)->SetHelpTextForId((wxString const &)*arg2);
25919
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 Py_INCREF(Py_None); resultobj = Py_None;
25924 {
25925 if (temp2)
25926 delete arg2;
25927 }
25928 return resultobj;
25929 fail:
25930 {
25931 if (temp2)
25932 delete arg2;
25933 }
25934 return NULL;
25935 }
25936
25937
25938 static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj;
25940 wxWindow *arg1 = (wxWindow *) 0 ;
25941 wxString result;
25942 PyObject * obj0 = 0 ;
25943 char *kwnames[] = {
25944 (char *) "self", NULL
25945 };
25946
25947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
25948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25949 {
25950 PyThreadState* __tstate = wxPyBeginAllowThreads();
25951 result = ((wxWindow const *)arg1)->GetHelpText();
25952
25953 wxPyEndAllowThreads(__tstate);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 }
25956 {
25957 #if wxUSE_UNICODE
25958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25959 #else
25960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25961 #endif
25962 }
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxWindow *arg1 = (wxWindow *) 0 ;
25972 wxString *arg2 = 0 ;
25973 bool temp2 = False ;
25974 PyObject * obj0 = 0 ;
25975 PyObject * obj1 = 0 ;
25976 char *kwnames[] = {
25977 (char *) "self",(char *) "tip", NULL
25978 };
25979
25980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
25981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25982 {
25983 arg2 = wxString_in_helper(obj1);
25984 if (arg2 == NULL) SWIG_fail;
25985 temp2 = True;
25986 }
25987 {
25988 PyThreadState* __tstate = wxPyBeginAllowThreads();
25989 (arg1)->SetToolTip((wxString const &)*arg2);
25990
25991 wxPyEndAllowThreads(__tstate);
25992 if (PyErr_Occurred()) SWIG_fail;
25993 }
25994 Py_INCREF(Py_None); resultobj = Py_None;
25995 {
25996 if (temp2)
25997 delete arg2;
25998 }
25999 return resultobj;
26000 fail:
26001 {
26002 if (temp2)
26003 delete arg2;
26004 }
26005 return NULL;
26006 }
26007
26008
26009 static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
26010 PyObject *resultobj;
26011 wxWindow *arg1 = (wxWindow *) 0 ;
26012 wxToolTip *arg2 = (wxToolTip *) 0 ;
26013 PyObject * obj0 = 0 ;
26014 PyObject * obj1 = 0 ;
26015 char *kwnames[] = {
26016 (char *) "self",(char *) "tip", NULL
26017 };
26018
26019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
26020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26022 {
26023 PyThreadState* __tstate = wxPyBeginAllowThreads();
26024 (arg1)->SetToolTip(arg2);
26025
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 Py_INCREF(Py_None); resultobj = Py_None;
26030 return resultobj;
26031 fail:
26032 return NULL;
26033 }
26034
26035
26036 static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
26037 PyObject *resultobj;
26038 wxWindow *arg1 = (wxWindow *) 0 ;
26039 wxToolTip *result;
26040 PyObject * obj0 = 0 ;
26041 char *kwnames[] = {
26042 (char *) "self", NULL
26043 };
26044
26045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
26046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26047 {
26048 PyThreadState* __tstate = wxPyBeginAllowThreads();
26049 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
26050
26051 wxPyEndAllowThreads(__tstate);
26052 if (PyErr_Occurred()) SWIG_fail;
26053 }
26054 {
26055 resultobj = wxPyMake_wxObject(result);
26056 }
26057 return resultobj;
26058 fail:
26059 return NULL;
26060 }
26061
26062
26063 static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj;
26065 wxWindow *arg1 = (wxWindow *) 0 ;
26066 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
26067 PyObject * obj0 = 0 ;
26068 PyObject * obj1 = 0 ;
26069 char *kwnames[] = {
26070 (char *) "self",(char *) "dropTarget", NULL
26071 };
26072
26073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
26074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
26076 {
26077 PyThreadState* __tstate = wxPyBeginAllowThreads();
26078 (arg1)->SetDropTarget(arg2);
26079
26080 wxPyEndAllowThreads(__tstate);
26081 if (PyErr_Occurred()) SWIG_fail;
26082 }
26083 Py_INCREF(Py_None); resultobj = Py_None;
26084 return resultobj;
26085 fail:
26086 return NULL;
26087 }
26088
26089
26090 static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26091 PyObject *resultobj;
26092 wxWindow *arg1 = (wxWindow *) 0 ;
26093 wxPyDropTarget *result;
26094 PyObject * obj0 = 0 ;
26095 char *kwnames[] = {
26096 (char *) "self", NULL
26097 };
26098
26099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
26100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26101 {
26102 PyThreadState* __tstate = wxPyBeginAllowThreads();
26103 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
26104
26105 wxPyEndAllowThreads(__tstate);
26106 if (PyErr_Occurred()) SWIG_fail;
26107 }
26108 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0);
26109 return resultobj;
26110 fail:
26111 return NULL;
26112 }
26113
26114
26115 static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
26116 PyObject *resultobj;
26117 wxWindow *arg1 = (wxWindow *) 0 ;
26118 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self",(char *) "constraints", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26127 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 (arg1)->SetConstraints(arg2);
26131
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 Py_INCREF(Py_None); resultobj = Py_None;
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj;
26144 wxWindow *arg1 = (wxWindow *) 0 ;
26145 wxLayoutConstraints *result;
26146 PyObject * obj0 = 0 ;
26147 char *kwnames[] = {
26148 (char *) "self", NULL
26149 };
26150
26151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
26152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
26155 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
26156
26157 wxPyEndAllowThreads(__tstate);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0);
26161 return resultobj;
26162 fail:
26163 return NULL;
26164 }
26165
26166
26167 static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxWindow *arg1 = (wxWindow *) 0 ;
26170 bool arg2 ;
26171 PyObject * obj0 = 0 ;
26172 PyObject * obj1 = 0 ;
26173 char *kwnames[] = {
26174 (char *) "self",(char *) "autoLayout", NULL
26175 };
26176
26177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
26178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26179 {
26180 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
26181 if (PyErr_Occurred()) SWIG_fail;
26182 }
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 (arg1)->SetAutoLayout(arg2);
26186
26187 wxPyEndAllowThreads(__tstate);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 }
26190 Py_INCREF(Py_None); resultobj = Py_None;
26191 return resultobj;
26192 fail:
26193 return NULL;
26194 }
26195
26196
26197 static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
26198 PyObject *resultobj;
26199 wxWindow *arg1 = (wxWindow *) 0 ;
26200 bool result;
26201 PyObject * obj0 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "self", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
26207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26208 {
26209 PyThreadState* __tstate = wxPyBeginAllowThreads();
26210 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
26211
26212 wxPyEndAllowThreads(__tstate);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 resultobj = SWIG_PyObj_FromBool((bool)result);
26216 return resultobj;
26217 fail:
26218 return NULL;
26219 }
26220
26221
26222 static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
26223 PyObject *resultobj;
26224 wxWindow *arg1 = (wxWindow *) 0 ;
26225 bool result;
26226 PyObject * obj0 = 0 ;
26227 char *kwnames[] = {
26228 (char *) "self", NULL
26229 };
26230
26231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
26232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26233 {
26234 PyThreadState* __tstate = wxPyBeginAllowThreads();
26235 result = (bool)(arg1)->Layout();
26236
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 resultobj = SWIG_PyObj_FromBool((bool)result);
26241 return resultobj;
26242 fail:
26243 return NULL;
26244 }
26245
26246
26247 static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26248 PyObject *resultobj;
26249 wxWindow *arg1 = (wxWindow *) 0 ;
26250 wxSizer *arg2 = (wxSizer *) 0 ;
26251 bool arg3 = (bool) True ;
26252 PyObject * obj0 = 0 ;
26253 PyObject * obj1 = 0 ;
26254 PyObject * obj2 = 0 ;
26255 char *kwnames[] = {
26256 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
26257 };
26258
26259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
26260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26261 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26262 if (obj2) {
26263 {
26264 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 }
26268 {
26269 PyThreadState* __tstate = wxPyBeginAllowThreads();
26270 (arg1)->SetSizer(arg2,arg3);
26271
26272 wxPyEndAllowThreads(__tstate);
26273 if (PyErr_Occurred()) SWIG_fail;
26274 }
26275 Py_INCREF(Py_None); resultobj = Py_None;
26276 return resultobj;
26277 fail:
26278 return NULL;
26279 }
26280
26281
26282 static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
26283 PyObject *resultobj;
26284 wxWindow *arg1 = (wxWindow *) 0 ;
26285 wxSizer *arg2 = (wxSizer *) 0 ;
26286 bool arg3 = (bool) True ;
26287 PyObject * obj0 = 0 ;
26288 PyObject * obj1 = 0 ;
26289 PyObject * obj2 = 0 ;
26290 char *kwnames[] = {
26291 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
26292 };
26293
26294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
26295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26296 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26297 if (obj2) {
26298 {
26299 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
26300 if (PyErr_Occurred()) SWIG_fail;
26301 }
26302 }
26303 {
26304 PyThreadState* __tstate = wxPyBeginAllowThreads();
26305 (arg1)->SetSizerAndFit(arg2,arg3);
26306
26307 wxPyEndAllowThreads(__tstate);
26308 if (PyErr_Occurred()) SWIG_fail;
26309 }
26310 Py_INCREF(Py_None); resultobj = Py_None;
26311 return resultobj;
26312 fail:
26313 return NULL;
26314 }
26315
26316
26317 static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26318 PyObject *resultobj;
26319 wxWindow *arg1 = (wxWindow *) 0 ;
26320 wxSizer *result;
26321 PyObject * obj0 = 0 ;
26322 char *kwnames[] = {
26323 (char *) "self", NULL
26324 };
26325
26326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
26327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26328 {
26329 PyThreadState* __tstate = wxPyBeginAllowThreads();
26330 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
26331
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 {
26336 resultobj = wxPyMake_wxSizer(result);
26337 }
26338 return resultobj;
26339 fail:
26340 return NULL;
26341 }
26342
26343
26344 static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26345 PyObject *resultobj;
26346 wxWindow *arg1 = (wxWindow *) 0 ;
26347 wxSizer *arg2 = (wxSizer *) 0 ;
26348 PyObject * obj0 = 0 ;
26349 PyObject * obj1 = 0 ;
26350 char *kwnames[] = {
26351 (char *) "self",(char *) "sizer", NULL
26352 };
26353
26354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
26355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26356 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26357 {
26358 PyThreadState* __tstate = wxPyBeginAllowThreads();
26359 (arg1)->SetContainingSizer(arg2);
26360
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 Py_INCREF(Py_None); resultobj = Py_None;
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj;
26373 wxWindow *arg1 = (wxWindow *) 0 ;
26374 wxSizer *result;
26375 PyObject * obj0 = 0 ;
26376 char *kwnames[] = {
26377 (char *) "self", NULL
26378 };
26379
26380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
26381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
26385
26386 wxPyEndAllowThreads(__tstate);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 }
26389 {
26390 resultobj = wxPyMake_wxSizer(result);
26391 }
26392 return resultobj;
26393 fail:
26394 return NULL;
26395 }
26396
26397
26398 static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
26399 PyObject *obj;
26400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26401 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
26402 Py_INCREF(obj);
26403 return Py_BuildValue((char *)"");
26404 }
26405 static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
26406 PyObject *resultobj;
26407 long arg1 ;
26408 wxWindow *arg2 = (wxWindow *) NULL ;
26409 wxWindow *result;
26410 PyObject * obj0 = 0 ;
26411 PyObject * obj1 = 0 ;
26412 char *kwnames[] = {
26413 (char *) "id",(char *) "parent", NULL
26414 };
26415
26416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
26417 {
26418 arg1 = (long) SWIG_PyObj_AsLong(obj0);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 if (obj1) {
26422 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26423 }
26424 {
26425 PyThreadState* __tstate = wxPyBeginAllowThreads();
26426 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
26427
26428 wxPyEndAllowThreads(__tstate);
26429 if (PyErr_Occurred()) SWIG_fail;
26430 }
26431 {
26432 resultobj = wxPyMake_wxObject(result);
26433 }
26434 return resultobj;
26435 fail:
26436 return NULL;
26437 }
26438
26439
26440 static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
26441 PyObject *resultobj;
26442 wxString *arg1 = 0 ;
26443 wxWindow *arg2 = (wxWindow *) NULL ;
26444 wxWindow *result;
26445 bool temp1 = False ;
26446 PyObject * obj0 = 0 ;
26447 PyObject * obj1 = 0 ;
26448 char *kwnames[] = {
26449 (char *) "name",(char *) "parent", NULL
26450 };
26451
26452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
26453 {
26454 arg1 = wxString_in_helper(obj0);
26455 if (arg1 == NULL) SWIG_fail;
26456 temp1 = True;
26457 }
26458 if (obj1) {
26459 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26460 }
26461 {
26462 PyThreadState* __tstate = wxPyBeginAllowThreads();
26463 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
26464
26465 wxPyEndAllowThreads(__tstate);
26466 if (PyErr_Occurred()) SWIG_fail;
26467 }
26468 {
26469 resultobj = wxPyMake_wxObject(result);
26470 }
26471 {
26472 if (temp1)
26473 delete arg1;
26474 }
26475 return resultobj;
26476 fail:
26477 {
26478 if (temp1)
26479 delete arg1;
26480 }
26481 return NULL;
26482 }
26483
26484
26485 static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26486 PyObject *resultobj;
26487 wxString *arg1 = 0 ;
26488 wxWindow *arg2 = (wxWindow *) NULL ;
26489 wxWindow *result;
26490 bool temp1 = False ;
26491 PyObject * obj0 = 0 ;
26492 PyObject * obj1 = 0 ;
26493 char *kwnames[] = {
26494 (char *) "label",(char *) "parent", NULL
26495 };
26496
26497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
26498 {
26499 arg1 = wxString_in_helper(obj0);
26500 if (arg1 == NULL) SWIG_fail;
26501 temp1 = True;
26502 }
26503 if (obj1) {
26504 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26505 }
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
26509
26510 wxPyEndAllowThreads(__tstate);
26511 if (PyErr_Occurred()) SWIG_fail;
26512 }
26513 {
26514 resultobj = wxPyMake_wxObject(result);
26515 }
26516 {
26517 if (temp1)
26518 delete arg1;
26519 }
26520 return resultobj;
26521 fail:
26522 {
26523 if (temp1)
26524 delete arg1;
26525 }
26526 return NULL;
26527 }
26528
26529
26530 static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
26531 PyObject *resultobj;
26532 unsigned long arg1 ;
26533 wxWindow *result;
26534 PyObject * obj0 = 0 ;
26535 char *kwnames[] = {
26536 (char *) "hWnd", NULL
26537 };
26538
26539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail;
26540 {
26541 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
26542 if (PyErr_Occurred()) SWIG_fail;
26543 }
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
26546 result = (wxWindow *)wxWindow_FromHWND(arg1);
26547
26548 wxPyEndAllowThreads(__tstate);
26549 if (PyErr_Occurred()) SWIG_fail;
26550 }
26551 {
26552 resultobj = wxPyMake_wxObject(result);
26553 }
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj;
26562 wxValidator *result;
26563 char *kwnames[] = {
26564 NULL
26565 };
26566
26567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
26568 {
26569 PyThreadState* __tstate = wxPyBeginAllowThreads();
26570 result = (wxValidator *)new wxValidator();
26571
26572 wxPyEndAllowThreads(__tstate);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 }
26575 {
26576 resultobj = wxPyMake_wxObject(result);
26577 }
26578 return resultobj;
26579 fail:
26580 return NULL;
26581 }
26582
26583
26584 static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
26585 PyObject *resultobj;
26586 wxValidator *arg1 = (wxValidator *) 0 ;
26587 wxValidator *result;
26588 PyObject * obj0 = 0 ;
26589 char *kwnames[] = {
26590 (char *) "self", NULL
26591 };
26592
26593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
26594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26595 {
26596 PyThreadState* __tstate = wxPyBeginAllowThreads();
26597 result = (wxValidator *)(arg1)->Clone();
26598
26599 wxPyEndAllowThreads(__tstate);
26600 if (PyErr_Occurred()) SWIG_fail;
26601 }
26602 {
26603 resultobj = wxPyMake_wxObject(result);
26604 }
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj;
26613 wxValidator *arg1 = (wxValidator *) 0 ;
26614 wxWindow *arg2 = (wxWindow *) 0 ;
26615 bool result;
26616 PyObject * obj0 = 0 ;
26617 PyObject * obj1 = 0 ;
26618 char *kwnames[] = {
26619 (char *) "self",(char *) "parent", NULL
26620 };
26621
26622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
26623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26624 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 result = (bool)(arg1)->Validate(arg2);
26628
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 resultobj = SWIG_PyObj_FromBool((bool)result);
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26640 PyObject *resultobj;
26641 wxValidator *arg1 = (wxValidator *) 0 ;
26642 bool result;
26643 PyObject * obj0 = 0 ;
26644 char *kwnames[] = {
26645 (char *) "self", NULL
26646 };
26647
26648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
26649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26650 {
26651 PyThreadState* __tstate = wxPyBeginAllowThreads();
26652 result = (bool)(arg1)->TransferToWindow();
26653
26654 wxPyEndAllowThreads(__tstate);
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 resultobj = SWIG_PyObj_FromBool((bool)result);
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26665 PyObject *resultobj;
26666 wxValidator *arg1 = (wxValidator *) 0 ;
26667 bool result;
26668 PyObject * obj0 = 0 ;
26669 char *kwnames[] = {
26670 (char *) "self", NULL
26671 };
26672
26673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
26674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26675 {
26676 PyThreadState* __tstate = wxPyBeginAllowThreads();
26677 result = (bool)(arg1)->TransferFromWindow();
26678
26679 wxPyEndAllowThreads(__tstate);
26680 if (PyErr_Occurred()) SWIG_fail;
26681 }
26682 resultobj = SWIG_PyObj_FromBool((bool)result);
26683 return resultobj;
26684 fail:
26685 return NULL;
26686 }
26687
26688
26689 static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26690 PyObject *resultobj;
26691 wxValidator *arg1 = (wxValidator *) 0 ;
26692 wxWindow *result;
26693 PyObject * obj0 = 0 ;
26694 char *kwnames[] = {
26695 (char *) "self", NULL
26696 };
26697
26698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
26699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 result = (wxWindow *)(arg1)->GetWindow();
26703
26704 wxPyEndAllowThreads(__tstate);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 }
26707 {
26708 resultobj = wxPyMake_wxObject(result);
26709 }
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj;
26718 wxValidator *arg1 = (wxValidator *) 0 ;
26719 wxWindow *arg2 = (wxWindow *) 0 ;
26720 PyObject * obj0 = 0 ;
26721 PyObject * obj1 = 0 ;
26722 char *kwnames[] = {
26723 (char *) "self",(char *) "window", NULL
26724 };
26725
26726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
26727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26728 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 (arg1)->SetWindow(arg2);
26732
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 Py_INCREF(Py_None); resultobj = Py_None;
26737 return resultobj;
26738 fail:
26739 return NULL;
26740 }
26741
26742
26743 static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
26744 PyObject *resultobj;
26745 bool result;
26746 char *kwnames[] = {
26747 NULL
26748 };
26749
26750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
26751 {
26752 PyThreadState* __tstate = wxPyBeginAllowThreads();
26753 result = (bool)wxValidator::IsSilent();
26754
26755 wxPyEndAllowThreads(__tstate);
26756 if (PyErr_Occurred()) SWIG_fail;
26757 }
26758 resultobj = SWIG_PyObj_FromBool((bool)result);
26759 return resultobj;
26760 fail:
26761 return NULL;
26762 }
26763
26764
26765 static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
26766 PyObject *resultobj;
26767 int arg1 = (int) True ;
26768 PyObject * obj0 = 0 ;
26769 char *kwnames[] = {
26770 (char *) "doIt", NULL
26771 };
26772
26773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
26774 if (obj0) {
26775 {
26776 arg1 = (int) SWIG_PyObj_AsInt(obj0);
26777 if (PyErr_Occurred()) SWIG_fail;
26778 }
26779 }
26780 {
26781 PyThreadState* __tstate = wxPyBeginAllowThreads();
26782 wxValidator::SetBellOnError(arg1);
26783
26784 wxPyEndAllowThreads(__tstate);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 }
26787 Py_INCREF(Py_None); resultobj = Py_None;
26788 return resultobj;
26789 fail:
26790 return NULL;
26791 }
26792
26793
26794 static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
26795 PyObject *obj;
26796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26797 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
26798 Py_INCREF(obj);
26799 return Py_BuildValue((char *)"");
26800 }
26801 static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
26802 PyObject *resultobj;
26803 wxPyValidator *result;
26804 char *kwnames[] = {
26805 NULL
26806 };
26807
26808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 result = (wxPyValidator *)new wxPyValidator();
26812
26813 wxPyEndAllowThreads(__tstate);
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1);
26817 return resultobj;
26818 fail:
26819 return NULL;
26820 }
26821
26822
26823 static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26824 PyObject *resultobj;
26825 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
26826 PyObject *arg2 = (PyObject *) 0 ;
26827 PyObject *arg3 = (PyObject *) 0 ;
26828 int arg4 = (int) True ;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 char *kwnames[] = {
26834 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26835 };
26836
26837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26839 arg2 = obj1;
26840 arg3 = obj2;
26841 if (obj3) {
26842 {
26843 arg4 = (int) SWIG_PyObj_AsInt(obj3);
26844 if (PyErr_Occurred()) SWIG_fail;
26845 }
26846 }
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26850
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 Py_INCREF(Py_None); resultobj = Py_None;
26855 return resultobj;
26856 fail:
26857 return NULL;
26858 }
26859
26860
26861 static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
26862 PyObject *obj;
26863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26864 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
26865 Py_INCREF(obj);
26866 return Py_BuildValue((char *)"");
26867 }
26868 static int _wrap_DefaultValidator_set(PyObject *_val) {
26869 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
26870 return 1;
26871 }
26872
26873
26874 static PyObject *_wrap_DefaultValidator_get() {
26875 PyObject *pyobj;
26876
26877 pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0);
26878 return pyobj;
26879 }
26880
26881
26882 static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
26883 PyObject *resultobj;
26884 wxString const &arg1_defvalue = wxPyEmptyString ;
26885 wxString *arg1 = (wxString *) &arg1_defvalue ;
26886 long arg2 = (long) 0 ;
26887 wxMenu *result;
26888 bool temp1 = False ;
26889 PyObject * obj0 = 0 ;
26890 PyObject * obj1 = 0 ;
26891 char *kwnames[] = {
26892 (char *) "title",(char *) "style", NULL
26893 };
26894
26895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
26896 if (obj0) {
26897 {
26898 arg1 = wxString_in_helper(obj0);
26899 if (arg1 == NULL) SWIG_fail;
26900 temp1 = True;
26901 }
26902 }
26903 if (obj1) {
26904 {
26905 arg2 = (long) SWIG_PyObj_AsLong(obj1);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 }
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
26912
26913 wxPyEndAllowThreads(__tstate);
26914 if (PyErr_Occurred()) SWIG_fail;
26915 }
26916 {
26917 resultobj = wxPyMake_wxObject(result);
26918 }
26919 {
26920 if (temp1)
26921 delete arg1;
26922 }
26923 return resultobj;
26924 fail:
26925 {
26926 if (temp1)
26927 delete arg1;
26928 }
26929 return NULL;
26930 }
26931
26932
26933 static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxMenu *arg1 = (wxMenu *) 0 ;
26936 int arg2 ;
26937 wxString *arg3 = 0 ;
26938 wxString const &arg4_defvalue = wxPyEmptyString ;
26939 wxString *arg4 = (wxString *) &arg4_defvalue ;
26940 int arg5 = (int) wxITEM_NORMAL ;
26941 wxMenuItem *result;
26942 bool temp3 = False ;
26943 bool temp4 = False ;
26944 PyObject * obj0 = 0 ;
26945 PyObject * obj1 = 0 ;
26946 PyObject * obj2 = 0 ;
26947 PyObject * obj3 = 0 ;
26948 PyObject * obj4 = 0 ;
26949 char *kwnames[] = {
26950 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
26951 };
26952
26953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26955 {
26956 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 {
26960 arg3 = wxString_in_helper(obj2);
26961 if (arg3 == NULL) SWIG_fail;
26962 temp3 = True;
26963 }
26964 if (obj3) {
26965 {
26966 arg4 = wxString_in_helper(obj3);
26967 if (arg4 == NULL) SWIG_fail;
26968 temp4 = True;
26969 }
26970 }
26971 if (obj4) {
26972 {
26973 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 }
26977 {
26978 PyThreadState* __tstate = wxPyBeginAllowThreads();
26979 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
26980
26981 wxPyEndAllowThreads(__tstate);
26982 if (PyErr_Occurred()) SWIG_fail;
26983 }
26984 {
26985 resultobj = wxPyMake_wxObject(result);
26986 }
26987 {
26988 if (temp3)
26989 delete arg3;
26990 }
26991 {
26992 if (temp4)
26993 delete arg4;
26994 }
26995 return resultobj;
26996 fail:
26997 {
26998 if (temp3)
26999 delete arg3;
27000 }
27001 {
27002 if (temp4)
27003 delete arg4;
27004 }
27005 return NULL;
27006 }
27007
27008
27009 static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27010 PyObject *resultobj;
27011 wxMenu *arg1 = (wxMenu *) 0 ;
27012 wxMenuItem *result;
27013 PyObject * obj0 = 0 ;
27014 char *kwnames[] = {
27015 (char *) "self", NULL
27016 };
27017
27018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
27019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27020 {
27021 PyThreadState* __tstate = wxPyBeginAllowThreads();
27022 result = (wxMenuItem *)(arg1)->AppendSeparator();
27023
27024 wxPyEndAllowThreads(__tstate);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 {
27028 resultobj = wxPyMake_wxObject(result);
27029 }
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj;
27038 wxMenu *arg1 = (wxMenu *) 0 ;
27039 int arg2 ;
27040 wxString *arg3 = 0 ;
27041 wxString const &arg4_defvalue = wxPyEmptyString ;
27042 wxString *arg4 = (wxString *) &arg4_defvalue ;
27043 wxMenuItem *result;
27044 bool temp3 = False ;
27045 bool temp4 = False ;
27046 PyObject * obj0 = 0 ;
27047 PyObject * obj1 = 0 ;
27048 PyObject * obj2 = 0 ;
27049 PyObject * obj3 = 0 ;
27050 char *kwnames[] = {
27051 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
27052 };
27053
27054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27056 {
27057 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 {
27061 arg3 = wxString_in_helper(obj2);
27062 if (arg3 == NULL) SWIG_fail;
27063 temp3 = True;
27064 }
27065 if (obj3) {
27066 {
27067 arg4 = wxString_in_helper(obj3);
27068 if (arg4 == NULL) SWIG_fail;
27069 temp4 = True;
27070 }
27071 }
27072 {
27073 PyThreadState* __tstate = wxPyBeginAllowThreads();
27074 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
27075
27076 wxPyEndAllowThreads(__tstate);
27077 if (PyErr_Occurred()) SWIG_fail;
27078 }
27079 {
27080 resultobj = wxPyMake_wxObject(result);
27081 }
27082 {
27083 if (temp3)
27084 delete arg3;
27085 }
27086 {
27087 if (temp4)
27088 delete arg4;
27089 }
27090 return resultobj;
27091 fail:
27092 {
27093 if (temp3)
27094 delete arg3;
27095 }
27096 {
27097 if (temp4)
27098 delete arg4;
27099 }
27100 return NULL;
27101 }
27102
27103
27104 static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27105 PyObject *resultobj;
27106 wxMenu *arg1 = (wxMenu *) 0 ;
27107 int arg2 ;
27108 wxString *arg3 = 0 ;
27109 wxString const &arg4_defvalue = wxPyEmptyString ;
27110 wxString *arg4 = (wxString *) &arg4_defvalue ;
27111 wxMenuItem *result;
27112 bool temp3 = False ;
27113 bool temp4 = False ;
27114 PyObject * obj0 = 0 ;
27115 PyObject * obj1 = 0 ;
27116 PyObject * obj2 = 0 ;
27117 PyObject * obj3 = 0 ;
27118 char *kwnames[] = {
27119 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
27120 };
27121
27122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27124 {
27125 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27126 if (PyErr_Occurred()) SWIG_fail;
27127 }
27128 {
27129 arg3 = wxString_in_helper(obj2);
27130 if (arg3 == NULL) SWIG_fail;
27131 temp3 = True;
27132 }
27133 if (obj3) {
27134 {
27135 arg4 = wxString_in_helper(obj3);
27136 if (arg4 == NULL) SWIG_fail;
27137 temp4 = True;
27138 }
27139 }
27140 {
27141 PyThreadState* __tstate = wxPyBeginAllowThreads();
27142 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
27143
27144 wxPyEndAllowThreads(__tstate);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 }
27147 {
27148 resultobj = wxPyMake_wxObject(result);
27149 }
27150 {
27151 if (temp3)
27152 delete arg3;
27153 }
27154 {
27155 if (temp4)
27156 delete arg4;
27157 }
27158 return resultobj;
27159 fail:
27160 {
27161 if (temp3)
27162 delete arg3;
27163 }
27164 {
27165 if (temp4)
27166 delete arg4;
27167 }
27168 return NULL;
27169 }
27170
27171
27172 static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27173 PyObject *resultobj;
27174 wxMenu *arg1 = (wxMenu *) 0 ;
27175 int arg2 ;
27176 wxString *arg3 = 0 ;
27177 wxMenu *arg4 = (wxMenu *) 0 ;
27178 wxString const &arg5_defvalue = wxPyEmptyString ;
27179 wxString *arg5 = (wxString *) &arg5_defvalue ;
27180 wxMenuItem *result;
27181 bool temp3 = False ;
27182 bool temp5 = False ;
27183 PyObject * obj0 = 0 ;
27184 PyObject * obj1 = 0 ;
27185 PyObject * obj2 = 0 ;
27186 PyObject * obj3 = 0 ;
27187 PyObject * obj4 = 0 ;
27188 char *kwnames[] = {
27189 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
27190 };
27191
27192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27194 {
27195 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27196 if (PyErr_Occurred()) SWIG_fail;
27197 }
27198 {
27199 arg3 = wxString_in_helper(obj2);
27200 if (arg3 == NULL) SWIG_fail;
27201 temp3 = True;
27202 }
27203 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27204 if (obj4) {
27205 {
27206 arg5 = wxString_in_helper(obj4);
27207 if (arg5 == NULL) SWIG_fail;
27208 temp5 = True;
27209 }
27210 }
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
27214
27215 wxPyEndAllowThreads(__tstate);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 {
27219 resultobj = wxPyMake_wxObject(result);
27220 }
27221 {
27222 if (temp3)
27223 delete arg3;
27224 }
27225 {
27226 if (temp5)
27227 delete arg5;
27228 }
27229 return resultobj;
27230 fail:
27231 {
27232 if (temp3)
27233 delete arg3;
27234 }
27235 {
27236 if (temp5)
27237 delete arg5;
27238 }
27239 return NULL;
27240 }
27241
27242
27243 static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27244 PyObject *resultobj;
27245 wxMenu *arg1 = (wxMenu *) 0 ;
27246 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
27247 wxMenuItem *result;
27248 PyObject * obj0 = 0 ;
27249 PyObject * obj1 = 0 ;
27250 char *kwnames[] = {
27251 (char *) "self",(char *) "item", NULL
27252 };
27253
27254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
27255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27256 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27257 {
27258 PyThreadState* __tstate = wxPyBeginAllowThreads();
27259 result = (wxMenuItem *)(arg1)->Append(arg2);
27260
27261 wxPyEndAllowThreads(__tstate);
27262 if (PyErr_Occurred()) SWIG_fail;
27263 }
27264 {
27265 resultobj = wxPyMake_wxObject(result);
27266 }
27267 return resultobj;
27268 fail:
27269 return NULL;
27270 }
27271
27272
27273 static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
27274 PyObject *resultobj;
27275 wxMenu *arg1 = (wxMenu *) 0 ;
27276 PyObject * obj0 = 0 ;
27277 char *kwnames[] = {
27278 (char *) "self", NULL
27279 };
27280
27281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
27282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 (arg1)->Break();
27286
27287 wxPyEndAllowThreads(__tstate);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 Py_INCREF(Py_None); resultobj = Py_None;
27291 return resultobj;
27292 fail:
27293 return NULL;
27294 }
27295
27296
27297 static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27298 PyObject *resultobj;
27299 wxMenu *arg1 = (wxMenu *) 0 ;
27300 size_t arg2 ;
27301 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
27302 wxMenuItem *result;
27303 PyObject * obj0 = 0 ;
27304 PyObject * obj1 = 0 ;
27305 PyObject * obj2 = 0 ;
27306 char *kwnames[] = {
27307 (char *) "self",(char *) "pos",(char *) "item", NULL
27308 };
27309
27310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27312 {
27313 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27314 if (PyErr_Occurred()) SWIG_fail;
27315 }
27316 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27317 {
27318 PyThreadState* __tstate = wxPyBeginAllowThreads();
27319 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
27320
27321 wxPyEndAllowThreads(__tstate);
27322 if (PyErr_Occurred()) SWIG_fail;
27323 }
27324 {
27325 resultobj = wxPyMake_wxObject(result);
27326 }
27327 return resultobj;
27328 fail:
27329 return NULL;
27330 }
27331
27332
27333 static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
27334 PyObject *resultobj;
27335 wxMenu *arg1 = (wxMenu *) 0 ;
27336 size_t arg2 ;
27337 int arg3 ;
27338 wxString *arg4 = 0 ;
27339 wxString const &arg5_defvalue = wxPyEmptyString ;
27340 wxString *arg5 = (wxString *) &arg5_defvalue ;
27341 int arg6 = (int) wxITEM_NORMAL ;
27342 wxMenuItem *result;
27343 bool temp4 = False ;
27344 bool temp5 = False ;
27345 PyObject * obj0 = 0 ;
27346 PyObject * obj1 = 0 ;
27347 PyObject * obj2 = 0 ;
27348 PyObject * obj3 = 0 ;
27349 PyObject * obj4 = 0 ;
27350 PyObject * obj5 = 0 ;
27351 char *kwnames[] = {
27352 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
27353 };
27354
27355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27357 {
27358 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27359 if (PyErr_Occurred()) SWIG_fail;
27360 }
27361 {
27362 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 {
27366 arg4 = wxString_in_helper(obj3);
27367 if (arg4 == NULL) SWIG_fail;
27368 temp4 = True;
27369 }
27370 if (obj4) {
27371 {
27372 arg5 = wxString_in_helper(obj4);
27373 if (arg5 == NULL) SWIG_fail;
27374 temp5 = True;
27375 }
27376 }
27377 if (obj5) {
27378 {
27379 arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 }
27383 {
27384 PyThreadState* __tstate = wxPyBeginAllowThreads();
27385 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
27386
27387 wxPyEndAllowThreads(__tstate);
27388 if (PyErr_Occurred()) SWIG_fail;
27389 }
27390 {
27391 resultobj = wxPyMake_wxObject(result);
27392 }
27393 {
27394 if (temp4)
27395 delete arg4;
27396 }
27397 {
27398 if (temp5)
27399 delete arg5;
27400 }
27401 return resultobj;
27402 fail:
27403 {
27404 if (temp4)
27405 delete arg4;
27406 }
27407 {
27408 if (temp5)
27409 delete arg5;
27410 }
27411 return NULL;
27412 }
27413
27414
27415 static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27416 PyObject *resultobj;
27417 wxMenu *arg1 = (wxMenu *) 0 ;
27418 size_t arg2 ;
27419 wxMenuItem *result;
27420 PyObject * obj0 = 0 ;
27421 PyObject * obj1 = 0 ;
27422 char *kwnames[] = {
27423 (char *) "self",(char *) "pos", NULL
27424 };
27425
27426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
27427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27428 {
27429 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27430 if (PyErr_Occurred()) SWIG_fail;
27431 }
27432 {
27433 PyThreadState* __tstate = wxPyBeginAllowThreads();
27434 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
27435
27436 wxPyEndAllowThreads(__tstate);
27437 if (PyErr_Occurred()) SWIG_fail;
27438 }
27439 {
27440 resultobj = wxPyMake_wxObject(result);
27441 }
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27449 PyObject *resultobj;
27450 wxMenu *arg1 = (wxMenu *) 0 ;
27451 size_t arg2 ;
27452 int arg3 ;
27453 wxString *arg4 = 0 ;
27454 wxString const &arg5_defvalue = wxPyEmptyString ;
27455 wxString *arg5 = (wxString *) &arg5_defvalue ;
27456 wxMenuItem *result;
27457 bool temp4 = False ;
27458 bool temp5 = False ;
27459 PyObject * obj0 = 0 ;
27460 PyObject * obj1 = 0 ;
27461 PyObject * obj2 = 0 ;
27462 PyObject * obj3 = 0 ;
27463 PyObject * obj4 = 0 ;
27464 char *kwnames[] = {
27465 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
27466 };
27467
27468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27470 {
27471 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27472 if (PyErr_Occurred()) SWIG_fail;
27473 }
27474 {
27475 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 {
27479 arg4 = wxString_in_helper(obj3);
27480 if (arg4 == NULL) SWIG_fail;
27481 temp4 = True;
27482 }
27483 if (obj4) {
27484 {
27485 arg5 = wxString_in_helper(obj4);
27486 if (arg5 == NULL) SWIG_fail;
27487 temp5 = True;
27488 }
27489 }
27490 {
27491 PyThreadState* __tstate = wxPyBeginAllowThreads();
27492 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
27493
27494 wxPyEndAllowThreads(__tstate);
27495 if (PyErr_Occurred()) SWIG_fail;
27496 }
27497 {
27498 resultobj = wxPyMake_wxObject(result);
27499 }
27500 {
27501 if (temp4)
27502 delete arg4;
27503 }
27504 {
27505 if (temp5)
27506 delete arg5;
27507 }
27508 return resultobj;
27509 fail:
27510 {
27511 if (temp4)
27512 delete arg4;
27513 }
27514 {
27515 if (temp5)
27516 delete arg5;
27517 }
27518 return NULL;
27519 }
27520
27521
27522 static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27523 PyObject *resultobj;
27524 wxMenu *arg1 = (wxMenu *) 0 ;
27525 size_t arg2 ;
27526 int arg3 ;
27527 wxString *arg4 = 0 ;
27528 wxString const &arg5_defvalue = wxPyEmptyString ;
27529 wxString *arg5 = (wxString *) &arg5_defvalue ;
27530 wxMenuItem *result;
27531 bool temp4 = False ;
27532 bool temp5 = False ;
27533 PyObject * obj0 = 0 ;
27534 PyObject * obj1 = 0 ;
27535 PyObject * obj2 = 0 ;
27536 PyObject * obj3 = 0 ;
27537 PyObject * obj4 = 0 ;
27538 char *kwnames[] = {
27539 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
27540 };
27541
27542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27544 {
27545 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 }
27548 {
27549 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27550 if (PyErr_Occurred()) SWIG_fail;
27551 }
27552 {
27553 arg4 = wxString_in_helper(obj3);
27554 if (arg4 == NULL) SWIG_fail;
27555 temp4 = True;
27556 }
27557 if (obj4) {
27558 {
27559 arg5 = wxString_in_helper(obj4);
27560 if (arg5 == NULL) SWIG_fail;
27561 temp5 = True;
27562 }
27563 }
27564 {
27565 PyThreadState* __tstate = wxPyBeginAllowThreads();
27566 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
27567
27568 wxPyEndAllowThreads(__tstate);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 {
27572 resultobj = wxPyMake_wxObject(result);
27573 }
27574 {
27575 if (temp4)
27576 delete arg4;
27577 }
27578 {
27579 if (temp5)
27580 delete arg5;
27581 }
27582 return resultobj;
27583 fail:
27584 {
27585 if (temp4)
27586 delete arg4;
27587 }
27588 {
27589 if (temp5)
27590 delete arg5;
27591 }
27592 return NULL;
27593 }
27594
27595
27596 static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27597 PyObject *resultobj;
27598 wxMenu *arg1 = (wxMenu *) 0 ;
27599 size_t arg2 ;
27600 int arg3 ;
27601 wxString *arg4 = 0 ;
27602 wxMenu *arg5 = (wxMenu *) 0 ;
27603 wxString const &arg6_defvalue = wxPyEmptyString ;
27604 wxString *arg6 = (wxString *) &arg6_defvalue ;
27605 wxMenuItem *result;
27606 bool temp4 = False ;
27607 bool temp6 = False ;
27608 PyObject * obj0 = 0 ;
27609 PyObject * obj1 = 0 ;
27610 PyObject * obj2 = 0 ;
27611 PyObject * obj3 = 0 ;
27612 PyObject * obj4 = 0 ;
27613 PyObject * obj5 = 0 ;
27614 char *kwnames[] = {
27615 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
27616 };
27617
27618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27620 {
27621 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 {
27625 arg3 = (int) SWIG_PyObj_AsInt(obj2);
27626 if (PyErr_Occurred()) SWIG_fail;
27627 }
27628 {
27629 arg4 = wxString_in_helper(obj3);
27630 if (arg4 == NULL) SWIG_fail;
27631 temp4 = True;
27632 }
27633 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27634 if (obj5) {
27635 {
27636 arg6 = wxString_in_helper(obj5);
27637 if (arg6 == NULL) SWIG_fail;
27638 temp6 = True;
27639 }
27640 }
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
27644
27645 wxPyEndAllowThreads(__tstate);
27646 if (PyErr_Occurred()) SWIG_fail;
27647 }
27648 {
27649 resultobj = wxPyMake_wxObject(result);
27650 }
27651 {
27652 if (temp4)
27653 delete arg4;
27654 }
27655 {
27656 if (temp6)
27657 delete arg6;
27658 }
27659 return resultobj;
27660 fail:
27661 {
27662 if (temp4)
27663 delete arg4;
27664 }
27665 {
27666 if (temp6)
27667 delete arg6;
27668 }
27669 return NULL;
27670 }
27671
27672
27673 static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27674 PyObject *resultobj;
27675 wxMenu *arg1 = (wxMenu *) 0 ;
27676 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
27677 wxMenuItem *result;
27678 PyObject * obj0 = 0 ;
27679 PyObject * obj1 = 0 ;
27680 char *kwnames[] = {
27681 (char *) "self",(char *) "item", NULL
27682 };
27683
27684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
27685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 result = (wxMenuItem *)(arg1)->Prepend(arg2);
27690
27691 wxPyEndAllowThreads(__tstate);
27692 if (PyErr_Occurred()) SWIG_fail;
27693 }
27694 {
27695 resultobj = wxPyMake_wxObject(result);
27696 }
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj;
27705 wxMenu *arg1 = (wxMenu *) 0 ;
27706 int arg2 ;
27707 wxString *arg3 = 0 ;
27708 wxString const &arg4_defvalue = wxPyEmptyString ;
27709 wxString *arg4 = (wxString *) &arg4_defvalue ;
27710 int arg5 = (int) wxITEM_NORMAL ;
27711 wxMenuItem *result;
27712 bool temp3 = False ;
27713 bool temp4 = False ;
27714 PyObject * obj0 = 0 ;
27715 PyObject * obj1 = 0 ;
27716 PyObject * obj2 = 0 ;
27717 PyObject * obj3 = 0 ;
27718 PyObject * obj4 = 0 ;
27719 char *kwnames[] = {
27720 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
27721 };
27722
27723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27725 {
27726 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27727 if (PyErr_Occurred()) SWIG_fail;
27728 }
27729 {
27730 arg3 = wxString_in_helper(obj2);
27731 if (arg3 == NULL) SWIG_fail;
27732 temp3 = True;
27733 }
27734 if (obj3) {
27735 {
27736 arg4 = wxString_in_helper(obj3);
27737 if (arg4 == NULL) SWIG_fail;
27738 temp4 = True;
27739 }
27740 }
27741 if (obj4) {
27742 {
27743 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
27744 if (PyErr_Occurred()) SWIG_fail;
27745 }
27746 }
27747 {
27748 PyThreadState* __tstate = wxPyBeginAllowThreads();
27749 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
27750
27751 wxPyEndAllowThreads(__tstate);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 {
27755 resultobj = wxPyMake_wxObject(result);
27756 }
27757 {
27758 if (temp3)
27759 delete arg3;
27760 }
27761 {
27762 if (temp4)
27763 delete arg4;
27764 }
27765 return resultobj;
27766 fail:
27767 {
27768 if (temp3)
27769 delete arg3;
27770 }
27771 {
27772 if (temp4)
27773 delete arg4;
27774 }
27775 return NULL;
27776 }
27777
27778
27779 static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27780 PyObject *resultobj;
27781 wxMenu *arg1 = (wxMenu *) 0 ;
27782 wxMenuItem *result;
27783 PyObject * obj0 = 0 ;
27784 char *kwnames[] = {
27785 (char *) "self", NULL
27786 };
27787
27788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
27789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27790 {
27791 PyThreadState* __tstate = wxPyBeginAllowThreads();
27792 result = (wxMenuItem *)(arg1)->PrependSeparator();
27793
27794 wxPyEndAllowThreads(__tstate);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 {
27798 resultobj = wxPyMake_wxObject(result);
27799 }
27800 return resultobj;
27801 fail:
27802 return NULL;
27803 }
27804
27805
27806 static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27807 PyObject *resultobj;
27808 wxMenu *arg1 = (wxMenu *) 0 ;
27809 int arg2 ;
27810 wxString *arg3 = 0 ;
27811 wxString const &arg4_defvalue = wxPyEmptyString ;
27812 wxString *arg4 = (wxString *) &arg4_defvalue ;
27813 wxMenuItem *result;
27814 bool temp3 = False ;
27815 bool temp4 = False ;
27816 PyObject * obj0 = 0 ;
27817 PyObject * obj1 = 0 ;
27818 PyObject * obj2 = 0 ;
27819 PyObject * obj3 = 0 ;
27820 char *kwnames[] = {
27821 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
27822 };
27823
27824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27826 {
27827 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27828 if (PyErr_Occurred()) SWIG_fail;
27829 }
27830 {
27831 arg3 = wxString_in_helper(obj2);
27832 if (arg3 == NULL) SWIG_fail;
27833 temp3 = True;
27834 }
27835 if (obj3) {
27836 {
27837 arg4 = wxString_in_helper(obj3);
27838 if (arg4 == NULL) SWIG_fail;
27839 temp4 = True;
27840 }
27841 }
27842 {
27843 PyThreadState* __tstate = wxPyBeginAllowThreads();
27844 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
27845
27846 wxPyEndAllowThreads(__tstate);
27847 if (PyErr_Occurred()) SWIG_fail;
27848 }
27849 {
27850 resultobj = wxPyMake_wxObject(result);
27851 }
27852 {
27853 if (temp3)
27854 delete arg3;
27855 }
27856 {
27857 if (temp4)
27858 delete arg4;
27859 }
27860 return resultobj;
27861 fail:
27862 {
27863 if (temp3)
27864 delete arg3;
27865 }
27866 {
27867 if (temp4)
27868 delete arg4;
27869 }
27870 return NULL;
27871 }
27872
27873
27874 static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27875 PyObject *resultobj;
27876 wxMenu *arg1 = (wxMenu *) 0 ;
27877 int arg2 ;
27878 wxString *arg3 = 0 ;
27879 wxString const &arg4_defvalue = wxPyEmptyString ;
27880 wxString *arg4 = (wxString *) &arg4_defvalue ;
27881 wxMenuItem *result;
27882 bool temp3 = False ;
27883 bool temp4 = False ;
27884 PyObject * obj0 = 0 ;
27885 PyObject * obj1 = 0 ;
27886 PyObject * obj2 = 0 ;
27887 PyObject * obj3 = 0 ;
27888 char *kwnames[] = {
27889 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
27890 };
27891
27892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27894 {
27895 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27896 if (PyErr_Occurred()) SWIG_fail;
27897 }
27898 {
27899 arg3 = wxString_in_helper(obj2);
27900 if (arg3 == NULL) SWIG_fail;
27901 temp3 = True;
27902 }
27903 if (obj3) {
27904 {
27905 arg4 = wxString_in_helper(obj3);
27906 if (arg4 == NULL) SWIG_fail;
27907 temp4 = True;
27908 }
27909 }
27910 {
27911 PyThreadState* __tstate = wxPyBeginAllowThreads();
27912 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
27913
27914 wxPyEndAllowThreads(__tstate);
27915 if (PyErr_Occurred()) SWIG_fail;
27916 }
27917 {
27918 resultobj = wxPyMake_wxObject(result);
27919 }
27920 {
27921 if (temp3)
27922 delete arg3;
27923 }
27924 {
27925 if (temp4)
27926 delete arg4;
27927 }
27928 return resultobj;
27929 fail:
27930 {
27931 if (temp3)
27932 delete arg3;
27933 }
27934 {
27935 if (temp4)
27936 delete arg4;
27937 }
27938 return NULL;
27939 }
27940
27941
27942 static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27943 PyObject *resultobj;
27944 wxMenu *arg1 = (wxMenu *) 0 ;
27945 int arg2 ;
27946 wxString *arg3 = 0 ;
27947 wxMenu *arg4 = (wxMenu *) 0 ;
27948 wxString const &arg5_defvalue = wxPyEmptyString ;
27949 wxString *arg5 = (wxString *) &arg5_defvalue ;
27950 wxMenuItem *result;
27951 bool temp3 = False ;
27952 bool temp5 = False ;
27953 PyObject * obj0 = 0 ;
27954 PyObject * obj1 = 0 ;
27955 PyObject * obj2 = 0 ;
27956 PyObject * obj3 = 0 ;
27957 PyObject * obj4 = 0 ;
27958 char *kwnames[] = {
27959 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
27960 };
27961
27962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27964 {
27965 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 {
27969 arg3 = wxString_in_helper(obj2);
27970 if (arg3 == NULL) SWIG_fail;
27971 temp3 = True;
27972 }
27973 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27974 if (obj4) {
27975 {
27976 arg5 = wxString_in_helper(obj4);
27977 if (arg5 == NULL) SWIG_fail;
27978 temp5 = True;
27979 }
27980 }
27981 {
27982 PyThreadState* __tstate = wxPyBeginAllowThreads();
27983 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
27984
27985 wxPyEndAllowThreads(__tstate);
27986 if (PyErr_Occurred()) SWIG_fail;
27987 }
27988 {
27989 resultobj = wxPyMake_wxObject(result);
27990 }
27991 {
27992 if (temp3)
27993 delete arg3;
27994 }
27995 {
27996 if (temp5)
27997 delete arg5;
27998 }
27999 return resultobj;
28000 fail:
28001 {
28002 if (temp3)
28003 delete arg3;
28004 }
28005 {
28006 if (temp5)
28007 delete arg5;
28008 }
28009 return NULL;
28010 }
28011
28012
28013 static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
28014 PyObject *resultobj;
28015 wxMenu *arg1 = (wxMenu *) 0 ;
28016 int arg2 ;
28017 wxMenuItem *result;
28018 PyObject * obj0 = 0 ;
28019 PyObject * obj1 = 0 ;
28020 char *kwnames[] = {
28021 (char *) "self",(char *) "id", NULL
28022 };
28023
28024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
28025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28026 {
28027 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 {
28031 PyThreadState* __tstate = wxPyBeginAllowThreads();
28032 result = (wxMenuItem *)(arg1)->Remove(arg2);
28033
28034 wxPyEndAllowThreads(__tstate);
28035 if (PyErr_Occurred()) SWIG_fail;
28036 }
28037 {
28038 resultobj = wxPyMake_wxObject(result);
28039 }
28040 return resultobj;
28041 fail:
28042 return NULL;
28043 }
28044
28045
28046 static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28047 PyObject *resultobj;
28048 wxMenu *arg1 = (wxMenu *) 0 ;
28049 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28050 wxMenuItem *result;
28051 PyObject * obj0 = 0 ;
28052 PyObject * obj1 = 0 ;
28053 char *kwnames[] = {
28054 (char *) "self",(char *) "item", NULL
28055 };
28056
28057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
28058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28059 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28060 {
28061 PyThreadState* __tstate = wxPyBeginAllowThreads();
28062 result = (wxMenuItem *)(arg1)->Remove(arg2);
28063
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 {
28068 resultobj = wxPyMake_wxObject(result);
28069 }
28070 return resultobj;
28071 fail:
28072 return NULL;
28073 }
28074
28075
28076 static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
28077 PyObject *resultobj;
28078 wxMenu *arg1 = (wxMenu *) 0 ;
28079 int arg2 ;
28080 bool result;
28081 PyObject * obj0 = 0 ;
28082 PyObject * obj1 = 0 ;
28083 char *kwnames[] = {
28084 (char *) "self",(char *) "id", NULL
28085 };
28086
28087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
28088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28089 {
28090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28091 if (PyErr_Occurred()) SWIG_fail;
28092 }
28093 {
28094 PyThreadState* __tstate = wxPyBeginAllowThreads();
28095 result = (bool)(arg1)->Delete(arg2);
28096
28097 wxPyEndAllowThreads(__tstate);
28098 if (PyErr_Occurred()) SWIG_fail;
28099 }
28100 resultobj = SWIG_PyObj_FromBool((bool)result);
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28108 PyObject *resultobj;
28109 wxMenu *arg1 = (wxMenu *) 0 ;
28110 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28111 bool result;
28112 PyObject * obj0 = 0 ;
28113 PyObject * obj1 = 0 ;
28114 char *kwnames[] = {
28115 (char *) "self",(char *) "item", NULL
28116 };
28117
28118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
28119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28120 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28121 {
28122 PyThreadState* __tstate = wxPyBeginAllowThreads();
28123 result = (bool)(arg1)->Delete(arg2);
28124
28125 wxPyEndAllowThreads(__tstate);
28126 if (PyErr_Occurred()) SWIG_fail;
28127 }
28128 resultobj = SWIG_PyObj_FromBool((bool)result);
28129 return resultobj;
28130 fail:
28131 return NULL;
28132 }
28133
28134
28135 static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
28136 PyObject *resultobj;
28137 wxMenu *arg1 = (wxMenu *) 0 ;
28138 PyObject * obj0 = 0 ;
28139 char *kwnames[] = {
28140 (char *) "self", NULL
28141 };
28142
28143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
28144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28145 {
28146 PyThreadState* __tstate = wxPyBeginAllowThreads();
28147 wxMenu_Destroy(arg1);
28148
28149 wxPyEndAllowThreads(__tstate);
28150 if (PyErr_Occurred()) SWIG_fail;
28151 }
28152 Py_INCREF(Py_None); resultobj = Py_None;
28153 return resultobj;
28154 fail:
28155 return NULL;
28156 }
28157
28158
28159 static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
28160 PyObject *resultobj;
28161 wxMenu *arg1 = (wxMenu *) 0 ;
28162 int arg2 ;
28163 bool result;
28164 PyObject * obj0 = 0 ;
28165 PyObject * obj1 = 0 ;
28166 char *kwnames[] = {
28167 (char *) "self",(char *) "id", NULL
28168 };
28169
28170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
28171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28172 {
28173 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
28176 {
28177 PyThreadState* __tstate = wxPyBeginAllowThreads();
28178 result = (bool)(arg1)->Destroy(arg2);
28179
28180 wxPyEndAllowThreads(__tstate);
28181 if (PyErr_Occurred()) SWIG_fail;
28182 }
28183 resultobj = SWIG_PyObj_FromBool((bool)result);
28184 return resultobj;
28185 fail:
28186 return NULL;
28187 }
28188
28189
28190 static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28191 PyObject *resultobj;
28192 wxMenu *arg1 = (wxMenu *) 0 ;
28193 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28194 bool result;
28195 PyObject * obj0 = 0 ;
28196 PyObject * obj1 = 0 ;
28197 char *kwnames[] = {
28198 (char *) "self",(char *) "item", NULL
28199 };
28200
28201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
28202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28203 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28204 {
28205 PyThreadState* __tstate = wxPyBeginAllowThreads();
28206 result = (bool)(arg1)->Destroy(arg2);
28207
28208 wxPyEndAllowThreads(__tstate);
28209 if (PyErr_Occurred()) SWIG_fail;
28210 }
28211 resultobj = SWIG_PyObj_FromBool((bool)result);
28212 return resultobj;
28213 fail:
28214 return NULL;
28215 }
28216
28217
28218 static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
28219 PyObject *resultobj;
28220 wxMenu *arg1 = (wxMenu *) 0 ;
28221 size_t result;
28222 PyObject * obj0 = 0 ;
28223 char *kwnames[] = {
28224 (char *) "self", NULL
28225 };
28226
28227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
28228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28229 {
28230 PyThreadState* __tstate = wxPyBeginAllowThreads();
28231 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
28232
28233 wxPyEndAllowThreads(__tstate);
28234 if (PyErr_Occurred()) SWIG_fail;
28235 }
28236 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
28237 return resultobj;
28238 fail:
28239 return NULL;
28240 }
28241
28242
28243 static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
28244 PyObject *resultobj;
28245 wxMenu *arg1 = (wxMenu *) 0 ;
28246 PyObject *result;
28247 PyObject * obj0 = 0 ;
28248 char *kwnames[] = {
28249 (char *) "self", NULL
28250 };
28251
28252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
28253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 result = (PyObject *)wxMenu_GetMenuItems(arg1);
28257
28258 wxPyEndAllowThreads(__tstate);
28259 if (PyErr_Occurred()) SWIG_fail;
28260 }
28261 resultobj = result;
28262 return resultobj;
28263 fail:
28264 return NULL;
28265 }
28266
28267
28268 static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28269 PyObject *resultobj;
28270 wxMenu *arg1 = (wxMenu *) 0 ;
28271 wxString *arg2 = 0 ;
28272 int result;
28273 bool temp2 = False ;
28274 PyObject * obj0 = 0 ;
28275 PyObject * obj1 = 0 ;
28276 char *kwnames[] = {
28277 (char *) "self",(char *) "item", NULL
28278 };
28279
28280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
28281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28282 {
28283 arg2 = wxString_in_helper(obj1);
28284 if (arg2 == NULL) SWIG_fail;
28285 temp2 = True;
28286 }
28287 {
28288 PyThreadState* __tstate = wxPyBeginAllowThreads();
28289 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
28290
28291 wxPyEndAllowThreads(__tstate);
28292 if (PyErr_Occurred()) SWIG_fail;
28293 }
28294 resultobj = SWIG_PyObj_FromInt((int)result);
28295 {
28296 if (temp2)
28297 delete arg2;
28298 }
28299 return resultobj;
28300 fail:
28301 {
28302 if (temp2)
28303 delete arg2;
28304 }
28305 return NULL;
28306 }
28307
28308
28309 static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
28310 PyObject *resultobj;
28311 wxMenu *arg1 = (wxMenu *) 0 ;
28312 int arg2 ;
28313 wxMenuItem *result;
28314 PyObject * obj0 = 0 ;
28315 PyObject * obj1 = 0 ;
28316 char *kwnames[] = {
28317 (char *) "self",(char *) "id", NULL
28318 };
28319
28320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
28321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28322 {
28323 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28324 if (PyErr_Occurred()) SWIG_fail;
28325 }
28326 {
28327 PyThreadState* __tstate = wxPyBeginAllowThreads();
28328 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
28329
28330 wxPyEndAllowThreads(__tstate);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 }
28333 {
28334 resultobj = wxPyMake_wxObject(result);
28335 }
28336 return resultobj;
28337 fail:
28338 return NULL;
28339 }
28340
28341
28342 static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28343 PyObject *resultobj;
28344 wxMenu *arg1 = (wxMenu *) 0 ;
28345 size_t arg2 ;
28346 wxMenuItem *result;
28347 PyObject * obj0 = 0 ;
28348 PyObject * obj1 = 0 ;
28349 char *kwnames[] = {
28350 (char *) "self",(char *) "position", NULL
28351 };
28352
28353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
28354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28355 {
28356 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
28357 if (PyErr_Occurred()) SWIG_fail;
28358 }
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
28362
28363 wxPyEndAllowThreads(__tstate);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 {
28367 resultobj = wxPyMake_wxObject(result);
28368 }
28369 return resultobj;
28370 fail:
28371 return NULL;
28372 }
28373
28374
28375 static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
28376 PyObject *resultobj;
28377 wxMenu *arg1 = (wxMenu *) 0 ;
28378 int arg2 ;
28379 bool arg3 ;
28380 PyObject * obj0 = 0 ;
28381 PyObject * obj1 = 0 ;
28382 PyObject * obj2 = 0 ;
28383 char *kwnames[] = {
28384 (char *) "self",(char *) "id",(char *) "enable", NULL
28385 };
28386
28387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
28388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28389 {
28390 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28391 if (PyErr_Occurred()) SWIG_fail;
28392 }
28393 {
28394 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
28395 if (PyErr_Occurred()) SWIG_fail;
28396 }
28397 {
28398 PyThreadState* __tstate = wxPyBeginAllowThreads();
28399 (arg1)->Enable(arg2,arg3);
28400
28401 wxPyEndAllowThreads(__tstate);
28402 if (PyErr_Occurred()) SWIG_fail;
28403 }
28404 Py_INCREF(Py_None); resultobj = Py_None;
28405 return resultobj;
28406 fail:
28407 return NULL;
28408 }
28409
28410
28411 static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
28412 PyObject *resultobj;
28413 wxMenu *arg1 = (wxMenu *) 0 ;
28414 int arg2 ;
28415 bool result;
28416 PyObject * obj0 = 0 ;
28417 PyObject * obj1 = 0 ;
28418 char *kwnames[] = {
28419 (char *) "self",(char *) "id", NULL
28420 };
28421
28422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
28423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28424 {
28425 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 {
28429 PyThreadState* __tstate = wxPyBeginAllowThreads();
28430 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
28431
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 resultobj = SWIG_PyObj_FromBool((bool)result);
28436 return resultobj;
28437 fail:
28438 return NULL;
28439 }
28440
28441
28442 static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
28443 PyObject *resultobj;
28444 wxMenu *arg1 = (wxMenu *) 0 ;
28445 int arg2 ;
28446 bool arg3 ;
28447 PyObject * obj0 = 0 ;
28448 PyObject * obj1 = 0 ;
28449 PyObject * obj2 = 0 ;
28450 char *kwnames[] = {
28451 (char *) "self",(char *) "id",(char *) "check", NULL
28452 };
28453
28454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
28455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28456 {
28457 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28458 if (PyErr_Occurred()) SWIG_fail;
28459 }
28460 {
28461 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
28462 if (PyErr_Occurred()) SWIG_fail;
28463 }
28464 {
28465 PyThreadState* __tstate = wxPyBeginAllowThreads();
28466 (arg1)->Check(arg2,arg3);
28467
28468 wxPyEndAllowThreads(__tstate);
28469 if (PyErr_Occurred()) SWIG_fail;
28470 }
28471 Py_INCREF(Py_None); resultobj = Py_None;
28472 return resultobj;
28473 fail:
28474 return NULL;
28475 }
28476
28477
28478 static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
28479 PyObject *resultobj;
28480 wxMenu *arg1 = (wxMenu *) 0 ;
28481 int arg2 ;
28482 bool result;
28483 PyObject * obj0 = 0 ;
28484 PyObject * obj1 = 0 ;
28485 char *kwnames[] = {
28486 (char *) "self",(char *) "id", NULL
28487 };
28488
28489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
28490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28491 {
28492 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 {
28496 PyThreadState* __tstate = wxPyBeginAllowThreads();
28497 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
28498
28499 wxPyEndAllowThreads(__tstate);
28500 if (PyErr_Occurred()) SWIG_fail;
28501 }
28502 resultobj = SWIG_PyObj_FromBool((bool)result);
28503 return resultobj;
28504 fail:
28505 return NULL;
28506 }
28507
28508
28509 static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28510 PyObject *resultobj;
28511 wxMenu *arg1 = (wxMenu *) 0 ;
28512 int arg2 ;
28513 wxString *arg3 = 0 ;
28514 bool temp3 = False ;
28515 PyObject * obj0 = 0 ;
28516 PyObject * obj1 = 0 ;
28517 PyObject * obj2 = 0 ;
28518 char *kwnames[] = {
28519 (char *) "self",(char *) "id",(char *) "label", NULL
28520 };
28521
28522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
28523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28524 {
28525 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28526 if (PyErr_Occurred()) SWIG_fail;
28527 }
28528 {
28529 arg3 = wxString_in_helper(obj2);
28530 if (arg3 == NULL) SWIG_fail;
28531 temp3 = True;
28532 }
28533 {
28534 PyThreadState* __tstate = wxPyBeginAllowThreads();
28535 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
28536
28537 wxPyEndAllowThreads(__tstate);
28538 if (PyErr_Occurred()) SWIG_fail;
28539 }
28540 Py_INCREF(Py_None); resultobj = Py_None;
28541 {
28542 if (temp3)
28543 delete arg3;
28544 }
28545 return resultobj;
28546 fail:
28547 {
28548 if (temp3)
28549 delete arg3;
28550 }
28551 return NULL;
28552 }
28553
28554
28555 static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28556 PyObject *resultobj;
28557 wxMenu *arg1 = (wxMenu *) 0 ;
28558 int arg2 ;
28559 wxString result;
28560 PyObject * obj0 = 0 ;
28561 PyObject * obj1 = 0 ;
28562 char *kwnames[] = {
28563 (char *) "self",(char *) "id", NULL
28564 };
28565
28566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
28567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28568 {
28569 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28570 if (PyErr_Occurred()) SWIG_fail;
28571 }
28572 {
28573 PyThreadState* __tstate = wxPyBeginAllowThreads();
28574 result = ((wxMenu const *)arg1)->GetLabel(arg2);
28575
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 {
28580 #if wxUSE_UNICODE
28581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28582 #else
28583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28584 #endif
28585 }
28586 return resultobj;
28587 fail:
28588 return NULL;
28589 }
28590
28591
28592 static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
28593 PyObject *resultobj;
28594 wxMenu *arg1 = (wxMenu *) 0 ;
28595 int arg2 ;
28596 wxString *arg3 = 0 ;
28597 bool temp3 = False ;
28598 PyObject * obj0 = 0 ;
28599 PyObject * obj1 = 0 ;
28600 PyObject * obj2 = 0 ;
28601 char *kwnames[] = {
28602 (char *) "self",(char *) "id",(char *) "helpString", NULL
28603 };
28604
28605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
28606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28607 {
28608 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28609 if (PyErr_Occurred()) SWIG_fail;
28610 }
28611 {
28612 arg3 = wxString_in_helper(obj2);
28613 if (arg3 == NULL) SWIG_fail;
28614 temp3 = True;
28615 }
28616 {
28617 PyThreadState* __tstate = wxPyBeginAllowThreads();
28618 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
28619
28620 wxPyEndAllowThreads(__tstate);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 Py_INCREF(Py_None); resultobj = Py_None;
28624 {
28625 if (temp3)
28626 delete arg3;
28627 }
28628 return resultobj;
28629 fail:
28630 {
28631 if (temp3)
28632 delete arg3;
28633 }
28634 return NULL;
28635 }
28636
28637
28638 static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
28639 PyObject *resultobj;
28640 wxMenu *arg1 = (wxMenu *) 0 ;
28641 int arg2 ;
28642 wxString result;
28643 PyObject * obj0 = 0 ;
28644 PyObject * obj1 = 0 ;
28645 char *kwnames[] = {
28646 (char *) "self",(char *) "id", NULL
28647 };
28648
28649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
28650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28651 {
28652 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 {
28656 PyThreadState* __tstate = wxPyBeginAllowThreads();
28657 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
28658
28659 wxPyEndAllowThreads(__tstate);
28660 if (PyErr_Occurred()) SWIG_fail;
28661 }
28662 {
28663 #if wxUSE_UNICODE
28664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28665 #else
28666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28667 #endif
28668 }
28669 return resultobj;
28670 fail:
28671 return NULL;
28672 }
28673
28674
28675 static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
28676 PyObject *resultobj;
28677 wxMenu *arg1 = (wxMenu *) 0 ;
28678 wxString *arg2 = 0 ;
28679 bool temp2 = False ;
28680 PyObject * obj0 = 0 ;
28681 PyObject * obj1 = 0 ;
28682 char *kwnames[] = {
28683 (char *) "self",(char *) "title", NULL
28684 };
28685
28686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
28687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28688 {
28689 arg2 = wxString_in_helper(obj1);
28690 if (arg2 == NULL) SWIG_fail;
28691 temp2 = True;
28692 }
28693 {
28694 PyThreadState* __tstate = wxPyBeginAllowThreads();
28695 (arg1)->SetTitle((wxString const &)*arg2);
28696
28697 wxPyEndAllowThreads(__tstate);
28698 if (PyErr_Occurred()) SWIG_fail;
28699 }
28700 Py_INCREF(Py_None); resultobj = Py_None;
28701 {
28702 if (temp2)
28703 delete arg2;
28704 }
28705 return resultobj;
28706 fail:
28707 {
28708 if (temp2)
28709 delete arg2;
28710 }
28711 return NULL;
28712 }
28713
28714
28715 static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj;
28717 wxMenu *arg1 = (wxMenu *) 0 ;
28718 wxString result;
28719 PyObject * obj0 = 0 ;
28720 char *kwnames[] = {
28721 (char *) "self", NULL
28722 };
28723
28724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
28725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28726 {
28727 PyThreadState* __tstate = wxPyBeginAllowThreads();
28728 result = ((wxMenu const *)arg1)->GetTitle();
28729
28730 wxPyEndAllowThreads(__tstate);
28731 if (PyErr_Occurred()) SWIG_fail;
28732 }
28733 {
28734 #if wxUSE_UNICODE
28735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28736 #else
28737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28738 #endif
28739 }
28740 return resultobj;
28741 fail:
28742 return NULL;
28743 }
28744
28745
28746 static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
28747 PyObject *resultobj;
28748 wxMenu *arg1 = (wxMenu *) 0 ;
28749 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
28750 PyObject * obj0 = 0 ;
28751 PyObject * obj1 = 0 ;
28752 char *kwnames[] = {
28753 (char *) "self",(char *) "handler", NULL
28754 };
28755
28756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
28757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28758 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28759 {
28760 PyThreadState* __tstate = wxPyBeginAllowThreads();
28761 (arg1)->SetEventHandler(arg2);
28762
28763 wxPyEndAllowThreads(__tstate);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 }
28766 Py_INCREF(Py_None); resultobj = Py_None;
28767 return resultobj;
28768 fail:
28769 return NULL;
28770 }
28771
28772
28773 static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
28774 PyObject *resultobj;
28775 wxMenu *arg1 = (wxMenu *) 0 ;
28776 wxEvtHandler *result;
28777 PyObject * obj0 = 0 ;
28778 char *kwnames[] = {
28779 (char *) "self", NULL
28780 };
28781
28782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
28783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28784 {
28785 PyThreadState* __tstate = wxPyBeginAllowThreads();
28786 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
28787
28788 wxPyEndAllowThreads(__tstate);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 {
28792 resultobj = wxPyMake_wxObject(result);
28793 }
28794 return resultobj;
28795 fail:
28796 return NULL;
28797 }
28798
28799
28800 static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28801 PyObject *resultobj;
28802 wxMenu *arg1 = (wxMenu *) 0 ;
28803 wxWindow *arg2 = (wxWindow *) 0 ;
28804 PyObject * obj0 = 0 ;
28805 PyObject * obj1 = 0 ;
28806 char *kwnames[] = {
28807 (char *) "self",(char *) "win", NULL
28808 };
28809
28810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
28811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28812 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 (arg1)->SetInvokingWindow(arg2);
28816
28817 wxPyEndAllowThreads(__tstate);
28818 if (PyErr_Occurred()) SWIG_fail;
28819 }
28820 Py_INCREF(Py_None); resultobj = Py_None;
28821 return resultobj;
28822 fail:
28823 return NULL;
28824 }
28825
28826
28827 static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28828 PyObject *resultobj;
28829 wxMenu *arg1 = (wxMenu *) 0 ;
28830 wxWindow *result;
28831 PyObject * obj0 = 0 ;
28832 char *kwnames[] = {
28833 (char *) "self", NULL
28834 };
28835
28836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
28837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28838 {
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
28841
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 {
28846 resultobj = wxPyMake_wxObject(result);
28847 }
28848 return resultobj;
28849 fail:
28850 return NULL;
28851 }
28852
28853
28854 static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
28855 PyObject *resultobj;
28856 wxMenu *arg1 = (wxMenu *) 0 ;
28857 long result;
28858 PyObject * obj0 = 0 ;
28859 char *kwnames[] = {
28860 (char *) "self", NULL
28861 };
28862
28863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
28864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28865 {
28866 PyThreadState* __tstate = wxPyBeginAllowThreads();
28867 result = (long)((wxMenu const *)arg1)->GetStyle();
28868
28869 wxPyEndAllowThreads(__tstate);
28870 if (PyErr_Occurred()) SWIG_fail;
28871 }
28872 resultobj = SWIG_PyObj_FromLong((long)result);
28873 return resultobj;
28874 fail:
28875 return NULL;
28876 }
28877
28878
28879 static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
28880 PyObject *resultobj;
28881 wxMenu *arg1 = (wxMenu *) 0 ;
28882 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
28883 PyObject * obj0 = 0 ;
28884 PyObject * obj1 = 0 ;
28885 char *kwnames[] = {
28886 (char *) "self",(char *) "source", NULL
28887 };
28888
28889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
28890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28891 if (obj1) {
28892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28893 }
28894 {
28895 PyThreadState* __tstate = wxPyBeginAllowThreads();
28896 (arg1)->UpdateUI(arg2);
28897
28898 wxPyEndAllowThreads(__tstate);
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 Py_INCREF(Py_None); resultobj = Py_None;
28902 return resultobj;
28903 fail:
28904 return NULL;
28905 }
28906
28907
28908 static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
28909 PyObject *resultobj;
28910 wxMenu *arg1 = (wxMenu *) 0 ;
28911 wxMenuBar *result;
28912 PyObject * obj0 = 0 ;
28913 char *kwnames[] = {
28914 (char *) "self", NULL
28915 };
28916
28917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
28918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
28922
28923 wxPyEndAllowThreads(__tstate);
28924 if (PyErr_Occurred()) SWIG_fail;
28925 }
28926 {
28927 resultobj = wxPyMake_wxObject(result);
28928 }
28929 return resultobj;
28930 fail:
28931 return NULL;
28932 }
28933
28934
28935 static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
28936 PyObject *resultobj;
28937 wxMenu *arg1 = (wxMenu *) 0 ;
28938 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
28939 PyObject * obj0 = 0 ;
28940 PyObject * obj1 = 0 ;
28941 char *kwnames[] = {
28942 (char *) "self",(char *) "menubar", NULL
28943 };
28944
28945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
28946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28947 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 (arg1)->Attach(arg2);
28951
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 Py_INCREF(Py_None); resultobj = Py_None;
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
28963 PyObject *resultobj;
28964 wxMenu *arg1 = (wxMenu *) 0 ;
28965 PyObject * obj0 = 0 ;
28966 char *kwnames[] = {
28967 (char *) "self", NULL
28968 };
28969
28970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
28971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28972 {
28973 PyThreadState* __tstate = wxPyBeginAllowThreads();
28974 (arg1)->Detach();
28975
28976 wxPyEndAllowThreads(__tstate);
28977 if (PyErr_Occurred()) SWIG_fail;
28978 }
28979 Py_INCREF(Py_None); resultobj = Py_None;
28980 return resultobj;
28981 fail:
28982 return NULL;
28983 }
28984
28985
28986 static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
28987 PyObject *resultobj;
28988 wxMenu *arg1 = (wxMenu *) 0 ;
28989 bool result;
28990 PyObject * obj0 = 0 ;
28991 char *kwnames[] = {
28992 (char *) "self", NULL
28993 };
28994
28995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
28996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28997 {
28998 PyThreadState* __tstate = wxPyBeginAllowThreads();
28999 result = (bool)((wxMenu const *)arg1)->IsAttached();
29000
29001 wxPyEndAllowThreads(__tstate);
29002 if (PyErr_Occurred()) SWIG_fail;
29003 }
29004 resultobj = SWIG_PyObj_FromBool((bool)result);
29005 return resultobj;
29006 fail:
29007 return NULL;
29008 }
29009
29010
29011 static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
29012 PyObject *resultobj;
29013 wxMenu *arg1 = (wxMenu *) 0 ;
29014 wxMenu *arg2 = (wxMenu *) 0 ;
29015 PyObject * obj0 = 0 ;
29016 PyObject * obj1 = 0 ;
29017 char *kwnames[] = {
29018 (char *) "self",(char *) "parent", NULL
29019 };
29020
29021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
29022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29023 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29024 {
29025 PyThreadState* __tstate = wxPyBeginAllowThreads();
29026 (arg1)->SetParent(arg2);
29027
29028 wxPyEndAllowThreads(__tstate);
29029 if (PyErr_Occurred()) SWIG_fail;
29030 }
29031 Py_INCREF(Py_None); resultobj = Py_None;
29032 return resultobj;
29033 fail:
29034 return NULL;
29035 }
29036
29037
29038 static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
29039 PyObject *resultobj;
29040 wxMenu *arg1 = (wxMenu *) 0 ;
29041 wxMenu *result;
29042 PyObject * obj0 = 0 ;
29043 char *kwnames[] = {
29044 (char *) "self", NULL
29045 };
29046
29047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
29048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29049 {
29050 PyThreadState* __tstate = wxPyBeginAllowThreads();
29051 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
29052
29053 wxPyEndAllowThreads(__tstate);
29054 if (PyErr_Occurred()) SWIG_fail;
29055 }
29056 {
29057 resultobj = wxPyMake_wxObject(result);
29058 }
29059 return resultobj;
29060 fail:
29061 return NULL;
29062 }
29063
29064
29065 static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
29066 PyObject *obj;
29067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29068 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
29069 Py_INCREF(obj);
29070 return Py_BuildValue((char *)"");
29071 }
29072 static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
29073 PyObject *resultobj;
29074 long arg1 = (long) 0 ;
29075 wxMenuBar *result;
29076 PyObject * obj0 = 0 ;
29077 char *kwnames[] = {
29078 (char *) "style", NULL
29079 };
29080
29081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
29082 if (obj0) {
29083 {
29084 arg1 = (long) SWIG_PyObj_AsLong(obj0);
29085 if (PyErr_Occurred()) SWIG_fail;
29086 }
29087 }
29088 {
29089 PyThreadState* __tstate = wxPyBeginAllowThreads();
29090 result = (wxMenuBar *)new wxMenuBar(arg1);
29091
29092 wxPyEndAllowThreads(__tstate);
29093 if (PyErr_Occurred()) SWIG_fail;
29094 }
29095 {
29096 resultobj = wxPyMake_wxObject(result);
29097 }
29098 return resultobj;
29099 fail:
29100 return NULL;
29101 }
29102
29103
29104 static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
29105 PyObject *resultobj;
29106 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29107 wxMenu *arg2 = (wxMenu *) 0 ;
29108 wxString *arg3 = 0 ;
29109 bool result;
29110 bool temp3 = False ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 PyObject * obj2 = 0 ;
29114 char *kwnames[] = {
29115 (char *) "self",(char *) "menu",(char *) "title", NULL
29116 };
29117
29118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
29119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29120 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29121 {
29122 arg3 = wxString_in_helper(obj2);
29123 if (arg3 == NULL) SWIG_fail;
29124 temp3 = True;
29125 }
29126 {
29127 PyThreadState* __tstate = wxPyBeginAllowThreads();
29128 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
29129
29130 wxPyEndAllowThreads(__tstate);
29131 if (PyErr_Occurred()) SWIG_fail;
29132 }
29133 resultobj = SWIG_PyObj_FromBool((bool)result);
29134 {
29135 if (temp3)
29136 delete arg3;
29137 }
29138 return resultobj;
29139 fail:
29140 {
29141 if (temp3)
29142 delete arg3;
29143 }
29144 return NULL;
29145 }
29146
29147
29148 static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29149 PyObject *resultobj;
29150 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29151 size_t arg2 ;
29152 wxMenu *arg3 = (wxMenu *) 0 ;
29153 wxString *arg4 = 0 ;
29154 bool result;
29155 bool temp4 = False ;
29156 PyObject * obj0 = 0 ;
29157 PyObject * obj1 = 0 ;
29158 PyObject * obj2 = 0 ;
29159 PyObject * obj3 = 0 ;
29160 char *kwnames[] = {
29161 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
29162 };
29163
29164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29166 {
29167 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29168 if (PyErr_Occurred()) SWIG_fail;
29169 }
29170 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29171 {
29172 arg4 = wxString_in_helper(obj3);
29173 if (arg4 == NULL) SWIG_fail;
29174 temp4 = True;
29175 }
29176 {
29177 PyThreadState* __tstate = wxPyBeginAllowThreads();
29178 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
29179
29180 wxPyEndAllowThreads(__tstate);
29181 if (PyErr_Occurred()) SWIG_fail;
29182 }
29183 resultobj = SWIG_PyObj_FromBool((bool)result);
29184 {
29185 if (temp4)
29186 delete arg4;
29187 }
29188 return resultobj;
29189 fail:
29190 {
29191 if (temp4)
29192 delete arg4;
29193 }
29194 return NULL;
29195 }
29196
29197
29198 static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
29199 PyObject *resultobj;
29200 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29201 size_t result;
29202 PyObject * obj0 = 0 ;
29203 char *kwnames[] = {
29204 (char *) "self", NULL
29205 };
29206
29207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
29208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29209 {
29210 PyThreadState* __tstate = wxPyBeginAllowThreads();
29211 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
29212
29213 wxPyEndAllowThreads(__tstate);
29214 if (PyErr_Occurred()) SWIG_fail;
29215 }
29216 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
29217 return resultobj;
29218 fail:
29219 return NULL;
29220 }
29221
29222
29223 static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29224 PyObject *resultobj;
29225 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29226 size_t arg2 ;
29227 wxMenu *result;
29228 PyObject * obj0 = 0 ;
29229 PyObject * obj1 = 0 ;
29230 char *kwnames[] = {
29231 (char *) "self",(char *) "pos", NULL
29232 };
29233
29234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
29235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29236 {
29237 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29238 if (PyErr_Occurred()) SWIG_fail;
29239 }
29240 {
29241 PyThreadState* __tstate = wxPyBeginAllowThreads();
29242 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
29243
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 {
29248 resultobj = wxPyMake_wxObject(result);
29249 }
29250 return resultobj;
29251 fail:
29252 return NULL;
29253 }
29254
29255
29256 static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
29257 PyObject *resultobj;
29258 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29259 size_t arg2 ;
29260 wxMenu *arg3 = (wxMenu *) 0 ;
29261 wxString *arg4 = 0 ;
29262 wxMenu *result;
29263 bool temp4 = False ;
29264 PyObject * obj0 = 0 ;
29265 PyObject * obj1 = 0 ;
29266 PyObject * obj2 = 0 ;
29267 PyObject * obj3 = 0 ;
29268 char *kwnames[] = {
29269 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
29270 };
29271
29272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29274 {
29275 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29276 if (PyErr_Occurred()) SWIG_fail;
29277 }
29278 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29279 {
29280 arg4 = wxString_in_helper(obj3);
29281 if (arg4 == NULL) SWIG_fail;
29282 temp4 = True;
29283 }
29284 {
29285 PyThreadState* __tstate = wxPyBeginAllowThreads();
29286 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
29287
29288 wxPyEndAllowThreads(__tstate);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 {
29292 resultobj = wxPyMake_wxObject(result);
29293 }
29294 {
29295 if (temp4)
29296 delete arg4;
29297 }
29298 return resultobj;
29299 fail:
29300 {
29301 if (temp4)
29302 delete arg4;
29303 }
29304 return NULL;
29305 }
29306
29307
29308 static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29309 PyObject *resultobj;
29310 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29311 size_t arg2 ;
29312 wxMenu *result;
29313 PyObject * obj0 = 0 ;
29314 PyObject * obj1 = 0 ;
29315 char *kwnames[] = {
29316 (char *) "self",(char *) "pos", NULL
29317 };
29318
29319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
29320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29321 {
29322 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29323 if (PyErr_Occurred()) SWIG_fail;
29324 }
29325 {
29326 PyThreadState* __tstate = wxPyBeginAllowThreads();
29327 result = (wxMenu *)(arg1)->Remove(arg2);
29328
29329 wxPyEndAllowThreads(__tstate);
29330 if (PyErr_Occurred()) SWIG_fail;
29331 }
29332 {
29333 resultobj = wxPyMake_wxObject(result);
29334 }
29335 return resultobj;
29336 fail:
29337 return NULL;
29338 }
29339
29340
29341 static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29342 PyObject *resultobj;
29343 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29344 size_t arg2 ;
29345 bool arg3 ;
29346 PyObject * obj0 = 0 ;
29347 PyObject * obj1 = 0 ;
29348 PyObject * obj2 = 0 ;
29349 char *kwnames[] = {
29350 (char *) "self",(char *) "pos",(char *) "enable", NULL
29351 };
29352
29353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
29354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29355 {
29356 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 {
29360 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
29361 if (PyErr_Occurred()) SWIG_fail;
29362 }
29363 {
29364 PyThreadState* __tstate = wxPyBeginAllowThreads();
29365 (arg1)->EnableTop(arg2,arg3);
29366
29367 wxPyEndAllowThreads(__tstate);
29368 if (PyErr_Occurred()) SWIG_fail;
29369 }
29370 Py_INCREF(Py_None); resultobj = Py_None;
29371 return resultobj;
29372 fail:
29373 return NULL;
29374 }
29375
29376
29377 static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29378 PyObject *resultobj;
29379 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29380 size_t arg2 ;
29381 bool result;
29382 PyObject * obj0 = 0 ;
29383 PyObject * obj1 = 0 ;
29384 char *kwnames[] = {
29385 (char *) "self",(char *) "pos", NULL
29386 };
29387
29388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
29389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29390 {
29391 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29392 if (PyErr_Occurred()) SWIG_fail;
29393 }
29394 {
29395 PyThreadState* __tstate = wxPyBeginAllowThreads();
29396 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
29397
29398 wxPyEndAllowThreads(__tstate);
29399 if (PyErr_Occurred()) SWIG_fail;
29400 }
29401 resultobj = SWIG_PyObj_FromBool((bool)result);
29402 return resultobj;
29403 fail:
29404 return NULL;
29405 }
29406
29407
29408 static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29409 PyObject *resultobj;
29410 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29411 size_t arg2 ;
29412 wxString *arg3 = 0 ;
29413 bool temp3 = False ;
29414 PyObject * obj0 = 0 ;
29415 PyObject * obj1 = 0 ;
29416 PyObject * obj2 = 0 ;
29417 char *kwnames[] = {
29418 (char *) "self",(char *) "pos",(char *) "label", NULL
29419 };
29420
29421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
29422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29423 {
29424 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29425 if (PyErr_Occurred()) SWIG_fail;
29426 }
29427 {
29428 arg3 = wxString_in_helper(obj2);
29429 if (arg3 == NULL) SWIG_fail;
29430 temp3 = True;
29431 }
29432 {
29433 PyThreadState* __tstate = wxPyBeginAllowThreads();
29434 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
29435
29436 wxPyEndAllowThreads(__tstate);
29437 if (PyErr_Occurred()) SWIG_fail;
29438 }
29439 Py_INCREF(Py_None); resultobj = Py_None;
29440 {
29441 if (temp3)
29442 delete arg3;
29443 }
29444 return resultobj;
29445 fail:
29446 {
29447 if (temp3)
29448 delete arg3;
29449 }
29450 return NULL;
29451 }
29452
29453
29454 static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29455 PyObject *resultobj;
29456 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29457 size_t arg2 ;
29458 wxString result;
29459 PyObject * obj0 = 0 ;
29460 PyObject * obj1 = 0 ;
29461 char *kwnames[] = {
29462 (char *) "self",(char *) "pos", NULL
29463 };
29464
29465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
29466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29467 {
29468 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 {
29472 PyThreadState* __tstate = wxPyBeginAllowThreads();
29473 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
29474
29475 wxPyEndAllowThreads(__tstate);
29476 if (PyErr_Occurred()) SWIG_fail;
29477 }
29478 {
29479 #if wxUSE_UNICODE
29480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29481 #else
29482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29483 #endif
29484 }
29485 return resultobj;
29486 fail:
29487 return NULL;
29488 }
29489
29490
29491 static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29492 PyObject *resultobj;
29493 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29494 wxString *arg2 = 0 ;
29495 wxString *arg3 = 0 ;
29496 int result;
29497 bool temp2 = False ;
29498 bool temp3 = False ;
29499 PyObject * obj0 = 0 ;
29500 PyObject * obj1 = 0 ;
29501 PyObject * obj2 = 0 ;
29502 char *kwnames[] = {
29503 (char *) "self",(char *) "menu",(char *) "item", NULL
29504 };
29505
29506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29508 {
29509 arg2 = wxString_in_helper(obj1);
29510 if (arg2 == NULL) SWIG_fail;
29511 temp2 = True;
29512 }
29513 {
29514 arg3 = wxString_in_helper(obj2);
29515 if (arg3 == NULL) SWIG_fail;
29516 temp3 = True;
29517 }
29518 {
29519 PyThreadState* __tstate = wxPyBeginAllowThreads();
29520 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
29521
29522 wxPyEndAllowThreads(__tstate);
29523 if (PyErr_Occurred()) SWIG_fail;
29524 }
29525 resultobj = SWIG_PyObj_FromInt((int)result);
29526 {
29527 if (temp2)
29528 delete arg2;
29529 }
29530 {
29531 if (temp3)
29532 delete arg3;
29533 }
29534 return resultobj;
29535 fail:
29536 {
29537 if (temp2)
29538 delete arg2;
29539 }
29540 {
29541 if (temp3)
29542 delete arg3;
29543 }
29544 return NULL;
29545 }
29546
29547
29548 static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
29549 PyObject *resultobj;
29550 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29551 int arg2 ;
29552 wxMenuItem *result;
29553 PyObject * obj0 = 0 ;
29554 PyObject * obj1 = 0 ;
29555 char *kwnames[] = {
29556 (char *) "self",(char *) "id", NULL
29557 };
29558
29559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
29560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29561 {
29562 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29563 if (PyErr_Occurred()) SWIG_fail;
29564 }
29565 {
29566 PyThreadState* __tstate = wxPyBeginAllowThreads();
29567 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
29568
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 {
29573 resultobj = wxPyMake_wxObject(result);
29574 }
29575 return resultobj;
29576 fail:
29577 return NULL;
29578 }
29579
29580
29581 static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29582 PyObject *resultobj;
29583 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29584 wxString *arg2 = 0 ;
29585 int result;
29586 bool temp2 = False ;
29587 PyObject * obj0 = 0 ;
29588 PyObject * obj1 = 0 ;
29589 char *kwnames[] = {
29590 (char *) "self",(char *) "title", NULL
29591 };
29592
29593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
29594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29595 {
29596 arg2 = wxString_in_helper(obj1);
29597 if (arg2 == NULL) SWIG_fail;
29598 temp2 = True;
29599 }
29600 {
29601 PyThreadState* __tstate = wxPyBeginAllowThreads();
29602 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
29603
29604 wxPyEndAllowThreads(__tstate);
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 resultobj = SWIG_PyObj_FromInt((int)result);
29608 {
29609 if (temp2)
29610 delete arg2;
29611 }
29612 return resultobj;
29613 fail:
29614 {
29615 if (temp2)
29616 delete arg2;
29617 }
29618 return NULL;
29619 }
29620
29621
29622 static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
29623 PyObject *resultobj;
29624 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29625 int arg2 ;
29626 bool arg3 ;
29627 PyObject * obj0 = 0 ;
29628 PyObject * obj1 = 0 ;
29629 PyObject * obj2 = 0 ;
29630 char *kwnames[] = {
29631 (char *) "self",(char *) "id",(char *) "enable", NULL
29632 };
29633
29634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
29635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29636 {
29637 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 {
29641 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
29642 if (PyErr_Occurred()) SWIG_fail;
29643 }
29644 {
29645 PyThreadState* __tstate = wxPyBeginAllowThreads();
29646 (arg1)->Enable(arg2,arg3);
29647
29648 wxPyEndAllowThreads(__tstate);
29649 if (PyErr_Occurred()) SWIG_fail;
29650 }
29651 Py_INCREF(Py_None); resultobj = Py_None;
29652 return resultobj;
29653 fail:
29654 return NULL;
29655 }
29656
29657
29658 static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
29659 PyObject *resultobj;
29660 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29661 int arg2 ;
29662 bool arg3 ;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665 PyObject * obj2 = 0 ;
29666 char *kwnames[] = {
29667 (char *) "self",(char *) "id",(char *) "check", NULL
29668 };
29669
29670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
29671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29672 {
29673 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29674 if (PyErr_Occurred()) SWIG_fail;
29675 }
29676 {
29677 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
29678 if (PyErr_Occurred()) SWIG_fail;
29679 }
29680 {
29681 PyThreadState* __tstate = wxPyBeginAllowThreads();
29682 (arg1)->Check(arg2,arg3);
29683
29684 wxPyEndAllowThreads(__tstate);
29685 if (PyErr_Occurred()) SWIG_fail;
29686 }
29687 Py_INCREF(Py_None); resultobj = Py_None;
29688 return resultobj;
29689 fail:
29690 return NULL;
29691 }
29692
29693
29694 static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
29695 PyObject *resultobj;
29696 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29697 int arg2 ;
29698 bool result;
29699 PyObject * obj0 = 0 ;
29700 PyObject * obj1 = 0 ;
29701 char *kwnames[] = {
29702 (char *) "self",(char *) "id", NULL
29703 };
29704
29705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
29706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29707 {
29708 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29709 if (PyErr_Occurred()) SWIG_fail;
29710 }
29711 {
29712 PyThreadState* __tstate = wxPyBeginAllowThreads();
29713 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
29714
29715 wxPyEndAllowThreads(__tstate);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 resultobj = SWIG_PyObj_FromBool((bool)result);
29719 return resultobj;
29720 fail:
29721 return NULL;
29722 }
29723
29724
29725 static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj;
29727 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29728 int arg2 ;
29729 bool result;
29730 PyObject * obj0 = 0 ;
29731 PyObject * obj1 = 0 ;
29732 char *kwnames[] = {
29733 (char *) "self",(char *) "id", NULL
29734 };
29735
29736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
29737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29738 {
29739 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 {
29743 PyThreadState* __tstate = wxPyBeginAllowThreads();
29744 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
29745
29746 wxPyEndAllowThreads(__tstate);
29747 if (PyErr_Occurred()) SWIG_fail;
29748 }
29749 resultobj = SWIG_PyObj_FromBool((bool)result);
29750 return resultobj;
29751 fail:
29752 return NULL;
29753 }
29754
29755
29756 static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
29757 PyObject *resultobj;
29758 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29759 int arg2 ;
29760 wxString *arg3 = 0 ;
29761 bool temp3 = False ;
29762 PyObject * obj0 = 0 ;
29763 PyObject * obj1 = 0 ;
29764 PyObject * obj2 = 0 ;
29765 char *kwnames[] = {
29766 (char *) "self",(char *) "id",(char *) "label", NULL
29767 };
29768
29769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
29770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29771 {
29772 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29773 if (PyErr_Occurred()) SWIG_fail;
29774 }
29775 {
29776 arg3 = wxString_in_helper(obj2);
29777 if (arg3 == NULL) SWIG_fail;
29778 temp3 = True;
29779 }
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
29783
29784 wxPyEndAllowThreads(__tstate);
29785 if (PyErr_Occurred()) SWIG_fail;
29786 }
29787 Py_INCREF(Py_None); resultobj = Py_None;
29788 {
29789 if (temp3)
29790 delete arg3;
29791 }
29792 return resultobj;
29793 fail:
29794 {
29795 if (temp3)
29796 delete arg3;
29797 }
29798 return NULL;
29799 }
29800
29801
29802 static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
29803 PyObject *resultobj;
29804 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29805 int arg2 ;
29806 wxString result;
29807 PyObject * obj0 = 0 ;
29808 PyObject * obj1 = 0 ;
29809 char *kwnames[] = {
29810 (char *) "self",(char *) "id", NULL
29811 };
29812
29813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
29814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29815 {
29816 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
29822
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 {
29827 #if wxUSE_UNICODE
29828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29829 #else
29830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29831 #endif
29832 }
29833 return resultobj;
29834 fail:
29835 return NULL;
29836 }
29837
29838
29839 static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
29840 PyObject *resultobj;
29841 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29842 int arg2 ;
29843 wxString *arg3 = 0 ;
29844 bool temp3 = False ;
29845 PyObject * obj0 = 0 ;
29846 PyObject * obj1 = 0 ;
29847 PyObject * obj2 = 0 ;
29848 char *kwnames[] = {
29849 (char *) "self",(char *) "id",(char *) "helpString", NULL
29850 };
29851
29852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
29853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29854 {
29855 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29856 if (PyErr_Occurred()) SWIG_fail;
29857 }
29858 {
29859 arg3 = wxString_in_helper(obj2);
29860 if (arg3 == NULL) SWIG_fail;
29861 temp3 = True;
29862 }
29863 {
29864 PyThreadState* __tstate = wxPyBeginAllowThreads();
29865 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
29866
29867 wxPyEndAllowThreads(__tstate);
29868 if (PyErr_Occurred()) SWIG_fail;
29869 }
29870 Py_INCREF(Py_None); resultobj = Py_None;
29871 {
29872 if (temp3)
29873 delete arg3;
29874 }
29875 return resultobj;
29876 fail:
29877 {
29878 if (temp3)
29879 delete arg3;
29880 }
29881 return NULL;
29882 }
29883
29884
29885 static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
29886 PyObject *resultobj;
29887 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29888 int arg2 ;
29889 wxString result;
29890 PyObject * obj0 = 0 ;
29891 PyObject * obj1 = 0 ;
29892 char *kwnames[] = {
29893 (char *) "self",(char *) "id", NULL
29894 };
29895
29896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
29897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29898 {
29899 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29900 if (PyErr_Occurred()) SWIG_fail;
29901 }
29902 {
29903 PyThreadState* __tstate = wxPyBeginAllowThreads();
29904 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
29905
29906 wxPyEndAllowThreads(__tstate);
29907 if (PyErr_Occurred()) SWIG_fail;
29908 }
29909 {
29910 #if wxUSE_UNICODE
29911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29912 #else
29913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29914 #endif
29915 }
29916 return resultobj;
29917 fail:
29918 return NULL;
29919 }
29920
29921
29922 static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
29923 PyObject *resultobj;
29924 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29925 wxFrame *result;
29926 PyObject * obj0 = 0 ;
29927 char *kwnames[] = {
29928 (char *) "self", NULL
29929 };
29930
29931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
29932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29933 {
29934 PyThreadState* __tstate = wxPyBeginAllowThreads();
29935 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
29936
29937 wxPyEndAllowThreads(__tstate);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 {
29941 resultobj = wxPyMake_wxObject(result);
29942 }
29943 return resultobj;
29944 fail:
29945 return NULL;
29946 }
29947
29948
29949 static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
29950 PyObject *resultobj;
29951 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29952 bool result;
29953 PyObject * obj0 = 0 ;
29954 char *kwnames[] = {
29955 (char *) "self", NULL
29956 };
29957
29958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
29959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29960 {
29961 PyThreadState* __tstate = wxPyBeginAllowThreads();
29962 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
29963
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 resultobj = SWIG_PyObj_FromBool((bool)result);
29968 return resultobj;
29969 fail:
29970 return NULL;
29971 }
29972
29973
29974 static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
29975 PyObject *resultobj;
29976 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29977 wxFrame *arg2 = (wxFrame *) 0 ;
29978 PyObject * obj0 = 0 ;
29979 PyObject * obj1 = 0 ;
29980 char *kwnames[] = {
29981 (char *) "self",(char *) "frame", NULL
29982 };
29983
29984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
29985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29986 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29987 {
29988 PyThreadState* __tstate = wxPyBeginAllowThreads();
29989 (arg1)->Attach(arg2);
29990
29991 wxPyEndAllowThreads(__tstate);
29992 if (PyErr_Occurred()) SWIG_fail;
29993 }
29994 Py_INCREF(Py_None); resultobj = Py_None;
29995 return resultobj;
29996 fail:
29997 return NULL;
29998 }
29999
30000
30001 static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj;
30003 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30004 PyObject * obj0 = 0 ;
30005 char *kwnames[] = {
30006 (char *) "self", NULL
30007 };
30008
30009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
30010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30011 {
30012 PyThreadState* __tstate = wxPyBeginAllowThreads();
30013 (arg1)->Detach();
30014
30015 wxPyEndAllowThreads(__tstate);
30016 if (PyErr_Occurred()) SWIG_fail;
30017 }
30018 Py_INCREF(Py_None); resultobj = Py_None;
30019 return resultobj;
30020 fail:
30021 return NULL;
30022 }
30023
30024
30025 static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
30026 PyObject *obj;
30027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30028 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
30029 Py_INCREF(obj);
30030 return Py_BuildValue((char *)"");
30031 }
30032 static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30033 PyObject *resultobj;
30034 wxMenu *arg1 = (wxMenu *) NULL ;
30035 int arg2 = (int) wxID_SEPARATOR ;
30036 wxString const &arg3_defvalue = wxPyEmptyString ;
30037 wxString *arg3 = (wxString *) &arg3_defvalue ;
30038 wxString const &arg4_defvalue = wxPyEmptyString ;
30039 wxString *arg4 = (wxString *) &arg4_defvalue ;
30040 int arg5 = (int) wxITEM_NORMAL ;
30041 wxMenu *arg6 = (wxMenu *) NULL ;
30042 wxMenuItem *result;
30043 bool temp3 = False ;
30044 bool temp4 = False ;
30045 PyObject * obj0 = 0 ;
30046 PyObject * obj1 = 0 ;
30047 PyObject * obj2 = 0 ;
30048 PyObject * obj3 = 0 ;
30049 PyObject * obj4 = 0 ;
30050 PyObject * obj5 = 0 ;
30051 char *kwnames[] = {
30052 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
30053 };
30054
30055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
30056 if (obj0) {
30057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30058 }
30059 if (obj1) {
30060 {
30061 arg2 = (int) SWIG_PyObj_AsInt(obj1);
30062 if (PyErr_Occurred()) SWIG_fail;
30063 }
30064 }
30065 if (obj2) {
30066 {
30067 arg3 = wxString_in_helper(obj2);
30068 if (arg3 == NULL) SWIG_fail;
30069 temp3 = True;
30070 }
30071 }
30072 if (obj3) {
30073 {
30074 arg4 = wxString_in_helper(obj3);
30075 if (arg4 == NULL) SWIG_fail;
30076 temp4 = True;
30077 }
30078 }
30079 if (obj4) {
30080 {
30081 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
30082 if (PyErr_Occurred()) SWIG_fail;
30083 }
30084 }
30085 if (obj5) {
30086 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30087 }
30088 {
30089 PyThreadState* __tstate = wxPyBeginAllowThreads();
30090 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
30091
30092 wxPyEndAllowThreads(__tstate);
30093 if (PyErr_Occurred()) SWIG_fail;
30094 }
30095 {
30096 resultobj = wxPyMake_wxObject(result);
30097 }
30098 {
30099 if (temp3)
30100 delete arg3;
30101 }
30102 {
30103 if (temp4)
30104 delete arg4;
30105 }
30106 return resultobj;
30107 fail:
30108 {
30109 if (temp3)
30110 delete arg3;
30111 }
30112 {
30113 if (temp4)
30114 delete arg4;
30115 }
30116 return NULL;
30117 }
30118
30119
30120 static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30121 PyObject *resultobj;
30122 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30123 wxMenu *result;
30124 PyObject * obj0 = 0 ;
30125 char *kwnames[] = {
30126 (char *) "self", NULL
30127 };
30128
30129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
30130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30131 {
30132 PyThreadState* __tstate = wxPyBeginAllowThreads();
30133 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
30134
30135 wxPyEndAllowThreads(__tstate);
30136 if (PyErr_Occurred()) SWIG_fail;
30137 }
30138 {
30139 resultobj = wxPyMake_wxObject(result);
30140 }
30141 return resultobj;
30142 fail:
30143 return NULL;
30144 }
30145
30146
30147 static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30148 PyObject *resultobj;
30149 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30150 wxMenu *arg2 = (wxMenu *) 0 ;
30151 PyObject * obj0 = 0 ;
30152 PyObject * obj1 = 0 ;
30153 char *kwnames[] = {
30154 (char *) "self",(char *) "menu", NULL
30155 };
30156
30157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
30158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30159 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30160 {
30161 PyThreadState* __tstate = wxPyBeginAllowThreads();
30162 (arg1)->SetMenu(arg2);
30163
30164 wxPyEndAllowThreads(__tstate);
30165 if (PyErr_Occurred()) SWIG_fail;
30166 }
30167 Py_INCREF(Py_None); resultobj = Py_None;
30168 return resultobj;
30169 fail:
30170 return NULL;
30171 }
30172
30173
30174 static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
30175 PyObject *resultobj;
30176 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30177 int arg2 ;
30178 PyObject * obj0 = 0 ;
30179 PyObject * obj1 = 0 ;
30180 char *kwnames[] = {
30181 (char *) "self",(char *) "id", NULL
30182 };
30183
30184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
30185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30186 {
30187 arg2 = (int) SWIG_PyObj_AsInt(obj1);
30188 if (PyErr_Occurred()) SWIG_fail;
30189 }
30190 {
30191 PyThreadState* __tstate = wxPyBeginAllowThreads();
30192 (arg1)->SetId(arg2);
30193
30194 wxPyEndAllowThreads(__tstate);
30195 if (PyErr_Occurred()) SWIG_fail;
30196 }
30197 Py_INCREF(Py_None); resultobj = Py_None;
30198 return resultobj;
30199 fail:
30200 return NULL;
30201 }
30202
30203
30204 static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
30205 PyObject *resultobj;
30206 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30207 int result;
30208 PyObject * obj0 = 0 ;
30209 char *kwnames[] = {
30210 (char *) "self", NULL
30211 };
30212
30213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
30214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30215 {
30216 PyThreadState* __tstate = wxPyBeginAllowThreads();
30217 result = (int)((wxMenuItem const *)arg1)->GetId();
30218
30219 wxPyEndAllowThreads(__tstate);
30220 if (PyErr_Occurred()) SWIG_fail;
30221 }
30222 resultobj = SWIG_PyObj_FromInt((int)result);
30223 return resultobj;
30224 fail:
30225 return NULL;
30226 }
30227
30228
30229 static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
30230 PyObject *resultobj;
30231 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30232 bool result;
30233 PyObject * obj0 = 0 ;
30234 char *kwnames[] = {
30235 (char *) "self", NULL
30236 };
30237
30238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
30239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30240 {
30241 PyThreadState* __tstate = wxPyBeginAllowThreads();
30242 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
30243
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 resultobj = SWIG_PyObj_FromBool((bool)result);
30248 return resultobj;
30249 fail:
30250 return NULL;
30251 }
30252
30253
30254 static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
30255 PyObject *resultobj;
30256 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30257 wxString *arg2 = 0 ;
30258 bool temp2 = False ;
30259 PyObject * obj0 = 0 ;
30260 PyObject * obj1 = 0 ;
30261 char *kwnames[] = {
30262 (char *) "self",(char *) "str", NULL
30263 };
30264
30265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
30266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30267 {
30268 arg2 = wxString_in_helper(obj1);
30269 if (arg2 == NULL) SWIG_fail;
30270 temp2 = True;
30271 }
30272 {
30273 PyThreadState* __tstate = wxPyBeginAllowThreads();
30274 (arg1)->SetText((wxString const &)*arg2);
30275
30276 wxPyEndAllowThreads(__tstate);
30277 if (PyErr_Occurred()) SWIG_fail;
30278 }
30279 Py_INCREF(Py_None); resultobj = Py_None;
30280 {
30281 if (temp2)
30282 delete arg2;
30283 }
30284 return resultobj;
30285 fail:
30286 {
30287 if (temp2)
30288 delete arg2;
30289 }
30290 return NULL;
30291 }
30292
30293
30294 static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30295 PyObject *resultobj;
30296 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30297 wxString result;
30298 PyObject * obj0 = 0 ;
30299 char *kwnames[] = {
30300 (char *) "self", NULL
30301 };
30302
30303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
30304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30305 {
30306 PyThreadState* __tstate = wxPyBeginAllowThreads();
30307 result = ((wxMenuItem const *)arg1)->GetLabel();
30308
30309 wxPyEndAllowThreads(__tstate);
30310 if (PyErr_Occurred()) SWIG_fail;
30311 }
30312 {
30313 #if wxUSE_UNICODE
30314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30315 #else
30316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30317 #endif
30318 }
30319 return resultobj;
30320 fail:
30321 return NULL;
30322 }
30323
30324
30325 static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
30326 PyObject *resultobj;
30327 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30328 wxString *result;
30329 PyObject * obj0 = 0 ;
30330 char *kwnames[] = {
30331 (char *) "self", NULL
30332 };
30333
30334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
30335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30336 {
30337 PyThreadState* __tstate = wxPyBeginAllowThreads();
30338 {
30339 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
30340 result = (wxString *) &_result_ref;
30341 }
30342
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 {
30347 #if wxUSE_UNICODE
30348 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30349 #else
30350 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30351 #endif
30352 }
30353 return resultobj;
30354 fail:
30355 return NULL;
30356 }
30357
30358
30359 static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
30360 PyObject *resultobj;
30361 wxString *arg1 = 0 ;
30362 wxString result;
30363 bool temp1 = False ;
30364 PyObject * obj0 = 0 ;
30365 char *kwnames[] = {
30366 (char *) "text", NULL
30367 };
30368
30369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
30370 {
30371 arg1 = wxString_in_helper(obj0);
30372 if (arg1 == NULL) SWIG_fail;
30373 temp1 = True;
30374 }
30375 {
30376 PyThreadState* __tstate = wxPyBeginAllowThreads();
30377 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
30378
30379 wxPyEndAllowThreads(__tstate);
30380 if (PyErr_Occurred()) SWIG_fail;
30381 }
30382 {
30383 #if wxUSE_UNICODE
30384 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30385 #else
30386 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30387 #endif
30388 }
30389 {
30390 if (temp1)
30391 delete arg1;
30392 }
30393 return resultobj;
30394 fail:
30395 {
30396 if (temp1)
30397 delete arg1;
30398 }
30399 return NULL;
30400 }
30401
30402
30403 static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
30404 PyObject *resultobj;
30405 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30406 int result;
30407 PyObject * obj0 = 0 ;
30408 char *kwnames[] = {
30409 (char *) "self", NULL
30410 };
30411
30412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
30413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30414 {
30415 PyThreadState* __tstate = wxPyBeginAllowThreads();
30416 result = (int)((wxMenuItem const *)arg1)->GetKind();
30417
30418 wxPyEndAllowThreads(__tstate);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 }
30421 resultobj = SWIG_PyObj_FromInt((int)result);
30422 return resultobj;
30423 fail:
30424 return NULL;
30425 }
30426
30427
30428 static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
30429 PyObject *resultobj;
30430 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30431 bool arg2 ;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 char *kwnames[] = {
30435 (char *) "self",(char *) "checkable", NULL
30436 };
30437
30438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
30439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30440 {
30441 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
30442 if (PyErr_Occurred()) SWIG_fail;
30443 }
30444 {
30445 PyThreadState* __tstate = wxPyBeginAllowThreads();
30446 (arg1)->SetCheckable(arg2);
30447
30448 wxPyEndAllowThreads(__tstate);
30449 if (PyErr_Occurred()) SWIG_fail;
30450 }
30451 Py_INCREF(Py_None); resultobj = Py_None;
30452 return resultobj;
30453 fail:
30454 return NULL;
30455 }
30456
30457
30458 static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
30459 PyObject *resultobj;
30460 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30461 bool result;
30462 PyObject * obj0 = 0 ;
30463 char *kwnames[] = {
30464 (char *) "self", NULL
30465 };
30466
30467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
30468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30469 {
30470 PyThreadState* __tstate = wxPyBeginAllowThreads();
30471 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
30472
30473 wxPyEndAllowThreads(__tstate);
30474 if (PyErr_Occurred()) SWIG_fail;
30475 }
30476 resultobj = SWIG_PyObj_FromBool((bool)result);
30477 return resultobj;
30478 fail:
30479 return NULL;
30480 }
30481
30482
30483 static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30484 PyObject *resultobj;
30485 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30486 bool result;
30487 PyObject * obj0 = 0 ;
30488 char *kwnames[] = {
30489 (char *) "self", NULL
30490 };
30491
30492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
30493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30494 {
30495 PyThreadState* __tstate = wxPyBeginAllowThreads();
30496 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
30497
30498 wxPyEndAllowThreads(__tstate);
30499 if (PyErr_Occurred()) SWIG_fail;
30500 }
30501 resultobj = SWIG_PyObj_FromBool((bool)result);
30502 return resultobj;
30503 fail:
30504 return NULL;
30505 }
30506
30507
30508 static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj;
30510 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30511 wxMenu *arg2 = (wxMenu *) 0 ;
30512 PyObject * obj0 = 0 ;
30513 PyObject * obj1 = 0 ;
30514 char *kwnames[] = {
30515 (char *) "self",(char *) "menu", NULL
30516 };
30517
30518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
30519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30520 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30521 {
30522 PyThreadState* __tstate = wxPyBeginAllowThreads();
30523 (arg1)->SetSubMenu(arg2);
30524
30525 wxPyEndAllowThreads(__tstate);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 Py_INCREF(Py_None); resultobj = Py_None;
30529 return resultobj;
30530 fail:
30531 return NULL;
30532 }
30533
30534
30535 static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30536 PyObject *resultobj;
30537 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30538 wxMenu *result;
30539 PyObject * obj0 = 0 ;
30540 char *kwnames[] = {
30541 (char *) "self", NULL
30542 };
30543
30544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
30545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30546 {
30547 PyThreadState* __tstate = wxPyBeginAllowThreads();
30548 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
30549
30550 wxPyEndAllowThreads(__tstate);
30551 if (PyErr_Occurred()) SWIG_fail;
30552 }
30553 {
30554 resultobj = wxPyMake_wxObject(result);
30555 }
30556 return resultobj;
30557 fail:
30558 return NULL;
30559 }
30560
30561
30562 static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30563 PyObject *resultobj;
30564 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30565 bool arg2 = (bool) True ;
30566 PyObject * obj0 = 0 ;
30567 PyObject * obj1 = 0 ;
30568 char *kwnames[] = {
30569 (char *) "self",(char *) "enable", NULL
30570 };
30571
30572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
30573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30574 if (obj1) {
30575 {
30576 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 }
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 (arg1)->Enable(arg2);
30583
30584 wxPyEndAllowThreads(__tstate);
30585 if (PyErr_Occurred()) SWIG_fail;
30586 }
30587 Py_INCREF(Py_None); resultobj = Py_None;
30588 return resultobj;
30589 fail:
30590 return NULL;
30591 }
30592
30593
30594 static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30595 PyObject *resultobj;
30596 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30597 bool result;
30598 PyObject * obj0 = 0 ;
30599 char *kwnames[] = {
30600 (char *) "self", NULL
30601 };
30602
30603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
30604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30605 {
30606 PyThreadState* __tstate = wxPyBeginAllowThreads();
30607 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
30608
30609 wxPyEndAllowThreads(__tstate);
30610 if (PyErr_Occurred()) SWIG_fail;
30611 }
30612 resultobj = SWIG_PyObj_FromBool((bool)result);
30613 return resultobj;
30614 fail:
30615 return NULL;
30616 }
30617
30618
30619 static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30620 PyObject *resultobj;
30621 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30622 bool arg2 = (bool) True ;
30623 PyObject * obj0 = 0 ;
30624 PyObject * obj1 = 0 ;
30625 char *kwnames[] = {
30626 (char *) "self",(char *) "check", NULL
30627 };
30628
30629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
30630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30631 if (obj1) {
30632 {
30633 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 }
30637 {
30638 PyThreadState* __tstate = wxPyBeginAllowThreads();
30639 (arg1)->Check(arg2);
30640
30641 wxPyEndAllowThreads(__tstate);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 }
30644 Py_INCREF(Py_None); resultobj = Py_None;
30645 return resultobj;
30646 fail:
30647 return NULL;
30648 }
30649
30650
30651 static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30652 PyObject *resultobj;
30653 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30654 bool result;
30655 PyObject * obj0 = 0 ;
30656 char *kwnames[] = {
30657 (char *) "self", NULL
30658 };
30659
30660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
30661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30662 {
30663 PyThreadState* __tstate = wxPyBeginAllowThreads();
30664 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
30665
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 resultobj = SWIG_PyObj_FromBool((bool)result);
30670 return resultobj;
30671 fail:
30672 return NULL;
30673 }
30674
30675
30676 static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj;
30678 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30679 PyObject * obj0 = 0 ;
30680 char *kwnames[] = {
30681 (char *) "self", NULL
30682 };
30683
30684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
30685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30686 {
30687 PyThreadState* __tstate = wxPyBeginAllowThreads();
30688 (arg1)->Toggle();
30689
30690 wxPyEndAllowThreads(__tstate);
30691 if (PyErr_Occurred()) SWIG_fail;
30692 }
30693 Py_INCREF(Py_None); resultobj = Py_None;
30694 return resultobj;
30695 fail:
30696 return NULL;
30697 }
30698
30699
30700 static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30701 PyObject *resultobj;
30702 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30703 wxString *arg2 = 0 ;
30704 bool temp2 = False ;
30705 PyObject * obj0 = 0 ;
30706 PyObject * obj1 = 0 ;
30707 char *kwnames[] = {
30708 (char *) "self",(char *) "str", NULL
30709 };
30710
30711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
30712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30713 {
30714 arg2 = wxString_in_helper(obj1);
30715 if (arg2 == NULL) SWIG_fail;
30716 temp2 = True;
30717 }
30718 {
30719 PyThreadState* __tstate = wxPyBeginAllowThreads();
30720 (arg1)->SetHelp((wxString const &)*arg2);
30721
30722 wxPyEndAllowThreads(__tstate);
30723 if (PyErr_Occurred()) SWIG_fail;
30724 }
30725 Py_INCREF(Py_None); resultobj = Py_None;
30726 {
30727 if (temp2)
30728 delete arg2;
30729 }
30730 return resultobj;
30731 fail:
30732 {
30733 if (temp2)
30734 delete arg2;
30735 }
30736 return NULL;
30737 }
30738
30739
30740 static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30741 PyObject *resultobj;
30742 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30743 wxString *result;
30744 PyObject * obj0 = 0 ;
30745 char *kwnames[] = {
30746 (char *) "self", NULL
30747 };
30748
30749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
30750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 {
30754 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
30755 result = (wxString *) &_result_ref;
30756 }
30757
30758 wxPyEndAllowThreads(__tstate);
30759 if (PyErr_Occurred()) SWIG_fail;
30760 }
30761 {
30762 #if wxUSE_UNICODE
30763 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30764 #else
30765 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30766 #endif
30767 }
30768 return resultobj;
30769 fail:
30770 return NULL;
30771 }
30772
30773
30774 static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
30775 PyObject *resultobj;
30776 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30777 wxAcceleratorEntry *result;
30778 PyObject * obj0 = 0 ;
30779 char *kwnames[] = {
30780 (char *) "self", NULL
30781 };
30782
30783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
30784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30785 {
30786 PyThreadState* __tstate = wxPyBeginAllowThreads();
30787 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
30788
30789 wxPyEndAllowThreads(__tstate);
30790 if (PyErr_Occurred()) SWIG_fail;
30791 }
30792 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0);
30793 return resultobj;
30794 fail:
30795 return NULL;
30796 }
30797
30798
30799 static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
30800 PyObject *resultobj;
30801 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30802 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
30803 PyObject * obj0 = 0 ;
30804 PyObject * obj1 = 0 ;
30805 char *kwnames[] = {
30806 (char *) "self",(char *) "accel", NULL
30807 };
30808
30809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
30810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30811 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30812 {
30813 PyThreadState* __tstate = wxPyBeginAllowThreads();
30814 (arg1)->SetAccel(arg2);
30815
30816 wxPyEndAllowThreads(__tstate);
30817 if (PyErr_Occurred()) SWIG_fail;
30818 }
30819 Py_INCREF(Py_None); resultobj = Py_None;
30820 return resultobj;
30821 fail:
30822 return NULL;
30823 }
30824
30825
30826 static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
30827 PyObject *resultobj;
30828 int result;
30829 char *kwnames[] = {
30830 NULL
30831 };
30832
30833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 result = (int)MenuItem_GetDefaultMarginWidth();
30837
30838 wxPyEndAllowThreads(__tstate);
30839 if (PyErr_Occurred()) SWIG_fail;
30840 }
30841 resultobj = SWIG_PyObj_FromInt((int)result);
30842 return resultobj;
30843 fail:
30844 return NULL;
30845 }
30846
30847
30848 static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30849 PyObject *resultobj;
30850 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30851 wxBitmap *arg2 = 0 ;
30852 PyObject * obj0 = 0 ;
30853 PyObject * obj1 = 0 ;
30854 char *kwnames[] = {
30855 (char *) "self",(char *) "bitmap", NULL
30856 };
30857
30858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
30859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30860 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30861 if (arg2 == NULL) {
30862 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
30863 }
30864 {
30865 PyThreadState* __tstate = wxPyBeginAllowThreads();
30866 (arg1)->SetBitmap((wxBitmap const &)*arg2);
30867
30868 wxPyEndAllowThreads(__tstate);
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 Py_INCREF(Py_None); resultobj = Py_None;
30872 return resultobj;
30873 fail:
30874 return NULL;
30875 }
30876
30877
30878 static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
30879 PyObject *resultobj;
30880 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30881 wxBitmap *result;
30882 PyObject * obj0 = 0 ;
30883 char *kwnames[] = {
30884 (char *) "self", NULL
30885 };
30886
30887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
30888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30889 {
30890 PyThreadState* __tstate = wxPyBeginAllowThreads();
30891 {
30892 wxBitmap const &_result_ref = (arg1)->GetBitmap();
30893 result = (wxBitmap *) &_result_ref;
30894 }
30895
30896 wxPyEndAllowThreads(__tstate);
30897 if (PyErr_Occurred()) SWIG_fail;
30898 }
30899 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
30900 return resultobj;
30901 fail:
30902 return NULL;
30903 }
30904
30905
30906 static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
30907 PyObject *obj;
30908 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30909 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
30910 Py_INCREF(obj);
30911 return Py_BuildValue((char *)"");
30912 }
30913 static int _wrap_ControlNameStr_set(PyObject *_val) {
30914 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
30915 return 1;
30916 }
30917
30918
30919 static PyObject *_wrap_ControlNameStr_get() {
30920 PyObject *pyobj;
30921
30922 {
30923 #if wxUSE_UNICODE
30924 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
30925 #else
30926 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
30927 #endif
30928 }
30929 return pyobj;
30930 }
30931
30932
30933 static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
30934 PyObject *resultobj;
30935 wxWindow *arg1 = (wxWindow *) 0 ;
30936 int arg2 ;
30937 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30938 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30939 wxSize const &arg4_defvalue = wxDefaultSize ;
30940 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30941 long arg5 = (long) 0 ;
30942 wxValidator const &arg6_defvalue = wxDefaultValidator ;
30943 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
30944 wxString const &arg7_defvalue = wxPyControlNameStr ;
30945 wxString *arg7 = (wxString *) &arg7_defvalue ;
30946 wxControl *result;
30947 wxPoint temp3 ;
30948 wxSize temp4 ;
30949 bool temp7 = False ;
30950 PyObject * obj0 = 0 ;
30951 PyObject * obj1 = 0 ;
30952 PyObject * obj2 = 0 ;
30953 PyObject * obj3 = 0 ;
30954 PyObject * obj4 = 0 ;
30955 PyObject * obj5 = 0 ;
30956 PyObject * obj6 = 0 ;
30957 char *kwnames[] = {
30958 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
30959 };
30960
30961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
30962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30963 {
30964 arg2 = (int) SWIG_PyObj_AsInt(obj1);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 if (obj2) {
30968 {
30969 arg3 = &temp3;
30970 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30971 }
30972 }
30973 if (obj3) {
30974 {
30975 arg4 = &temp4;
30976 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30977 }
30978 }
30979 if (obj4) {
30980 {
30981 arg5 = (long) SWIG_PyObj_AsLong(obj4);
30982 if (PyErr_Occurred()) SWIG_fail;
30983 }
30984 }
30985 if (obj5) {
30986 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30987 if (arg6 == NULL) {
30988 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
30989 }
30990 }
30991 if (obj6) {
30992 {
30993 arg7 = wxString_in_helper(obj6);
30994 if (arg7 == NULL) SWIG_fail;
30995 temp7 = True;
30996 }
30997 }
30998 {
30999 PyThreadState* __tstate = wxPyBeginAllowThreads();
31000 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31001
31002 wxPyEndAllowThreads(__tstate);
31003 if (PyErr_Occurred()) SWIG_fail;
31004 }
31005 {
31006 resultobj = wxPyMake_wxObject(result);
31007 }
31008 {
31009 if (temp7)
31010 delete arg7;
31011 }
31012 return resultobj;
31013 fail:
31014 {
31015 if (temp7)
31016 delete arg7;
31017 }
31018 return NULL;
31019 }
31020
31021
31022 static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
31023 PyObject *resultobj;
31024 wxControl *result;
31025 char *kwnames[] = {
31026 NULL
31027 };
31028
31029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
31030 {
31031 PyThreadState* __tstate = wxPyBeginAllowThreads();
31032 result = (wxControl *)new wxControl();
31033
31034 wxPyEndAllowThreads(__tstate);
31035 if (PyErr_Occurred()) SWIG_fail;
31036 }
31037 {
31038 resultobj = wxPyMake_wxObject(result);
31039 }
31040 return resultobj;
31041 fail:
31042 return NULL;
31043 }
31044
31045
31046 static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
31047 PyObject *resultobj;
31048 wxControl *arg1 = (wxControl *) 0 ;
31049 wxWindow *arg2 = (wxWindow *) 0 ;
31050 int arg3 ;
31051 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31052 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31053 wxSize const &arg5_defvalue = wxDefaultSize ;
31054 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31055 long arg6 = (long) 0 ;
31056 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31057 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31058 wxString const &arg8_defvalue = wxPyControlNameStr ;
31059 wxString *arg8 = (wxString *) &arg8_defvalue ;
31060 bool result;
31061 wxPoint temp4 ;
31062 wxSize temp5 ;
31063 bool temp8 = False ;
31064 PyObject * obj0 = 0 ;
31065 PyObject * obj1 = 0 ;
31066 PyObject * obj2 = 0 ;
31067 PyObject * obj3 = 0 ;
31068 PyObject * obj4 = 0 ;
31069 PyObject * obj5 = 0 ;
31070 PyObject * obj6 = 0 ;
31071 PyObject * obj7 = 0 ;
31072 char *kwnames[] = {
31073 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31074 };
31075
31076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
31077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31078 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31079 {
31080 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31081 if (PyErr_Occurred()) SWIG_fail;
31082 }
31083 if (obj3) {
31084 {
31085 arg4 = &temp4;
31086 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31087 }
31088 }
31089 if (obj4) {
31090 {
31091 arg5 = &temp5;
31092 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31093 }
31094 }
31095 if (obj5) {
31096 {
31097 arg6 = (long) SWIG_PyObj_AsLong(obj5);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 }
31100 }
31101 if (obj6) {
31102 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31103 if (arg7 == NULL) {
31104 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31105 }
31106 }
31107 if (obj7) {
31108 {
31109 arg8 = wxString_in_helper(obj7);
31110 if (arg8 == NULL) SWIG_fail;
31111 temp8 = True;
31112 }
31113 }
31114 {
31115 PyThreadState* __tstate = wxPyBeginAllowThreads();
31116 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31117
31118 wxPyEndAllowThreads(__tstate);
31119 if (PyErr_Occurred()) SWIG_fail;
31120 }
31121 resultobj = SWIG_PyObj_FromBool((bool)result);
31122 {
31123 if (temp8)
31124 delete arg8;
31125 }
31126 return resultobj;
31127 fail:
31128 {
31129 if (temp8)
31130 delete arg8;
31131 }
31132 return NULL;
31133 }
31134
31135
31136 static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
31137 PyObject *resultobj;
31138 wxControl *arg1 = (wxControl *) 0 ;
31139 wxCommandEvent *arg2 = 0 ;
31140 PyObject * obj0 = 0 ;
31141 PyObject * obj1 = 0 ;
31142 char *kwnames[] = {
31143 (char *) "self",(char *) "event", NULL
31144 };
31145
31146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
31147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31148 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31149 if (arg2 == NULL) {
31150 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31151 }
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 (arg1)->Command(*arg2);
31155
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 Py_INCREF(Py_None); resultobj = Py_None;
31160 return resultobj;
31161 fail:
31162 return NULL;
31163 }
31164
31165
31166 static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31167 PyObject *resultobj;
31168 wxControl *arg1 = (wxControl *) 0 ;
31169 wxString result;
31170 PyObject * obj0 = 0 ;
31171 char *kwnames[] = {
31172 (char *) "self", NULL
31173 };
31174
31175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
31176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31177 {
31178 PyThreadState* __tstate = wxPyBeginAllowThreads();
31179 result = (arg1)->GetLabel();
31180
31181 wxPyEndAllowThreads(__tstate);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 {
31185 #if wxUSE_UNICODE
31186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31187 #else
31188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31189 #endif
31190 }
31191 return resultobj;
31192 fail:
31193 return NULL;
31194 }
31195
31196
31197 static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31198 PyObject *resultobj;
31199 wxControl *arg1 = (wxControl *) 0 ;
31200 wxString *arg2 = 0 ;
31201 bool temp2 = False ;
31202 PyObject * obj0 = 0 ;
31203 PyObject * obj1 = 0 ;
31204 char *kwnames[] = {
31205 (char *) "self",(char *) "label", NULL
31206 };
31207
31208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
31209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31210 {
31211 arg2 = wxString_in_helper(obj1);
31212 if (arg2 == NULL) SWIG_fail;
31213 temp2 = True;
31214 }
31215 {
31216 PyThreadState* __tstate = wxPyBeginAllowThreads();
31217 (arg1)->SetLabel((wxString const &)*arg2);
31218
31219 wxPyEndAllowThreads(__tstate);
31220 if (PyErr_Occurred()) SWIG_fail;
31221 }
31222 Py_INCREF(Py_None); resultobj = Py_None;
31223 {
31224 if (temp2)
31225 delete arg2;
31226 }
31227 return resultobj;
31228 fail:
31229 {
31230 if (temp2)
31231 delete arg2;
31232 }
31233 return NULL;
31234 }
31235
31236
31237 static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
31238 PyObject *obj;
31239 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31240 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
31241 Py_INCREF(obj);
31242 return Py_BuildValue((char *)"");
31243 }
31244 static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
31245 PyObject *resultobj;
31246 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31247 wxString *arg2 = 0 ;
31248 PyObject *arg3 = (PyObject *) NULL ;
31249 int result;
31250 bool temp2 = False ;
31251 PyObject * obj0 = 0 ;
31252 PyObject * obj1 = 0 ;
31253 PyObject * obj2 = 0 ;
31254 char *kwnames[] = {
31255 (char *) "self",(char *) "item",(char *) "clientData", NULL
31256 };
31257
31258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31260 {
31261 arg2 = wxString_in_helper(obj1);
31262 if (arg2 == NULL) SWIG_fail;
31263 temp2 = True;
31264 }
31265 if (obj2) {
31266 arg3 = obj2;
31267 }
31268 {
31269 PyThreadState* __tstate = wxPyBeginAllowThreads();
31270 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
31271
31272 wxPyEndAllowThreads(__tstate);
31273 if (PyErr_Occurred()) SWIG_fail;
31274 }
31275 resultobj = SWIG_PyObj_FromInt((int)result);
31276 {
31277 if (temp2)
31278 delete arg2;
31279 }
31280 return resultobj;
31281 fail:
31282 {
31283 if (temp2)
31284 delete arg2;
31285 }
31286 return NULL;
31287 }
31288
31289
31290 static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
31291 PyObject *resultobj;
31292 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31293 wxArrayString *arg2 = 0 ;
31294 PyObject * obj0 = 0 ;
31295 PyObject * obj1 = 0 ;
31296 char *kwnames[] = {
31297 (char *) "self",(char *) "strings", NULL
31298 };
31299
31300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
31301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31302 {
31303 if (! PySequence_Check(obj1)) {
31304 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
31305 SWIG_fail;
31306 }
31307 arg2 = new wxArrayString;
31308 int i, len=PySequence_Length(obj1);
31309 for (i=0; i<len; i++) {
31310 PyObject* item = PySequence_GetItem(obj1, i);
31311 #if wxUSE_UNICODE
31312 PyObject* str = PyObject_Unicode(item);
31313 #else
31314 PyObject* str = PyObject_Str(item);
31315 #endif
31316 arg2->Add(Py2wxString(str));
31317 Py_DECREF(item);
31318 Py_DECREF(str);
31319 }
31320 }
31321 {
31322 PyThreadState* __tstate = wxPyBeginAllowThreads();
31323 (arg1)->Append((wxArrayString const &)*arg2);
31324
31325 wxPyEndAllowThreads(__tstate);
31326 if (PyErr_Occurred()) SWIG_fail;
31327 }
31328 Py_INCREF(Py_None); resultobj = Py_None;
31329 {
31330 if (arg2) delete arg2;
31331 }
31332 return resultobj;
31333 fail:
31334 {
31335 if (arg2) delete arg2;
31336 }
31337 return NULL;
31338 }
31339
31340
31341 static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
31342 PyObject *resultobj;
31343 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31344 wxString *arg2 = 0 ;
31345 int arg3 ;
31346 PyObject *arg4 = (PyObject *) NULL ;
31347 int result;
31348 bool temp2 = False ;
31349 PyObject * obj0 = 0 ;
31350 PyObject * obj1 = 0 ;
31351 PyObject * obj2 = 0 ;
31352 PyObject * obj3 = 0 ;
31353 char *kwnames[] = {
31354 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
31355 };
31356
31357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31359 {
31360 arg2 = wxString_in_helper(obj1);
31361 if (arg2 == NULL) SWIG_fail;
31362 temp2 = True;
31363 }
31364 {
31365 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31366 if (PyErr_Occurred()) SWIG_fail;
31367 }
31368 if (obj3) {
31369 arg4 = obj3;
31370 }
31371 {
31372 PyThreadState* __tstate = wxPyBeginAllowThreads();
31373 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
31374
31375 wxPyEndAllowThreads(__tstate);
31376 if (PyErr_Occurred()) SWIG_fail;
31377 }
31378 resultobj = SWIG_PyObj_FromInt((int)result);
31379 {
31380 if (temp2)
31381 delete arg2;
31382 }
31383 return resultobj;
31384 fail:
31385 {
31386 if (temp2)
31387 delete arg2;
31388 }
31389 return NULL;
31390 }
31391
31392
31393 static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
31394 PyObject *resultobj;
31395 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31396 PyObject * obj0 = 0 ;
31397 char *kwnames[] = {
31398 (char *) "self", NULL
31399 };
31400
31401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
31402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31403 {
31404 PyThreadState* __tstate = wxPyBeginAllowThreads();
31405 (arg1)->Clear();
31406
31407 wxPyEndAllowThreads(__tstate);
31408 if (PyErr_Occurred()) SWIG_fail;
31409 }
31410 Py_INCREF(Py_None); resultobj = Py_None;
31411 return resultobj;
31412 fail:
31413 return NULL;
31414 }
31415
31416
31417 static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
31418 PyObject *resultobj;
31419 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31420 int arg2 ;
31421 PyObject * obj0 = 0 ;
31422 PyObject * obj1 = 0 ;
31423 char *kwnames[] = {
31424 (char *) "self",(char *) "n", NULL
31425 };
31426
31427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
31428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31429 {
31430 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31431 if (PyErr_Occurred()) SWIG_fail;
31432 }
31433 {
31434 PyThreadState* __tstate = wxPyBeginAllowThreads();
31435 (arg1)->Delete(arg2);
31436
31437 wxPyEndAllowThreads(__tstate);
31438 if (PyErr_Occurred()) SWIG_fail;
31439 }
31440 Py_INCREF(Py_None); resultobj = Py_None;
31441 return resultobj;
31442 fail:
31443 return NULL;
31444 }
31445
31446
31447 static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31448 PyObject *resultobj;
31449 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31450 int result;
31451 PyObject * obj0 = 0 ;
31452 char *kwnames[] = {
31453 (char *) "self", NULL
31454 };
31455
31456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
31457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 result = (int)((wxItemContainer const *)arg1)->GetCount();
31461
31462 wxPyEndAllowThreads(__tstate);
31463 if (PyErr_Occurred()) SWIG_fail;
31464 }
31465 resultobj = SWIG_PyObj_FromInt((int)result);
31466 return resultobj;
31467 fail:
31468 return NULL;
31469 }
31470
31471
31472 static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
31473 PyObject *resultobj;
31474 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31475 bool result;
31476 PyObject * obj0 = 0 ;
31477 char *kwnames[] = {
31478 (char *) "self", NULL
31479 };
31480
31481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
31482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31483 {
31484 PyThreadState* __tstate = wxPyBeginAllowThreads();
31485 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
31486
31487 wxPyEndAllowThreads(__tstate);
31488 if (PyErr_Occurred()) SWIG_fail;
31489 }
31490 resultobj = SWIG_PyObj_FromBool((bool)result);
31491 return resultobj;
31492 fail:
31493 return NULL;
31494 }
31495
31496
31497 static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
31498 PyObject *resultobj;
31499 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31500 int arg2 ;
31501 wxString result;
31502 PyObject * obj0 = 0 ;
31503 PyObject * obj1 = 0 ;
31504 char *kwnames[] = {
31505 (char *) "self",(char *) "n", NULL
31506 };
31507
31508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
31509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31510 {
31511 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31512 if (PyErr_Occurred()) SWIG_fail;
31513 }
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = ((wxItemContainer const *)arg1)->GetString(arg2);
31517
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 {
31522 #if wxUSE_UNICODE
31523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31524 #else
31525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31526 #endif
31527 }
31528 return resultobj;
31529 fail:
31530 return NULL;
31531 }
31532
31533
31534 static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
31535 PyObject *resultobj;
31536 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31537 wxArrayString result;
31538 PyObject * obj0 = 0 ;
31539 char *kwnames[] = {
31540 (char *) "self", NULL
31541 };
31542
31543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
31544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31545 {
31546 PyThreadState* __tstate = wxPyBeginAllowThreads();
31547 result = ((wxItemContainer const *)arg1)->GetStrings();
31548
31549 wxPyEndAllowThreads(__tstate);
31550 if (PyErr_Occurred()) SWIG_fail;
31551 }
31552 {
31553 resultobj = wxArrayString2PyList_helper(result);
31554 }
31555 return resultobj;
31556 fail:
31557 return NULL;
31558 }
31559
31560
31561 static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
31562 PyObject *resultobj;
31563 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31564 int arg2 ;
31565 wxString *arg3 = 0 ;
31566 bool temp3 = False ;
31567 PyObject * obj0 = 0 ;
31568 PyObject * obj1 = 0 ;
31569 PyObject * obj2 = 0 ;
31570 char *kwnames[] = {
31571 (char *) "self",(char *) "n",(char *) "s", NULL
31572 };
31573
31574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31576 {
31577 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 {
31581 arg3 = wxString_in_helper(obj2);
31582 if (arg3 == NULL) SWIG_fail;
31583 temp3 = True;
31584 }
31585 {
31586 PyThreadState* __tstate = wxPyBeginAllowThreads();
31587 (arg1)->SetString(arg2,(wxString const &)*arg3);
31588
31589 wxPyEndAllowThreads(__tstate);
31590 if (PyErr_Occurred()) SWIG_fail;
31591 }
31592 Py_INCREF(Py_None); resultobj = Py_None;
31593 {
31594 if (temp3)
31595 delete arg3;
31596 }
31597 return resultobj;
31598 fail:
31599 {
31600 if (temp3)
31601 delete arg3;
31602 }
31603 return NULL;
31604 }
31605
31606
31607 static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj;
31609 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31610 wxString *arg2 = 0 ;
31611 int result;
31612 bool temp2 = False ;
31613 PyObject * obj0 = 0 ;
31614 PyObject * obj1 = 0 ;
31615 char *kwnames[] = {
31616 (char *) "self",(char *) "s", NULL
31617 };
31618
31619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
31620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31621 {
31622 arg2 = wxString_in_helper(obj1);
31623 if (arg2 == NULL) SWIG_fail;
31624 temp2 = True;
31625 }
31626 {
31627 PyThreadState* __tstate = wxPyBeginAllowThreads();
31628 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
31629
31630 wxPyEndAllowThreads(__tstate);
31631 if (PyErr_Occurred()) SWIG_fail;
31632 }
31633 resultobj = SWIG_PyObj_FromInt((int)result);
31634 {
31635 if (temp2)
31636 delete arg2;
31637 }
31638 return resultobj;
31639 fail:
31640 {
31641 if (temp2)
31642 delete arg2;
31643 }
31644 return NULL;
31645 }
31646
31647
31648 static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
31649 PyObject *resultobj;
31650 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31651 int arg2 ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 char *kwnames[] = {
31655 (char *) "self",(char *) "n", NULL
31656 };
31657
31658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
31659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31660 {
31661 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31662 if (PyErr_Occurred()) SWIG_fail;
31663 }
31664 {
31665 PyThreadState* __tstate = wxPyBeginAllowThreads();
31666 (arg1)->Select(arg2);
31667
31668 wxPyEndAllowThreads(__tstate);
31669 if (PyErr_Occurred()) SWIG_fail;
31670 }
31671 Py_INCREF(Py_None); resultobj = Py_None;
31672 return resultobj;
31673 fail:
31674 return NULL;
31675 }
31676
31677
31678 static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
31679 PyObject *resultobj;
31680 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31681 int result;
31682 PyObject * obj0 = 0 ;
31683 char *kwnames[] = {
31684 (char *) "self", NULL
31685 };
31686
31687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
31688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31689 {
31690 PyThreadState* __tstate = wxPyBeginAllowThreads();
31691 result = (int)((wxItemContainer const *)arg1)->GetSelection();
31692
31693 wxPyEndAllowThreads(__tstate);
31694 if (PyErr_Occurred()) SWIG_fail;
31695 }
31696 resultobj = SWIG_PyObj_FromInt((int)result);
31697 return resultobj;
31698 fail:
31699 return NULL;
31700 }
31701
31702
31703 static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
31704 PyObject *resultobj;
31705 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31706 wxString result;
31707 PyObject * obj0 = 0 ;
31708 char *kwnames[] = {
31709 (char *) "self", NULL
31710 };
31711
31712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
31713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31714 {
31715 PyThreadState* __tstate = wxPyBeginAllowThreads();
31716 result = ((wxItemContainer const *)arg1)->GetStringSelection();
31717
31718 wxPyEndAllowThreads(__tstate);
31719 if (PyErr_Occurred()) SWIG_fail;
31720 }
31721 {
31722 #if wxUSE_UNICODE
31723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31724 #else
31725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31726 #endif
31727 }
31728 return resultobj;
31729 fail:
31730 return NULL;
31731 }
31732
31733
31734 static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
31735 PyObject *resultobj;
31736 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31737 int arg2 ;
31738 PyObject *result;
31739 PyObject * obj0 = 0 ;
31740 PyObject * obj1 = 0 ;
31741 char *kwnames[] = {
31742 (char *) "self",(char *) "n", NULL
31743 };
31744
31745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
31746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31747 {
31748 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31749 if (PyErr_Occurred()) SWIG_fail;
31750 }
31751 {
31752 PyThreadState* __tstate = wxPyBeginAllowThreads();
31753 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
31754
31755 wxPyEndAllowThreads(__tstate);
31756 if (PyErr_Occurred()) SWIG_fail;
31757 }
31758 resultobj = result;
31759 return resultobj;
31760 fail:
31761 return NULL;
31762 }
31763
31764
31765 static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj;
31767 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31768 int arg2 ;
31769 PyObject *arg3 = (PyObject *) 0 ;
31770 PyObject * obj0 = 0 ;
31771 PyObject * obj1 = 0 ;
31772 PyObject * obj2 = 0 ;
31773 char *kwnames[] = {
31774 (char *) "self",(char *) "n",(char *) "clientData", NULL
31775 };
31776
31777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
31778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31779 {
31780 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31781 if (PyErr_Occurred()) SWIG_fail;
31782 }
31783 arg3 = obj2;
31784 {
31785 PyThreadState* __tstate = wxPyBeginAllowThreads();
31786 wxItemContainer_SetClientData(arg1,arg2,arg3);
31787
31788 wxPyEndAllowThreads(__tstate);
31789 if (PyErr_Occurred()) SWIG_fail;
31790 }
31791 Py_INCREF(Py_None); resultobj = Py_None;
31792 return resultobj;
31793 fail:
31794 return NULL;
31795 }
31796
31797
31798 static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
31799 PyObject *obj;
31800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31801 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
31802 Py_INCREF(obj);
31803 return Py_BuildValue((char *)"");
31804 }
31805 static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
31806 PyObject *obj;
31807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31808 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
31809 Py_INCREF(obj);
31810 return Py_BuildValue((char *)"");
31811 }
31812 static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31813 PyObject *resultobj;
31814 wxSizerItem *result;
31815 char *kwnames[] = {
31816 NULL
31817 };
31818
31819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
31820 {
31821 PyThreadState* __tstate = wxPyBeginAllowThreads();
31822 result = (wxSizerItem *)new wxSizerItem();
31823
31824 wxPyEndAllowThreads(__tstate);
31825 if (PyErr_Occurred()) SWIG_fail;
31826 }
31827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
31828 return resultobj;
31829 fail:
31830 return NULL;
31831 }
31832
31833
31834 static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
31835 PyObject *resultobj;
31836 int arg1 ;
31837 int arg2 ;
31838 int arg3 ;
31839 int arg4 ;
31840 int arg5 ;
31841 wxObject *arg6 = (wxObject *) 0 ;
31842 wxSizerItem *result;
31843 PyObject * obj0 = 0 ;
31844 PyObject * obj1 = 0 ;
31845 PyObject * obj2 = 0 ;
31846 PyObject * obj3 = 0 ;
31847 PyObject * obj4 = 0 ;
31848 PyObject * obj5 = 0 ;
31849 char *kwnames[] = {
31850 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
31851 };
31852
31853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31854 {
31855 arg1 = (int) SWIG_PyObj_AsInt(obj0);
31856 if (PyErr_Occurred()) SWIG_fail;
31857 }
31858 {
31859 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31860 if (PyErr_Occurred()) SWIG_fail;
31861 }
31862 {
31863 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31864 if (PyErr_Occurred()) SWIG_fail;
31865 }
31866 {
31867 arg4 = (int) SWIG_PyObj_AsInt(obj3);
31868 if (PyErr_Occurred()) SWIG_fail;
31869 }
31870 {
31871 arg5 = (int) SWIG_PyObj_AsInt(obj4);
31872 if (PyErr_Occurred()) SWIG_fail;
31873 }
31874 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31875 {
31876 PyThreadState* __tstate = wxPyBeginAllowThreads();
31877 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
31878
31879 wxPyEndAllowThreads(__tstate);
31880 if (PyErr_Occurred()) SWIG_fail;
31881 }
31882 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
31883 return resultobj;
31884 fail:
31885 return NULL;
31886 }
31887
31888
31889 static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
31890 PyObject *resultobj;
31891 wxWindow *arg1 = (wxWindow *) 0 ;
31892 int arg2 ;
31893 int arg3 ;
31894 int arg4 ;
31895 wxObject *arg5 = (wxObject *) 0 ;
31896 wxSizerItem *result;
31897 PyObject * obj0 = 0 ;
31898 PyObject * obj1 = 0 ;
31899 PyObject * obj2 = 0 ;
31900 PyObject * obj3 = 0 ;
31901 PyObject * obj4 = 0 ;
31902 char *kwnames[] = {
31903 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
31904 };
31905
31906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31908 {
31909 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31910 if (PyErr_Occurred()) SWIG_fail;
31911 }
31912 {
31913 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31914 if (PyErr_Occurred()) SWIG_fail;
31915 }
31916 {
31917 arg4 = (int) SWIG_PyObj_AsInt(obj3);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31921 {
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
31924
31925 wxPyEndAllowThreads(__tstate);
31926 if (PyErr_Occurred()) SWIG_fail;
31927 }
31928 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
31929 return resultobj;
31930 fail:
31931 return NULL;
31932 }
31933
31934
31935 static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
31936 PyObject *resultobj;
31937 wxSizer *arg1 = (wxSizer *) 0 ;
31938 int arg2 ;
31939 int arg3 ;
31940 int arg4 ;
31941 wxObject *arg5 = (wxObject *) 0 ;
31942 wxSizerItem *result;
31943 PyObject * obj0 = 0 ;
31944 PyObject * obj1 = 0 ;
31945 PyObject * obj2 = 0 ;
31946 PyObject * obj3 = 0 ;
31947 PyObject * obj4 = 0 ;
31948 char *kwnames[] = {
31949 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
31950 };
31951
31952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31954 {
31955 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31956 if (PyErr_Occurred()) SWIG_fail;
31957 }
31958 {
31959 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 {
31963 arg4 = (int) SWIG_PyObj_AsInt(obj3);
31964 if (PyErr_Occurred()) SWIG_fail;
31965 }
31966 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31967 {
31968 PyThreadState* __tstate = wxPyBeginAllowThreads();
31969 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
31970
31971 wxPyEndAllowThreads(__tstate);
31972 if (PyErr_Occurred()) SWIG_fail;
31973 }
31974 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
31975 return resultobj;
31976 fail:
31977 return NULL;
31978 }
31979
31980
31981 static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
31982 PyObject *resultobj;
31983 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
31984 PyObject * obj0 = 0 ;
31985 char *kwnames[] = {
31986 (char *) "self", NULL
31987 };
31988
31989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
31990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31991 {
31992 PyThreadState* __tstate = wxPyBeginAllowThreads();
31993 (arg1)->DeleteWindows();
31994
31995 wxPyEndAllowThreads(__tstate);
31996 if (PyErr_Occurred()) SWIG_fail;
31997 }
31998 Py_INCREF(Py_None); resultobj = Py_None;
31999 return resultobj;
32000 fail:
32001 return NULL;
32002 }
32003
32004
32005 static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32006 PyObject *resultobj;
32007 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32008 PyObject * obj0 = 0 ;
32009 char *kwnames[] = {
32010 (char *) "self", NULL
32011 };
32012
32013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
32014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32015 {
32016 PyThreadState* __tstate = wxPyBeginAllowThreads();
32017 (arg1)->DetachSizer();
32018
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 Py_INCREF(Py_None); resultobj = Py_None;
32023 return resultobj;
32024 fail:
32025 return NULL;
32026 }
32027
32028
32029 static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj;
32031 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32032 wxSize result;
32033 PyObject * obj0 = 0 ;
32034 char *kwnames[] = {
32035 (char *) "self", NULL
32036 };
32037
32038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
32039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32040 {
32041 PyThreadState* __tstate = wxPyBeginAllowThreads();
32042 result = (arg1)->GetSize();
32043
32044 wxPyEndAllowThreads(__tstate);
32045 if (PyErr_Occurred()) SWIG_fail;
32046 }
32047 {
32048 wxSize * resultptr;
32049 resultptr = new wxSize((wxSize &) result);
32050 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32051 }
32052 return resultobj;
32053 fail:
32054 return NULL;
32055 }
32056
32057
32058 static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
32059 PyObject *resultobj;
32060 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32061 wxSize result;
32062 PyObject * obj0 = 0 ;
32063 char *kwnames[] = {
32064 (char *) "self", NULL
32065 };
32066
32067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
32068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32069 {
32070 PyThreadState* __tstate = wxPyBeginAllowThreads();
32071 result = (arg1)->CalcMin();
32072
32073 wxPyEndAllowThreads(__tstate);
32074 if (PyErr_Occurred()) SWIG_fail;
32075 }
32076 {
32077 wxSize * resultptr;
32078 resultptr = new wxSize((wxSize &) result);
32079 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32080 }
32081 return resultobj;
32082 fail:
32083 return NULL;
32084 }
32085
32086
32087 static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
32088 PyObject *resultobj;
32089 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32090 wxPoint arg2 ;
32091 wxSize arg3 ;
32092 wxPoint *argp2 ;
32093 wxSize *argp3 ;
32094 PyObject * obj0 = 0 ;
32095 PyObject * obj1 = 0 ;
32096 PyObject * obj2 = 0 ;
32097 char *kwnames[] = {
32098 (char *) "self",(char *) "pos",(char *) "size", NULL
32099 };
32100
32101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
32102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32103 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32104 arg2 = *argp2;
32105 if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32106 arg3 = *argp3;
32107 {
32108 PyThreadState* __tstate = wxPyBeginAllowThreads();
32109 (arg1)->SetDimension(arg2,arg3);
32110
32111 wxPyEndAllowThreads(__tstate);
32112 if (PyErr_Occurred()) SWIG_fail;
32113 }
32114 Py_INCREF(Py_None); resultobj = Py_None;
32115 return resultobj;
32116 fail:
32117 return NULL;
32118 }
32119
32120
32121 static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32122 PyObject *resultobj;
32123 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32124 wxSize result;
32125 PyObject * obj0 = 0 ;
32126 char *kwnames[] = {
32127 (char *) "self", NULL
32128 };
32129
32130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
32131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32132 {
32133 PyThreadState* __tstate = wxPyBeginAllowThreads();
32134 result = (arg1)->GetMinSize();
32135
32136 wxPyEndAllowThreads(__tstate);
32137 if (PyErr_Occurred()) SWIG_fail;
32138 }
32139 {
32140 wxSize * resultptr;
32141 resultptr = new wxSize((wxSize &) result);
32142 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32143 }
32144 return resultobj;
32145 fail:
32146 return NULL;
32147 }
32148
32149
32150 static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32151 PyObject *resultobj;
32152 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32153 int arg2 ;
32154 int arg3 ;
32155 PyObject * obj0 = 0 ;
32156 PyObject * obj1 = 0 ;
32157 PyObject * obj2 = 0 ;
32158 char *kwnames[] = {
32159 (char *) "self",(char *) "x",(char *) "y", NULL
32160 };
32161
32162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
32163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32164 {
32165 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32166 if (PyErr_Occurred()) SWIG_fail;
32167 }
32168 {
32169 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32170 if (PyErr_Occurred()) SWIG_fail;
32171 }
32172 {
32173 PyThreadState* __tstate = wxPyBeginAllowThreads();
32174 (arg1)->SetInitSize(arg2,arg3);
32175
32176 wxPyEndAllowThreads(__tstate);
32177 if (PyErr_Occurred()) SWIG_fail;
32178 }
32179 Py_INCREF(Py_None); resultobj = Py_None;
32180 return resultobj;
32181 fail:
32182 return NULL;
32183 }
32184
32185
32186 static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
32187 PyObject *resultobj;
32188 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32189 int arg2 ;
32190 int arg3 ;
32191 PyObject * obj0 = 0 ;
32192 PyObject * obj1 = 0 ;
32193 PyObject * obj2 = 0 ;
32194 char *kwnames[] = {
32195 (char *) "self",(char *) "width",(char *) "height", NULL
32196 };
32197
32198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
32199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32200 {
32201 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32202 if (PyErr_Occurred()) SWIG_fail;
32203 }
32204 {
32205 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32206 if (PyErr_Occurred()) SWIG_fail;
32207 }
32208 {
32209 PyThreadState* __tstate = wxPyBeginAllowThreads();
32210 (arg1)->SetRatio(arg2,arg3);
32211
32212 wxPyEndAllowThreads(__tstate);
32213 if (PyErr_Occurred()) SWIG_fail;
32214 }
32215 Py_INCREF(Py_None); resultobj = Py_None;
32216 return resultobj;
32217 fail:
32218 return NULL;
32219 }
32220
32221
32222 static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32223 PyObject *resultobj;
32224 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32225 wxSize arg2 ;
32226 wxSize *argp2 ;
32227 PyObject * obj0 = 0 ;
32228 PyObject * obj1 = 0 ;
32229 char *kwnames[] = {
32230 (char *) "self",(char *) "size", NULL
32231 };
32232
32233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
32234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32235 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32236 arg2 = *argp2;
32237 {
32238 PyThreadState* __tstate = wxPyBeginAllowThreads();
32239 (arg1)->SetRatio(arg2);
32240
32241 wxPyEndAllowThreads(__tstate);
32242 if (PyErr_Occurred()) SWIG_fail;
32243 }
32244 Py_INCREF(Py_None); resultobj = Py_None;
32245 return resultobj;
32246 fail:
32247 return NULL;
32248 }
32249
32250
32251 static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
32252 PyObject *resultobj;
32253 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32254 float arg2 ;
32255 PyObject * obj0 = 0 ;
32256 PyObject * obj1 = 0 ;
32257 char *kwnames[] = {
32258 (char *) "self",(char *) "ratio", NULL
32259 };
32260
32261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
32262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32263 {
32264 arg2 = (float) SWIG_PyObj_AsFloat(obj1);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 {
32268 PyThreadState* __tstate = wxPyBeginAllowThreads();
32269 (arg1)->SetRatio(arg2);
32270
32271 wxPyEndAllowThreads(__tstate);
32272 if (PyErr_Occurred()) SWIG_fail;
32273 }
32274 Py_INCREF(Py_None); resultobj = Py_None;
32275 return resultobj;
32276 fail:
32277 return NULL;
32278 }
32279
32280
32281 static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj;
32283 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32284 float result;
32285 PyObject * obj0 = 0 ;
32286 char *kwnames[] = {
32287 (char *) "self", NULL
32288 };
32289
32290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
32291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (float)(arg1)->GetRatio();
32295
32296 wxPyEndAllowThreads(__tstate);
32297 if (PyErr_Occurred()) SWIG_fail;
32298 }
32299 resultobj = SWIG_PyObj_FromFloat((float)result);
32300 return resultobj;
32301 fail:
32302 return NULL;
32303 }
32304
32305
32306 static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
32307 PyObject *resultobj;
32308 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32309 bool result;
32310 PyObject * obj0 = 0 ;
32311 char *kwnames[] = {
32312 (char *) "self", NULL
32313 };
32314
32315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
32316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32317 {
32318 PyThreadState* __tstate = wxPyBeginAllowThreads();
32319 result = (bool)(arg1)->IsWindow();
32320
32321 wxPyEndAllowThreads(__tstate);
32322 if (PyErr_Occurred()) SWIG_fail;
32323 }
32324 resultobj = SWIG_PyObj_FromBool((bool)result);
32325 return resultobj;
32326 fail:
32327 return NULL;
32328 }
32329
32330
32331 static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32332 PyObject *resultobj;
32333 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32334 bool result;
32335 PyObject * obj0 = 0 ;
32336 char *kwnames[] = {
32337 (char *) "self", NULL
32338 };
32339
32340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
32341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32342 {
32343 PyThreadState* __tstate = wxPyBeginAllowThreads();
32344 result = (bool)(arg1)->IsSizer();
32345
32346 wxPyEndAllowThreads(__tstate);
32347 if (PyErr_Occurred()) SWIG_fail;
32348 }
32349 resultobj = SWIG_PyObj_FromBool((bool)result);
32350 return resultobj;
32351 fail:
32352 return NULL;
32353 }
32354
32355
32356 static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
32357 PyObject *resultobj;
32358 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32359 bool result;
32360 PyObject * obj0 = 0 ;
32361 char *kwnames[] = {
32362 (char *) "self", NULL
32363 };
32364
32365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
32366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32367 {
32368 PyThreadState* __tstate = wxPyBeginAllowThreads();
32369 result = (bool)(arg1)->IsSpacer();
32370
32371 wxPyEndAllowThreads(__tstate);
32372 if (PyErr_Occurred()) SWIG_fail;
32373 }
32374 resultobj = SWIG_PyObj_FromBool((bool)result);
32375 return resultobj;
32376 fail:
32377 return NULL;
32378 }
32379
32380
32381 static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
32382 PyObject *resultobj;
32383 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32384 int arg2 ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 char *kwnames[] = {
32388 (char *) "self",(char *) "proportion", NULL
32389 };
32390
32391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
32392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32393 {
32394 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
32397 {
32398 PyThreadState* __tstate = wxPyBeginAllowThreads();
32399 (arg1)->SetProportion(arg2);
32400
32401 wxPyEndAllowThreads(__tstate);
32402 if (PyErr_Occurred()) SWIG_fail;
32403 }
32404 Py_INCREF(Py_None); resultobj = Py_None;
32405 return resultobj;
32406 fail:
32407 return NULL;
32408 }
32409
32410
32411 static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
32412 PyObject *resultobj;
32413 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32414 int result;
32415 PyObject * obj0 = 0 ;
32416 char *kwnames[] = {
32417 (char *) "self", NULL
32418 };
32419
32420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
32421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (int)(arg1)->GetProportion();
32425
32426 wxPyEndAllowThreads(__tstate);
32427 if (PyErr_Occurred()) SWIG_fail;
32428 }
32429 resultobj = SWIG_PyObj_FromInt((int)result);
32430 return resultobj;
32431 fail:
32432 return NULL;
32433 }
32434
32435
32436 static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
32437 PyObject *resultobj;
32438 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32439 int arg2 ;
32440 PyObject * obj0 = 0 ;
32441 PyObject * obj1 = 0 ;
32442 char *kwnames[] = {
32443 (char *) "self",(char *) "flag", NULL
32444 };
32445
32446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
32447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32448 {
32449 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32450 if (PyErr_Occurred()) SWIG_fail;
32451 }
32452 {
32453 PyThreadState* __tstate = wxPyBeginAllowThreads();
32454 (arg1)->SetFlag(arg2);
32455
32456 wxPyEndAllowThreads(__tstate);
32457 if (PyErr_Occurred()) SWIG_fail;
32458 }
32459 Py_INCREF(Py_None); resultobj = Py_None;
32460 return resultobj;
32461 fail:
32462 return NULL;
32463 }
32464
32465
32466 static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
32467 PyObject *resultobj;
32468 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32469 int result;
32470 PyObject * obj0 = 0 ;
32471 char *kwnames[] = {
32472 (char *) "self", NULL
32473 };
32474
32475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
32476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 result = (int)(arg1)->GetFlag();
32480
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 resultobj = SWIG_PyObj_FromInt((int)result);
32485 return resultobj;
32486 fail:
32487 return NULL;
32488 }
32489
32490
32491 static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj;
32493 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32494 int arg2 ;
32495 PyObject * obj0 = 0 ;
32496 PyObject * obj1 = 0 ;
32497 char *kwnames[] = {
32498 (char *) "self",(char *) "border", NULL
32499 };
32500
32501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
32502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32503 {
32504 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 {
32508 PyThreadState* __tstate = wxPyBeginAllowThreads();
32509 (arg1)->SetBorder(arg2);
32510
32511 wxPyEndAllowThreads(__tstate);
32512 if (PyErr_Occurred()) SWIG_fail;
32513 }
32514 Py_INCREF(Py_None); resultobj = Py_None;
32515 return resultobj;
32516 fail:
32517 return NULL;
32518 }
32519
32520
32521 static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
32522 PyObject *resultobj;
32523 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32524 int result;
32525 PyObject * obj0 = 0 ;
32526 char *kwnames[] = {
32527 (char *) "self", NULL
32528 };
32529
32530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
32531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32532 {
32533 PyThreadState* __tstate = wxPyBeginAllowThreads();
32534 result = (int)(arg1)->GetBorder();
32535
32536 wxPyEndAllowThreads(__tstate);
32537 if (PyErr_Occurred()) SWIG_fail;
32538 }
32539 resultobj = SWIG_PyObj_FromInt((int)result);
32540 return resultobj;
32541 fail:
32542 return NULL;
32543 }
32544
32545
32546 static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
32547 PyObject *resultobj;
32548 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32549 wxWindow *result;
32550 PyObject * obj0 = 0 ;
32551 char *kwnames[] = {
32552 (char *) "self", NULL
32553 };
32554
32555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
32556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32557 {
32558 PyThreadState* __tstate = wxPyBeginAllowThreads();
32559 result = (wxWindow *)(arg1)->GetWindow();
32560
32561 wxPyEndAllowThreads(__tstate);
32562 if (PyErr_Occurred()) SWIG_fail;
32563 }
32564 {
32565 resultobj = wxPyMake_wxObject(result);
32566 }
32567 return resultobj;
32568 fail:
32569 return NULL;
32570 }
32571
32572
32573 static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
32574 PyObject *resultobj;
32575 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32576 wxWindow *arg2 = (wxWindow *) 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 char *kwnames[] = {
32580 (char *) "self",(char *) "window", NULL
32581 };
32582
32583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
32584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32585 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32586 {
32587 PyThreadState* __tstate = wxPyBeginAllowThreads();
32588 (arg1)->SetWindow(arg2);
32589
32590 wxPyEndAllowThreads(__tstate);
32591 if (PyErr_Occurred()) SWIG_fail;
32592 }
32593 Py_INCREF(Py_None); resultobj = Py_None;
32594 return resultobj;
32595 fail:
32596 return NULL;
32597 }
32598
32599
32600 static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32601 PyObject *resultobj;
32602 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32603 wxSizer *result;
32604 PyObject * obj0 = 0 ;
32605 char *kwnames[] = {
32606 (char *) "self", NULL
32607 };
32608
32609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
32610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32611 {
32612 PyThreadState* __tstate = wxPyBeginAllowThreads();
32613 result = (wxSizer *)(arg1)->GetSizer();
32614
32615 wxPyEndAllowThreads(__tstate);
32616 if (PyErr_Occurred()) SWIG_fail;
32617 }
32618 {
32619 resultobj = wxPyMake_wxSizer(result);
32620 }
32621 return resultobj;
32622 fail:
32623 return NULL;
32624 }
32625
32626
32627 static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32628 PyObject *resultobj;
32629 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32630 wxSizer *arg2 = (wxSizer *) 0 ;
32631 PyObject * obj0 = 0 ;
32632 PyObject * obj1 = 0 ;
32633 char *kwnames[] = {
32634 (char *) "self",(char *) "sizer", NULL
32635 };
32636
32637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
32638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32639 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32640 {
32641 PyThreadState* __tstate = wxPyBeginAllowThreads();
32642 (arg1)->SetSizer(arg2);
32643
32644 wxPyEndAllowThreads(__tstate);
32645 if (PyErr_Occurred()) SWIG_fail;
32646 }
32647 Py_INCREF(Py_None); resultobj = Py_None;
32648 return resultobj;
32649 fail:
32650 return NULL;
32651 }
32652
32653
32654 static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
32655 PyObject *resultobj;
32656 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32657 wxSize *result;
32658 PyObject * obj0 = 0 ;
32659 char *kwnames[] = {
32660 (char *) "self", NULL
32661 };
32662
32663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
32664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32665 {
32666 PyThreadState* __tstate = wxPyBeginAllowThreads();
32667 {
32668 wxSize const &_result_ref = (arg1)->GetSpacer();
32669 result = (wxSize *) &_result_ref;
32670 }
32671
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0);
32676 return resultobj;
32677 fail:
32678 return NULL;
32679 }
32680
32681
32682 static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
32683 PyObject *resultobj;
32684 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32685 wxSize *arg2 = 0 ;
32686 wxSize temp2 ;
32687 PyObject * obj0 = 0 ;
32688 PyObject * obj1 = 0 ;
32689 char *kwnames[] = {
32690 (char *) "self",(char *) "size", NULL
32691 };
32692
32693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
32694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32695 {
32696 arg2 = &temp2;
32697 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
32698 }
32699 {
32700 PyThreadState* __tstate = wxPyBeginAllowThreads();
32701 (arg1)->SetSpacer((wxSize const &)*arg2);
32702
32703 wxPyEndAllowThreads(__tstate);
32704 if (PyErr_Occurred()) SWIG_fail;
32705 }
32706 Py_INCREF(Py_None); resultobj = Py_None;
32707 return resultobj;
32708 fail:
32709 return NULL;
32710 }
32711
32712
32713 static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
32714 PyObject *resultobj;
32715 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32716 bool arg2 ;
32717 PyObject * obj0 = 0 ;
32718 PyObject * obj1 = 0 ;
32719 char *kwnames[] = {
32720 (char *) "self",(char *) "show", NULL
32721 };
32722
32723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
32724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32725 {
32726 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
32727 if (PyErr_Occurred()) SWIG_fail;
32728 }
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->Show(arg2);
32732
32733 wxPyEndAllowThreads(__tstate);
32734 if (PyErr_Occurred()) SWIG_fail;
32735 }
32736 Py_INCREF(Py_None); resultobj = Py_None;
32737 return resultobj;
32738 fail:
32739 return NULL;
32740 }
32741
32742
32743 static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
32744 PyObject *resultobj;
32745 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32746 bool result;
32747 PyObject * obj0 = 0 ;
32748 char *kwnames[] = {
32749 (char *) "self", NULL
32750 };
32751
32752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
32753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32754 {
32755 PyThreadState* __tstate = wxPyBeginAllowThreads();
32756 result = (bool)(arg1)->IsShown();
32757
32758 wxPyEndAllowThreads(__tstate);
32759 if (PyErr_Occurred()) SWIG_fail;
32760 }
32761 resultobj = SWIG_PyObj_FromBool((bool)result);
32762 return resultobj;
32763 fail:
32764 return NULL;
32765 }
32766
32767
32768 static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
32769 PyObject *resultobj;
32770 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32771 wxPoint result;
32772 PyObject * obj0 = 0 ;
32773 char *kwnames[] = {
32774 (char *) "self", NULL
32775 };
32776
32777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
32778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32779 {
32780 PyThreadState* __tstate = wxPyBeginAllowThreads();
32781 result = (arg1)->GetPosition();
32782
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
32786 {
32787 wxPoint * resultptr;
32788 resultptr = new wxPoint((wxPoint &) result);
32789 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
32790 }
32791 return resultobj;
32792 fail:
32793 return NULL;
32794 }
32795
32796
32797 static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
32798 PyObject *resultobj;
32799 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32800 PyObject *result;
32801 PyObject * obj0 = 0 ;
32802 char *kwnames[] = {
32803 (char *) "self", NULL
32804 };
32805
32806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
32807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32808 {
32809 PyThreadState* __tstate = wxPyBeginAllowThreads();
32810 result = (PyObject *)wxSizerItem_GetUserData(arg1);
32811
32812 wxPyEndAllowThreads(__tstate);
32813 if (PyErr_Occurred()) SWIG_fail;
32814 }
32815 resultobj = result;
32816 return resultobj;
32817 fail:
32818 return NULL;
32819 }
32820
32821
32822 static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
32823 PyObject *obj;
32824 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32825 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
32826 Py_INCREF(obj);
32827 return Py_BuildValue((char *)"");
32828 }
32829 static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
32830 PyObject *resultobj;
32831 wxSizer *arg1 = (wxSizer *) 0 ;
32832 PyObject *arg2 = (PyObject *) 0 ;
32833 PyObject * obj0 = 0 ;
32834 PyObject * obj1 = 0 ;
32835 char *kwnames[] = {
32836 (char *) "self",(char *) "_self", NULL
32837 };
32838
32839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
32840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32841 arg2 = obj1;
32842 {
32843 PyThreadState* __tstate = wxPyBeginAllowThreads();
32844 wxSizer__setOORInfo(arg1,arg2);
32845
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 Py_INCREF(Py_None); resultobj = Py_None;
32850 return resultobj;
32851 fail:
32852 return NULL;
32853 }
32854
32855
32856 static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
32857 PyObject *resultobj;
32858 wxSizer *arg1 = (wxSizer *) 0 ;
32859 PyObject *arg2 = (PyObject *) 0 ;
32860 int arg3 = (int) 0 ;
32861 int arg4 = (int) 0 ;
32862 int arg5 = (int) 0 ;
32863 PyObject *arg6 = (PyObject *) NULL ;
32864 PyObject * obj0 = 0 ;
32865 PyObject * obj1 = 0 ;
32866 PyObject * obj2 = 0 ;
32867 PyObject * obj3 = 0 ;
32868 PyObject * obj4 = 0 ;
32869 PyObject * obj5 = 0 ;
32870 char *kwnames[] = {
32871 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32872 };
32873
32874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32876 arg2 = obj1;
32877 if (obj2) {
32878 {
32879 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32880 if (PyErr_Occurred()) SWIG_fail;
32881 }
32882 }
32883 if (obj3) {
32884 {
32885 arg4 = (int) SWIG_PyObj_AsInt(obj3);
32886 if (PyErr_Occurred()) SWIG_fail;
32887 }
32888 }
32889 if (obj4) {
32890 {
32891 arg5 = (int) SWIG_PyObj_AsInt(obj4);
32892 if (PyErr_Occurred()) SWIG_fail;
32893 }
32894 }
32895 if (obj5) {
32896 arg6 = obj5;
32897 }
32898 {
32899 PyThreadState* __tstate = wxPyBeginAllowThreads();
32900 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
32901
32902 wxPyEndAllowThreads(__tstate);
32903 if (PyErr_Occurred()) SWIG_fail;
32904 }
32905 Py_INCREF(Py_None); resultobj = Py_None;
32906 return resultobj;
32907 fail:
32908 return NULL;
32909 }
32910
32911
32912 static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
32913 PyObject *resultobj;
32914 wxSizer *arg1 = (wxSizer *) 0 ;
32915 int arg2 ;
32916 PyObject *arg3 = (PyObject *) 0 ;
32917 int arg4 = (int) 0 ;
32918 int arg5 = (int) 0 ;
32919 int arg6 = (int) 0 ;
32920 PyObject *arg7 = (PyObject *) NULL ;
32921 PyObject * obj0 = 0 ;
32922 PyObject * obj1 = 0 ;
32923 PyObject * obj2 = 0 ;
32924 PyObject * obj3 = 0 ;
32925 PyObject * obj4 = 0 ;
32926 PyObject * obj5 = 0 ;
32927 PyObject * obj6 = 0 ;
32928 char *kwnames[] = {
32929 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32930 };
32931
32932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
32933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32934 {
32935 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32936 if (PyErr_Occurred()) SWIG_fail;
32937 }
32938 arg3 = obj2;
32939 if (obj3) {
32940 {
32941 arg4 = (int) SWIG_PyObj_AsInt(obj3);
32942 if (PyErr_Occurred()) SWIG_fail;
32943 }
32944 }
32945 if (obj4) {
32946 {
32947 arg5 = (int) SWIG_PyObj_AsInt(obj4);
32948 if (PyErr_Occurred()) SWIG_fail;
32949 }
32950 }
32951 if (obj5) {
32952 {
32953 arg6 = (int) SWIG_PyObj_AsInt(obj5);
32954 if (PyErr_Occurred()) SWIG_fail;
32955 }
32956 }
32957 if (obj6) {
32958 arg7 = obj6;
32959 }
32960 {
32961 PyThreadState* __tstate = wxPyBeginAllowThreads();
32962 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
32963
32964 wxPyEndAllowThreads(__tstate);
32965 if (PyErr_Occurred()) SWIG_fail;
32966 }
32967 Py_INCREF(Py_None); resultobj = Py_None;
32968 return resultobj;
32969 fail:
32970 return NULL;
32971 }
32972
32973
32974 static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
32975 PyObject *resultobj;
32976 wxSizer *arg1 = (wxSizer *) 0 ;
32977 PyObject *arg2 = (PyObject *) 0 ;
32978 int arg3 = (int) 0 ;
32979 int arg4 = (int) 0 ;
32980 int arg5 = (int) 0 ;
32981 PyObject *arg6 = (PyObject *) NULL ;
32982 PyObject * obj0 = 0 ;
32983 PyObject * obj1 = 0 ;
32984 PyObject * obj2 = 0 ;
32985 PyObject * obj3 = 0 ;
32986 PyObject * obj4 = 0 ;
32987 PyObject * obj5 = 0 ;
32988 char *kwnames[] = {
32989 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32990 };
32991
32992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32994 arg2 = obj1;
32995 if (obj2) {
32996 {
32997 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 }
33001 if (obj3) {
33002 {
33003 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33004 if (PyErr_Occurred()) SWIG_fail;
33005 }
33006 }
33007 if (obj4) {
33008 {
33009 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33010 if (PyErr_Occurred()) SWIG_fail;
33011 }
33012 }
33013 if (obj5) {
33014 arg6 = obj5;
33015 }
33016 {
33017 PyThreadState* __tstate = wxPyBeginAllowThreads();
33018 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
33019
33020 wxPyEndAllowThreads(__tstate);
33021 if (PyErr_Occurred()) SWIG_fail;
33022 }
33023 Py_INCREF(Py_None); resultobj = Py_None;
33024 return resultobj;
33025 fail:
33026 return NULL;
33027 }
33028
33029
33030 static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
33031 PyObject *resultobj;
33032 wxSizer *arg1 = (wxSizer *) 0 ;
33033 PyObject *arg2 = (PyObject *) 0 ;
33034 bool result;
33035 PyObject * obj0 = 0 ;
33036 PyObject * obj1 = 0 ;
33037 char *kwnames[] = {
33038 (char *) "self",(char *) "item", NULL
33039 };
33040
33041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
33042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33043 arg2 = obj1;
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 result = (bool)wxSizer_Remove(arg1,arg2);
33047
33048 wxPyEndAllowThreads(__tstate);
33049 if (PyErr_Occurred()) SWIG_fail;
33050 }
33051 resultobj = SWIG_PyObj_FromBool((bool)result);
33052 return resultobj;
33053 fail:
33054 return NULL;
33055 }
33056
33057
33058 static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33059 PyObject *resultobj;
33060 wxSizer *arg1 = (wxSizer *) 0 ;
33061 PyObject *arg2 = (PyObject *) 0 ;
33062 wxSize *arg3 = 0 ;
33063 wxSize temp3 ;
33064 PyObject * obj0 = 0 ;
33065 PyObject * obj1 = 0 ;
33066 PyObject * obj2 = 0 ;
33067 char *kwnames[] = {
33068 (char *) "self",(char *) "item",(char *) "size", NULL
33069 };
33070
33071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
33072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33073 arg2 = obj1;
33074 {
33075 arg3 = &temp3;
33076 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33077 }
33078 {
33079 PyThreadState* __tstate = wxPyBeginAllowThreads();
33080 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
33081
33082 wxPyEndAllowThreads(__tstate);
33083 if (PyErr_Occurred()) SWIG_fail;
33084 }
33085 Py_INCREF(Py_None); resultobj = Py_None;
33086 return resultobj;
33087 fail:
33088 return NULL;
33089 }
33090
33091
33092 static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33093 PyObject *resultobj;
33094 wxSizer *arg1 = (wxSizer *) 0 ;
33095 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
33096 PyObject * obj0 = 0 ;
33097 PyObject * obj1 = 0 ;
33098 char *kwnames[] = {
33099 (char *) "self",(char *) "item", NULL
33100 };
33101
33102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
33103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33105 {
33106 PyThreadState* __tstate = wxPyBeginAllowThreads();
33107 (arg1)->Add(arg2);
33108
33109 wxPyEndAllowThreads(__tstate);
33110 if (PyErr_Occurred()) SWIG_fail;
33111 }
33112 Py_INCREF(Py_None); resultobj = Py_None;
33113 return resultobj;
33114 fail:
33115 return NULL;
33116 }
33117
33118
33119 static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33120 PyObject *resultobj;
33121 wxSizer *arg1 = (wxSizer *) 0 ;
33122 size_t arg2 ;
33123 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
33124 PyObject * obj0 = 0 ;
33125 PyObject * obj1 = 0 ;
33126 PyObject * obj2 = 0 ;
33127 char *kwnames[] = {
33128 (char *) "self",(char *) "index",(char *) "item", NULL
33129 };
33130
33131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
33132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33133 {
33134 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
33135 if (PyErr_Occurred()) SWIG_fail;
33136 }
33137 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33138 {
33139 PyThreadState* __tstate = wxPyBeginAllowThreads();
33140 (arg1)->Insert(arg2,arg3);
33141
33142 wxPyEndAllowThreads(__tstate);
33143 if (PyErr_Occurred()) SWIG_fail;
33144 }
33145 Py_INCREF(Py_None); resultobj = Py_None;
33146 return resultobj;
33147 fail:
33148 return NULL;
33149 }
33150
33151
33152 static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33153 PyObject *resultobj;
33154 wxSizer *arg1 = (wxSizer *) 0 ;
33155 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
33156 PyObject * obj0 = 0 ;
33157 PyObject * obj1 = 0 ;
33158 char *kwnames[] = {
33159 (char *) "self",(char *) "item", NULL
33160 };
33161
33162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
33163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33164 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33165 {
33166 PyThreadState* __tstate = wxPyBeginAllowThreads();
33167 (arg1)->Prepend(arg2);
33168
33169 wxPyEndAllowThreads(__tstate);
33170 if (PyErr_Occurred()) SWIG_fail;
33171 }
33172 Py_INCREF(Py_None); resultobj = Py_None;
33173 return resultobj;
33174 fail:
33175 return NULL;
33176 }
33177
33178
33179 static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
33180 PyObject *resultobj;
33181 wxSizer *arg1 = (wxSizer *) 0 ;
33182 int arg2 ;
33183 int arg3 ;
33184 int arg4 ;
33185 int arg5 ;
33186 PyObject * obj0 = 0 ;
33187 PyObject * obj1 = 0 ;
33188 PyObject * obj2 = 0 ;
33189 PyObject * obj3 = 0 ;
33190 PyObject * obj4 = 0 ;
33191 char *kwnames[] = {
33192 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33193 };
33194
33195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
33196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33197 {
33198 arg2 = (int) SWIG_PyObj_AsInt(obj1);
33199 if (PyErr_Occurred()) SWIG_fail;
33200 }
33201 {
33202 arg3 = (int) SWIG_PyObj_AsInt(obj2);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 {
33206 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33207 if (PyErr_Occurred()) SWIG_fail;
33208 }
33209 {
33210 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33211 if (PyErr_Occurred()) SWIG_fail;
33212 }
33213 {
33214 PyThreadState* __tstate = wxPyBeginAllowThreads();
33215 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
33216
33217 wxPyEndAllowThreads(__tstate);
33218 if (PyErr_Occurred()) SWIG_fail;
33219 }
33220 Py_INCREF(Py_None); resultobj = Py_None;
33221 return resultobj;
33222 fail:
33223 return NULL;
33224 }
33225
33226
33227 static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33228 PyObject *resultobj;
33229 wxSizer *arg1 = (wxSizer *) 0 ;
33230 wxSize *arg2 = 0 ;
33231 wxSize temp2 ;
33232 PyObject * obj0 = 0 ;
33233 PyObject * obj1 = 0 ;
33234 char *kwnames[] = {
33235 (char *) "self",(char *) "size", NULL
33236 };
33237
33238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
33239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33240 {
33241 arg2 = &temp2;
33242 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33243 }
33244 {
33245 PyThreadState* __tstate = wxPyBeginAllowThreads();
33246 (arg1)->SetMinSize((wxSize const &)*arg2);
33247
33248 wxPyEndAllowThreads(__tstate);
33249 if (PyErr_Occurred()) SWIG_fail;
33250 }
33251 Py_INCREF(Py_None); resultobj = Py_None;
33252 return resultobj;
33253 fail:
33254 return NULL;
33255 }
33256
33257
33258 static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33259 PyObject *resultobj;
33260 wxSizer *arg1 = (wxSizer *) 0 ;
33261 wxSize result;
33262 PyObject * obj0 = 0 ;
33263 char *kwnames[] = {
33264 (char *) "self", NULL
33265 };
33266
33267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
33268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33269 {
33270 PyThreadState* __tstate = wxPyBeginAllowThreads();
33271 result = (arg1)->GetSize();
33272
33273 wxPyEndAllowThreads(__tstate);
33274 if (PyErr_Occurred()) SWIG_fail;
33275 }
33276 {
33277 wxSize * resultptr;
33278 resultptr = new wxSize((wxSize &) result);
33279 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33280 }
33281 return resultobj;
33282 fail:
33283 return NULL;
33284 }
33285
33286
33287 static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
33288 PyObject *resultobj;
33289 wxSizer *arg1 = (wxSizer *) 0 ;
33290 wxPoint result;
33291 PyObject * obj0 = 0 ;
33292 char *kwnames[] = {
33293 (char *) "self", NULL
33294 };
33295
33296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
33297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33298 {
33299 PyThreadState* __tstate = wxPyBeginAllowThreads();
33300 result = (arg1)->GetPosition();
33301
33302 wxPyEndAllowThreads(__tstate);
33303 if (PyErr_Occurred()) SWIG_fail;
33304 }
33305 {
33306 wxPoint * resultptr;
33307 resultptr = new wxPoint((wxPoint &) result);
33308 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
33309 }
33310 return resultobj;
33311 fail:
33312 return NULL;
33313 }
33314
33315
33316 static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33317 PyObject *resultobj;
33318 wxSizer *arg1 = (wxSizer *) 0 ;
33319 wxSize result;
33320 PyObject * obj0 = 0 ;
33321 char *kwnames[] = {
33322 (char *) "self", NULL
33323 };
33324
33325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
33326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 result = (arg1)->GetMinSize();
33330
33331 wxPyEndAllowThreads(__tstate);
33332 if (PyErr_Occurred()) SWIG_fail;
33333 }
33334 {
33335 wxSize * resultptr;
33336 resultptr = new wxSize((wxSize &) result);
33337 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33338 }
33339 return resultobj;
33340 fail:
33341 return NULL;
33342 }
33343
33344
33345 static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
33346 PyObject *resultobj;
33347 wxSizer *arg1 = (wxSizer *) 0 ;
33348 PyObject * obj0 = 0 ;
33349 char *kwnames[] = {
33350 (char *) "self", NULL
33351 };
33352
33353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
33354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 (arg1)->RecalcSizes();
33358
33359 wxPyEndAllowThreads(__tstate);
33360 if (PyErr_Occurred()) SWIG_fail;
33361 }
33362 Py_INCREF(Py_None); resultobj = Py_None;
33363 return resultobj;
33364 fail:
33365 return NULL;
33366 }
33367
33368
33369 static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
33370 PyObject *resultobj;
33371 wxSizer *arg1 = (wxSizer *) 0 ;
33372 wxSize result;
33373 PyObject * obj0 = 0 ;
33374 char *kwnames[] = {
33375 (char *) "self", NULL
33376 };
33377
33378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
33379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33380 {
33381 PyThreadState* __tstate = wxPyBeginAllowThreads();
33382 result = (arg1)->CalcMin();
33383
33384 wxPyEndAllowThreads(__tstate);
33385 if (PyErr_Occurred()) SWIG_fail;
33386 }
33387 {
33388 wxSize * resultptr;
33389 resultptr = new wxSize((wxSize &) result);
33390 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33391 }
33392 return resultobj;
33393 fail:
33394 return NULL;
33395 }
33396
33397
33398 static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
33399 PyObject *resultobj;
33400 wxSizer *arg1 = (wxSizer *) 0 ;
33401 PyObject * obj0 = 0 ;
33402 char *kwnames[] = {
33403 (char *) "self", NULL
33404 };
33405
33406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
33407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33408 {
33409 PyThreadState* __tstate = wxPyBeginAllowThreads();
33410 (arg1)->Layout();
33411
33412 wxPyEndAllowThreads(__tstate);
33413 if (PyErr_Occurred()) SWIG_fail;
33414 }
33415 Py_INCREF(Py_None); resultobj = Py_None;
33416 return resultobj;
33417 fail:
33418 return NULL;
33419 }
33420
33421
33422 static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
33423 PyObject *resultobj;
33424 wxSizer *arg1 = (wxSizer *) 0 ;
33425 wxWindow *arg2 = (wxWindow *) 0 ;
33426 wxSize result;
33427 PyObject * obj0 = 0 ;
33428 PyObject * obj1 = 0 ;
33429 char *kwnames[] = {
33430 (char *) "self",(char *) "window", NULL
33431 };
33432
33433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
33434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33435 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33436 {
33437 PyThreadState* __tstate = wxPyBeginAllowThreads();
33438 result = (arg1)->Fit(arg2);
33439
33440 wxPyEndAllowThreads(__tstate);
33441 if (PyErr_Occurred()) SWIG_fail;
33442 }
33443 {
33444 wxSize * resultptr;
33445 resultptr = new wxSize((wxSize &) result);
33446 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33447 }
33448 return resultobj;
33449 fail:
33450 return NULL;
33451 }
33452
33453
33454 static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
33455 PyObject *resultobj;
33456 wxSizer *arg1 = (wxSizer *) 0 ;
33457 wxWindow *arg2 = (wxWindow *) 0 ;
33458 PyObject * obj0 = 0 ;
33459 PyObject * obj1 = 0 ;
33460 char *kwnames[] = {
33461 (char *) "self",(char *) "window", NULL
33462 };
33463
33464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
33465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33466 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33467 {
33468 PyThreadState* __tstate = wxPyBeginAllowThreads();
33469 (arg1)->FitInside(arg2);
33470
33471 wxPyEndAllowThreads(__tstate);
33472 if (PyErr_Occurred()) SWIG_fail;
33473 }
33474 Py_INCREF(Py_None); resultobj = Py_None;
33475 return resultobj;
33476 fail:
33477 return NULL;
33478 }
33479
33480
33481 static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
33482 PyObject *resultobj;
33483 wxSizer *arg1 = (wxSizer *) 0 ;
33484 wxWindow *arg2 = (wxWindow *) 0 ;
33485 PyObject * obj0 = 0 ;
33486 PyObject * obj1 = 0 ;
33487 char *kwnames[] = {
33488 (char *) "self",(char *) "window", NULL
33489 };
33490
33491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
33492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33493 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33494 {
33495 PyThreadState* __tstate = wxPyBeginAllowThreads();
33496 (arg1)->SetSizeHints(arg2);
33497
33498 wxPyEndAllowThreads(__tstate);
33499 if (PyErr_Occurred()) SWIG_fail;
33500 }
33501 Py_INCREF(Py_None); resultobj = Py_None;
33502 return resultobj;
33503 fail:
33504 return NULL;
33505 }
33506
33507
33508 static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
33509 PyObject *resultobj;
33510 wxSizer *arg1 = (wxSizer *) 0 ;
33511 wxWindow *arg2 = (wxWindow *) 0 ;
33512 PyObject * obj0 = 0 ;
33513 PyObject * obj1 = 0 ;
33514 char *kwnames[] = {
33515 (char *) "self",(char *) "window", NULL
33516 };
33517
33518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
33519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33520 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33521 {
33522 PyThreadState* __tstate = wxPyBeginAllowThreads();
33523 (arg1)->SetVirtualSizeHints(arg2);
33524
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
33528 Py_INCREF(Py_None); resultobj = Py_None;
33529 return resultobj;
33530 fail:
33531 return NULL;
33532 }
33533
33534
33535 static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33536 PyObject *resultobj;
33537 wxSizer *arg1 = (wxSizer *) 0 ;
33538 bool arg2 = (bool) False ;
33539 PyObject * obj0 = 0 ;
33540 PyObject * obj1 = 0 ;
33541 char *kwnames[] = {
33542 (char *) "self",(char *) "delete_windows", NULL
33543 };
33544
33545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
33546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33547 if (obj1) {
33548 {
33549 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
33550 if (PyErr_Occurred()) SWIG_fail;
33551 }
33552 }
33553 {
33554 PyThreadState* __tstate = wxPyBeginAllowThreads();
33555 (arg1)->Clear(arg2);
33556
33557 wxPyEndAllowThreads(__tstate);
33558 if (PyErr_Occurred()) SWIG_fail;
33559 }
33560 Py_INCREF(Py_None); resultobj = Py_None;
33561 return resultobj;
33562 fail:
33563 return NULL;
33564 }
33565
33566
33567 static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
33568 PyObject *resultobj;
33569 wxSizer *arg1 = (wxSizer *) 0 ;
33570 PyObject * obj0 = 0 ;
33571 char *kwnames[] = {
33572 (char *) "self", NULL
33573 };
33574
33575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
33576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33577 {
33578 PyThreadState* __tstate = wxPyBeginAllowThreads();
33579 (arg1)->DeleteWindows();
33580
33581 wxPyEndAllowThreads(__tstate);
33582 if (PyErr_Occurred()) SWIG_fail;
33583 }
33584 Py_INCREF(Py_None); resultobj = Py_None;
33585 return resultobj;
33586 fail:
33587 return NULL;
33588 }
33589
33590
33591 static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
33592 PyObject *resultobj;
33593 wxSizer *arg1 = (wxSizer *) 0 ;
33594 PyObject *result;
33595 PyObject * obj0 = 0 ;
33596 char *kwnames[] = {
33597 (char *) "self", NULL
33598 };
33599
33600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
33601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33602 {
33603 PyThreadState* __tstate = wxPyBeginAllowThreads();
33604 result = (PyObject *)wxSizer_GetChildren(arg1);
33605
33606 wxPyEndAllowThreads(__tstate);
33607 if (PyErr_Occurred()) SWIG_fail;
33608 }
33609 resultobj = result;
33610 return resultobj;
33611 fail:
33612 return NULL;
33613 }
33614
33615
33616 static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
33617 PyObject *resultobj;
33618 wxSizer *arg1 = (wxSizer *) 0 ;
33619 PyObject *arg2 = (PyObject *) 0 ;
33620 bool arg3 = (bool) True ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 PyObject * obj2 = 0 ;
33624 char *kwnames[] = {
33625 (char *) "self",(char *) "item",(char *) "show", NULL
33626 };
33627
33628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
33629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33630 arg2 = obj1;
33631 if (obj2) {
33632 {
33633 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
33634 if (PyErr_Occurred()) SWIG_fail;
33635 }
33636 }
33637 {
33638 PyThreadState* __tstate = wxPyBeginAllowThreads();
33639 wxSizer_Show(arg1,arg2,arg3);
33640
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 Py_INCREF(Py_None); resultobj = Py_None;
33645 return resultobj;
33646 fail:
33647 return NULL;
33648 }
33649
33650
33651 static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
33652 PyObject *resultobj;
33653 wxSizer *arg1 = (wxSizer *) 0 ;
33654 PyObject *arg2 = (PyObject *) 0 ;
33655 PyObject * obj0 = 0 ;
33656 PyObject * obj1 = 0 ;
33657 char *kwnames[] = {
33658 (char *) "self",(char *) "item", NULL
33659 };
33660
33661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail;
33662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33663 arg2 = obj1;
33664 {
33665 PyThreadState* __tstate = wxPyBeginAllowThreads();
33666 wxSizer_Hide(arg1,arg2);
33667
33668 wxPyEndAllowThreads(__tstate);
33669 if (PyErr_Occurred()) SWIG_fail;
33670 }
33671 Py_INCREF(Py_None); resultobj = Py_None;
33672 return resultobj;
33673 fail:
33674 return NULL;
33675 }
33676
33677
33678 static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
33679 PyObject *resultobj;
33680 wxSizer *arg1 = (wxSizer *) 0 ;
33681 PyObject *arg2 = (PyObject *) 0 ;
33682 bool result;
33683 PyObject * obj0 = 0 ;
33684 PyObject * obj1 = 0 ;
33685 char *kwnames[] = {
33686 (char *) "self",(char *) "item", NULL
33687 };
33688
33689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
33690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33691 arg2 = obj1;
33692 {
33693 PyThreadState* __tstate = wxPyBeginAllowThreads();
33694 result = (bool)wxSizer_IsShown(arg1,arg2);
33695
33696 wxPyEndAllowThreads(__tstate);
33697 if (PyErr_Occurred()) SWIG_fail;
33698 }
33699 resultobj = SWIG_PyObj_FromBool((bool)result);
33700 return resultobj;
33701 fail:
33702 return NULL;
33703 }
33704
33705
33706 static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
33707 PyObject *resultobj;
33708 wxSizer *arg1 = (wxSizer *) 0 ;
33709 bool arg2 ;
33710 PyObject * obj0 = 0 ;
33711 PyObject * obj1 = 0 ;
33712 char *kwnames[] = {
33713 (char *) "self",(char *) "show", NULL
33714 };
33715
33716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
33717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33718 {
33719 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
33720 if (PyErr_Occurred()) SWIG_fail;
33721 }
33722 {
33723 PyThreadState* __tstate = wxPyBeginAllowThreads();
33724 (arg1)->ShowItems(arg2);
33725
33726 wxPyEndAllowThreads(__tstate);
33727 if (PyErr_Occurred()) SWIG_fail;
33728 }
33729 Py_INCREF(Py_None); resultobj = Py_None;
33730 return resultobj;
33731 fail:
33732 return NULL;
33733 }
33734
33735
33736 static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
33737 PyObject *obj;
33738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33739 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
33740 Py_INCREF(obj);
33741 return Py_BuildValue((char *)"");
33742 }
33743 static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33744 PyObject *resultobj;
33745 wxPySizer *result;
33746 char *kwnames[] = {
33747 NULL
33748 };
33749
33750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
33751 {
33752 PyThreadState* __tstate = wxPyBeginAllowThreads();
33753 result = (wxPySizer *)new wxPySizer();
33754
33755 wxPyEndAllowThreads(__tstate);
33756 if (PyErr_Occurred()) SWIG_fail;
33757 }
33758 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1);
33759 return resultobj;
33760 fail:
33761 return NULL;
33762 }
33763
33764
33765 static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
33766 PyObject *resultobj;
33767 wxPySizer *arg1 = (wxPySizer *) 0 ;
33768 PyObject *arg2 = (PyObject *) 0 ;
33769 PyObject *arg3 = (PyObject *) 0 ;
33770 PyObject * obj0 = 0 ;
33771 PyObject * obj1 = 0 ;
33772 PyObject * obj2 = 0 ;
33773 char *kwnames[] = {
33774 (char *) "self",(char *) "self",(char *) "_class", NULL
33775 };
33776
33777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
33778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33779 arg2 = obj1;
33780 arg3 = obj2;
33781 {
33782 PyThreadState* __tstate = wxPyBeginAllowThreads();
33783 (arg1)->_setCallbackInfo(arg2,arg3);
33784
33785 wxPyEndAllowThreads(__tstate);
33786 if (PyErr_Occurred()) SWIG_fail;
33787 }
33788 Py_INCREF(Py_None); resultobj = Py_None;
33789 return resultobj;
33790 fail:
33791 return NULL;
33792 }
33793
33794
33795 static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
33796 PyObject *obj;
33797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33798 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
33799 Py_INCREF(obj);
33800 return Py_BuildValue((char *)"");
33801 }
33802 static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33803 PyObject *resultobj;
33804 int arg1 = (int) wxHORIZONTAL ;
33805 wxBoxSizer *result;
33806 PyObject * obj0 = 0 ;
33807 char *kwnames[] = {
33808 (char *) "orient", NULL
33809 };
33810
33811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
33812 if (obj0) {
33813 {
33814 arg1 = (int) SWIG_PyObj_AsInt(obj0);
33815 if (PyErr_Occurred()) SWIG_fail;
33816 }
33817 }
33818 {
33819 PyThreadState* __tstate = wxPyBeginAllowThreads();
33820 result = (wxBoxSizer *)new wxBoxSizer(arg1);
33821
33822 wxPyEndAllowThreads(__tstate);
33823 if (PyErr_Occurred()) SWIG_fail;
33824 }
33825 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1);
33826 return resultobj;
33827 fail:
33828 return NULL;
33829 }
33830
33831
33832 static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
33833 PyObject *resultobj;
33834 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
33835 int result;
33836 PyObject * obj0 = 0 ;
33837 char *kwnames[] = {
33838 (char *) "self", NULL
33839 };
33840
33841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
33842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33843 {
33844 PyThreadState* __tstate = wxPyBeginAllowThreads();
33845 result = (int)(arg1)->GetOrientation();
33846
33847 wxPyEndAllowThreads(__tstate);
33848 if (PyErr_Occurred()) SWIG_fail;
33849 }
33850 resultobj = SWIG_PyObj_FromInt((int)result);
33851 return resultobj;
33852 fail:
33853 return NULL;
33854 }
33855
33856
33857 static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
33858 PyObject *resultobj;
33859 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
33860 int arg2 ;
33861 PyObject * obj0 = 0 ;
33862 PyObject * obj1 = 0 ;
33863 char *kwnames[] = {
33864 (char *) "self",(char *) "orient", NULL
33865 };
33866
33867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
33868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33869 {
33870 arg2 = (int) SWIG_PyObj_AsInt(obj1);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 (arg1)->SetOrientation(arg2);
33876
33877 wxPyEndAllowThreads(__tstate);
33878 if (PyErr_Occurred()) SWIG_fail;
33879 }
33880 Py_INCREF(Py_None); resultobj = Py_None;
33881 return resultobj;
33882 fail:
33883 return NULL;
33884 }
33885
33886
33887 static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
33888 PyObject *resultobj;
33889 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
33890 PyObject * obj0 = 0 ;
33891 char *kwnames[] = {
33892 (char *) "self", NULL
33893 };
33894
33895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
33896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33897 {
33898 PyThreadState* __tstate = wxPyBeginAllowThreads();
33899 (arg1)->RecalcSizes();
33900
33901 wxPyEndAllowThreads(__tstate);
33902 if (PyErr_Occurred()) SWIG_fail;
33903 }
33904 Py_INCREF(Py_None); resultobj = Py_None;
33905 return resultobj;
33906 fail:
33907 return NULL;
33908 }
33909
33910
33911 static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
33912 PyObject *resultobj;
33913 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
33914 wxSize result;
33915 PyObject * obj0 = 0 ;
33916 char *kwnames[] = {
33917 (char *) "self", NULL
33918 };
33919
33920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail;
33921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33922 {
33923 PyThreadState* __tstate = wxPyBeginAllowThreads();
33924 result = (arg1)->CalcMin();
33925
33926 wxPyEndAllowThreads(__tstate);
33927 if (PyErr_Occurred()) SWIG_fail;
33928 }
33929 {
33930 wxSize * resultptr;
33931 resultptr = new wxSize((wxSize &) result);
33932 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33933 }
33934 return resultobj;
33935 fail:
33936 return NULL;
33937 }
33938
33939
33940 static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
33941 PyObject *obj;
33942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33943 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
33944 Py_INCREF(obj);
33945 return Py_BuildValue((char *)"");
33946 }
33947 static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33948 PyObject *resultobj;
33949 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
33950 int arg2 = (int) wxHORIZONTAL ;
33951 wxStaticBoxSizer *result;
33952 PyObject * obj0 = 0 ;
33953 PyObject * obj1 = 0 ;
33954 char *kwnames[] = {
33955 (char *) "box",(char *) "orient", NULL
33956 };
33957
33958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
33959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33960 if (obj1) {
33961 {
33962 arg2 = (int) SWIG_PyObj_AsInt(obj1);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 }
33966 {
33967 PyThreadState* __tstate = wxPyBeginAllowThreads();
33968 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
33969
33970 wxPyEndAllowThreads(__tstate);
33971 if (PyErr_Occurred()) SWIG_fail;
33972 }
33973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1);
33974 return resultobj;
33975 fail:
33976 return NULL;
33977 }
33978
33979
33980 static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
33981 PyObject *resultobj;
33982 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
33983 wxStaticBox *result;
33984 PyObject * obj0 = 0 ;
33985 char *kwnames[] = {
33986 (char *) "self", NULL
33987 };
33988
33989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
33990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33991 {
33992 PyThreadState* __tstate = wxPyBeginAllowThreads();
33993 result = (wxStaticBox *)(arg1)->GetStaticBox();
33994
33995 wxPyEndAllowThreads(__tstate);
33996 if (PyErr_Occurred()) SWIG_fail;
33997 }
33998 {
33999 resultobj = wxPyMake_wxObject(result);
34000 }
34001 return resultobj;
34002 fail:
34003 return NULL;
34004 }
34005
34006
34007 static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34008 PyObject *resultobj;
34009 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
34010 PyObject * obj0 = 0 ;
34011 char *kwnames[] = {
34012 (char *) "self", NULL
34013 };
34014
34015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34017 {
34018 PyThreadState* __tstate = wxPyBeginAllowThreads();
34019 (arg1)->RecalcSizes();
34020
34021 wxPyEndAllowThreads(__tstate);
34022 if (PyErr_Occurred()) SWIG_fail;
34023 }
34024 Py_INCREF(Py_None); resultobj = Py_None;
34025 return resultobj;
34026 fail:
34027 return NULL;
34028 }
34029
34030
34031 static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34032 PyObject *resultobj;
34033 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
34034 wxSize result;
34035 PyObject * obj0 = 0 ;
34036 char *kwnames[] = {
34037 (char *) "self", NULL
34038 };
34039
34040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail;
34041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34042 {
34043 PyThreadState* __tstate = wxPyBeginAllowThreads();
34044 result = (arg1)->CalcMin();
34045
34046 wxPyEndAllowThreads(__tstate);
34047 if (PyErr_Occurred()) SWIG_fail;
34048 }
34049 {
34050 wxSize * resultptr;
34051 resultptr = new wxSize((wxSize &) result);
34052 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34053 }
34054 return resultobj;
34055 fail:
34056 return NULL;
34057 }
34058
34059
34060 static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
34061 PyObject *obj;
34062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34063 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
34064 Py_INCREF(obj);
34065 return Py_BuildValue((char *)"");
34066 }
34067 static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34068 PyObject *resultobj;
34069 int arg1 = (int) 1 ;
34070 int arg2 = (int) 0 ;
34071 int arg3 = (int) 0 ;
34072 int arg4 = (int) 0 ;
34073 wxGridSizer *result;
34074 PyObject * obj0 = 0 ;
34075 PyObject * obj1 = 0 ;
34076 PyObject * obj2 = 0 ;
34077 PyObject * obj3 = 0 ;
34078 char *kwnames[] = {
34079 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
34080 };
34081
34082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34083 if (obj0) {
34084 {
34085 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34086 if (PyErr_Occurred()) SWIG_fail;
34087 }
34088 }
34089 if (obj1) {
34090 {
34091 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34092 if (PyErr_Occurred()) SWIG_fail;
34093 }
34094 }
34095 if (obj2) {
34096 {
34097 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34098 if (PyErr_Occurred()) SWIG_fail;
34099 }
34100 }
34101 if (obj3) {
34102 {
34103 arg4 = (int) SWIG_PyObj_AsInt(obj3);
34104 if (PyErr_Occurred()) SWIG_fail;
34105 }
34106 }
34107 {
34108 PyThreadState* __tstate = wxPyBeginAllowThreads();
34109 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
34110
34111 wxPyEndAllowThreads(__tstate);
34112 if (PyErr_Occurred()) SWIG_fail;
34113 }
34114 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1);
34115 return resultobj;
34116 fail:
34117 return NULL;
34118 }
34119
34120
34121 static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34122 PyObject *resultobj;
34123 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34124 PyObject * obj0 = 0 ;
34125 char *kwnames[] = {
34126 (char *) "self", NULL
34127 };
34128
34129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34131 {
34132 PyThreadState* __tstate = wxPyBeginAllowThreads();
34133 (arg1)->RecalcSizes();
34134
34135 wxPyEndAllowThreads(__tstate);
34136 if (PyErr_Occurred()) SWIG_fail;
34137 }
34138 Py_INCREF(Py_None); resultobj = Py_None;
34139 return resultobj;
34140 fail:
34141 return NULL;
34142 }
34143
34144
34145 static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34146 PyObject *resultobj;
34147 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34148 wxSize result;
34149 PyObject * obj0 = 0 ;
34150 char *kwnames[] = {
34151 (char *) "self", NULL
34152 };
34153
34154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail;
34155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34156 {
34157 PyThreadState* __tstate = wxPyBeginAllowThreads();
34158 result = (arg1)->CalcMin();
34159
34160 wxPyEndAllowThreads(__tstate);
34161 if (PyErr_Occurred()) SWIG_fail;
34162 }
34163 {
34164 wxSize * resultptr;
34165 resultptr = new wxSize((wxSize &) result);
34166 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34167 }
34168 return resultobj;
34169 fail:
34170 return NULL;
34171 }
34172
34173
34174 static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
34175 PyObject *resultobj;
34176 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34177 int arg2 ;
34178 PyObject * obj0 = 0 ;
34179 PyObject * obj1 = 0 ;
34180 char *kwnames[] = {
34181 (char *) "self",(char *) "cols", NULL
34182 };
34183
34184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
34185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34186 {
34187 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 {
34191 PyThreadState* __tstate = wxPyBeginAllowThreads();
34192 (arg1)->SetCols(arg2);
34193
34194 wxPyEndAllowThreads(__tstate);
34195 if (PyErr_Occurred()) SWIG_fail;
34196 }
34197 Py_INCREF(Py_None); resultobj = Py_None;
34198 return resultobj;
34199 fail:
34200 return NULL;
34201 }
34202
34203
34204 static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
34205 PyObject *resultobj;
34206 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34207 int arg2 ;
34208 PyObject * obj0 = 0 ;
34209 PyObject * obj1 = 0 ;
34210 char *kwnames[] = {
34211 (char *) "self",(char *) "rows", NULL
34212 };
34213
34214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
34215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34216 {
34217 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34218 if (PyErr_Occurred()) SWIG_fail;
34219 }
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 (arg1)->SetRows(arg2);
34223
34224 wxPyEndAllowThreads(__tstate);
34225 if (PyErr_Occurred()) SWIG_fail;
34226 }
34227 Py_INCREF(Py_None); resultobj = Py_None;
34228 return resultobj;
34229 fail:
34230 return NULL;
34231 }
34232
34233
34234 static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34235 PyObject *resultobj;
34236 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34237 int arg2 ;
34238 PyObject * obj0 = 0 ;
34239 PyObject * obj1 = 0 ;
34240 char *kwnames[] = {
34241 (char *) "self",(char *) "gap", NULL
34242 };
34243
34244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
34245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34246 {
34247 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34248 if (PyErr_Occurred()) SWIG_fail;
34249 }
34250 {
34251 PyThreadState* __tstate = wxPyBeginAllowThreads();
34252 (arg1)->SetVGap(arg2);
34253
34254 wxPyEndAllowThreads(__tstate);
34255 if (PyErr_Occurred()) SWIG_fail;
34256 }
34257 Py_INCREF(Py_None); resultobj = Py_None;
34258 return resultobj;
34259 fail:
34260 return NULL;
34261 }
34262
34263
34264 static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj;
34266 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34267 int arg2 ;
34268 PyObject * obj0 = 0 ;
34269 PyObject * obj1 = 0 ;
34270 char *kwnames[] = {
34271 (char *) "self",(char *) "gap", NULL
34272 };
34273
34274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
34275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34276 {
34277 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34278 if (PyErr_Occurred()) SWIG_fail;
34279 }
34280 {
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 (arg1)->SetHGap(arg2);
34283
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 Py_INCREF(Py_None); resultobj = Py_None;
34288 return resultobj;
34289 fail:
34290 return NULL;
34291 }
34292
34293
34294 static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
34295 PyObject *resultobj;
34296 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34297 int result;
34298 PyObject * obj0 = 0 ;
34299 char *kwnames[] = {
34300 (char *) "self", NULL
34301 };
34302
34303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
34304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34305 {
34306 PyThreadState* __tstate = wxPyBeginAllowThreads();
34307 result = (int)(arg1)->GetCols();
34308
34309 wxPyEndAllowThreads(__tstate);
34310 if (PyErr_Occurred()) SWIG_fail;
34311 }
34312 resultobj = SWIG_PyObj_FromInt((int)result);
34313 return resultobj;
34314 fail:
34315 return NULL;
34316 }
34317
34318
34319 static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
34320 PyObject *resultobj;
34321 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34322 int result;
34323 PyObject * obj0 = 0 ;
34324 char *kwnames[] = {
34325 (char *) "self", NULL
34326 };
34327
34328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
34329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34330 {
34331 PyThreadState* __tstate = wxPyBeginAllowThreads();
34332 result = (int)(arg1)->GetRows();
34333
34334 wxPyEndAllowThreads(__tstate);
34335 if (PyErr_Occurred()) SWIG_fail;
34336 }
34337 resultobj = SWIG_PyObj_FromInt((int)result);
34338 return resultobj;
34339 fail:
34340 return NULL;
34341 }
34342
34343
34344 static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34345 PyObject *resultobj;
34346 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34347 int result;
34348 PyObject * obj0 = 0 ;
34349 char *kwnames[] = {
34350 (char *) "self", NULL
34351 };
34352
34353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
34354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34355 {
34356 PyThreadState* __tstate = wxPyBeginAllowThreads();
34357 result = (int)(arg1)->GetVGap();
34358
34359 wxPyEndAllowThreads(__tstate);
34360 if (PyErr_Occurred()) SWIG_fail;
34361 }
34362 resultobj = SWIG_PyObj_FromInt((int)result);
34363 return resultobj;
34364 fail:
34365 return NULL;
34366 }
34367
34368
34369 static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34370 PyObject *resultobj;
34371 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34372 int result;
34373 PyObject * obj0 = 0 ;
34374 char *kwnames[] = {
34375 (char *) "self", NULL
34376 };
34377
34378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
34379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34380 {
34381 PyThreadState* __tstate = wxPyBeginAllowThreads();
34382 result = (int)(arg1)->GetHGap();
34383
34384 wxPyEndAllowThreads(__tstate);
34385 if (PyErr_Occurred()) SWIG_fail;
34386 }
34387 resultobj = SWIG_PyObj_FromInt((int)result);
34388 return resultobj;
34389 fail:
34390 return NULL;
34391 }
34392
34393
34394 static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
34395 PyObject *obj;
34396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34397 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
34398 Py_INCREF(obj);
34399 return Py_BuildValue((char *)"");
34400 }
34401 static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34402 PyObject *resultobj;
34403 int arg1 = (int) 1 ;
34404 int arg2 = (int) 0 ;
34405 int arg3 = (int) 0 ;
34406 int arg4 = (int) 0 ;
34407 wxFlexGridSizer *result;
34408 PyObject * obj0 = 0 ;
34409 PyObject * obj1 = 0 ;
34410 PyObject * obj2 = 0 ;
34411 PyObject * obj3 = 0 ;
34412 char *kwnames[] = {
34413 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
34414 };
34415
34416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34417 if (obj0) {
34418 {
34419 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34420 if (PyErr_Occurred()) SWIG_fail;
34421 }
34422 }
34423 if (obj1) {
34424 {
34425 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34426 if (PyErr_Occurred()) SWIG_fail;
34427 }
34428 }
34429 if (obj2) {
34430 {
34431 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34432 if (PyErr_Occurred()) SWIG_fail;
34433 }
34434 }
34435 if (obj3) {
34436 {
34437 arg4 = (int) SWIG_PyObj_AsInt(obj3);
34438 if (PyErr_Occurred()) SWIG_fail;
34439 }
34440 }
34441 {
34442 PyThreadState* __tstate = wxPyBeginAllowThreads();
34443 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
34444
34445 wxPyEndAllowThreads(__tstate);
34446 if (PyErr_Occurred()) SWIG_fail;
34447 }
34448 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1);
34449 return resultobj;
34450 fail:
34451 return NULL;
34452 }
34453
34454
34455 static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34456 PyObject *resultobj;
34457 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34458 PyObject * obj0 = 0 ;
34459 char *kwnames[] = {
34460 (char *) "self", NULL
34461 };
34462
34463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 (arg1)->RecalcSizes();
34468
34469 wxPyEndAllowThreads(__tstate);
34470 if (PyErr_Occurred()) SWIG_fail;
34471 }
34472 Py_INCREF(Py_None); resultobj = Py_None;
34473 return resultobj;
34474 fail:
34475 return NULL;
34476 }
34477
34478
34479 static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34480 PyObject *resultobj;
34481 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34482 wxSize result;
34483 PyObject * obj0 = 0 ;
34484 char *kwnames[] = {
34485 (char *) "self", NULL
34486 };
34487
34488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail;
34489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34490 {
34491 PyThreadState* __tstate = wxPyBeginAllowThreads();
34492 result = (arg1)->CalcMin();
34493
34494 wxPyEndAllowThreads(__tstate);
34495 if (PyErr_Occurred()) SWIG_fail;
34496 }
34497 {
34498 wxSize * resultptr;
34499 resultptr = new wxSize((wxSize &) result);
34500 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34501 }
34502 return resultobj;
34503 fail:
34504 return NULL;
34505 }
34506
34507
34508 static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
34509 PyObject *resultobj;
34510 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34511 size_t arg2 ;
34512 int arg3 = (int) 0 ;
34513 PyObject * obj0 = 0 ;
34514 PyObject * obj1 = 0 ;
34515 PyObject * obj2 = 0 ;
34516 char *kwnames[] = {
34517 (char *) "self",(char *) "idx",(char *) "proportion", NULL
34518 };
34519
34520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
34521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34522 {
34523 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
34524 if (PyErr_Occurred()) SWIG_fail;
34525 }
34526 if (obj2) {
34527 {
34528 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34529 if (PyErr_Occurred()) SWIG_fail;
34530 }
34531 }
34532 {
34533 PyThreadState* __tstate = wxPyBeginAllowThreads();
34534 (arg1)->AddGrowableRow(arg2,arg3);
34535
34536 wxPyEndAllowThreads(__tstate);
34537 if (PyErr_Occurred()) SWIG_fail;
34538 }
34539 Py_INCREF(Py_None); resultobj = Py_None;
34540 return resultobj;
34541 fail:
34542 return NULL;
34543 }
34544
34545
34546 static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
34547 PyObject *resultobj;
34548 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34549 size_t arg2 ;
34550 PyObject * obj0 = 0 ;
34551 PyObject * obj1 = 0 ;
34552 char *kwnames[] = {
34553 (char *) "self",(char *) "idx", NULL
34554 };
34555
34556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
34557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34558 {
34559 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 }
34562 {
34563 PyThreadState* __tstate = wxPyBeginAllowThreads();
34564 (arg1)->RemoveGrowableRow(arg2);
34565
34566 wxPyEndAllowThreads(__tstate);
34567 if (PyErr_Occurred()) SWIG_fail;
34568 }
34569 Py_INCREF(Py_None); resultobj = Py_None;
34570 return resultobj;
34571 fail:
34572 return NULL;
34573 }
34574
34575
34576 static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
34577 PyObject *resultobj;
34578 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34579 size_t arg2 ;
34580 int arg3 = (int) 0 ;
34581 PyObject * obj0 = 0 ;
34582 PyObject * obj1 = 0 ;
34583 PyObject * obj2 = 0 ;
34584 char *kwnames[] = {
34585 (char *) "self",(char *) "idx",(char *) "proportion", NULL
34586 };
34587
34588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
34589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34590 {
34591 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
34592 if (PyErr_Occurred()) SWIG_fail;
34593 }
34594 if (obj2) {
34595 {
34596 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34597 if (PyErr_Occurred()) SWIG_fail;
34598 }
34599 }
34600 {
34601 PyThreadState* __tstate = wxPyBeginAllowThreads();
34602 (arg1)->AddGrowableCol(arg2,arg3);
34603
34604 wxPyEndAllowThreads(__tstate);
34605 if (PyErr_Occurred()) SWIG_fail;
34606 }
34607 Py_INCREF(Py_None); resultobj = Py_None;
34608 return resultobj;
34609 fail:
34610 return NULL;
34611 }
34612
34613
34614 static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
34615 PyObject *resultobj;
34616 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34617 size_t arg2 ;
34618 PyObject * obj0 = 0 ;
34619 PyObject * obj1 = 0 ;
34620 char *kwnames[] = {
34621 (char *) "self",(char *) "idx", NULL
34622 };
34623
34624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
34625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34626 {
34627 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
34628 if (PyErr_Occurred()) SWIG_fail;
34629 }
34630 {
34631 PyThreadState* __tstate = wxPyBeginAllowThreads();
34632 (arg1)->RemoveGrowableCol(arg2);
34633
34634 wxPyEndAllowThreads(__tstate);
34635 if (PyErr_Occurred()) SWIG_fail;
34636 }
34637 Py_INCREF(Py_None); resultobj = Py_None;
34638 return resultobj;
34639 fail:
34640 return NULL;
34641 }
34642
34643
34644 static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
34645 PyObject *resultobj;
34646 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34647 int arg2 ;
34648 PyObject * obj0 = 0 ;
34649 PyObject * obj1 = 0 ;
34650 char *kwnames[] = {
34651 (char *) "self",(char *) "direction", NULL
34652 };
34653
34654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
34655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34656 {
34657 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34658 if (PyErr_Occurred()) SWIG_fail;
34659 }
34660 {
34661 PyThreadState* __tstate = wxPyBeginAllowThreads();
34662 (arg1)->SetFlexibleDirection(arg2);
34663
34664 wxPyEndAllowThreads(__tstate);
34665 if (PyErr_Occurred()) SWIG_fail;
34666 }
34667 Py_INCREF(Py_None); resultobj = Py_None;
34668 return resultobj;
34669 fail:
34670 return NULL;
34671 }
34672
34673
34674 static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
34675 PyObject *resultobj;
34676 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34677 int result;
34678 PyObject * obj0 = 0 ;
34679 char *kwnames[] = {
34680 (char *) "self", NULL
34681 };
34682
34683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
34684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34685 {
34686 PyThreadState* __tstate = wxPyBeginAllowThreads();
34687 result = (int)(arg1)->GetFlexibleDirection();
34688
34689 wxPyEndAllowThreads(__tstate);
34690 if (PyErr_Occurred()) SWIG_fail;
34691 }
34692 resultobj = SWIG_PyObj_FromInt((int)result);
34693 return resultobj;
34694 fail:
34695 return NULL;
34696 }
34697
34698
34699 static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
34700 PyObject *resultobj;
34701 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34702 int arg2 ;
34703 PyObject * obj0 = 0 ;
34704 PyObject * obj1 = 0 ;
34705 char *kwnames[] = {
34706 (char *) "self",(char *) "mode", NULL
34707 };
34708
34709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
34710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34711 {
34712 arg2 = (wxFlexSizerGrowMode) SWIG_PyObj_AsInt(obj1);
34713 if (PyErr_Occurred()) SWIG_fail;
34714 }
34715 {
34716 PyThreadState* __tstate = wxPyBeginAllowThreads();
34717 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
34718
34719 wxPyEndAllowThreads(__tstate);
34720 if (PyErr_Occurred()) SWIG_fail;
34721 }
34722 Py_INCREF(Py_None); resultobj = Py_None;
34723 return resultobj;
34724 fail:
34725 return NULL;
34726 }
34727
34728
34729 static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
34730 PyObject *resultobj;
34731 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34732 int result;
34733 PyObject * obj0 = 0 ;
34734 char *kwnames[] = {
34735 (char *) "self", NULL
34736 };
34737
34738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
34739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34740 {
34741 PyThreadState* __tstate = wxPyBeginAllowThreads();
34742 result = (int)(arg1)->GetNonFlexibleGrowMode();
34743
34744 wxPyEndAllowThreads(__tstate);
34745 if (PyErr_Occurred()) SWIG_fail;
34746 }
34747 resultobj = SWIG_PyObj_FromInt((int)result);
34748 return resultobj;
34749 fail:
34750 return NULL;
34751 }
34752
34753
34754 static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
34755 PyObject *resultobj;
34756 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34757 wxArrayInt *result;
34758 PyObject * obj0 = 0 ;
34759 char *kwnames[] = {
34760 (char *) "self", NULL
34761 };
34762
34763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
34764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34765 {
34766 PyThreadState* __tstate = wxPyBeginAllowThreads();
34767 {
34768 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
34769 result = (wxArrayInt *) &_result_ref;
34770 }
34771
34772 wxPyEndAllowThreads(__tstate);
34773 if (PyErr_Occurred()) SWIG_fail;
34774 }
34775 {
34776 resultobj = PyList_New(0);
34777 size_t idx;
34778 for (idx = 0; idx < result->GetCount(); idx += 1) {
34779 PyObject* val = PyInt_FromLong( result->Item(idx) );
34780 PyList_Append(resultobj, val);
34781 Py_DECREF(val);
34782 }
34783 }
34784 return resultobj;
34785 fail:
34786 return NULL;
34787 }
34788
34789
34790 static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
34791 PyObject *resultobj;
34792 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34793 wxArrayInt *result;
34794 PyObject * obj0 = 0 ;
34795 char *kwnames[] = {
34796 (char *) "self", NULL
34797 };
34798
34799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
34800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 {
34804 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
34805 result = (wxArrayInt *) &_result_ref;
34806 }
34807
34808 wxPyEndAllowThreads(__tstate);
34809 if (PyErr_Occurred()) SWIG_fail;
34810 }
34811 {
34812 resultobj = PyList_New(0);
34813 size_t idx;
34814 for (idx = 0; idx < result->GetCount(); idx += 1) {
34815 PyObject* val = PyInt_FromLong( result->Item(idx) );
34816 PyList_Append(resultobj, val);
34817 Py_DECREF(val);
34818 }
34819 }
34820 return resultobj;
34821 fail:
34822 return NULL;
34823 }
34824
34825
34826 static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
34827 PyObject *obj;
34828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34829 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
34830 Py_INCREF(obj);
34831 return Py_BuildValue((char *)"");
34832 }
34833 static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
34834 PyObject *resultobj;
34835 int arg1 = (int) 0 ;
34836 int arg2 = (int) 0 ;
34837 wxGBPosition *result;
34838 PyObject * obj0 = 0 ;
34839 PyObject * obj1 = 0 ;
34840 char *kwnames[] = {
34841 (char *) "row",(char *) "col", NULL
34842 };
34843
34844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
34845 if (obj0) {
34846 {
34847 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34848 if (PyErr_Occurred()) SWIG_fail;
34849 }
34850 }
34851 if (obj1) {
34852 {
34853 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34854 if (PyErr_Occurred()) SWIG_fail;
34855 }
34856 }
34857 {
34858 PyThreadState* __tstate = wxPyBeginAllowThreads();
34859 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
34860
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1);
34865 return resultobj;
34866 fail:
34867 return NULL;
34868 }
34869
34870
34871 static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
34872 PyObject *resultobj;
34873 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
34874 int result;
34875 PyObject * obj0 = 0 ;
34876 char *kwnames[] = {
34877 (char *) "self", NULL
34878 };
34879
34880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
34881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34882 {
34883 PyThreadState* __tstate = wxPyBeginAllowThreads();
34884 result = (int)((wxGBPosition const *)arg1)->GetRow();
34885
34886 wxPyEndAllowThreads(__tstate);
34887 if (PyErr_Occurred()) SWIG_fail;
34888 }
34889 resultobj = SWIG_PyObj_FromInt((int)result);
34890 return resultobj;
34891 fail:
34892 return NULL;
34893 }
34894
34895
34896 static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
34897 PyObject *resultobj;
34898 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
34899 int result;
34900 PyObject * obj0 = 0 ;
34901 char *kwnames[] = {
34902 (char *) "self", NULL
34903 };
34904
34905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
34906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34907 {
34908 PyThreadState* __tstate = wxPyBeginAllowThreads();
34909 result = (int)((wxGBPosition const *)arg1)->GetCol();
34910
34911 wxPyEndAllowThreads(__tstate);
34912 if (PyErr_Occurred()) SWIG_fail;
34913 }
34914 resultobj = SWIG_PyObj_FromInt((int)result);
34915 return resultobj;
34916 fail:
34917 return NULL;
34918 }
34919
34920
34921 static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
34922 PyObject *resultobj;
34923 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
34924 int arg2 ;
34925 PyObject * obj0 = 0 ;
34926 PyObject * obj1 = 0 ;
34927 char *kwnames[] = {
34928 (char *) "self",(char *) "row", NULL
34929 };
34930
34931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
34932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34933 {
34934 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34935 if (PyErr_Occurred()) SWIG_fail;
34936 }
34937 {
34938 PyThreadState* __tstate = wxPyBeginAllowThreads();
34939 (arg1)->SetRow(arg2);
34940
34941 wxPyEndAllowThreads(__tstate);
34942 if (PyErr_Occurred()) SWIG_fail;
34943 }
34944 Py_INCREF(Py_None); resultobj = Py_None;
34945 return resultobj;
34946 fail:
34947 return NULL;
34948 }
34949
34950
34951 static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
34952 PyObject *resultobj;
34953 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
34954 int arg2 ;
34955 PyObject * obj0 = 0 ;
34956 PyObject * obj1 = 0 ;
34957 char *kwnames[] = {
34958 (char *) "self",(char *) "col", NULL
34959 };
34960
34961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
34962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34963 {
34964 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 (arg1)->SetCol(arg2);
34970
34971 wxPyEndAllowThreads(__tstate);
34972 if (PyErr_Occurred()) SWIG_fail;
34973 }
34974 Py_INCREF(Py_None); resultobj = Py_None;
34975 return resultobj;
34976 fail:
34977 return NULL;
34978 }
34979
34980
34981 static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
34982 PyObject *resultobj;
34983 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
34984 wxGBPosition *arg2 = 0 ;
34985 bool result;
34986 wxGBPosition temp2 ;
34987 PyObject * obj0 = 0 ;
34988 PyObject * obj1 = 0 ;
34989 char *kwnames[] = {
34990 (char *) "self",(char *) "p", NULL
34991 };
34992
34993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
34994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34995 {
34996 arg2 = &temp2;
34997 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
34998 }
34999 {
35000 PyThreadState* __tstate = wxPyBeginAllowThreads();
35001 result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2);
35002
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_PyObj_FromBool((bool)result);
35007 return resultobj;
35008 fail:
35009 return NULL;
35010 }
35011
35012
35013 static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
35014 PyObject *resultobj;
35015 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35016 wxGBPosition *arg2 = 0 ;
35017 bool result;
35018 wxGBPosition temp2 ;
35019 PyObject * obj0 = 0 ;
35020 PyObject * obj1 = 0 ;
35021 char *kwnames[] = {
35022 (char *) "self",(char *) "p", NULL
35023 };
35024
35025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
35026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35027 {
35028 arg2 = &temp2;
35029 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35030 }
35031 {
35032 PyThreadState* __tstate = wxPyBeginAllowThreads();
35033 result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2);
35034
35035 wxPyEndAllowThreads(__tstate);
35036 if (PyErr_Occurred()) SWIG_fail;
35037 }
35038 resultobj = SWIG_PyObj_FromBool((bool)result);
35039 return resultobj;
35040 fail:
35041 return NULL;
35042 }
35043
35044
35045 static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
35046 PyObject *resultobj;
35047 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35048 int arg2 = (int) 0 ;
35049 int arg3 = (int) 0 ;
35050 PyObject * obj0 = 0 ;
35051 PyObject * obj1 = 0 ;
35052 PyObject * obj2 = 0 ;
35053 char *kwnames[] = {
35054 (char *) "self",(char *) "row",(char *) "col", NULL
35055 };
35056
35057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
35058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35059 if (obj1) {
35060 {
35061 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35062 if (PyErr_Occurred()) SWIG_fail;
35063 }
35064 }
35065 if (obj2) {
35066 {
35067 arg3 = (int) SWIG_PyObj_AsInt(obj2);
35068 if (PyErr_Occurred()) SWIG_fail;
35069 }
35070 }
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 wxGBPosition_Set(arg1,arg2,arg3);
35074
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 Py_INCREF(Py_None); resultobj = Py_None;
35079 return resultobj;
35080 fail:
35081 return NULL;
35082 }
35083
35084
35085 static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj;
35087 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35088 PyObject *result;
35089 PyObject * obj0 = 0 ;
35090 char *kwnames[] = {
35091 (char *) "self", NULL
35092 };
35093
35094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
35095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35096 {
35097 PyThreadState* __tstate = wxPyBeginAllowThreads();
35098 result = (PyObject *)wxGBPosition_Get(arg1);
35099
35100 wxPyEndAllowThreads(__tstate);
35101 if (PyErr_Occurred()) SWIG_fail;
35102 }
35103 resultobj = result;
35104 return resultobj;
35105 fail:
35106 return NULL;
35107 }
35108
35109
35110 static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
35111 PyObject *obj;
35112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35113 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
35114 Py_INCREF(obj);
35115 return Py_BuildValue((char *)"");
35116 }
35117 static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
35118 PyObject *resultobj;
35119 int arg1 = (int) 1 ;
35120 int arg2 = (int) 1 ;
35121 wxGBSpan *result;
35122 PyObject * obj0 = 0 ;
35123 PyObject * obj1 = 0 ;
35124 char *kwnames[] = {
35125 (char *) "rowspan",(char *) "colspan", NULL
35126 };
35127
35128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
35129 if (obj0) {
35130 {
35131 arg1 = (int) SWIG_PyObj_AsInt(obj0);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 }
35135 if (obj1) {
35136 {
35137 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35138 if (PyErr_Occurred()) SWIG_fail;
35139 }
35140 }
35141 {
35142 PyThreadState* __tstate = wxPyBeginAllowThreads();
35143 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
35144
35145 wxPyEndAllowThreads(__tstate);
35146 if (PyErr_Occurred()) SWIG_fail;
35147 }
35148 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1);
35149 return resultobj;
35150 fail:
35151 return NULL;
35152 }
35153
35154
35155 static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35156 PyObject *resultobj;
35157 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35158 int result;
35159 PyObject * obj0 = 0 ;
35160 char *kwnames[] = {
35161 (char *) "self", NULL
35162 };
35163
35164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
35165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35166 {
35167 PyThreadState* __tstate = wxPyBeginAllowThreads();
35168 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
35169
35170 wxPyEndAllowThreads(__tstate);
35171 if (PyErr_Occurred()) SWIG_fail;
35172 }
35173 resultobj = SWIG_PyObj_FromInt((int)result);
35174 return resultobj;
35175 fail:
35176 return NULL;
35177 }
35178
35179
35180 static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35181 PyObject *resultobj;
35182 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35183 int result;
35184 PyObject * obj0 = 0 ;
35185 char *kwnames[] = {
35186 (char *) "self", NULL
35187 };
35188
35189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
35190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35191 {
35192 PyThreadState* __tstate = wxPyBeginAllowThreads();
35193 result = (int)((wxGBSpan const *)arg1)->GetColspan();
35194
35195 wxPyEndAllowThreads(__tstate);
35196 if (PyErr_Occurred()) SWIG_fail;
35197 }
35198 resultobj = SWIG_PyObj_FromInt((int)result);
35199 return resultobj;
35200 fail:
35201 return NULL;
35202 }
35203
35204
35205 static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35206 PyObject *resultobj;
35207 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35208 int arg2 ;
35209 PyObject * obj0 = 0 ;
35210 PyObject * obj1 = 0 ;
35211 char *kwnames[] = {
35212 (char *) "self",(char *) "rowspan", NULL
35213 };
35214
35215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
35216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35217 {
35218 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35219 if (PyErr_Occurred()) SWIG_fail;
35220 }
35221 {
35222 PyThreadState* __tstate = wxPyBeginAllowThreads();
35223 (arg1)->SetRowspan(arg2);
35224
35225 wxPyEndAllowThreads(__tstate);
35226 if (PyErr_Occurred()) SWIG_fail;
35227 }
35228 Py_INCREF(Py_None); resultobj = Py_None;
35229 return resultobj;
35230 fail:
35231 return NULL;
35232 }
35233
35234
35235 static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35236 PyObject *resultobj;
35237 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35238 int arg2 ;
35239 PyObject * obj0 = 0 ;
35240 PyObject * obj1 = 0 ;
35241 char *kwnames[] = {
35242 (char *) "self",(char *) "colspan", NULL
35243 };
35244
35245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
35246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35247 {
35248 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35249 if (PyErr_Occurred()) SWIG_fail;
35250 }
35251 {
35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
35253 (arg1)->SetColspan(arg2);
35254
35255 wxPyEndAllowThreads(__tstate);
35256 if (PyErr_Occurred()) SWIG_fail;
35257 }
35258 Py_INCREF(Py_None); resultobj = Py_None;
35259 return resultobj;
35260 fail:
35261 return NULL;
35262 }
35263
35264
35265 static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
35266 PyObject *resultobj;
35267 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35268 wxGBSpan *arg2 = 0 ;
35269 bool result;
35270 wxGBSpan temp2 ;
35271 PyObject * obj0 = 0 ;
35272 PyObject * obj1 = 0 ;
35273 char *kwnames[] = {
35274 (char *) "self",(char *) "o", NULL
35275 };
35276
35277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
35278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35279 {
35280 arg2 = &temp2;
35281 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
35282 }
35283 {
35284 PyThreadState* __tstate = wxPyBeginAllowThreads();
35285 result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2);
35286
35287 wxPyEndAllowThreads(__tstate);
35288 if (PyErr_Occurred()) SWIG_fail;
35289 }
35290 resultobj = SWIG_PyObj_FromBool((bool)result);
35291 return resultobj;
35292 fail:
35293 return NULL;
35294 }
35295
35296
35297 static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
35298 PyObject *resultobj;
35299 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35300 wxGBSpan *arg2 = 0 ;
35301 bool result;
35302 wxGBSpan temp2 ;
35303 PyObject * obj0 = 0 ;
35304 PyObject * obj1 = 0 ;
35305 char *kwnames[] = {
35306 (char *) "self",(char *) "o", NULL
35307 };
35308
35309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
35310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35311 {
35312 arg2 = &temp2;
35313 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
35314 }
35315 {
35316 PyThreadState* __tstate = wxPyBeginAllowThreads();
35317 result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2);
35318
35319 wxPyEndAllowThreads(__tstate);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 }
35322 resultobj = SWIG_PyObj_FromBool((bool)result);
35323 return resultobj;
35324 fail:
35325 return NULL;
35326 }
35327
35328
35329 static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
35330 PyObject *resultobj;
35331 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35332 int arg2 = (int) 1 ;
35333 int arg3 = (int) 1 ;
35334 PyObject * obj0 = 0 ;
35335 PyObject * obj1 = 0 ;
35336 PyObject * obj2 = 0 ;
35337 char *kwnames[] = {
35338 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
35339 };
35340
35341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
35342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35343 if (obj1) {
35344 {
35345 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35346 if (PyErr_Occurred()) SWIG_fail;
35347 }
35348 }
35349 if (obj2) {
35350 {
35351 arg3 = (int) SWIG_PyObj_AsInt(obj2);
35352 if (PyErr_Occurred()) SWIG_fail;
35353 }
35354 }
35355 {
35356 PyThreadState* __tstate = wxPyBeginAllowThreads();
35357 wxGBSpan_Set(arg1,arg2,arg3);
35358
35359 wxPyEndAllowThreads(__tstate);
35360 if (PyErr_Occurred()) SWIG_fail;
35361 }
35362 Py_INCREF(Py_None); resultobj = Py_None;
35363 return resultobj;
35364 fail:
35365 return NULL;
35366 }
35367
35368
35369 static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
35370 PyObject *resultobj;
35371 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35372 PyObject *result;
35373 PyObject * obj0 = 0 ;
35374 char *kwnames[] = {
35375 (char *) "self", NULL
35376 };
35377
35378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
35379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35380 {
35381 PyThreadState* __tstate = wxPyBeginAllowThreads();
35382 result = (PyObject *)wxGBSpan_Get(arg1);
35383
35384 wxPyEndAllowThreads(__tstate);
35385 if (PyErr_Occurred()) SWIG_fail;
35386 }
35387 resultobj = result;
35388 return resultobj;
35389 fail:
35390 return NULL;
35391 }
35392
35393
35394 static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
35395 PyObject *obj;
35396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35397 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
35398 Py_INCREF(obj);
35399 return Py_BuildValue((char *)"");
35400 }
35401 static int _wrap_DefaultSpan_set(PyObject *_val) {
35402 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
35403 return 1;
35404 }
35405
35406
35407 static PyObject *_wrap_DefaultSpan_get() {
35408 PyObject *pyobj;
35409
35410 pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0);
35411 return pyobj;
35412 }
35413
35414
35415 static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35416 PyObject *resultobj;
35417 wxGBSizerItem *result;
35418 char *kwnames[] = {
35419 NULL
35420 };
35421
35422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
35423 {
35424 PyThreadState* __tstate = wxPyBeginAllowThreads();
35425 result = (wxGBSizerItem *)new wxGBSizerItem();
35426
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35431 return resultobj;
35432 fail:
35433 return NULL;
35434 }
35435
35436
35437 static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
35438 PyObject *resultobj;
35439 wxWindow *arg1 = (wxWindow *) 0 ;
35440 wxGBPosition *arg2 = 0 ;
35441 wxGBSpan *arg3 = 0 ;
35442 int arg4 ;
35443 int arg5 ;
35444 wxObject *arg6 = (wxObject *) 0 ;
35445 wxGBSizerItem *result;
35446 wxGBPosition temp2 ;
35447 wxGBSpan temp3 ;
35448 PyObject * obj0 = 0 ;
35449 PyObject * obj1 = 0 ;
35450 PyObject * obj2 = 0 ;
35451 PyObject * obj3 = 0 ;
35452 PyObject * obj4 = 0 ;
35453 PyObject * obj5 = 0 ;
35454 char *kwnames[] = {
35455 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
35456 };
35457
35458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35460 {
35461 arg2 = &temp2;
35462 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35463 }
35464 {
35465 arg3 = &temp3;
35466 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
35467 }
35468 {
35469 arg4 = (int) SWIG_PyObj_AsInt(obj3);
35470 if (PyErr_Occurred()) SWIG_fail;
35471 }
35472 {
35473 arg5 = (int) SWIG_PyObj_AsInt(obj4);
35474 if (PyErr_Occurred()) SWIG_fail;
35475 }
35476 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35477 {
35478 PyThreadState* __tstate = wxPyBeginAllowThreads();
35479 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
35480
35481 wxPyEndAllowThreads(__tstate);
35482 if (PyErr_Occurred()) SWIG_fail;
35483 }
35484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35485 return resultobj;
35486 fail:
35487 return NULL;
35488 }
35489
35490
35491 static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35492 PyObject *resultobj;
35493 wxSizer *arg1 = (wxSizer *) 0 ;
35494 wxGBPosition *arg2 = 0 ;
35495 wxGBSpan *arg3 = 0 ;
35496 int arg4 ;
35497 int arg5 ;
35498 wxObject *arg6 = (wxObject *) 0 ;
35499 wxGBSizerItem *result;
35500 wxGBPosition temp2 ;
35501 wxGBSpan temp3 ;
35502 PyObject * obj0 = 0 ;
35503 PyObject * obj1 = 0 ;
35504 PyObject * obj2 = 0 ;
35505 PyObject * obj3 = 0 ;
35506 PyObject * obj4 = 0 ;
35507 PyObject * obj5 = 0 ;
35508 char *kwnames[] = {
35509 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
35510 };
35511
35512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35514 {
35515 arg2 = &temp2;
35516 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35517 }
35518 {
35519 arg3 = &temp3;
35520 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
35521 }
35522 {
35523 arg4 = (int) SWIG_PyObj_AsInt(obj3);
35524 if (PyErr_Occurred()) SWIG_fail;
35525 }
35526 {
35527 arg5 = (int) SWIG_PyObj_AsInt(obj4);
35528 if (PyErr_Occurred()) SWIG_fail;
35529 }
35530 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35531 {
35532 PyThreadState* __tstate = wxPyBeginAllowThreads();
35533 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
35534
35535 wxPyEndAllowThreads(__tstate);
35536 if (PyErr_Occurred()) SWIG_fail;
35537 }
35538 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35539 return resultobj;
35540 fail:
35541 return NULL;
35542 }
35543
35544
35545 static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35546 PyObject *resultobj;
35547 int arg1 ;
35548 int arg2 ;
35549 wxGBPosition *arg3 = 0 ;
35550 wxGBSpan *arg4 = 0 ;
35551 int arg5 ;
35552 int arg6 ;
35553 wxObject *arg7 = (wxObject *) 0 ;
35554 wxGBSizerItem *result;
35555 wxGBPosition temp3 ;
35556 wxGBSpan temp4 ;
35557 PyObject * obj0 = 0 ;
35558 PyObject * obj1 = 0 ;
35559 PyObject * obj2 = 0 ;
35560 PyObject * obj3 = 0 ;
35561 PyObject * obj4 = 0 ;
35562 PyObject * obj5 = 0 ;
35563 PyObject * obj6 = 0 ;
35564 char *kwnames[] = {
35565 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
35566 };
35567
35568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35569 {
35570 arg1 = (int) SWIG_PyObj_AsInt(obj0);
35571 if (PyErr_Occurred()) SWIG_fail;
35572 }
35573 {
35574 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35575 if (PyErr_Occurred()) SWIG_fail;
35576 }
35577 {
35578 arg3 = &temp3;
35579 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
35580 }
35581 {
35582 arg4 = &temp4;
35583 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
35584 }
35585 {
35586 arg5 = (int) SWIG_PyObj_AsInt(obj4);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 {
35590 arg6 = (int) SWIG_PyObj_AsInt(obj5);
35591 if (PyErr_Occurred()) SWIG_fail;
35592 }
35593 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35594 {
35595 PyThreadState* __tstate = wxPyBeginAllowThreads();
35596 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
35597
35598 wxPyEndAllowThreads(__tstate);
35599 if (PyErr_Occurred()) SWIG_fail;
35600 }
35601 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35602 return resultobj;
35603 fail:
35604 return NULL;
35605 }
35606
35607
35608 static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
35609 PyObject *resultobj;
35610 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35611 wxGBPosition result;
35612 PyObject * obj0 = 0 ;
35613 char *kwnames[] = {
35614 (char *) "self", NULL
35615 };
35616
35617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
35618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35619 {
35620 PyThreadState* __tstate = wxPyBeginAllowThreads();
35621 result = ((wxGBSizerItem const *)arg1)->GetPos();
35622
35623 wxPyEndAllowThreads(__tstate);
35624 if (PyErr_Occurred()) SWIG_fail;
35625 }
35626 {
35627 wxGBPosition * resultptr;
35628 resultptr = new wxGBPosition((wxGBPosition &) result);
35629 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
35630 }
35631 return resultobj;
35632 fail:
35633 return NULL;
35634 }
35635
35636
35637 static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
35638 PyObject *resultobj;
35639 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35640 wxGBSpan result;
35641 PyObject * obj0 = 0 ;
35642 char *kwnames[] = {
35643 (char *) "self", NULL
35644 };
35645
35646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
35647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35648 {
35649 PyThreadState* __tstate = wxPyBeginAllowThreads();
35650 result = ((wxGBSizerItem const *)arg1)->GetSpan();
35651
35652 wxPyEndAllowThreads(__tstate);
35653 if (PyErr_Occurred()) SWIG_fail;
35654 }
35655 {
35656 wxGBSpan * resultptr;
35657 resultptr = new wxGBSpan((wxGBSpan &) result);
35658 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
35659 }
35660 return resultobj;
35661 fail:
35662 return NULL;
35663 }
35664
35665
35666 static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
35667 PyObject *resultobj;
35668 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35669 wxGBPosition *arg2 = 0 ;
35670 bool result;
35671 wxGBPosition temp2 ;
35672 PyObject * obj0 = 0 ;
35673 PyObject * obj1 = 0 ;
35674 char *kwnames[] = {
35675 (char *) "self",(char *) "pos", NULL
35676 };
35677
35678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
35679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35680 {
35681 arg2 = &temp2;
35682 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35683 }
35684 {
35685 PyThreadState* __tstate = wxPyBeginAllowThreads();
35686 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
35687
35688 wxPyEndAllowThreads(__tstate);
35689 if (PyErr_Occurred()) SWIG_fail;
35690 }
35691 resultobj = SWIG_PyObj_FromBool((bool)result);
35692 return resultobj;
35693 fail:
35694 return NULL;
35695 }
35696
35697
35698 static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
35699 PyObject *resultobj;
35700 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35701 wxGBSpan *arg2 = 0 ;
35702 bool result;
35703 wxGBSpan temp2 ;
35704 PyObject * obj0 = 0 ;
35705 PyObject * obj1 = 0 ;
35706 char *kwnames[] = {
35707 (char *) "self",(char *) "span", NULL
35708 };
35709
35710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
35711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35712 {
35713 arg2 = &temp2;
35714 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
35715 }
35716 {
35717 PyThreadState* __tstate = wxPyBeginAllowThreads();
35718 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
35719
35720 wxPyEndAllowThreads(__tstate);
35721 if (PyErr_Occurred()) SWIG_fail;
35722 }
35723 resultobj = SWIG_PyObj_FromBool((bool)result);
35724 return resultobj;
35725 fail:
35726 return NULL;
35727 }
35728
35729
35730 static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) {
35731 PyObject *resultobj;
35732 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35733 wxGBSizerItem *arg2 = 0 ;
35734 bool result;
35735 PyObject * obj0 = 0 ;
35736 PyObject * obj1 = 0 ;
35737
35738 if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail;
35739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35740 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35741 if (arg2 == NULL) {
35742 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
35743 }
35744 {
35745 PyThreadState* __tstate = wxPyBeginAllowThreads();
35746 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
35747
35748 wxPyEndAllowThreads(__tstate);
35749 if (PyErr_Occurred()) SWIG_fail;
35750 }
35751 resultobj = SWIG_PyObj_FromBool((bool)result);
35752 return resultobj;
35753 fail:
35754 return NULL;
35755 }
35756
35757
35758 static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) {
35759 PyObject *resultobj;
35760 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35761 wxGBPosition *arg2 = 0 ;
35762 wxGBSpan *arg3 = 0 ;
35763 bool result;
35764 wxGBPosition temp2 ;
35765 wxGBSpan temp3 ;
35766 PyObject * obj0 = 0 ;
35767 PyObject * obj1 = 0 ;
35768 PyObject * obj2 = 0 ;
35769
35770 if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail;
35771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35772 {
35773 arg2 = &temp2;
35774 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35775 }
35776 {
35777 arg3 = &temp3;
35778 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
35779 }
35780 {
35781 PyThreadState* __tstate = wxPyBeginAllowThreads();
35782 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
35783
35784 wxPyEndAllowThreads(__tstate);
35785 if (PyErr_Occurred()) SWIG_fail;
35786 }
35787 resultobj = SWIG_PyObj_FromBool((bool)result);
35788 return resultobj;
35789 fail:
35790 return NULL;
35791 }
35792
35793
35794 static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) {
35795 int argc;
35796 PyObject *argv[4];
35797 int ii;
35798
35799 argc = PyObject_Length(args);
35800 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
35801 argv[ii] = PyTuple_GetItem(args,ii);
35802 }
35803 if (argc == 2) {
35804 int _v;
35805 {
35806 void *ptr;
35807 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
35808 _v = 0;
35809 PyErr_Clear();
35810 } else {
35811 _v = 1;
35812 }
35813 }
35814 if (_v) {
35815 {
35816 void *ptr;
35817 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
35818 _v = 0;
35819 PyErr_Clear();
35820 } else {
35821 _v = 1;
35822 }
35823 }
35824 if (_v) {
35825 return _wrap_GBSizerItem_Intersects__SWIG_0(self,args);
35826 }
35827 }
35828 }
35829 if (argc == 3) {
35830 int _v;
35831 {
35832 void *ptr;
35833 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
35834 _v = 0;
35835 PyErr_Clear();
35836 } else {
35837 _v = 1;
35838 }
35839 }
35840 if (_v) {
35841 {
35842 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
35843 }
35844 if (_v) {
35845 {
35846 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
35847 }
35848 if (_v) {
35849 return _wrap_GBSizerItem_Intersects__SWIG_1(self,args);
35850 }
35851 }
35852 }
35853 }
35854
35855 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'");
35856 return NULL;
35857 }
35858
35859
35860 static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj;
35862 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35863 int *arg2 = 0 ;
35864 int *arg3 = 0 ;
35865 PyObject * obj0 = 0 ;
35866 PyObject * obj1 = 0 ;
35867 PyObject * obj2 = 0 ;
35868 char *kwnames[] = {
35869 (char *) "self",(char *) "row",(char *) "col", NULL
35870 };
35871
35872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
35873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35874 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35875 if (arg2 == NULL) {
35876 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
35877 }
35878 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35879 if (arg3 == NULL) {
35880 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
35881 }
35882 {
35883 PyThreadState* __tstate = wxPyBeginAllowThreads();
35884 (arg1)->GetEndPos(*arg2,*arg3);
35885
35886 wxPyEndAllowThreads(__tstate);
35887 if (PyErr_Occurred()) SWIG_fail;
35888 }
35889 Py_INCREF(Py_None); resultobj = Py_None;
35890 return resultobj;
35891 fail:
35892 return NULL;
35893 }
35894
35895
35896 static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35897 PyObject *resultobj;
35898 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35899 wxGridBagSizer *result;
35900 PyObject * obj0 = 0 ;
35901 char *kwnames[] = {
35902 (char *) "self", NULL
35903 };
35904
35905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
35906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35907 {
35908 PyThreadState* __tstate = wxPyBeginAllowThreads();
35909 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
35910
35911 wxPyEndAllowThreads(__tstate);
35912 if (PyErr_Occurred()) SWIG_fail;
35913 }
35914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0);
35915 return resultobj;
35916 fail:
35917 return NULL;
35918 }
35919
35920
35921 static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35922 PyObject *resultobj;
35923 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
35924 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
35925 PyObject * obj0 = 0 ;
35926 PyObject * obj1 = 0 ;
35927 char *kwnames[] = {
35928 (char *) "self",(char *) "sizer", NULL
35929 };
35930
35931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
35932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35933 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35934 {
35935 PyThreadState* __tstate = wxPyBeginAllowThreads();
35936 (arg1)->SetGBSizer(arg2);
35937
35938 wxPyEndAllowThreads(__tstate);
35939 if (PyErr_Occurred()) SWIG_fail;
35940 }
35941 Py_INCREF(Py_None); resultobj = Py_None;
35942 return resultobj;
35943 fail:
35944 return NULL;
35945 }
35946
35947
35948 static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
35949 PyObject *obj;
35950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35951 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
35952 Py_INCREF(obj);
35953 return Py_BuildValue((char *)"");
35954 }
35955 static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35956 PyObject *resultobj;
35957 int arg1 = (int) 0 ;
35958 int arg2 = (int) 0 ;
35959 wxGridBagSizer *result;
35960 PyObject * obj0 = 0 ;
35961 PyObject * obj1 = 0 ;
35962 char *kwnames[] = {
35963 (char *) "vgap",(char *) "hgap", NULL
35964 };
35965
35966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
35967 if (obj0) {
35968 {
35969 arg1 = (int) SWIG_PyObj_AsInt(obj0);
35970 if (PyErr_Occurred()) SWIG_fail;
35971 }
35972 }
35973 if (obj1) {
35974 {
35975 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35976 if (PyErr_Occurred()) SWIG_fail;
35977 }
35978 }
35979 {
35980 PyThreadState* __tstate = wxPyBeginAllowThreads();
35981 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
35982
35983 wxPyEndAllowThreads(__tstate);
35984 if (PyErr_Occurred()) SWIG_fail;
35985 }
35986 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1);
35987 return resultobj;
35988 fail:
35989 return NULL;
35990 }
35991
35992
35993 static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj;
35995 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
35996 PyObject *arg2 = (PyObject *) 0 ;
35997 wxGBPosition *arg3 = 0 ;
35998 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
35999 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
36000 int arg5 = (int) 0 ;
36001 int arg6 = (int) 0 ;
36002 PyObject *arg7 = (PyObject *) NULL ;
36003 bool result;
36004 wxGBPosition temp3 ;
36005 wxGBSpan temp4 ;
36006 PyObject * obj0 = 0 ;
36007 PyObject * obj1 = 0 ;
36008 PyObject * obj2 = 0 ;
36009 PyObject * obj3 = 0 ;
36010 PyObject * obj4 = 0 ;
36011 PyObject * obj5 = 0 ;
36012 PyObject * obj6 = 0 ;
36013 char *kwnames[] = {
36014 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
36015 };
36016
36017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
36018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36019 arg2 = obj1;
36020 {
36021 arg3 = &temp3;
36022 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36023 }
36024 if (obj3) {
36025 {
36026 arg4 = &temp4;
36027 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
36028 }
36029 }
36030 if (obj4) {
36031 {
36032 arg5 = (int) SWIG_PyObj_AsInt(obj4);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 }
36035 }
36036 if (obj5) {
36037 {
36038 arg6 = (int) SWIG_PyObj_AsInt(obj5);
36039 if (PyErr_Occurred()) SWIG_fail;
36040 }
36041 }
36042 if (obj6) {
36043 arg7 = obj6;
36044 }
36045 {
36046 PyThreadState* __tstate = wxPyBeginAllowThreads();
36047 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
36048
36049 wxPyEndAllowThreads(__tstate);
36050 if (PyErr_Occurred()) SWIG_fail;
36051 }
36052 resultobj = SWIG_PyObj_FromBool((bool)result);
36053 return resultobj;
36054 fail:
36055 return NULL;
36056 }
36057
36058
36059 static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
36060 PyObject *resultobj;
36061 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36062 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
36063 bool result;
36064 PyObject * obj0 = 0 ;
36065 PyObject * obj1 = 0 ;
36066 char *kwnames[] = {
36067 (char *) "self",(char *) "item", NULL
36068 };
36069
36070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
36071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36072 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36073 {
36074 PyThreadState* __tstate = wxPyBeginAllowThreads();
36075 result = (bool)(arg1)->Add(arg2);
36076
36077 wxPyEndAllowThreads(__tstate);
36078 if (PyErr_Occurred()) SWIG_fail;
36079 }
36080 resultobj = SWIG_PyObj_FromBool((bool)result);
36081 return resultobj;
36082 fail:
36083 return NULL;
36084 }
36085
36086
36087 static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
36088 PyObject *resultobj;
36089 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36090 wxSize result;
36091 PyObject * obj0 = 0 ;
36092 char *kwnames[] = {
36093 (char *) "self", NULL
36094 };
36095
36096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
36097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
36101
36102 wxPyEndAllowThreads(__tstate);
36103 if (PyErr_Occurred()) SWIG_fail;
36104 }
36105 {
36106 wxSize * resultptr;
36107 resultptr = new wxSize((wxSize &) result);
36108 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
36109 }
36110 return resultobj;
36111 fail:
36112 return NULL;
36113 }
36114
36115
36116 static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj;
36118 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36119 wxSize *arg2 = 0 ;
36120 wxSize temp2 ;
36121 PyObject * obj0 = 0 ;
36122 PyObject * obj1 = 0 ;
36123 char *kwnames[] = {
36124 (char *) "self",(char *) "sz", NULL
36125 };
36126
36127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
36128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36129 {
36130 arg2 = &temp2;
36131 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
36132 }
36133 {
36134 PyThreadState* __tstate = wxPyBeginAllowThreads();
36135 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
36136
36137 wxPyEndAllowThreads(__tstate);
36138 if (PyErr_Occurred()) SWIG_fail;
36139 }
36140 Py_INCREF(Py_None); resultobj = Py_None;
36141 return resultobj;
36142 fail:
36143 return NULL;
36144 }
36145
36146
36147 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
36148 PyObject *resultobj;
36149 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36150 wxWindow *arg2 = (wxWindow *) 0 ;
36151 wxGBPosition result;
36152 PyObject * obj0 = 0 ;
36153 PyObject * obj1 = 0 ;
36154
36155 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36157 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36158 {
36159 PyThreadState* __tstate = wxPyBeginAllowThreads();
36160 result = (arg1)->GetItemPosition(arg2);
36161
36162 wxPyEndAllowThreads(__tstate);
36163 if (PyErr_Occurred()) SWIG_fail;
36164 }
36165 {
36166 wxGBPosition * resultptr;
36167 resultptr = new wxGBPosition((wxGBPosition &) result);
36168 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36169 }
36170 return resultobj;
36171 fail:
36172 return NULL;
36173 }
36174
36175
36176 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
36177 PyObject *resultobj;
36178 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36179 wxSizer *arg2 = (wxSizer *) 0 ;
36180 wxGBPosition result;
36181 PyObject * obj0 = 0 ;
36182 PyObject * obj1 = 0 ;
36183
36184 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36186 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36187 {
36188 PyThreadState* __tstate = wxPyBeginAllowThreads();
36189 result = (arg1)->GetItemPosition(arg2);
36190
36191 wxPyEndAllowThreads(__tstate);
36192 if (PyErr_Occurred()) SWIG_fail;
36193 }
36194 {
36195 wxGBPosition * resultptr;
36196 resultptr = new wxGBPosition((wxGBPosition &) result);
36197 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36198 }
36199 return resultobj;
36200 fail:
36201 return NULL;
36202 }
36203
36204
36205 static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
36206 PyObject *resultobj;
36207 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36208 size_t arg2 ;
36209 wxGBPosition result;
36210 PyObject * obj0 = 0 ;
36211 PyObject * obj1 = 0 ;
36212
36213 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36215 {
36216 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
36217 if (PyErr_Occurred()) SWIG_fail;
36218 }
36219 {
36220 PyThreadState* __tstate = wxPyBeginAllowThreads();
36221 result = (arg1)->GetItemPosition(arg2);
36222
36223 wxPyEndAllowThreads(__tstate);
36224 if (PyErr_Occurred()) SWIG_fail;
36225 }
36226 {
36227 wxGBPosition * resultptr;
36228 resultptr = new wxGBPosition((wxGBPosition &) result);
36229 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36230 }
36231 return resultobj;
36232 fail:
36233 return NULL;
36234 }
36235
36236
36237 static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
36238 int argc;
36239 PyObject *argv[3];
36240 int ii;
36241
36242 argc = PyObject_Length(args);
36243 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
36244 argv[ii] = PyTuple_GetItem(args,ii);
36245 }
36246 if (argc == 2) {
36247 int _v;
36248 {
36249 void *ptr;
36250 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36251 _v = 0;
36252 PyErr_Clear();
36253 } else {
36254 _v = 1;
36255 }
36256 }
36257 if (_v) {
36258 {
36259 void *ptr;
36260 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36261 _v = 0;
36262 PyErr_Clear();
36263 } else {
36264 _v = 1;
36265 }
36266 }
36267 if (_v) {
36268 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
36269 }
36270 }
36271 }
36272 if (argc == 2) {
36273 int _v;
36274 {
36275 void *ptr;
36276 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36277 _v = 0;
36278 PyErr_Clear();
36279 } else {
36280 _v = 1;
36281 }
36282 }
36283 if (_v) {
36284 {
36285 void *ptr;
36286 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36287 _v = 0;
36288 PyErr_Clear();
36289 } else {
36290 _v = 1;
36291 }
36292 }
36293 if (_v) {
36294 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
36295 }
36296 }
36297 }
36298 if (argc == 2) {
36299 int _v;
36300 {
36301 void *ptr;
36302 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36303 _v = 0;
36304 PyErr_Clear();
36305 } else {
36306 _v = 1;
36307 }
36308 }
36309 if (_v) {
36310 {
36311 SWIG_PyObj_AsUnsignedLong(argv[1]);
36312 if (PyErr_Occurred()) {
36313 _v = 0;
36314 PyErr_Clear();
36315 } else {
36316 _v = 1;
36317 }
36318 }
36319 if (_v) {
36320 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
36321 }
36322 }
36323 }
36324
36325 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
36326 return NULL;
36327 }
36328
36329
36330 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
36331 PyObject *resultobj;
36332 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36333 wxWindow *arg2 = (wxWindow *) 0 ;
36334 wxGBPosition *arg3 = 0 ;
36335 bool result;
36336 wxGBPosition temp3 ;
36337 PyObject * obj0 = 0 ;
36338 PyObject * obj1 = 0 ;
36339 PyObject * obj2 = 0 ;
36340
36341 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36343 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36344 {
36345 arg3 = &temp3;
36346 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36347 }
36348 {
36349 PyThreadState* __tstate = wxPyBeginAllowThreads();
36350 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36351
36352 wxPyEndAllowThreads(__tstate);
36353 if (PyErr_Occurred()) SWIG_fail;
36354 }
36355 resultobj = SWIG_PyObj_FromBool((bool)result);
36356 return resultobj;
36357 fail:
36358 return NULL;
36359 }
36360
36361
36362 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
36363 PyObject *resultobj;
36364 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36365 wxSizer *arg2 = (wxSizer *) 0 ;
36366 wxGBPosition *arg3 = 0 ;
36367 bool result;
36368 wxGBPosition temp3 ;
36369 PyObject * obj0 = 0 ;
36370 PyObject * obj1 = 0 ;
36371 PyObject * obj2 = 0 ;
36372
36373 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36375 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36376 {
36377 arg3 = &temp3;
36378 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36379 }
36380 {
36381 PyThreadState* __tstate = wxPyBeginAllowThreads();
36382 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36383
36384 wxPyEndAllowThreads(__tstate);
36385 if (PyErr_Occurred()) SWIG_fail;
36386 }
36387 resultobj = SWIG_PyObj_FromBool((bool)result);
36388 return resultobj;
36389 fail:
36390 return NULL;
36391 }
36392
36393
36394 static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
36395 PyObject *resultobj;
36396 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36397 size_t arg2 ;
36398 wxGBPosition *arg3 = 0 ;
36399 bool result;
36400 wxGBPosition temp3 ;
36401 PyObject * obj0 = 0 ;
36402 PyObject * obj1 = 0 ;
36403 PyObject * obj2 = 0 ;
36404
36405 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36407 {
36408 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
36409 if (PyErr_Occurred()) SWIG_fail;
36410 }
36411 {
36412 arg3 = &temp3;
36413 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36414 }
36415 {
36416 PyThreadState* __tstate = wxPyBeginAllowThreads();
36417 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36418
36419 wxPyEndAllowThreads(__tstate);
36420 if (PyErr_Occurred()) SWIG_fail;
36421 }
36422 resultobj = SWIG_PyObj_FromBool((bool)result);
36423 return resultobj;
36424 fail:
36425 return NULL;
36426 }
36427
36428
36429 static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
36430 int argc;
36431 PyObject *argv[4];
36432 int ii;
36433
36434 argc = PyObject_Length(args);
36435 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
36436 argv[ii] = PyTuple_GetItem(args,ii);
36437 }
36438 if (argc == 3) {
36439 int _v;
36440 {
36441 void *ptr;
36442 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36443 _v = 0;
36444 PyErr_Clear();
36445 } else {
36446 _v = 1;
36447 }
36448 }
36449 if (_v) {
36450 {
36451 void *ptr;
36452 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36453 _v = 0;
36454 PyErr_Clear();
36455 } else {
36456 _v = 1;
36457 }
36458 }
36459 if (_v) {
36460 {
36461 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36462 }
36463 if (_v) {
36464 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
36465 }
36466 }
36467 }
36468 }
36469 if (argc == 3) {
36470 int _v;
36471 {
36472 void *ptr;
36473 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36474 _v = 0;
36475 PyErr_Clear();
36476 } else {
36477 _v = 1;
36478 }
36479 }
36480 if (_v) {
36481 {
36482 void *ptr;
36483 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36484 _v = 0;
36485 PyErr_Clear();
36486 } else {
36487 _v = 1;
36488 }
36489 }
36490 if (_v) {
36491 {
36492 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36493 }
36494 if (_v) {
36495 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
36496 }
36497 }
36498 }
36499 }
36500 if (argc == 3) {
36501 int _v;
36502 {
36503 void *ptr;
36504 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36505 _v = 0;
36506 PyErr_Clear();
36507 } else {
36508 _v = 1;
36509 }
36510 }
36511 if (_v) {
36512 {
36513 SWIG_PyObj_AsUnsignedLong(argv[1]);
36514 if (PyErr_Occurred()) {
36515 _v = 0;
36516 PyErr_Clear();
36517 } else {
36518 _v = 1;
36519 }
36520 }
36521 if (_v) {
36522 {
36523 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36524 }
36525 if (_v) {
36526 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
36527 }
36528 }
36529 }
36530 }
36531
36532 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
36533 return NULL;
36534 }
36535
36536
36537 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
36538 PyObject *resultobj;
36539 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36540 wxWindow *arg2 = (wxWindow *) 0 ;
36541 wxGBSpan result;
36542 PyObject * obj0 = 0 ;
36543 PyObject * obj1 = 0 ;
36544
36545 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
36546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36547 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36548 {
36549 PyThreadState* __tstate = wxPyBeginAllowThreads();
36550 result = (arg1)->GetItemSpan(arg2);
36551
36552 wxPyEndAllowThreads(__tstate);
36553 if (PyErr_Occurred()) SWIG_fail;
36554 }
36555 {
36556 wxGBSpan * resultptr;
36557 resultptr = new wxGBSpan((wxGBSpan &) result);
36558 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
36559 }
36560 return resultobj;
36561 fail:
36562 return NULL;
36563 }
36564
36565
36566 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
36567 PyObject *resultobj;
36568 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36569 wxSizer *arg2 = (wxSizer *) 0 ;
36570 wxGBSpan result;
36571 PyObject * obj0 = 0 ;
36572 PyObject * obj1 = 0 ;
36573
36574 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
36575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36576 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36577 {
36578 PyThreadState* __tstate = wxPyBeginAllowThreads();
36579 result = (arg1)->GetItemSpan(arg2);
36580
36581 wxPyEndAllowThreads(__tstate);
36582 if (PyErr_Occurred()) SWIG_fail;
36583 }
36584 {
36585 wxGBSpan * resultptr;
36586 resultptr = new wxGBSpan((wxGBSpan &) result);
36587 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
36588 }
36589 return resultobj;
36590 fail:
36591 return NULL;
36592 }
36593
36594
36595 static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
36596 PyObject *resultobj;
36597 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36598 size_t arg2 ;
36599 wxGBSpan result;
36600 PyObject * obj0 = 0 ;
36601 PyObject * obj1 = 0 ;
36602
36603 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
36604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36605 {
36606 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
36607 if (PyErr_Occurred()) SWIG_fail;
36608 }
36609 {
36610 PyThreadState* __tstate = wxPyBeginAllowThreads();
36611 result = (arg1)->GetItemSpan(arg2);
36612
36613 wxPyEndAllowThreads(__tstate);
36614 if (PyErr_Occurred()) SWIG_fail;
36615 }
36616 {
36617 wxGBSpan * resultptr;
36618 resultptr = new wxGBSpan((wxGBSpan &) result);
36619 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
36620 }
36621 return resultobj;
36622 fail:
36623 return NULL;
36624 }
36625
36626
36627 static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
36628 int argc;
36629 PyObject *argv[3];
36630 int ii;
36631
36632 argc = PyObject_Length(args);
36633 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
36634 argv[ii] = PyTuple_GetItem(args,ii);
36635 }
36636 if (argc == 2) {
36637 int _v;
36638 {
36639 void *ptr;
36640 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36641 _v = 0;
36642 PyErr_Clear();
36643 } else {
36644 _v = 1;
36645 }
36646 }
36647 if (_v) {
36648 {
36649 void *ptr;
36650 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36651 _v = 0;
36652 PyErr_Clear();
36653 } else {
36654 _v = 1;
36655 }
36656 }
36657 if (_v) {
36658 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
36659 }
36660 }
36661 }
36662 if (argc == 2) {
36663 int _v;
36664 {
36665 void *ptr;
36666 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36667 _v = 0;
36668 PyErr_Clear();
36669 } else {
36670 _v = 1;
36671 }
36672 }
36673 if (_v) {
36674 {
36675 void *ptr;
36676 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36677 _v = 0;
36678 PyErr_Clear();
36679 } else {
36680 _v = 1;
36681 }
36682 }
36683 if (_v) {
36684 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
36685 }
36686 }
36687 }
36688 if (argc == 2) {
36689 int _v;
36690 {
36691 void *ptr;
36692 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36693 _v = 0;
36694 PyErr_Clear();
36695 } else {
36696 _v = 1;
36697 }
36698 }
36699 if (_v) {
36700 {
36701 SWIG_PyObj_AsUnsignedLong(argv[1]);
36702 if (PyErr_Occurred()) {
36703 _v = 0;
36704 PyErr_Clear();
36705 } else {
36706 _v = 1;
36707 }
36708 }
36709 if (_v) {
36710 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
36711 }
36712 }
36713 }
36714
36715 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
36716 return NULL;
36717 }
36718
36719
36720 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
36721 PyObject *resultobj;
36722 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36723 wxWindow *arg2 = (wxWindow *) 0 ;
36724 wxGBSpan *arg3 = 0 ;
36725 bool result;
36726 wxGBSpan temp3 ;
36727 PyObject * obj0 = 0 ;
36728 PyObject * obj1 = 0 ;
36729 PyObject * obj2 = 0 ;
36730
36731 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
36732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36733 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36734 {
36735 arg3 = &temp3;
36736 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
36737 }
36738 {
36739 PyThreadState* __tstate = wxPyBeginAllowThreads();
36740 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
36741
36742 wxPyEndAllowThreads(__tstate);
36743 if (PyErr_Occurred()) SWIG_fail;
36744 }
36745 resultobj = SWIG_PyObj_FromBool((bool)result);
36746 return resultobj;
36747 fail:
36748 return NULL;
36749 }
36750
36751
36752 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
36753 PyObject *resultobj;
36754 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36755 wxSizer *arg2 = (wxSizer *) 0 ;
36756 wxGBSpan *arg3 = 0 ;
36757 bool result;
36758 wxGBSpan temp3 ;
36759 PyObject * obj0 = 0 ;
36760 PyObject * obj1 = 0 ;
36761 PyObject * obj2 = 0 ;
36762
36763 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
36764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36765 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36766 {
36767 arg3 = &temp3;
36768 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
36769 }
36770 {
36771 PyThreadState* __tstate = wxPyBeginAllowThreads();
36772 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
36773
36774 wxPyEndAllowThreads(__tstate);
36775 if (PyErr_Occurred()) SWIG_fail;
36776 }
36777 resultobj = SWIG_PyObj_FromBool((bool)result);
36778 return resultobj;
36779 fail:
36780 return NULL;
36781 }
36782
36783
36784 static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
36785 PyObject *resultobj;
36786 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36787 size_t arg2 ;
36788 wxGBSpan *arg3 = 0 ;
36789 bool result;
36790 wxGBSpan temp3 ;
36791 PyObject * obj0 = 0 ;
36792 PyObject * obj1 = 0 ;
36793 PyObject * obj2 = 0 ;
36794
36795 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
36796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36797 {
36798 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
36799 if (PyErr_Occurred()) SWIG_fail;
36800 }
36801 {
36802 arg3 = &temp3;
36803 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
36804 }
36805 {
36806 PyThreadState* __tstate = wxPyBeginAllowThreads();
36807 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
36808
36809 wxPyEndAllowThreads(__tstate);
36810 if (PyErr_Occurred()) SWIG_fail;
36811 }
36812 resultobj = SWIG_PyObj_FromBool((bool)result);
36813 return resultobj;
36814 fail:
36815 return NULL;
36816 }
36817
36818
36819 static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
36820 int argc;
36821 PyObject *argv[4];
36822 int ii;
36823
36824 argc = PyObject_Length(args);
36825 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
36826 argv[ii] = PyTuple_GetItem(args,ii);
36827 }
36828 if (argc == 3) {
36829 int _v;
36830 {
36831 void *ptr;
36832 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36833 _v = 0;
36834 PyErr_Clear();
36835 } else {
36836 _v = 1;
36837 }
36838 }
36839 if (_v) {
36840 {
36841 void *ptr;
36842 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36843 _v = 0;
36844 PyErr_Clear();
36845 } else {
36846 _v = 1;
36847 }
36848 }
36849 if (_v) {
36850 {
36851 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
36852 }
36853 if (_v) {
36854 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
36855 }
36856 }
36857 }
36858 }
36859 if (argc == 3) {
36860 int _v;
36861 {
36862 void *ptr;
36863 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36864 _v = 0;
36865 PyErr_Clear();
36866 } else {
36867 _v = 1;
36868 }
36869 }
36870 if (_v) {
36871 {
36872 void *ptr;
36873 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36874 _v = 0;
36875 PyErr_Clear();
36876 } else {
36877 _v = 1;
36878 }
36879 }
36880 if (_v) {
36881 {
36882 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
36883 }
36884 if (_v) {
36885 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
36886 }
36887 }
36888 }
36889 }
36890 if (argc == 3) {
36891 int _v;
36892 {
36893 void *ptr;
36894 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36895 _v = 0;
36896 PyErr_Clear();
36897 } else {
36898 _v = 1;
36899 }
36900 }
36901 if (_v) {
36902 {
36903 SWIG_PyObj_AsUnsignedLong(argv[1]);
36904 if (PyErr_Occurred()) {
36905 _v = 0;
36906 PyErr_Clear();
36907 } else {
36908 _v = 1;
36909 }
36910 }
36911 if (_v) {
36912 {
36913 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
36914 }
36915 if (_v) {
36916 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
36917 }
36918 }
36919 }
36920 }
36921
36922 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
36923 return NULL;
36924 }
36925
36926
36927 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
36928 PyObject *resultobj;
36929 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36930 wxWindow *arg2 = (wxWindow *) 0 ;
36931 wxGBSizerItem *result;
36932 PyObject * obj0 = 0 ;
36933 PyObject * obj1 = 0 ;
36934
36935 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
36936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36937 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36938 {
36939 PyThreadState* __tstate = wxPyBeginAllowThreads();
36940 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
36941
36942 wxPyEndAllowThreads(__tstate);
36943 if (PyErr_Occurred()) SWIG_fail;
36944 }
36945 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
36946 return resultobj;
36947 fail:
36948 return NULL;
36949 }
36950
36951
36952 static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
36953 PyObject *resultobj;
36954 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36955 wxSizer *arg2 = (wxSizer *) 0 ;
36956 wxGBSizerItem *result;
36957 PyObject * obj0 = 0 ;
36958 PyObject * obj1 = 0 ;
36959
36960 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
36961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36962 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36963 {
36964 PyThreadState* __tstate = wxPyBeginAllowThreads();
36965 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
36966
36967 wxPyEndAllowThreads(__tstate);
36968 if (PyErr_Occurred()) SWIG_fail;
36969 }
36970 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
36971 return resultobj;
36972 fail:
36973 return NULL;
36974 }
36975
36976
36977 static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
36978 int argc;
36979 PyObject *argv[3];
36980 int ii;
36981
36982 argc = PyObject_Length(args);
36983 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
36984 argv[ii] = PyTuple_GetItem(args,ii);
36985 }
36986 if (argc == 2) {
36987 int _v;
36988 {
36989 void *ptr;
36990 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36991 _v = 0;
36992 PyErr_Clear();
36993 } else {
36994 _v = 1;
36995 }
36996 }
36997 if (_v) {
36998 {
36999 void *ptr;
37000 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
37001 _v = 0;
37002 PyErr_Clear();
37003 } else {
37004 _v = 1;
37005 }
37006 }
37007 if (_v) {
37008 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
37009 }
37010 }
37011 }
37012 if (argc == 2) {
37013 int _v;
37014 {
37015 void *ptr;
37016 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37017 _v = 0;
37018 PyErr_Clear();
37019 } else {
37020 _v = 1;
37021 }
37022 }
37023 if (_v) {
37024 {
37025 void *ptr;
37026 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
37027 _v = 0;
37028 PyErr_Clear();
37029 } else {
37030 _v = 1;
37031 }
37032 }
37033 if (_v) {
37034 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
37035 }
37036 }
37037 }
37038
37039 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
37040 return NULL;
37041 }
37042
37043
37044 static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
37045 PyObject *resultobj;
37046 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37047 wxGBPosition *arg2 = 0 ;
37048 wxGBSizerItem *result;
37049 wxGBPosition temp2 ;
37050 PyObject * obj0 = 0 ;
37051 PyObject * obj1 = 0 ;
37052 char *kwnames[] = {
37053 (char *) "self",(char *) "pos", NULL
37054 };
37055
37056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
37057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37058 {
37059 arg2 = &temp2;
37060 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37061 }
37062 {
37063 PyThreadState* __tstate = wxPyBeginAllowThreads();
37064 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
37065
37066 wxPyEndAllowThreads(__tstate);
37067 if (PyErr_Occurred()) SWIG_fail;
37068 }
37069 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37070 return resultobj;
37071 fail:
37072 return NULL;
37073 }
37074
37075
37076 static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
37077 PyObject *resultobj;
37078 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37079 wxPoint *arg2 = 0 ;
37080 wxGBSizerItem *result;
37081 wxPoint temp2 ;
37082 PyObject * obj0 = 0 ;
37083 PyObject * obj1 = 0 ;
37084 char *kwnames[] = {
37085 (char *) "self",(char *) "pt", NULL
37086 };
37087
37088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
37089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37090 {
37091 arg2 = &temp2;
37092 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37093 }
37094 {
37095 PyThreadState* __tstate = wxPyBeginAllowThreads();
37096 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
37097
37098 wxPyEndAllowThreads(__tstate);
37099 if (PyErr_Occurred()) SWIG_fail;
37100 }
37101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37102 return resultobj;
37103 fail:
37104 return NULL;
37105 }
37106
37107
37108 static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) {
37109 PyObject *resultobj;
37110 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37111 wxObject *arg2 = (wxObject *) 0 ;
37112 wxGBSizerItem *result;
37113 PyObject * obj0 = 0 ;
37114 PyObject * obj1 = 0 ;
37115 char *kwnames[] = {
37116 (char *) "self",(char *) "userData", NULL
37117 };
37118
37119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail;
37120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37121 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37122 {
37123 PyThreadState* __tstate = wxPyBeginAllowThreads();
37124 result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2);
37125
37126 wxPyEndAllowThreads(__tstate);
37127 if (PyErr_Occurred()) SWIG_fail;
37128 }
37129 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37130 return resultobj;
37131 fail:
37132 return NULL;
37133 }
37134
37135
37136 static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
37137 PyObject *resultobj;
37138 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37139 PyObject * obj0 = 0 ;
37140 char *kwnames[] = {
37141 (char *) "self", NULL
37142 };
37143
37144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail;
37145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37146 {
37147 PyThreadState* __tstate = wxPyBeginAllowThreads();
37148 (arg1)->RecalcSizes();
37149
37150 wxPyEndAllowThreads(__tstate);
37151 if (PyErr_Occurred()) SWIG_fail;
37152 }
37153 Py_INCREF(Py_None); resultobj = Py_None;
37154 return resultobj;
37155 fail:
37156 return NULL;
37157 }
37158
37159
37160 static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
37161 PyObject *resultobj;
37162 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37163 wxSize result;
37164 PyObject * obj0 = 0 ;
37165 char *kwnames[] = {
37166 (char *) "self", NULL
37167 };
37168
37169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail;
37170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37171 {
37172 PyThreadState* __tstate = wxPyBeginAllowThreads();
37173 result = (arg1)->CalcMin();
37174
37175 wxPyEndAllowThreads(__tstate);
37176 if (PyErr_Occurred()) SWIG_fail;
37177 }
37178 {
37179 wxSize * resultptr;
37180 resultptr = new wxSize((wxSize &) result);
37181 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
37182 }
37183 return resultobj;
37184 fail:
37185 return NULL;
37186 }
37187
37188
37189 static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) {
37190 PyObject *resultobj;
37191 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37192 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
37193 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
37194 bool result;
37195 PyObject * obj0 = 0 ;
37196 PyObject * obj1 = 0 ;
37197 PyObject * obj2 = 0 ;
37198
37199 if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail;
37200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37201 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37202 if (obj2) {
37203 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37204 }
37205 {
37206 PyThreadState* __tstate = wxPyBeginAllowThreads();
37207 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
37208
37209 wxPyEndAllowThreads(__tstate);
37210 if (PyErr_Occurred()) SWIG_fail;
37211 }
37212 resultobj = SWIG_PyObj_FromBool((bool)result);
37213 return resultobj;
37214 fail:
37215 return NULL;
37216 }
37217
37218
37219 static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) {
37220 PyObject *resultobj;
37221 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37222 wxGBPosition *arg2 = 0 ;
37223 wxGBSpan *arg3 = 0 ;
37224 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
37225 bool result;
37226 wxGBPosition temp2 ;
37227 wxGBSpan temp3 ;
37228 PyObject * obj0 = 0 ;
37229 PyObject * obj1 = 0 ;
37230 PyObject * obj2 = 0 ;
37231 PyObject * obj3 = 0 ;
37232
37233 if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail;
37234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37235 {
37236 arg2 = &temp2;
37237 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37238 }
37239 {
37240 arg3 = &temp3;
37241 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37242 }
37243 if (obj3) {
37244 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37245 }
37246 {
37247 PyThreadState* __tstate = wxPyBeginAllowThreads();
37248 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
37249
37250 wxPyEndAllowThreads(__tstate);
37251 if (PyErr_Occurred()) SWIG_fail;
37252 }
37253 resultobj = SWIG_PyObj_FromBool((bool)result);
37254 return resultobj;
37255 fail:
37256 return NULL;
37257 }
37258
37259
37260 static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) {
37261 int argc;
37262 PyObject *argv[5];
37263 int ii;
37264
37265 argc = PyObject_Length(args);
37266 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
37267 argv[ii] = PyTuple_GetItem(args,ii);
37268 }
37269 if ((argc >= 2) && (argc <= 3)) {
37270 int _v;
37271 {
37272 void *ptr;
37273 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37274 _v = 0;
37275 PyErr_Clear();
37276 } else {
37277 _v = 1;
37278 }
37279 }
37280 if (_v) {
37281 {
37282 void *ptr;
37283 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37284 _v = 0;
37285 PyErr_Clear();
37286 } else {
37287 _v = 1;
37288 }
37289 }
37290 if (_v) {
37291 if (argc <= 2) {
37292 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
37293 }
37294 {
37295 void *ptr;
37296 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37297 _v = 0;
37298 PyErr_Clear();
37299 } else {
37300 _v = 1;
37301 }
37302 }
37303 if (_v) {
37304 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
37305 }
37306 }
37307 }
37308 }
37309 if ((argc >= 3) && (argc <= 4)) {
37310 int _v;
37311 {
37312 void *ptr;
37313 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37314 _v = 0;
37315 PyErr_Clear();
37316 } else {
37317 _v = 1;
37318 }
37319 }
37320 if (_v) {
37321 {
37322 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
37323 }
37324 if (_v) {
37325 {
37326 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37327 }
37328 if (_v) {
37329 if (argc <= 3) {
37330 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
37331 }
37332 {
37333 void *ptr;
37334 if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37335 _v = 0;
37336 PyErr_Clear();
37337 } else {
37338 _v = 1;
37339 }
37340 }
37341 if (_v) {
37342 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
37343 }
37344 }
37345 }
37346 }
37347 }
37348
37349 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'");
37350 return NULL;
37351 }
37352
37353
37354 static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
37355 PyObject *obj;
37356 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37357 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
37358 Py_INCREF(obj);
37359 return Py_BuildValue((char *)"");
37360 }
37361 static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37362 PyObject *resultobj;
37363 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37364 int arg2 ;
37365 wxWindow *arg3 = (wxWindow *) 0 ;
37366 int arg4 ;
37367 int arg5 = (int) 0 ;
37368 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
37369 PyObject * obj0 = 0 ;
37370 PyObject * obj1 = 0 ;
37371 PyObject * obj2 = 0 ;
37372 PyObject * obj3 = 0 ;
37373 PyObject * obj4 = 0 ;
37374 PyObject * obj5 = 0 ;
37375 char *kwnames[] = {
37376 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
37377 };
37378
37379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
37380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37381 {
37382 arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1);
37383 if (PyErr_Occurred()) SWIG_fail;
37384 }
37385 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37386 {
37387 arg4 = (wxEdge) SWIG_PyObj_AsInt(obj3);
37388 if (PyErr_Occurred()) SWIG_fail;
37389 }
37390 if (obj4) {
37391 {
37392 arg5 = (int) SWIG_PyObj_AsInt(obj4);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 }
37395 }
37396 if (obj5) {
37397 {
37398 arg6 = (int) SWIG_PyObj_AsInt(obj5);
37399 if (PyErr_Occurred()) SWIG_fail;
37400 }
37401 }
37402 {
37403 PyThreadState* __tstate = wxPyBeginAllowThreads();
37404 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
37405
37406 wxPyEndAllowThreads(__tstate);
37407 if (PyErr_Occurred()) SWIG_fail;
37408 }
37409 Py_INCREF(Py_None); resultobj = Py_None;
37410 return resultobj;
37411 fail:
37412 return NULL;
37413 }
37414
37415
37416 static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
37417 PyObject *resultobj;
37418 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37419 wxWindow *arg2 = (wxWindow *) 0 ;
37420 int arg3 = (int) 0 ;
37421 PyObject * obj0 = 0 ;
37422 PyObject * obj1 = 0 ;
37423 PyObject * obj2 = 0 ;
37424 char *kwnames[] = {
37425 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37426 };
37427
37428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
37429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37430 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37431 if (obj2) {
37432 {
37433 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37434 if (PyErr_Occurred()) SWIG_fail;
37435 }
37436 }
37437 {
37438 PyThreadState* __tstate = wxPyBeginAllowThreads();
37439 (arg1)->LeftOf(arg2,arg3);
37440
37441 wxPyEndAllowThreads(__tstate);
37442 if (PyErr_Occurred()) SWIG_fail;
37443 }
37444 Py_INCREF(Py_None); resultobj = Py_None;
37445 return resultobj;
37446 fail:
37447 return NULL;
37448 }
37449
37450
37451 static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
37452 PyObject *resultobj;
37453 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37454 wxWindow *arg2 = (wxWindow *) 0 ;
37455 int arg3 = (int) 0 ;
37456 PyObject * obj0 = 0 ;
37457 PyObject * obj1 = 0 ;
37458 PyObject * obj2 = 0 ;
37459 char *kwnames[] = {
37460 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37461 };
37462
37463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
37464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37465 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37466 if (obj2) {
37467 {
37468 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37469 if (PyErr_Occurred()) SWIG_fail;
37470 }
37471 }
37472 {
37473 PyThreadState* __tstate = wxPyBeginAllowThreads();
37474 (arg1)->RightOf(arg2,arg3);
37475
37476 wxPyEndAllowThreads(__tstate);
37477 if (PyErr_Occurred()) SWIG_fail;
37478 }
37479 Py_INCREF(Py_None); resultobj = Py_None;
37480 return resultobj;
37481 fail:
37482 return NULL;
37483 }
37484
37485
37486 static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
37487 PyObject *resultobj;
37488 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37489 wxWindow *arg2 = (wxWindow *) 0 ;
37490 int arg3 = (int) 0 ;
37491 PyObject * obj0 = 0 ;
37492 PyObject * obj1 = 0 ;
37493 PyObject * obj2 = 0 ;
37494 char *kwnames[] = {
37495 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37496 };
37497
37498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
37499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37500 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37501 if (obj2) {
37502 {
37503 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37504 if (PyErr_Occurred()) SWIG_fail;
37505 }
37506 }
37507 {
37508 PyThreadState* __tstate = wxPyBeginAllowThreads();
37509 (arg1)->Above(arg2,arg3);
37510
37511 wxPyEndAllowThreads(__tstate);
37512 if (PyErr_Occurred()) SWIG_fail;
37513 }
37514 Py_INCREF(Py_None); resultobj = Py_None;
37515 return resultobj;
37516 fail:
37517 return NULL;
37518 }
37519
37520
37521 static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
37522 PyObject *resultobj;
37523 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37524 wxWindow *arg2 = (wxWindow *) 0 ;
37525 int arg3 = (int) 0 ;
37526 PyObject * obj0 = 0 ;
37527 PyObject * obj1 = 0 ;
37528 PyObject * obj2 = 0 ;
37529 char *kwnames[] = {
37530 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37531 };
37532
37533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
37534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37535 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37536 if (obj2) {
37537 {
37538 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37539 if (PyErr_Occurred()) SWIG_fail;
37540 }
37541 }
37542 {
37543 PyThreadState* __tstate = wxPyBeginAllowThreads();
37544 (arg1)->Below(arg2,arg3);
37545
37546 wxPyEndAllowThreads(__tstate);
37547 if (PyErr_Occurred()) SWIG_fail;
37548 }
37549 Py_INCREF(Py_None); resultobj = Py_None;
37550 return resultobj;
37551 fail:
37552 return NULL;
37553 }
37554
37555
37556 static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
37557 PyObject *resultobj;
37558 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37559 wxWindow *arg2 = (wxWindow *) 0 ;
37560 int arg3 ;
37561 int arg4 = (int) 0 ;
37562 PyObject * obj0 = 0 ;
37563 PyObject * obj1 = 0 ;
37564 PyObject * obj2 = 0 ;
37565 PyObject * obj3 = 0 ;
37566 char *kwnames[] = {
37567 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
37568 };
37569
37570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
37571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37572 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37573 {
37574 arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2);
37575 if (PyErr_Occurred()) SWIG_fail;
37576 }
37577 if (obj3) {
37578 {
37579 arg4 = (int) SWIG_PyObj_AsInt(obj3);
37580 if (PyErr_Occurred()) SWIG_fail;
37581 }
37582 }
37583 {
37584 PyThreadState* __tstate = wxPyBeginAllowThreads();
37585 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
37586
37587 wxPyEndAllowThreads(__tstate);
37588 if (PyErr_Occurred()) SWIG_fail;
37589 }
37590 Py_INCREF(Py_None); resultobj = Py_None;
37591 return resultobj;
37592 fail:
37593 return NULL;
37594 }
37595
37596
37597 static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
37598 PyObject *resultobj;
37599 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37600 wxWindow *arg2 = (wxWindow *) 0 ;
37601 int arg3 ;
37602 int arg4 ;
37603 PyObject * obj0 = 0 ;
37604 PyObject * obj1 = 0 ;
37605 PyObject * obj2 = 0 ;
37606 PyObject * obj3 = 0 ;
37607 char *kwnames[] = {
37608 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
37609 };
37610
37611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
37612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37613 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37614 {
37615 arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2);
37616 if (PyErr_Occurred()) SWIG_fail;
37617 }
37618 {
37619 arg4 = (int) SWIG_PyObj_AsInt(obj3);
37620 if (PyErr_Occurred()) SWIG_fail;
37621 }
37622 {
37623 PyThreadState* __tstate = wxPyBeginAllowThreads();
37624 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
37625
37626 wxPyEndAllowThreads(__tstate);
37627 if (PyErr_Occurred()) SWIG_fail;
37628 }
37629 Py_INCREF(Py_None); resultobj = Py_None;
37630 return resultobj;
37631 fail:
37632 return NULL;
37633 }
37634
37635
37636 static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
37637 PyObject *resultobj;
37638 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37639 int arg2 ;
37640 PyObject * obj0 = 0 ;
37641 PyObject * obj1 = 0 ;
37642 char *kwnames[] = {
37643 (char *) "self",(char *) "val", NULL
37644 };
37645
37646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
37647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37648 {
37649 arg2 = (int) SWIG_PyObj_AsInt(obj1);
37650 if (PyErr_Occurred()) SWIG_fail;
37651 }
37652 {
37653 PyThreadState* __tstate = wxPyBeginAllowThreads();
37654 (arg1)->Absolute(arg2);
37655
37656 wxPyEndAllowThreads(__tstate);
37657 if (PyErr_Occurred()) SWIG_fail;
37658 }
37659 Py_INCREF(Py_None); resultobj = Py_None;
37660 return resultobj;
37661 fail:
37662 return NULL;
37663 }
37664
37665
37666 static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
37667 PyObject *resultobj;
37668 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37669 PyObject * obj0 = 0 ;
37670 char *kwnames[] = {
37671 (char *) "self", NULL
37672 };
37673
37674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
37675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37676 {
37677 PyThreadState* __tstate = wxPyBeginAllowThreads();
37678 (arg1)->Unconstrained();
37679
37680 wxPyEndAllowThreads(__tstate);
37681 if (PyErr_Occurred()) SWIG_fail;
37682 }
37683 Py_INCREF(Py_None); resultobj = Py_None;
37684 return resultobj;
37685 fail:
37686 return NULL;
37687 }
37688
37689
37690 static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj;
37692 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37693 PyObject * obj0 = 0 ;
37694 char *kwnames[] = {
37695 (char *) "self", NULL
37696 };
37697
37698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
37699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37700 {
37701 PyThreadState* __tstate = wxPyBeginAllowThreads();
37702 (arg1)->AsIs();
37703
37704 wxPyEndAllowThreads(__tstate);
37705 if (PyErr_Occurred()) SWIG_fail;
37706 }
37707 Py_INCREF(Py_None); resultobj = Py_None;
37708 return resultobj;
37709 fail:
37710 return NULL;
37711 }
37712
37713
37714 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37715 PyObject *resultobj;
37716 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37717 wxWindow *result;
37718 PyObject * obj0 = 0 ;
37719 char *kwnames[] = {
37720 (char *) "self", NULL
37721 };
37722
37723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
37724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37725 {
37726 PyThreadState* __tstate = wxPyBeginAllowThreads();
37727 result = (wxWindow *)(arg1)->GetOtherWindow();
37728
37729 wxPyEndAllowThreads(__tstate);
37730 if (PyErr_Occurred()) SWIG_fail;
37731 }
37732 {
37733 resultobj = wxPyMake_wxObject(result);
37734 }
37735 return resultobj;
37736 fail:
37737 return NULL;
37738 }
37739
37740
37741 static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
37742 PyObject *resultobj;
37743 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37744 int result;
37745 PyObject * obj0 = 0 ;
37746 char *kwnames[] = {
37747 (char *) "self", NULL
37748 };
37749
37750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
37751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37752 {
37753 PyThreadState* __tstate = wxPyBeginAllowThreads();
37754 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
37755
37756 wxPyEndAllowThreads(__tstate);
37757 if (PyErr_Occurred()) SWIG_fail;
37758 }
37759 resultobj = SWIG_PyObj_FromInt((int)result);
37760 return resultobj;
37761 fail:
37762 return NULL;
37763 }
37764
37765
37766 static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
37767 PyObject *resultobj;
37768 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37769 int arg2 ;
37770 PyObject * obj0 = 0 ;
37771 PyObject * obj1 = 0 ;
37772 char *kwnames[] = {
37773 (char *) "self",(char *) "which", NULL
37774 };
37775
37776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
37777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37778 {
37779 arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1);
37780 if (PyErr_Occurred()) SWIG_fail;
37781 }
37782 {
37783 PyThreadState* __tstate = wxPyBeginAllowThreads();
37784 (arg1)->SetEdge((wxEdge )arg2);
37785
37786 wxPyEndAllowThreads(__tstate);
37787 if (PyErr_Occurred()) SWIG_fail;
37788 }
37789 Py_INCREF(Py_None); resultobj = Py_None;
37790 return resultobj;
37791 fail:
37792 return NULL;
37793 }
37794
37795
37796 static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
37797 PyObject *resultobj;
37798 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37799 int arg2 ;
37800 PyObject * obj0 = 0 ;
37801 PyObject * obj1 = 0 ;
37802 char *kwnames[] = {
37803 (char *) "self",(char *) "v", NULL
37804 };
37805
37806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
37807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37808 {
37809 arg2 = (int) SWIG_PyObj_AsInt(obj1);
37810 if (PyErr_Occurred()) SWIG_fail;
37811 }
37812 {
37813 PyThreadState* __tstate = wxPyBeginAllowThreads();
37814 (arg1)->SetValue(arg2);
37815
37816 wxPyEndAllowThreads(__tstate);
37817 if (PyErr_Occurred()) SWIG_fail;
37818 }
37819 Py_INCREF(Py_None); resultobj = Py_None;
37820 return resultobj;
37821 fail:
37822 return NULL;
37823 }
37824
37825
37826 static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
37827 PyObject *resultobj;
37828 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37829 int result;
37830 PyObject * obj0 = 0 ;
37831 char *kwnames[] = {
37832 (char *) "self", NULL
37833 };
37834
37835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
37836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37837 {
37838 PyThreadState* __tstate = wxPyBeginAllowThreads();
37839 result = (int)(arg1)->GetMargin();
37840
37841 wxPyEndAllowThreads(__tstate);
37842 if (PyErr_Occurred()) SWIG_fail;
37843 }
37844 resultobj = SWIG_PyObj_FromInt((int)result);
37845 return resultobj;
37846 fail:
37847 return NULL;
37848 }
37849
37850
37851 static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
37852 PyObject *resultobj;
37853 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37854 int arg2 ;
37855 PyObject * obj0 = 0 ;
37856 PyObject * obj1 = 0 ;
37857 char *kwnames[] = {
37858 (char *) "self",(char *) "m", NULL
37859 };
37860
37861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
37862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37863 {
37864 arg2 = (int) SWIG_PyObj_AsInt(obj1);
37865 if (PyErr_Occurred()) SWIG_fail;
37866 }
37867 {
37868 PyThreadState* __tstate = wxPyBeginAllowThreads();
37869 (arg1)->SetMargin(arg2);
37870
37871 wxPyEndAllowThreads(__tstate);
37872 if (PyErr_Occurred()) SWIG_fail;
37873 }
37874 Py_INCREF(Py_None); resultobj = Py_None;
37875 return resultobj;
37876 fail:
37877 return NULL;
37878 }
37879
37880
37881 static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
37882 PyObject *resultobj;
37883 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37884 int result;
37885 PyObject * obj0 = 0 ;
37886 char *kwnames[] = {
37887 (char *) "self", NULL
37888 };
37889
37890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
37891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37892 {
37893 PyThreadState* __tstate = wxPyBeginAllowThreads();
37894 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
37895
37896 wxPyEndAllowThreads(__tstate);
37897 if (PyErr_Occurred()) SWIG_fail;
37898 }
37899 resultobj = SWIG_PyObj_FromInt((int)result);
37900 return resultobj;
37901 fail:
37902 return NULL;
37903 }
37904
37905
37906 static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
37907 PyObject *resultobj;
37908 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37909 int result;
37910 PyObject * obj0 = 0 ;
37911 char *kwnames[] = {
37912 (char *) "self", NULL
37913 };
37914
37915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
37916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37917 {
37918 PyThreadState* __tstate = wxPyBeginAllowThreads();
37919 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
37920
37921 wxPyEndAllowThreads(__tstate);
37922 if (PyErr_Occurred()) SWIG_fail;
37923 }
37924 resultobj = SWIG_PyObj_FromInt((int)result);
37925 return resultobj;
37926 fail:
37927 return NULL;
37928 }
37929
37930
37931 static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
37932 PyObject *resultobj;
37933 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37934 int result;
37935 PyObject * obj0 = 0 ;
37936 char *kwnames[] = {
37937 (char *) "self", NULL
37938 };
37939
37940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
37941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37942 {
37943 PyThreadState* __tstate = wxPyBeginAllowThreads();
37944 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
37945
37946 wxPyEndAllowThreads(__tstate);
37947 if (PyErr_Occurred()) SWIG_fail;
37948 }
37949 resultobj = SWIG_PyObj_FromInt((int)result);
37950 return resultobj;
37951 fail:
37952 return NULL;
37953 }
37954
37955
37956 static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
37957 PyObject *resultobj;
37958 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37959 bool result;
37960 PyObject * obj0 = 0 ;
37961 char *kwnames[] = {
37962 (char *) "self", NULL
37963 };
37964
37965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
37966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37967 {
37968 PyThreadState* __tstate = wxPyBeginAllowThreads();
37969 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
37970
37971 wxPyEndAllowThreads(__tstate);
37972 if (PyErr_Occurred()) SWIG_fail;
37973 }
37974 resultobj = SWIG_PyObj_FromBool((bool)result);
37975 return resultobj;
37976 fail:
37977 return NULL;
37978 }
37979
37980
37981 static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
37982 PyObject *resultobj;
37983 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37984 bool arg2 ;
37985 PyObject * obj0 = 0 ;
37986 PyObject * obj1 = 0 ;
37987 char *kwnames[] = {
37988 (char *) "self",(char *) "d", NULL
37989 };
37990
37991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
37992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37993 {
37994 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
37995 if (PyErr_Occurred()) SWIG_fail;
37996 }
37997 {
37998 PyThreadState* __tstate = wxPyBeginAllowThreads();
37999 (arg1)->SetDone(arg2);
38000
38001 wxPyEndAllowThreads(__tstate);
38002 if (PyErr_Occurred()) SWIG_fail;
38003 }
38004 Py_INCREF(Py_None); resultobj = Py_None;
38005 return resultobj;
38006 fail:
38007 return NULL;
38008 }
38009
38010
38011 static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
38012 PyObject *resultobj;
38013 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38014 int result;
38015 PyObject * obj0 = 0 ;
38016 char *kwnames[] = {
38017 (char *) "self", NULL
38018 };
38019
38020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
38021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38022 {
38023 PyThreadState* __tstate = wxPyBeginAllowThreads();
38024 result = (int)(arg1)->GetRelationship();
38025
38026 wxPyEndAllowThreads(__tstate);
38027 if (PyErr_Occurred()) SWIG_fail;
38028 }
38029 resultobj = SWIG_PyObj_FromInt((int)result);
38030 return resultobj;
38031 fail:
38032 return NULL;
38033 }
38034
38035
38036 static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
38037 PyObject *resultobj;
38038 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38039 int arg2 ;
38040 PyObject * obj0 = 0 ;
38041 PyObject * obj1 = 0 ;
38042 char *kwnames[] = {
38043 (char *) "self",(char *) "r", NULL
38044 };
38045
38046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
38047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38048 {
38049 arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1);
38050 if (PyErr_Occurred()) SWIG_fail;
38051 }
38052 {
38053 PyThreadState* __tstate = wxPyBeginAllowThreads();
38054 (arg1)->SetRelationship((wxRelationship )arg2);
38055
38056 wxPyEndAllowThreads(__tstate);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 }
38059 Py_INCREF(Py_None); resultobj = Py_None;
38060 return resultobj;
38061 fail:
38062 return NULL;
38063 }
38064
38065
38066 static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
38067 PyObject *resultobj;
38068 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38069 wxWindow *arg2 = (wxWindow *) 0 ;
38070 bool result;
38071 PyObject * obj0 = 0 ;
38072 PyObject * obj1 = 0 ;
38073 char *kwnames[] = {
38074 (char *) "self",(char *) "otherW", NULL
38075 };
38076
38077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
38078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38079 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38080 {
38081 PyThreadState* __tstate = wxPyBeginAllowThreads();
38082 result = (bool)(arg1)->ResetIfWin(arg2);
38083
38084 wxPyEndAllowThreads(__tstate);
38085 if (PyErr_Occurred()) SWIG_fail;
38086 }
38087 resultobj = SWIG_PyObj_FromBool((bool)result);
38088 return resultobj;
38089 fail:
38090 return NULL;
38091 }
38092
38093
38094 static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
38095 PyObject *resultobj;
38096 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38097 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
38098 wxWindow *arg3 = (wxWindow *) 0 ;
38099 bool result;
38100 PyObject * obj0 = 0 ;
38101 PyObject * obj1 = 0 ;
38102 PyObject * obj2 = 0 ;
38103 char *kwnames[] = {
38104 (char *) "self",(char *) "constraints",(char *) "win", NULL
38105 };
38106
38107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
38108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38109 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38110 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38111 {
38112 PyThreadState* __tstate = wxPyBeginAllowThreads();
38113 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
38114
38115 wxPyEndAllowThreads(__tstate);
38116 if (PyErr_Occurred()) SWIG_fail;
38117 }
38118 resultobj = SWIG_PyObj_FromBool((bool)result);
38119 return resultobj;
38120 fail:
38121 return NULL;
38122 }
38123
38124
38125 static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
38126 PyObject *resultobj;
38127 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38128 int arg2 ;
38129 wxWindow *arg3 = (wxWindow *) 0 ;
38130 wxWindow *arg4 = (wxWindow *) 0 ;
38131 int result;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 PyObject * obj2 = 0 ;
38135 PyObject * obj3 = 0 ;
38136 char *kwnames[] = {
38137 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
38138 };
38139
38140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
38141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38142 {
38143 arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1);
38144 if (PyErr_Occurred()) SWIG_fail;
38145 }
38146 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38147 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38148 {
38149 PyThreadState* __tstate = wxPyBeginAllowThreads();
38150 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
38151
38152 wxPyEndAllowThreads(__tstate);
38153 if (PyErr_Occurred()) SWIG_fail;
38154 }
38155 resultobj = SWIG_PyObj_FromInt((int)result);
38156 return resultobj;
38157 fail:
38158 return NULL;
38159 }
38160
38161
38162 static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
38163 PyObject *obj;
38164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38165 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
38166 Py_INCREF(obj);
38167 return Py_BuildValue((char *)"");
38168 }
38169 static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38170 PyObject *resultobj;
38171 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38172 wxIndividualLayoutConstraint *result;
38173 PyObject * obj0 = 0 ;
38174 char *kwnames[] = {
38175 (char *) "self", NULL
38176 };
38177
38178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
38179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38180 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
38181
38182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38183 return resultobj;
38184 fail:
38185 return NULL;
38186 }
38187
38188
38189 static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38190 PyObject *resultobj;
38191 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38192 wxIndividualLayoutConstraint *result;
38193 PyObject * obj0 = 0 ;
38194 char *kwnames[] = {
38195 (char *) "self", NULL
38196 };
38197
38198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
38199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38200 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
38201
38202 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38203 return resultobj;
38204 fail:
38205 return NULL;
38206 }
38207
38208
38209 static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38210 PyObject *resultobj;
38211 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38212 wxIndividualLayoutConstraint *result;
38213 PyObject * obj0 = 0 ;
38214 char *kwnames[] = {
38215 (char *) "self", NULL
38216 };
38217
38218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
38219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38220 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
38221
38222 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38223 return resultobj;
38224 fail:
38225 return NULL;
38226 }
38227
38228
38229 static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38230 PyObject *resultobj;
38231 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38232 wxIndividualLayoutConstraint *result;
38233 PyObject * obj0 = 0 ;
38234 char *kwnames[] = {
38235 (char *) "self", NULL
38236 };
38237
38238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
38239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38240 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
38241
38242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38243 return resultobj;
38244 fail:
38245 return NULL;
38246 }
38247
38248
38249 static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38250 PyObject *resultobj;
38251 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38252 wxIndividualLayoutConstraint *result;
38253 PyObject * obj0 = 0 ;
38254 char *kwnames[] = {
38255 (char *) "self", NULL
38256 };
38257
38258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
38259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38260 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
38261
38262 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38263 return resultobj;
38264 fail:
38265 return NULL;
38266 }
38267
38268
38269 static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38270 PyObject *resultobj;
38271 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38272 wxIndividualLayoutConstraint *result;
38273 PyObject * obj0 = 0 ;
38274 char *kwnames[] = {
38275 (char *) "self", NULL
38276 };
38277
38278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
38279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38280 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
38281
38282 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38283 return resultobj;
38284 fail:
38285 return NULL;
38286 }
38287
38288
38289 static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38290 PyObject *resultobj;
38291 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38292 wxIndividualLayoutConstraint *result;
38293 PyObject * obj0 = 0 ;
38294 char *kwnames[] = {
38295 (char *) "self", NULL
38296 };
38297
38298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
38299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38300 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
38301
38302 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38303 return resultobj;
38304 fail:
38305 return NULL;
38306 }
38307
38308
38309 static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38310 PyObject *resultobj;
38311 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38312 wxIndividualLayoutConstraint *result;
38313 PyObject * obj0 = 0 ;
38314 char *kwnames[] = {
38315 (char *) "self", NULL
38316 };
38317
38318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
38319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38320 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
38321
38322 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38323 return resultobj;
38324 fail:
38325 return NULL;
38326 }
38327
38328
38329 static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
38330 PyObject *resultobj;
38331 wxLayoutConstraints *result;
38332 char *kwnames[] = {
38333 NULL
38334 };
38335
38336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
38337 {
38338 PyThreadState* __tstate = wxPyBeginAllowThreads();
38339 result = (wxLayoutConstraints *)new wxLayoutConstraints();
38340
38341 wxPyEndAllowThreads(__tstate);
38342 if (PyErr_Occurred()) SWIG_fail;
38343 }
38344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1);
38345 return resultobj;
38346 fail:
38347 return NULL;
38348 }
38349
38350
38351 static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
38352 PyObject *resultobj;
38353 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38354 wxWindow *arg2 = (wxWindow *) 0 ;
38355 int *arg3 = (int *) 0 ;
38356 bool result;
38357 int temp3 ;
38358 PyObject * obj0 = 0 ;
38359 PyObject * obj1 = 0 ;
38360 char *kwnames[] = {
38361 (char *) "self",(char *) "win", NULL
38362 };
38363
38364 arg3 = &temp3;
38365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
38366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38368 {
38369 PyThreadState* __tstate = wxPyBeginAllowThreads();
38370 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
38371
38372 wxPyEndAllowThreads(__tstate);
38373 if (PyErr_Occurred()) SWIG_fail;
38374 }
38375 resultobj = SWIG_PyObj_FromBool((bool)result);
38376 {
38377 PyObject *o = PyInt_FromLong((long) (*arg3));
38378 resultobj = t_output_helper(resultobj,o);
38379 }
38380 return resultobj;
38381 fail:
38382 return NULL;
38383 }
38384
38385
38386 static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
38387 PyObject *resultobj;
38388 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38389 bool result;
38390 PyObject * obj0 = 0 ;
38391 char *kwnames[] = {
38392 (char *) "self", NULL
38393 };
38394
38395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
38396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38397 {
38398 PyThreadState* __tstate = wxPyBeginAllowThreads();
38399 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
38400
38401 wxPyEndAllowThreads(__tstate);
38402 if (PyErr_Occurred()) SWIG_fail;
38403 }
38404 resultobj = SWIG_PyObj_FromBool((bool)result);
38405 return resultobj;
38406 fail:
38407 return NULL;
38408 }
38409
38410
38411 static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
38412 PyObject *obj;
38413 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38414 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
38415 Py_INCREF(obj);
38416 return Py_BuildValue((char *)"");
38417 }
38418 static PyMethodDef SwigMethods[] = {
38419 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
38420 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
38421 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
38422 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
38423 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
38424 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
38425 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
38426 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
38427 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
38428 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
38429 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
38430 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
38431 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
38432 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
38433 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
38434 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
38435 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
38436 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
38437 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
38438 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
38439 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
38440 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
38441 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
38442 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
38443 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
38444 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
38445 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
38446 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
38447 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
38448 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
38449 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
38450 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
38451 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
38452 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
38453 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
38454 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
38455 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
38456 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
38457 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
38458 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
38459 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
38460 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
38461 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
38462 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
38463 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
38464 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
38465 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
38466 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
38467 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
38468 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
38469 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
38470 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
38471 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
38472 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
38473 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
38474 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
38475 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
38476 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
38477 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
38478 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
38479 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
38480 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
38481 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
38482 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
38483 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
38484 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
38485 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
38486 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
38487 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
38488 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
38489 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
38490 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
38491 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
38492 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
38493 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
38494 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
38495 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
38496 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
38497 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
38498 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
38499 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
38500 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
38501 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
38502 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
38503 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
38504 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
38505 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
38506 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
38507 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
38508 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
38509 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
38510 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
38511 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
38512 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
38513 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
38514 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
38515 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
38516 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
38517 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
38518 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
38519 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
38520 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
38521 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
38522 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
38523 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
38524 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
38525 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
38526 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
38527 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
38528 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
38529 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
38530 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
38531 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
38532 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
38533 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
38534 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
38535 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
38536 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
38537 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
38538 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
38539 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
38540 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
38541 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
38542 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
38543 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
38544 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
38545 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
38546 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
38547 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
38548 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
38549 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
38550 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
38551 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
38552 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
38553 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
38554 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
38555 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
38556 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
38557 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
38558 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
38559 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
38560 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
38561 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
38562 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
38563 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
38564 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
38565 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
38566 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
38567 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
38568 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
38569 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
38570 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
38571 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
38572 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
38573 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
38574 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
38575 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
38576 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
38577 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
38578 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
38579 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
38580 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
38581 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
38582 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
38583 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
38584 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
38585 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
38586 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
38587 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
38588 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
38589 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
38590 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
38591 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
38592 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
38593 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
38594 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
38595 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
38596 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
38597 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
38598 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
38599 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
38600 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
38601 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
38602 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
38603 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
38604 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
38605 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
38606 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
38607 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
38608 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
38609 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
38610 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
38611 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
38612 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
38613 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
38614 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
38615 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
38616 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
38617 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
38618 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
38619 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
38620 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
38621 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
38622 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
38623 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
38624 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
38625 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
38626 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
38627 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
38628 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
38629 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
38630 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
38631 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
38632 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
38633 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
38634 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
38635 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
38636 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
38637 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
38638 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
38639 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
38640 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
38641 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
38642 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
38643 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
38644 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
38645 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
38646 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
38647 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
38648 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
38649 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
38650 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
38651 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
38652 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
38653 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
38654 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
38655 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
38656 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
38657 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
38658 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
38659 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
38660 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
38661 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
38662 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
38663 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
38664 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
38665 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
38666 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
38667 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
38668 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
38669 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
38670 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
38671 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
38672 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
38673 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
38674 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
38675 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
38676 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
38677 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
38678 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
38679 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
38680 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
38681 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
38682 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
38683 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
38684 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
38685 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
38686 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
38687 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
38688 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
38689 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
38690 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
38691 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
38692 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
38693 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
38694 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
38695 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
38696 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
38697 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
38698 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
38699 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
38700 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
38701 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
38702 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
38703 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
38704 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
38705 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
38706 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
38707 { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
38708 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
38709 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
38710 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
38711 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
38712 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
38713 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
38714 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
38715 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
38716 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
38717 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
38718 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
38719 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
38720 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
38721 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
38722 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
38723 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
38724 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
38725 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
38726 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
38727 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
38728 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
38729 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
38730 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
38731 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
38732 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
38733 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
38734 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
38735 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
38736 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
38737 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
38738 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
38739 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
38740 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
38741 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
38742 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
38743 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
38744 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
38745 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
38746 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
38747 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
38748 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
38749 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
38750 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
38751 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
38752 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
38753 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
38754 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
38755 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
38756 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
38757 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
38758 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
38759 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
38760 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
38761 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
38762 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
38763 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
38764 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
38765 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
38766 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
38767 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
38768 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
38769 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
38770 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
38771 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
38772 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
38773 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
38774 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
38775 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
38776 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
38777 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
38778 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
38779 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
38780 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
38781 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
38782 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
38783 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
38784 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
38785 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
38786 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
38787 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38788 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
38789 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
38790 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
38791 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
38792 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
38793 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38794 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
38795 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
38796 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
38797 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
38798 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
38799 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
38800 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
38801 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
38802 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
38803 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
38804 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
38805 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
38806 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
38807 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
38808 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
38809 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
38810 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
38811 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
38812 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
38813 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
38814 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
38815 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
38816 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
38817 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
38818 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
38819 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
38820 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
38821 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
38822 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
38823 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
38824 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
38825 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38826 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
38827 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
38828 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
38829 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
38830 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
38831 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
38832 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
38833 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
38834 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
38835 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
38836 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
38837 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
38838 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
38839 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
38840 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
38841 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
38842 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
38843 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
38844 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
38845 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
38846 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
38847 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
38848 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
38849 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
38850 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
38851 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
38852 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
38853 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
38854 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
38855 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
38856 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
38857 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
38858 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
38859 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
38860 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
38861 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
38862 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
38863 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
38864 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
38865 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
38866 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
38867 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
38868 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
38869 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
38870 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
38871 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
38872 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
38873 { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS },
38874 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
38875 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
38876 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38877 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
38878 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
38879 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
38880 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
38881 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
38882 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
38883 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
38884 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
38885 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
38886 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
38887 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
38888 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
38889 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
38890 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
38891 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
38892 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
38893 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
38894 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
38895 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
38896 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
38897 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
38898 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
38899 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
38900 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
38901 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
38902 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
38903 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
38904 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
38905 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
38906 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
38907 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
38908 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
38909 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
38910 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
38911 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
38912 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38913 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
38914 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
38915 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
38916 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
38917 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
38918 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
38919 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
38920 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
38921 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
38922 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
38923 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
38924 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
38925 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
38926 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
38927 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
38928 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
38929 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
38930 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
38931 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
38932 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
38933 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
38934 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
38935 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
38936 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
38937 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
38938 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
38939 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
38940 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
38941 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
38942 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
38943 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
38944 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
38945 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
38946 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
38947 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
38948 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
38949 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
38950 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
38951 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
38952 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
38953 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
38954 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
38955 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
38956 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
38957 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
38958 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
38959 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
38960 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
38961 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
38962 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
38963 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
38964 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
38965 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
38966 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
38967 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
38968 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
38969 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
38970 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
38971 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
38972 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
38973 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
38974 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
38975 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
38976 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
38977 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
38978 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
38979 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
38980 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
38981 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
38982 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
38983 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
38984 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
38985 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
38986 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
38987 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
38988 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
38989 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
38990 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
38991 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
38992 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
38993 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
38994 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
38995 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
38996 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
38997 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
38998 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
38999 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
39000 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
39001 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
39002 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
39003 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
39004 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
39005 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
39006 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
39007 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39008 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
39009 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
39010 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39011 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
39012 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
39013 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39014 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
39015 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
39016 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
39017 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
39018 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
39019 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
39020 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
39021 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
39022 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
39023 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
39024 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
39025 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
39026 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
39027 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
39028 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
39029 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
39030 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
39031 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
39032 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
39033 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
39034 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
39035 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39036 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
39037 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
39038 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
39039 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
39040 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
39041 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
39042 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
39043 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
39044 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
39045 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
39046 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
39047 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
39048 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
39049 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
39050 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
39051 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
39052 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
39053 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
39054 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
39055 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
39056 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
39057 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
39058 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
39059 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
39060 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
39061 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
39062 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
39063 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
39064 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
39065 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
39066 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
39067 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
39068 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
39069 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
39070 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
39071 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
39072 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
39073 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
39074 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
39075 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
39076 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
39077 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
39078 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
39079 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
39080 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
39081 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
39082 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
39083 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
39084 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
39085 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
39086 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
39087 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
39088 { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS },
39089 { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS },
39090 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
39091 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
39092 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
39093 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
39094 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39095 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39096 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
39097 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
39098 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
39099 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
39100 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
39101 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
39102 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
39103 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
39104 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
39105 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
39106 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
39107 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
39108 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
39109 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
39110 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
39111 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
39112 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
39113 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
39114 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
39115 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
39116 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
39117 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
39118 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
39119 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
39120 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
39121 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
39122 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
39123 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
39124 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
39125 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
39126 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
39127 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
39128 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
39129 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
39130 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
39131 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
39132 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
39133 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
39134 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
39135 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
39136 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
39137 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
39138 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
39139 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
39140 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
39141 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
39142 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
39143 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
39144 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
39145 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
39146 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
39147 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
39148 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
39149 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
39150 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
39151 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
39152 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
39153 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
39154 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
39155 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
39156 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
39157 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
39158 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
39159 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
39160 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
39161 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
39162 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39163 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
39164 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
39165 { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
39166 { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS },
39167 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
39168 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
39169 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
39170 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
39171 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
39172 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
39173 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
39174 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
39175 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
39176 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
39177 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
39178 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
39179 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
39180 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
39181 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
39182 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
39183 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
39184 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
39185 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
39186 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
39187 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
39188 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
39189 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
39190 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
39191 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
39192 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
39193 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
39194 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
39195 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
39196 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
39197 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
39198 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
39199 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39200 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39201 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
39202 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
39203 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
39204 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
39205 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
39206 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
39207 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
39208 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
39209 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
39210 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
39211 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
39212 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
39213 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
39214 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
39215 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
39216 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
39217 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
39218 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
39219 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
39220 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
39221 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
39222 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
39223 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
39224 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
39225 { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS },
39226 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39227 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
39228 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39229 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
39230 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
39231 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
39232 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
39233 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
39234 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
39235 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
39236 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
39237 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
39238 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
39239 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
39240 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
39241 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
39242 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
39243 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
39244 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
39245 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
39246 { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS },
39247 { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS },
39248 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
39249 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
39250 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
39251 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
39252 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
39253 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
39254 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
39255 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
39256 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
39257 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
39258 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
39259 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
39260 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
39261 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
39262 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
39263 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
39264 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
39265 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
39266 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
39267 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
39268 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
39269 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
39270 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
39271 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
39272 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
39273 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
39274 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
39275 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
39276 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
39277 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
39278 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
39279 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
39280 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
39281 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
39282 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
39283 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
39284 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
39285 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
39286 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
39287 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
39288 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
39289 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
39290 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
39291 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
39292 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
39293 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
39294 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
39295 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
39296 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
39297 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
39298 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
39299 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39300 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
39301 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
39302 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
39303 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
39304 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
39305 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
39306 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
39307 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
39308 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
39309 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
39310 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
39311 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
39312 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
39313 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
39314 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
39315 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
39316 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
39317 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
39318 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
39319 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
39320 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
39321 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
39322 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
39323 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
39324 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
39325 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
39326 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
39327 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
39328 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
39329 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
39330 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
39331 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
39332 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
39333 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
39334 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39335 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
39336 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
39337 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
39338 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
39339 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
39340 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
39341 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
39342 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
39343 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
39344 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
39345 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
39346 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
39347 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
39348 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
39349 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
39350 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
39351 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
39352 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
39353 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
39354 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
39355 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
39356 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
39357 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
39358 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
39359 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
39360 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
39361 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
39362 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
39363 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
39364 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
39365 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
39366 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
39367 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
39368 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
39369 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
39370 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
39371 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
39372 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
39373 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39374 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
39375 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
39376 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
39377 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
39378 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
39379 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
39380 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
39381 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
39382 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
39383 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
39384 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
39385 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
39386 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
39387 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
39388 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
39389 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
39390 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
39391 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
39392 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
39393 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
39394 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
39395 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
39396 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
39397 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
39398 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
39399 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
39400 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39401 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
39402 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
39403 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
39404 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
39405 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
39406 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
39407 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
39408 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
39409 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
39410 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
39411 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
39412 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
39413 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
39414 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
39415 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
39416 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
39417 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
39418 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
39419 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
39420 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
39421 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
39422 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
39423 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
39424 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
39425 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
39426 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
39427 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
39428 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
39429 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
39430 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
39431 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
39432 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
39433 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
39434 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
39435 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
39436 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
39437 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
39438 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
39439 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
39440 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
39441 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
39442 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
39443 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
39444 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
39445 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
39446 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
39447 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
39448 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
39449 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
39450 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
39451 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
39452 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
39453 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
39454 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
39455 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
39456 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
39457 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
39458 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
39459 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
39460 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
39461 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
39462 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
39463 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
39464 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
39465 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
39466 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
39467 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
39468 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
39469 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
39470 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
39471 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
39472 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
39473 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
39474 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
39475 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
39476 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
39477 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
39478 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
39479 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
39480 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
39481 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
39482 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
39483 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
39484 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
39485 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
39486 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39487 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39488 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
39489 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
39490 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
39491 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
39492 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
39493 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
39494 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
39495 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
39496 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
39497 { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS },
39498 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
39499 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
39500 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
39501 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
39502 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39503 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
39504 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
39505 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
39506 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
39507 { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39508 { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39509 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
39510 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
39511 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
39512 { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39513 { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39514 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
39515 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
39516 { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39517 { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39518 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
39519 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
39520 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
39521 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
39522 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
39523 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
39524 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
39525 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
39526 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
39527 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
39528 { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39529 { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39530 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
39531 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
39532 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
39533 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
39534 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
39535 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
39536 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
39537 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
39538 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
39539 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
39540 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
39541 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
39542 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
39543 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
39544 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
39545 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
39546 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
39547 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
39548 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
39549 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
39550 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
39551 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
39552 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
39553 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
39554 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
39555 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
39556 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
39557 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
39558 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
39559 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
39560 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
39561 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
39562 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
39563 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
39564 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
39565 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
39566 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
39567 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
39568 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
39569 { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS },
39570 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
39571 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
39572 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
39573 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
39574 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
39575 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
39576 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
39577 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
39578 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
39579 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
39580 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
39581 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
39582 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
39583 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
39584 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
39585 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
39586 { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS },
39587 { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39588 { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39589 { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS },
39590 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
39591 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
39592 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
39593 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
39594 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
39595 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
39596 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
39597 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
39598 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
39599 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
39600 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
39601 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
39602 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
39603 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
39604 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
39605 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
39606 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
39607 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
39608 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
39609 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
39610 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
39611 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
39612 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
39613 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
39614 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
39615 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
39616 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
39617 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
39618 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
39619 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
39620 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
39621 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
39622 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
39623 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
39624 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
39625 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
39626 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
39627 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
39628 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
39629 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
39630 { NULL, NULL }
39631 };
39632
39633
39634 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39635
39636 static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
39637 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
39638 }
39639 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
39640 return (void *)((wxSizer *) ((wxBoxSizer *) x));
39641 }
39642 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
39643 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
39644 }
39645 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
39646 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39647 }
39648 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
39649 return (void *)((wxSizer *) ((wxGridSizer *) x));
39650 }
39651 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
39652 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
39653 }
39654 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
39655 return (void *)((wxSizer *) ((wxPySizer *) x));
39656 }
39657 static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
39658 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
39659 }
39660 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
39661 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
39662 }
39663 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
39664 return (void *)((wxEvent *) ((wxMenuEvent *) x));
39665 }
39666 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
39667 return (void *)((wxEvent *) ((wxCloseEvent *) x));
39668 }
39669 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
39670 return (void *)((wxEvent *) ((wxMouseEvent *) x));
39671 }
39672 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
39673 return (void *)((wxEvent *) ((wxEraseEvent *) x));
39674 }
39675 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
39676 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
39677 }
39678 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
39679 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
39680 }
39681 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
39682 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
39683 }
39684 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
39685 return (void *)((wxEvent *) ((wxPyEvent *) x));
39686 }
39687 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
39688 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
39689 }
39690 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
39691 return (void *)((wxEvent *) ((wxIdleEvent *) x));
39692 }
39693 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
39694 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
39695 }
39696 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
39697 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
39698 }
39699 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
39700 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
39701 }
39702 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
39703 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
39704 }
39705 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
39706 return (void *)((wxEvent *) ((wxActivateEvent *) x));
39707 }
39708 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
39709 return (void *)((wxEvent *) ((wxSizeEvent *) x));
39710 }
39711 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
39712 return (void *)((wxEvent *) ((wxMoveEvent *) x));
39713 }
39714 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
39715 return (void *)((wxEvent *) ((wxPaintEvent *) x));
39716 }
39717 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
39718 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
39719 }
39720 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
39721 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
39722 }
39723 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
39724 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
39725 }
39726 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
39727 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
39728 }
39729 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
39730 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39731 }
39732 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
39733 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
39734 }
39735 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
39736 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
39737 }
39738 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
39739 return (void *)((wxEvent *) ((wxFocusEvent *) x));
39740 }
39741 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
39742 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
39743 }
39744 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
39745 return (void *)((wxEvent *) ((wxShowEvent *) x));
39746 }
39747 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
39748 return (void *)((wxEvent *) ((wxCommandEvent *) x));
39749 }
39750 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
39751 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
39752 }
39753 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
39754 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39755 }
39756 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
39757 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
39758 }
39759 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
39760 return (void *)((wxEvent *) ((wxKeyEvent *) x));
39761 }
39762 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
39763 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
39764 }
39765 static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
39766 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
39767 }
39768 static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
39769 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
39770 }
39771 static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
39772 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
39773 }
39774 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
39775 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
39776 }
39777 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
39778 return (void *)((wxControl *) ((wxControlWithItems *) x));
39779 }
39780 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
39781 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
39782 }
39783 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
39784 return (void *)((wxEvtHandler *) ((wxWindow *) x));
39785 }
39786 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
39787 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39788 }
39789 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
39790 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
39791 }
39792 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
39793 return (void *)((wxEvtHandler *) ((wxValidator *) x));
39794 }
39795 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
39796 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
39797 }
39798 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
39799 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
39800 }
39801 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
39802 return (void *)((wxEvtHandler *) ((wxMenu *) x));
39803 }
39804 static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
39805 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
39806 }
39807 static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
39808 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
39809 }
39810 static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
39811 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
39812 }
39813 static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
39814 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
39815 }
39816 static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
39817 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
39818 }
39819 static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
39820 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39821 }
39822 static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
39823 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
39824 }
39825 static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
39826 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
39827 }
39828 static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
39829 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39830 }
39831 static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
39832 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39833 }
39834 static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
39835 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
39836 }
39837 static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
39838 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
39839 }
39840 static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
39841 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
39842 }
39843 static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
39844 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
39845 }
39846 static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
39847 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
39848 }
39849 static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
39850 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
39851 }
39852 static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
39853 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
39854 }
39855 static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
39856 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
39857 }
39858 static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
39859 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
39860 }
39861 static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
39862 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
39863 }
39864 static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
39865 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
39866 }
39867 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39868 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39869 }
39870 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39871 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39872 }
39873 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39874 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39875 }
39876 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39877 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39878 }
39879 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39880 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39881 }
39882 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39883 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39884 }
39885 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39886 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39887 }
39888 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39889 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39890 }
39891 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39892 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39893 }
39894 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39895 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39896 }
39897 static void *_p_wxSizerTo_p_wxObject(void *x) {
39898 return (void *)((wxObject *) ((wxSizer *) x));
39899 }
39900 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39901 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39902 }
39903 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39904 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39905 }
39906 static void *_p_wxMenuTo_p_wxObject(void *x) {
39907 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39908 }
39909 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39910 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39911 }
39912 static void *_p_wxImageTo_p_wxObject(void *x) {
39913 return (void *)((wxObject *) ((wxImage *) x));
39914 }
39915 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39916 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39917 }
39918 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39919 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39920 }
39921 static void *_p_wxPyEventTo_p_wxObject(void *x) {
39922 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39923 }
39924 static void *_p_wxWindowTo_p_wxObject(void *x) {
39925 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39926 }
39927 static void *_p_wxControlTo_p_wxObject(void *x) {
39928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39929 }
39930 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39931 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39932 }
39933 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39934 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39935 }
39936 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39937 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39938 }
39939 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39940 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39941 }
39942 static void *_p_wxEventTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) ((wxEvent *) x));
39944 }
39945 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39947 }
39948 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39950 }
39951 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39953 }
39954 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39955 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39956 }
39957 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39959 }
39960 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39961 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39962 }
39963 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39965 }
39966 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39968 }
39969 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39971 }
39972 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) ((wxEvtHandler *) x));
39974 }
39975 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39977 }
39978 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) ((wxImageHandler *) x));
39980 }
39981 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39983 }
39984 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39986 }
39987 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39989 }
39990 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39992 }
39993 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39994 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39995 }
39996 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39998 }
39999 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40001 }
40002 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40004 }
40005 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40007 }
40008 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40010 }
40011 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40013 }
40014 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40016 }
40017 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40018 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40019 }
40020 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40022 }
40023 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40024 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40025 }
40026 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40028 }
40029 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40031 }
40032 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40034 }
40035 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) ((wxFileSystem *) x));
40037 }
40038 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40040 }
40041 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40043 }
40044 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40046 }
40047 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) ((wxSizerItem *) x));
40049 }
40050 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40052 }
40053 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40055 }
40056 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) ((wxFSFile *) x));
40058 }
40059 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40061 }
40062 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40064 }
40065 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40066 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40067 }
40068 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40069 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40070 }
40071 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40072 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40073 }
40074 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40075 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40076 }
40077 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40078 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40079 }
40080 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40081 return (void *)((wxObject *) ((wxMenuItem *) x));
40082 }
40083 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40084 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40085 }
40086 static void *_p_wxControlTo_p_wxWindow(void *x) {
40087 return (void *)((wxWindow *) ((wxControl *) x));
40088 }
40089 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40090 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40091 }
40092 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40093 return (void *)((wxWindow *) ((wxMenuBar *) x));
40094 }
40095 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
40096 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
40097 }
40098 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
40099 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
40100 }
40101 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
40102 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
40103 }
40104 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
40105 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
40106 }
40107 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
40108 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40109 }
40110 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
40111 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
40112 }
40113 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
40114 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
40115 }
40116 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
40117 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
40118 }
40119 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
40120 return (void *)((wxValidator *) ((wxPyValidator *) x));
40121 }
40122 static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}};
40123 static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}};
40124 static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}};
40125 static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}};
40126 static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}};
40127 static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}};
40128 static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}};
40129 static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}};
40130 static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}};
40131 static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}};
40132 static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}};
40133 static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}};
40134 static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}};
40135 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
40136 static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}};
40137 static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}};
40138 static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}};
40139 static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}};
40140 static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}};
40141 static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}};
40142 static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}};
40143 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}};
40144 static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}};
40145 static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}};
40146 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
40147 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
40148 static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}};
40149 static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}};
40150 static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}};
40151 static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}};
40152 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
40153 static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}};
40154 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
40155 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
40156 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
40157 static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}};
40158 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}};
40159 static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}};
40160 static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}};
40161 static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}};
40162 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
40163 static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}};
40164 static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}};
40165 static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}};
40166 static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}};
40167 static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}};
40168 static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}};
40169 static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}};
40170 static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}};
40171 static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}};
40172 static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}};
40173 static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}};
40174 static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}};
40175 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
40176 static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}};
40177 static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}};
40178 static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}};
40179 static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}};
40180 static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}};
40181 static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}};
40182 static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}};
40183 static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}};
40184 static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}};
40185 static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}};
40186 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}};
40187 static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}};
40188 static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}};
40189 static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}};
40190 static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}};
40191 static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}};
40192 static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}};
40193 static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}};
40194 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
40195 static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}};
40196 static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}};
40197 static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}};
40198 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
40199 static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}};
40200 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
40201 static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
40202 static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}};
40203 static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}};
40204 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
40205 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
40206 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
40207 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
40208 static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}};
40209 static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
40210 static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
40211 static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
40212 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
40213 static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}};
40214 static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}};
40215 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
40216 static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}};
40217 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
40218 static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
40219 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
40220 static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}};
40221 static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}};
40222 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
40223 static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}};
40224 static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}};
40225 static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}};
40226 static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}};
40227 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}};
40228 static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}};
40229 static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}};
40230 static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}};
40231 static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}};
40232 static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}};
40233 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}};
40234 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
40235 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}};
40236 static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}};
40237
40238 static swig_type_info *swig_types_initial[] = {
40239 _swigt__p_wxLayoutConstraints,
40240 _swigt__p_wxRealPoint,
40241 _swigt__p_wxSizerItem,
40242 _swigt__p_wxGBSizerItem,
40243 _swigt__p_wxScrollEvent,
40244 _swigt__p_wxIndividualLayoutConstraint,
40245 _swigt__p_wxSizer,
40246 _swigt__p_wxBoxSizer,
40247 _swigt__p_wxStaticBoxSizer,
40248 _swigt__p_wxGridBagSizer,
40249 _swigt__p_wxAcceleratorEntry,
40250 _swigt__p_wxUpdateUIEvent,
40251 _swigt__p_wxMenu,
40252 _swigt__p_wxEvent,
40253 _swigt__p_wxGridSizer,
40254 _swigt__p_wxFlexGridSizer,
40255 _swigt__p_wxInitDialogEvent,
40256 _swigt__p_wxItemContainer,
40257 _swigt__p_wxNcPaintEvent,
40258 _swigt__p_wxPaintEvent,
40259 _swigt__p_wxSysColourChangedEvent,
40260 _swigt__p_wxMouseCaptureChangedEvent,
40261 _swigt__p_wxDisplayChangedEvent,
40262 _swigt__p_wxPaletteChangedEvent,
40263 _swigt__p_wxControl,
40264 _swigt__p_wxFont,
40265 _swigt__p_wxMenuBarBase,
40266 _swigt__p_wxSetCursorEvent,
40267 _swigt__p_wxFSFile,
40268 _swigt__p_wxCaret,
40269 _swigt__p_wxRegion,
40270 _swigt__p_wxPoint2D,
40271 _swigt__p_int,
40272 _swigt__p_wxSize,
40273 _swigt__p_wxDC,
40274 _swigt__p_wxPySizer,
40275 _swigt__p_wxNotifyEvent,
40276 _swigt__p_wxPyEvent,
40277 _swigt__p_wxPropagationDisabler,
40278 _swigt__p_wxAppTraits,
40279 _swigt__p_wxArrayString,
40280 _swigt__p_wxShowEvent,
40281 _swigt__p_wxToolTip,
40282 _swigt__p_wxIconizeEvent,
40283 _swigt__p_wxActivateEvent,
40284 _swigt__p_wxMoveEvent,
40285 _swigt__p_wxSizeEvent,
40286 _swigt__p_wxMaximizeEvent,
40287 _swigt__p_wxQueryNewPaletteEvent,
40288 _swigt__p_wxWindowCreateEvent,
40289 _swigt__p_wxIdleEvent,
40290 _swigt__p_wxMenuItem,
40291 _swigt__p_wxStaticBox,
40292 _swigt__p_long,
40293 _swigt__p_wxTIFFHandler,
40294 _swigt__p_wxXPMHandler,
40295 _swigt__p_wxPNMHandler,
40296 _swigt__p_wxJPEGHandler,
40297 _swigt__p_wxPCXHandler,
40298 _swigt__p_wxGIFHandler,
40299 _swigt__p_wxPNGHandler,
40300 _swigt__p_wxANIHandler,
40301 _swigt__p_wxMemoryFSHandler,
40302 _swigt__p_wxZipFSHandler,
40303 _swigt__p_wxEvtHandler,
40304 _swigt__p_wxCURHandler,
40305 _swigt__p_wxICOHandler,
40306 _swigt__p_wxBMPHandler,
40307 _swigt__p_wxImageHandler,
40308 _swigt__p_wxFileSystemHandler,
40309 _swigt__p_wxPyFileSystemHandler,
40310 _swigt__p_wxInternetFSHandler,
40311 _swigt__p_wxRect,
40312 _swigt__p_wxGBSpan,
40313 _swigt__p_wxPropagateOnce,
40314 _swigt__p_wxAcceleratorTable,
40315 _swigt__p_char,
40316 _swigt__p_wxGBPosition,
40317 _swigt__p_wxImage,
40318 _swigt__p_wxFrame,
40319 _swigt__p_wxScrollWinEvent,
40320 _swigt__p_wxImageHistogram,
40321 _swigt__p_byte,
40322 _swigt__p_wxPoint,
40323 _swigt__p_wxCursor,
40324 _swigt__p_wxObject,
40325 _swigt__p_wxPyInputStream,
40326 _swigt__p_wxOutputStream,
40327 _swigt__p_wxInputStream,
40328 _swigt__p_wxDateTime,
40329 _swigt__p_wxKeyEvent,
40330 _swigt__p_wxNavigationKeyEvent,
40331 _swigt__p_wxWindowDestroyEvent,
40332 _swigt__p_wxWindow,
40333 _swigt__p_wxMenuBar,
40334 _swigt__p_wxString,
40335 _swigt__p_wxFileSystem,
40336 _swigt__p_wxBitmap,
40337 _swigt__p_wxMenuEvent,
40338 _swigt__p_wxContextMenuEvent,
40339 _swigt__p_unsigned_char,
40340 _swigt__p_wxCloseEvent,
40341 _swigt__p_wxEraseEvent,
40342 _swigt__p_wxMouseEvent,
40343 _swigt__p_wxPyApp,
40344 _swigt__p_wxCommandEvent,
40345 _swigt__p_wxPyCommandEvent,
40346 _swigt__p_wxPyDropTarget,
40347 _swigt__p_wxChildFocusEvent,
40348 _swigt__p_wxFocusEvent,
40349 _swigt__p_wxDropFilesEvent,
40350 _swigt__p_wxControlWithItems,
40351 _swigt__p_wxColour,
40352 _swigt__p_wxValidator,
40353 _swigt__p_wxPyValidator,
40354 0
40355 };
40356
40357
40358 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40359
40360 static swig_const_info swig_const_table[] = {
40361 {0}};
40362
40363 #ifdef __cplusplus
40364 }
40365 #endif
40366
40367 #ifdef __cplusplus
40368 extern "C"
40369 #endif
40370 SWIGEXPORT(void) SWIG_init(void) {
40371 static PyObject *SWIG_globals = 0;
40372 static int typeinit = 0;
40373 PyObject *m, *d;
40374 int i;
40375 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
40376 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40377 d = PyModule_GetDict(m);
40378
40379 if (!typeinit) {
40380 for (i = 0; swig_types_initial[i]; i++) {
40381 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
40382 }
40383 typeinit = 1;
40384 }
40385 SWIG_InstallConstants(d,swig_const_table);
40386
40387
40388 #ifndef wxPyUSE_EXPORT
40389 // Make our API structure a CObject so other modules can import it
40390 // from this module.
40391 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
40392 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
40393 Py_XDECREF(cobj);
40394 #endif
40395
40396 PyDict_SetItemString(d,"NOT_FOUND", SWIG_PyObj_FromInt((int)wxNOT_FOUND));
40397 PyDict_SetItemString(d,"VSCROLL", SWIG_PyObj_FromInt((int)wxVSCROLL));
40398 PyDict_SetItemString(d,"HSCROLL", SWIG_PyObj_FromInt((int)wxHSCROLL));
40399 PyDict_SetItemString(d,"CAPTION", SWIG_PyObj_FromInt((int)wxCAPTION));
40400 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_PyObj_FromInt((int)wxDOUBLE_BORDER));
40401 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_PyObj_FromInt((int)wxSUNKEN_BORDER));
40402 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_PyObj_FromInt((int)wxRAISED_BORDER));
40403 PyDict_SetItemString(d,"BORDER", SWIG_PyObj_FromInt((int)wxBORDER));
40404 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_PyObj_FromInt((int)wxSIMPLE_BORDER));
40405 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_PyObj_FromInt((int)wxSTATIC_BORDER));
40406 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_PyObj_FromInt((int)wxTRANSPARENT_WINDOW));
40407 PyDict_SetItemString(d,"NO_BORDER", SWIG_PyObj_FromInt((int)wxNO_BORDER));
40408 PyDict_SetItemString(d,"USER_COLOURS", SWIG_PyObj_FromInt((int)wxUSER_COLOURS));
40409 PyDict_SetItemString(d,"NO_3D", SWIG_PyObj_FromInt((int)wxNO_3D));
40410 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_PyObj_FromInt((int)wxTAB_TRAVERSAL));
40411 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_PyObj_FromInt((int)wxWANTS_CHARS));
40412 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_PyObj_FromInt((int)wxPOPUP_WINDOW));
40413 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_PyObj_FromInt((int)wxCENTER_FRAME));
40414 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTRE_ON_SCREEN));
40415 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTER_ON_SCREEN));
40416 PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_PyObj_FromInt((int)wxSTAY_ON_TOP));
40417 PyDict_SetItemString(d,"ICONIZE", SWIG_PyObj_FromInt((int)wxICONIZE));
40418 PyDict_SetItemString(d,"MINIMIZE", SWIG_PyObj_FromInt((int)wxMINIMIZE));
40419 PyDict_SetItemString(d,"MAXIMIZE", SWIG_PyObj_FromInt((int)wxMAXIMIZE));
40420 PyDict_SetItemString(d,"CLOSE_BOX", SWIG_PyObj_FromInt((int)wxCLOSE_BOX));
40421 PyDict_SetItemString(d,"THICK_FRAME", SWIG_PyObj_FromInt((int)wxTHICK_FRAME));
40422 PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_PyObj_FromInt((int)wxSYSTEM_MENU));
40423 PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMINIMIZE_BOX));
40424 PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMAXIMIZE_BOX));
40425 PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_HORIZ));
40426 PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_VERT));
40427 PyDict_SetItemString(d,"RESIZE_BOX", SWIG_PyObj_FromInt((int)wxRESIZE_BOX));
40428 PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_PyObj_FromInt((int)wxRESIZE_BORDER));
40429 PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_PyObj_FromInt((int)wxDIALOG_MODAL));
40430 PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_PyObj_FromInt((int)wxDIALOG_MODELESS));
40431 PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_PyObj_FromInt((int)wxDIALOG_NO_PARENT));
40432 PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_FRAME_STYLE));
40433 PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_DIALOG_STYLE));
40434 PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_PyObj_FromInt((int)wxFRAME_TOOL_WINDOW));
40435 PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_PyObj_FromInt((int)wxFRAME_FLOAT_ON_PARENT));
40436 PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_PyObj_FromInt((int)wxFRAME_NO_WINDOW_MENU));
40437 PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_PyObj_FromInt((int)wxFRAME_NO_TASKBAR));
40438 PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_PyObj_FromInt((int)wxFRAME_SHAPED));
40439 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_PyObj_FromInt((int)wxED_CLIENT_MARGIN));
40440 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_PyObj_FromInt((int)wxED_BUTTONS_BOTTOM));
40441 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_PyObj_FromInt((int)wxED_BUTTONS_RIGHT));
40442 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_PyObj_FromInt((int)wxED_STATIC_LINE));
40443 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxEXT_DIALOG_STYLE));
40444 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_PyObj_FromInt((int)wxCLIP_CHILDREN));
40445 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_PyObj_FromInt((int)wxCLIP_SIBLINGS));
40446 PyDict_SetItemString(d,"RETAINED", SWIG_PyObj_FromInt((int)wxRETAINED));
40447 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_PyObj_FromInt((int)wxBACKINGSTORE));
40448 PyDict_SetItemString(d,"COLOURED", SWIG_PyObj_FromInt((int)wxCOLOURED));
40449 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_PyObj_FromInt((int)wxFIXED_LENGTH));
40450 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_PyObj_FromInt((int)wxLB_NEEDED_SB));
40451 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_PyObj_FromInt((int)wxLB_ALWAYS_SB));
40452 PyDict_SetItemString(d,"LB_SORT", SWIG_PyObj_FromInt((int)wxLB_SORT));
40453 PyDict_SetItemString(d,"LB_SINGLE", SWIG_PyObj_FromInt((int)wxLB_SINGLE));
40454 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_PyObj_FromInt((int)wxLB_MULTIPLE));
40455 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_PyObj_FromInt((int)wxLB_EXTENDED));
40456 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_PyObj_FromInt((int)wxLB_OWNERDRAW));
40457 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_PyObj_FromInt((int)wxLB_HSCROLL));
40458 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxPROCESS_ENTER));
40459 PyDict_SetItemString(d,"PASSWORD", SWIG_PyObj_FromInt((int)wxPASSWORD));
40460 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_PyObj_FromInt((int)wxCB_SIMPLE));
40461 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_PyObj_FromInt((int)wxCB_DROPDOWN));
40462 PyDict_SetItemString(d,"CB_SORT", SWIG_PyObj_FromInt((int)wxCB_SORT));
40463 PyDict_SetItemString(d,"CB_READONLY", SWIG_PyObj_FromInt((int)wxCB_READONLY));
40464 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxRA_HORIZONTAL));
40465 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_PyObj_FromInt((int)wxRA_VERTICAL));
40466 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_ROWS));
40467 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_COLS));
40468 PyDict_SetItemString(d,"RB_GROUP", SWIG_PyObj_FromInt((int)wxRB_GROUP));
40469 PyDict_SetItemString(d,"RB_SINGLE", SWIG_PyObj_FromInt((int)wxRB_SINGLE));
40470 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSL_HORIZONTAL));
40471 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_PyObj_FromInt((int)wxSL_VERTICAL));
40472 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_PyObj_FromInt((int)wxSL_AUTOTICKS));
40473 PyDict_SetItemString(d,"SL_LABELS", SWIG_PyObj_FromInt((int)wxSL_LABELS));
40474 PyDict_SetItemString(d,"SL_LEFT", SWIG_PyObj_FromInt((int)wxSL_LEFT));
40475 PyDict_SetItemString(d,"SL_TOP", SWIG_PyObj_FromInt((int)wxSL_TOP));
40476 PyDict_SetItemString(d,"SL_RIGHT", SWIG_PyObj_FromInt((int)wxSL_RIGHT));
40477 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_PyObj_FromInt((int)wxSL_BOTTOM));
40478 PyDict_SetItemString(d,"SL_BOTH", SWIG_PyObj_FromInt((int)wxSL_BOTH));
40479 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_PyObj_FromInt((int)wxSL_SELRANGE));
40480 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSB_HORIZONTAL));
40481 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_PyObj_FromInt((int)wxSB_VERTICAL));
40482 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_PyObj_FromInt((int)wxST_SIZEGRIP));
40483 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_PyObj_FromInt((int)wxST_NO_AUTORESIZE));
40484 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_PyObj_FromInt((int)wxFLOOD_SURFACE));
40485 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_PyObj_FromInt((int)wxFLOOD_BORDER));
40486 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_PyObj_FromInt((int)wxODDEVEN_RULE));
40487 PyDict_SetItemString(d,"WINDING_RULE", SWIG_PyObj_FromInt((int)wxWINDING_RULE));
40488 PyDict_SetItemString(d,"TOOL_TOP", SWIG_PyObj_FromInt((int)wxTOOL_TOP));
40489 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_PyObj_FromInt((int)wxTOOL_BOTTOM));
40490 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_PyObj_FromInt((int)wxTOOL_LEFT));
40491 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_PyObj_FromInt((int)wxTOOL_RIGHT));
40492 PyDict_SetItemString(d,"OK", SWIG_PyObj_FromInt((int)wxOK));
40493 PyDict_SetItemString(d,"YES_NO", SWIG_PyObj_FromInt((int)wxYES_NO));
40494 PyDict_SetItemString(d,"CANCEL", SWIG_PyObj_FromInt((int)wxCANCEL));
40495 PyDict_SetItemString(d,"YES", SWIG_PyObj_FromInt((int)wxYES));
40496 PyDict_SetItemString(d,"NO", SWIG_PyObj_FromInt((int)wxNO));
40497 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_PyObj_FromInt((int)wxNO_DEFAULT));
40498 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_PyObj_FromInt((int)wxYES_DEFAULT));
40499 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_PyObj_FromInt((int)wxICON_EXCLAMATION));
40500 PyDict_SetItemString(d,"ICON_HAND", SWIG_PyObj_FromInt((int)wxICON_HAND));
40501 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_PyObj_FromInt((int)wxICON_QUESTION));
40502 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_PyObj_FromInt((int)wxICON_INFORMATION));
40503 PyDict_SetItemString(d,"ICON_STOP", SWIG_PyObj_FromInt((int)wxICON_STOP));
40504 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_PyObj_FromInt((int)wxICON_ASTERISK));
40505 PyDict_SetItemString(d,"ICON_MASK", SWIG_PyObj_FromInt((int)wxICON_MASK));
40506 PyDict_SetItemString(d,"ICON_WARNING", SWIG_PyObj_FromInt((int)wxICON_WARNING));
40507 PyDict_SetItemString(d,"ICON_ERROR", SWIG_PyObj_FromInt((int)wxICON_ERROR));
40508 PyDict_SetItemString(d,"FORWARD", SWIG_PyObj_FromInt((int)wxFORWARD));
40509 PyDict_SetItemString(d,"BACKWARD", SWIG_PyObj_FromInt((int)wxBACKWARD));
40510 PyDict_SetItemString(d,"RESET", SWIG_PyObj_FromInt((int)wxRESET));
40511 PyDict_SetItemString(d,"HELP", SWIG_PyObj_FromInt((int)wxHELP));
40512 PyDict_SetItemString(d,"MORE", SWIG_PyObj_FromInt((int)wxMORE));
40513 PyDict_SetItemString(d,"SETUP", SWIG_PyObj_FromInt((int)wxSETUP));
40514 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_WIDTH));
40515 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_HEIGHT));
40516 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_PyObj_FromInt((int)wxSIZE_AUTO));
40517 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_PyObj_FromInt((int)wxSIZE_USE_EXISTING));
40518 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_PyObj_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
40519 PyDict_SetItemString(d,"PORTRAIT", SWIG_PyObj_FromInt((int)wxPORTRAIT));
40520 PyDict_SetItemString(d,"LANDSCAPE", SWIG_PyObj_FromInt((int)wxLANDSCAPE));
40521 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_HIGH));
40522 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_MEDIUM));
40523 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_LOW));
40524 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_DRAFT));
40525 PyDict_SetItemString(d,"ID_ANY", SWIG_PyObj_FromInt((int)wxID_ANY));
40526 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_PyObj_FromInt((int)wxID_SEPARATOR));
40527 PyDict_SetItemString(d,"ID_LOWEST", SWIG_PyObj_FromInt((int)wxID_LOWEST));
40528 PyDict_SetItemString(d,"ID_OPEN", SWIG_PyObj_FromInt((int)wxID_OPEN));
40529 PyDict_SetItemString(d,"ID_CLOSE", SWIG_PyObj_FromInt((int)wxID_CLOSE));
40530 PyDict_SetItemString(d,"ID_NEW", SWIG_PyObj_FromInt((int)wxID_NEW));
40531 PyDict_SetItemString(d,"ID_SAVE", SWIG_PyObj_FromInt((int)wxID_SAVE));
40532 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_PyObj_FromInt((int)wxID_SAVEAS));
40533 PyDict_SetItemString(d,"ID_REVERT", SWIG_PyObj_FromInt((int)wxID_REVERT));
40534 PyDict_SetItemString(d,"ID_EXIT", SWIG_PyObj_FromInt((int)wxID_EXIT));
40535 PyDict_SetItemString(d,"ID_UNDO", SWIG_PyObj_FromInt((int)wxID_UNDO));
40536 PyDict_SetItemString(d,"ID_REDO", SWIG_PyObj_FromInt((int)wxID_REDO));
40537 PyDict_SetItemString(d,"ID_HELP", SWIG_PyObj_FromInt((int)wxID_HELP));
40538 PyDict_SetItemString(d,"ID_PRINT", SWIG_PyObj_FromInt((int)wxID_PRINT));
40539 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_PyObj_FromInt((int)wxID_PRINT_SETUP));
40540 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_PyObj_FromInt((int)wxID_PREVIEW));
40541 PyDict_SetItemString(d,"ID_ABOUT", SWIG_PyObj_FromInt((int)wxID_ABOUT));
40542 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_PyObj_FromInt((int)wxID_HELP_CONTENTS));
40543 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_PyObj_FromInt((int)wxID_HELP_COMMANDS));
40544 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_PyObj_FromInt((int)wxID_HELP_PROCEDURES));
40545 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_PyObj_FromInt((int)wxID_HELP_CONTEXT));
40546 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_PyObj_FromInt((int)wxID_CLOSE_ALL));
40547 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_PyObj_FromInt((int)wxID_PREFERENCES));
40548 PyDict_SetItemString(d,"ID_CUT", SWIG_PyObj_FromInt((int)wxID_CUT));
40549 PyDict_SetItemString(d,"ID_COPY", SWIG_PyObj_FromInt((int)wxID_COPY));
40550 PyDict_SetItemString(d,"ID_PASTE", SWIG_PyObj_FromInt((int)wxID_PASTE));
40551 PyDict_SetItemString(d,"ID_CLEAR", SWIG_PyObj_FromInt((int)wxID_CLEAR));
40552 PyDict_SetItemString(d,"ID_FIND", SWIG_PyObj_FromInt((int)wxID_FIND));
40553 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_PyObj_FromInt((int)wxID_DUPLICATE));
40554 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_PyObj_FromInt((int)wxID_SELECTALL));
40555 PyDict_SetItemString(d,"ID_DELETE", SWIG_PyObj_FromInt((int)wxID_DELETE));
40556 PyDict_SetItemString(d,"ID_REPLACE", SWIG_PyObj_FromInt((int)wxID_REPLACE));
40557 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_PyObj_FromInt((int)wxID_REPLACE_ALL));
40558 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_PyObj_FromInt((int)wxID_PROPERTIES));
40559 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_PyObj_FromInt((int)wxID_VIEW_DETAILS));
40560 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_LARGEICONS));
40561 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_SMALLICONS));
40562 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_PyObj_FromInt((int)wxID_VIEW_LIST));
40563 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTDATE));
40564 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTNAME));
40565 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTSIZE));
40566 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTTYPE));
40567 PyDict_SetItemString(d,"ID_FILE1", SWIG_PyObj_FromInt((int)wxID_FILE1));
40568 PyDict_SetItemString(d,"ID_FILE2", SWIG_PyObj_FromInt((int)wxID_FILE2));
40569 PyDict_SetItemString(d,"ID_FILE3", SWIG_PyObj_FromInt((int)wxID_FILE3));
40570 PyDict_SetItemString(d,"ID_FILE4", SWIG_PyObj_FromInt((int)wxID_FILE4));
40571 PyDict_SetItemString(d,"ID_FILE5", SWIG_PyObj_FromInt((int)wxID_FILE5));
40572 PyDict_SetItemString(d,"ID_FILE6", SWIG_PyObj_FromInt((int)wxID_FILE6));
40573 PyDict_SetItemString(d,"ID_FILE7", SWIG_PyObj_FromInt((int)wxID_FILE7));
40574 PyDict_SetItemString(d,"ID_FILE8", SWIG_PyObj_FromInt((int)wxID_FILE8));
40575 PyDict_SetItemString(d,"ID_FILE9", SWIG_PyObj_FromInt((int)wxID_FILE9));
40576 PyDict_SetItemString(d,"ID_OK", SWIG_PyObj_FromInt((int)wxID_OK));
40577 PyDict_SetItemString(d,"ID_CANCEL", SWIG_PyObj_FromInt((int)wxID_CANCEL));
40578 PyDict_SetItemString(d,"ID_APPLY", SWIG_PyObj_FromInt((int)wxID_APPLY));
40579 PyDict_SetItemString(d,"ID_YES", SWIG_PyObj_FromInt((int)wxID_YES));
40580 PyDict_SetItemString(d,"ID_NO", SWIG_PyObj_FromInt((int)wxID_NO));
40581 PyDict_SetItemString(d,"ID_STATIC", SWIG_PyObj_FromInt((int)wxID_STATIC));
40582 PyDict_SetItemString(d,"ID_FORWARD", SWIG_PyObj_FromInt((int)wxID_FORWARD));
40583 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_PyObj_FromInt((int)wxID_BACKWARD));
40584 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_PyObj_FromInt((int)wxID_DEFAULT));
40585 PyDict_SetItemString(d,"ID_MORE", SWIG_PyObj_FromInt((int)wxID_MORE));
40586 PyDict_SetItemString(d,"ID_SETUP", SWIG_PyObj_FromInt((int)wxID_SETUP));
40587 PyDict_SetItemString(d,"ID_RESET", SWIG_PyObj_FromInt((int)wxID_RESET));
40588 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_PyObj_FromInt((int)wxID_CONTEXT_HELP));
40589 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_PyObj_FromInt((int)wxID_YESTOALL));
40590 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_PyObj_FromInt((int)wxID_NOTOALL));
40591 PyDict_SetItemString(d,"ID_ABORT", SWIG_PyObj_FromInt((int)wxID_ABORT));
40592 PyDict_SetItemString(d,"ID_RETRY", SWIG_PyObj_FromInt((int)wxID_RETRY));
40593 PyDict_SetItemString(d,"ID_IGNORE", SWIG_PyObj_FromInt((int)wxID_IGNORE));
40594 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_PyObj_FromInt((int)wxID_HIGHEST));
40595 PyDict_SetItemString(d,"OPEN", SWIG_PyObj_FromInt((int)wxOPEN));
40596 PyDict_SetItemString(d,"SAVE", SWIG_PyObj_FromInt((int)wxSAVE));
40597 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_PyObj_FromInt((int)wxHIDE_READONLY));
40598 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_PyObj_FromInt((int)wxOVERWRITE_PROMPT));
40599 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_PyObj_FromInt((int)wxFILE_MUST_EXIST));
40600 PyDict_SetItemString(d,"MULTIPLE", SWIG_PyObj_FromInt((int)wxMULTIPLE));
40601 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_PyObj_FromInt((int)wxCHANGE_DIR));
40602 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_PyObj_FromInt((int)wxACCEL_ALT));
40603 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_PyObj_FromInt((int)wxACCEL_CTRL));
40604 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_PyObj_FromInt((int)wxACCEL_SHIFT));
40605 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_PyObj_FromInt((int)wxACCEL_NORMAL));
40606 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_PyObj_FromInt((int)wxPD_AUTO_HIDE));
40607 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_PyObj_FromInt((int)wxPD_APP_MODAL));
40608 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_PyObj_FromInt((int)wxPD_CAN_ABORT));
40609 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_PyObj_FromInt((int)wxPD_ELAPSED_TIME));
40610 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_PyObj_FromInt((int)wxPD_ESTIMATED_TIME));
40611 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_PyObj_FromInt((int)wxPD_REMAINING_TIME));
40612 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_PyObj_FromInt((int)wxDD_NEW_DIR_BUTTON));
40613 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxDD_DEFAULT_STYLE));
40614 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_PyObj_FromInt((int)wxMENU_TEAROFF));
40615 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_PyObj_FromInt((int)wxMB_DOCKABLE));
40616 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
40617 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
40618 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLI_HORIZONTAL));
40619 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_PyObj_FromInt((int)wxLI_VERTICAL));
40620 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_PyObj_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
40621 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_PyObj_FromInt((int)wxWS_EX_BLOCK_EVENTS));
40622 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_PyObj_FromInt((int)wxWS_EX_TRANSIENT));
40623 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_PyObj_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
40624 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_IDLE));
40625 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
40626 PyDict_SetItemString(d,"MM_TEXT", SWIG_PyObj_FromInt((int)wxMM_TEXT));
40627 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_PyObj_FromInt((int)wxMM_LOMETRIC));
40628 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_PyObj_FromInt((int)wxMM_HIMETRIC));
40629 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_PyObj_FromInt((int)wxMM_LOENGLISH));
40630 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_PyObj_FromInt((int)wxMM_HIENGLISH));
40631 PyDict_SetItemString(d,"MM_TWIPS", SWIG_PyObj_FromInt((int)wxMM_TWIPS));
40632 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ISOTROPIC));
40633 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ANISOTROPIC));
40634 PyDict_SetItemString(d,"MM_POINTS", SWIG_PyObj_FromInt((int)wxMM_POINTS));
40635 PyDict_SetItemString(d,"MM_METRIC", SWIG_PyObj_FromInt((int)wxMM_METRIC));
40636 PyDict_SetItemString(d,"CENTRE", SWIG_PyObj_FromInt((int)wxCENTRE));
40637 PyDict_SetItemString(d,"CENTER", SWIG_PyObj_FromInt((int)wxCENTER));
40638 PyDict_SetItemString(d,"HORIZONTAL", SWIG_PyObj_FromInt((int)wxHORIZONTAL));
40639 PyDict_SetItemString(d,"VERTICAL", SWIG_PyObj_FromInt((int)wxVERTICAL));
40640 PyDict_SetItemString(d,"BOTH", SWIG_PyObj_FromInt((int)wxBOTH));
40641 PyDict_SetItemString(d,"LEFT", SWIG_PyObj_FromInt((int)wxLEFT));
40642 PyDict_SetItemString(d,"RIGHT", SWIG_PyObj_FromInt((int)wxRIGHT));
40643 PyDict_SetItemString(d,"UP", SWIG_PyObj_FromInt((int)wxUP));
40644 PyDict_SetItemString(d,"DOWN", SWIG_PyObj_FromInt((int)wxDOWN));
40645 PyDict_SetItemString(d,"TOP", SWIG_PyObj_FromInt((int)wxTOP));
40646 PyDict_SetItemString(d,"BOTTOM", SWIG_PyObj_FromInt((int)wxBOTTOM));
40647 PyDict_SetItemString(d,"NORTH", SWIG_PyObj_FromInt((int)wxNORTH));
40648 PyDict_SetItemString(d,"SOUTH", SWIG_PyObj_FromInt((int)wxSOUTH));
40649 PyDict_SetItemString(d,"WEST", SWIG_PyObj_FromInt((int)wxWEST));
40650 PyDict_SetItemString(d,"EAST", SWIG_PyObj_FromInt((int)wxEAST));
40651 PyDict_SetItemString(d,"ALL", SWIG_PyObj_FromInt((int)wxALL));
40652 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_PyObj_FromInt((int)wxALIGN_NOT));
40653 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
40654 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
40655 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxALIGN_LEFT));
40656 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_PyObj_FromInt((int)wxALIGN_TOP));
40657 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_PyObj_FromInt((int)wxALIGN_RIGHT));
40658 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_PyObj_FromInt((int)wxALIGN_BOTTOM));
40659 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_VERTICAL));
40660 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_VERTICAL));
40661 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_PyObj_FromInt((int)wxALIGN_CENTER));
40662 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE));
40663 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_PyObj_FromInt((int)wxALIGN_MASK));
40664 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_PyObj_FromInt((int)wxSTRETCH_NOT));
40665 PyDict_SetItemString(d,"SHRINK", SWIG_PyObj_FromInt((int)wxSHRINK));
40666 PyDict_SetItemString(d,"GROW", SWIG_PyObj_FromInt((int)wxGROW));
40667 PyDict_SetItemString(d,"EXPAND", SWIG_PyObj_FromInt((int)wxEXPAND));
40668 PyDict_SetItemString(d,"SHAPED", SWIG_PyObj_FromInt((int)wxSHAPED));
40669 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_PyObj_FromInt((int)wxADJUST_MINSIZE));
40670 PyDict_SetItemString(d,"TILE", SWIG_PyObj_FromInt((int)wxTILE));
40671 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_PyObj_FromInt((int)wxBORDER_DEFAULT));
40672 PyDict_SetItemString(d,"BORDER_NONE", SWIG_PyObj_FromInt((int)wxBORDER_NONE));
40673 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_PyObj_FromInt((int)wxBORDER_STATIC));
40674 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_PyObj_FromInt((int)wxBORDER_SIMPLE));
40675 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_PyObj_FromInt((int)wxBORDER_RAISED));
40676 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_PyObj_FromInt((int)wxBORDER_SUNKEN));
40677 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_PyObj_FromInt((int)wxBORDER_DOUBLE));
40678 PyDict_SetItemString(d,"BORDER_MASK", SWIG_PyObj_FromInt((int)wxBORDER_MASK));
40679 PyDict_SetItemString(d,"DEFAULT", SWIG_PyObj_FromInt((int)wxDEFAULT));
40680 PyDict_SetItemString(d,"DECORATIVE", SWIG_PyObj_FromInt((int)wxDECORATIVE));
40681 PyDict_SetItemString(d,"ROMAN", SWIG_PyObj_FromInt((int)wxROMAN));
40682 PyDict_SetItemString(d,"SCRIPT", SWIG_PyObj_FromInt((int)wxSCRIPT));
40683 PyDict_SetItemString(d,"SWISS", SWIG_PyObj_FromInt((int)wxSWISS));
40684 PyDict_SetItemString(d,"MODERN", SWIG_PyObj_FromInt((int)wxMODERN));
40685 PyDict_SetItemString(d,"TELETYPE", SWIG_PyObj_FromInt((int)wxTELETYPE));
40686 PyDict_SetItemString(d,"VARIABLE", SWIG_PyObj_FromInt((int)wxVARIABLE));
40687 PyDict_SetItemString(d,"FIXED", SWIG_PyObj_FromInt((int)wxFIXED));
40688 PyDict_SetItemString(d,"NORMAL", SWIG_PyObj_FromInt((int)wxNORMAL));
40689 PyDict_SetItemString(d,"LIGHT", SWIG_PyObj_FromInt((int)wxLIGHT));
40690 PyDict_SetItemString(d,"BOLD", SWIG_PyObj_FromInt((int)wxBOLD));
40691 PyDict_SetItemString(d,"ITALIC", SWIG_PyObj_FromInt((int)wxITALIC));
40692 PyDict_SetItemString(d,"SLANT", SWIG_PyObj_FromInt((int)wxSLANT));
40693 PyDict_SetItemString(d,"SOLID", SWIG_PyObj_FromInt((int)wxSOLID));
40694 PyDict_SetItemString(d,"DOT", SWIG_PyObj_FromInt((int)wxDOT));
40695 PyDict_SetItemString(d,"LONG_DASH", SWIG_PyObj_FromInt((int)wxLONG_DASH));
40696 PyDict_SetItemString(d,"SHORT_DASH", SWIG_PyObj_FromInt((int)wxSHORT_DASH));
40697 PyDict_SetItemString(d,"DOT_DASH", SWIG_PyObj_FromInt((int)wxDOT_DASH));
40698 PyDict_SetItemString(d,"USER_DASH", SWIG_PyObj_FromInt((int)wxUSER_DASH));
40699 PyDict_SetItemString(d,"TRANSPARENT", SWIG_PyObj_FromInt((int)wxTRANSPARENT));
40700 PyDict_SetItemString(d,"STIPPLE", SWIG_PyObj_FromInt((int)wxSTIPPLE));
40701 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxBDIAGONAL_HATCH));
40702 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_PyObj_FromInt((int)wxCROSSDIAG_HATCH));
40703 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxFDIAGONAL_HATCH));
40704 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_PyObj_FromInt((int)wxCROSS_HATCH));
40705 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_PyObj_FromInt((int)wxHORIZONTAL_HATCH));
40706 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_PyObj_FromInt((int)wxVERTICAL_HATCH));
40707 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_PyObj_FromInt((int)wxJOIN_BEVEL));
40708 PyDict_SetItemString(d,"JOIN_MITER", SWIG_PyObj_FromInt((int)wxJOIN_MITER));
40709 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_PyObj_FromInt((int)wxJOIN_ROUND));
40710 PyDict_SetItemString(d,"CAP_ROUND", SWIG_PyObj_FromInt((int)wxCAP_ROUND));
40711 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_PyObj_FromInt((int)wxCAP_PROJECTING));
40712 PyDict_SetItemString(d,"CAP_BUTT", SWIG_PyObj_FromInt((int)wxCAP_BUTT));
40713 PyDict_SetItemString(d,"CLEAR", SWIG_PyObj_FromInt((int)wxCLEAR));
40714 PyDict_SetItemString(d,"XOR", SWIG_PyObj_FromInt((int)wxXOR));
40715 PyDict_SetItemString(d,"INVERT", SWIG_PyObj_FromInt((int)wxINVERT));
40716 PyDict_SetItemString(d,"OR_REVERSE", SWIG_PyObj_FromInt((int)wxOR_REVERSE));
40717 PyDict_SetItemString(d,"AND_REVERSE", SWIG_PyObj_FromInt((int)wxAND_REVERSE));
40718 PyDict_SetItemString(d,"COPY", SWIG_PyObj_FromInt((int)wxCOPY));
40719 PyDict_SetItemString(d,"AND", SWIG_PyObj_FromInt((int)wxAND));
40720 PyDict_SetItemString(d,"AND_INVERT", SWIG_PyObj_FromInt((int)wxAND_INVERT));
40721 PyDict_SetItemString(d,"NO_OP", SWIG_PyObj_FromInt((int)wxNO_OP));
40722 PyDict_SetItemString(d,"NOR", SWIG_PyObj_FromInt((int)wxNOR));
40723 PyDict_SetItemString(d,"EQUIV", SWIG_PyObj_FromInt((int)wxEQUIV));
40724 PyDict_SetItemString(d,"SRC_INVERT", SWIG_PyObj_FromInt((int)wxSRC_INVERT));
40725 PyDict_SetItemString(d,"OR_INVERT", SWIG_PyObj_FromInt((int)wxOR_INVERT));
40726 PyDict_SetItemString(d,"NAND", SWIG_PyObj_FromInt((int)wxNAND));
40727 PyDict_SetItemString(d,"OR", SWIG_PyObj_FromInt((int)wxOR));
40728 PyDict_SetItemString(d,"SET", SWIG_PyObj_FromInt((int)wxSET));
40729 PyDict_SetItemString(d,"WXK_BACK", SWIG_PyObj_FromInt((int)WXK_BACK));
40730 PyDict_SetItemString(d,"WXK_TAB", SWIG_PyObj_FromInt((int)WXK_TAB));
40731 PyDict_SetItemString(d,"WXK_RETURN", SWIG_PyObj_FromInt((int)WXK_RETURN));
40732 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_PyObj_FromInt((int)WXK_ESCAPE));
40733 PyDict_SetItemString(d,"WXK_SPACE", SWIG_PyObj_FromInt((int)WXK_SPACE));
40734 PyDict_SetItemString(d,"WXK_DELETE", SWIG_PyObj_FromInt((int)WXK_DELETE));
40735 PyDict_SetItemString(d,"WXK_START", SWIG_PyObj_FromInt((int)WXK_START));
40736 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_PyObj_FromInt((int)WXK_LBUTTON));
40737 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_PyObj_FromInt((int)WXK_RBUTTON));
40738 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_PyObj_FromInt((int)WXK_CANCEL));
40739 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_PyObj_FromInt((int)WXK_MBUTTON));
40740 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_PyObj_FromInt((int)WXK_CLEAR));
40741 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_PyObj_FromInt((int)WXK_SHIFT));
40742 PyDict_SetItemString(d,"WXK_ALT", SWIG_PyObj_FromInt((int)WXK_ALT));
40743 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_PyObj_FromInt((int)WXK_CONTROL));
40744 PyDict_SetItemString(d,"WXK_MENU", SWIG_PyObj_FromInt((int)WXK_MENU));
40745 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_PyObj_FromInt((int)WXK_PAUSE));
40746 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_PyObj_FromInt((int)WXK_CAPITAL));
40747 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_PyObj_FromInt((int)WXK_PRIOR));
40748 PyDict_SetItemString(d,"WXK_NEXT", SWIG_PyObj_FromInt((int)WXK_NEXT));
40749 PyDict_SetItemString(d,"WXK_END", SWIG_PyObj_FromInt((int)WXK_END));
40750 PyDict_SetItemString(d,"WXK_HOME", SWIG_PyObj_FromInt((int)WXK_HOME));
40751 PyDict_SetItemString(d,"WXK_LEFT", SWIG_PyObj_FromInt((int)WXK_LEFT));
40752 PyDict_SetItemString(d,"WXK_UP", SWIG_PyObj_FromInt((int)WXK_UP));
40753 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_PyObj_FromInt((int)WXK_RIGHT));
40754 PyDict_SetItemString(d,"WXK_DOWN", SWIG_PyObj_FromInt((int)WXK_DOWN));
40755 PyDict_SetItemString(d,"WXK_SELECT", SWIG_PyObj_FromInt((int)WXK_SELECT));
40756 PyDict_SetItemString(d,"WXK_PRINT", SWIG_PyObj_FromInt((int)WXK_PRINT));
40757 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_PyObj_FromInt((int)WXK_EXECUTE));
40758 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_PyObj_FromInt((int)WXK_SNAPSHOT));
40759 PyDict_SetItemString(d,"WXK_INSERT", SWIG_PyObj_FromInt((int)WXK_INSERT));
40760 PyDict_SetItemString(d,"WXK_HELP", SWIG_PyObj_FromInt((int)WXK_HELP));
40761 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_PyObj_FromInt((int)WXK_NUMPAD0));
40762 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_PyObj_FromInt((int)WXK_NUMPAD1));
40763 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_PyObj_FromInt((int)WXK_NUMPAD2));
40764 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_PyObj_FromInt((int)WXK_NUMPAD3));
40765 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_PyObj_FromInt((int)WXK_NUMPAD4));
40766 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_PyObj_FromInt((int)WXK_NUMPAD5));
40767 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_PyObj_FromInt((int)WXK_NUMPAD6));
40768 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_PyObj_FromInt((int)WXK_NUMPAD7));
40769 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_PyObj_FromInt((int)WXK_NUMPAD8));
40770 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_PyObj_FromInt((int)WXK_NUMPAD9));
40771 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_MULTIPLY));
40772 PyDict_SetItemString(d,"WXK_ADD", SWIG_PyObj_FromInt((int)WXK_ADD));
40773 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_SEPARATOR));
40774 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_SUBTRACT));
40775 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_PyObj_FromInt((int)WXK_DECIMAL));
40776 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_PyObj_FromInt((int)WXK_DIVIDE));
40777 PyDict_SetItemString(d,"WXK_F1", SWIG_PyObj_FromInt((int)WXK_F1));
40778 PyDict_SetItemString(d,"WXK_F2", SWIG_PyObj_FromInt((int)WXK_F2));
40779 PyDict_SetItemString(d,"WXK_F3", SWIG_PyObj_FromInt((int)WXK_F3));
40780 PyDict_SetItemString(d,"WXK_F4", SWIG_PyObj_FromInt((int)WXK_F4));
40781 PyDict_SetItemString(d,"WXK_F5", SWIG_PyObj_FromInt((int)WXK_F5));
40782 PyDict_SetItemString(d,"WXK_F6", SWIG_PyObj_FromInt((int)WXK_F6));
40783 PyDict_SetItemString(d,"WXK_F7", SWIG_PyObj_FromInt((int)WXK_F7));
40784 PyDict_SetItemString(d,"WXK_F8", SWIG_PyObj_FromInt((int)WXK_F8));
40785 PyDict_SetItemString(d,"WXK_F9", SWIG_PyObj_FromInt((int)WXK_F9));
40786 PyDict_SetItemString(d,"WXK_F10", SWIG_PyObj_FromInt((int)WXK_F10));
40787 PyDict_SetItemString(d,"WXK_F11", SWIG_PyObj_FromInt((int)WXK_F11));
40788 PyDict_SetItemString(d,"WXK_F12", SWIG_PyObj_FromInt((int)WXK_F12));
40789 PyDict_SetItemString(d,"WXK_F13", SWIG_PyObj_FromInt((int)WXK_F13));
40790 PyDict_SetItemString(d,"WXK_F14", SWIG_PyObj_FromInt((int)WXK_F14));
40791 PyDict_SetItemString(d,"WXK_F15", SWIG_PyObj_FromInt((int)WXK_F15));
40792 PyDict_SetItemString(d,"WXK_F16", SWIG_PyObj_FromInt((int)WXK_F16));
40793 PyDict_SetItemString(d,"WXK_F17", SWIG_PyObj_FromInt((int)WXK_F17));
40794 PyDict_SetItemString(d,"WXK_F18", SWIG_PyObj_FromInt((int)WXK_F18));
40795 PyDict_SetItemString(d,"WXK_F19", SWIG_PyObj_FromInt((int)WXK_F19));
40796 PyDict_SetItemString(d,"WXK_F20", SWIG_PyObj_FromInt((int)WXK_F20));
40797 PyDict_SetItemString(d,"WXK_F21", SWIG_PyObj_FromInt((int)WXK_F21));
40798 PyDict_SetItemString(d,"WXK_F22", SWIG_PyObj_FromInt((int)WXK_F22));
40799 PyDict_SetItemString(d,"WXK_F23", SWIG_PyObj_FromInt((int)WXK_F23));
40800 PyDict_SetItemString(d,"WXK_F24", SWIG_PyObj_FromInt((int)WXK_F24));
40801 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_PyObj_FromInt((int)WXK_NUMLOCK));
40802 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_PyObj_FromInt((int)WXK_SCROLL));
40803 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_PyObj_FromInt((int)WXK_PAGEUP));
40804 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_PAGEDOWN));
40805 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SPACE));
40806 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_PyObj_FromInt((int)WXK_NUMPAD_TAB));
40807 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ENTER));
40808 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F1));
40809 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F2));
40810 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F3));
40811 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F4));
40812 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_PyObj_FromInt((int)WXK_NUMPAD_HOME));
40813 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_LEFT));
40814 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_UP));
40815 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_RIGHT));
40816 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DOWN));
40817 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PRIOR));
40818 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEUP));
40819 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_NEXT));
40820 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEDOWN));
40821 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_PyObj_FromInt((int)WXK_NUMPAD_END));
40822 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_BEGIN));
40823 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_INSERT));
40824 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DELETE));
40825 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_EQUAL));
40826 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_NUMPAD_MULTIPLY));
40827 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ADD));
40828 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SEPARATOR));
40829 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SUBTRACT));
40830 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DECIMAL));
40831 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DIVIDE));
40832 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_LEFT));
40833 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_RIGHT));
40834 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_PyObj_FromInt((int)WXK_WINDOWS_MENU));
40835 PyDict_SetItemString(d,"PAPER_NONE", SWIG_PyObj_FromInt((int)wxPAPER_NONE));
40836 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_PyObj_FromInt((int)wxPAPER_LETTER));
40837 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL));
40838 PyDict_SetItemString(d,"PAPER_A4", SWIG_PyObj_FromInt((int)wxPAPER_A4));
40839 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_PyObj_FromInt((int)wxPAPER_CSHEET));
40840 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_PyObj_FromInt((int)wxPAPER_DSHEET));
40841 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_PyObj_FromInt((int)wxPAPER_ESHEET));
40842 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_PyObj_FromInt((int)wxPAPER_LETTERSMALL));
40843 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID));
40844 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_PyObj_FromInt((int)wxPAPER_LEDGER));
40845 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_PyObj_FromInt((int)wxPAPER_STATEMENT));
40846 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_PyObj_FromInt((int)wxPAPER_EXECUTIVE));
40847 PyDict_SetItemString(d,"PAPER_A3", SWIG_PyObj_FromInt((int)wxPAPER_A3));
40848 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_PyObj_FromInt((int)wxPAPER_A4SMALL));
40849 PyDict_SetItemString(d,"PAPER_A5", SWIG_PyObj_FromInt((int)wxPAPER_A5));
40850 PyDict_SetItemString(d,"PAPER_B4", SWIG_PyObj_FromInt((int)wxPAPER_B4));
40851 PyDict_SetItemString(d,"PAPER_B5", SWIG_PyObj_FromInt((int)wxPAPER_B5));
40852 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_PyObj_FromInt((int)wxPAPER_FOLIO));
40853 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_PyObj_FromInt((int)wxPAPER_QUARTO));
40854 PyDict_SetItemString(d,"PAPER_10X14", SWIG_PyObj_FromInt((int)wxPAPER_10X14));
40855 PyDict_SetItemString(d,"PAPER_11X17", SWIG_PyObj_FromInt((int)wxPAPER_11X17));
40856 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_PyObj_FromInt((int)wxPAPER_NOTE));
40857 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_PyObj_FromInt((int)wxPAPER_ENV_9));
40858 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_PyObj_FromInt((int)wxPAPER_ENV_10));
40859 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_PyObj_FromInt((int)wxPAPER_ENV_11));
40860 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_PyObj_FromInt((int)wxPAPER_ENV_12));
40861 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_PyObj_FromInt((int)wxPAPER_ENV_14));
40862 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_DL));
40863 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C5));
40864 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C3));
40865 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C4));
40866 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C6));
40867 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C65));
40868 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B4));
40869 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B5));
40870 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B6));
40871 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_PyObj_FromInt((int)wxPAPER_ENV_ITALY));
40872 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_PyObj_FromInt((int)wxPAPER_ENV_MONARCH));
40873 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_PERSONAL));
40874 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_US));
40875 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
40876 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
40877 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_PyObj_FromInt((int)wxPAPER_ISO_B4));
40878 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_PyObj_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
40879 PyDict_SetItemString(d,"PAPER_9X11", SWIG_PyObj_FromInt((int)wxPAPER_9X11));
40880 PyDict_SetItemString(d,"PAPER_10X11", SWIG_PyObj_FromInt((int)wxPAPER_10X11));
40881 PyDict_SetItemString(d,"PAPER_15X11", SWIG_PyObj_FromInt((int)wxPAPER_15X11));
40882 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_PyObj_FromInt((int)wxPAPER_ENV_INVITE));
40883 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA));
40884 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL_EXTRA));
40885 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID_EXTRA));
40886 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A4_EXTRA));
40887 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
40888 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A4_TRANSVERSE));
40889 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
40890 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A_PLUS));
40891 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_B_PLUS));
40892 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_PLUS));
40893 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A4_PLUS));
40894 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A5_TRANSVERSE));
40895 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_B5_TRANSVERSE));
40896 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA));
40897 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A5_EXTRA));
40898 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_B5_EXTRA));
40899 PyDict_SetItemString(d,"PAPER_A2", SWIG_PyObj_FromInt((int)wxPAPER_A2));
40900 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_TRANSVERSE));
40901 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
40902 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_PyObj_FromInt((int)wxDUPLEX_SIMPLEX));
40903 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_PyObj_FromInt((int)wxDUPLEX_HORIZONTAL));
40904 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_PyObj_FromInt((int)wxDUPLEX_VERTICAL));
40905 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_PyObj_FromInt((int)wxITEM_SEPARATOR));
40906 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_PyObj_FromInt((int)wxITEM_NORMAL));
40907 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_PyObj_FromInt((int)wxITEM_CHECK));
40908 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_PyObj_FromInt((int)wxITEM_RADIO));
40909 PyDict_SetItemString(d,"ITEM_MAX", SWIG_PyObj_FromInt((int)wxITEM_MAX));
40910 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_PyObj_FromInt((int)wxHT_NOWHERE));
40911 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_FIRST));
40912 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
40913 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
40914 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
40915 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
40916 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_THUMB));
40917 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_1));
40918 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_2));
40919 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_LAST));
40920 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_OUTSIDE));
40921 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_INSIDE));
40922 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
40923 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
40924 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_PyObj_FromInt((int)wxHT_WINDOW_CORNER));
40925 PyDict_SetItemString(d,"HT_MAX", SWIG_PyObj_FromInt((int)wxHT_MAX));
40926 PyDict_SetItemString(d,"MOD_NONE", SWIG_PyObj_FromInt((int)wxMOD_NONE));
40927 PyDict_SetItemString(d,"MOD_ALT", SWIG_PyObj_FromInt((int)wxMOD_ALT));
40928 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_PyObj_FromInt((int)wxMOD_CONTROL));
40929 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_PyObj_FromInt((int)wxMOD_SHIFT));
40930 PyDict_SetItemString(d,"MOD_WIN", SWIG_PyObj_FromInt((int)wxMOD_WIN));
40931 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_NONE));
40932 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_RECURSE));
40933 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_FROMIDLE));
40934 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
40935 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
40936 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_INVALID));
40937 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_BMP));
40938 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICO));
40939 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_CUR));
40940 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM));
40941 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
40942 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM));
40943 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
40944 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_TIF));
40945 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_GIF));
40946 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNG));
40947 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_JPEG));
40948 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNM));
40949 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PCX));
40950 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PICT));
40951 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICON));
40952 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANI));
40953 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_IFF));
40954 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
40955 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANY));
40956 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_PyObj_FromInt((int)wxCURSOR_NONE));
40957 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_ARROW));
40958 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_ARROW));
40959 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_PyObj_FromInt((int)wxCURSOR_BULLSEYE));
40960 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_PyObj_FromInt((int)wxCURSOR_CHAR));
40961 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_PyObj_FromInt((int)wxCURSOR_CROSS));
40962 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_PyObj_FromInt((int)wxCURSOR_HAND));
40963 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_PyObj_FromInt((int)wxCURSOR_IBEAM));
40964 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_LEFT_BUTTON));
40965 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_PyObj_FromInt((int)wxCURSOR_MAGNIFIER));
40966 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
40967 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_PyObj_FromInt((int)wxCURSOR_NO_ENTRY));
40968 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_PyObj_FromInt((int)wxCURSOR_PAINT_BRUSH));
40969 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_PyObj_FromInt((int)wxCURSOR_PENCIL));
40970 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_LEFT));
40971 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_RIGHT));
40972 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_QUESTION_ARROW));
40973 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_BUTTON));
40974 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENESW));
40975 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENS));
40976 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENWSE));
40977 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZEWE));
40978 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_PyObj_FromInt((int)wxCURSOR_SIZING));
40979 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_PyObj_FromInt((int)wxCURSOR_SPRAYCAN));
40980 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_PyObj_FromInt((int)wxCURSOR_WAIT));
40981 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_PyObj_FromInt((int)wxCURSOR_WATCH));
40982 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_PyObj_FromInt((int)wxCURSOR_BLANK));
40983 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_PyObj_FromInt((int)wxCURSOR_DEFAULT));
40984 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_COPY_ARROW));
40985 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_PyObj_FromInt((int)wxCURSOR_ARROWWAIT));
40986 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_PyObj_FromInt((int)wxCURSOR_MAX));
40987 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
40988 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
40989 PyDict_SetItemString(d,"FromStart", SWIG_PyObj_FromInt((int)wxFromStart));
40990 PyDict_SetItemString(d,"FromCurrent", SWIG_PyObj_FromInt((int)wxFromCurrent));
40991 PyDict_SetItemString(d,"FromEnd", SWIG_PyObj_FromInt((int)wxFromEnd));
40992
40993 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
40994
40995
40996 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
40997
40998 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
40999 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
41000 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
41001 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
41002 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
41003 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
41004 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
41005 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_CM));
41006 PyDict_SetItemString(d,"BMP_24BPP", SWIG_PyObj_FromInt((int)wxBMP_24BPP));
41007 PyDict_SetItemString(d,"BMP_8BPP", SWIG_PyObj_FromInt((int)wxBMP_8BPP));
41008 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GREY));
41009 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GRAY));
41010 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_PyObj_FromInt((int)wxBMP_8BPP_RED));
41011 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_PyObj_FromInt((int)wxBMP_8BPP_PALETTE));
41012 PyDict_SetItemString(d,"BMP_4BPP", SWIG_PyObj_FromInt((int)wxBMP_4BPP));
41013 PyDict_SetItemString(d,"BMP_1BPP", SWIG_PyObj_FromInt((int)wxBMP_1BPP));
41014 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_PyObj_FromInt((int)wxBMP_1BPP_BW));
41015 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_NONE));
41016 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_MAX));
41017 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
41018 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
41019 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
41020 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
41021 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
41022 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
41023 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
41024 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
41025 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
41026 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
41027 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
41028 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
41029 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
41030 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
41031 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
41032 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
41033 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
41034 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
41035 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
41036 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
41037 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
41038 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
41039 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
41040 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
41041 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
41042 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
41043 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
41044 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
41045 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
41046 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
41047 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
41048 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
41049 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
41050 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
41051 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
41052 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
41053 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
41054 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
41055 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
41056 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
41057 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
41058 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
41059 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
41060 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
41061 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
41062 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
41063 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
41064 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
41065 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
41066 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
41067 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
41068 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
41069 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
41070 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
41071 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
41072 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
41073 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
41074 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
41075 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
41076 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
41077 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
41078 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
41079 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
41080 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
41081 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
41082 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
41083 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
41084 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
41085 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
41086 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
41087 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
41088 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
41089 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
41090 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
41091 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
41092 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
41093 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
41094 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
41095 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
41096 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
41097 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
41098 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
41099 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
41100 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
41101 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
41102 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
41103 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
41104 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
41105 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
41106 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
41107 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
41108 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
41109 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
41110 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
41111 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
41112 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
41113 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
41114 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
41115 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
41116 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
41117 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
41118 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
41119 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
41120 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
41121 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
41122 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
41123 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
41124 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
41125 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
41126 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
41127 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
41128 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
41129 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
41130 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
41131 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_ANY));
41132 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_NONE));
41133 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_LEFT));
41134 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_MIDDLE));
41135 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_RIGHT));
41136 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
41137 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
41138 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_ALL));
41139 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
41140 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
41141 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
41142 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_DIALOG));
41143 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_LOG));
41144 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_PyObj_FromInt((int)wxPRINT_WINDOWS));
41145 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_PyObj_FromInt((int)wxPRINT_POSTSCRIPT));
41146 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
41147 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
41148 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
41149 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
41150 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_NONE));
41151 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
41152 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_ALL));
41153 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
41154 PyDict_SetItemString(d,"Left", SWIG_PyObj_FromInt((int)wxLeft));
41155 PyDict_SetItemString(d,"Top", SWIG_PyObj_FromInt((int)wxTop));
41156 PyDict_SetItemString(d,"Right", SWIG_PyObj_FromInt((int)wxRight));
41157 PyDict_SetItemString(d,"Bottom", SWIG_PyObj_FromInt((int)wxBottom));
41158 PyDict_SetItemString(d,"Width", SWIG_PyObj_FromInt((int)wxWidth));
41159 PyDict_SetItemString(d,"Height", SWIG_PyObj_FromInt((int)wxHeight));
41160 PyDict_SetItemString(d,"Centre", SWIG_PyObj_FromInt((int)wxCentre));
41161 PyDict_SetItemString(d,"Center", SWIG_PyObj_FromInt((int)wxCenter));
41162 PyDict_SetItemString(d,"CentreX", SWIG_PyObj_FromInt((int)wxCentreX));
41163 PyDict_SetItemString(d,"CentreY", SWIG_PyObj_FromInt((int)wxCentreY));
41164 PyDict_SetItemString(d,"Unconstrained", SWIG_PyObj_FromInt((int)wxUnconstrained));
41165 PyDict_SetItemString(d,"AsIs", SWIG_PyObj_FromInt((int)wxAsIs));
41166 PyDict_SetItemString(d,"PercentOf", SWIG_PyObj_FromInt((int)wxPercentOf));
41167 PyDict_SetItemString(d,"Above", SWIG_PyObj_FromInt((int)wxAbove));
41168 PyDict_SetItemString(d,"Below", SWIG_PyObj_FromInt((int)wxBelow));
41169 PyDict_SetItemString(d,"LeftOf", SWIG_PyObj_FromInt((int)wxLeftOf));
41170 PyDict_SetItemString(d,"RightOf", SWIG_PyObj_FromInt((int)wxRightOf));
41171 PyDict_SetItemString(d,"SameAs", SWIG_PyObj_FromInt((int)wxSameAs));
41172 PyDict_SetItemString(d,"Absolute", SWIG_PyObj_FromInt((int)wxAbsolute));
41173
41174 // Initialize threading, some globals and such
41175 __wxPyPreStart(d);
41176
41177
41178 // Although these are defined in __version__ they need to be here too so
41179 // that an assert can be done to ensure that the wxPython and the wxWindows
41180 // versions match.
41181 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
41182 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
41183 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
41184
41185 }
41186