From: Robin Dunn Date: Sat, 25 Sep 2004 23:09:57 +0000 (+0000) Subject: Use dummy class on Mac until wxEventLoop is implemented there X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/edda5768ab5b901c460f486c97f02f151f843ea7 Use dummy class on Mac until wxEventLoop is implemented there git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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