X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96d49f0eea53dbaae6fd926d6a2107f9f6e87e7d..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/src/_evtloop.i?ds=sidebyside diff --git a/wxPython/src/_evtloop.i b/wxPython/src/_evtloop.i index 168666ecb1..124be31535 100644 --- a/wxPython/src/_evtloop.i +++ b/wxPython/src/_evtloop.i @@ -20,7 +20,27 @@ %newgroup %{ +#ifdef __WXMAC__ + +// A dummy class that raises an exception if used... +class wxEventLoop +{ +public: + wxEventLoop() { wxPyRaiseNotImplemented(); } + int Run() { return 0; } + void Exit(int rc = 0) {} + bool Pending() const { return false; } + bool Dispatch() { return false; } + bool IsRunning() const { return false; } + static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } + static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } +}; + +#else + #include + +#endif %} class wxEventLoop