]> git.saurik.com Git - wxWidgets.git/commitdiff
Use dummy class on Mac until wxEventLoop is implemented there
authorRobin Dunn <robin@alldunn.com>
Sat, 25 Sep 2004 23:09:57 +0000 (23:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 25 Sep 2004 23:09:57 +0000 (23:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_evtloop.i

index 168666ecb18c78c35f7f7c8560ba64d1e8336025..124be3153539b9b5dcc6d3e46899f3214f4fdb94 100644 (file)
 %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 <wx/evtloop.h>
+
+#endif
 %}
 
 class wxEventLoop