X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96d49f0eea53dbaae6fd926d6a2107f9f6e87e7d..3a9becbd5439254a77e7dbc0278d80117a397264:/wxPython/src/_evtloop.i 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