1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_core.h"
11 
12         #include <wx/choice.h>
13 
14         #include <wx/window.h>
15         #include <wx/gdicmn.h>
16         #include <wx/gdicmn.h>
17         #include <wx/validate.h>
18         #include <wx/window.h>
19         #include <wx/event.h>
20         #include <wx/dc.h>
21         #include <wx/event.h>
22         #include <wx/event.h>
23     #include <wx/setup.h>
24     #include <wxPython/wxpy_api.h>
25         #include <wx/event.h>
26         #include <wx/cursor.h>
27         #include <wx/caret.h>
28         #include <wx/layout.h>
29         #include <wx/sizer.h>
30         #include <wx/dnd.h>
31         #include <wx/access.h>
32         #include <wx/accel.h>
33         #include <wx/menu.h>
34         #include <wx/tooltip.h>
35         #include <wx/event.h>
36         #include <wx/gdicmn.h>
37         #include <wx/event.h>
38         #include <wx/event.h>
39         #include <wx/palette.h>
40         #include <wx/colour.h>
41         #include <wx/font.h>
42         #include <wx/region.h>
43 
44         #include <wx/eventfilter.h>
45         #include <wx/object.h>
46         #include <wx/object.h>
47         #include <wx/object.h>
48 
49 
50 class sipwxChoice : public  ::wxChoice
51 {
52 public:
53     sipwxChoice();
54     sipwxChoice( ::wxWindow*, ::wxWindowID,const  ::wxPoint&,const  ::wxSize&,const  ::wxArrayString&,long,const  ::wxValidator&,const  ::wxString&);
55     virtual ~sipwxChoice();
56 
57     /*
58      * There is a public method for every protected method visible from
59      * this class.
60      */
61     void sipProtect_SendDestroyEvent();
62     bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
63     void sipProtectVirt_DoEnable(bool,bool);
64     void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
65     void sipProtectVirt_DoGetSize(bool,int*,int*) const;
66     void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
67      ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
68      ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
69     void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
70     void sipProtectVirt_DoSetClientSize(bool,int,int);
71     void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
72      ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
73     void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
74     void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
75      ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
76      ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
77     void sipProtectVirt_DoFreeze(bool);
78     void sipProtectVirt_DoThaw(bool);
79     bool sipProtectVirt_HasTransparentBackground(bool);
80     bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
81     bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
82 
83     /*
84      * There is a protected method for every virtual method visible from
85      * this class.
86      */
87 protected:
88      ::wxString GetStringSelection() const SIP_OVERRIDE;
89     int GetSelection() const SIP_OVERRIDE;
90     void SetSelection(int) SIP_OVERRIDE;
91     int FindString(const  ::wxString&,bool) const SIP_OVERRIDE;
92     void SetString(uint,const  ::wxString&) SIP_OVERRIDE;
93      ::wxString GetString(uint) const SIP_OVERRIDE;
94     uint GetCount() const SIP_OVERRIDE;
95      ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
96      ::wxSize DoGetBestSize() const SIP_OVERRIDE;
97     void DoThaw() SIP_OVERRIDE;
98     void DoFreeze() SIP_OVERRIDE;
99      ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
100      ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
101     void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
102     void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
103      ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
104     void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
105     void DoSetClientSize(int,int) SIP_OVERRIDE;
106     void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
107     void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
108     void DoGetSize(int*,int*) const SIP_OVERRIDE;
109     void DoGetPosition(int*,int*) const SIP_OVERRIDE;
110     void DoEnable(bool) SIP_OVERRIDE;
111      ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
112     void OnInternalIdle() SIP_OVERRIDE;
113     void InitDialog() SIP_OVERRIDE;
114     void InheritAttributes() SIP_OVERRIDE;
115     bool Destroy() SIP_OVERRIDE;
116     bool Validate() SIP_OVERRIDE;
117     bool TransferDataToWindow() SIP_OVERRIDE;
118     bool TransferDataFromWindow() SIP_OVERRIDE;
119     void SetValidator(const  ::wxValidator&) SIP_OVERRIDE;
120      ::wxValidator* GetValidator() SIP_OVERRIDE;
121     bool ShouldInheritColours() const SIP_OVERRIDE;
122     bool HasTransparentBackground() SIP_OVERRIDE;
123      ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
124     bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
125     void SetCanFocus(bool) SIP_OVERRIDE;
126     bool AcceptsFocusRecursively() const SIP_OVERRIDE;
127     bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
128     bool AcceptsFocus() const SIP_OVERRIDE;
129     bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
130     bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
131     bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
132     void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
133     void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
134 
135 public:
136     sipSimpleWrapper *sipPySelf;
137 
138 private:
139     sipwxChoice(const sipwxChoice &);
140     sipwxChoice &operator = (const sipwxChoice &);
141 
142     char sipPyMethods[46];
143 };
144 
sipwxChoice()145 sipwxChoice::sipwxChoice():  ::wxChoice(), sipPySelf(SIP_NULLPTR)
146 {
147     memset(sipPyMethods, 0, sizeof (sipPyMethods));
148 }
149 
sipwxChoice(::wxWindow * parent,::wxWindowID id,const::wxPoint & pos,const::wxSize & size,const::wxArrayString & choices,long style,const::wxValidator & validator,const::wxString & name)150 sipwxChoice::sipwxChoice( ::wxWindow*parent, ::wxWindowID id,const  ::wxPoint& pos,const  ::wxSize& size,const  ::wxArrayString& choices,long style,const  ::wxValidator& validator,const  ::wxString& name):  ::wxChoice(parent,id,pos,size,choices,style,validator,name), sipPySelf(SIP_NULLPTR)
151 {
152     memset(sipPyMethods, 0, sizeof (sipPyMethods));
153 }
154 
~sipwxChoice()155 sipwxChoice::~sipwxChoice()
156 {
157     sipInstanceDestroyedEx(&sipPySelf);
158 }
159 
GetStringSelection() const160  ::wxString sipwxChoice::GetStringSelection() const
161 {
162     sip_gilstate_t sipGILState;
163     PyObject *sipMeth;
164 
165     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_GetStringSelection);
166 
167     if (!sipMeth)
168         return  ::wxChoice::GetStringSelection();
169 
170     extern  ::wxString sipVH__core_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
171 
172     return sipVH__core_11(sipGILState, 0, sipPySelf, sipMeth);
173 }
174 
GetSelection() const175 int sipwxChoice::GetSelection() const
176 {
177     sip_gilstate_t sipGILState;
178     PyObject *sipMeth;
179 
180     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_GetSelection);
181 
182     if (!sipMeth)
183         return  ::wxChoice::GetSelection();
184 
185     extern int sipVH__core_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
186 
187     return sipVH__core_97(sipGILState, 0, sipPySelf, sipMeth);
188 }
189 
SetSelection(int n)190 void sipwxChoice::SetSelection(int n)
191 {
192     sip_gilstate_t sipGILState;
193     PyObject *sipMeth;
194 
195     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_SetSelection);
196 
197     if (!sipMeth)
198     {
199          ::wxChoice::SetSelection(n);
200         return;
201     }
202 
203     extern void sipVH__core_98(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
204 
205     sipVH__core_98(sipGILState, 0, sipPySelf, sipMeth, n);
206 }
207 
FindString(const::wxString & string,bool caseSensitive) const208 int sipwxChoice::FindString(const  ::wxString& string,bool caseSensitive) const
209 {
210     sip_gilstate_t sipGILState;
211     PyObject *sipMeth;
212 
213     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,SIP_NULLPTR,sipName_FindString);
214 
215     if (!sipMeth)
216         return  ::wxChoice::FindString(string,caseSensitive);
217 
218     extern int sipVH__core_139(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxString&,bool);
219 
220     return sipVH__core_139(sipGILState, 0, sipPySelf, sipMeth, string, caseSensitive);
221 }
222 
SetString(uint n,const::wxString & string)223 void sipwxChoice::SetString(uint n,const  ::wxString& string)
224 {
225     sip_gilstate_t sipGILState;
226     PyObject *sipMeth;
227 
228     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_SetString);
229 
230     if (!sipMeth)
231     {
232          ::wxChoice::SetString(n,string);
233         return;
234     }
235 
236     extern void sipVH__core_138(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, uint,const  ::wxString&);
237 
238     sipVH__core_138(sipGILState, 0, sipPySelf, sipMeth, n, string);
239 }
240 
GetString(uint n) const241  ::wxString sipwxChoice::GetString(uint n) const
242 {
243     sip_gilstate_t sipGILState;
244     PyObject *sipMeth;
245 
246     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetString);
247 
248     if (!sipMeth)
249         return  ::wxChoice::GetString(n);
250 
251     extern  ::wxString sipVH__core_137(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, uint);
252 
253     return sipVH__core_137(sipGILState, 0, sipPySelf, sipMeth, n);
254 }
255 
GetCount() const256 uint sipwxChoice::GetCount() const
257 {
258     sip_gilstate_t sipGILState;
259     PyObject *sipMeth;
260 
261     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_GetCount);
262 
263     if (!sipMeth)
264         return  ::wxChoice::GetCount();
265 
266     extern uint sipVH__core_136(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
267 
268     return sipVH__core_136(sipGILState, 0, sipPySelf, sipMeth);
269 }
270 
DoGetBestClientSize() const271  ::wxSize sipwxChoice::DoGetBestClientSize() const
272 {
273     sip_gilstate_t sipGILState;
274     PyObject *sipMeth;
275 
276     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
277 
278     if (!sipMeth)
279         return  ::wxChoice::DoGetBestClientSize();
280 
281     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
282 
283     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
284 }
285 
DoGetBestSize() const286  ::wxSize sipwxChoice::DoGetBestSize() const
287 {
288     sip_gilstate_t sipGILState;
289     PyObject *sipMeth;
290 
291     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
292 
293     if (!sipMeth)
294         return  ::wxChoice::DoGetBestSize();
295 
296     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
297 
298     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
299 }
300 
DoThaw()301 void sipwxChoice::DoThaw()
302 {
303     sip_gilstate_t sipGILState;
304     PyObject *sipMeth;
305 
306     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
307 
308     if (!sipMeth)
309     {
310          ::wxChoice::DoThaw();
311         return;
312     }
313 
314     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
315 
316     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
317 }
318 
DoFreeze()319 void sipwxChoice::DoFreeze()
320 {
321     sip_gilstate_t sipGILState;
322     PyObject *sipMeth;
323 
324     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
325 
326     if (!sipMeth)
327     {
328          ::wxChoice::DoFreeze();
329         return;
330     }
331 
332     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
333 
334     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
335 }
336 
GetDefaultBorderForControl() const337  ::wxBorder sipwxChoice::GetDefaultBorderForControl() const
338 {
339     sip_gilstate_t sipGILState;
340     PyObject *sipMeth;
341 
342     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
343 
344     if (!sipMeth)
345         return  ::wxChoice::GetDefaultBorderForControl();
346 
347     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
348 
349     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
350 }
351 
GetDefaultBorder() const352  ::wxBorder sipwxChoice::GetDefaultBorder() const
353 {
354     sip_gilstate_t sipGILState;
355     PyObject *sipMeth;
356 
357     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
358 
359     if (!sipMeth)
360         return  ::wxChoice::GetDefaultBorder();
361 
362     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
363 
364     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
365 }
366 
DoSetWindowVariant(::wxWindowVariant variant)367 void sipwxChoice::DoSetWindowVariant( ::wxWindowVariant variant)
368 {
369     sip_gilstate_t sipGILState;
370     PyObject *sipMeth;
371 
372     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
373 
374     if (!sipMeth)
375     {
376          ::wxChoice::DoSetWindowVariant(variant);
377         return;
378     }
379 
380     extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowVariant);
381 
382     sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
383 }
384 
DoMoveWindow(int x,int y,int width,int height)385 void sipwxChoice::DoMoveWindow(int x,int y,int width,int height)
386 {
387     sip_gilstate_t sipGILState;
388     PyObject *sipMeth;
389 
390     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
391 
392     if (!sipMeth)
393     {
394          ::wxChoice::DoMoveWindow(x,y,width,height);
395         return;
396     }
397 
398     extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
399 
400     sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
401 }
402 
DoGetBorderSize() const403  ::wxSize sipwxChoice::DoGetBorderSize() const
404 {
405     sip_gilstate_t sipGILState;
406     PyObject *sipMeth;
407 
408     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
409 
410     if (!sipMeth)
411         return  ::wxChoice::DoGetBorderSize();
412 
413     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
414 
415     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
416 }
417 
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)418 void sipwxChoice::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
419 {
420     sip_gilstate_t sipGILState;
421     PyObject *sipMeth;
422 
423     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
424 
425     if (!sipMeth)
426     {
427          ::wxChoice::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
428         return;
429     }
430 
431     extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
432 
433     sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
434 }
435 
DoSetClientSize(int width,int height)436 void sipwxChoice::DoSetClientSize(int width,int height)
437 {
438     sip_gilstate_t sipGILState;
439     PyObject *sipMeth;
440 
441     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
442 
443     if (!sipMeth)
444     {
445          ::wxChoice::DoSetClientSize(width,height);
446         return;
447     }
448 
449     extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
450 
451     sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
452 }
453 
DoSetSize(int x,int y,int width,int height,int sizeFlags)454 void sipwxChoice::DoSetSize(int x,int y,int width,int height,int sizeFlags)
455 {
456     sip_gilstate_t sipGILState;
457     PyObject *sipMeth;
458 
459     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
460 
461     if (!sipMeth)
462     {
463          ::wxChoice::DoSetSize(x,y,width,height,sizeFlags);
464         return;
465     }
466 
467     extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
468 
469     sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
470 }
471 
DoGetClientSize(int * width,int * height) const472 void sipwxChoice::DoGetClientSize(int*width,int*height) const
473 {
474     sip_gilstate_t sipGILState;
475     PyObject *sipMeth;
476 
477     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
478 
479     if (!sipMeth)
480     {
481          ::wxChoice::DoGetClientSize(width,height);
482         return;
483     }
484 
485     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
486 
487     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
488 }
489 
DoGetSize(int * width,int * height) const490 void sipwxChoice::DoGetSize(int*width,int*height) const
491 {
492     sip_gilstate_t sipGILState;
493     PyObject *sipMeth;
494 
495     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
496 
497     if (!sipMeth)
498     {
499          ::wxChoice::DoGetSize(width,height);
500         return;
501     }
502 
503     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
504 
505     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
506 }
507 
DoGetPosition(int * x,int * y) const508 void sipwxChoice::DoGetPosition(int*x,int*y) const
509 {
510     sip_gilstate_t sipGILState;
511     PyObject *sipMeth;
512 
513     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
514 
515     if (!sipMeth)
516     {
517          ::wxChoice::DoGetPosition(x,y);
518         return;
519     }
520 
521     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
522 
523     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
524 }
525 
DoEnable(bool enable)526 void sipwxChoice::DoEnable(bool enable)
527 {
528     sip_gilstate_t sipGILState;
529     PyObject *sipMeth;
530 
531     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
532 
533     if (!sipMeth)
534     {
535          ::wxChoice::DoEnable(enable);
536         return;
537     }
538 
539     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
540 
541     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
542 }
543 
GetMainWindowOfCompositeControl()544  ::wxWindow* sipwxChoice::GetMainWindowOfCompositeControl()
545 {
546     sip_gilstate_t sipGILState;
547     PyObject *sipMeth;
548 
549     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
550 
551     if (!sipMeth)
552         return  ::wxChoice::GetMainWindowOfCompositeControl();
553 
554     extern  ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
555 
556     return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
557 }
558 
OnInternalIdle()559 void sipwxChoice::OnInternalIdle()
560 {
561     sip_gilstate_t sipGILState;
562     PyObject *sipMeth;
563 
564     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
565 
566     if (!sipMeth)
567     {
568          ::wxChoice::OnInternalIdle();
569         return;
570     }
571 
572     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
573 
574     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
575 }
576 
InitDialog()577 void sipwxChoice::InitDialog()
578 {
579     sip_gilstate_t sipGILState;
580     PyObject *sipMeth;
581 
582     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
583 
584     if (!sipMeth)
585     {
586          ::wxChoice::InitDialog();
587         return;
588     }
589 
590     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
591 
592     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
593 }
594 
InheritAttributes()595 void sipwxChoice::InheritAttributes()
596 {
597     sip_gilstate_t sipGILState;
598     PyObject *sipMeth;
599 
600     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
601 
602     if (!sipMeth)
603     {
604          ::wxChoice::InheritAttributes();
605         return;
606     }
607 
608     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
609 
610     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
611 }
612 
Destroy()613 bool sipwxChoice::Destroy()
614 {
615     sip_gilstate_t sipGILState;
616     PyObject *sipMeth;
617 
618     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_Destroy);
619 
620     if (!sipMeth)
621         return  ::wxChoice::Destroy();
622 
623     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
624 
625     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
626 }
627 
Validate()628 bool sipwxChoice::Validate()
629 {
630     sip_gilstate_t sipGILState;
631     PyObject *sipMeth;
632 
633     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_Validate);
634 
635     if (!sipMeth)
636         return  ::wxChoice::Validate();
637 
638     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
639 
640     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
641 }
642 
TransferDataToWindow()643 bool sipwxChoice::TransferDataToWindow()
644 {
645     sip_gilstate_t sipGILState;
646     PyObject *sipMeth;
647 
648     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
649 
650     if (!sipMeth)
651         return  ::wxChoice::TransferDataToWindow();
652 
653     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
654 
655     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
656 }
657 
TransferDataFromWindow()658 bool sipwxChoice::TransferDataFromWindow()
659 {
660     sip_gilstate_t sipGILState;
661     PyObject *sipMeth;
662 
663     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
664 
665     if (!sipMeth)
666         return  ::wxChoice::TransferDataFromWindow();
667 
668     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
669 
670     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
671 }
672 
SetValidator(const::wxValidator & validator)673 void sipwxChoice::SetValidator(const  ::wxValidator& validator)
674 {
675     sip_gilstate_t sipGILState;
676     PyObject *sipMeth;
677 
678     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
679 
680     if (!sipMeth)
681     {
682          ::wxChoice::SetValidator(validator);
683         return;
684     }
685 
686     extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxValidator&);
687 
688     sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
689 }
690 
GetValidator()691  ::wxValidator* sipwxChoice::GetValidator()
692 {
693     sip_gilstate_t sipGILState;
694     PyObject *sipMeth;
695 
696     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
697 
698     if (!sipMeth)
699         return  ::wxChoice::GetValidator();
700 
701     extern  ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
702 
703     return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
704 }
705 
ShouldInheritColours() const706 bool sipwxChoice::ShouldInheritColours() const
707 {
708     sip_gilstate_t sipGILState;
709     PyObject *sipMeth;
710 
711     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
712 
713     if (!sipMeth)
714         return  ::wxChoice::ShouldInheritColours();
715 
716     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
717 
718     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
719 }
720 
HasTransparentBackground()721 bool sipwxChoice::HasTransparentBackground()
722 {
723     sip_gilstate_t sipGILState;
724     PyObject *sipMeth;
725 
726     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
727 
728     if (!sipMeth)
729         return  ::wxChoice::HasTransparentBackground();
730 
731     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
732 
733     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
734 }
735 
GetClientAreaOrigin() const736  ::wxPoint sipwxChoice::GetClientAreaOrigin() const
737 {
738     sip_gilstate_t sipGILState;
739     PyObject *sipMeth;
740 
741     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
742 
743     if (!sipMeth)
744         return  ::wxChoice::GetClientAreaOrigin();
745 
746     extern  ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
747 
748     return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
749 }
750 
InformFirstDirection(int direction,int size,int availableOtherDir)751 bool sipwxChoice::InformFirstDirection(int direction,int size,int availableOtherDir)
752 {
753     sip_gilstate_t sipGILState;
754     PyObject *sipMeth;
755 
756     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
757 
758     if (!sipMeth)
759         return  ::wxChoice::InformFirstDirection(direction,size,availableOtherDir);
760 
761     extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
762 
763     return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
764 }
765 
SetCanFocus(bool canFocus)766 void sipwxChoice::SetCanFocus(bool canFocus)
767 {
768     sip_gilstate_t sipGILState;
769     PyObject *sipMeth;
770 
771     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
772 
773     if (!sipMeth)
774     {
775          ::wxChoice::SetCanFocus(canFocus);
776         return;
777     }
778 
779     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
780 
781     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
782 }
783 
AcceptsFocusRecursively() const784 bool sipwxChoice::AcceptsFocusRecursively() const
785 {
786     sip_gilstate_t sipGILState;
787     PyObject *sipMeth;
788 
789     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
790 
791     if (!sipMeth)
792         return  ::wxChoice::AcceptsFocusRecursively();
793 
794     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
795 
796     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
797 }
798 
AcceptsFocusFromKeyboard() const799 bool sipwxChoice::AcceptsFocusFromKeyboard() const
800 {
801     sip_gilstate_t sipGILState;
802     PyObject *sipMeth;
803 
804     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
805 
806     if (!sipMeth)
807         return  ::wxChoice::AcceptsFocusFromKeyboard();
808 
809     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
810 
811     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
812 }
813 
AcceptsFocus() const814 bool sipwxChoice::AcceptsFocus() const
815 {
816     sip_gilstate_t sipGILState;
817     PyObject *sipMeth;
818 
819     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
820 
821     if (!sipMeth)
822         return  ::wxChoice::AcceptsFocus();
823 
824     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
825 
826     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
827 }
828 
TryAfter(::wxEvent & event)829 bool sipwxChoice::TryAfter( ::wxEvent& event)
830 {
831     sip_gilstate_t sipGILState;
832     PyObject *sipMeth;
833 
834     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
835 
836     if (!sipMeth)
837         return  ::wxChoice::TryAfter(event);
838 
839     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
840 
841     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
842 }
843 
TryBefore(::wxEvent & event)844 bool sipwxChoice::TryBefore( ::wxEvent& event)
845 {
846     sip_gilstate_t sipGILState;
847     PyObject *sipMeth;
848 
849     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
850 
851     if (!sipMeth)
852         return  ::wxChoice::TryBefore(event);
853 
854     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
855 
856     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
857 }
858 
ProcessEvent(::wxEvent & event)859 bool sipwxChoice::ProcessEvent( ::wxEvent& event)
860 {
861     sip_gilstate_t sipGILState;
862     PyObject *sipMeth;
863 
864     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
865 
866     if (!sipMeth)
867         return  ::wxChoice::ProcessEvent(event);
868 
869     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
870 
871     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
872 }
873 
AddChild(::wxWindowBase * child)874 void sipwxChoice::AddChild( ::wxWindowBase*child)
875 {
876     sip_gilstate_t sipGILState;
877     PyObject *sipMeth;
878 
879     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,SIP_NULLPTR,sipName_AddChild);
880 
881     if (!sipMeth)
882     {
883          ::wxChoice::AddChild(child);
884         return;
885     }
886 
887     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
888 
889     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
890 }
891 
RemoveChild(::wxWindowBase * child)892 void sipwxChoice::RemoveChild( ::wxWindowBase*child)
893 {
894     sip_gilstate_t sipGILState;
895     PyObject *sipMeth;
896 
897     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
898 
899     if (!sipMeth)
900     {
901          ::wxChoice::RemoveChild(child);
902         return;
903     }
904 
905     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
906 
907     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
908 }
909 
sipProtect_SendDestroyEvent()910 void sipwxChoice::sipProtect_SendDestroyEvent()
911 {
912      ::wxWindow::SendDestroyEvent();
913 }
914 
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)915 bool sipwxChoice::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
916 {
917     return (sipSelfWasArg ?  ::wxChoice::ProcessEvent(event) : ProcessEvent(event));
918 }
919 
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)920 void sipwxChoice::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
921 {
922     (sipSelfWasArg ?  ::wxChoice::DoEnable(enable) : DoEnable(enable));
923 }
924 
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const925 void sipwxChoice::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
926 {
927     (sipSelfWasArg ?  ::wxChoice::DoGetPosition(x,y) : DoGetPosition(x,y));
928 }
929 
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const930 void sipwxChoice::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
931 {
932     (sipSelfWasArg ?  ::wxChoice::DoGetSize(width,height) : DoGetSize(width,height));
933 }
934 
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const935 void sipwxChoice::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
936 {
937     (sipSelfWasArg ?  ::wxChoice::DoGetClientSize(width,height) : DoGetClientSize(width,height));
938 }
939 
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const940  ::wxSize sipwxChoice::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
941 {
942     return (sipSelfWasArg ?  ::wxChoice::DoGetBestSize() : DoGetBestSize());
943 }
944 
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const945  ::wxSize sipwxChoice::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
946 {
947     return (sipSelfWasArg ?  ::wxChoice::DoGetBestClientSize() : DoGetBestClientSize());
948 }
949 
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)950 void sipwxChoice::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
951 {
952     (sipSelfWasArg ?  ::wxChoice::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
953 }
954 
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)955 void sipwxChoice::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
956 {
957     (sipSelfWasArg ?  ::wxChoice::DoSetClientSize(width,height) : DoSetClientSize(width,height));
958 }
959 
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)960 void sipwxChoice::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
961 {
962     (sipSelfWasArg ?  ::wxChoice::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
963 }
964 
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const965  ::wxSize sipwxChoice::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
966 {
967     return (sipSelfWasArg ?  ::wxChoice::DoGetBorderSize() : DoGetBorderSize());
968 }
969 
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)970 void sipwxChoice::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
971 {
972     (sipSelfWasArg ?  ::wxChoice::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
973 }
974 
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)975 void sipwxChoice::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
976 {
977     (sipSelfWasArg ?  ::wxChoice::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
978 }
979 
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const980  ::wxBorder sipwxChoice::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
981 {
982     return (sipSelfWasArg ?  ::wxChoice::GetDefaultBorder() : GetDefaultBorder());
983 }
984 
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const985  ::wxBorder sipwxChoice::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
986 {
987     return (sipSelfWasArg ?  ::wxChoice::GetDefaultBorderForControl() : GetDefaultBorderForControl());
988 }
989 
sipProtectVirt_DoFreeze(bool sipSelfWasArg)990 void sipwxChoice::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
991 {
992     (sipSelfWasArg ?  ::wxChoice::DoFreeze() : DoFreeze());
993 }
994 
sipProtectVirt_DoThaw(bool sipSelfWasArg)995 void sipwxChoice::sipProtectVirt_DoThaw(bool sipSelfWasArg)
996 {
997     (sipSelfWasArg ?  ::wxChoice::DoThaw() : DoThaw());
998 }
999 
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)1000 bool sipwxChoice::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
1001 {
1002     return (sipSelfWasArg ?  ::wxChoice::HasTransparentBackground() : HasTransparentBackground());
1003 }
1004 
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)1005 bool sipwxChoice::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
1006 {
1007     return (sipSelfWasArg ?  ::wxChoice::TryBefore(event) : TryBefore(event));
1008 }
1009 
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)1010 bool sipwxChoice::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
1011 {
1012     return (sipSelfWasArg ?  ::wxChoice::TryAfter(event) : TryAfter(event));
1013 }
1014 
1015 
1016 PyDoc_STRVAR(doc_wxChoice_SendDestroyEvent, "SendDestroyEvent()\n"
1017 "\n"
1018 "Generate wxWindowDestroyEvent for this window.");
1019 
1020 extern "C" {static PyObject *meth_wxChoice_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxChoice_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)1021 static PyObject *meth_wxChoice_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
1022 {
1023     PyObject *sipParseErr = SIP_NULLPTR;
1024 
1025     {
1026         sipwxChoice *sipCpp;
1027 
1028         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1029         {
1030             PyErr_Clear();
1031 
1032             Py_BEGIN_ALLOW_THREADS
1033             sipCpp->sipProtect_SendDestroyEvent();
1034             Py_END_ALLOW_THREADS
1035 
1036             if (PyErr_Occurred())
1037                 return 0;
1038 
1039             Py_INCREF(Py_None);
1040             return Py_None;
1041         }
1042     }
1043 
1044     /* Raise an exception if the arguments couldn't be parsed. */
1045     sipNoMethod(sipParseErr, sipName_Choice, sipName_SendDestroyEvent, SIP_NULLPTR);
1046 
1047     return SIP_NULLPTR;
1048 }
1049 
1050 
1051 PyDoc_STRVAR(doc_wxChoice_Create, "Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ChoiceNameStr) -> bool\n"
1052 "\n"
1053 "Creates the choice for two-step construction.");
1054 
1055 extern "C" {static PyObject *meth_wxChoice_Create(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1056 static PyObject *meth_wxChoice_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1057 {
1058     PyObject *sipParseErr = SIP_NULLPTR;
1059 
1060     {
1061          ::wxWindow* parent;
1062          ::wxWindowID id = wxID_ANY;
1063         const  ::wxPoint& posdef = wxDefaultPosition;
1064         const  ::wxPoint* pos = &posdef;
1065         int posState = 0;
1066         const  ::wxSize& sizedef = wxDefaultSize;
1067         const  ::wxSize* size = &sizedef;
1068         int sizeState = 0;
1069         const  ::wxArrayString& choicesdef = wxArrayString();
1070         const  ::wxArrayString* choices = &choicesdef;
1071         int choicesState = 0;
1072         long style = 0;
1073         const  ::wxValidator& validatordef = wxDefaultValidator;
1074         const  ::wxValidator* validator = &validatordef;
1075         const  ::wxString& namedef = wxChoiceNameStr;
1076         const  ::wxString* name = &namedef;
1077         int nameState = 0;
1078         sipWrapper *sipOwner = SIP_NULLPTR;
1079          ::wxChoice *sipCpp;
1080 
1081         static const char *sipKwdList[] = {
1082             sipName_parent,
1083             sipName_id,
1084             sipName_pos,
1085             sipName_size,
1086             sipName_choices,
1087             sipName_style,
1088             sipName_validator,
1089             sipName_name,
1090         };
1091 
1092         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1J1lJ9J1", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, sipType_wxArrayString,&choices, &choicesState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
1093         {
1094             bool sipRes;
1095 
1096             PyErr_Clear();
1097 
1098             Py_BEGIN_ALLOW_THREADS
1099             sipRes = sipCpp->Create(parent,id,*pos,*size,*choices,style,*validator,*name);
1100             Py_END_ALLOW_THREADS
1101 
1102             if (sipOwner)
1103                 sipTransferTo(sipSelf, (PyObject *)sipOwner);
1104             else
1105                 sipTransferBack(sipSelf);
1106             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
1107             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
1108             sipReleaseType(const_cast< ::wxArrayString *>(choices),sipType_wxArrayString,choicesState);
1109             sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
1110 
1111             if (PyErr_Occurred())
1112                 return 0;
1113 
1114             return PyBool_FromLong(sipRes);
1115         }
1116     }
1117 
1118     /* Raise an exception if the arguments couldn't be parsed. */
1119     sipNoMethod(sipParseErr, sipName_Choice, sipName_Create, SIP_NULLPTR);
1120 
1121     return SIP_NULLPTR;
1122 }
1123 
1124 
1125 PyDoc_STRVAR(doc_wxChoice_GetColumns, "GetColumns() -> int\n"
1126 "\n"
1127 "Gets the number of columns in this choice item.");
1128 
1129 extern "C" {static PyObject *meth_wxChoice_GetColumns(PyObject *, PyObject *);}
meth_wxChoice_GetColumns(PyObject * sipSelf,PyObject * sipArgs)1130 static PyObject *meth_wxChoice_GetColumns(PyObject *sipSelf, PyObject *sipArgs)
1131 {
1132     PyObject *sipParseErr = SIP_NULLPTR;
1133 
1134     {
1135         const  ::wxChoice *sipCpp;
1136 
1137         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1138         {
1139             int sipRes;
1140 
1141             PyErr_Clear();
1142 
1143             Py_BEGIN_ALLOW_THREADS
1144             sipRes = sipCpp->GetColumns();
1145             Py_END_ALLOW_THREADS
1146 
1147             if (PyErr_Occurred())
1148                 return 0;
1149 
1150             return SIPLong_FromLong(sipRes);
1151         }
1152     }
1153 
1154     /* Raise an exception if the arguments couldn't be parsed. */
1155     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetColumns, SIP_NULLPTR);
1156 
1157     return SIP_NULLPTR;
1158 }
1159 
1160 
1161 PyDoc_STRVAR(doc_wxChoice_GetCurrentSelection, "GetCurrentSelection() -> int\n"
1162 "\n"
1163 "Unlike wxControlWithItems::GetSelection() which only returns the\n"
1164 "accepted selection value (the selection in the control once the user\n"
1165 "closes the dropdown list), this function returns the current\n"
1166 "selection.");
1167 
1168 extern "C" {static PyObject *meth_wxChoice_GetCurrentSelection(PyObject *, PyObject *);}
meth_wxChoice_GetCurrentSelection(PyObject * sipSelf,PyObject * sipArgs)1169 static PyObject *meth_wxChoice_GetCurrentSelection(PyObject *sipSelf, PyObject *sipArgs)
1170 {
1171     PyObject *sipParseErr = SIP_NULLPTR;
1172 
1173     {
1174         const  ::wxChoice *sipCpp;
1175 
1176         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1177         {
1178             int sipRes;
1179 
1180             PyErr_Clear();
1181 
1182             Py_BEGIN_ALLOW_THREADS
1183             sipRes = sipCpp->GetCurrentSelection();
1184             Py_END_ALLOW_THREADS
1185 
1186             if (PyErr_Occurred())
1187                 return 0;
1188 
1189             return SIPLong_FromLong(sipRes);
1190         }
1191     }
1192 
1193     /* Raise an exception if the arguments couldn't be parsed. */
1194     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetCurrentSelection, SIP_NULLPTR);
1195 
1196     return SIP_NULLPTR;
1197 }
1198 
1199 
1200 PyDoc_STRVAR(doc_wxChoice_SetColumns, "SetColumns(n=1)\n"
1201 "\n"
1202 "Sets the number of columns in this choice item.");
1203 
1204 extern "C" {static PyObject *meth_wxChoice_SetColumns(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_SetColumns(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1205 static PyObject *meth_wxChoice_SetColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1206 {
1207     PyObject *sipParseErr = SIP_NULLPTR;
1208 
1209     {
1210         int n = 1;
1211          ::wxChoice *sipCpp;
1212 
1213         static const char *sipKwdList[] = {
1214             sipName_n,
1215         };
1216 
1217         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxChoice, &sipCpp, &n))
1218         {
1219             PyErr_Clear();
1220 
1221             Py_BEGIN_ALLOW_THREADS
1222             sipCpp->SetColumns(n);
1223             Py_END_ALLOW_THREADS
1224 
1225             if (PyErr_Occurred())
1226                 return 0;
1227 
1228             Py_INCREF(Py_None);
1229             return Py_None;
1230         }
1231     }
1232 
1233     /* Raise an exception if the arguments couldn't be parsed. */
1234     sipNoMethod(sipParseErr, sipName_Choice, sipName_SetColumns, SIP_NULLPTR);
1235 
1236     return SIP_NULLPTR;
1237 }
1238 
1239 
1240 PyDoc_STRVAR(doc_wxChoice_IsSorted, "IsSorted() -> bool");
1241 
1242 extern "C" {static PyObject *meth_wxChoice_IsSorted(PyObject *, PyObject *);}
meth_wxChoice_IsSorted(PyObject * sipSelf,PyObject * sipArgs)1243 static PyObject *meth_wxChoice_IsSorted(PyObject *sipSelf, PyObject *sipArgs)
1244 {
1245     PyObject *sipParseErr = SIP_NULLPTR;
1246 
1247     {
1248         const  ::wxChoice *sipCpp;
1249 
1250         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1251         {
1252             bool sipRes;
1253 
1254             PyErr_Clear();
1255 
1256             Py_BEGIN_ALLOW_THREADS
1257             sipRes = sipCpp->IsSorted();
1258             Py_END_ALLOW_THREADS
1259 
1260             if (PyErr_Occurred())
1261                 return 0;
1262 
1263             return PyBool_FromLong(sipRes);
1264         }
1265     }
1266 
1267     /* Raise an exception if the arguments couldn't be parsed. */
1268     sipNoMethod(sipParseErr, sipName_Choice, sipName_IsSorted, SIP_NULLPTR);
1269 
1270     return SIP_NULLPTR;
1271 }
1272 
1273 
1274 PyDoc_STRVAR(doc_wxChoice_GetCount, "GetCount() -> unsignedint\n"
1275 "\n"
1276 "Returns the number of items in the control.");
1277 
1278 extern "C" {static PyObject *meth_wxChoice_GetCount(PyObject *, PyObject *);}
meth_wxChoice_GetCount(PyObject * sipSelf,PyObject * sipArgs)1279 static PyObject *meth_wxChoice_GetCount(PyObject *sipSelf, PyObject *sipArgs)
1280 {
1281     PyObject *sipParseErr = SIP_NULLPTR;
1282     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1283 
1284     {
1285         const  ::wxChoice *sipCpp;
1286 
1287         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1288         {
1289             uint sipRes;
1290 
1291             PyErr_Clear();
1292 
1293             Py_BEGIN_ALLOW_THREADS
1294             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::GetCount() : sipCpp->GetCount());
1295             Py_END_ALLOW_THREADS
1296 
1297             if (PyErr_Occurred())
1298                 return 0;
1299 
1300             return PyLong_FromUnsignedLong(sipRes);
1301         }
1302     }
1303 
1304     /* Raise an exception if the arguments couldn't be parsed. */
1305     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetCount, SIP_NULLPTR);
1306 
1307     return SIP_NULLPTR;
1308 }
1309 
1310 
1311 PyDoc_STRVAR(doc_wxChoice_GetSelection, "GetSelection() -> int\n"
1312 "\n"
1313 "Returns the index of the selected item or wxNOT_FOUND if no item is\n"
1314 "selected.");
1315 
1316 extern "C" {static PyObject *meth_wxChoice_GetSelection(PyObject *, PyObject *);}
meth_wxChoice_GetSelection(PyObject * sipSelf,PyObject * sipArgs)1317 static PyObject *meth_wxChoice_GetSelection(PyObject *sipSelf, PyObject *sipArgs)
1318 {
1319     PyObject *sipParseErr = SIP_NULLPTR;
1320     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1321 
1322     {
1323         const  ::wxChoice *sipCpp;
1324 
1325         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1326         {
1327             int sipRes;
1328 
1329             PyErr_Clear();
1330 
1331             Py_BEGIN_ALLOW_THREADS
1332             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::GetSelection() : sipCpp->GetSelection());
1333             Py_END_ALLOW_THREADS
1334 
1335             if (PyErr_Occurred())
1336                 return 0;
1337 
1338             return SIPLong_FromLong(sipRes);
1339         }
1340     }
1341 
1342     /* Raise an exception if the arguments couldn't be parsed. */
1343     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetSelection, SIP_NULLPTR);
1344 
1345     return SIP_NULLPTR;
1346 }
1347 
1348 
1349 PyDoc_STRVAR(doc_wxChoice_SetSelection, "SetSelection(n)\n"
1350 "\n"
1351 "Sets the selection to the given item n or removes the selection\n"
1352 "entirely if n == wxNOT_FOUND.");
1353 
1354 extern "C" {static PyObject *meth_wxChoice_SetSelection(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_SetSelection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1355 static PyObject *meth_wxChoice_SetSelection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1356 {
1357     PyObject *sipParseErr = SIP_NULLPTR;
1358     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1359 
1360     {
1361         int n;
1362          ::wxChoice *sipCpp;
1363 
1364         static const char *sipKwdList[] = {
1365             sipName_n,
1366         };
1367 
1368         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxChoice, &sipCpp, &n))
1369         {
1370             PyErr_Clear();
1371 
1372             Py_BEGIN_ALLOW_THREADS
1373             (sipSelfWasArg ? sipCpp-> ::wxChoice::SetSelection(n) : sipCpp->SetSelection(n));
1374             Py_END_ALLOW_THREADS
1375 
1376             if (PyErr_Occurred())
1377                 return 0;
1378 
1379             Py_INCREF(Py_None);
1380             return Py_None;
1381         }
1382     }
1383 
1384     /* Raise an exception if the arguments couldn't be parsed. */
1385     sipNoMethod(sipParseErr, sipName_Choice, sipName_SetSelection, SIP_NULLPTR);
1386 
1387     return SIP_NULLPTR;
1388 }
1389 
1390 
1391 PyDoc_STRVAR(doc_wxChoice_FindString, "FindString(string, caseSensitive=False) -> int\n"
1392 "\n"
1393 "Finds an item whose label matches the given string.");
1394 
1395 extern "C" {static PyObject *meth_wxChoice_FindString(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_FindString(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1396 static PyObject *meth_wxChoice_FindString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1397 {
1398     PyObject *sipParseErr = SIP_NULLPTR;
1399     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1400 
1401     {
1402         const  ::wxString* string;
1403         int stringState = 0;
1404         bool caseSensitive = 0;
1405         const  ::wxChoice *sipCpp;
1406 
1407         static const char *sipKwdList[] = {
1408             sipName_string,
1409             sipName_caseSensitive,
1410         };
1411 
1412         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|b", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxString,&string, &stringState, &caseSensitive))
1413         {
1414             int sipRes;
1415 
1416             PyErr_Clear();
1417 
1418             Py_BEGIN_ALLOW_THREADS
1419             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::FindString(*string,caseSensitive) : sipCpp->FindString(*string,caseSensitive));
1420             Py_END_ALLOW_THREADS
1421             sipReleaseType(const_cast< ::wxString *>(string),sipType_wxString,stringState);
1422 
1423             if (PyErr_Occurred())
1424                 return 0;
1425 
1426             return SIPLong_FromLong(sipRes);
1427         }
1428     }
1429 
1430     /* Raise an exception if the arguments couldn't be parsed. */
1431     sipNoMethod(sipParseErr, sipName_Choice, sipName_FindString, SIP_NULLPTR);
1432 
1433     return SIP_NULLPTR;
1434 }
1435 
1436 
1437 PyDoc_STRVAR(doc_wxChoice_GetString, "GetString(n) -> String\n"
1438 "\n"
1439 "Returns the label of the item with the given index.");
1440 
1441 extern "C" {static PyObject *meth_wxChoice_GetString(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_GetString(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1442 static PyObject *meth_wxChoice_GetString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1443 {
1444     PyObject *sipParseErr = SIP_NULLPTR;
1445     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1446 
1447     {
1448         uint n;
1449         const  ::wxChoice *sipCpp;
1450 
1451         static const char *sipKwdList[] = {
1452             sipName_n,
1453         };
1454 
1455         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxChoice, &sipCpp, &n))
1456         {
1457              ::wxString*sipRes;
1458 
1459             PyErr_Clear();
1460 
1461             Py_BEGIN_ALLOW_THREADS
1462             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxChoice::GetString(n) : sipCpp->GetString(n)));
1463             Py_END_ALLOW_THREADS
1464 
1465             if (PyErr_Occurred())
1466                 return 0;
1467 
1468             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1469         }
1470     }
1471 
1472     /* Raise an exception if the arguments couldn't be parsed. */
1473     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetString, SIP_NULLPTR);
1474 
1475     return SIP_NULLPTR;
1476 }
1477 
1478 
1479 PyDoc_STRVAR(doc_wxChoice_SetString, "SetString(n, string)\n"
1480 "\n"
1481 "Sets the label for the given item.");
1482 
1483 extern "C" {static PyObject *meth_wxChoice_SetString(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_SetString(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1484 static PyObject *meth_wxChoice_SetString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1485 {
1486     PyObject *sipParseErr = SIP_NULLPTR;
1487     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1488 
1489     {
1490         uint n;
1491         const  ::wxString* string;
1492         int stringState = 0;
1493          ::wxChoice *sipCpp;
1494 
1495         static const char *sipKwdList[] = {
1496             sipName_n,
1497             sipName_string,
1498         };
1499 
1500         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BuJ1", &sipSelf, sipType_wxChoice, &sipCpp, &n, sipType_wxString,&string, &stringState))
1501         {
1502             PyErr_Clear();
1503 
1504             Py_BEGIN_ALLOW_THREADS
1505             (sipSelfWasArg ? sipCpp-> ::wxChoice::SetString(n,*string) : sipCpp->SetString(n,*string));
1506             Py_END_ALLOW_THREADS
1507             sipReleaseType(const_cast< ::wxString *>(string),sipType_wxString,stringState);
1508 
1509             if (PyErr_Occurred())
1510                 return 0;
1511 
1512             Py_INCREF(Py_None);
1513             return Py_None;
1514         }
1515     }
1516 
1517     /* Raise an exception if the arguments couldn't be parsed. */
1518     sipNoMethod(sipParseErr, sipName_Choice, sipName_SetString, SIP_NULLPTR);
1519 
1520     return SIP_NULLPTR;
1521 }
1522 
1523 
1524 PyDoc_STRVAR(doc_wxChoice_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1525 
1526 extern "C" {static PyObject *meth_wxChoice_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxChoice_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1527 static PyObject *meth_wxChoice_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1528 {
1529     PyObject *sipParseErr = SIP_NULLPTR;
1530     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1531 
1532     {
1533         const  ::wxChoice *sipCpp;
1534 
1535         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1536         {
1537              ::wxPoint*sipRes;
1538 
1539             PyErr_Clear();
1540 
1541             Py_BEGIN_ALLOW_THREADS
1542             sipRes = new  ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxChoice::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1543             Py_END_ALLOW_THREADS
1544 
1545             if (PyErr_Occurred())
1546                 return 0;
1547 
1548             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1549         }
1550     }
1551 
1552     /* Raise an exception if the arguments couldn't be parsed. */
1553     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetClientAreaOrigin, doc_wxChoice_GetClientAreaOrigin);
1554 
1555     return SIP_NULLPTR;
1556 }
1557 
1558 
1559 PyDoc_STRVAR(doc_wxChoice_Validate, "Validate(self) -> bool");
1560 
1561 extern "C" {static PyObject *meth_wxChoice_Validate(PyObject *, PyObject *);}
meth_wxChoice_Validate(PyObject * sipSelf,PyObject * sipArgs)1562 static PyObject *meth_wxChoice_Validate(PyObject *sipSelf, PyObject *sipArgs)
1563 {
1564     PyObject *sipParseErr = SIP_NULLPTR;
1565     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1566 
1567     {
1568          ::wxChoice *sipCpp;
1569 
1570         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1571         {
1572             bool sipRes;
1573 
1574             PyErr_Clear();
1575 
1576             Py_BEGIN_ALLOW_THREADS
1577             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::Validate() : sipCpp->Validate());
1578             Py_END_ALLOW_THREADS
1579 
1580             if (PyErr_Occurred())
1581                 return 0;
1582 
1583             return PyBool_FromLong(sipRes);
1584         }
1585     }
1586 
1587     /* Raise an exception if the arguments couldn't be parsed. */
1588     sipNoMethod(sipParseErr, sipName_Choice, sipName_Validate, doc_wxChoice_Validate);
1589 
1590     return SIP_NULLPTR;
1591 }
1592 
1593 
1594 PyDoc_STRVAR(doc_wxChoice_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1595 
1596 extern "C" {static PyObject *meth_wxChoice_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxChoice_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1597 static PyObject *meth_wxChoice_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1598 {
1599     PyObject *sipParseErr = SIP_NULLPTR;
1600     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1601 
1602     {
1603          ::wxChoice *sipCpp;
1604 
1605         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1606         {
1607             bool sipRes;
1608 
1609             PyErr_Clear();
1610 
1611             Py_BEGIN_ALLOW_THREADS
1612             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1613             Py_END_ALLOW_THREADS
1614 
1615             if (PyErr_Occurred())
1616                 return 0;
1617 
1618             return PyBool_FromLong(sipRes);
1619         }
1620     }
1621 
1622     /* Raise an exception if the arguments couldn't be parsed. */
1623     sipNoMethod(sipParseErr, sipName_Choice, sipName_TransferDataToWindow, doc_wxChoice_TransferDataToWindow);
1624 
1625     return SIP_NULLPTR;
1626 }
1627 
1628 
1629 PyDoc_STRVAR(doc_wxChoice_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1630 
1631 extern "C" {static PyObject *meth_wxChoice_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxChoice_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1632 static PyObject *meth_wxChoice_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1633 {
1634     PyObject *sipParseErr = SIP_NULLPTR;
1635     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1636 
1637     {
1638          ::wxChoice *sipCpp;
1639 
1640         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1641         {
1642             bool sipRes;
1643 
1644             PyErr_Clear();
1645 
1646             Py_BEGIN_ALLOW_THREADS
1647             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1648             Py_END_ALLOW_THREADS
1649 
1650             if (PyErr_Occurred())
1651                 return 0;
1652 
1653             return PyBool_FromLong(sipRes);
1654         }
1655     }
1656 
1657     /* Raise an exception if the arguments couldn't be parsed. */
1658     sipNoMethod(sipParseErr, sipName_Choice, sipName_TransferDataFromWindow, doc_wxChoice_TransferDataFromWindow);
1659 
1660     return SIP_NULLPTR;
1661 }
1662 
1663 
1664 PyDoc_STRVAR(doc_wxChoice_InitDialog, "InitDialog(self)");
1665 
1666 extern "C" {static PyObject *meth_wxChoice_InitDialog(PyObject *, PyObject *);}
meth_wxChoice_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1667 static PyObject *meth_wxChoice_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1668 {
1669     PyObject *sipParseErr = SIP_NULLPTR;
1670     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1671 
1672     {
1673          ::wxChoice *sipCpp;
1674 
1675         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1676         {
1677             PyErr_Clear();
1678 
1679             Py_BEGIN_ALLOW_THREADS
1680             (sipSelfWasArg ? sipCpp-> ::wxChoice::InitDialog() : sipCpp->InitDialog());
1681             Py_END_ALLOW_THREADS
1682 
1683             if (PyErr_Occurred())
1684                 return 0;
1685 
1686             Py_INCREF(Py_None);
1687             return Py_None;
1688         }
1689     }
1690 
1691     /* Raise an exception if the arguments couldn't be parsed. */
1692     sipNoMethod(sipParseErr, sipName_Choice, sipName_InitDialog, doc_wxChoice_InitDialog);
1693 
1694     return SIP_NULLPTR;
1695 }
1696 
1697 
1698 PyDoc_STRVAR(doc_wxChoice_AcceptsFocus, "AcceptsFocus(self) -> bool");
1699 
1700 extern "C" {static PyObject *meth_wxChoice_AcceptsFocus(PyObject *, PyObject *);}
meth_wxChoice_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1701 static PyObject *meth_wxChoice_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1702 {
1703     PyObject *sipParseErr = SIP_NULLPTR;
1704     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1705 
1706     {
1707         const  ::wxChoice *sipCpp;
1708 
1709         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1710         {
1711             bool sipRes;
1712 
1713             PyErr_Clear();
1714 
1715             Py_BEGIN_ALLOW_THREADS
1716             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::AcceptsFocus() : sipCpp->AcceptsFocus());
1717             Py_END_ALLOW_THREADS
1718 
1719             if (PyErr_Occurred())
1720                 return 0;
1721 
1722             return PyBool_FromLong(sipRes);
1723         }
1724     }
1725 
1726     /* Raise an exception if the arguments couldn't be parsed. */
1727     sipNoMethod(sipParseErr, sipName_Choice, sipName_AcceptsFocus, doc_wxChoice_AcceptsFocus);
1728 
1729     return SIP_NULLPTR;
1730 }
1731 
1732 
1733 PyDoc_STRVAR(doc_wxChoice_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1734 
1735 extern "C" {static PyObject *meth_wxChoice_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxChoice_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1736 static PyObject *meth_wxChoice_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1737 {
1738     PyObject *sipParseErr = SIP_NULLPTR;
1739     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1740 
1741     {
1742         const  ::wxChoice *sipCpp;
1743 
1744         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1745         {
1746             bool sipRes;
1747 
1748             PyErr_Clear();
1749 
1750             Py_BEGIN_ALLOW_THREADS
1751             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1752             Py_END_ALLOW_THREADS
1753 
1754             if (PyErr_Occurred())
1755                 return 0;
1756 
1757             return PyBool_FromLong(sipRes);
1758         }
1759     }
1760 
1761     /* Raise an exception if the arguments couldn't be parsed. */
1762     sipNoMethod(sipParseErr, sipName_Choice, sipName_AcceptsFocusRecursively, doc_wxChoice_AcceptsFocusRecursively);
1763 
1764     return SIP_NULLPTR;
1765 }
1766 
1767 
1768 PyDoc_STRVAR(doc_wxChoice_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1769 
1770 extern "C" {static PyObject *meth_wxChoice_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxChoice_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1771 static PyObject *meth_wxChoice_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1772 {
1773     PyObject *sipParseErr = SIP_NULLPTR;
1774     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1775 
1776     {
1777         const  ::wxChoice *sipCpp;
1778 
1779         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1780         {
1781             bool sipRes;
1782 
1783             PyErr_Clear();
1784 
1785             Py_BEGIN_ALLOW_THREADS
1786             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1787             Py_END_ALLOW_THREADS
1788 
1789             if (PyErr_Occurred())
1790                 return 0;
1791 
1792             return PyBool_FromLong(sipRes);
1793         }
1794     }
1795 
1796     /* Raise an exception if the arguments couldn't be parsed. */
1797     sipNoMethod(sipParseErr, sipName_Choice, sipName_AcceptsFocusFromKeyboard, doc_wxChoice_AcceptsFocusFromKeyboard);
1798 
1799     return SIP_NULLPTR;
1800 }
1801 
1802 
1803 PyDoc_STRVAR(doc_wxChoice_AddChild, "AddChild(self, child: WindowBase)");
1804 
1805 extern "C" {static PyObject *meth_wxChoice_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1806 static PyObject *meth_wxChoice_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1807 {
1808     PyObject *sipParseErr = SIP_NULLPTR;
1809     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1810 
1811     {
1812          ::wxWindowBase* child;
1813          ::wxChoice *sipCpp;
1814 
1815         static const char *sipKwdList[] = {
1816             sipName_child,
1817         };
1818 
1819         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxWindowBase, &child))
1820         {
1821             PyErr_Clear();
1822 
1823             Py_BEGIN_ALLOW_THREADS
1824             (sipSelfWasArg ? sipCpp-> ::wxChoice::AddChild(child) : sipCpp->AddChild(child));
1825             Py_END_ALLOW_THREADS
1826 
1827             if (PyErr_Occurred())
1828                 return 0;
1829 
1830             Py_INCREF(Py_None);
1831             return Py_None;
1832         }
1833     }
1834 
1835     /* Raise an exception if the arguments couldn't be parsed. */
1836     sipNoMethod(sipParseErr, sipName_Choice, sipName_AddChild, doc_wxChoice_AddChild);
1837 
1838     return SIP_NULLPTR;
1839 }
1840 
1841 
1842 PyDoc_STRVAR(doc_wxChoice_RemoveChild, "RemoveChild(self, child: WindowBase)");
1843 
1844 extern "C" {static PyObject *meth_wxChoice_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1845 static PyObject *meth_wxChoice_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1846 {
1847     PyObject *sipParseErr = SIP_NULLPTR;
1848     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1849 
1850     {
1851          ::wxWindowBase* child;
1852          ::wxChoice *sipCpp;
1853 
1854         static const char *sipKwdList[] = {
1855             sipName_child,
1856         };
1857 
1858         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxWindowBase, &child))
1859         {
1860             PyErr_Clear();
1861 
1862             Py_BEGIN_ALLOW_THREADS
1863             (sipSelfWasArg ? sipCpp-> ::wxChoice::RemoveChild(child) : sipCpp->RemoveChild(child));
1864             Py_END_ALLOW_THREADS
1865 
1866             if (PyErr_Occurred())
1867                 return 0;
1868 
1869             Py_INCREF(Py_None);
1870             return Py_None;
1871         }
1872     }
1873 
1874     /* Raise an exception if the arguments couldn't be parsed. */
1875     sipNoMethod(sipParseErr, sipName_Choice, sipName_RemoveChild, doc_wxChoice_RemoveChild);
1876 
1877     return SIP_NULLPTR;
1878 }
1879 
1880 
1881 PyDoc_STRVAR(doc_wxChoice_InheritAttributes, "InheritAttributes(self)");
1882 
1883 extern "C" {static PyObject *meth_wxChoice_InheritAttributes(PyObject *, PyObject *);}
meth_wxChoice_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)1884 static PyObject *meth_wxChoice_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
1885 {
1886     PyObject *sipParseErr = SIP_NULLPTR;
1887     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1888 
1889     {
1890          ::wxChoice *sipCpp;
1891 
1892         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1893         {
1894             PyErr_Clear();
1895 
1896             Py_BEGIN_ALLOW_THREADS
1897             (sipSelfWasArg ? sipCpp-> ::wxChoice::InheritAttributes() : sipCpp->InheritAttributes());
1898             Py_END_ALLOW_THREADS
1899 
1900             if (PyErr_Occurred())
1901                 return 0;
1902 
1903             Py_INCREF(Py_None);
1904             return Py_None;
1905         }
1906     }
1907 
1908     /* Raise an exception if the arguments couldn't be parsed. */
1909     sipNoMethod(sipParseErr, sipName_Choice, sipName_InheritAttributes, doc_wxChoice_InheritAttributes);
1910 
1911     return SIP_NULLPTR;
1912 }
1913 
1914 
1915 PyDoc_STRVAR(doc_wxChoice_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
1916 
1917 extern "C" {static PyObject *meth_wxChoice_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxChoice_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)1918 static PyObject *meth_wxChoice_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
1919 {
1920     PyObject *sipParseErr = SIP_NULLPTR;
1921     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1922 
1923     {
1924         const  ::wxChoice *sipCpp;
1925 
1926         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1927         {
1928             bool sipRes;
1929 
1930             PyErr_Clear();
1931 
1932             Py_BEGIN_ALLOW_THREADS
1933             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::ShouldInheritColours() : sipCpp->ShouldInheritColours());
1934             Py_END_ALLOW_THREADS
1935 
1936             if (PyErr_Occurred())
1937                 return 0;
1938 
1939             return PyBool_FromLong(sipRes);
1940         }
1941     }
1942 
1943     /* Raise an exception if the arguments couldn't be parsed. */
1944     sipNoMethod(sipParseErr, sipName_Choice, sipName_ShouldInheritColours, doc_wxChoice_ShouldInheritColours);
1945 
1946     return SIP_NULLPTR;
1947 }
1948 
1949 
1950 PyDoc_STRVAR(doc_wxChoice_OnInternalIdle, "OnInternalIdle(self)");
1951 
1952 extern "C" {static PyObject *meth_wxChoice_OnInternalIdle(PyObject *, PyObject *);}
meth_wxChoice_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)1953 static PyObject *meth_wxChoice_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
1954 {
1955     PyObject *sipParseErr = SIP_NULLPTR;
1956     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1957 
1958     {
1959          ::wxChoice *sipCpp;
1960 
1961         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1962         {
1963             PyErr_Clear();
1964 
1965             Py_BEGIN_ALLOW_THREADS
1966             (sipSelfWasArg ? sipCpp-> ::wxChoice::OnInternalIdle() : sipCpp->OnInternalIdle());
1967             Py_END_ALLOW_THREADS
1968 
1969             if (PyErr_Occurred())
1970                 return 0;
1971 
1972             Py_INCREF(Py_None);
1973             return Py_None;
1974         }
1975     }
1976 
1977     /* Raise an exception if the arguments couldn't be parsed. */
1978     sipNoMethod(sipParseErr, sipName_Choice, sipName_OnInternalIdle, doc_wxChoice_OnInternalIdle);
1979 
1980     return SIP_NULLPTR;
1981 }
1982 
1983 
1984 PyDoc_STRVAR(doc_wxChoice_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
1985 
1986 extern "C" {static PyObject *meth_wxChoice_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxChoice_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)1987 static PyObject *meth_wxChoice_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
1988 {
1989     PyObject *sipParseErr = SIP_NULLPTR;
1990     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1991 
1992     {
1993          ::wxChoice *sipCpp;
1994 
1995         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
1996         {
1997              ::wxWindow*sipRes;
1998 
1999             PyErr_Clear();
2000 
2001             Py_BEGIN_ALLOW_THREADS
2002             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
2003             Py_END_ALLOW_THREADS
2004 
2005             if (PyErr_Occurred())
2006                 return 0;
2007 
2008             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
2009         }
2010     }
2011 
2012     /* Raise an exception if the arguments couldn't be parsed. */
2013     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetMainWindowOfCompositeControl, doc_wxChoice_GetMainWindowOfCompositeControl);
2014 
2015     return SIP_NULLPTR;
2016 }
2017 
2018 
2019 PyDoc_STRVAR(doc_wxChoice_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
2020 
2021 extern "C" {static PyObject *meth_wxChoice_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2022 static PyObject *meth_wxChoice_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2023 {
2024     PyObject *sipParseErr = SIP_NULLPTR;
2025     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2026 
2027     {
2028         int direction;
2029         int size;
2030         int availableOtherDir;
2031          ::wxChoice *sipCpp;
2032 
2033         static const char *sipKwdList[] = {
2034             sipName_direction,
2035             sipName_size,
2036             sipName_availableOtherDir,
2037         };
2038 
2039         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxChoice, &sipCpp, &direction, &size, &availableOtherDir))
2040         {
2041             bool sipRes;
2042 
2043             PyErr_Clear();
2044 
2045             Py_BEGIN_ALLOW_THREADS
2046             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
2047             Py_END_ALLOW_THREADS
2048 
2049             if (PyErr_Occurred())
2050                 return 0;
2051 
2052             return PyBool_FromLong(sipRes);
2053         }
2054     }
2055 
2056     /* Raise an exception if the arguments couldn't be parsed. */
2057     sipNoMethod(sipParseErr, sipName_Choice, sipName_InformFirstDirection, doc_wxChoice_InformFirstDirection);
2058 
2059     return SIP_NULLPTR;
2060 }
2061 
2062 
2063 PyDoc_STRVAR(doc_wxChoice_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
2064 
2065 extern "C" {static PyObject *meth_wxChoice_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2066 static PyObject *meth_wxChoice_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2067 {
2068     PyObject *sipParseErr = SIP_NULLPTR;
2069     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2070 
2071     {
2072         bool canFocus;
2073          ::wxChoice *sipCpp;
2074 
2075         static const char *sipKwdList[] = {
2076             sipName_canFocus,
2077         };
2078 
2079         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxChoice, &sipCpp, &canFocus))
2080         {
2081             PyErr_Clear();
2082 
2083             Py_BEGIN_ALLOW_THREADS
2084             (sipSelfWasArg ? sipCpp-> ::wxChoice::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
2085             Py_END_ALLOW_THREADS
2086 
2087             if (PyErr_Occurred())
2088                 return 0;
2089 
2090             Py_INCREF(Py_None);
2091             return Py_None;
2092         }
2093     }
2094 
2095     /* Raise an exception if the arguments couldn't be parsed. */
2096     sipNoMethod(sipParseErr, sipName_Choice, sipName_SetCanFocus, doc_wxChoice_SetCanFocus);
2097 
2098     return SIP_NULLPTR;
2099 }
2100 
2101 
2102 PyDoc_STRVAR(doc_wxChoice_Destroy, "Destroy(self) -> bool");
2103 
2104 extern "C" {static PyObject *meth_wxChoice_Destroy(PyObject *, PyObject *);}
meth_wxChoice_Destroy(PyObject * sipSelf,PyObject * sipArgs)2105 static PyObject *meth_wxChoice_Destroy(PyObject *sipSelf, PyObject *sipArgs)
2106 {
2107     PyObject *sipParseErr = SIP_NULLPTR;
2108     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2109 
2110     {
2111          ::wxChoice *sipCpp;
2112 
2113         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2114         {
2115             bool sipRes;
2116 
2117             PyErr_Clear();
2118 
2119             Py_BEGIN_ALLOW_THREADS
2120             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::Destroy() : sipCpp->Destroy());
2121             Py_END_ALLOW_THREADS
2122 
2123             if (PyErr_Occurred())
2124                 return 0;
2125 
2126             return PyBool_FromLong(sipRes);
2127         }
2128     }
2129 
2130     /* Raise an exception if the arguments couldn't be parsed. */
2131     sipNoMethod(sipParseErr, sipName_Choice, sipName_Destroy, doc_wxChoice_Destroy);
2132 
2133     return SIP_NULLPTR;
2134 }
2135 
2136 
2137 PyDoc_STRVAR(doc_wxChoice_SetValidator, "SetValidator(self, validator: Validator)");
2138 
2139 extern "C" {static PyObject *meth_wxChoice_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2140 static PyObject *meth_wxChoice_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2141 {
2142     PyObject *sipParseErr = SIP_NULLPTR;
2143     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2144 
2145     {
2146         const  ::wxValidator* validator;
2147          ::wxChoice *sipCpp;
2148 
2149         static const char *sipKwdList[] = {
2150             sipName_validator,
2151         };
2152 
2153         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxValidator, &validator))
2154         {
2155             PyErr_Clear();
2156 
2157             Py_BEGIN_ALLOW_THREADS
2158             (sipSelfWasArg ? sipCpp-> ::wxChoice::SetValidator(*validator) : sipCpp->SetValidator(*validator));
2159             Py_END_ALLOW_THREADS
2160 
2161             if (PyErr_Occurred())
2162                 return 0;
2163 
2164             Py_INCREF(Py_None);
2165             return Py_None;
2166         }
2167     }
2168 
2169     /* Raise an exception if the arguments couldn't be parsed. */
2170     sipNoMethod(sipParseErr, sipName_Choice, sipName_SetValidator, doc_wxChoice_SetValidator);
2171 
2172     return SIP_NULLPTR;
2173 }
2174 
2175 
2176 PyDoc_STRVAR(doc_wxChoice_GetValidator, "GetValidator(self) -> Validator");
2177 
2178 extern "C" {static PyObject *meth_wxChoice_GetValidator(PyObject *, PyObject *);}
meth_wxChoice_GetValidator(PyObject * sipSelf,PyObject * sipArgs)2179 static PyObject *meth_wxChoice_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
2180 {
2181     PyObject *sipParseErr = SIP_NULLPTR;
2182     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2183 
2184     {
2185          ::wxChoice *sipCpp;
2186 
2187         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2188         {
2189              ::wxValidator*sipRes;
2190 
2191             PyErr_Clear();
2192 
2193             Py_BEGIN_ALLOW_THREADS
2194             sipRes = (sipSelfWasArg ? sipCpp-> ::wxChoice::GetValidator() : sipCpp->GetValidator());
2195             Py_END_ALLOW_THREADS
2196 
2197             if (PyErr_Occurred())
2198                 return 0;
2199 
2200             return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
2201         }
2202     }
2203 
2204     /* Raise an exception if the arguments couldn't be parsed. */
2205     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetValidator, doc_wxChoice_GetValidator);
2206 
2207     return SIP_NULLPTR;
2208 }
2209 
2210 
2211 PyDoc_STRVAR(doc_wxChoice_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
2212 
2213 extern "C" {static PyObject *meth_wxChoice_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2214 static PyObject *meth_wxChoice_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2215 {
2216     PyObject *sipParseErr = SIP_NULLPTR;
2217     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2218 
2219     {
2220          ::wxEvent* event;
2221         sipwxChoice *sipCpp;
2222 
2223         static const char *sipKwdList[] = {
2224             sipName_event,
2225         };
2226 
2227         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxEvent, &event))
2228         {
2229             bool sipRes;
2230 
2231             PyErr_Clear();
2232 
2233             Py_BEGIN_ALLOW_THREADS
2234             sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
2235             Py_END_ALLOW_THREADS
2236 
2237             if (PyErr_Occurred())
2238                 return 0;
2239 
2240             return PyBool_FromLong(sipRes);
2241         }
2242     }
2243 
2244     /* Raise an exception if the arguments couldn't be parsed. */
2245     sipNoMethod(sipParseErr, sipName_Choice, sipName_ProcessEvent, doc_wxChoice_ProcessEvent);
2246 
2247     return SIP_NULLPTR;
2248 }
2249 
2250 
2251 PyDoc_STRVAR(doc_wxChoice_DoEnable, "DoEnable(self, enable: bool)");
2252 
2253 extern "C" {static PyObject *meth_wxChoice_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2254 static PyObject *meth_wxChoice_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2255 {
2256     PyObject *sipParseErr = SIP_NULLPTR;
2257     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2258 
2259     {
2260         bool enable;
2261         sipwxChoice *sipCpp;
2262 
2263         static const char *sipKwdList[] = {
2264             sipName_enable,
2265         };
2266 
2267         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxChoice, &sipCpp, &enable))
2268         {
2269             PyErr_Clear();
2270 
2271             Py_BEGIN_ALLOW_THREADS
2272             sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
2273             Py_END_ALLOW_THREADS
2274 
2275             if (PyErr_Occurred())
2276                 return 0;
2277 
2278             Py_INCREF(Py_None);
2279             return Py_None;
2280         }
2281     }
2282 
2283     /* Raise an exception if the arguments couldn't be parsed. */
2284     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoEnable, doc_wxChoice_DoEnable);
2285 
2286     return SIP_NULLPTR;
2287 }
2288 
2289 
2290 PyDoc_STRVAR(doc_wxChoice_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
2291 
2292 extern "C" {static PyObject *meth_wxChoice_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2293 static PyObject *meth_wxChoice_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2294 {
2295     PyObject *sipParseErr = SIP_NULLPTR;
2296     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2297 
2298     {
2299         int x;
2300         int y;
2301         const sipwxChoice *sipCpp;
2302 
2303         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2304         {
2305             PyErr_Clear();
2306 
2307             Py_BEGIN_ALLOW_THREADS
2308             sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
2309             Py_END_ALLOW_THREADS
2310 
2311             if (PyErr_Occurred())
2312                 return 0;
2313 
2314             return sipBuildResult(0,"(ii)",x,y);
2315         }
2316     }
2317 
2318     /* Raise an exception if the arguments couldn't be parsed. */
2319     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetPosition, doc_wxChoice_DoGetPosition);
2320 
2321     return SIP_NULLPTR;
2322 }
2323 
2324 
2325 PyDoc_STRVAR(doc_wxChoice_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
2326 
2327 extern "C" {static PyObject *meth_wxChoice_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2328 static PyObject *meth_wxChoice_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2329 {
2330     PyObject *sipParseErr = SIP_NULLPTR;
2331     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2332 
2333     {
2334         int width;
2335         int height;
2336         const sipwxChoice *sipCpp;
2337 
2338         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2339         {
2340             PyErr_Clear();
2341 
2342             Py_BEGIN_ALLOW_THREADS
2343             sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
2344             Py_END_ALLOW_THREADS
2345 
2346             if (PyErr_Occurred())
2347                 return 0;
2348 
2349             return sipBuildResult(0,"(ii)",width,height);
2350         }
2351     }
2352 
2353     /* Raise an exception if the arguments couldn't be parsed. */
2354     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetSize, doc_wxChoice_DoGetSize);
2355 
2356     return SIP_NULLPTR;
2357 }
2358 
2359 
2360 PyDoc_STRVAR(doc_wxChoice_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
2361 
2362 extern "C" {static PyObject *meth_wxChoice_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2363 static PyObject *meth_wxChoice_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2364 {
2365     PyObject *sipParseErr = SIP_NULLPTR;
2366     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2367 
2368     {
2369         int width;
2370         int height;
2371         const sipwxChoice *sipCpp;
2372 
2373         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2374         {
2375             PyErr_Clear();
2376 
2377             Py_BEGIN_ALLOW_THREADS
2378             sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
2379             Py_END_ALLOW_THREADS
2380 
2381             if (PyErr_Occurred())
2382                 return 0;
2383 
2384             return sipBuildResult(0,"(ii)",width,height);
2385         }
2386     }
2387 
2388     /* Raise an exception if the arguments couldn't be parsed. */
2389     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetClientSize, doc_wxChoice_DoGetClientSize);
2390 
2391     return SIP_NULLPTR;
2392 }
2393 
2394 
2395 PyDoc_STRVAR(doc_wxChoice_DoGetBestSize, "DoGetBestSize(self) -> Size");
2396 
2397 extern "C" {static PyObject *meth_wxChoice_DoGetBestSize(PyObject *, PyObject *);}
meth_wxChoice_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)2398 static PyObject *meth_wxChoice_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
2399 {
2400     PyObject *sipParseErr = SIP_NULLPTR;
2401     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2402 
2403     {
2404         const sipwxChoice *sipCpp;
2405 
2406         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2407         {
2408              ::wxSize*sipRes;
2409 
2410             PyErr_Clear();
2411 
2412             Py_BEGIN_ALLOW_THREADS
2413             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
2414             Py_END_ALLOW_THREADS
2415 
2416             if (PyErr_Occurred())
2417                 return 0;
2418 
2419             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2420         }
2421     }
2422 
2423     /* Raise an exception if the arguments couldn't be parsed. */
2424     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetBestSize, doc_wxChoice_DoGetBestSize);
2425 
2426     return SIP_NULLPTR;
2427 }
2428 
2429 
2430 PyDoc_STRVAR(doc_wxChoice_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
2431 
2432 extern "C" {static PyObject *meth_wxChoice_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxChoice_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)2433 static PyObject *meth_wxChoice_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
2434 {
2435     PyObject *sipParseErr = SIP_NULLPTR;
2436     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2437 
2438     {
2439         const sipwxChoice *sipCpp;
2440 
2441         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2442         {
2443              ::wxSize*sipRes;
2444 
2445             PyErr_Clear();
2446 
2447             Py_BEGIN_ALLOW_THREADS
2448             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2449             Py_END_ALLOW_THREADS
2450 
2451             if (PyErr_Occurred())
2452                 return 0;
2453 
2454             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2455         }
2456     }
2457 
2458     /* Raise an exception if the arguments couldn't be parsed. */
2459     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetBestClientSize, doc_wxChoice_DoGetBestClientSize);
2460 
2461     return SIP_NULLPTR;
2462 }
2463 
2464 
2465 PyDoc_STRVAR(doc_wxChoice_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2466 
2467 extern "C" {static PyObject *meth_wxChoice_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2468 static PyObject *meth_wxChoice_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2469 {
2470     PyObject *sipParseErr = SIP_NULLPTR;
2471     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2472 
2473     {
2474         int x;
2475         int y;
2476         int width;
2477         int height;
2478         int sizeFlags;
2479         sipwxChoice *sipCpp;
2480 
2481         static const char *sipKwdList[] = {
2482             sipName_x,
2483             sipName_y,
2484             sipName_width,
2485             sipName_height,
2486             sipName_sizeFlags,
2487         };
2488 
2489         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxChoice, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2490         {
2491             PyErr_Clear();
2492 
2493             Py_BEGIN_ALLOW_THREADS
2494             sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2495             Py_END_ALLOW_THREADS
2496 
2497             if (PyErr_Occurred())
2498                 return 0;
2499 
2500             Py_INCREF(Py_None);
2501             return Py_None;
2502         }
2503     }
2504 
2505     /* Raise an exception if the arguments couldn't be parsed. */
2506     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoSetSize, doc_wxChoice_DoSetSize);
2507 
2508     return SIP_NULLPTR;
2509 }
2510 
2511 
2512 PyDoc_STRVAR(doc_wxChoice_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2513 
2514 extern "C" {static PyObject *meth_wxChoice_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2515 static PyObject *meth_wxChoice_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2516 {
2517     PyObject *sipParseErr = SIP_NULLPTR;
2518     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2519 
2520     {
2521         int width;
2522         int height;
2523         sipwxChoice *sipCpp;
2524 
2525         static const char *sipKwdList[] = {
2526             sipName_width,
2527             sipName_height,
2528         };
2529 
2530         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxChoice, &sipCpp, &width, &height))
2531         {
2532             PyErr_Clear();
2533 
2534             Py_BEGIN_ALLOW_THREADS
2535             sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2536             Py_END_ALLOW_THREADS
2537 
2538             if (PyErr_Occurred())
2539                 return 0;
2540 
2541             Py_INCREF(Py_None);
2542             return Py_None;
2543         }
2544     }
2545 
2546     /* Raise an exception if the arguments couldn't be parsed. */
2547     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoSetClientSize, doc_wxChoice_DoSetClientSize);
2548 
2549     return SIP_NULLPTR;
2550 }
2551 
2552 
2553 PyDoc_STRVAR(doc_wxChoice_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2554 
2555 extern "C" {static PyObject *meth_wxChoice_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2556 static PyObject *meth_wxChoice_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2557 {
2558     PyObject *sipParseErr = SIP_NULLPTR;
2559     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2560 
2561     {
2562         int minW;
2563         int minH;
2564         int maxW;
2565         int maxH;
2566         int incW;
2567         int incH;
2568         sipwxChoice *sipCpp;
2569 
2570         static const char *sipKwdList[] = {
2571             sipName_minW,
2572             sipName_minH,
2573             sipName_maxW,
2574             sipName_maxH,
2575             sipName_incW,
2576             sipName_incH,
2577         };
2578 
2579         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxChoice, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2580         {
2581             PyErr_Clear();
2582 
2583             Py_BEGIN_ALLOW_THREADS
2584             sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2585             Py_END_ALLOW_THREADS
2586 
2587             if (PyErr_Occurred())
2588                 return 0;
2589 
2590             Py_INCREF(Py_None);
2591             return Py_None;
2592         }
2593     }
2594 
2595     /* Raise an exception if the arguments couldn't be parsed. */
2596     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoSetSizeHints, doc_wxChoice_DoSetSizeHints);
2597 
2598     return SIP_NULLPTR;
2599 }
2600 
2601 
2602 PyDoc_STRVAR(doc_wxChoice_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2603 
2604 extern "C" {static PyObject *meth_wxChoice_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxChoice_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2605 static PyObject *meth_wxChoice_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2606 {
2607     PyObject *sipParseErr = SIP_NULLPTR;
2608     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2609 
2610     {
2611         const sipwxChoice *sipCpp;
2612 
2613         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2614         {
2615              ::wxSize*sipRes;
2616 
2617             PyErr_Clear();
2618 
2619             Py_BEGIN_ALLOW_THREADS
2620             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2621             Py_END_ALLOW_THREADS
2622 
2623             if (PyErr_Occurred())
2624                 return 0;
2625 
2626             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2627         }
2628     }
2629 
2630     /* Raise an exception if the arguments couldn't be parsed. */
2631     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoGetBorderSize, doc_wxChoice_DoGetBorderSize);
2632 
2633     return SIP_NULLPTR;
2634 }
2635 
2636 
2637 PyDoc_STRVAR(doc_wxChoice_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2638 
2639 extern "C" {static PyObject *meth_wxChoice_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2640 static PyObject *meth_wxChoice_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2641 {
2642     PyObject *sipParseErr = SIP_NULLPTR;
2643     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2644 
2645     {
2646         int x;
2647         int y;
2648         int width;
2649         int height;
2650         sipwxChoice *sipCpp;
2651 
2652         static const char *sipKwdList[] = {
2653             sipName_x,
2654             sipName_y,
2655             sipName_width,
2656             sipName_height,
2657         };
2658 
2659         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxChoice, &sipCpp, &x, &y, &width, &height))
2660         {
2661             PyErr_Clear();
2662 
2663             Py_BEGIN_ALLOW_THREADS
2664             sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2665             Py_END_ALLOW_THREADS
2666 
2667             if (PyErr_Occurred())
2668                 return 0;
2669 
2670             Py_INCREF(Py_None);
2671             return Py_None;
2672         }
2673     }
2674 
2675     /* Raise an exception if the arguments couldn't be parsed. */
2676     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoMoveWindow, doc_wxChoice_DoMoveWindow);
2677 
2678     return SIP_NULLPTR;
2679 }
2680 
2681 
2682 PyDoc_STRVAR(doc_wxChoice_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2683 
2684 extern "C" {static PyObject *meth_wxChoice_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2685 static PyObject *meth_wxChoice_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2686 {
2687     PyObject *sipParseErr = SIP_NULLPTR;
2688     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2689 
2690     {
2691          ::wxWindowVariant variant;
2692         sipwxChoice *sipCpp;
2693 
2694         static const char *sipKwdList[] = {
2695             sipName_variant,
2696         };
2697 
2698         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxWindowVariant, &variant))
2699         {
2700             PyErr_Clear();
2701 
2702             Py_BEGIN_ALLOW_THREADS
2703             sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2704             Py_END_ALLOW_THREADS
2705 
2706             if (PyErr_Occurred())
2707                 return 0;
2708 
2709             Py_INCREF(Py_None);
2710             return Py_None;
2711         }
2712     }
2713 
2714     /* Raise an exception if the arguments couldn't be parsed. */
2715     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoSetWindowVariant, doc_wxChoice_DoSetWindowVariant);
2716 
2717     return SIP_NULLPTR;
2718 }
2719 
2720 
2721 PyDoc_STRVAR(doc_wxChoice_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2722 
2723 extern "C" {static PyObject *meth_wxChoice_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxChoice_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2724 static PyObject *meth_wxChoice_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2725 {
2726     PyObject *sipParseErr = SIP_NULLPTR;
2727     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2728 
2729     {
2730         const sipwxChoice *sipCpp;
2731 
2732         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2733         {
2734              ::wxBorder sipRes;
2735 
2736             PyErr_Clear();
2737 
2738             Py_BEGIN_ALLOW_THREADS
2739             sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2740             Py_END_ALLOW_THREADS
2741 
2742             if (PyErr_Occurred())
2743                 return 0;
2744 
2745             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2746         }
2747     }
2748 
2749     /* Raise an exception if the arguments couldn't be parsed. */
2750     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetDefaultBorder, doc_wxChoice_GetDefaultBorder);
2751 
2752     return SIP_NULLPTR;
2753 }
2754 
2755 
2756 PyDoc_STRVAR(doc_wxChoice_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2757 
2758 extern "C" {static PyObject *meth_wxChoice_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxChoice_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2759 static PyObject *meth_wxChoice_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2760 {
2761     PyObject *sipParseErr = SIP_NULLPTR;
2762     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2763 
2764     {
2765         const sipwxChoice *sipCpp;
2766 
2767         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2768         {
2769              ::wxBorder sipRes;
2770 
2771             PyErr_Clear();
2772 
2773             Py_BEGIN_ALLOW_THREADS
2774             sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2775             Py_END_ALLOW_THREADS
2776 
2777             if (PyErr_Occurred())
2778                 return 0;
2779 
2780             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2781         }
2782     }
2783 
2784     /* Raise an exception if the arguments couldn't be parsed. */
2785     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetDefaultBorderForControl, doc_wxChoice_GetDefaultBorderForControl);
2786 
2787     return SIP_NULLPTR;
2788 }
2789 
2790 
2791 PyDoc_STRVAR(doc_wxChoice_DoFreeze, "DoFreeze(self)");
2792 
2793 extern "C" {static PyObject *meth_wxChoice_DoFreeze(PyObject *, PyObject *);}
meth_wxChoice_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2794 static PyObject *meth_wxChoice_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2795 {
2796     PyObject *sipParseErr = SIP_NULLPTR;
2797     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2798 
2799     {
2800         sipwxChoice *sipCpp;
2801 
2802         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2803         {
2804             PyErr_Clear();
2805 
2806             Py_BEGIN_ALLOW_THREADS
2807             sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
2808             Py_END_ALLOW_THREADS
2809 
2810             if (PyErr_Occurred())
2811                 return 0;
2812 
2813             Py_INCREF(Py_None);
2814             return Py_None;
2815         }
2816     }
2817 
2818     /* Raise an exception if the arguments couldn't be parsed. */
2819     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoFreeze, doc_wxChoice_DoFreeze);
2820 
2821     return SIP_NULLPTR;
2822 }
2823 
2824 
2825 PyDoc_STRVAR(doc_wxChoice_DoThaw, "DoThaw(self)");
2826 
2827 extern "C" {static PyObject *meth_wxChoice_DoThaw(PyObject *, PyObject *);}
meth_wxChoice_DoThaw(PyObject * sipSelf,PyObject * sipArgs)2828 static PyObject *meth_wxChoice_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
2829 {
2830     PyObject *sipParseErr = SIP_NULLPTR;
2831     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2832 
2833     {
2834         sipwxChoice *sipCpp;
2835 
2836         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2837         {
2838             PyErr_Clear();
2839 
2840             Py_BEGIN_ALLOW_THREADS
2841             sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
2842             Py_END_ALLOW_THREADS
2843 
2844             if (PyErr_Occurred())
2845                 return 0;
2846 
2847             Py_INCREF(Py_None);
2848             return Py_None;
2849         }
2850     }
2851 
2852     /* Raise an exception if the arguments couldn't be parsed. */
2853     sipNoMethod(sipParseErr, sipName_Choice, sipName_DoThaw, doc_wxChoice_DoThaw);
2854 
2855     return SIP_NULLPTR;
2856 }
2857 
2858 
2859 PyDoc_STRVAR(doc_wxChoice_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
2860 
2861 extern "C" {static PyObject *meth_wxChoice_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxChoice_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)2862 static PyObject *meth_wxChoice_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
2863 {
2864     PyObject *sipParseErr = SIP_NULLPTR;
2865     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2866 
2867     {
2868         sipwxChoice *sipCpp;
2869 
2870         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxChoice, &sipCpp))
2871         {
2872             bool sipRes;
2873 
2874             PyErr_Clear();
2875 
2876             Py_BEGIN_ALLOW_THREADS
2877             sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
2878             Py_END_ALLOW_THREADS
2879 
2880             if (PyErr_Occurred())
2881                 return 0;
2882 
2883             return PyBool_FromLong(sipRes);
2884         }
2885     }
2886 
2887     /* Raise an exception if the arguments couldn't be parsed. */
2888     sipNoMethod(sipParseErr, sipName_Choice, sipName_HasTransparentBackground, doc_wxChoice_HasTransparentBackground);
2889 
2890     return SIP_NULLPTR;
2891 }
2892 
2893 
2894 PyDoc_STRVAR(doc_wxChoice_TryBefore, "TryBefore(self, event: Event) -> bool");
2895 
2896 extern "C" {static PyObject *meth_wxChoice_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2897 static PyObject *meth_wxChoice_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2898 {
2899     PyObject *sipParseErr = SIP_NULLPTR;
2900     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2901 
2902     {
2903          ::wxEvent* event;
2904         sipwxChoice *sipCpp;
2905 
2906         static const char *sipKwdList[] = {
2907             sipName_event,
2908         };
2909 
2910         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxEvent, &event))
2911         {
2912             bool sipRes;
2913 
2914             PyErr_Clear();
2915 
2916             Py_BEGIN_ALLOW_THREADS
2917             sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
2918             Py_END_ALLOW_THREADS
2919 
2920             if (PyErr_Occurred())
2921                 return 0;
2922 
2923             return PyBool_FromLong(sipRes);
2924         }
2925     }
2926 
2927     /* Raise an exception if the arguments couldn't be parsed. */
2928     sipNoMethod(sipParseErr, sipName_Choice, sipName_TryBefore, doc_wxChoice_TryBefore);
2929 
2930     return SIP_NULLPTR;
2931 }
2932 
2933 
2934 PyDoc_STRVAR(doc_wxChoice_TryAfter, "TryAfter(self, event: Event) -> bool");
2935 
2936 extern "C" {static PyObject *meth_wxChoice_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2937 static PyObject *meth_wxChoice_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2938 {
2939     PyObject *sipParseErr = SIP_NULLPTR;
2940     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2941 
2942     {
2943          ::wxEvent* event;
2944         sipwxChoice *sipCpp;
2945 
2946         static const char *sipKwdList[] = {
2947             sipName_event,
2948         };
2949 
2950         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxChoice, &sipCpp, sipType_wxEvent, &event))
2951         {
2952             bool sipRes;
2953 
2954             PyErr_Clear();
2955 
2956             Py_BEGIN_ALLOW_THREADS
2957             sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
2958             Py_END_ALLOW_THREADS
2959 
2960             if (PyErr_Occurred())
2961                 return 0;
2962 
2963             return PyBool_FromLong(sipRes);
2964         }
2965     }
2966 
2967     /* Raise an exception if the arguments couldn't be parsed. */
2968     sipNoMethod(sipParseErr, sipName_Choice, sipName_TryAfter, doc_wxChoice_TryAfter);
2969 
2970     return SIP_NULLPTR;
2971 }
2972 
2973 
2974 PyDoc_STRVAR(doc_wxChoice_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
2975 
2976 extern "C" {static PyObject *meth_wxChoice_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxChoice_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2977 static PyObject *meth_wxChoice_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2978 {
2979     PyObject *sipParseErr = SIP_NULLPTR;
2980 
2981     {
2982          ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
2983 
2984         static const char *sipKwdList[] = {
2985             sipName_variant,
2986         };
2987 
2988         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
2989         {
2990              ::wxVisualAttributes*sipRes;
2991 
2992         if (!wxPyCheckForApp()) return NULL;
2993 
2994             PyErr_Clear();
2995 
2996             Py_BEGIN_ALLOW_THREADS
2997             sipRes = new  ::wxVisualAttributes( ::wxChoice::GetClassDefaultAttributes(variant));
2998             Py_END_ALLOW_THREADS
2999 
3000             if (PyErr_Occurred())
3001                 return 0;
3002 
3003             return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
3004         }
3005     }
3006 
3007     /* Raise an exception if the arguments couldn't be parsed. */
3008     sipNoMethod(sipParseErr, sipName_Choice, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
3009 
3010     return SIP_NULLPTR;
3011 }
3012 
3013 
3014 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
3015 extern "C" {static void *cast_wxChoice(void *, const sipTypeDef *);}
cast_wxChoice(void * sipCppV,const sipTypeDef * targetType)3016 static void *cast_wxChoice(void *sipCppV, const sipTypeDef *targetType)
3017 {
3018      ::wxChoice *sipCpp = reinterpret_cast< ::wxChoice *>(sipCppV);
3019 
3020     if (targetType == sipType_wxControl)
3021         return static_cast< ::wxControl *>(sipCpp);
3022 
3023     if (targetType == sipType_wxWindow)
3024         return static_cast< ::wxWindow *>(sipCpp);
3025 
3026     if (targetType == sipType_wxWindowBase)
3027         return static_cast< ::wxWindowBase *>(sipCpp);
3028 
3029     if (targetType == sipType_wxEvtHandler)
3030         return static_cast< ::wxEvtHandler *>(sipCpp);
3031 
3032     if (targetType == sipType_wxObject)
3033         return static_cast< ::wxObject *>(sipCpp);
3034 
3035     if (targetType == sipType_wxTrackable)
3036         return static_cast< ::wxTrackable *>(sipCpp);
3037 
3038     if (targetType == sipType_wxItemContainer)
3039         return static_cast< ::wxItemContainer *>(sipCpp);
3040 
3041     if (targetType == sipType_wxItemContainerImmutable)
3042         return static_cast< ::wxItemContainerImmutable *>(sipCpp);
3043 
3044     return sipCppV;
3045 }
3046 
3047 
3048 /* Call the instance's destructor. */
3049 extern "C" {static void release_wxChoice(void *, int);}
release_wxChoice(void * sipCppV,int sipState)3050 static void release_wxChoice(void *sipCppV, int sipState)
3051 {
3052     Py_BEGIN_ALLOW_THREADS
3053 
3054     if (sipState & SIP_DERIVED_CLASS)
3055         delete reinterpret_cast<sipwxChoice *>(sipCppV);
3056     else
3057         delete reinterpret_cast< ::wxChoice *>(sipCppV);
3058 
3059     Py_END_ALLOW_THREADS
3060 }
3061 
3062 
3063 extern "C" {static void dealloc_wxChoice(sipSimpleWrapper *);}
dealloc_wxChoice(sipSimpleWrapper * sipSelf)3064 static void dealloc_wxChoice(sipSimpleWrapper *sipSelf)
3065 {
3066     if (sipIsDerivedClass(sipSelf))
3067         reinterpret_cast<sipwxChoice *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
3068 
3069     if (sipIsOwnedByPython(sipSelf))
3070     {
3071         release_wxChoice(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
3072     }
3073 }
3074 
3075 
3076 extern "C" {static void *init_type_wxChoice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxChoice(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)3077 static void *init_type_wxChoice(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
3078 {
3079     sipwxChoice *sipCpp = SIP_NULLPTR;
3080 
3081     {
3082         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
3083         {
3084 
3085         if (!wxPyCheckForApp()) return NULL;
3086 
3087             PyErr_Clear();
3088 
3089             Py_BEGIN_ALLOW_THREADS
3090             sipCpp = new sipwxChoice();
3091             Py_END_ALLOW_THREADS
3092 
3093             if (PyErr_Occurred())
3094             {
3095                 delete sipCpp;
3096                 return SIP_NULLPTR;
3097             }
3098 
3099             sipCpp->sipPySelf = sipSelf;
3100 
3101             return sipCpp;
3102         }
3103     }
3104 
3105     {
3106          ::wxWindow* parent;
3107          ::wxWindowID id = wxID_ANY;
3108         const  ::wxPoint& posdef = wxDefaultPosition;
3109         const  ::wxPoint* pos = &posdef;
3110         int posState = 0;
3111         const  ::wxSize& sizedef = wxDefaultSize;
3112         const  ::wxSize* size = &sizedef;
3113         int sizeState = 0;
3114         const  ::wxArrayString& choicesdef = wxArrayString();
3115         const  ::wxArrayString* choices = &choicesdef;
3116         int choicesState = 0;
3117         long style = 0;
3118         const  ::wxValidator& validatordef = wxDefaultValidator;
3119         const  ::wxValidator* validator = &validatordef;
3120         const  ::wxString& namedef = wxChoiceNameStr;
3121         const  ::wxString* name = &namedef;
3122         int nameState = 0;
3123 
3124         static const char *sipKwdList[] = {
3125             sipName_parent,
3126             sipName_id,
3127             sipName_pos,
3128             sipName_size,
3129             sipName_choices,
3130             sipName_style,
3131             sipName_validator,
3132             sipName_name,
3133         };
3134 
3135         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1J1lJ9J1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, sipType_wxArrayString,&choices, &choicesState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
3136         {
3137 
3138         if (!wxPyCheckForApp()) return NULL;
3139 
3140             PyErr_Clear();
3141 
3142             Py_BEGIN_ALLOW_THREADS
3143             sipCpp = new sipwxChoice(parent,id,*pos,*size,*choices,style,*validator,*name);
3144             Py_END_ALLOW_THREADS
3145             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
3146             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
3147             sipReleaseType(const_cast< ::wxArrayString *>(choices),sipType_wxArrayString,choicesState);
3148             sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
3149 
3150             if (PyErr_Occurred())
3151             {
3152                 delete sipCpp;
3153                 return SIP_NULLPTR;
3154             }
3155 
3156             sipCpp->sipPySelf = sipSelf;
3157 
3158             return sipCpp;
3159         }
3160     }
3161 
3162     return SIP_NULLPTR;
3163 }
3164 
3165 
3166 /* Define this type's super-types. */
3167 static sipEncodedTypeDef supers_wxChoice[] = {{89, 255, 0}, {269, 255, 1}};
3168 
3169 
3170 static PyMethodDef methods_wxChoice[] = {
3171     {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxChoice_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_AcceptsFocus)},
3172     {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxChoice_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_AcceptsFocusFromKeyboard)},
3173     {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxChoice_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_AcceptsFocusRecursively)},
3174     {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxChoice_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_AddChild)},
3175     {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxChoice_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_Create)},
3176     {SIP_MLNAME_CAST(sipName_Destroy), meth_wxChoice_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_Destroy)},
3177     {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxChoice_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoEnable)},
3178     {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxChoice_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_DoFreeze)},
3179     {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxChoice_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_DoGetBestClientSize)},
3180     {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxChoice_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_DoGetBestSize)},
3181     {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxChoice_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_DoGetBorderSize)},
3182     {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxChoice_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoGetClientSize)},
3183     {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxChoice_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoGetPosition)},
3184     {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxChoice_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoGetSize)},
3185     {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxChoice_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoMoveWindow)},
3186     {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxChoice_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoSetClientSize)},
3187     {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxChoice_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoSetSize)},
3188     {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxChoice_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoSetSizeHints)},
3189     {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxChoice_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_DoSetWindowVariant)},
3190     {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxChoice_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_DoThaw)},
3191     {SIP_MLNAME_CAST(sipName_FindString), SIP_MLMETH_CAST(meth_wxChoice_FindString), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_FindString)},
3192     {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxChoice_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_GetClassDefaultAttributes)},
3193     {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxChoice_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetClientAreaOrigin)},
3194     {SIP_MLNAME_CAST(sipName_GetColumns), meth_wxChoice_GetColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetColumns)},
3195     {SIP_MLNAME_CAST(sipName_GetCount), meth_wxChoice_GetCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetCount)},
3196     {SIP_MLNAME_CAST(sipName_GetCurrentSelection), meth_wxChoice_GetCurrentSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetCurrentSelection)},
3197     {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxChoice_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetDefaultBorder)},
3198     {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxChoice_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetDefaultBorderForControl)},
3199     {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxChoice_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetMainWindowOfCompositeControl)},
3200     {SIP_MLNAME_CAST(sipName_GetSelection), meth_wxChoice_GetSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetSelection)},
3201     {SIP_MLNAME_CAST(sipName_GetString), SIP_MLMETH_CAST(meth_wxChoice_GetString), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_GetString)},
3202     {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxChoice_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_GetValidator)},
3203     {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxChoice_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_HasTransparentBackground)},
3204     {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxChoice_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_InformFirstDirection)},
3205     {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxChoice_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_InheritAttributes)},
3206     {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxChoice_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_InitDialog)},
3207     {SIP_MLNAME_CAST(sipName_IsSorted), meth_wxChoice_IsSorted, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_IsSorted)},
3208     {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxChoice_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_OnInternalIdle)},
3209     {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxChoice_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_ProcessEvent)},
3210     {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxChoice_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_RemoveChild)},
3211     {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxChoice_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
3212     {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxChoice_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_SetCanFocus)},
3213     {SIP_MLNAME_CAST(sipName_SetColumns), SIP_MLMETH_CAST(meth_wxChoice_SetColumns), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_SetColumns)},
3214     {SIP_MLNAME_CAST(sipName_SetSelection), SIP_MLMETH_CAST(meth_wxChoice_SetSelection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_SetSelection)},
3215     {SIP_MLNAME_CAST(sipName_SetString), SIP_MLMETH_CAST(meth_wxChoice_SetString), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_SetString)},
3216     {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxChoice_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_SetValidator)},
3217     {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxChoice_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_ShouldInheritColours)},
3218     {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxChoice_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_TransferDataFromWindow)},
3219     {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxChoice_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_TransferDataToWindow)},
3220     {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxChoice_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_TryAfter)},
3221     {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxChoice_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxChoice_TryBefore)},
3222     {SIP_MLNAME_CAST(sipName_Validate), meth_wxChoice_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxChoice_Validate)}
3223 };
3224 
3225 sipVariableDef variables_wxChoice[] = {
3226     {PropertyVariable, sipName_Selection, &methods_wxChoice[29], &methods_wxChoice[43], SIP_NULLPTR, SIP_NULLPTR},
3227     {PropertyVariable, sipName_CurrentSelection, &methods_wxChoice[25], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3228     {PropertyVariable, sipName_Count, &methods_wxChoice[24], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3229     {PropertyVariable, sipName_Columns, &methods_wxChoice[23], &methods_wxChoice[42], SIP_NULLPTR, SIP_NULLPTR},
3230 };
3231 
3232 PyDoc_STRVAR(doc_wxChoice, "Choice()\n"
3233 "Choice(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, choices=[], style=0, validator=DefaultValidator, name=ChoiceNameStr)\n"
3234 "\n"
3235 "A choice item is used to select one of a list of strings.");
3236 
3237 
3238 sipClassTypeDef sipTypeDef__core_wxChoice = {
3239     {
3240         -1,
3241         SIP_NULLPTR,
3242         SIP_NULLPTR,
3243         SIP_TYPE_SCC|SIP_TYPE_CLASS,
3244         sipNameNr_wxChoice,
3245         {SIP_NULLPTR},
3246         SIP_NULLPTR
3247     },
3248     {
3249         sipNameNr_Choice,
3250         {0, 0, 1},
3251         52, methods_wxChoice,
3252         0, SIP_NULLPTR,
3253         4, variables_wxChoice,
3254         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3255     },
3256     doc_wxChoice,
3257     -1,
3258     -1,
3259     supers_wxChoice,
3260     SIP_NULLPTR,
3261     init_type_wxChoice,
3262     SIP_NULLPTR,
3263     SIP_NULLPTR,
3264 #if PY_MAJOR_VERSION >= 3
3265     SIP_NULLPTR,
3266     SIP_NULLPTR,
3267 #else
3268     SIP_NULLPTR,
3269     SIP_NULLPTR,
3270     SIP_NULLPTR,
3271     SIP_NULLPTR,
3272 #endif
3273     dealloc_wxChoice,
3274     SIP_NULLPTR,
3275     SIP_NULLPTR,
3276     SIP_NULLPTR,
3277     release_wxChoice,
3278     cast_wxChoice,
3279     SIP_NULLPTR,
3280     SIP_NULLPTR,
3281     SIP_NULLPTR,
3282     SIP_NULLPTR,
3283     SIP_NULLPTR,
3284     SIP_NULLPTR
3285 };
3286