]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/events.py
Added some missing EVT_ functions
[wxWidgets.git] / utils / wxPython / src / msw / events.py
index 7022af97feb3024174dfb7d96c251ce1fbeb1dc3..d579ec5e1858797e85e6824be752bfa3f538798f 100644 (file)
@@ -121,6 +121,15 @@ class wxCommandEventPtr(wxEventPtr):
     def IsSelection(self, *_args, **_kwargs):
         val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs)
         return val
+    def SetString(self, *_args, **_kwargs):
+        val = apply(eventsc.wxCommandEvent_SetString,(self,) + _args, _kwargs)
+        return val
+    def SetExtraLong(self, *_args, **_kwargs):
+        val = apply(eventsc.wxCommandEvent_SetExtraLong,(self,) + _args, _kwargs)
+        return val
+    def SetInt(self, *_args, **_kwargs):
+        val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
+        return val
     def __repr__(self):
         return "<C wxCommandEvent instance at %s>" % (self.this,)
 class wxCommandEvent(wxCommandEventPtr):
@@ -794,11 +803,11 @@ class wxPyEventPtr(wxEventPtr):
     def __del__(self,eventsc=eventsc):
         if self.thisown == 1 :
             eventsc.delete_wxPyEvent(self)
-    def SetPyData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_SetPyData,(self,) + _args, _kwargs)
+    def SetSelf(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs)
         return val
-    def GetPyData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_GetPyData,(self,) + _args, _kwargs)
+    def GetSelf(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
         return "<C wxPyEvent instance at %s>" % (self.this,)
@@ -806,6 +815,7 @@ class wxPyEvent(wxPyEventPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs)
         self.thisown = 1
+        self.SetSelf(self)
 
 
 
@@ -817,11 +827,11 @@ class wxPyCommandEventPtr(wxCommandEventPtr):
     def __del__(self,eventsc=eventsc):
         if self.thisown == 1 :
             eventsc.delete_wxPyCommandEvent(self)
-    def SetPyData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyCommandEvent_SetPyData,(self,) + _args, _kwargs)
+    def SetSelf(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs)
         return val
-    def GetPyData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyCommandEvent_GetPyData,(self,) + _args, _kwargs)
+    def GetSelf(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
         return "<C wxPyCommandEvent instance at %s>" % (self.this,)
@@ -829,6 +839,7 @@ class wxPyCommandEvent(wxPyCommandEventPtr):
     def __init__(self,*_args,**_kwargs):
         self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
         self.thisown = 1
+        self.SetSelf(self)