X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6056257ab676ea10a51ef96e19b1f1092f95b40..a92b0cfd2bd0bef75b43c071df0b0e028f360d8e:/wxPython/src/mac/events.py diff --git a/wxPython/src/mac/events.py b/wxPython/src/mac/events.py index 85de45a1f6..a50e4f988c 100644 --- a/wxPython/src/mac/events.py +++ b/wxPython/src/mac/events.py @@ -41,12 +41,15 @@ class wxEventPtr(wxObjectPtr): def Skip(self, *_args, **_kwargs): val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs) return val + def Clone(self, *_args, **_kwargs): + val = apply(eventsc.wxEvent_Clone,(self,) + _args, _kwargs) + if val: val = wxEventPtr(val) + return val def __repr__(self): return "" % (self.this,) class wxEvent(wxEventPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(eventsc.new_wxEvent,_args,_kwargs) - self.thisown = 1 + def __init__(self,this): + self.this = this