%newgroup
%{
+#if 0 // #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 <wx/evtloop.h>
+
+#endif
%}
class wxEventLoop
};
+
+// This object sets the wxEventLoop given to the ctor as the currently active
+// one and unsets it in its dtor, this is especially useful in presence of
+// exceptions but is more tidy even when we don't use them
+class wxEventLoopActivator
+{
+public:
+ wxEventLoopActivator(wxEventLoop *evtLoop);
+ ~wxEventLoopActivator();
+};
+
+
+
//---------------------------------------------------------------------------