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
This commit is contained in:
@@ -20,7 +20,27 @@
|
|||||||
%newgroup
|
%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>
|
#include <wx/evtloop.h>
|
||||||
|
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
class wxEventLoop
|
class wxEventLoop
|
||||||
|
Reference in New Issue
Block a user