]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/msw/misc.py
Better dependency checking
[wxWidgets.git] / utils / wxPython / src / msw / misc.py
index 76cf76348a5de17fcb03300c8123f31316364e7a..bdcb7de858f65161bfd970b970dc1ede4cca4821 100644 (file)
@@ -4,58 +4,64 @@ class wxSizePtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxSize(self.this)
-    def Set(self,arg0,arg1):
-        val = miscc.wxSize_Set(self.this,arg0,arg1)
+            miscc.delete_wxSize(self)
+    def Set(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
         return val
-    def GetX(self):
-        val = miscc.wxSize_GetX(self.this)
+    def GetX(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
         return val
-    def GetY(self):
-        val = miscc.wxSize_GetY(self.this)
+    def GetY(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
         return val
-    def GetWidth(self):
-        val = miscc.wxSize_GetWidth(self.this)
+    def GetWidth(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
         return val
-    def GetHeight(self):
-        val = miscc.wxSize_GetHeight(self.this)
+    def GetHeight(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
         return val
-    def asTuple(self):
-        val = miscc.wxSize_asTuple(self.this)
+    def SetWidth(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
+        return val
+    def SetHeight(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
+        return val
+    def asTuple(self, *_args, **_kwargs):
+        val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
-            miscc.wxSize_x_set(self.this,value)
+            miscc.wxSize_x_set(self,value)
             return
         if name == "y" :
-            miscc.wxSize_y_set(self.this,value)
+            miscc.wxSize_y_set(self,value)
             return
         if name == "width" :
-            miscc.wxSize_width_set(self.this,value)
+            miscc.wxSize_width_set(self,value)
             return
         if name == "height" :
-            miscc.wxSize_height_set(self.this,value)
+            miscc.wxSize_height_set(self,value)
             return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "x" : 
-            return miscc.wxSize_x_get(self.this)
+            return miscc.wxSize_x_get(self)
         if name == "y" : 
-            return miscc.wxSize_y_get(self.this)
+            return miscc.wxSize_y_get(self)
         if name == "width" : 
-            return miscc.wxSize_width_get(self.this)
+            return miscc.wxSize_width_get(self)
         if name == "height" : 
-            return miscc.wxSize_height_get(self.this)
+            return miscc.wxSize_height_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxSize instance>"
+        return "<C wxSize instance at %s>" % (self.this,)
     def __str__(self): return str(self.asTuple())
     def __repr__(self): return str(self.asTuple())
 class wxSize(wxSizePtr):
-    def __init__(self,*args) :
-        self.this = apply(miscc.new_wxSize,()+args)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxSize,_args,_kwargs)
         self.thisown = 1
 
 
@@ -65,28 +71,36 @@ class wxRealPointPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxRealPoint(self.this)
+            miscc.delete_wxRealPoint(self)
+    def Set(self, *_args, **_kwargs):
+        val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs)
+        return val
+    def asTuple(self, *_args, **_kwargs):
+        val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs)
+        return val
     def __setattr__(self,name,value):
         if name == "x" :
-            miscc.wxRealPoint_x_set(self.this,value)
+            miscc.wxRealPoint_x_set(self,value)
             return
         if name == "y" :
-            miscc.wxRealPoint_y_set(self.this,value)
+            miscc.wxRealPoint_y_set(self,value)
             return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "x" : 
-            return miscc.wxRealPoint_x_get(self.this)
+            return miscc.wxRealPoint_x_get(self)
         if name == "y" : 
-            return miscc.wxRealPoint_y_get(self.this)
+            return miscc.wxRealPoint_y_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxRealPoint instance>"
+        return "<C wxRealPoint instance at %s>" % (self.this,)
+    def __str__(self): return str(self.asTuple())
+    def __repr__(self): return str(self.asTuple())
 class wxRealPoint(wxRealPointPtr):
-    def __init__(self,*args) :
-        self.this = apply(miscc.new_wxRealPoint,()+args)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
         self.thisown = 1
 
 
@@ -96,36 +110,36 @@ class wxPointPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxPoint(self.this)
-    def Set(self,arg0,arg1):
-        val = miscc.wxPoint_Set(self.this,arg0,arg1)
+            miscc.delete_wxPoint(self)
+    def Set(self, *_args, **_kwargs):
+        val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
         return val
-    def asTuple(self):
-        val = miscc.wxPoint_asTuple(self.this)
+    def asTuple(self, *_args, **_kwargs):
+        val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
-            miscc.wxPoint_x_set(self.this,value)
+            miscc.wxPoint_x_set(self,value)
             return
         if name == "y" :
-            miscc.wxPoint_y_set(self.this,value)
+            miscc.wxPoint_y_set(self,value)
             return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "x" : 
-            return miscc.wxPoint_x_get(self.this)
+            return miscc.wxPoint_x_get(self)
         if name == "y" : 
-            return miscc.wxPoint_y_get(self.this)
+            return miscc.wxPoint_y_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxPoint instance>"
+        return "<C wxPoint instance at %s>" % (self.this,)
     def __str__(self): return str(self.asTuple())
     def __repr__(self): return str(self.asTuple())
 class wxPoint(wxPointPtr):
-    def __init__(self,*args) :
-        self.this = apply(miscc.new_wxPoint,()+args)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxPoint,_args,_kwargs)
         self.thisown = 1
 
 
@@ -135,89 +149,87 @@ class wxRectPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxRect(self.this)
-    def GetX(self):
-        val = miscc.wxRect_GetX(self.this)
+            miscc.delete_wxRect(self)
+    def GetX(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
         return val
-    def SetX(self,arg0):
-        val = miscc.wxRect_SetX(self.this,arg0)
+    def SetX(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
         return val
-    def GetY(self):
-        val = miscc.wxRect_GetY(self.this)
+    def GetY(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
         return val
-    def SetY(self,arg0):
-        val = miscc.wxRect_SetY(self.this,arg0)
+    def SetY(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
         return val
-    def GetWidth(self):
-        val = miscc.wxRect_GetWidth(self.this)
+    def GetWidth(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
         return val
-    def SetWidth(self,arg0):
-        val = miscc.wxRect_SetWidth(self.this,arg0)
+    def SetWidth(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
         return val
-    def GetHeight(self):
-        val = miscc.wxRect_GetHeight(self.this)
+    def GetHeight(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
         return val
-    def SetHeight(self,arg0):
-        val = miscc.wxRect_SetHeight(self.this,arg0)
+    def SetHeight(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
         return val
-    def GetPosition(self):
-        val = miscc.wxRect_GetPosition(self.this)
-        val = wxPointPtr(val)
-        val.thisown = 1
+    def GetPosition(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
+        if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
-    def GetSize(self):
-        val = miscc.wxRect_GetSize(self.this)
-        val = wxSizePtr(val)
-        val.thisown = 1
+    def GetSize(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
+        if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
-    def GetLeft(self):
-        val = miscc.wxRect_GetLeft(self.this)
+    def GetLeft(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
         return val
-    def GetTop(self):
-        val = miscc.wxRect_GetTop(self.this)
+    def GetTop(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
         return val
-    def GetBottom(self):
-        val = miscc.wxRect_GetBottom(self.this)
+    def GetBottom(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
         return val
-    def GetRight(self):
-        val = miscc.wxRect_GetRight(self.this)
+    def GetRight(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
         return val
-    def asTuple(self):
-        val = miscc.wxRect_asTuple(self.this)
+    def asTuple(self, *_args, **_kwargs):
+        val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "x" :
-            miscc.wxRect_x_set(self.this,value)
+            miscc.wxRect_x_set(self,value)
             return
         if name == "y" :
-            miscc.wxRect_y_set(self.this,value)
+            miscc.wxRect_y_set(self,value)
             return
         if name == "width" :
-            miscc.wxRect_width_set(self.this,value)
+            miscc.wxRect_width_set(self,value)
             return
         if name == "height" :
-            miscc.wxRect_height_set(self.this,value)
+            miscc.wxRect_height_set(self,value)
             return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "x" : 
-            return miscc.wxRect_x_get(self.this)
+            return miscc.wxRect_x_get(self)
         if name == "y" : 
-            return miscc.wxRect_y_get(self.this)
+            return miscc.wxRect_y_get(self)
         if name == "width" : 
-            return miscc.wxRect_width_get(self.this)
+            return miscc.wxRect_width_get(self)
         if name == "height" : 
-            return miscc.wxRect_height_get(self.this)
+            return miscc.wxRect_height_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxRect instance>"
+        return "<C wxRect instance at %s>" % (self.this,)
     def __str__(self): return str(self.asTuple())
     def __repr__(self): return str(self.asTuple())
 class wxRect(wxRectPtr):
-    def __init__(self,*args) :
-        self.this = apply(miscc.new_wxRect,()+args)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxRect,_args,_kwargs)
         self.thisown = 1
 
 
@@ -227,23 +239,23 @@ class wxPyTimerPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxPyTimer(self.this)
-    def Interval(self):
-        val = miscc.wxPyTimer_Interval(self.this)
+            miscc.delete_wxPyTimer(self)
+    def Interval(self, *_args, **_kwargs):
+        val = apply(miscc.wxPyTimer_Interval,(self,) + _args, _kwargs)
         return val
-    def Start(self,*args):
-        val = apply(miscc.wxPyTimer_Start,(self.this,)+args)
+    def Start(self, *_args, **_kwargs):
+        val = apply(miscc.wxPyTimer_Start,(self,) + _args, _kwargs)
         return val
-    def Stop(self):
-        val = miscc.wxPyTimer_Stop(self.this)
+    def Stop(self, *_args, **_kwargs):
+        val = apply(miscc.wxPyTimer_Stop,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxPyTimer instance>"
+        return "<C wxPyTimer instance at %s>" % (self.this,)
 class wxPyTimer(wxPyTimerPtr):
-    def __init__(self,arg0) :
-        self.this = miscc.new_wxPyTimer(arg0)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxPyTimer,_args,_kwargs)
         self.thisown = 1
 
 
@@ -253,38 +265,38 @@ class wxIndividualLayoutConstraintPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def Above(self,arg0,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_Above,(self.this,arg0.this,)+args)
+    def Above(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
         return val
-    def Absolute(self,arg0):
-        val = miscc.wxIndividualLayoutConstraint_Absolute(self.this,arg0)
+    def Absolute(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
         return val
-    def AsIs(self):
-        val = miscc.wxIndividualLayoutConstraint_AsIs(self.this)
+    def AsIs(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
         return val
-    def Below(self,arg0,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_Below,(self.this,arg0.this,)+args)
+    def Below(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
         return val
-    def Unconstrained(self):
-        val = miscc.wxIndividualLayoutConstraint_Unconstrained(self.this)
+    def Unconstrained(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
         return val
-    def LeftOf(self,arg0,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self.this,arg0.this,)+args)
+    def LeftOf(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
         return val
-    def PercentOf(self,arg0,arg1,arg2):
-        val = miscc.wxIndividualLayoutConstraint_PercentOf(self.this,arg0.this,arg1,arg2)
+    def PercentOf(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
         return val
-    def RightOf(self,arg0,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self.this,arg0.this,)+args)
+    def RightOf(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
         return val
-    def SameAs(self,arg0,arg1,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self.this,arg0.this,arg1,)+args)
+    def SameAs(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
         return val
-    def Set(self,arg0,arg1,arg2,*args):
-        val = apply(miscc.wxIndividualLayoutConstraint_Set,(self.this,arg0,arg1.this,arg2,)+args)
+    def Set(self, *_args, **_kwargs):
+        val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxIndividualLayoutConstraint instance>"
+        return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
     def __init__(self,this):
         self.this = this
@@ -298,53 +310,53 @@ class wxLayoutConstraintsPtr :
         self.thisown = 0
     def __setattr__(self,name,value):
         if name == "bottom" :
-            miscc.wxLayoutConstraints_bottom_set(self.this,value.this)
+            miscc.wxLayoutConstraints_bottom_set(self,value.this)
             return
         if name == "centreX" :
-            miscc.wxLayoutConstraints_centreX_set(self.this,value.this)
+            miscc.wxLayoutConstraints_centreX_set(self,value.this)
             return
         if name == "centreY" :
-            miscc.wxLayoutConstraints_centreY_set(self.this,value.this)
+            miscc.wxLayoutConstraints_centreY_set(self,value.this)
             return
         if name == "height" :
-            miscc.wxLayoutConstraints_height_set(self.this,value.this)
+            miscc.wxLayoutConstraints_height_set(self,value.this)
             return
         if name == "left" :
-            miscc.wxLayoutConstraints_left_set(self.this,value.this)
+            miscc.wxLayoutConstraints_left_set(self,value.this)
             return
         if name == "right" :
-            miscc.wxLayoutConstraints_right_set(self.this,value.this)
+            miscc.wxLayoutConstraints_right_set(self,value.this)
             return
         if name == "top" :
-            miscc.wxLayoutConstraints_top_set(self.this,value.this)
+            miscc.wxLayoutConstraints_top_set(self,value.this)
             return
         if name == "width" :
-            miscc.wxLayoutConstraints_width_set(self.this,value.this)
+            miscc.wxLayoutConstraints_width_set(self,value.this)
             return
         self.__dict__[name] = value
     def __getattr__(self,name):
         if name == "bottom" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
         if name == "centreX" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
         if name == "centreY" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
         if name == "height" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
         if name == "left" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
         if name == "right" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
         if name == "top" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
         if name == "width" : 
-            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self.this))
+            return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxLayoutConstraints instance>"
+        return "<C wxLayoutConstraints instance at %s>" % (self.this,)
 class wxLayoutConstraints(wxLayoutConstraintsPtr):
-    def __init__(self:
-        self.this = miscc.new_wxLayoutConstraints()
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
         self.thisown = 1
 
 
@@ -354,46 +366,45 @@ class wxRegionPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxRegion(self.this)
-    def Clear(self):
-        val = miscc.wxRegion_Clear(self.this)
+            miscc.delete_wxRegion(self)
+    def Clear(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
         return val
-    def Contains(self,arg0,arg1):
-        val = miscc.wxRegion_Contains(self.this,arg0,arg1)
+    def Contains(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
         return val
-    def ContainsPoint(self,arg0):
-        val = miscc.wxRegion_ContainsPoint(self.this,arg0.this)
+    def ContainsPoint(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
         return val
-    def ContainsRect(self,arg0):
-        val = miscc.wxRegion_ContainsRect(self.this,arg0.this)
+    def ContainsRect(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
         return val
-    def GetBox(self):
-        val = miscc.wxRegion_GetBox(self.this)
-        val = wxRectPtr(val)
-        val.thisown = 1
+    def GetBox(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
+        if val: val = wxRectPtr(val) ; val.thisown = 1
         return val
-    def Intersect(self,arg0):
-        val = miscc.wxRegion_Intersect(self.this,arg0.this)
+    def Intersect(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
         return val
-    def IsEmpty(self):
-        val = miscc.wxRegion_IsEmpty(self.this)
+    def IsEmpty(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
         return val
-    def Subtract(self,arg0):
-        val = miscc.wxRegion_Subtract(self.this,arg0.this)
+    def Subtract(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
         return val
-    def Union(self,arg0):
-        val = miscc.wxRegion_Union(self.this,arg0.this)
+    def Union(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs)
         return val
-    def Xor(self,arg0):
-        val = miscc.wxRegion_Xor(self.this,arg0.this)
+    def Xor(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxRegion instance>"
+        return "<C wxRegion instance at %s>" % (self.this,)
 class wxRegion(wxRegionPtr):
-    def __init__(self:
-        self.this = miscc.new_wxRegion()
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxRegion,_args,_kwargs)
         self.thisown = 1
 
 
@@ -403,46 +414,45 @@ class wxRegionIteratorPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self):
+    def __del__(self,miscc=miscc):
         if self.thisown == 1 :
-            miscc.delete_wxRegionIterator(self.this)
-    def GetX(self):
-        val = miscc.wxRegionIterator_GetX(self.this)
+            miscc.delete_wxRegionIterator(self)
+    def GetX(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
         return val
-    def GetY(self):
-        val = miscc.wxRegionIterator_GetY(self.this)
+    def GetY(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
         return val
-    def GetW(self):
-        val = miscc.wxRegionIterator_GetW(self.this)
+    def GetW(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
         return val
-    def GetWidth(self):
-        val = miscc.wxRegionIterator_GetWidth(self.this)
+    def GetWidth(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
         return val
-    def GetH(self):
-        val = miscc.wxRegionIterator_GetH(self.this)
+    def GetH(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
         return val
-    def GetHeight(self):
-        val = miscc.wxRegionIterator_GetHeight(self.this)
+    def GetHeight(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
         return val
-    def GetRect(self):
-        val = miscc.wxRegionIterator_GetRect(self.this)
-        val = wxRectPtr(val)
-        val.thisown = 1
+    def GetRect(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
+        if val: val = wxRectPtr(val) ; val.thisown = 1
         return val
-    def HaveRects(self):
-        val = miscc.wxRegionIterator_HaveRects(self.this)
+    def HaveRects(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
         return val
-    def Reset(self):
-        val = miscc.wxRegionIterator_Reset(self.this)
+    def Reset(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
         return val
-    def Next(self):
-        val = miscc.wxRegionIterator_Next(self.this)
+    def Next(self, *_args, **_kwargs):
+        val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxRegionIterator instance>"
+        return "<C wxRegionIterator instance at %s>" % (self.this,)
 class wxRegionIterator(wxRegionIteratorPtr):
-    def __init__(self,arg0) :
-        self.this = miscc.new_wxRegionIterator(arg0.this)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
         self.thisown = 1
 
 
@@ -452,23 +462,23 @@ class wxAcceleratorEntryPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def Set(self,arg0,arg1,arg2):
-        val = miscc.wxAcceleratorEntry_Set(self.this,arg0,arg1,arg2)
+    def Set(self, *_args, **_kwargs):
+        val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
         return val
-    def GetFlags(self):
-        val = miscc.wxAcceleratorEntry_GetFlags(self.this)
+    def GetFlags(self, *_args, **_kwargs):
+        val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
         return val
-    def GetKeyCode(self):
-        val = miscc.wxAcceleratorEntry_GetKeyCode(self.this)
+    def GetKeyCode(self, *_args, **_kwargs):
+        val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
         return val
-    def GetCommand(self):
-        val = miscc.wxAcceleratorEntry_GetCommand(self.this)
+    def GetCommand(self, *_args, **_kwargs):
+        val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxAcceleratorEntry instance>"
+        return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
 class wxAcceleratorEntry(wxAcceleratorEntryPtr):
-    def __init__(self,*args) :
-        self.this = apply(miscc.new_wxAcceleratorEntry,()+args)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
         self.thisown = 1
 
 
@@ -479,34 +489,10 @@ class wxAcceleratorTablePtr :
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxAcceleratorTable instance>"
+        return "<C wxAcceleratorTable instance at %s>" % (self.this,)
 class wxAcceleratorTable(wxAcceleratorTablePtr):
-    def __init__(self,arg0) :
-        self.this = miscc.new_wxAcceleratorTable(arg0.this)
-        self.thisown = 1
-
-
-
-
-class wxToolTipPtr :
-    def __init__(self,this):
-        self.this = this
-        self.thisown = 0
-    def SetTip(self,arg0):
-        val = miscc.wxToolTip_SetTip(self.this,arg0)
-        return val
-    def GetTip(self):
-        val = miscc.wxToolTip_GetTip(self.this)
-        return val
-    def GetWindow(self):
-        val = miscc.wxToolTip_GetWindow(self.this)
-        val = wxWindowPtr(val)
-        return val
-    def __repr__(self):
-        return "<C wxToolTip instance>"
-class wxToolTip(wxToolTipPtr):
-    def __init__(self,arg0) :
-        self.this = miscc.new_wxToolTip(arg0)
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
         self.thisown = 1
 
 
@@ -516,53 +502,23 @@ class wxToolTip(wxToolTipPtr):
 
 #-------------- FUNCTION WRAPPERS ------------------
 
-def wxFileSelector(arg0,*args):
-    argl = map(None,args)
-    try: argl[5] = argl[5].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxFileSelector,(arg0,)+args)
-    return val
+wxFileSelector = miscc.wxFileSelector
 
-def wxGetTextFromUser(arg0,*args):
-    argl = map(None,args)
-    try: argl[2] = argl[2].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxGetTextFromUser,(arg0,)+args)
-    return val
+wxGetTextFromUser = miscc.wxGetTextFromUser
 
-def wxGetSingleChoice(arg0,arg1,arg2,*args):
-    argl = map(None,args)
-    try: argl[0] = argl[0].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxGetSingleChoice,(arg0,arg1,arg2,)+args)
-    return val
+wxGetSingleChoice = miscc.wxGetSingleChoice
 
-def wxGetSingleChoiceIndex(arg0,arg1,arg2,*args):
-    argl = map(None,args)
-    try: argl[0] = argl[0].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxGetSingleChoiceIndex,(arg0,arg1,arg2,)+args)
-    return val
+wxGetSingleChoiceIndex = miscc.wxGetSingleChoiceIndex
 
-def wxMessageBox(arg0,*args):
-    argl = map(None,args)
-    try: argl[2] = argl[2].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxMessageBox,(arg0,)+args)
-    return val
+wxMessageBox = miscc.wxMessageBox
+
+wxGetNumberFromUser = miscc.wxGetNumberFromUser
 
 wxColourDisplay = miscc.wxColourDisplay
 
 wxDisplayDepth = miscc.wxDisplayDepth
 
-def wxSetCursor(arg0):
-    val = miscc.wxSetCursor(arg0.this)
-    return val
+wxSetCursor = miscc.wxSetCursor
 
 wxNewId = miscc.wxNewId
 
@@ -572,13 +528,7 @@ NewId = miscc.NewId
 
 RegisterId = miscc.RegisterId
 
-def wxBeginBusyCursor(*args):
-    argl = map(None,args)
-    try: argl[0] = argl[0].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxBeginBusyCursor,()+args)
-    return val
+wxBeginBusyCursor = miscc.wxBeginBusyCursor
 
 wxBell = miscc.wxBell
 
@@ -588,27 +538,9 @@ wxEndBusyCursor = miscc.wxEndBusyCursor
 
 wxExecute = miscc.wxExecute
 
-def wxFindWindowByLabel(arg0,*args):
-    argl = map(None,args)
-    try: argl[0] = argl[0].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxFindWindowByLabel,(arg0,)+args)
-    val = wxWindowPtr(val)
-    return val
-
-def wxFindWindowByName(arg0,*args):
-    argl = map(None,args)
-    try: argl[0] = argl[0].this
-    except: pass
-    args = tuple(argl)
-    val = apply(miscc.wxFindWindowByName,(arg0,)+args)
-    val = wxWindowPtr(val)
-    return val
-
-def wxGetActiveWindow():
-    val = miscc.wxGetActiveWindow()
-    val = wxWindowPtr(val)
+def wxGetActiveWindow(*_args, **_kwargs):
+    val = apply(miscc.wxGetActiveWindow,_args,_kwargs)
+    if val: val = wxWindowPtr(val)
     return val
 
 wxGetElapsedTime = miscc.wxGetElapsedTime
@@ -627,31 +559,33 @@ wxStartTimer = miscc.wxStartTimer
 
 wxGetOsVersion = miscc.wxGetOsVersion
 
+wxSleep = miscc.wxSleep
+
 wxYield = miscc.wxYield
 
 wxSafeYield = miscc.wxSafeYield
 
+wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
+
 wxGetResource = miscc.wxGetResource
 
 wxResourceAddIdentifier = miscc.wxResourceAddIdentifier
 
 wxResourceClear = miscc.wxResourceClear
 
-def wxResourceCreateBitmap(arg0):
-    val = miscc.wxResourceCreateBitmap(arg0)
-    val = wxBitmapPtr(val)
-    val.thisown = 1
+def wxResourceCreateBitmap(*_args, **_kwargs):
+    val = apply(miscc.wxResourceCreateBitmap,_args,_kwargs)
+    if val: val = wxBitmapPtr(val); val.thisown = 1
     return val
 
-def wxResourceCreateIcon(arg0):
-    val = miscc.wxResourceCreateIcon(arg0)
-    val = wxIconPtr(val)
-    val.thisown = 1
+def wxResourceCreateIcon(*_args, **_kwargs):
+    val = apply(miscc.wxResourceCreateIcon,_args,_kwargs)
+    if val: val = wxIconPtr(val); val.thisown = 1
     return val
 
-def wxResourceCreateMenuBar(arg0):
-    val = miscc.wxResourceCreateMenuBar(arg0)
-    val = wxMenuBarPtr(val)
+def wxResourceCreateMenuBar(*_args, **_kwargs):
+    val = apply(miscc.wxResourceCreateMenuBar,_args,_kwargs)
+    if val: val = wxMenuBarPtr(val)
     return val
 
 wxResourceGetIdentifier = miscc.wxResourceGetIdentifier
@@ -662,9 +596,17 @@ wxResourceParseFile = miscc.wxResourceParseFile
 
 wxResourceParseString = miscc.wxResourceParseString
 
-wxToolTip_Enable = miscc.wxToolTip_Enable
+def wxSystemSettings_GetSystemColour(*_args, **_kwargs):
+    val = apply(miscc.wxSystemSettings_GetSystemColour,_args,_kwargs)
+    if val: val = wxColourPtr(val); val.thisown = 1
+    return val
+
+def wxSystemSettings_GetSystemFont(*_args, **_kwargs):
+    val = apply(miscc.wxSystemSettings_GetSystemFont,_args,_kwargs)
+    if val: val = wxFontPtr(val); val.thisown = 1
+    return val
 
-wxToolTip_SetDelay = miscc.wxToolTip_SetDelay
+wxSystemSettings_GetSystemMetric = miscc.wxSystemSettings_GetSystemMetric
 
 
 
@@ -692,3 +634,89 @@ wxAbsolute = miscc.wxAbsolute
 wxOutRegion = miscc.wxOutRegion
 wxPartRegion = miscc.wxPartRegion
 wxInRegion = miscc.wxInRegion
+wxSYS_WHITE_BRUSH = miscc.wxSYS_WHITE_BRUSH
+wxSYS_LTGRAY_BRUSH = miscc.wxSYS_LTGRAY_BRUSH
+wxSYS_GRAY_BRUSH = miscc.wxSYS_GRAY_BRUSH
+wxSYS_DKGRAY_BRUSH = miscc.wxSYS_DKGRAY_BRUSH
+wxSYS_BLACK_BRUSH = miscc.wxSYS_BLACK_BRUSH
+wxSYS_NULL_BRUSH = miscc.wxSYS_NULL_BRUSH
+wxSYS_HOLLOW_BRUSH = miscc.wxSYS_HOLLOW_BRUSH
+wxSYS_WHITE_PEN = miscc.wxSYS_WHITE_PEN
+wxSYS_BLACK_PEN = miscc.wxSYS_BLACK_PEN
+wxSYS_NULL_PEN = miscc.wxSYS_NULL_PEN
+wxSYS_OEM_FIXED_FONT = miscc.wxSYS_OEM_FIXED_FONT
+wxSYS_ANSI_FIXED_FONT = miscc.wxSYS_ANSI_FIXED_FONT
+wxSYS_ANSI_VAR_FONT = miscc.wxSYS_ANSI_VAR_FONT
+wxSYS_SYSTEM_FONT = miscc.wxSYS_SYSTEM_FONT
+wxSYS_DEVICE_DEFAULT_FONT = miscc.wxSYS_DEVICE_DEFAULT_FONT
+wxSYS_DEFAULT_PALETTE = miscc.wxSYS_DEFAULT_PALETTE
+wxSYS_SYSTEM_FIXED_FONT = miscc.wxSYS_SYSTEM_FIXED_FONT
+wxSYS_DEFAULT_GUI_FONT = miscc.wxSYS_DEFAULT_GUI_FONT
+wxSYS_COLOUR_SCROLLBAR = miscc.wxSYS_COLOUR_SCROLLBAR
+wxSYS_COLOUR_BACKGROUND = miscc.wxSYS_COLOUR_BACKGROUND
+wxSYS_COLOUR_ACTIVECAPTION = miscc.wxSYS_COLOUR_ACTIVECAPTION
+wxSYS_COLOUR_INACTIVECAPTION = miscc.wxSYS_COLOUR_INACTIVECAPTION
+wxSYS_COLOUR_MENU = miscc.wxSYS_COLOUR_MENU
+wxSYS_COLOUR_WINDOW = miscc.wxSYS_COLOUR_WINDOW
+wxSYS_COLOUR_WINDOWFRAME = miscc.wxSYS_COLOUR_WINDOWFRAME
+wxSYS_COLOUR_MENUTEXT = miscc.wxSYS_COLOUR_MENUTEXT
+wxSYS_COLOUR_WINDOWTEXT = miscc.wxSYS_COLOUR_WINDOWTEXT
+wxSYS_COLOUR_CAPTIONTEXT = miscc.wxSYS_COLOUR_CAPTIONTEXT
+wxSYS_COLOUR_ACTIVEBORDER = miscc.wxSYS_COLOUR_ACTIVEBORDER
+wxSYS_COLOUR_INACTIVEBORDER = miscc.wxSYS_COLOUR_INACTIVEBORDER
+wxSYS_COLOUR_APPWORKSPACE = miscc.wxSYS_COLOUR_APPWORKSPACE
+wxSYS_COLOUR_HIGHLIGHT = miscc.wxSYS_COLOUR_HIGHLIGHT
+wxSYS_COLOUR_HIGHLIGHTTEXT = miscc.wxSYS_COLOUR_HIGHLIGHTTEXT
+wxSYS_COLOUR_BTNFACE = miscc.wxSYS_COLOUR_BTNFACE
+wxSYS_COLOUR_BTNSHADOW = miscc.wxSYS_COLOUR_BTNSHADOW
+wxSYS_COLOUR_GRAYTEXT = miscc.wxSYS_COLOUR_GRAYTEXT
+wxSYS_COLOUR_BTNTEXT = miscc.wxSYS_COLOUR_BTNTEXT
+wxSYS_COLOUR_INACTIVECAPTIONTEXT = miscc.wxSYS_COLOUR_INACTIVECAPTIONTEXT
+wxSYS_COLOUR_BTNHIGHLIGHT = miscc.wxSYS_COLOUR_BTNHIGHLIGHT
+wxSYS_COLOUR_3DDKSHADOW = miscc.wxSYS_COLOUR_3DDKSHADOW
+wxSYS_COLOUR_3DLIGHT = miscc.wxSYS_COLOUR_3DLIGHT
+wxSYS_COLOUR_INFOTEXT = miscc.wxSYS_COLOUR_INFOTEXT
+wxSYS_COLOUR_INFOBK = miscc.wxSYS_COLOUR_INFOBK
+wxSYS_COLOUR_DESKTOP = miscc.wxSYS_COLOUR_DESKTOP
+wxSYS_COLOUR_3DFACE = miscc.wxSYS_COLOUR_3DFACE
+wxSYS_COLOUR_3DSHADOW = miscc.wxSYS_COLOUR_3DSHADOW
+wxSYS_COLOUR_3DHIGHLIGHT = miscc.wxSYS_COLOUR_3DHIGHLIGHT
+wxSYS_COLOUR_3DHILIGHT = miscc.wxSYS_COLOUR_3DHILIGHT
+wxSYS_COLOUR_BTNHILIGHT = miscc.wxSYS_COLOUR_BTNHILIGHT
+wxSYS_MOUSE_BUTTONS = miscc.wxSYS_MOUSE_BUTTONS
+wxSYS_BORDER_X = miscc.wxSYS_BORDER_X
+wxSYS_BORDER_Y = miscc.wxSYS_BORDER_Y
+wxSYS_CURSOR_X = miscc.wxSYS_CURSOR_X
+wxSYS_CURSOR_Y = miscc.wxSYS_CURSOR_Y
+wxSYS_DCLICK_X = miscc.wxSYS_DCLICK_X
+wxSYS_DCLICK_Y = miscc.wxSYS_DCLICK_Y
+wxSYS_DRAG_X = miscc.wxSYS_DRAG_X
+wxSYS_DRAG_Y = miscc.wxSYS_DRAG_Y
+wxSYS_EDGE_X = miscc.wxSYS_EDGE_X
+wxSYS_EDGE_Y = miscc.wxSYS_EDGE_Y
+wxSYS_HSCROLL_ARROW_X = miscc.wxSYS_HSCROLL_ARROW_X
+wxSYS_HSCROLL_ARROW_Y = miscc.wxSYS_HSCROLL_ARROW_Y
+wxSYS_HTHUMB_X = miscc.wxSYS_HTHUMB_X
+wxSYS_ICON_X = miscc.wxSYS_ICON_X
+wxSYS_ICON_Y = miscc.wxSYS_ICON_Y
+wxSYS_ICONSPACING_X = miscc.wxSYS_ICONSPACING_X
+wxSYS_ICONSPACING_Y = miscc.wxSYS_ICONSPACING_Y
+wxSYS_WINDOWMIN_X = miscc.wxSYS_WINDOWMIN_X
+wxSYS_WINDOWMIN_Y = miscc.wxSYS_WINDOWMIN_Y
+wxSYS_SCREEN_X = miscc.wxSYS_SCREEN_X
+wxSYS_SCREEN_Y = miscc.wxSYS_SCREEN_Y
+wxSYS_FRAMESIZE_X = miscc.wxSYS_FRAMESIZE_X
+wxSYS_FRAMESIZE_Y = miscc.wxSYS_FRAMESIZE_Y
+wxSYS_SMALLICON_X = miscc.wxSYS_SMALLICON_X
+wxSYS_SMALLICON_Y = miscc.wxSYS_SMALLICON_Y
+wxSYS_HSCROLL_Y = miscc.wxSYS_HSCROLL_Y
+wxSYS_VSCROLL_X = miscc.wxSYS_VSCROLL_X
+wxSYS_VSCROLL_ARROW_X = miscc.wxSYS_VSCROLL_ARROW_X
+wxSYS_VSCROLL_ARROW_Y = miscc.wxSYS_VSCROLL_ARROW_Y
+wxSYS_VTHUMB_Y = miscc.wxSYS_VTHUMB_Y
+wxSYS_CAPTION_Y = miscc.wxSYS_CAPTION_Y
+wxSYS_MENU_Y = miscc.wxSYS_MENU_Y
+wxSYS_NETWORK_PRESENT = miscc.wxSYS_NETWORK_PRESENT
+wxSYS_PENWINDOWS_PRESENT = miscc.wxSYS_PENWINDOWS_PRESENT
+wxSYS_SHOW_SOUNDS = miscc.wxSYS_SHOW_SOUNDS
+wxSYS_SWAP_BUTTONS = miscc.wxSYS_SWAP_BUTTONS