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/app.h>
13
14 #include <wx/event.h>
15 #include <wx/window.h>
16 #include <wx/vidmode.h>
17 #include <wx/app.h>
18 #include <wx/apptrait.h>
19 #include <wx/evtloop.h>
20 #include <wx/object.h>
21 #include <wx/eventfilter.h>
22 #include <wx/event.h>
23 #include <wx/object.h>
24 #include <wx/object.h>
25
26 #ifdef __WXGTK__
27 #include <gdk/gdkx.h>
28 #include <gtk/gtk.h>
29 #endif
30
31 #ifdef __WXMAC__
32 #include <wx/osx/private.h>
33 #endif
34
35 #ifdef __WXMSW__
36 #include <wx/msw/private.h>
37 #include <wx/msw/winundef.h>
38 #include <wx/msw/msvcrt.h>
39 #endif
40
41
42 #ifdef __WXMSW__ // If building for Windows...
43
44 //----------------------------------------------------------------------
45 // This gets run when the DLL is loaded. We just need to save the
46 // instance handle.
47 //----------------------------------------------------------------------
48
49 extern "C"
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)50 BOOL WINAPI DllMain(
51 HINSTANCE hinstDLL, // handle to DLL module
52 DWORD fdwReason, // reason for calling function
53 LPVOID lpvReserved // reserved
54 )
55 {
56 // If wxPython is embedded in another wxWidgets app then
57 // the instance has already been set.
58 if (! wxGetInstance())
59 wxSetInstance(hinstDLL);
60
61 return TRUE;
62 }
63 #endif // __WXMSW__
64
65 //----------------------------------------------------------------------
66 // Classes for implementing the wxp main application shell.
67 //----------------------------------------------------------------------
68
69
70 class wxPyApp : public wxApp
71 {
72 DECLARE_ABSTRACT_CLASS(wxPyApp)
73
74 public:
wxPyApp()75 wxPyApp() : wxApp() {
76 m_assertMode = wxAPP_ASSERT_EXCEPTION;
77 m_startupComplete = false;
78 //m_callFilterEvent = false;
79 wxApp::SetInstance(this);
80 }
81
~wxPyApp()82 ~wxPyApp() {
83 wxApp::SetInstance(NULL);
84 }
85
86
87 #ifndef __WXMAC__
MacNewFile()88 virtual void MacNewFile() {}
MacOpenFile(const wxString &)89 virtual void MacOpenFile(const wxString &) {}
MacOpenFiles(const wxArrayString & fileNames)90 virtual void MacOpenFiles(const wxArrayString& fileNames) {}
MacOpenURL(const wxString &)91 virtual void MacOpenURL(const wxString &) {}
MacPrintFile(const wxString &)92 virtual void MacPrintFile(const wxString &) {}
MacReopenApp()93 virtual void MacReopenApp() {}
OSXIsGUIApplication()94 virtual bool OSXIsGUIApplication() { return true; }
95 #endif
96
97 #ifdef __WXMAC__
GetMacAboutMenuItemId()98 static long GetMacAboutMenuItemId() { return s_macAboutMenuItemId; }
GetMacPreferencesMenuItemId()99 static long GetMacPreferencesMenuItemId() { return s_macPreferencesMenuItemId; }
GetMacExitMenuItemId()100 static long GetMacExitMenuItemId() { return s_macExitMenuItemId; }
GetMacHelpMenuTitleName()101 static wxString GetMacHelpMenuTitleName() { return s_macHelpMenuTitleName; }
SetMacAboutMenuItemId(long val)102 static void SetMacAboutMenuItemId(long val) { s_macAboutMenuItemId = val; }
SetMacPreferencesMenuItemId(long val)103 static void SetMacPreferencesMenuItemId(long val) { s_macPreferencesMenuItemId = val; }
SetMacExitMenuItemId(long val)104 static void SetMacExitMenuItemId(long val) { s_macExitMenuItemId = val; }
SetMacHelpMenuTitleName(const wxString & val)105 static void SetMacHelpMenuTitleName(const wxString& val) { s_macHelpMenuTitleName = val; }
106 #else
GetMacAboutMenuItemId()107 static long GetMacAboutMenuItemId() { return 0; }
GetMacPreferencesMenuItemId()108 static long GetMacPreferencesMenuItemId() { return 0; }
GetMacExitMenuItemId()109 static long GetMacExitMenuItemId() { return 0; }
GetMacHelpMenuTitleName()110 static wxString GetMacHelpMenuTitleName() { return wxEmptyString; }
SetMacAboutMenuItemId(long)111 static void SetMacAboutMenuItemId(long) { }
SetMacPreferencesMenuItemId(long)112 static void SetMacPreferencesMenuItemId(long) { }
SetMacExitMenuItemId(long)113 static void SetMacExitMenuItemId(long) { }
SetMacHelpMenuTitleName(const wxString &)114 static void SetMacHelpMenuTitleName(const wxString&) { }
115 #endif
116
GetAssertMode()117 wxAppAssertMode GetAssertMode() { return m_assertMode; }
SetAssertMode(wxAppAssertMode mode)118 void SetAssertMode(wxAppAssertMode mode) {
119 m_assertMode = mode;
120 if (mode & wxAPP_ASSERT_SUPPRESS)
121 wxDisableAsserts();
122 else
123 wxSetDefaultAssertHandler();
124 }
125
126 virtual void OnAssertFailure(const wxChar *file,
127 int line,
128 const wxChar *func,
129 const wxChar *cond,
130 const wxChar *msg);
131
132
133 // Implementing OnInit is optional for wxPython apps
OnInit()134 virtual bool OnInit() { return true; }
OnPreInit()135 virtual void OnPreInit() { }
136
137 void _BootstrapApp();
138 virtual int MainLoop();
139
140 static bool IsDisplayAvailable();
141
142 // implementation only
SetStartupComplete(bool val)143 void SetStartupComplete(bool val) { m_startupComplete = val; }
144
145 private:
146 wxAppAssertMode m_assertMode;
147 bool m_startupComplete;
148 //bool m_callFilterEvent;
149 };
150
151 IMPLEMENT_ABSTRACT_CLASS(wxPyApp, wxApp);
152
153 extern PyObject* wxAssertionError; // Exception object raised for wxASSERT failures
154
155
OnAssertFailure(const wxChar * file,int line,const wxChar * func,const wxChar * cond,const wxChar * msg)156 void wxPyApp::OnAssertFailure(const wxChar *file,
157 int line,
158 const wxChar *func,
159 const wxChar *cond,
160 const wxChar *msg)
161 {
162 // ignore it?
163 if (m_assertMode & wxAPP_ASSERT_SUPPRESS)
164 return;
165
166 // turn it into a Python exception?
167 if (m_assertMode & wxAPP_ASSERT_EXCEPTION) {
168 wxString buf;
169 buf.Alloc(4096);
170 buf.Printf(wxT("C++ assertion \"%s\" failed at %s(%d)"), cond, file, line);
171 if ( func && *func )
172 buf << wxT(" in ") << func << wxT("()");
173 if (msg != NULL)
174 buf << wxT(": ") << msg;
175
176 // set the exception
177 wxPyThreadBlocker blocker;
178 PyObject* s = wx2PyString(buf);
179 PyErr_SetObject(wxAssertionError, s);
180 Py_DECREF(s);
181
182 // Now when control returns to whatever API wrapper was called from
183 // Python it should detect that an exception is set and will return
184 // NULL, signalling the exception to Python.
185 }
186
187 // Send it to the normal log destination, but only if
188 // not _DIALOG because it will call this too
189 if ( (m_assertMode & wxAPP_ASSERT_LOG) && !(m_assertMode & wxAPP_ASSERT_DIALOG)) {
190 wxString buf;
191 buf.Alloc(4096);
192 buf.Printf(wxT("%s(%d): assert \"%s\" failed"),
193 file, line, cond);
194 if ( func && *func )
195 buf << wxT(" in ") << func << wxT("()");
196 if (msg != NULL)
197 buf << wxT(": ") << msg;
198 wxLogDebug(buf);
199 }
200
201 // do the normal wx assert dialog?
202 if (m_assertMode & wxAPP_ASSERT_DIALOG)
203 wxApp::OnAssertFailure(file, line, func, cond, msg);
204 }
205
206
_BootstrapApp()207 void wxPyApp::_BootstrapApp()
208 {
209 static bool haveInitialized = false;
210 bool result;
211
212 // Only initialize wxWidgets once
213 if (! haveInitialized) {
214
215 // Copy the values in Python's sys.argv list to a C array of char* to
216 // be passed to the wxEntryStart function below.
217 #if PY_MAJOR_VERSION >= 3
218 #define argType wchar_t
219 #else
220 #define argType char
221 #endif
222 int argc = 0;
223 argType** argv = NULL;
224 {
225 wxPyThreadBlocker blocker;
226 PyObject* sysargv = PySys_GetObject("argv");
227 if (sysargv != NULL) {
228 argc = PyList_Size(sysargv);
229 argv = new argType*[argc+1];
230 int x;
231 for(x=0; x<argc; x++) {
232 PyObject *pyArg = PyList_GetItem(sysargv, x); // borrowed reference
233 // if there isn't anything in sys.argv[0] then set it to the python executable
234 if (x == 0 && PyObject_Length(pyArg) < 1)
235 pyArg = PySys_GetObject("executable");
236 #if PY_MAJOR_VERSION >= 3
237 int len = PyObject_Length(pyArg);
238 argv[x] = new argType[len+1];
239 wxPyUnicode_AsWideChar(pyArg, argv[x], len+1);
240 #else
241 argv[x] = strdup(PyBytes_AsString(pyArg));
242 #endif
243 }
244 argv[argc] = NULL;
245 }
246 }
247
248 // Initialize wxWidgets
249 #ifdef __WXOSX__
250 wxMacAutoreleasePool autoreleasePool;
251 #endif
252 result = wxEntryStart(argc, argv);
253 // wxApp takes ownership of the argv array, don't delete it here
254
255 if (! result) {
256 wxPyThreadBlocker blocker;
257 PyErr_SetString(PyExc_SystemError,
258 "wxEntryStart failed, unable to initialize wxWidgets!"
259 #ifdef __WXGTK__
260 " (Is DISPLAY set properly?)"
261 #endif
262 );
263 goto error;
264 }
265 }
266 else {
267 this->argc = 0;
268 }
269
270 // It's now ok to generate exceptions for assertion errors.
271 SetStartupComplete(true);
272
273 // Call the Python wxApp's OnPreInit and OnInit functions if they exist
274 OnPreInit();
275
276 // Only use CallOnInit the first time, otherwise it will block on [NSApp run] in wxOSX_Cocoa;
277 if (! haveInitialized)
278 result = CallOnInit();
279 else
280 result = OnInit();
281
282 //#ifdef __WXOSX_COCOA__
283 // OSXSetInitWasCalled(true); TODO: consider adding this method to wxApp
284 //#endif
285
286 if (! result) {
287 wxPyErr_SetString(PyExc_SystemExit, "OnInit returned false, exiting...");
288 }
289
290 haveInitialized = true;
291
292 error:
293 return;
294 }
295
296
MainLoop()297 int wxPyApp::MainLoop()
298 {
299 int retval = 0;
300
301 {
302 #ifdef __WXOSX__
303 wxMacAutoreleasePool autoreleasePool;
304 #endif
305 DeletePendingObjects();
306 }
307 bool initialized = wxTopLevelWindows.GetCount() != 0;
308 if (initialized) {
309 if ( m_exitOnFrameDelete == Later ) {
310 m_exitOnFrameDelete = Yes;
311 }
312
313 retval = wxApp::MainLoop();
314 OnExit();
315 }
316 return retval;
317 }
318
319
320 // Function to test if the Display (or whatever is the platform equivallent)
321 // can be connected to.
IsDisplayAvailable()322 bool wxPyApp::IsDisplayAvailable()
323 {
324 #ifdef __WXGTK__
325 Display* display;
326 display = XOpenDisplay(NULL);
327 if (display == NULL)
328 return false;
329 XCloseDisplay(display);
330 return true;
331 #endif
332
333 #ifdef __WXMAC__
334 // This is adapted from Python's Mac/Modules/MacOS.c in the
335 // MacOS_WMAvailable function.
336 bool rv;
337 ProcessSerialNumber psn;
338
339 /*
340 ** This is a fairly innocuous call to make if we don't have a window
341 ** manager, or if we have no permission to talk to it. It will print
342 ** a message on stderr, but at least it won't abort the process.
343 ** It appears the function caches the result itself, and it's cheap, so
344 ** no need for us to cache.
345 */
346 #ifdef kCGNullDirectDisplay
347 /* On 10.1 CGMainDisplayID() isn't available, and
348 ** kCGNullDirectDisplay isn't defined.
349 */
350 if (CGMainDisplayID() == 0) {
351 rv = false;
352 } else
353 #endif
354 {
355 // Also foreground the application on the first call as a side-effect.
356 if (GetCurrentProcess(&psn) < 0 || SetFrontProcess(&psn) < 0) {
357 rv = false;
358 } else {
359 rv = true;
360 }
361 }
362 return rv;
363 #endif
364
365 #ifdef __WXMSW__
366 // TODO...
367 return true;
368 #endif
369 }
370
371
372
wxGetApp()373 wxAppConsole* wxGetApp()
374 {
375 return wxApp::GetInstance();
376 }
_wxPyApp_MacHideApp(wxPyApp * self)377 void _wxPyApp_MacHideApp(wxPyApp* self)
378 {
379 #ifdef __WXMAC__
380 self->MacHideApp();
381 #endif
382 }
_wxPyApp_GetComCtl32Version()383 int _wxPyApp_GetComCtl32Version()
384 {
385 #ifdef __WXMSW__
386 return wxApp::GetComCtl32Version();
387 #else
388 wxPyRaiseNotImplemented();
389 return 0;
390 #endif
391 }
_wxPyApp_GetShell32Version()392 int _wxPyApp_GetShell32Version()
393 {
394 #ifdef __WXMSW__
395 return wxApp::GetShell32Version();
396 #else
397 wxPyRaiseNotImplemented();
398 return 0;
399 #endif
400 }
401
402
403 class sipwxPyApp : public ::wxPyApp
404 {
405 public:
406 sipwxPyApp();
407 virtual ~sipwxPyApp();
408
409 /*
410 * There is a public method for every protected method visible from
411 * this class.
412 */
413 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
414 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
415
416 /*
417 * There is a protected method for every virtual method visible from
418 * this class.
419 */
420 protected:
421 bool OnInitGui() SIP_OVERRIDE;
422 void OnPreInit() SIP_OVERRIDE;
423 bool OSXIsGUIApplication() SIP_OVERRIDE;
424 void MacReopenApp() SIP_OVERRIDE;
425 void MacPrintFile(const ::wxString&) SIP_OVERRIDE;
426 void MacOpenURL(const ::wxString&) SIP_OVERRIDE;
427 void MacOpenFile(const ::wxString&) SIP_OVERRIDE;
428 void MacOpenFiles(const ::wxArrayString&) SIP_OVERRIDE;
429 void MacNewFile() SIP_OVERRIDE;
430 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
431 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
432 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
433 int FilterEvent( ::wxEvent&) SIP_OVERRIDE;
434 int MainLoop() SIP_OVERRIDE;
435 void ExitMainLoop() SIP_OVERRIDE;
436 bool UsesEventLoop() const SIP_OVERRIDE;
437 void ProcessPendingEvents() SIP_OVERRIDE;
438 void OnEventLoopEnter( ::wxEventLoopBase*) SIP_OVERRIDE;
439 void OnEventLoopExit( ::wxEventLoopBase*) SIP_OVERRIDE;
440 int OnExit() SIP_OVERRIDE;
441 bool OnInit() SIP_OVERRIDE;
442 int OnRun() SIP_OVERRIDE;
443
444 public:
445 sipSimpleWrapper *sipPySelf;
446
447 private:
448 sipwxPyApp(const sipwxPyApp &);
449 sipwxPyApp &operator = (const sipwxPyApp &);
450
451 char sipPyMethods[22];
452 };
453
sipwxPyApp()454 sipwxPyApp::sipwxPyApp(): ::wxPyApp(), sipPySelf(SIP_NULLPTR)
455 {
456 memset(sipPyMethods, 0, sizeof (sipPyMethods));
457 }
458
~sipwxPyApp()459 sipwxPyApp::~sipwxPyApp()
460 {
461 sipInstanceDestroyedEx(&sipPySelf);
462 }
463
OnInitGui()464 bool sipwxPyApp::OnInitGui()
465 {
466 sip_gilstate_t sipGILState;
467 PyObject *sipMeth;
468
469 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_OnInitGui);
470
471 if (!sipMeth)
472 return ::wxPyApp::OnInitGui();
473
474 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
475
476 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
477 }
478
OnPreInit()479 void sipwxPyApp::OnPreInit()
480 {
481 sip_gilstate_t sipGILState;
482 PyObject *sipMeth;
483
484 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_OnPreInit);
485
486 if (!sipMeth)
487 {
488 ::wxPyApp::OnPreInit();
489 return;
490 }
491
492 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
493
494 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
495 }
496
OSXIsGUIApplication()497 bool sipwxPyApp::OSXIsGUIApplication()
498 {
499 sip_gilstate_t sipGILState;
500 PyObject *sipMeth;
501
502 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_OSXIsGUIApplication);
503
504 if (!sipMeth)
505 return ::wxPyApp::OSXIsGUIApplication();
506
507 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
508
509 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
510 }
511
MacReopenApp()512 void sipwxPyApp::MacReopenApp()
513 {
514 sip_gilstate_t sipGILState;
515 PyObject *sipMeth;
516
517 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_MacReopenApp);
518
519 if (!sipMeth)
520 {
521 ::wxPyApp::MacReopenApp();
522 return;
523 }
524
525 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
526
527 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
528 }
529
MacPrintFile(const::wxString & fileName)530 void sipwxPyApp::MacPrintFile(const ::wxString& fileName)
531 {
532 sip_gilstate_t sipGILState;
533 PyObject *sipMeth;
534
535 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_MacPrintFile);
536
537 if (!sipMeth)
538 {
539 ::wxPyApp::MacPrintFile(fileName);
540 return;
541 }
542
543 extern void sipVH__core_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxString&);
544
545 sipVH__core_48(sipGILState, 0, sipPySelf, sipMeth, fileName);
546 }
547
MacOpenURL(const::wxString & url)548 void sipwxPyApp::MacOpenURL(const ::wxString& url)
549 {
550 sip_gilstate_t sipGILState;
551 PyObject *sipMeth;
552
553 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,SIP_NULLPTR,sipName_MacOpenURL);
554
555 if (!sipMeth)
556 {
557 ::wxPyApp::MacOpenURL(url);
558 return;
559 }
560
561 extern void sipVH__core_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxString&);
562
563 sipVH__core_48(sipGILState, 0, sipPySelf, sipMeth, url);
564 }
565
MacOpenFile(const::wxString & fileName)566 void sipwxPyApp::MacOpenFile(const ::wxString& fileName)
567 {
568 sip_gilstate_t sipGILState;
569 PyObject *sipMeth;
570
571 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_MacOpenFile);
572
573 if (!sipMeth)
574 {
575 ::wxPyApp::MacOpenFile(fileName);
576 return;
577 }
578
579 extern void sipVH__core_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxString&);
580
581 sipVH__core_48(sipGILState, 0, sipPySelf, sipMeth, fileName);
582 }
583
MacOpenFiles(const::wxArrayString & fileNames)584 void sipwxPyApp::MacOpenFiles(const ::wxArrayString& fileNames)
585 {
586 sip_gilstate_t sipGILState;
587 PyObject *sipMeth;
588
589 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_MacOpenFiles);
590
591 if (!sipMeth)
592 {
593 ::wxPyApp::MacOpenFiles(fileNames);
594 return;
595 }
596
597 extern void sipVH__core_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxArrayString&);
598
599 sipVH__core_108(sipGILState, 0, sipPySelf, sipMeth, fileNames);
600 }
601
MacNewFile()602 void sipwxPyApp::MacNewFile()
603 {
604 sip_gilstate_t sipGILState;
605 PyObject *sipMeth;
606
607 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_MacNewFile);
608
609 if (!sipMeth)
610 {
611 ::wxPyApp::MacNewFile();
612 return;
613 }
614
615 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
616
617 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
618 }
619
TryAfter(::wxEvent & event)620 bool sipwxPyApp::TryAfter( ::wxEvent& event)
621 {
622 sip_gilstate_t sipGILState;
623 PyObject *sipMeth;
624
625 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
626
627 if (!sipMeth)
628 return ::wxPyApp::TryAfter(event);
629
630 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
631
632 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
633 }
634
TryBefore(::wxEvent & event)635 bool sipwxPyApp::TryBefore( ::wxEvent& event)
636 {
637 sip_gilstate_t sipGILState;
638 PyObject *sipMeth;
639
640 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
641
642 if (!sipMeth)
643 return ::wxPyApp::TryBefore(event);
644
645 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
646
647 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
648 }
649
ProcessEvent(::wxEvent & event)650 bool sipwxPyApp::ProcessEvent( ::wxEvent& event)
651 {
652 sip_gilstate_t sipGILState;
653 PyObject *sipMeth;
654
655 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
656
657 if (!sipMeth)
658 return ::wxPyApp::ProcessEvent(event);
659
660 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
661
662 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
663 }
664
FilterEvent(::wxEvent & event)665 int sipwxPyApp::FilterEvent( ::wxEvent& event)
666 {
667 sip_gilstate_t sipGILState;
668 PyObject *sipMeth;
669
670 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,SIP_NULLPTR,sipName_FilterEvent);
671
672 if (!sipMeth)
673 return ::wxPyApp::FilterEvent(event);
674
675 extern int sipVH__core_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
676
677 return sipVH__core_96(sipGILState, 0, sipPySelf, sipMeth, event);
678 }
679
MainLoop()680 int sipwxPyApp::MainLoop()
681 {
682 sip_gilstate_t sipGILState;
683 PyObject *sipMeth;
684
685 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_MainLoop);
686
687 if (!sipMeth)
688 return ::wxPyApp::MainLoop();
689
690 extern int sipVH__core_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
691
692 return sipVH__core_97(sipGILState, 0, sipPySelf, sipMeth);
693 }
694
ExitMainLoop()695 void sipwxPyApp::ExitMainLoop()
696 {
697 sip_gilstate_t sipGILState;
698 PyObject *sipMeth;
699
700 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_ExitMainLoop);
701
702 if (!sipMeth)
703 {
704 ::wxPyApp::ExitMainLoop();
705 return;
706 }
707
708 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
709
710 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
711 }
712
UsesEventLoop() const713 bool sipwxPyApp::UsesEventLoop() const
714 {
715 sip_gilstate_t sipGILState;
716 PyObject *sipMeth;
717
718 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,SIP_NULLPTR,sipName_UsesEventLoop);
719
720 if (!sipMeth)
721 return ::wxPyApp::UsesEventLoop();
722
723 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
724
725 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
726 }
727
ProcessPendingEvents()728 void sipwxPyApp::ProcessPendingEvents()
729 {
730 sip_gilstate_t sipGILState;
731 PyObject *sipMeth;
732
733 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_ProcessPendingEvents);
734
735 if (!sipMeth)
736 {
737 ::wxPyApp::ProcessPendingEvents();
738 return;
739 }
740
741 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
742
743 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
744 }
745
OnEventLoopEnter(::wxEventLoopBase * loop)746 void sipwxPyApp::OnEventLoopEnter( ::wxEventLoopBase*loop)
747 {
748 sip_gilstate_t sipGILState;
749 PyObject *sipMeth;
750
751 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_OnEventLoopEnter);
752
753 if (!sipMeth)
754 {
755 ::wxPyApp::OnEventLoopEnter(loop);
756 return;
757 }
758
759 extern void sipVH__core_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEventLoopBase*);
760
761 sipVH__core_107(sipGILState, 0, sipPySelf, sipMeth, loop);
762 }
763
OnEventLoopExit(::wxEventLoopBase * loop)764 void sipwxPyApp::OnEventLoopExit( ::wxEventLoopBase*loop)
765 {
766 sip_gilstate_t sipGILState;
767 PyObject *sipMeth;
768
769 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_OnEventLoopExit);
770
771 if (!sipMeth)
772 {
773 ::wxPyApp::OnEventLoopExit(loop);
774 return;
775 }
776
777 extern void sipVH__core_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEventLoopBase*);
778
779 sipVH__core_107(sipGILState, 0, sipPySelf, sipMeth, loop);
780 }
781
OnExit()782 int sipwxPyApp::OnExit()
783 {
784 sip_gilstate_t sipGILState;
785 PyObject *sipMeth;
786
787 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_OnExit);
788
789 if (!sipMeth)
790 return ::wxPyApp::OnExit();
791
792 extern int sipVH__core_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
793
794 return sipVH__core_97(sipGILState, 0, sipPySelf, sipMeth);
795 }
796
OnInit()797 bool sipwxPyApp::OnInit()
798 {
799 sip_gilstate_t sipGILState;
800 PyObject *sipMeth;
801
802 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_OnInit);
803
804 if (!sipMeth)
805 return ::wxPyApp::OnInit();
806
807 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
808
809 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
810 }
811
OnRun()812 int sipwxPyApp::OnRun()
813 {
814 sip_gilstate_t sipGILState;
815 PyObject *sipMeth;
816
817 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnRun);
818
819 if (!sipMeth)
820 return ::wxPyApp::OnRun();
821
822 extern int sipVH__core_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
823
824 return sipVH__core_97(sipGILState, 0, sipPySelf, sipMeth);
825 }
826
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)827 bool sipwxPyApp::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
828 {
829 return (sipSelfWasArg ? ::wxPyApp::TryBefore(event) : TryBefore(event));
830 }
831
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)832 bool sipwxPyApp::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
833 {
834 return (sipSelfWasArg ? ::wxPyApp::TryAfter(event) : TryAfter(event));
835 }
836
837
838 PyDoc_STRVAR(doc_wxPyApp_MacNewFile, "MacNewFile()\n"
839 "\n"
840 "Called in response of an \"open-application\" Apple event.");
841
842 extern "C" {static PyObject *meth_wxPyApp_MacNewFile(PyObject *, PyObject *);}
meth_wxPyApp_MacNewFile(PyObject * sipSelf,PyObject * sipArgs)843 static PyObject *meth_wxPyApp_MacNewFile(PyObject *sipSelf, PyObject *sipArgs)
844 {
845 PyObject *sipParseErr = SIP_NULLPTR;
846 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
847
848 {
849 ::wxPyApp *sipCpp;
850
851 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
852 {
853 PyErr_Clear();
854
855 Py_BEGIN_ALLOW_THREADS
856 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacNewFile() : sipCpp->MacNewFile());
857 Py_END_ALLOW_THREADS
858
859 if (PyErr_Occurred())
860 return 0;
861
862 Py_INCREF(Py_None);
863 return Py_None;
864 }
865 }
866
867 /* Raise an exception if the arguments couldn't be parsed. */
868 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacNewFile, SIP_NULLPTR);
869
870 return SIP_NULLPTR;
871 }
872
873
874 PyDoc_STRVAR(doc_wxPyApp_MacOpenFiles, "MacOpenFiles(fileNames)\n"
875 "\n"
876 "Called in response of an openFiles message with Cocoa, or an \"open-\n"
877 "document\" Apple event with Carbon.");
878
879 extern "C" {static PyObject *meth_wxPyApp_MacOpenFiles(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_MacOpenFiles(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)880 static PyObject *meth_wxPyApp_MacOpenFiles(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
881 {
882 PyObject *sipParseErr = SIP_NULLPTR;
883 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
884
885 {
886 const ::wxArrayString* fileNames;
887 int fileNamesState = 0;
888 ::wxPyApp *sipCpp;
889
890 static const char *sipKwdList[] = {
891 sipName_fileNames,
892 };
893
894 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxArrayString,&fileNames, &fileNamesState))
895 {
896 PyErr_Clear();
897
898 Py_BEGIN_ALLOW_THREADS
899 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacOpenFiles(*fileNames) : sipCpp->MacOpenFiles(*fileNames));
900 Py_END_ALLOW_THREADS
901 sipReleaseType(const_cast< ::wxArrayString *>(fileNames),sipType_wxArrayString,fileNamesState);
902
903 if (PyErr_Occurred())
904 return 0;
905
906 Py_INCREF(Py_None);
907 return Py_None;
908 }
909 }
910
911 /* Raise an exception if the arguments couldn't be parsed. */
912 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacOpenFiles, SIP_NULLPTR);
913
914 return SIP_NULLPTR;
915 }
916
917
918 PyDoc_STRVAR(doc_wxPyApp_MacOpenFile, "MacOpenFile(fileName)\n"
919 "\n"
920 "Called in response of an \"open-document\" Apple event.");
921
922 extern "C" {static PyObject *meth_wxPyApp_MacOpenFile(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_MacOpenFile(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)923 static PyObject *meth_wxPyApp_MacOpenFile(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
924 {
925 PyObject *sipParseErr = SIP_NULLPTR;
926 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
927
928 {
929 const ::wxString* fileName;
930 int fileNameState = 0;
931 ::wxPyApp *sipCpp;
932
933 static const char *sipKwdList[] = {
934 sipName_fileName,
935 };
936
937 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxString,&fileName, &fileNameState))
938 {
939 if (sipDeprecated(sipName_PyApp,sipName_MacOpenFile) < 0)
940 return SIP_NULLPTR;
941
942 PyErr_Clear();
943
944 Py_BEGIN_ALLOW_THREADS
945 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacOpenFile(*fileName) : sipCpp->MacOpenFile(*fileName));
946 Py_END_ALLOW_THREADS
947 sipReleaseType(const_cast< ::wxString *>(fileName),sipType_wxString,fileNameState);
948
949 if (PyErr_Occurred())
950 return 0;
951
952 Py_INCREF(Py_None);
953 return Py_None;
954 }
955 }
956
957 /* Raise an exception if the arguments couldn't be parsed. */
958 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacOpenFile, SIP_NULLPTR);
959
960 return SIP_NULLPTR;
961 }
962
963
964 PyDoc_STRVAR(doc_wxPyApp_MacOpenURL, "MacOpenURL(url)\n"
965 "\n"
966 "Called in response of a \"get-url\" Apple event.");
967
968 extern "C" {static PyObject *meth_wxPyApp_MacOpenURL(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_MacOpenURL(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)969 static PyObject *meth_wxPyApp_MacOpenURL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
970 {
971 PyObject *sipParseErr = SIP_NULLPTR;
972 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
973
974 {
975 const ::wxString* url;
976 int urlState = 0;
977 ::wxPyApp *sipCpp;
978
979 static const char *sipKwdList[] = {
980 sipName_url,
981 };
982
983 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxString,&url, &urlState))
984 {
985 PyErr_Clear();
986
987 Py_BEGIN_ALLOW_THREADS
988 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacOpenURL(*url) : sipCpp->MacOpenURL(*url));
989 Py_END_ALLOW_THREADS
990 sipReleaseType(const_cast< ::wxString *>(url),sipType_wxString,urlState);
991
992 if (PyErr_Occurred())
993 return 0;
994
995 Py_INCREF(Py_None);
996 return Py_None;
997 }
998 }
999
1000 /* Raise an exception if the arguments couldn't be parsed. */
1001 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacOpenURL, SIP_NULLPTR);
1002
1003 return SIP_NULLPTR;
1004 }
1005
1006
1007 PyDoc_STRVAR(doc_wxPyApp_MacPrintFile, "MacPrintFile(fileName)\n"
1008 "\n"
1009 "Called in response of a \"print-document\" Apple event.");
1010
1011 extern "C" {static PyObject *meth_wxPyApp_MacPrintFile(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_MacPrintFile(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1012 static PyObject *meth_wxPyApp_MacPrintFile(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1013 {
1014 PyObject *sipParseErr = SIP_NULLPTR;
1015 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1016
1017 {
1018 const ::wxString* fileName;
1019 int fileNameState = 0;
1020 ::wxPyApp *sipCpp;
1021
1022 static const char *sipKwdList[] = {
1023 sipName_fileName,
1024 };
1025
1026 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxString,&fileName, &fileNameState))
1027 {
1028 PyErr_Clear();
1029
1030 Py_BEGIN_ALLOW_THREADS
1031 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacPrintFile(*fileName) : sipCpp->MacPrintFile(*fileName));
1032 Py_END_ALLOW_THREADS
1033 sipReleaseType(const_cast< ::wxString *>(fileName),sipType_wxString,fileNameState);
1034
1035 if (PyErr_Occurred())
1036 return 0;
1037
1038 Py_INCREF(Py_None);
1039 return Py_None;
1040 }
1041 }
1042
1043 /* Raise an exception if the arguments couldn't be parsed. */
1044 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacPrintFile, SIP_NULLPTR);
1045
1046 return SIP_NULLPTR;
1047 }
1048
1049
1050 PyDoc_STRVAR(doc_wxPyApp_MacReopenApp, "MacReopenApp()\n"
1051 "\n"
1052 "Called in response of a \"reopen-application\" Apple event.");
1053
1054 extern "C" {static PyObject *meth_wxPyApp_MacReopenApp(PyObject *, PyObject *);}
meth_wxPyApp_MacReopenApp(PyObject * sipSelf,PyObject * sipArgs)1055 static PyObject *meth_wxPyApp_MacReopenApp(PyObject *sipSelf, PyObject *sipArgs)
1056 {
1057 PyObject *sipParseErr = SIP_NULLPTR;
1058 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1059
1060 {
1061 ::wxPyApp *sipCpp;
1062
1063 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1064 {
1065 PyErr_Clear();
1066
1067 Py_BEGIN_ALLOW_THREADS
1068 (sipSelfWasArg ? sipCpp-> ::wxPyApp::MacReopenApp() : sipCpp->MacReopenApp());
1069 Py_END_ALLOW_THREADS
1070
1071 if (PyErr_Occurred())
1072 return 0;
1073
1074 Py_INCREF(Py_None);
1075 return Py_None;
1076 }
1077 }
1078
1079 /* Raise an exception if the arguments couldn't be parsed. */
1080 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacReopenApp, SIP_NULLPTR);
1081
1082 return SIP_NULLPTR;
1083 }
1084
1085
1086 PyDoc_STRVAR(doc_wxPyApp_OSXIsGUIApplication, "OSXIsGUIApplication() -> bool\n"
1087 "\n"
1088 "May be overridden to indicate that the application is not a foreground\n"
1089 "GUI application under OS X.");
1090
1091 extern "C" {static PyObject *meth_wxPyApp_OSXIsGUIApplication(PyObject *, PyObject *);}
meth_wxPyApp_OSXIsGUIApplication(PyObject * sipSelf,PyObject * sipArgs)1092 static PyObject *meth_wxPyApp_OSXIsGUIApplication(PyObject *sipSelf, PyObject *sipArgs)
1093 {
1094 PyObject *sipParseErr = SIP_NULLPTR;
1095 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1096
1097 {
1098 ::wxPyApp *sipCpp;
1099
1100 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1101 {
1102 bool sipRes;
1103
1104 PyErr_Clear();
1105
1106 Py_BEGIN_ALLOW_THREADS
1107 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::OSXIsGUIApplication() : sipCpp->OSXIsGUIApplication());
1108 Py_END_ALLOW_THREADS
1109
1110 if (PyErr_Occurred())
1111 return 0;
1112
1113 return PyBool_FromLong(sipRes);
1114 }
1115 }
1116
1117 /* Raise an exception if the arguments couldn't be parsed. */
1118 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OSXIsGUIApplication, SIP_NULLPTR);
1119
1120 return SIP_NULLPTR;
1121 }
1122
1123
1124 PyDoc_STRVAR(doc_wxPyApp_GetDisplayMode, "GetDisplayMode() -> VideoMode\n"
1125 "\n"
1126 "Get display mode that is used use.");
1127
1128 extern "C" {static PyObject *meth_wxPyApp_GetDisplayMode(PyObject *, PyObject *);}
meth_wxPyApp_GetDisplayMode(PyObject * sipSelf,PyObject * sipArgs)1129 static PyObject *meth_wxPyApp_GetDisplayMode(PyObject *sipSelf, PyObject *sipArgs)
1130 {
1131 PyObject *sipParseErr = SIP_NULLPTR;
1132
1133 {
1134 const ::wxPyApp *sipCpp;
1135
1136 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1137 {
1138 ::wxVideoMode*sipRes;
1139
1140 PyErr_Clear();
1141
1142 Py_BEGIN_ALLOW_THREADS
1143 sipRes = new ::wxVideoMode(sipCpp->GetDisplayMode());
1144 Py_END_ALLOW_THREADS
1145
1146 if (PyErr_Occurred())
1147 return 0;
1148
1149 return sipConvertFromNewType(sipRes,sipType_wxVideoMode,SIP_NULLPTR);
1150 }
1151 }
1152
1153 /* Raise an exception if the arguments couldn't be parsed. */
1154 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetDisplayMode, SIP_NULLPTR);
1155
1156 return SIP_NULLPTR;
1157 }
1158
1159
1160 PyDoc_STRVAR(doc_wxPyApp_GetExitOnFrameDelete, "GetExitOnFrameDelete() -> bool\n"
1161 "\n"
1162 "Returns true if the application will exit when the top-level frame is\n"
1163 "deleted.");
1164
1165 extern "C" {static PyObject *meth_wxPyApp_GetExitOnFrameDelete(PyObject *, PyObject *);}
meth_wxPyApp_GetExitOnFrameDelete(PyObject * sipSelf,PyObject * sipArgs)1166 static PyObject *meth_wxPyApp_GetExitOnFrameDelete(PyObject *sipSelf, PyObject *sipArgs)
1167 {
1168 PyObject *sipParseErr = SIP_NULLPTR;
1169
1170 {
1171 const ::wxPyApp *sipCpp;
1172
1173 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1174 {
1175 bool sipRes;
1176
1177 PyErr_Clear();
1178
1179 Py_BEGIN_ALLOW_THREADS
1180 sipRes = sipCpp->GetExitOnFrameDelete();
1181 Py_END_ALLOW_THREADS
1182
1183 if (PyErr_Occurred())
1184 return 0;
1185
1186 return PyBool_FromLong(sipRes);
1187 }
1188 }
1189
1190 /* Raise an exception if the arguments couldn't be parsed. */
1191 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetExitOnFrameDelete, SIP_NULLPTR);
1192
1193 return SIP_NULLPTR;
1194 }
1195
1196
1197 PyDoc_STRVAR(doc_wxPyApp_GetLayoutDirection, "GetLayoutDirection() -> LayoutDirection\n"
1198 "\n"
1199 "Return the layout direction for the current locale or wxLayout_Default\n"
1200 "if it's unknown.");
1201
1202 extern "C" {static PyObject *meth_wxPyApp_GetLayoutDirection(PyObject *, PyObject *);}
meth_wxPyApp_GetLayoutDirection(PyObject * sipSelf,PyObject * sipArgs)1203 static PyObject *meth_wxPyApp_GetLayoutDirection(PyObject *sipSelf, PyObject *sipArgs)
1204 {
1205 PyObject *sipParseErr = SIP_NULLPTR;
1206
1207 {
1208 const ::wxPyApp *sipCpp;
1209
1210 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1211 {
1212 ::wxLayoutDirection sipRes;
1213
1214 PyErr_Clear();
1215
1216 Py_BEGIN_ALLOW_THREADS
1217 sipRes = sipCpp->GetLayoutDirection();
1218 Py_END_ALLOW_THREADS
1219
1220 if (PyErr_Occurred())
1221 return 0;
1222
1223 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxLayoutDirection);
1224 }
1225 }
1226
1227 /* Raise an exception if the arguments couldn't be parsed. */
1228 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetLayoutDirection, SIP_NULLPTR);
1229
1230 return SIP_NULLPTR;
1231 }
1232
1233
1234 PyDoc_STRVAR(doc_wxPyApp_GetUseBestVisual, "GetUseBestVisual() -> bool\n"
1235 "\n"
1236 "Returns true if the application will use the best visual on systems\n"
1237 "that support different visuals, false otherwise.");
1238
1239 extern "C" {static PyObject *meth_wxPyApp_GetUseBestVisual(PyObject *, PyObject *);}
meth_wxPyApp_GetUseBestVisual(PyObject * sipSelf,PyObject * sipArgs)1240 static PyObject *meth_wxPyApp_GetUseBestVisual(PyObject *sipSelf, PyObject *sipArgs)
1241 {
1242 PyObject *sipParseErr = SIP_NULLPTR;
1243
1244 {
1245 const ::wxPyApp *sipCpp;
1246
1247 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1248 {
1249 bool sipRes;
1250
1251 PyErr_Clear();
1252
1253 Py_BEGIN_ALLOW_THREADS
1254 sipRes = sipCpp->GetUseBestVisual();
1255 Py_END_ALLOW_THREADS
1256
1257 if (PyErr_Occurred())
1258 return 0;
1259
1260 return PyBool_FromLong(sipRes);
1261 }
1262 }
1263
1264 /* Raise an exception if the arguments couldn't be parsed. */
1265 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetUseBestVisual, SIP_NULLPTR);
1266
1267 return SIP_NULLPTR;
1268 }
1269
1270
1271 PyDoc_STRVAR(doc_wxPyApp_GetTopWindow, "GetTopWindow() -> Window\n"
1272 "\n"
1273 "Returns a pointer to the top window.");
1274
1275 extern "C" {static PyObject *meth_wxPyApp_GetTopWindow(PyObject *, PyObject *);}
meth_wxPyApp_GetTopWindow(PyObject * sipSelf,PyObject * sipArgs)1276 static PyObject *meth_wxPyApp_GetTopWindow(PyObject *sipSelf, PyObject *sipArgs)
1277 {
1278 PyObject *sipParseErr = SIP_NULLPTR;
1279
1280 {
1281 const ::wxPyApp *sipCpp;
1282
1283 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1284 {
1285 ::wxWindow*sipRes;
1286
1287 PyErr_Clear();
1288
1289 Py_BEGIN_ALLOW_THREADS
1290 sipRes = sipCpp->GetTopWindow();
1291 Py_END_ALLOW_THREADS
1292
1293 if (PyErr_Occurred())
1294 return 0;
1295
1296 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
1297 }
1298 }
1299
1300 /* Raise an exception if the arguments couldn't be parsed. */
1301 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetTopWindow, SIP_NULLPTR);
1302
1303 return SIP_NULLPTR;
1304 }
1305
1306
1307 PyDoc_STRVAR(doc_wxPyApp_IsActive, "IsActive() -> bool\n"
1308 "\n"
1309 "Returns true if the application is active, i.e. if one of its windows\n"
1310 "is currently in the foreground.");
1311
1312 extern "C" {static PyObject *meth_wxPyApp_IsActive(PyObject *, PyObject *);}
meth_wxPyApp_IsActive(PyObject * sipSelf,PyObject * sipArgs)1313 static PyObject *meth_wxPyApp_IsActive(PyObject *sipSelf, PyObject *sipArgs)
1314 {
1315 PyObject *sipParseErr = SIP_NULLPTR;
1316
1317 {
1318 const ::wxPyApp *sipCpp;
1319
1320 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1321 {
1322 bool sipRes;
1323
1324 PyErr_Clear();
1325
1326 Py_BEGIN_ALLOW_THREADS
1327 sipRes = sipCpp->IsActive();
1328 Py_END_ALLOW_THREADS
1329
1330 if (PyErr_Occurred())
1331 return 0;
1332
1333 return PyBool_FromLong(sipRes);
1334 }
1335 }
1336
1337 /* Raise an exception if the arguments couldn't be parsed. */
1338 sipNoMethod(sipParseErr, sipName_PyApp, sipName_IsActive, SIP_NULLPTR);
1339
1340 return SIP_NULLPTR;
1341 }
1342
1343
1344 PyDoc_STRVAR(doc_wxPyApp_SafeYield, "SafeYield(win, onlyIfNeeded) -> bool\n"
1345 "\n"
1346 "This function is similar to wxYield(), except that it disables the\n"
1347 "user input to all program windows before calling wxAppConsole::Yield\n"
1348 "and re-enables it again afterwards.");
1349
1350 extern "C" {static PyObject *meth_wxPyApp_SafeYield(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SafeYield(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1351 static PyObject *meth_wxPyApp_SafeYield(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1352 {
1353 PyObject *sipParseErr = SIP_NULLPTR;
1354
1355 {
1356 ::wxWindow* win;
1357 bool onlyIfNeeded;
1358 ::wxPyApp *sipCpp;
1359
1360 static const char *sipKwdList[] = {
1361 sipName_win,
1362 sipName_onlyIfNeeded,
1363 };
1364
1365 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8b", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxWindow, &win, &onlyIfNeeded))
1366 {
1367 bool sipRes;
1368
1369 PyErr_Clear();
1370
1371 Py_BEGIN_ALLOW_THREADS
1372 sipRes = sipCpp->SafeYield(win,onlyIfNeeded);
1373 Py_END_ALLOW_THREADS
1374
1375 if (PyErr_Occurred())
1376 return 0;
1377
1378 return PyBool_FromLong(sipRes);
1379 }
1380 }
1381
1382 /* Raise an exception if the arguments couldn't be parsed. */
1383 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SafeYield, SIP_NULLPTR);
1384
1385 return SIP_NULLPTR;
1386 }
1387
1388
1389 PyDoc_STRVAR(doc_wxPyApp_SafeYieldFor, "SafeYieldFor(win, eventsToProcess) -> bool\n"
1390 "\n"
1391 "Works like SafeYield() with onlyIfNeeded == true except that it allows\n"
1392 "the caller to specify a mask of events to be processed.");
1393
1394 extern "C" {static PyObject *meth_wxPyApp_SafeYieldFor(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SafeYieldFor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1395 static PyObject *meth_wxPyApp_SafeYieldFor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1396 {
1397 PyObject *sipParseErr = SIP_NULLPTR;
1398
1399 {
1400 ::wxWindow* win;
1401 long eventsToProcess;
1402 ::wxPyApp *sipCpp;
1403
1404 static const char *sipKwdList[] = {
1405 sipName_win,
1406 sipName_eventsToProcess,
1407 };
1408
1409 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8l", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxWindow, &win, &eventsToProcess))
1410 {
1411 bool sipRes;
1412
1413 PyErr_Clear();
1414
1415 Py_BEGIN_ALLOW_THREADS
1416 sipRes = sipCpp->SafeYieldFor(win,eventsToProcess);
1417 Py_END_ALLOW_THREADS
1418
1419 if (PyErr_Occurred())
1420 return 0;
1421
1422 return PyBool_FromLong(sipRes);
1423 }
1424 }
1425
1426 /* Raise an exception if the arguments couldn't be parsed. */
1427 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SafeYieldFor, SIP_NULLPTR);
1428
1429 return SIP_NULLPTR;
1430 }
1431
1432
1433 PyDoc_STRVAR(doc_wxPyApp_SetDisplayMode, "SetDisplayMode(info) -> bool\n"
1434 "\n"
1435 "Set display mode to use.");
1436
1437 extern "C" {static PyObject *meth_wxPyApp_SetDisplayMode(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetDisplayMode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1438 static PyObject *meth_wxPyApp_SetDisplayMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1439 {
1440 PyObject *sipParseErr = SIP_NULLPTR;
1441
1442 {
1443 const ::wxVideoMode* info;
1444 ::wxPyApp *sipCpp;
1445
1446 static const char *sipKwdList[] = {
1447 sipName_info,
1448 };
1449
1450 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxVideoMode, &info))
1451 {
1452 bool sipRes;
1453
1454 PyErr_Clear();
1455
1456 Py_BEGIN_ALLOW_THREADS
1457 sipRes = sipCpp->SetDisplayMode(*info);
1458 Py_END_ALLOW_THREADS
1459
1460 if (PyErr_Occurred())
1461 return 0;
1462
1463 return PyBool_FromLong(sipRes);
1464 }
1465 }
1466
1467 /* Raise an exception if the arguments couldn't be parsed. */
1468 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetDisplayMode, SIP_NULLPTR);
1469
1470 return SIP_NULLPTR;
1471 }
1472
1473
1474 PyDoc_STRVAR(doc_wxPyApp_SetExitOnFrameDelete, "SetExitOnFrameDelete(flag)\n"
1475 "\n"
1476 "Allows the programmer to specify whether the application will exit\n"
1477 "when the top-level frame is deleted.");
1478
1479 extern "C" {static PyObject *meth_wxPyApp_SetExitOnFrameDelete(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetExitOnFrameDelete(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1480 static PyObject *meth_wxPyApp_SetExitOnFrameDelete(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1481 {
1482 PyObject *sipParseErr = SIP_NULLPTR;
1483
1484 {
1485 bool flag;
1486 ::wxPyApp *sipCpp;
1487
1488 static const char *sipKwdList[] = {
1489 sipName_flag,
1490 };
1491
1492 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxPyApp, &sipCpp, &flag))
1493 {
1494 PyErr_Clear();
1495
1496 Py_BEGIN_ALLOW_THREADS
1497 sipCpp->SetExitOnFrameDelete(flag);
1498 Py_END_ALLOW_THREADS
1499
1500 if (PyErr_Occurred())
1501 return 0;
1502
1503 Py_INCREF(Py_None);
1504 return Py_None;
1505 }
1506 }
1507
1508 /* Raise an exception if the arguments couldn't be parsed. */
1509 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetExitOnFrameDelete, SIP_NULLPTR);
1510
1511 return SIP_NULLPTR;
1512 }
1513
1514
1515 PyDoc_STRVAR(doc_wxPyApp_SetNativeTheme, "SetNativeTheme(theme) -> bool\n"
1516 "\n"
1517 "Allows runtime switching of the UI environment theme.");
1518
1519 extern "C" {static PyObject *meth_wxPyApp_SetNativeTheme(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetNativeTheme(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1520 static PyObject *meth_wxPyApp_SetNativeTheme(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1521 {
1522 PyObject *sipParseErr = SIP_NULLPTR;
1523
1524 {
1525 const ::wxString* theme;
1526 int themeState = 0;
1527 ::wxPyApp *sipCpp;
1528
1529 static const char *sipKwdList[] = {
1530 sipName_theme,
1531 };
1532
1533 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxString,&theme, &themeState))
1534 {
1535 bool sipRes;
1536
1537 PyErr_Clear();
1538
1539 Py_BEGIN_ALLOW_THREADS
1540 sipRes = sipCpp->SetNativeTheme(*theme);
1541 Py_END_ALLOW_THREADS
1542 sipReleaseType(const_cast< ::wxString *>(theme),sipType_wxString,themeState);
1543
1544 if (PyErr_Occurred())
1545 return 0;
1546
1547 return PyBool_FromLong(sipRes);
1548 }
1549 }
1550
1551 /* Raise an exception if the arguments couldn't be parsed. */
1552 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetNativeTheme, SIP_NULLPTR);
1553
1554 return SIP_NULLPTR;
1555 }
1556
1557
1558 PyDoc_STRVAR(doc_wxPyApp_SetTopWindow, "SetTopWindow(window)\n"
1559 "\n"
1560 "Sets the 'top' window.");
1561
1562 extern "C" {static PyObject *meth_wxPyApp_SetTopWindow(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetTopWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1563 static PyObject *meth_wxPyApp_SetTopWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1564 {
1565 PyObject *sipParseErr = SIP_NULLPTR;
1566
1567 {
1568 ::wxWindow* window;
1569 ::wxPyApp *sipCpp;
1570
1571 static const char *sipKwdList[] = {
1572 sipName_window,
1573 };
1574
1575 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxWindow, &window))
1576 {
1577 PyErr_Clear();
1578
1579 Py_BEGIN_ALLOW_THREADS
1580 sipCpp->SetTopWindow(window);
1581 Py_END_ALLOW_THREADS
1582
1583 if (PyErr_Occurred())
1584 return 0;
1585
1586 Py_INCREF(Py_None);
1587 return Py_None;
1588 }
1589 }
1590
1591 /* Raise an exception if the arguments couldn't be parsed. */
1592 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetTopWindow, SIP_NULLPTR);
1593
1594 return SIP_NULLPTR;
1595 }
1596
1597
1598 PyDoc_STRVAR(doc_wxPyApp_SetUseBestVisual, "SetUseBestVisual(flag, forceTrueColour=False)\n"
1599 "\n"
1600 "Allows the programmer to specify whether the application will use the\n"
1601 "best visual on systems that support several visual on the same\n"
1602 "display.");
1603
1604 extern "C" {static PyObject *meth_wxPyApp_SetUseBestVisual(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetUseBestVisual(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1605 static PyObject *meth_wxPyApp_SetUseBestVisual(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1606 {
1607 PyObject *sipParseErr = SIP_NULLPTR;
1608
1609 {
1610 bool flag;
1611 bool forceTrueColour = 0;
1612 ::wxPyApp *sipCpp;
1613
1614 static const char *sipKwdList[] = {
1615 sipName_flag,
1616 sipName_forceTrueColour,
1617 };
1618
1619 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb|b", &sipSelf, sipType_wxPyApp, &sipCpp, &flag, &forceTrueColour))
1620 {
1621 PyErr_Clear();
1622
1623 Py_BEGIN_ALLOW_THREADS
1624 sipCpp->SetUseBestVisual(flag,forceTrueColour);
1625 Py_END_ALLOW_THREADS
1626
1627 if (PyErr_Occurred())
1628 return 0;
1629
1630 Py_INCREF(Py_None);
1631 return Py_None;
1632 }
1633 }
1634
1635 /* Raise an exception if the arguments couldn't be parsed. */
1636 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetUseBestVisual, SIP_NULLPTR);
1637
1638 return SIP_NULLPTR;
1639 }
1640
1641
1642 PyDoc_STRVAR(doc_wxPyApp_MacHideApp, "MacHideApp()\n"
1643 "\n"
1644 "Hide all application windows just as the user can do with the\n"
1645 "system Hide command. Mac only.");
1646
1647 extern "C" {static PyObject *meth_wxPyApp_MacHideApp(PyObject *, PyObject *);}
meth_wxPyApp_MacHideApp(PyObject * sipSelf,PyObject * sipArgs)1648 static PyObject *meth_wxPyApp_MacHideApp(PyObject *sipSelf, PyObject *sipArgs)
1649 {
1650 PyObject *sipParseErr = SIP_NULLPTR;
1651
1652 {
1653 ::wxPyApp *sipCpp;
1654
1655 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1656 {
1657 int sipIsErr = 0;
1658
1659 PyErr_Clear();
1660 Py_BEGIN_ALLOW_THREADS
1661 _wxPyApp_MacHideApp(sipCpp);
1662 Py_END_ALLOW_THREADS
1663 if (PyErr_Occurred()) sipIsErr = 1;
1664
1665 if (sipIsErr)
1666 return 0;
1667
1668 Py_INCREF(Py_None);
1669 return Py_None;
1670 }
1671 }
1672
1673 /* Raise an exception if the arguments couldn't be parsed. */
1674 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MacHideApp, SIP_NULLPTR);
1675
1676 return SIP_NULLPTR;
1677 }
1678
1679
1680 PyDoc_STRVAR(doc_wxPyApp_GetComCtl32Version, "GetComCtl32Version() -> int\n"
1681 "\n"
1682 "Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if\n"
1683 "it wasn't found at all. Raises an exception on non-Windows platforms.");
1684
1685 extern "C" {static PyObject *meth_wxPyApp_GetComCtl32Version(PyObject *, PyObject *);}
meth_wxPyApp_GetComCtl32Version(PyObject *,PyObject * sipArgs)1686 static PyObject *meth_wxPyApp_GetComCtl32Version(PyObject *, PyObject *sipArgs)
1687 {
1688 PyObject *sipParseErr = SIP_NULLPTR;
1689
1690 {
1691 if (sipParseArgs(&sipParseErr, sipArgs, ""))
1692 {
1693 int sipRes = 0;
1694 int sipIsErr = 0;
1695
1696 PyErr_Clear();
1697 Py_BEGIN_ALLOW_THREADS
1698 sipRes = _wxPyApp_GetComCtl32Version();
1699 Py_END_ALLOW_THREADS
1700 if (PyErr_Occurred()) sipIsErr = 1;
1701
1702 if (sipIsErr)
1703 return 0;
1704
1705 return SIPLong_FromLong(sipRes);
1706 }
1707 }
1708
1709 /* Raise an exception if the arguments couldn't be parsed. */
1710 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetComCtl32Version, SIP_NULLPTR);
1711
1712 return SIP_NULLPTR;
1713 }
1714
1715
1716 PyDoc_STRVAR(doc_wxPyApp_GetShell32Version, "GetShell32Version() -> int\n"
1717 "\n"
1718 "Returns 400, 470, 471, etc. for shell32.dll 4.00, 4.70, 4.71 or 0 if\n"
1719 "it wasn't found at all. Raises an exception on non-Windows platforms.");
1720
1721 extern "C" {static PyObject *meth_wxPyApp_GetShell32Version(PyObject *, PyObject *);}
meth_wxPyApp_GetShell32Version(PyObject *,PyObject * sipArgs)1722 static PyObject *meth_wxPyApp_GetShell32Version(PyObject *, PyObject *sipArgs)
1723 {
1724 PyObject *sipParseErr = SIP_NULLPTR;
1725
1726 {
1727 if (sipParseArgs(&sipParseErr, sipArgs, ""))
1728 {
1729 int sipRes = 0;
1730 int sipIsErr = 0;
1731
1732 PyErr_Clear();
1733 Py_BEGIN_ALLOW_THREADS
1734 sipRes = _wxPyApp_GetShell32Version();
1735 Py_END_ALLOW_THREADS
1736 if (PyErr_Occurred()) sipIsErr = 1;
1737
1738 if (sipIsErr)
1739 return 0;
1740
1741 return SIPLong_FromLong(sipRes);
1742 }
1743 }
1744
1745 /* Raise an exception if the arguments couldn't be parsed. */
1746 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetShell32Version, SIP_NULLPTR);
1747
1748 return SIP_NULLPTR;
1749 }
1750
1751
1752 PyDoc_STRVAR(doc_wxPyApp_TryBefore, "TryBefore(self, event: Event) -> bool");
1753
1754 extern "C" {static PyObject *meth_wxPyApp_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1755 static PyObject *meth_wxPyApp_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1756 {
1757 PyObject *sipParseErr = SIP_NULLPTR;
1758 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1759
1760 {
1761 ::wxEvent* event;
1762 sipwxPyApp *sipCpp;
1763
1764 static const char *sipKwdList[] = {
1765 sipName_event,
1766 };
1767
1768 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxEvent, &event))
1769 {
1770 bool sipRes;
1771
1772 PyErr_Clear();
1773
1774 Py_BEGIN_ALLOW_THREADS
1775 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
1776 Py_END_ALLOW_THREADS
1777
1778 if (PyErr_Occurred())
1779 return 0;
1780
1781 return PyBool_FromLong(sipRes);
1782 }
1783 }
1784
1785 /* Raise an exception if the arguments couldn't be parsed. */
1786 sipNoMethod(sipParseErr, sipName_PyApp, sipName_TryBefore, doc_wxPyApp_TryBefore);
1787
1788 return SIP_NULLPTR;
1789 }
1790
1791
1792 PyDoc_STRVAR(doc_wxPyApp_TryAfter, "TryAfter(self, event: Event) -> bool");
1793
1794 extern "C" {static PyObject *meth_wxPyApp_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1795 static PyObject *meth_wxPyApp_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1796 {
1797 PyObject *sipParseErr = SIP_NULLPTR;
1798 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1799
1800 {
1801 ::wxEvent* event;
1802 sipwxPyApp *sipCpp;
1803
1804 static const char *sipKwdList[] = {
1805 sipName_event,
1806 };
1807
1808 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxEvent, &event))
1809 {
1810 bool sipRes;
1811
1812 PyErr_Clear();
1813
1814 Py_BEGIN_ALLOW_THREADS
1815 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
1816 Py_END_ALLOW_THREADS
1817
1818 if (PyErr_Occurred())
1819 return 0;
1820
1821 return PyBool_FromLong(sipRes);
1822 }
1823 }
1824
1825 /* Raise an exception if the arguments couldn't be parsed. */
1826 sipNoMethod(sipParseErr, sipName_PyApp, sipName_TryAfter, doc_wxPyApp_TryAfter);
1827
1828 return SIP_NULLPTR;
1829 }
1830
1831
1832 PyDoc_STRVAR(doc_wxPyApp_MainLoop, "MainLoop(self) -> int");
1833
1834 extern "C" {static PyObject *meth_wxPyApp_MainLoop(PyObject *, PyObject *);}
meth_wxPyApp_MainLoop(PyObject * sipSelf,PyObject * sipArgs)1835 static PyObject *meth_wxPyApp_MainLoop(PyObject *sipSelf, PyObject *sipArgs)
1836 {
1837 PyObject *sipParseErr = SIP_NULLPTR;
1838 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1839
1840 {
1841 ::wxPyApp *sipCpp;
1842
1843 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1844 {
1845 int sipRes;
1846
1847 PyErr_Clear();
1848
1849 Py_BEGIN_ALLOW_THREADS
1850 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::MainLoop() : sipCpp->MainLoop());
1851 Py_END_ALLOW_THREADS
1852
1853 if (PyErr_Occurred())
1854 return 0;
1855
1856 return SIPLong_FromLong(sipRes);
1857 }
1858 }
1859
1860 /* Raise an exception if the arguments couldn't be parsed. */
1861 sipNoMethod(sipParseErr, sipName_PyApp, sipName_MainLoop, doc_wxPyApp_MainLoop);
1862
1863 return SIP_NULLPTR;
1864 }
1865
1866
1867 PyDoc_STRVAR(doc_wxPyApp_OnPreInit, "OnPreInit(self)");
1868
1869 extern "C" {static PyObject *meth_wxPyApp_OnPreInit(PyObject *, PyObject *);}
meth_wxPyApp_OnPreInit(PyObject * sipSelf,PyObject * sipArgs)1870 static PyObject *meth_wxPyApp_OnPreInit(PyObject *sipSelf, PyObject *sipArgs)
1871 {
1872 PyObject *sipParseErr = SIP_NULLPTR;
1873 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1874
1875 {
1876 ::wxPyApp *sipCpp;
1877
1878 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1879 {
1880 PyErr_Clear();
1881
1882 Py_BEGIN_ALLOW_THREADS
1883 (sipSelfWasArg ? sipCpp-> ::wxPyApp::OnPreInit() : sipCpp->OnPreInit());
1884 Py_END_ALLOW_THREADS
1885
1886 if (PyErr_Occurred())
1887 return 0;
1888
1889 Py_INCREF(Py_None);
1890 return Py_None;
1891 }
1892 }
1893
1894 /* Raise an exception if the arguments couldn't be parsed. */
1895 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OnPreInit, doc_wxPyApp_OnPreInit);
1896
1897 return SIP_NULLPTR;
1898 }
1899
1900
1901 PyDoc_STRVAR(doc_wxPyApp_OnInit, "OnInit(self) -> bool");
1902
1903 extern "C" {static PyObject *meth_wxPyApp_OnInit(PyObject *, PyObject *);}
meth_wxPyApp_OnInit(PyObject * sipSelf,PyObject * sipArgs)1904 static PyObject *meth_wxPyApp_OnInit(PyObject *sipSelf, PyObject *sipArgs)
1905 {
1906 PyObject *sipParseErr = SIP_NULLPTR;
1907 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1908
1909 {
1910 ::wxPyApp *sipCpp;
1911
1912 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1913 {
1914 bool sipRes;
1915
1916 PyErr_Clear();
1917
1918 Py_BEGIN_ALLOW_THREADS
1919 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::OnInit() : sipCpp->OnInit());
1920 Py_END_ALLOW_THREADS
1921
1922 if (PyErr_Occurred())
1923 return 0;
1924
1925 return PyBool_FromLong(sipRes);
1926 }
1927 }
1928
1929 /* Raise an exception if the arguments couldn't be parsed. */
1930 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OnInit, doc_wxPyApp_OnInit);
1931
1932 return SIP_NULLPTR;
1933 }
1934
1935
1936 PyDoc_STRVAR(doc_wxPyApp_OnInitGui, "OnInitGui(self) -> bool");
1937
1938 extern "C" {static PyObject *meth_wxPyApp_OnInitGui(PyObject *, PyObject *);}
meth_wxPyApp_OnInitGui(PyObject * sipSelf,PyObject * sipArgs)1939 static PyObject *meth_wxPyApp_OnInitGui(PyObject *sipSelf, PyObject *sipArgs)
1940 {
1941 PyObject *sipParseErr = SIP_NULLPTR;
1942 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1943
1944 {
1945 ::wxPyApp *sipCpp;
1946
1947 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1948 {
1949 bool sipRes;
1950
1951 PyErr_Clear();
1952
1953 Py_BEGIN_ALLOW_THREADS
1954 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::OnInitGui() : sipCpp->OnInitGui());
1955 Py_END_ALLOW_THREADS
1956
1957 if (PyErr_Occurred())
1958 return 0;
1959
1960 return PyBool_FromLong(sipRes);
1961 }
1962 }
1963
1964 /* Raise an exception if the arguments couldn't be parsed. */
1965 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OnInitGui, doc_wxPyApp_OnInitGui);
1966
1967 return SIP_NULLPTR;
1968 }
1969
1970
1971 PyDoc_STRVAR(doc_wxPyApp_OnRun, "OnRun(self) -> int");
1972
1973 extern "C" {static PyObject *meth_wxPyApp_OnRun(PyObject *, PyObject *);}
meth_wxPyApp_OnRun(PyObject * sipSelf,PyObject * sipArgs)1974 static PyObject *meth_wxPyApp_OnRun(PyObject *sipSelf, PyObject *sipArgs)
1975 {
1976 PyObject *sipParseErr = SIP_NULLPTR;
1977 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1978
1979 {
1980 ::wxPyApp *sipCpp;
1981
1982 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
1983 {
1984 int sipRes;
1985
1986 PyErr_Clear();
1987
1988 Py_BEGIN_ALLOW_THREADS
1989 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::OnRun() : sipCpp->OnRun());
1990 Py_END_ALLOW_THREADS
1991
1992 if (PyErr_Occurred())
1993 return 0;
1994
1995 return SIPLong_FromLong(sipRes);
1996 }
1997 }
1998
1999 /* Raise an exception if the arguments couldn't be parsed. */
2000 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OnRun, doc_wxPyApp_OnRun);
2001
2002 return SIP_NULLPTR;
2003 }
2004
2005
2006 PyDoc_STRVAR(doc_wxPyApp_OnExit, "OnExit(self) -> int");
2007
2008 extern "C" {static PyObject *meth_wxPyApp_OnExit(PyObject *, PyObject *);}
meth_wxPyApp_OnExit(PyObject * sipSelf,PyObject * sipArgs)2009 static PyObject *meth_wxPyApp_OnExit(PyObject *sipSelf, PyObject *sipArgs)
2010 {
2011 PyObject *sipParseErr = SIP_NULLPTR;
2012 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2013
2014 {
2015 ::wxPyApp *sipCpp;
2016
2017 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
2018 {
2019 int sipRes;
2020
2021 PyErr_Clear();
2022
2023 Py_BEGIN_ALLOW_THREADS
2024 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPyApp::OnExit() : sipCpp->OnExit());
2025 Py_END_ALLOW_THREADS
2026
2027 if (PyErr_Occurred())
2028 return 0;
2029
2030 return SIPLong_FromLong(sipRes);
2031 }
2032 }
2033
2034 /* Raise an exception if the arguments couldn't be parsed. */
2035 sipNoMethod(sipParseErr, sipName_PyApp, sipName_OnExit, doc_wxPyApp_OnExit);
2036
2037 return SIP_NULLPTR;
2038 }
2039
2040
2041 PyDoc_STRVAR(doc_wxPyApp__BootstrapApp, "_BootstrapApp(self)");
2042
2043 extern "C" {static PyObject *meth_wxPyApp__BootstrapApp(PyObject *, PyObject *);}
meth_wxPyApp__BootstrapApp(PyObject * sipSelf,PyObject * sipArgs)2044 static PyObject *meth_wxPyApp__BootstrapApp(PyObject *sipSelf, PyObject *sipArgs)
2045 {
2046 PyObject *sipParseErr = SIP_NULLPTR;
2047
2048 {
2049 ::wxPyApp *sipCpp;
2050
2051 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
2052 {
2053 PyErr_Clear();
2054
2055 Py_BEGIN_ALLOW_THREADS
2056 sipCpp->_BootstrapApp();
2057 Py_END_ALLOW_THREADS
2058
2059 if (PyErr_Occurred())
2060 return 0;
2061
2062 Py_INCREF(Py_None);
2063 return Py_None;
2064 }
2065 }
2066
2067 /* Raise an exception if the arguments couldn't be parsed. */
2068 sipNoMethod(sipParseErr, sipName_PyApp, sipName__BootstrapApp, doc_wxPyApp__BootstrapApp);
2069
2070 return SIP_NULLPTR;
2071 }
2072
2073
2074 PyDoc_STRVAR(doc_wxPyApp_GetMacAboutMenuItemId, "GetMacAboutMenuItemId() -> int");
2075
2076 extern "C" {static PyObject *meth_wxPyApp_GetMacAboutMenuItemId(PyObject *, PyObject *);}
meth_wxPyApp_GetMacAboutMenuItemId(PyObject *,PyObject * sipArgs)2077 static PyObject *meth_wxPyApp_GetMacAboutMenuItemId(PyObject *, PyObject *sipArgs)
2078 {
2079 PyObject *sipParseErr = SIP_NULLPTR;
2080
2081 {
2082 if (sipParseArgs(&sipParseErr, sipArgs, ""))
2083 {
2084 long sipRes;
2085
2086 PyErr_Clear();
2087
2088 Py_BEGIN_ALLOW_THREADS
2089 sipRes = ::wxPyApp::GetMacAboutMenuItemId();
2090 Py_END_ALLOW_THREADS
2091
2092 if (PyErr_Occurred())
2093 return 0;
2094
2095 return PyLong_FromLong(sipRes);
2096 }
2097 }
2098
2099 /* Raise an exception if the arguments couldn't be parsed. */
2100 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetMacAboutMenuItemId, doc_wxPyApp_GetMacAboutMenuItemId);
2101
2102 return SIP_NULLPTR;
2103 }
2104
2105
2106 PyDoc_STRVAR(doc_wxPyApp_GetMacPreferencesMenuItemId, "GetMacPreferencesMenuItemId() -> int");
2107
2108 extern "C" {static PyObject *meth_wxPyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *);}
meth_wxPyApp_GetMacPreferencesMenuItemId(PyObject *,PyObject * sipArgs)2109 static PyObject *meth_wxPyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *sipArgs)
2110 {
2111 PyObject *sipParseErr = SIP_NULLPTR;
2112
2113 {
2114 if (sipParseArgs(&sipParseErr, sipArgs, ""))
2115 {
2116 long sipRes;
2117
2118 PyErr_Clear();
2119
2120 Py_BEGIN_ALLOW_THREADS
2121 sipRes = ::wxPyApp::GetMacPreferencesMenuItemId();
2122 Py_END_ALLOW_THREADS
2123
2124 if (PyErr_Occurred())
2125 return 0;
2126
2127 return PyLong_FromLong(sipRes);
2128 }
2129 }
2130
2131 /* Raise an exception if the arguments couldn't be parsed. */
2132 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetMacPreferencesMenuItemId, doc_wxPyApp_GetMacPreferencesMenuItemId);
2133
2134 return SIP_NULLPTR;
2135 }
2136
2137
2138 PyDoc_STRVAR(doc_wxPyApp_GetMacExitMenuItemId, "GetMacExitMenuItemId() -> int");
2139
2140 extern "C" {static PyObject *meth_wxPyApp_GetMacExitMenuItemId(PyObject *, PyObject *);}
meth_wxPyApp_GetMacExitMenuItemId(PyObject *,PyObject * sipArgs)2141 static PyObject *meth_wxPyApp_GetMacExitMenuItemId(PyObject *, PyObject *sipArgs)
2142 {
2143 PyObject *sipParseErr = SIP_NULLPTR;
2144
2145 {
2146 if (sipParseArgs(&sipParseErr, sipArgs, ""))
2147 {
2148 long sipRes;
2149
2150 PyErr_Clear();
2151
2152 Py_BEGIN_ALLOW_THREADS
2153 sipRes = ::wxPyApp::GetMacExitMenuItemId();
2154 Py_END_ALLOW_THREADS
2155
2156 if (PyErr_Occurred())
2157 return 0;
2158
2159 return PyLong_FromLong(sipRes);
2160 }
2161 }
2162
2163 /* Raise an exception if the arguments couldn't be parsed. */
2164 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetMacExitMenuItemId, doc_wxPyApp_GetMacExitMenuItemId);
2165
2166 return SIP_NULLPTR;
2167 }
2168
2169
2170 PyDoc_STRVAR(doc_wxPyApp_GetMacHelpMenuTitleName, "GetMacHelpMenuTitleName() -> object");
2171
2172 extern "C" {static PyObject *meth_wxPyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *);}
meth_wxPyApp_GetMacHelpMenuTitleName(PyObject *,PyObject * sipArgs)2173 static PyObject *meth_wxPyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *sipArgs)
2174 {
2175 PyObject *sipParseErr = SIP_NULLPTR;
2176
2177 {
2178 if (sipParseArgs(&sipParseErr, sipArgs, ""))
2179 {
2180 ::wxString*sipRes;
2181
2182 PyErr_Clear();
2183
2184 Py_BEGIN_ALLOW_THREADS
2185 sipRes = new ::wxString( ::wxPyApp::GetMacHelpMenuTitleName());
2186 Py_END_ALLOW_THREADS
2187
2188 if (PyErr_Occurred())
2189 return 0;
2190
2191 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
2192 }
2193 }
2194
2195 /* Raise an exception if the arguments couldn't be parsed. */
2196 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetMacHelpMenuTitleName, doc_wxPyApp_GetMacHelpMenuTitleName);
2197
2198 return SIP_NULLPTR;
2199 }
2200
2201
2202 PyDoc_STRVAR(doc_wxPyApp_SetMacAboutMenuItemId, "SetMacAboutMenuItemId(val: int)");
2203
2204 extern "C" {static PyObject *meth_wxPyApp_SetMacAboutMenuItemId(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetMacAboutMenuItemId(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2205 static PyObject *meth_wxPyApp_SetMacAboutMenuItemId(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2206 {
2207 PyObject *sipParseErr = SIP_NULLPTR;
2208
2209 {
2210 long val;
2211
2212 static const char *sipKwdList[] = {
2213 sipName_val,
2214 };
2215
2216 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "l", &val))
2217 {
2218 PyErr_Clear();
2219
2220 Py_BEGIN_ALLOW_THREADS
2221 ::wxPyApp::SetMacAboutMenuItemId(val);
2222 Py_END_ALLOW_THREADS
2223
2224 if (PyErr_Occurred())
2225 return 0;
2226
2227 Py_INCREF(Py_None);
2228 return Py_None;
2229 }
2230 }
2231
2232 /* Raise an exception if the arguments couldn't be parsed. */
2233 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetMacAboutMenuItemId, doc_wxPyApp_SetMacAboutMenuItemId);
2234
2235 return SIP_NULLPTR;
2236 }
2237
2238
2239 PyDoc_STRVAR(doc_wxPyApp_SetMacPreferencesMenuItemId, "SetMacPreferencesMenuItemId(val: int)");
2240
2241 extern "C" {static PyObject *meth_wxPyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetMacPreferencesMenuItemId(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2242 static PyObject *meth_wxPyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2243 {
2244 PyObject *sipParseErr = SIP_NULLPTR;
2245
2246 {
2247 long val;
2248
2249 static const char *sipKwdList[] = {
2250 sipName_val,
2251 };
2252
2253 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "l", &val))
2254 {
2255 PyErr_Clear();
2256
2257 Py_BEGIN_ALLOW_THREADS
2258 ::wxPyApp::SetMacPreferencesMenuItemId(val);
2259 Py_END_ALLOW_THREADS
2260
2261 if (PyErr_Occurred())
2262 return 0;
2263
2264 Py_INCREF(Py_None);
2265 return Py_None;
2266 }
2267 }
2268
2269 /* Raise an exception if the arguments couldn't be parsed. */
2270 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetMacPreferencesMenuItemId, doc_wxPyApp_SetMacPreferencesMenuItemId);
2271
2272 return SIP_NULLPTR;
2273 }
2274
2275
2276 PyDoc_STRVAR(doc_wxPyApp_SetMacExitMenuItemId, "SetMacExitMenuItemId(val: int)");
2277
2278 extern "C" {static PyObject *meth_wxPyApp_SetMacExitMenuItemId(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetMacExitMenuItemId(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2279 static PyObject *meth_wxPyApp_SetMacExitMenuItemId(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2280 {
2281 PyObject *sipParseErr = SIP_NULLPTR;
2282
2283 {
2284 long val;
2285
2286 static const char *sipKwdList[] = {
2287 sipName_val,
2288 };
2289
2290 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "l", &val))
2291 {
2292 PyErr_Clear();
2293
2294 Py_BEGIN_ALLOW_THREADS
2295 ::wxPyApp::SetMacExitMenuItemId(val);
2296 Py_END_ALLOW_THREADS
2297
2298 if (PyErr_Occurred())
2299 return 0;
2300
2301 Py_INCREF(Py_None);
2302 return Py_None;
2303 }
2304 }
2305
2306 /* Raise an exception if the arguments couldn't be parsed. */
2307 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetMacExitMenuItemId, doc_wxPyApp_SetMacExitMenuItemId);
2308
2309 return SIP_NULLPTR;
2310 }
2311
2312
2313 PyDoc_STRVAR(doc_wxPyApp_SetMacHelpMenuTitleName, "SetMacHelpMenuTitleName(val: object)");
2314
2315 extern "C" {static PyObject *meth_wxPyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetMacHelpMenuTitleName(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2316 static PyObject *meth_wxPyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2317 {
2318 PyObject *sipParseErr = SIP_NULLPTR;
2319
2320 {
2321 const ::wxString* val;
2322 int valState = 0;
2323
2324 static const char *sipKwdList[] = {
2325 sipName_val,
2326 };
2327
2328 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J1", sipType_wxString,&val, &valState))
2329 {
2330 PyErr_Clear();
2331
2332 Py_BEGIN_ALLOW_THREADS
2333 ::wxPyApp::SetMacHelpMenuTitleName(*val);
2334 Py_END_ALLOW_THREADS
2335 sipReleaseType(const_cast< ::wxString *>(val),sipType_wxString,valState);
2336
2337 if (PyErr_Occurred())
2338 return 0;
2339
2340 Py_INCREF(Py_None);
2341 return Py_None;
2342 }
2343 }
2344
2345 /* Raise an exception if the arguments couldn't be parsed. */
2346 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetMacHelpMenuTitleName, doc_wxPyApp_SetMacHelpMenuTitleName);
2347
2348 return SIP_NULLPTR;
2349 }
2350
2351
2352 PyDoc_STRVAR(doc_wxPyApp_GetAssertMode, "GetAssertMode() -> AppAssertMode\n"
2353 "\n"
2354 "Returns the current mode for how the application responds to wx\n"
2355 "asserts.");
2356
2357 extern "C" {static PyObject *meth_wxPyApp_GetAssertMode(PyObject *, PyObject *);}
meth_wxPyApp_GetAssertMode(PyObject * sipSelf,PyObject * sipArgs)2358 static PyObject *meth_wxPyApp_GetAssertMode(PyObject *sipSelf, PyObject *sipArgs)
2359 {
2360 PyObject *sipParseErr = SIP_NULLPTR;
2361
2362 {
2363 ::wxPyApp *sipCpp;
2364
2365 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPyApp, &sipCpp))
2366 {
2367 ::wxAppAssertMode sipRes;
2368
2369 PyErr_Clear();
2370
2371 Py_BEGIN_ALLOW_THREADS
2372 sipRes = sipCpp->GetAssertMode();
2373 Py_END_ALLOW_THREADS
2374
2375 if (PyErr_Occurred())
2376 return 0;
2377
2378 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxAppAssertMode);
2379 }
2380 }
2381
2382 /* Raise an exception if the arguments couldn't be parsed. */
2383 sipNoMethod(sipParseErr, sipName_PyApp, sipName_GetAssertMode, SIP_NULLPTR);
2384
2385 return SIP_NULLPTR;
2386 }
2387
2388
2389 PyDoc_STRVAR(doc_wxPyApp_SetAssertMode, "SetAssertMode(AppAssertMode)\n"
2390 "\n"
2391 "Set the mode indicating how the application responds to wx assertion\n"
2392 "statements. Valid settings are a combination of these flags:\n"
2393 "\n"
2394 " - wx.APP_ASSERT_SUPPRESS\n"
2395 " - wx.APP_ASSERT_EXCEPTION\n"
2396 " - wx.APP_ASSERT_DIALOG\n"
2397 " - wx.APP_ASSERT_LOG\n"
2398 "\n"
2399 "The default behavior is to raise a wx.wxAssertionError exception.");
2400
2401 extern "C" {static PyObject *meth_wxPyApp_SetAssertMode(PyObject *, PyObject *, PyObject *);}
meth_wxPyApp_SetAssertMode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2402 static PyObject *meth_wxPyApp_SetAssertMode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2403 {
2404 PyObject *sipParseErr = SIP_NULLPTR;
2405
2406 {
2407 ::wxAppAssertMode wxAppAssertMode;
2408 ::wxPyApp *sipCpp;
2409
2410 static const char *sipKwdList[] = {
2411 sipName_wxAppAssertMode,
2412 };
2413
2414 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxPyApp, &sipCpp, sipType_wxAppAssertMode, &wxAppAssertMode))
2415 {
2416 PyErr_Clear();
2417
2418 Py_BEGIN_ALLOW_THREADS
2419 sipCpp->SetAssertMode(wxAppAssertMode);
2420 Py_END_ALLOW_THREADS
2421
2422 if (PyErr_Occurred())
2423 return 0;
2424
2425 Py_INCREF(Py_None);
2426 return Py_None;
2427 }
2428 }
2429
2430 /* Raise an exception if the arguments couldn't be parsed. */
2431 sipNoMethod(sipParseErr, sipName_PyApp, sipName_SetAssertMode, SIP_NULLPTR);
2432
2433 return SIP_NULLPTR;
2434 }
2435
2436
2437 PyDoc_STRVAR(doc_wxPyApp_IsDisplayAvailable, "IsDisplayAvailable() -> bool\n"
2438 "\n"
2439 "Returns True if the application is able to connect to the system's\n"
2440 "display, or whatever the equivallent is for the platform.");
2441
2442 extern "C" {static PyObject *meth_wxPyApp_IsDisplayAvailable(PyObject *, PyObject *);}
meth_wxPyApp_IsDisplayAvailable(PyObject *,PyObject * sipArgs)2443 static PyObject *meth_wxPyApp_IsDisplayAvailable(PyObject *, PyObject *sipArgs)
2444 {
2445 PyObject *sipParseErr = SIP_NULLPTR;
2446
2447 {
2448 if (sipParseArgs(&sipParseErr, sipArgs, ""))
2449 {
2450 bool sipRes;
2451
2452 PyErr_Clear();
2453
2454 Py_BEGIN_ALLOW_THREADS
2455 sipRes = ::wxPyApp::IsDisplayAvailable();
2456 Py_END_ALLOW_THREADS
2457
2458 if (PyErr_Occurred())
2459 return 0;
2460
2461 return PyBool_FromLong(sipRes);
2462 }
2463 }
2464
2465 /* Raise an exception if the arguments couldn't be parsed. */
2466 sipNoMethod(sipParseErr, sipName_PyApp, sipName_IsDisplayAvailable, SIP_NULLPTR);
2467
2468 return SIP_NULLPTR;
2469 }
2470
2471
2472 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2473 extern "C" {static void *cast_wxPyApp(void *, const sipTypeDef *);}
cast_wxPyApp(void * sipCppV,const sipTypeDef * targetType)2474 static void *cast_wxPyApp(void *sipCppV, const sipTypeDef *targetType)
2475 {
2476 ::wxPyApp *sipCpp = reinterpret_cast< ::wxPyApp *>(sipCppV);
2477
2478 if (targetType == sipType_wxAppConsole)
2479 return static_cast< ::wxAppConsole *>(sipCpp);
2480
2481 if (targetType == sipType_wxEvtHandler)
2482 return static_cast< ::wxEvtHandler *>(sipCpp);
2483
2484 if (targetType == sipType_wxObject)
2485 return static_cast< ::wxObject *>(sipCpp);
2486
2487 if (targetType == sipType_wxTrackable)
2488 return static_cast< ::wxTrackable *>(sipCpp);
2489
2490 if (targetType == sipType_wxEventFilter)
2491 return static_cast< ::wxEventFilter *>(sipCpp);
2492
2493 return sipCppV;
2494 }
2495
2496
2497 /* Call the instance's destructor. */
2498 extern "C" {static void release_wxPyApp(void *, int);}
release_wxPyApp(void * sipCppV,int sipState)2499 static void release_wxPyApp(void *sipCppV, int sipState)
2500 {
2501 Py_BEGIN_ALLOW_THREADS
2502
2503 if (sipState & SIP_DERIVED_CLASS)
2504 delete reinterpret_cast<sipwxPyApp *>(sipCppV);
2505 else
2506 delete reinterpret_cast< ::wxPyApp *>(sipCppV);
2507
2508 Py_END_ALLOW_THREADS
2509 }
2510
2511
2512 extern "C" {static void dealloc_wxPyApp(sipSimpleWrapper *);}
dealloc_wxPyApp(sipSimpleWrapper * sipSelf)2513 static void dealloc_wxPyApp(sipSimpleWrapper *sipSelf)
2514 {
2515 if (sipIsDerivedClass(sipSelf))
2516 reinterpret_cast<sipwxPyApp *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
2517
2518 if (sipIsOwnedByPython(sipSelf))
2519 {
2520 release_wxPyApp(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
2521 }
2522 }
2523
2524
2525 extern "C" {static void *init_type_wxPyApp(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxPyApp(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)2526 static void *init_type_wxPyApp(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
2527 {
2528 sipwxPyApp *sipCpp = SIP_NULLPTR;
2529
2530 {
2531 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2532 {
2533 PyErr_Clear();
2534
2535 Py_BEGIN_ALLOW_THREADS
2536 sipCpp = new sipwxPyApp();
2537 Py_END_ALLOW_THREADS
2538
2539 if (PyErr_Occurred())
2540 {
2541 delete sipCpp;
2542 return SIP_NULLPTR;
2543 }
2544
2545 sipCpp->sipPySelf = sipSelf;
2546
2547 return sipCpp;
2548 }
2549 }
2550
2551 return SIP_NULLPTR;
2552 }
2553
2554
2555 /* Define this type's super-types. */
2556 static sipEncodedTypeDef supers_wxPyApp[] = {{19, 255, 1}};
2557
2558
2559 static PyMethodDef methods_wxPyApp[] = {
2560 {SIP_MLNAME_CAST(sipName_GetAssertMode), meth_wxPyApp_GetAssertMode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetAssertMode)},
2561 {SIP_MLNAME_CAST(sipName_GetComCtl32Version), meth_wxPyApp_GetComCtl32Version, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetComCtl32Version)},
2562 {SIP_MLNAME_CAST(sipName_GetDisplayMode), meth_wxPyApp_GetDisplayMode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetDisplayMode)},
2563 {SIP_MLNAME_CAST(sipName_GetExitOnFrameDelete), meth_wxPyApp_GetExitOnFrameDelete, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetExitOnFrameDelete)},
2564 {SIP_MLNAME_CAST(sipName_GetLayoutDirection), meth_wxPyApp_GetLayoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetLayoutDirection)},
2565 {SIP_MLNAME_CAST(sipName_GetMacAboutMenuItemId), meth_wxPyApp_GetMacAboutMenuItemId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetMacAboutMenuItemId)},
2566 {SIP_MLNAME_CAST(sipName_GetMacExitMenuItemId), meth_wxPyApp_GetMacExitMenuItemId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetMacExitMenuItemId)},
2567 {SIP_MLNAME_CAST(sipName_GetMacHelpMenuTitleName), meth_wxPyApp_GetMacHelpMenuTitleName, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetMacHelpMenuTitleName)},
2568 {SIP_MLNAME_CAST(sipName_GetMacPreferencesMenuItemId), meth_wxPyApp_GetMacPreferencesMenuItemId, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetMacPreferencesMenuItemId)},
2569 {SIP_MLNAME_CAST(sipName_GetShell32Version), meth_wxPyApp_GetShell32Version, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetShell32Version)},
2570 {SIP_MLNAME_CAST(sipName_GetTopWindow), meth_wxPyApp_GetTopWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetTopWindow)},
2571 {SIP_MLNAME_CAST(sipName_GetUseBestVisual), meth_wxPyApp_GetUseBestVisual, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_GetUseBestVisual)},
2572 {SIP_MLNAME_CAST(sipName_IsActive), meth_wxPyApp_IsActive, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_IsActive)},
2573 {SIP_MLNAME_CAST(sipName_IsDisplayAvailable), meth_wxPyApp_IsDisplayAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_IsDisplayAvailable)},
2574 {SIP_MLNAME_CAST(sipName_MacHideApp), meth_wxPyApp_MacHideApp, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_MacHideApp)},
2575 {SIP_MLNAME_CAST(sipName_MacNewFile), meth_wxPyApp_MacNewFile, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_MacNewFile)},
2576 {SIP_MLNAME_CAST(sipName_MacOpenFile), SIP_MLMETH_CAST(meth_wxPyApp_MacOpenFile), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_MacOpenFile)},
2577 {SIP_MLNAME_CAST(sipName_MacOpenFiles), SIP_MLMETH_CAST(meth_wxPyApp_MacOpenFiles), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_MacOpenFiles)},
2578 {SIP_MLNAME_CAST(sipName_MacOpenURL), SIP_MLMETH_CAST(meth_wxPyApp_MacOpenURL), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_MacOpenURL)},
2579 {SIP_MLNAME_CAST(sipName_MacPrintFile), SIP_MLMETH_CAST(meth_wxPyApp_MacPrintFile), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_MacPrintFile)},
2580 {SIP_MLNAME_CAST(sipName_MacReopenApp), meth_wxPyApp_MacReopenApp, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_MacReopenApp)},
2581 {SIP_MLNAME_CAST(sipName_MainLoop), meth_wxPyApp_MainLoop, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_MainLoop)},
2582 {SIP_MLNAME_CAST(sipName_OSXIsGUIApplication), meth_wxPyApp_OSXIsGUIApplication, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OSXIsGUIApplication)},
2583 {SIP_MLNAME_CAST(sipName_OnExit), meth_wxPyApp_OnExit, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OnExit)},
2584 {SIP_MLNAME_CAST(sipName_OnInit), meth_wxPyApp_OnInit, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OnInit)},
2585 {SIP_MLNAME_CAST(sipName_OnInitGui), meth_wxPyApp_OnInitGui, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OnInitGui)},
2586 {SIP_MLNAME_CAST(sipName_OnPreInit), meth_wxPyApp_OnPreInit, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OnPreInit)},
2587 {SIP_MLNAME_CAST(sipName_OnRun), meth_wxPyApp_OnRun, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp_OnRun)},
2588 {SIP_MLNAME_CAST(sipName_SafeYield), SIP_MLMETH_CAST(meth_wxPyApp_SafeYield), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SafeYield)},
2589 {SIP_MLNAME_CAST(sipName_SafeYieldFor), SIP_MLMETH_CAST(meth_wxPyApp_SafeYieldFor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SafeYieldFor)},
2590 {SIP_MLNAME_CAST(sipName_SetAssertMode), SIP_MLMETH_CAST(meth_wxPyApp_SetAssertMode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetAssertMode)},
2591 {SIP_MLNAME_CAST(sipName_SetDisplayMode), SIP_MLMETH_CAST(meth_wxPyApp_SetDisplayMode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetDisplayMode)},
2592 {SIP_MLNAME_CAST(sipName_SetExitOnFrameDelete), SIP_MLMETH_CAST(meth_wxPyApp_SetExitOnFrameDelete), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetExitOnFrameDelete)},
2593 {SIP_MLNAME_CAST(sipName_SetMacAboutMenuItemId), SIP_MLMETH_CAST(meth_wxPyApp_SetMacAboutMenuItemId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetMacAboutMenuItemId)},
2594 {SIP_MLNAME_CAST(sipName_SetMacExitMenuItemId), SIP_MLMETH_CAST(meth_wxPyApp_SetMacExitMenuItemId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetMacExitMenuItemId)},
2595 {SIP_MLNAME_CAST(sipName_SetMacHelpMenuTitleName), SIP_MLMETH_CAST(meth_wxPyApp_SetMacHelpMenuTitleName), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetMacHelpMenuTitleName)},
2596 {SIP_MLNAME_CAST(sipName_SetMacPreferencesMenuItemId), SIP_MLMETH_CAST(meth_wxPyApp_SetMacPreferencesMenuItemId), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetMacPreferencesMenuItemId)},
2597 {SIP_MLNAME_CAST(sipName_SetNativeTheme), SIP_MLMETH_CAST(meth_wxPyApp_SetNativeTheme), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetNativeTheme)},
2598 {SIP_MLNAME_CAST(sipName_SetTopWindow), SIP_MLMETH_CAST(meth_wxPyApp_SetTopWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetTopWindow)},
2599 {SIP_MLNAME_CAST(sipName_SetUseBestVisual), SIP_MLMETH_CAST(meth_wxPyApp_SetUseBestVisual), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_SetUseBestVisual)},
2600 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxPyApp_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_TryAfter)},
2601 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxPyApp_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPyApp_TryBefore)},
2602 {SIP_MLNAME_CAST(sipName__BootstrapApp), meth_wxPyApp__BootstrapApp, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPyApp__BootstrapApp)}
2603 };
2604
2605 sipVariableDef variables_wxPyApp[] = {
2606 {PropertyVariable, sipName_TopWindow, &methods_wxPyApp[10], &methods_wxPyApp[38], SIP_NULLPTR, SIP_NULLPTR},
2607 {PropertyVariable, sipName_UseBestVisual, &methods_wxPyApp[11], &methods_wxPyApp[39], SIP_NULLPTR, SIP_NULLPTR},
2608 {PropertyVariable, sipName_LayoutDirection, &methods_wxPyApp[4], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2609 {PropertyVariable, sipName_ExitOnFrameDelete, &methods_wxPyApp[3], &methods_wxPyApp[32], SIP_NULLPTR, SIP_NULLPTR},
2610 {PropertyVariable, sipName_DisplayMode, &methods_wxPyApp[2], &methods_wxPyApp[31], SIP_NULLPTR, SIP_NULLPTR},
2611 {PropertyVariable, sipName_AssertMode, &methods_wxPyApp[0], &methods_wxPyApp[30], SIP_NULLPTR, SIP_NULLPTR},
2612 };
2613
2614 PyDoc_STRVAR(doc_wxPyApp, "PyApp()\n"
2615 "\n"
2616 "The wxApp class represents the application itself when wxUSE_GUI=1.");
2617
2618
2619 sipClassTypeDef sipTypeDef__core_wxPyApp = {
2620 {
2621 -1,
2622 SIP_NULLPTR,
2623 SIP_NULLPTR,
2624 SIP_TYPE_SCC|SIP_TYPE_CLASS,
2625 sipNameNr_wxPyApp,
2626 {SIP_NULLPTR},
2627 SIP_NULLPTR
2628 },
2629 {
2630 sipNameNr_PyApp,
2631 {0, 0, 1},
2632 43, methods_wxPyApp,
2633 0, SIP_NULLPTR,
2634 6, variables_wxPyApp,
2635 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2636 },
2637 doc_wxPyApp,
2638 -1,
2639 -1,
2640 supers_wxPyApp,
2641 SIP_NULLPTR,
2642 init_type_wxPyApp,
2643 SIP_NULLPTR,
2644 SIP_NULLPTR,
2645 #if PY_MAJOR_VERSION >= 3
2646 SIP_NULLPTR,
2647 SIP_NULLPTR,
2648 #else
2649 SIP_NULLPTR,
2650 SIP_NULLPTR,
2651 SIP_NULLPTR,
2652 SIP_NULLPTR,
2653 #endif
2654 dealloc_wxPyApp,
2655 SIP_NULLPTR,
2656 SIP_NULLPTR,
2657 SIP_NULLPTR,
2658 release_wxPyApp,
2659 cast_wxPyApp,
2660 SIP_NULLPTR,
2661 SIP_NULLPTR,
2662 SIP_NULLPTR,
2663 SIP_NULLPTR,
2664 SIP_NULLPTR,
2665 SIP_NULLPTR
2666 };
2667