X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e980740ac55c4718617e84c17b74ec34b96a0c24..d24a34bb5d3f17472179b38bcb0be253551fce65:/utils/wxPython/src/msw/events.py diff --git a/utils/wxPython/src/msw/events.py b/utils/wxPython/src/msw/events.py index d773d463d6..243b0480b6 100644 --- a/utils/wxPython/src/msw/events.py +++ b/utils/wxPython/src/msw/events.py @@ -605,6 +605,48 @@ class wxSysColourChangedEvent(wxSysColourChangedEventPtr): +class wxPyEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __del__(self): + if self.thisown == 1 : + eventsc.delete_wxPyEvent(self.this) + def SetUserData(self,arg0): + val = eventsc.wxPyEvent_SetUserData(self.this,arg0) + return val + def GetUserData(self): + val = eventsc.wxPyEvent_GetUserData(self.this) + return val + def __repr__(self): + return "" +class wxPyEvent(wxPyEventPtr): + def __init__(self,*args) : + self.this = apply(eventsc.new_wxPyEvent,()+args) + self.thisown = 1 + + + + +class wxNotifyEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def IsAllowed(self): + val = eventsc.wxNotifyEvent_IsAllowed(self.this) + return val + def Veto(self): + val = eventsc.wxNotifyEvent_Veto(self.this) + return val + def __repr__(self): + return "" +class wxNotifyEvent(wxNotifyEventPtr): + def __init__(self,this): + self.this = this + + + + #-------------- FUNCTION WRAPPERS ------------------