]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/events.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / msw / events.py
index 8dbc2d265c8d7b1973bb5d0f639ec451e6fdc936..3505d67a41038ec8ecf843f97167cc20cbdabc57 100644 (file)
@@ -4,48 +4,108 @@ import eventsc
 from misc import *
 
 from gdi import *
-class wxEventPtr :
+
+from fonts import *
+class wxEventPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,eventsc=eventsc):
-        if self.thisown == 1 :
-            eventsc.delete_wxEvent(self)
+    def __del__(self, delfunc=eventsc.delete_wxEvent):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def GetEventObject(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_GetEventObject,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_GetEventObject(self, *_args, **_kwargs)
         return val
     def GetEventType(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_GetEventType,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_GetEventType(self, *_args, **_kwargs)
         return val
     def GetId(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_GetId,(self,) + _args, _kwargs)
-        return val
-    def GetSkipped(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_GetSkipped,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_GetId(self, *_args, **_kwargs)
         return val
     def GetTimestamp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_GetTimestamp,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_GetTimestamp(self, *_args, **_kwargs)
         return val
     def SetEventObject(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_SetEventObject,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_SetEventObject(self, *_args, **_kwargs)
         return val
     def SetEventType(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_SetEventType,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_SetEventType(self, *_args, **_kwargs)
         return val
     def SetId(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_SetId,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_SetId(self, *_args, **_kwargs)
         return val
     def SetTimestamp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_SetTimestamp,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_SetTimestamp(self, *_args, **_kwargs)
+        return val
+    def IsCommandEvent(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_IsCommandEvent(self, *_args, **_kwargs)
         return val
     def Skip(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs)
+        val = eventsc.wxEvent_Skip(self, *_args, **_kwargs)
+        return val
+    def GetSkipped(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_GetSkipped(self, *_args, **_kwargs)
+        return val
+    def ShouldPropagate(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_ShouldPropagate(self, *_args, **_kwargs)
+        return val
+    def StopPropagation(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_StopPropagation(self, *_args, **_kwargs)
+        return val
+    def ResumePropagation(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_ResumePropagation(self, *_args, **_kwargs)
+        return val
+    def Clone(self, *_args, **_kwargs):
+        val = eventsc.wxEvent_Clone(self, *_args, **_kwargs)
+        if val: val = wxEventPtr(val) 
         return val
     def __repr__(self):
-        return "<C wxEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxEvent(wxEventPtr):
+    def __init__(self,this):
+        self.this = this
+
+
+
+
+class wxPropagationDisablerPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self, delfunc=eventsc.delete_wxPropagationDisabler):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxPropagationDisabler(wxPropagationDisablerPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxEvent,_args,_kwargs)
+        self.this = eventsc.new_wxPropagationDisabler(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxPropagateOncePtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self, delfunc=eventsc.delete_wxPropagateOnce):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxPropagateOnce(wxPropagateOncePtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxPropagateOnce(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -56,14 +116,21 @@ class wxSizeEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetSize(self, *_args, **_kwargs):
-        val = apply(eventsc.wxSizeEvent_GetSize,(self,) + _args, _kwargs)
+        val = eventsc.wxSizeEvent_GetSize(self, *_args, **_kwargs)
         if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
+    def GetRect(self, *_args, **_kwargs):
+        val = eventsc.wxSizeEvent_GetRect(self, *_args, **_kwargs)
+        if val: val = wxRectPtr(val) ; val.thisown = 1
+        return val
+    def SetRect(self, *_args, **_kwargs):
+        val = eventsc.wxSizeEvent_SetRect(self, *_args, **_kwargs)
+        return val
     def __repr__(self):
-        return "<C wxSizeEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxSizeEvent(wxSizeEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxSizeEvent,_args,_kwargs)
+        self.this = eventsc.new_wxSizeEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -74,28 +141,28 @@ class wxCloseEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def SetLoggingOff(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_SetLoggingOff,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_SetLoggingOff(self, *_args, **_kwargs)
         return val
     def GetLoggingOff(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_GetLoggingOff,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_GetLoggingOff(self, *_args, **_kwargs)
         return val
     def Veto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_Veto,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_Veto(self, *_args, **_kwargs)
         return val
     def CanVeto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_CanVeto,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_CanVeto(self, *_args, **_kwargs)
         return val
     def GetVeto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_GetVeto,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_GetVeto(self, *_args, **_kwargs)
         return val
     def SetCanVeto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCloseEvent_SetCanVeto,(self,) + _args, _kwargs)
+        val = eventsc.wxCloseEvent_SetCanVeto(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxCloseEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxCloseEvent(wxCloseEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxCloseEvent,_args,_kwargs)
+        self.this = eventsc.new_wxCloseEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -106,40 +173,43 @@ class wxCommandEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def IsChecked(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_IsChecked,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_IsChecked(self, *_args, **_kwargs)
         return val
     def Checked(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_Checked,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_Checked(self, *_args, **_kwargs)
         return val
     def GetExtraLong(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_GetExtraLong,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_GetExtraLong(self, *_args, **_kwargs)
         return val
     def GetInt(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_GetInt,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_GetInt(self, *_args, **_kwargs)
         return val
     def GetSelection(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_GetSelection,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_GetSelection(self, *_args, **_kwargs)
         return val
     def GetString(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_GetString,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_GetString(self, *_args, **_kwargs)
         return val
     def IsSelection(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_IsSelection(self, *_args, **_kwargs)
         return val
     def SetString(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_SetString,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_SetString(self, *_args, **_kwargs)
         return val
     def SetExtraLong(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_SetExtraLong,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_SetExtraLong(self, *_args, **_kwargs)
         return val
     def SetInt(self, *_args, **_kwargs):
-        val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
+        val = eventsc.wxCommandEvent_SetInt(self, *_args, **_kwargs)
+        return val
+    def GetClientData(self, *_args, **_kwargs):
+        val = eventsc.wxCommandEvent_GetClientData(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxCommandEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxCommandEvent(wxCommandEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxCommandEvent,_args,_kwargs)
+        self.this = eventsc.new_wxCommandEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -150,16 +220,16 @@ class wxScrollEventPtr(wxCommandEventPtr):
         self.this = this
         self.thisown = 0
     def GetOrientation(self, *_args, **_kwargs):
-        val = apply(eventsc.wxScrollEvent_GetOrientation,(self,) + _args, _kwargs)
+        val = eventsc.wxScrollEvent_GetOrientation(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxScrollEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxScrollEvent_GetPosition(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxScrollEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxScrollEvent(wxScrollEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxScrollEvent,_args,_kwargs)
+        self.this = eventsc.new_wxScrollEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -170,16 +240,16 @@ class wxScrollWinEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetOrientation(self, *_args, **_kwargs):
-        val = apply(eventsc.wxScrollWinEvent_GetOrientation,(self,) + _args, _kwargs)
+        val = eventsc.wxScrollWinEvent_GetOrientation(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxScrollWinEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxScrollWinEvent_GetPosition(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxScrollWinEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxScrollWinEvent(wxScrollWinEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxScrollWinEvent,_args,_kwargs)
+        self.this = eventsc.new_wxScrollWinEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -190,10 +260,10 @@ class wxSpinEventPtr(wxScrollEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxSpinEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxSpinEvent(wxSpinEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxSpinEvent,_args,_kwargs)
+        self.this = eventsc.new_wxSpinEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -204,99 +274,108 @@ class wxMouseEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def IsButton(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_IsButton,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_IsButton(self, *_args, **_kwargs)
         return val
     def ButtonDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ButtonDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ButtonDown(self, *_args, **_kwargs)
         return val
     def ButtonDClick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ButtonDClick,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ButtonDClick(self, *_args, **_kwargs)
         return val
     def ButtonUp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ButtonUp,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ButtonUp(self, *_args, **_kwargs)
         return val
     def Button(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_Button,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_Button(self, *_args, **_kwargs)
         return val
     def ButtonIsDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ButtonIsDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ButtonIsDown(self, *_args, **_kwargs)
         return val
     def ControlDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ControlDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ControlDown(self, *_args, **_kwargs)
         return val
     def MetaDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_MetaDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_MetaDown(self, *_args, **_kwargs)
         return val
     def AltDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_AltDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_AltDown(self, *_args, **_kwargs)
         return val
     def ShiftDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_ShiftDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_ShiftDown(self, *_args, **_kwargs)
         return val
     def LeftDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_LeftDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_LeftDown(self, *_args, **_kwargs)
         return val
     def MiddleDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_MiddleDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_MiddleDown(self, *_args, **_kwargs)
         return val
     def RightDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_RightDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_RightDown(self, *_args, **_kwargs)
         return val
     def LeftUp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_LeftUp,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_LeftUp(self, *_args, **_kwargs)
         return val
     def MiddleUp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_MiddleUp,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_MiddleUp(self, *_args, **_kwargs)
         return val
     def RightUp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_RightUp,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_RightUp(self, *_args, **_kwargs)
         return val
     def LeftDClick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_LeftDClick,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_LeftDClick(self, *_args, **_kwargs)
         return val
     def MiddleDClick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_MiddleDClick,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_MiddleDClick(self, *_args, **_kwargs)
         return val
     def RightDClick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_RightDClick,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_RightDClick(self, *_args, **_kwargs)
         return val
     def LeftIsDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_LeftIsDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_LeftIsDown(self, *_args, **_kwargs)
         return val
     def MiddleIsDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_MiddleIsDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_MiddleIsDown(self, *_args, **_kwargs)
         return val
     def RightIsDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_RightIsDown,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_RightIsDown(self, *_args, **_kwargs)
         return val
     def Dragging(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_Dragging,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_Dragging(self, *_args, **_kwargs)
         return val
     def Moving(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_Moving,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_Moving(self, *_args, **_kwargs)
         return val
     def Entering(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_Entering,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_Entering(self, *_args, **_kwargs)
         return val
     def Leaving(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_Leaving,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_Leaving(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetPositionTuple(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_GetPositionTuple,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_GetPositionTuple(self, *_args, **_kwargs)
         return val
     def GetLogicalPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_GetLogicalPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_GetLogicalPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetX(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_GetX,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_GetX(self, *_args, **_kwargs)
         return val
     def GetY(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs)
+        val = eventsc.wxMouseEvent_GetY(self, *_args, **_kwargs)
+        return val
+    def GetWheelRotation(self, *_args, **_kwargs):
+        val = eventsc.wxMouseEvent_GetWheelRotation(self, *_args, **_kwargs)
+        return val
+    def GetWheelDelta(self, *_args, **_kwargs):
+        val = eventsc.wxMouseEvent_GetWheelDelta(self, *_args, **_kwargs)
+        return val
+    def GetLinesPerAction(self, *_args, **_kwargs):
+        val = eventsc.wxMouseEvent_GetLinesPerAction(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "m_x" :
@@ -326,6 +405,15 @@ class wxMouseEventPtr(wxEventPtr):
         if name == "m_metaDown" :
             eventsc.wxMouseEvent_m_metaDown_set(self,value)
             return
+        if name == "m_wheelRotation" :
+            eventsc.wxMouseEvent_m_wheelRotation_set(self,value)
+            return
+        if name == "m_wheelDelta" :
+            eventsc.wxMouseEvent_m_wheelDelta_set(self,value)
+            return
+        if name == "m_linesPerAction" :
+            eventsc.wxMouseEvent_m_linesPerAction_set(self,value)
+            return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "m_x" : 
@@ -346,12 +434,65 @@ class wxMouseEventPtr(wxEventPtr):
             return eventsc.wxMouseEvent_m_altDown_get(self)
         if name == "m_metaDown" : 
             return eventsc.wxMouseEvent_m_metaDown_get(self)
+        if name == "m_wheelRotation" : 
+            return eventsc.wxMouseEvent_m_wheelRotation_get(self)
+        if name == "m_wheelDelta" : 
+            return eventsc.wxMouseEvent_m_wheelDelta_get(self)
+        if name == "m_linesPerAction" : 
+            return eventsc.wxMouseEvent_m_linesPerAction_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxMouseEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMouseEvent(wxMouseEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxMouseEvent,_args,_kwargs)
+        self.this = eventsc.new_wxMouseEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxMouseCaptureChangedEventPtr(wxEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetCapturedWindow(self, *_args, **_kwargs):
+        val = eventsc.wxMouseCaptureChangedEvent_GetCapturedWindow(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxMouseCaptureChangedEvent(wxMouseCaptureChangedEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxMouseCaptureChangedEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxSetCursorEventPtr(wxEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetX(self, *_args, **_kwargs):
+        val = eventsc.wxSetCursorEvent_GetX(self, *_args, **_kwargs)
+        return val
+    def GetY(self, *_args, **_kwargs):
+        val = eventsc.wxSetCursorEvent_GetY(self, *_args, **_kwargs)
+        return val
+    def SetCursor(self, *_args, **_kwargs):
+        val = eventsc.wxSetCursorEvent_SetCursor(self, *_args, **_kwargs)
+        return val
+    def GetCursor(self, *_args, **_kwargs):
+        val = eventsc.wxSetCursorEvent_GetCursor(self, *_args, **_kwargs)
+        if val: val = wxCursorPtr(val) 
+        return val
+    def HasCursor(self, *_args, **_kwargs):
+        val = eventsc.wxSetCursorEvent_HasCursor(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxSetCursorEvent(wxSetCursorEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxSetCursorEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -362,38 +503,41 @@ class wxKeyEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def ControlDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_ControlDown,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_ControlDown(self, *_args, **_kwargs)
         return val
     def MetaDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_MetaDown,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_MetaDown(self, *_args, **_kwargs)
         return val
     def AltDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_AltDown,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_AltDown(self, *_args, **_kwargs)
         return val
     def ShiftDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_ShiftDown,(self,) + _args, _kwargs)
-        return val
-    def KeyCode(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_ShiftDown(self, *_args, **_kwargs)
         return val
     def GetKeyCode(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_GetKeyCode,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_GetKeyCode(self, *_args, **_kwargs)
         return val
     def HasModifiers(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_HasModifiers,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_HasModifiers(self, *_args, **_kwargs)
+        return val
+    def GetRawKeyCode(self, *_args, **_kwargs):
+        val = eventsc.wxKeyEvent_GetRawKeyCode(self, *_args, **_kwargs)
+        return val
+    def GetRawKeyFlags(self, *_args, **_kwargs):
+        val = eventsc.wxKeyEvent_GetRawKeyFlags(self, *_args, **_kwargs)
         return val
     def GetX(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_GetX(self, *_args, **_kwargs)
         return val
     def GetY(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_GetY,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_GetY(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetPositionTuple(self, *_args, **_kwargs):
-        val = apply(eventsc.wxKeyEvent_GetPositionTuple,(self,) + _args, _kwargs)
+        val = eventsc.wxKeyEvent_GetPositionTuple(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "m_x" :
@@ -420,6 +564,12 @@ class wxKeyEventPtr(wxEventPtr):
         if name == "m_scanCode" :
             eventsc.wxKeyEvent_m_scanCode_set(self,value)
             return
+        if name == "m_rawCode" :
+            eventsc.wxKeyEvent_m_rawCode_set(self,value)
+            return
+        if name == "m_rawFlags" :
+            eventsc.wxKeyEvent_m_rawFlags_set(self,value)
+            return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "m_x" : 
@@ -438,12 +588,17 @@ class wxKeyEventPtr(wxEventPtr):
             return eventsc.wxKeyEvent_m_metaDown_get(self)
         if name == "m_scanCode" : 
             return eventsc.wxKeyEvent_m_scanCode_get(self)
+        if name == "m_rawCode" : 
+            return eventsc.wxKeyEvent_m_rawCode_get(self)
+        if name == "m_rawFlags" : 
+            return eventsc.wxKeyEvent_m_rawFlags_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxKeyEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    KeyCode = GetKeyCode
 class wxKeyEvent(wxKeyEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxKeyEvent,_args,_kwargs)
+        self.this = eventsc.new_wxKeyEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -454,29 +609,28 @@ class wxNavigationKeyEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetDirection(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_GetDirection,(self,) + _args, _kwargs)
+        val = eventsc.wxNavigationKeyEvent_GetDirection(self, *_args, **_kwargs)
         return val
     def SetDirection(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_SetDirection,(self,) + _args, _kwargs)
+        val = eventsc.wxNavigationKeyEvent_SetDirection(self, *_args, **_kwargs)
         return val
     def IsWindowChange(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange,(self,) + _args, _kwargs)
+        val = eventsc.wxNavigationKeyEvent_IsWindowChange(self, *_args, **_kwargs)
         return val
     def SetWindowChange(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange,(self,) + _args, _kwargs)
+        val = eventsc.wxNavigationKeyEvent_SetWindowChange(self, *_args, **_kwargs)
         return val
     def GetCurrentFocus(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
+        val = eventsc.wxNavigationKeyEvent_GetCurrentFocus(self, *_args, **_kwargs)
         return val
     def SetCurrentFocus(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
+        val = eventsc.wxNavigationKeyEvent_SetCurrentFocus(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxNavigationKeyEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxNavigationKeyEvent(wxNavigationKeyEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxNavigationKeyEvent,_args,_kwargs)
+        self.this = eventsc.new_wxNavigationKeyEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -487,14 +641,21 @@ class wxMoveEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMoveEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxMoveEvent_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
+    def GetRect(self, *_args, **_kwargs):
+        val = eventsc.wxMoveEvent_GetRect(self, *_args, **_kwargs)
+        if val: val = wxRectPtr(val) ; val.thisown = 1
+        return val
+    def SetRect(self, *_args, **_kwargs):
+        val = eventsc.wxMoveEvent_SetRect(self, *_args, **_kwargs)
+        return val
     def __repr__(self):
-        return "<C wxMoveEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMoveEvent(wxMoveEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxMoveEvent,_args,_kwargs)
+        self.this = eventsc.new_wxMoveEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -505,10 +666,10 @@ class wxPaintEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxPaintEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPaintEvent(wxPaintEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxPaintEvent,_args,_kwargs)
+        self.this = eventsc.new_wxPaintEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -519,14 +680,13 @@ class wxEraseEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetDC(self, *_args, **_kwargs):
-        val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
-        if val: val = wxDCPtr(val) 
+        val = eventsc.wxEraseEvent_GetDC(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxEraseEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxEraseEvent(wxEraseEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxEraseEvent,_args,_kwargs)
+        self.this = eventsc.new_wxEraseEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -537,10 +697,27 @@ class wxFocusEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxFocusEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxFocusEvent(wxFocusEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxFocusEvent,_args,_kwargs)
+        self.this = eventsc.new_wxFocusEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxChildFocusEventPtr(wxCommandEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetWindow(self, *_args, **_kwargs):
+        val = eventsc.wxChildFocusEvent_GetWindow(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxChildFocusEvent(wxChildFocusEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxChildFocusEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -551,13 +728,13 @@ class wxActivateEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetActive(self, *_args, **_kwargs):
-        val = apply(eventsc.wxActivateEvent_GetActive,(self,) + _args, _kwargs)
+        val = eventsc.wxActivateEvent_GetActive(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxActivateEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxActivateEvent(wxActivateEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxActivateEvent,_args,_kwargs)
+        self.this = eventsc.new_wxActivateEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -568,10 +745,10 @@ class wxInitDialogEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxInitDialogEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxInitDialogEvent(wxInitDialogEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxInitDialogEvent,_args,_kwargs)
+        self.this = eventsc.new_wxInitDialogEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -582,13 +759,19 @@ class wxMenuEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetMenuId(self, *_args, **_kwargs):
-        val = apply(eventsc.wxMenuEvent_GetMenuId,(self,) + _args, _kwargs)
+        val = eventsc.wxMenuEvent_GetMenuId(self, *_args, **_kwargs)
+        return val
+    def IsPopup(self, *_args, **_kwargs):
+        val = eventsc.wxMenuEvent_IsPopup(self, *_args, **_kwargs)
+        return val
+    def GetMenu(self, *_args, **_kwargs):
+        val = eventsc.wxMenuEvent_GetMenu(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxMenuEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMenuEvent(wxMenuEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxMenuEvent,_args,_kwargs)
+        self.this = eventsc.new_wxMenuEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -599,16 +782,16 @@ class wxShowEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def SetShow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxShowEvent_SetShow,(self,) + _args, _kwargs)
+        val = eventsc.wxShowEvent_SetShow(self, *_args, **_kwargs)
         return val
     def GetShow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxShowEvent_GetShow,(self,) + _args, _kwargs)
+        val = eventsc.wxShowEvent_GetShow(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxShowEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxShowEvent(wxShowEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxShowEvent,_args,_kwargs)
+        self.this = eventsc.new_wxShowEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -618,11 +801,14 @@ class wxIconizeEventPtr(wxEventPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
+    def Iconized(self, *_args, **_kwargs):
+        val = eventsc.wxIconizeEvent_Iconized(self, *_args, **_kwargs)
+        return val
     def __repr__(self):
-        return "<C wxIconizeEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxIconizeEvent(wxIconizeEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxIconizeEvent,_args,_kwargs)
+        self.this = eventsc.new_wxIconizeEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -633,10 +819,10 @@ class wxMaximizeEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxMaximizeEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMaximizeEvent(wxMaximizeEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxMaximizeEvent,_args,_kwargs)
+        self.this = eventsc.new_wxMaximizeEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -647,59 +833,59 @@ class wxJoystickEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetZPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_GetZPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_GetZPosition(self, *_args, **_kwargs)
         return val
     def GetButtonState(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_GetButtonState,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_GetButtonState(self, *_args, **_kwargs)
         return val
     def GetButtonChange(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_GetButtonChange,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_GetButtonChange(self, *_args, **_kwargs)
         return val
     def GetJoystick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_GetJoystick,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_GetJoystick(self, *_args, **_kwargs)
         return val
     def SetJoystick(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_SetJoystick,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_SetJoystick(self, *_args, **_kwargs)
         return val
     def SetButtonState(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_SetButtonState,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_SetButtonState(self, *_args, **_kwargs)
         return val
     def SetButtonChange(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_SetButtonChange,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_SetButtonChange(self, *_args, **_kwargs)
         return val
     def SetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_SetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_SetPosition(self, *_args, **_kwargs)
         return val
     def SetZPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_SetZPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_SetZPosition(self, *_args, **_kwargs)
         return val
     def IsButton(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_IsButton,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_IsButton(self, *_args, **_kwargs)
         return val
     def IsMove(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_IsMove,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_IsMove(self, *_args, **_kwargs)
         return val
     def IsZMove(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_IsZMove,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_IsZMove(self, *_args, **_kwargs)
         return val
     def ButtonDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_ButtonDown,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_ButtonDown(self, *_args, **_kwargs)
         return val
     def ButtonUp(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_ButtonUp,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_ButtonUp(self, *_args, **_kwargs)
         return val
     def ButtonIsDown(self, *_args, **_kwargs):
-        val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self,) + _args, _kwargs)
+        val = eventsc.wxJoystickEvent_ButtonIsDown(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxJoystickEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxJoystickEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxJoystickEvent(wxJoystickEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxJoystickEvent,_args,_kwargs)
+        self.this = eventsc.new_wxJoystickEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -710,17 +896,17 @@ class wxDropFilesEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(eventsc.wxDropFilesEvent_GetPosition,(self,) + _args, _kwargs)
+        val = eventsc.wxDropFilesEvent_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetNumberOfFiles(self, *_args, **_kwargs):
-        val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles,(self,) + _args, _kwargs)
+        val = eventsc.wxDropFilesEvent_GetNumberOfFiles(self, *_args, **_kwargs)
         return val
     def GetFiles(self, *_args, **_kwargs):
-        val = apply(eventsc.wxDropFilesEvent_GetFiles,(self,) + _args, _kwargs)
+        val = eventsc.wxDropFilesEvent_GetFiles(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxDropFilesEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxDropFilesEvent(wxDropFilesEventPtr):
     def __init__(self,this):
         self.this = this
@@ -733,16 +919,16 @@ class wxIdleEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def RequestMore(self, *_args, **_kwargs):
-        val = apply(eventsc.wxIdleEvent_RequestMore,(self,) + _args, _kwargs)
+        val = eventsc.wxIdleEvent_RequestMore(self, *_args, **_kwargs)
         return val
     def MoreRequested(self, *_args, **_kwargs):
-        val = apply(eventsc.wxIdleEvent_MoreRequested,(self,) + _args, _kwargs)
+        val = eventsc.wxIdleEvent_MoreRequested(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxIdleEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxIdleEvent(wxIdleEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxIdleEvent,_args,_kwargs)
+        self.this = eventsc.new_wxIdleEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -753,37 +939,37 @@ class wxUpdateUIEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetChecked(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetChecked,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetChecked(self, *_args, **_kwargs)
         return val
     def GetEnabled(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetEnabled,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetEnabled(self, *_args, **_kwargs)
         return val
     def GetText(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetText,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetText(self, *_args, **_kwargs)
         return val
     def GetSetText(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetSetText,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetSetText(self, *_args, **_kwargs)
         return val
     def GetSetChecked(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetSetChecked,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetSetChecked(self, *_args, **_kwargs)
         return val
     def GetSetEnabled(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_GetSetEnabled(self, *_args, **_kwargs)
         return val
     def Check(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_Check,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_Check(self, *_args, **_kwargs)
         return val
     def Enable(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_Enable,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_Enable(self, *_args, **_kwargs)
         return val
     def SetText(self, *_args, **_kwargs):
-        val = apply(eventsc.wxUpdateUIEvent_SetText,(self,) + _args, _kwargs)
+        val = eventsc.wxUpdateUIEvent_SetText(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxUpdateUIEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxUpdateUIEvent(wxUpdateUIEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxUpdateUIEvent,_args,_kwargs)
+        self.this = eventsc.new_wxUpdateUIEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -794,10 +980,10 @@ class wxSysColourChangedEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxSysColourChangedEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxSysColourChangedEvent,_args,_kwargs)
+        self.this = eventsc.new_wxSysColourChangedEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -808,19 +994,33 @@ class wxNotifyEventPtr(wxCommandEventPtr):
         self.this = this
         self.thisown = 0
     def IsAllowed(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
+        val = eventsc.wxNotifyEvent_IsAllowed(self, *_args, **_kwargs)
         return val
     def Allow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNotifyEvent_Allow,(self,) + _args, _kwargs)
+        val = eventsc.wxNotifyEvent_Allow(self, *_args, **_kwargs)
         return val
     def Veto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
+        val = eventsc.wxNotifyEvent_Veto(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxNotifyEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxNotifyEvent(wxNotifyEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxNotifyEvent,_args,_kwargs)
+        self.this = eventsc.new_wxNotifyEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxDisplayChangedEventPtr(wxEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxDisplayChangedEvent(wxDisplayChangedEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxDisplayChangedEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -831,17 +1031,16 @@ class wxPaletteChangedEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def SetChangedWindow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow,(self,) + _args, _kwargs)
+        val = eventsc.wxPaletteChangedEvent_SetChangedWindow(self, *_args, **_kwargs)
         return val
     def GetChangedWindow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
+        val = eventsc.wxPaletteChangedEvent_GetChangedWindow(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxPaletteChangedEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPaletteChangedEvent(wxPaletteChangedEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxPaletteChangedEvent,_args,_kwargs)
+        self.this = eventsc.new_wxPaletteChangedEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -852,16 +1051,16 @@ class wxQueryNewPaletteEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def SetPaletteRealized(self, *_args, **_kwargs):
-        val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized,(self,) + _args, _kwargs)
+        val = eventsc.wxQueryNewPaletteEvent_SetPaletteRealized(self, *_args, **_kwargs)
         return val
     def GetPaletteRealized(self, *_args, **_kwargs):
-        val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized,(self,) + _args, _kwargs)
+        val = eventsc.wxQueryNewPaletteEvent_GetPaletteRealized(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxQueryNewPaletteEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxQueryNewPaletteEvent,_args,_kwargs)
+        self.this = eventsc.new_wxQueryNewPaletteEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -872,14 +1071,13 @@ class wxWindowCreateEventPtr(wxCommandEventPtr):
         self.this = this
         self.thisown = 0
     def GetWindow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
+        val = eventsc.wxWindowCreateEvent_GetWindow(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxWindowCreateEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxWindowCreateEvent(wxWindowCreateEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxWindowCreateEvent,_args,_kwargs)
+        self.this = eventsc.new_wxWindowCreateEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -890,14 +1088,34 @@ class wxWindowDestroyEventPtr(wxCommandEventPtr):
         self.this = this
         self.thisown = 0
     def GetWindow(self, *_args, **_kwargs):
-        val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
-        if val: val = wxWindowPtr(val) 
+        val = eventsc.wxWindowDestroyEvent_GetWindow(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxWindowDestroyEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxWindowDestroyEvent(wxWindowDestroyEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxWindowDestroyEvent,_args,_kwargs)
+        self.this = eventsc.new_wxWindowDestroyEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxContextMenuEventPtr(wxCommandEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetPosition(self, *_args, **_kwargs):
+        val = eventsc.wxContextMenuEvent_GetPosition(self, *_args, **_kwargs)
+        if val: val = wxPointPtr(val) 
+        return val
+    def SetPosition(self, *_args, **_kwargs):
+        val = eventsc.wxContextMenuEvent_SetPosition(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxContextMenuEvent(wxContextMenuEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxContextMenuEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -908,13 +1126,36 @@ class wxTimerEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetInterval(self, *_args, **_kwargs):
-        val = apply(eventsc.wxTimerEvent_GetInterval,(self,) + _args, _kwargs)
+        val = eventsc.wxTimerEvent_GetInterval(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxTimerEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxTimerEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxTimerEvent(wxTimerEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxTimerEvent,_args,_kwargs)
+        self.this = eventsc.new_wxTimerEvent(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxTextUrlEventPtr(wxCommandEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetMouseEvent(self, *_args, **_kwargs):
+        val = eventsc.wxTextUrlEvent_GetMouseEvent(self, *_args, **_kwargs)
+        return val
+    def GetURLStart(self, *_args, **_kwargs):
+        val = eventsc.wxTextUrlEvent_GetURLStart(self, *_args, **_kwargs)
+        return val
+    def GetURLEnd(self, *_args, **_kwargs):
+        val = eventsc.wxTextUrlEvent_GetURLEnd(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxTextUrlEvent(wxTextUrlEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = eventsc.new_wxTextUrlEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
@@ -924,20 +1165,23 @@ class wxPyEventPtr(wxEventPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,eventsc=eventsc):
-        if self.thisown == 1 :
-            eventsc.delete_wxPyEvent(self)
+    def __del__(self, delfunc=eventsc.delete_wxPyEvent):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def SetSelf(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs)
+        val = eventsc.wxPyEvent_SetSelf(self, *_args, **_kwargs)
         return val
     def GetSelf(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs)
+        val = eventsc.wxPyEvent_GetSelf(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxPyEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPyEvent(wxPyEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs)
+        self.this = eventsc.new_wxPyEvent(*_args,**_kwargs)
         self.thisown = 1
         self.SetSelf(self)
 
@@ -948,20 +1192,23 @@ class wxPyCommandEventPtr(wxCommandEventPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,eventsc=eventsc):
-        if self.thisown == 1 :
-            eventsc.delete_wxPyCommandEvent(self)
+    def __del__(self, delfunc=eventsc.delete_wxPyCommandEvent):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def SetSelf(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs)
+        val = eventsc.wxPyCommandEvent_SetSelf(self, *_args, **_kwargs)
         return val
     def GetSelf(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs)
+        val = eventsc.wxPyCommandEvent_GetSelf(self, *_args, **_kwargs)
         return val
     def __repr__(self):
-        return "<C wxPyCommandEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPyCommandEvent(wxPyCommandEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
+        self.this = eventsc.new_wxPyCommandEvent(*_args,**_kwargs)
         self.thisown = 1
         self.SetSelf(self)
 
@@ -974,7 +1221,31 @@ class wxPyCommandEvent(wxPyCommandEventPtr):
 
 wxNewEventType = eventsc.wxNewEventType
 
+wxIdleEvent_SetMode = eventsc.wxIdleEvent_SetMode
+
+wxIdleEvent_GetMode = eventsc.wxIdleEvent_GetMode
+
+wxIdleEvent_CanSend = eventsc.wxIdleEvent_CanSend
+
+wxUpdateUIEvent_SetUpdateInterval = eventsc.wxUpdateUIEvent_SetUpdateInterval
+
+wxUpdateUIEvent_GetUpdateInterval = eventsc.wxUpdateUIEvent_GetUpdateInterval
+
+wxUpdateUIEvent_CanUpdate = eventsc.wxUpdateUIEvent_CanUpdate
+
+wxUpdateUIEvent_ResetUpdateTime = eventsc.wxUpdateUIEvent_ResetUpdateTime
+
+wxUpdateUIEvent_SetMode = eventsc.wxUpdateUIEvent_SetMode
+
+wxUpdateUIEvent_GetMode = eventsc.wxUpdateUIEvent_GetMode
+
 
 
 #-------------- VARIABLE WRAPPERS ------------------
 
+wxEVENT_PROPAGATE_NONE = eventsc.wxEVENT_PROPAGATE_NONE
+wxEVENT_PROPAGATE_MAX = eventsc.wxEVENT_PROPAGATE_MAX
+wxIDLE_PROCESS_ALL = eventsc.wxIDLE_PROCESS_ALL
+wxIDLE_PROCESS_SPECIFIED = eventsc.wxIDLE_PROCESS_SPECIFIED
+wxUPDATE_UI_PROCESS_ALL = eventsc.wxUPDATE_UI_PROCESS_ALL
+wxUPDATE_UI_PROCESS_SPECIFIED = eventsc.wxUPDATE_UI_PROCESS_SPECIFIED