]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/misc2.py
Use multi-lib build on MSW, and other tweaks
[wxWidgets.git] / wxPython / src / msw / misc2.py
index 5d6dbb22f3f6a9556ea01743494de33960bdd47d..da23e559ee98f113d87a657defcffab8158b5823 100644 (file)
@@ -16,12 +16,55 @@ from events import *
 from streams import *
 
 from utils import *
 from streams import *
 
 from utils import *
+
+# Art clients
+wxART_TOOLBAR              = 'wxART_TOOLBAR_C'
+wxART_MENU                 = 'wxART_MENU_C'
+wxART_FRAME_ICON           = 'wxART_FRAME_ICON_C'
+wxART_CMN_DIALOG           = 'wxART_CMN_DIALOG_C'
+wxART_HELP_BROWSER         = 'wxART_HELP_BROWSER_C'
+wxART_MESSAGE_BOX          = 'wxART_MESSAGE_BOX_C'
+wxART_OTHER                = 'wxART_OTHER_C'
+
+# Art IDs
+wxART_ADD_BOOKMARK         = 'wxART_ADD_BOOKMARK'
+wxART_DEL_BOOKMARK         = 'wxART_DEL_BOOKMARK'
+wxART_HELP_SIDE_PANEL      = 'wxART_HELP_SIDE_PANEL'
+wxART_HELP_SETTINGS        = 'wxART_HELP_SETTINGS'
+wxART_HELP_BOOK            = 'wxART_HELP_BOOK'
+wxART_HELP_FOLDER          = 'wxART_HELP_FOLDER'
+wxART_HELP_PAGE            = 'wxART_HELP_PAGE'
+wxART_GO_BACK              = 'wxART_GO_BACK'
+wxART_GO_FORWARD           = 'wxART_GO_FORWARD'
+wxART_GO_UP                = 'wxART_GO_UP'
+wxART_GO_DOWN              = 'wxART_GO_DOWN'
+wxART_GO_TO_PARENT         = 'wxART_GO_TO_PARENT'
+wxART_GO_HOME              = 'wxART_GO_HOME'
+wxART_FILE_OPEN            = 'wxART_FILE_OPEN'
+wxART_PRINT                = 'wxART_PRINT'
+wxART_HELP                 = 'wxART_HELP'
+wxART_TIP                  = 'wxART_TIP'
+wxART_REPORT_VIEW          = 'wxART_REPORT_VIEW'
+wxART_LIST_VIEW            = 'wxART_LIST_VIEW'
+wxART_NEW_DIR              = 'wxART_NEW_DIR'
+wxART_FOLDER               = 'wxART_FOLDER'
+wxART_GO_DIR_UP            = 'wxART_GO_DIR_UP'
+wxART_EXECUTABLE_FILE      = 'wxART_EXECUTABLE_FILE'
+wxART_NORMAL_FILE          = 'wxART_NORMAL_FILE'
+wxART_TICK_MARK            = 'wxART_TICK_MARK'
+wxART_CROSS_MARK           = 'wxART_CROSS_MARK'
+wxART_ERROR                = 'wxART_ERROR'
+wxART_QUESTION             = 'wxART_QUESTION'
+wxART_WARNING              = 'wxART_WARNING'
+wxART_INFORMATION          = 'wxART_INFORMATION'
+wxART_MISSING_IMAGE        = 'wxART_MISSING_IMAGE'
+
 class wxSystemSettingsPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __repr__(self):
 class wxSystemSettingsPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxSystemSettings instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxSystemSettings instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxSystemSettings(wxSystemSettingsPtr):
     def __init__(self,this):
         self.this = this
 class wxSystemSettings(wxSystemSettingsPtr):
     def __init__(self,this):
         self.this = this
@@ -29,24 +72,38 @@ class wxSystemSettings(wxSystemSettingsPtr):
 
 
 
 
 
 
+class wxSystemOptionsPtr(wxObjectPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxSystemOptions instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxSystemOptions(wxSystemOptionsPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = misc2c.new_wxSystemOptions(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
 class wxToolTipPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def SetTip(self, *_args, **_kwargs):
 class wxToolTipPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def SetTip(self, *_args, **_kwargs):
-        val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
+        val = misc2c.wxToolTip_SetTip(self, *_args, **_kwargs)
         return val
     def GetTip(self, *_args, **_kwargs):
         return val
     def GetTip(self, *_args, **_kwargs):
-        val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
+        val = misc2c.wxToolTip_GetTip(self, *_args, **_kwargs)
         return val
     def GetWindow(self, *_args, **_kwargs):
         return val
     def GetWindow(self, *_args, **_kwargs):
-        val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
+        val = misc2c.wxToolTip_GetWindow(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxToolTip instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxToolTip instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxToolTip(wxToolTipPtr):
     def __init__(self,*_args,**_kwargs):
 class wxToolTip(wxToolTipPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
+        self.this = misc2c.new_wxToolTip(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -56,55 +113,59 @@ class wxCaretPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxCaret(self)
+    def __del__(self, delfunc=misc2c.delete_wxCaret):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def IsOk(self, *_args, **_kwargs):
     def IsOk(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_IsOk,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_IsOk(self, *_args, **_kwargs)
         return val
     def IsVisible(self, *_args, **_kwargs):
         return val
     def IsVisible(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_IsVisible,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_IsVisible(self, *_args, **_kwargs)
         return val
     def GetPositionTuple(self, *_args, **_kwargs):
         return val
     def GetPositionTuple(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_GetPositionTuple,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_GetPositionTuple(self, *_args, **_kwargs)
         return val
     def GetPosition(self, *_args, **_kwargs):
         return val
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_GetPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetSizeTuple(self, *_args, **_kwargs):
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetSizeTuple(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_GetSizeTuple,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_GetSizeTuple(self, *_args, **_kwargs)
         return val
     def GetSize(self, *_args, **_kwargs):
         return val
     def GetSize(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_GetSize,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_GetSize(self, *_args, **_kwargs)
         if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
     def GetWindow(self, *_args, **_kwargs):
         if val: val = wxSizePtr(val) ; val.thisown = 1
         return val
     def GetWindow(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_GetWindow(self, *_args, **_kwargs)
         return val
     def MoveXY(self, *_args, **_kwargs):
         return val
     def MoveXY(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_MoveXY(self, *_args, **_kwargs)
         return val
     def Move(self, *_args, **_kwargs):
         return val
     def Move(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_Move,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_Move(self, *_args, **_kwargs)
         return val
     def SetSizeWH(self, *_args, **_kwargs):
         return val
     def SetSizeWH(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_SetSizeWH,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_SetSizeWH(self, *_args, **_kwargs)
         return val
     def SetSize(self, *_args, **_kwargs):
         return val
     def SetSize(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_SetSize,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_SetSize(self, *_args, **_kwargs)
         return val
     def Show(self, *_args, **_kwargs):
         return val
     def Show(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_Show,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_Show(self, *_args, **_kwargs)
         return val
     def Hide(self, *_args, **_kwargs):
         return val
     def Hide(self, *_args, **_kwargs):
-        val = apply(misc2c.wxCaret_Hide,(self,) + _args, _kwargs)
+        val = misc2c.wxCaret_Hide(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxCaret instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxCaret instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    def __nonzero__(self): return self.IsOk()
 class wxCaret(wxCaretPtr):
     def __init__(self,*_args,**_kwargs):
 class wxCaret(wxCaretPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxCaret,_args,_kwargs)
+        self.this = misc2c.new_wxCaret(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -114,14 +175,17 @@ class wxBusyCursorPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxBusyCursor(self)
+    def __del__(self, delfunc=misc2c.delete_wxBusyCursor):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxBusyCursor instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxBusyCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxBusyCursor(wxBusyCursorPtr):
     def __init__(self,*_args,**_kwargs):
 class wxBusyCursor(wxBusyCursorPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxBusyCursor,_args,_kwargs)
+        self.this = misc2c.new_wxBusyCursor(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -131,14 +195,17 @@ class wxWindowDisablerPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxWindowDisabler(self)
+    def __del__(self, delfunc=misc2c.delete_wxWindowDisabler):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxWindowDisabler instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxWindowDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxWindowDisabler(wxWindowDisablerPtr):
     def __init__(self,*_args,**_kwargs):
 class wxWindowDisabler(wxWindowDisablerPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxWindowDisabler,_args,_kwargs)
+        self.this = misc2c.new_wxWindowDisabler(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -148,14 +215,17 @@ class wxMutexGuiLockerPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxMutexGuiLocker(self)
+    def __del__(self, delfunc=misc2c.delete_wxMutexGuiLocker):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxMutexGuiLocker instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMutexGuiLocker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMutexGuiLocker(wxMutexGuiLockerPtr):
     def __init__(self,*_args,**_kwargs):
 class wxMutexGuiLocker(wxMutexGuiLockerPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxMutexGuiLocker,_args,_kwargs)
+        self.this = misc2c.new_wxMutexGuiLocker(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -165,17 +235,23 @@ class wxTipProviderPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxTipProvider(self)
+    def __del__(self, delfunc=misc2c.delete_wxTipProvider):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def GetTip(self, *_args, **_kwargs):
     def GetTip(self, *_args, **_kwargs):
-        val = apply(misc2c.wxTipProvider_GetTip,(self,) + _args, _kwargs)
+        val = misc2c.wxTipProvider_GetTip(self, *_args, **_kwargs)
         return val
     def GetCurrentTip(self, *_args, **_kwargs):
         return val
     def GetCurrentTip(self, *_args, **_kwargs):
-        val = apply(misc2c.wxTipProvider_GetCurrentTip,(self,) + _args, _kwargs)
+        val = misc2c.wxTipProvider_GetCurrentTip(self, *_args, **_kwargs)
+        return val
+    def PreprocessTip(self, *_args, **_kwargs):
+        val = misc2c.wxTipProvider_PreprocessTip(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxTipProvider instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxTipProvider(wxTipProviderPtr):
     def __init__(self,this):
         self.this = this
 class wxTipProvider(wxTipProviderPtr):
     def __init__(self,this):
         self.this = this
@@ -187,12 +263,16 @@ class wxPyTipProviderPtr(wxTipProviderPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
+    def _setCallbackInfo(self, *_args, **_kwargs):
+        val = misc2c.wxPyTipProvider__setCallbackInfo(self, *_args, **_kwargs)
+        return val
     def __repr__(self):
     def __repr__(self):
-        return "<C wxPyTipProvider instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPyTipProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPyTipProvider(wxPyTipProviderPtr):
     def __init__(self,*_args,**_kwargs):
 class wxPyTipProvider(wxPyTipProviderPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxPyTipProvider,_args,_kwargs)
+        self.this = misc2c.new_wxPyTipProvider(*_args,**_kwargs)
         self.thisown = 1
         self.thisown = 1
+        self._setCallbackInfo(self, wxPyTipProvider)
 
 
 
 
 
 
@@ -201,63 +281,67 @@ class wxDragImagePtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxDragImage(self)
+    def __del__(self, delfunc=misc2c.delete_wxDragImage):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def SetBackingBitmap(self, *_args, **_kwargs):
     def SetBackingBitmap(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_SetBackingBitmap,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_SetBackingBitmap(self, *_args, **_kwargs)
         return val
     def BeginDrag(self, *_args, **_kwargs):
         return val
     def BeginDrag(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_BeginDrag,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_BeginDrag(self, *_args, **_kwargs)
         return val
         return val
-    def BeginDrag2(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_BeginDrag2,(self,) + _args, _kwargs)
+    def BeginDragBounded(self, *_args, **_kwargs):
+        val = misc2c.wxDragImage_BeginDragBounded(self, *_args, **_kwargs)
         return val
     def EndDrag(self, *_args, **_kwargs):
         return val
     def EndDrag(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_EndDrag,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_EndDrag(self, *_args, **_kwargs)
         return val
     def Move(self, *_args, **_kwargs):
         return val
     def Move(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_Move,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_Move(self, *_args, **_kwargs)
         return val
     def Show(self, *_args, **_kwargs):
         return val
     def Show(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_Show,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_Show(self, *_args, **_kwargs)
         return val
     def Hide(self, *_args, **_kwargs):
         return val
     def Hide(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_Hide,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_Hide(self, *_args, **_kwargs)
         return val
     def GetImageRect(self, *_args, **_kwargs):
         return val
     def GetImageRect(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_GetImageRect,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_GetImageRect(self, *_args, **_kwargs)
         if val: val = wxRectPtr(val) ; val.thisown = 1
         return val
     def RedrawImage(self, *_args, **_kwargs):
         if val: val = wxRectPtr(val) ; val.thisown = 1
         return val
     def RedrawImage(self, *_args, **_kwargs):
-        val = apply(misc2c.wxDragImage_RedrawImage,(self,) + _args, _kwargs)
+        val = misc2c.wxDragImage_RedrawImage(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxDragImage instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    BeginDrag2 = BeginDragBounded
 class wxDragImage(wxDragImagePtr):
     def __init__(self,*_args,**_kwargs):
 class wxDragImage(wxDragImagePtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxDragImage,_args,_kwargs)
+        self.this = misc2c.new_wxDragImage(*_args,**_kwargs)
         self.thisown = 1
 
 
 
 def wxDragIcon(*_args,**_kwargs):
         self.thisown = 1
 
 
 
 def wxDragIcon(*_args,**_kwargs):
-    val = wxDragImagePtr(apply(misc2c.new_wxDragIcon,_args,_kwargs))
+    val = wxDragImagePtr(misc2c.new_wxDragIcon(*_args,**_kwargs))
     val.thisown = 1
     return val
 
 def wxDragString(*_args,**_kwargs):
     val.thisown = 1
     return val
 
 def wxDragString(*_args,**_kwargs):
-    val = wxDragImagePtr(apply(misc2c.new_wxDragString,_args,_kwargs))
+    val = wxDragImagePtr(misc2c.new_wxDragString(*_args,**_kwargs))
     val.thisown = 1
     return val
 
 def wxDragTreeItem(*_args,**_kwargs):
     val.thisown = 1
     return val
 
 def wxDragTreeItem(*_args,**_kwargs):
-    val = wxDragImagePtr(apply(misc2c.new_wxDragTreeItem,_args,_kwargs))
+    val = wxDragImagePtr(misc2c.new_wxDragTreeItem(*_args,**_kwargs))
     val.thisown = 1
     return val
 
 def wxDragListItem(*_args,**_kwargs):
     val.thisown = 1
     return val
 
 def wxDragListItem(*_args,**_kwargs):
-    val = wxDragImagePtr(apply(misc2c.new_wxDragListItem,_args,_kwargs))
+    val = wxDragImagePtr(misc2c.new_wxDragListItem(*_args,**_kwargs))
     val.thisown = 1
     return val
 
     val.thisown = 1
     return val
 
@@ -266,32 +350,35 @@ class wxPyTimerPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxPyTimer(self)
+    def __del__(self, delfunc=misc2c.delete_wxPyTimer):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def GetInterval(self, *_args, **_kwargs):
     def GetInterval(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_GetInterval,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_GetInterval(self, *_args, **_kwargs)
         return val
     def IsOneShot(self, *_args, **_kwargs):
         return val
     def IsOneShot(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_IsOneShot,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_IsOneShot(self, *_args, **_kwargs)
         return val
     def IsRunning(self, *_args, **_kwargs):
         return val
     def IsRunning(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_IsRunning,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_IsRunning(self, *_args, **_kwargs)
         return val
     def SetOwner(self, *_args, **_kwargs):
         return val
     def SetOwner(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_SetOwner,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_SetOwner(self, *_args, **_kwargs)
         return val
     def Start(self, *_args, **_kwargs):
         return val
     def Start(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_Start,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_Start(self, *_args, **_kwargs)
         return val
     def Stop(self, *_args, **_kwargs):
         return val
     def Stop(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyTimer_Stop,(self,) + _args, _kwargs)
+        val = misc2c.wxPyTimer_Stop(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxPyTimer instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPyTimer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPyTimer(wxPyTimerPtr):
     def __init__(self,*_args,**_kwargs):
 class wxPyTimer(wxPyTimerPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxPyTimer,_args,_kwargs)
+        self.this = misc2c.new_wxPyTimer(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -301,26 +388,29 @@ class wxStopWatchPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxStopWatch(self)
+    def __del__(self, delfunc=misc2c.delete_wxStopWatch):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def Start(self, *_args, **_kwargs):
     def Start(self, *_args, **_kwargs):
-        val = apply(misc2c.wxStopWatch_Start,(self,) + _args, _kwargs)
+        val = misc2c.wxStopWatch_Start(self, *_args, **_kwargs)
         return val
     def Pause(self, *_args, **_kwargs):
         return val
     def Pause(self, *_args, **_kwargs):
-        val = apply(misc2c.wxStopWatch_Pause,(self,) + _args, _kwargs)
+        val = misc2c.wxStopWatch_Pause(self, *_args, **_kwargs)
         return val
     def Resume(self, *_args, **_kwargs):
         return val
     def Resume(self, *_args, **_kwargs):
-        val = apply(misc2c.wxStopWatch_Resume,(self,) + _args, _kwargs)
+        val = misc2c.wxStopWatch_Resume(self, *_args, **_kwargs)
         return val
     def Time(self, *_args, **_kwargs):
         return val
     def Time(self, *_args, **_kwargs):
-        val = apply(misc2c.wxStopWatch_Time,(self,) + _args, _kwargs)
+        val = misc2c.wxStopWatch_Time(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxStopWatch instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxStopWatch instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxStopWatch(wxStopWatchPtr):
     def __init__(self,*_args,**_kwargs):
 class wxStopWatch(wxStopWatchPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxStopWatch,_args,_kwargs)
+        self.this = misc2c.new_wxStopWatch(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -331,22 +421,19 @@ class wxLogPtr :
         self.this = this
         self.thisown = 0
     def Flush(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def Flush(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLog_Flush,(self,) + _args, _kwargs)
-        return val
-    def HasPendingMessages(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs)
+        val = misc2c.wxLog_Flush(self, *_args, **_kwargs)
         return val
     def GetVerbose(self, *_args, **_kwargs):
         return val
     def GetVerbose(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs)
+        val = misc2c.wxLog_GetVerbose(self, *_args, **_kwargs)
         return val
     def TimeStamp(self, *_args, **_kwargs):
         return val
     def TimeStamp(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLog_TimeStamp,(self,) + _args, _kwargs)
+        val = misc2c.wxLog_TimeStamp(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxLog instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLog(wxLogPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLog(wxLogPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLog,_args,_kwargs)
+        self.this = misc2c.new_wxLog(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -357,10 +444,10 @@ class wxLogStderrPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxLogStderr instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogStderr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogStderr(wxLogStderrPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogStderr(wxLogStderrPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogStderr,_args,_kwargs)
+        self.this = misc2c.new_wxLogStderr(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -371,10 +458,10 @@ class wxLogTextCtrlPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxLogTextCtrl instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogTextCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogTextCtrl(wxLogTextCtrlPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogTextCtrl(wxLogTextCtrlPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogTextCtrl,_args,_kwargs)
+        self.this = misc2c.new_wxLogTextCtrl(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -385,10 +472,10 @@ class wxLogGuiPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def __repr__(self):
         self.this = this
         self.thisown = 0
     def __repr__(self):
-        return "<C wxLogGui instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogGui instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogGui(wxLogGuiPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogGui(wxLogGuiPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogGui,_args,_kwargs)
+        self.this = misc2c.new_wxLogGui(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -399,26 +486,26 @@ class wxLogWindowPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def Show(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def Show(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogWindow_Show,(self,) + _args, _kwargs)
+        val = misc2c.wxLogWindow_Show(self, *_args, **_kwargs)
         return val
     def GetFrame(self, *_args, **_kwargs):
         return val
     def GetFrame(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
+        val = misc2c.wxLogWindow_GetFrame(self, *_args, **_kwargs)
         return val
     def GetOldLog(self, *_args, **_kwargs):
         return val
     def GetOldLog(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
+        val = misc2c.wxLogWindow_GetOldLog(self, *_args, **_kwargs)
         if val: val = wxLogPtr(val) 
         return val
     def IsPassingMessages(self, *_args, **_kwargs):
         if val: val = wxLogPtr(val) 
         return val
     def IsPassingMessages(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogWindow_IsPassingMessages,(self,) + _args, _kwargs)
+        val = misc2c.wxLogWindow_IsPassingMessages(self, *_args, **_kwargs)
         return val
     def PassMessages(self, *_args, **_kwargs):
         return val
     def PassMessages(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogWindow_PassMessages,(self,) + _args, _kwargs)
+        val = misc2c.wxLogWindow_PassMessages(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxLogWindow instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogWindow(wxLogWindowPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogWindow(wxLogWindowPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogWindow,_args,_kwargs)
+        self.this = misc2c.new_wxLogWindow(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -429,23 +516,23 @@ class wxLogChainPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def SetLog(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def SetLog(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogChain_SetLog,(self,) + _args, _kwargs)
+        val = misc2c.wxLogChain_SetLog(self, *_args, **_kwargs)
         return val
     def PassMessages(self, *_args, **_kwargs):
         return val
     def PassMessages(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogChain_PassMessages,(self,) + _args, _kwargs)
+        val = misc2c.wxLogChain_PassMessages(self, *_args, **_kwargs)
         return val
     def IsPassingMessages(self, *_args, **_kwargs):
         return val
     def IsPassingMessages(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogChain_IsPassingMessages,(self,) + _args, _kwargs)
+        val = misc2c.wxLogChain_IsPassingMessages(self, *_args, **_kwargs)
         return val
     def GetOldLog(self, *_args, **_kwargs):
         return val
     def GetOldLog(self, *_args, **_kwargs):
-        val = apply(misc2c.wxLogChain_GetOldLog,(self,) + _args, _kwargs)
+        val = misc2c.wxLogChain_GetOldLog(self, *_args, **_kwargs)
         if val: val = wxLogPtr(val) 
         return val
     def __repr__(self):
         if val: val = wxLogPtr(val) 
         return val
     def __repr__(self):
-        return "<C wxLogChain instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogChain instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogChain(wxLogChainPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogChain(wxLogChainPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogChain,_args,_kwargs)
+        self.this = misc2c.new_wxLogChain(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -455,14 +542,17 @@ class wxLogNullPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxLogNull(self)
+    def __del__(self, delfunc=misc2c.delete_wxLogNull):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxLogNull instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxLogNull instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxLogNull(wxLogNullPtr):
     def __init__(self,*_args,**_kwargs):
 class wxLogNull(wxLogNullPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxLogNull,_args,_kwargs)
+        self.this = misc2c.new_wxLogNull(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -473,16 +563,16 @@ class wxPyLogPtr(wxLogPtr):
         self.this = this
         self.thisown = 0
     def _setCallbackInfo(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def _setCallbackInfo(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyLog__setCallbackInfo,(self,) + _args, _kwargs)
+        val = misc2c.wxPyLog__setCallbackInfo(self, *_args, **_kwargs)
         return val
     def Destroy(self, *_args, **_kwargs):
         return val
     def Destroy(self, *_args, **_kwargs):
-        val = apply(misc2c.wxPyLog_Destroy,(self,) + _args, _kwargs)
+        val = misc2c.wxPyLog_Destroy(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxPyLog instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxPyLog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxPyLog(wxPyLogPtr):
     def __init__(self,*_args,**_kwargs):
 class wxPyLog(wxPyLogPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxPyLog,_args,_kwargs)
+        self.this = misc2c.new_wxPyLog(*_args,**_kwargs)
         self.thisown = 1
         self._setCallbackInfo(self, wxPyLog)
 
         self.thisown = 1
         self._setCallbackInfo(self, wxPyLog)
 
@@ -494,10 +584,10 @@ class wxProcessEventPtr(wxEventPtr):
         self.this = this
         self.thisown = 0
     def GetPid(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def GetPid(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcessEvent_GetPid,(self,) + _args, _kwargs)
+        val = misc2c.wxProcessEvent_GetPid(self, *_args, **_kwargs)
         return val
     def GetExitCode(self, *_args, **_kwargs):
         return val
     def GetExitCode(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcessEvent_GetExitCode,(self,) + _args, _kwargs)
+        val = misc2c.wxProcessEvent_GetExitCode(self, *_args, **_kwargs)
         return val
     def __setattr__(self,name,value):
         if name == "m_pid" :
         return val
     def __setattr__(self,name,value):
         if name == "m_pid" :
@@ -514,10 +604,10 @@ class wxProcessEventPtr(wxEventPtr):
             return misc2c.wxProcessEvent_m_exitcode_get(self)
         raise AttributeError,name
     def __repr__(self):
             return misc2c.wxProcessEvent_m_exitcode_get(self)
         raise AttributeError,name
     def __repr__(self):
-        return "<C wxProcessEvent instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxProcessEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxProcessEvent(wxProcessEventPtr):
     def __init__(self,*_args,**_kwargs):
 class wxProcessEvent(wxProcessEventPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxProcessEvent,_args,_kwargs)
+        self.this = misc2c.new_wxProcessEvent(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -528,41 +618,50 @@ class wxProcessPtr(wxEvtHandlerPtr):
         self.this = this
         self.thisown = 0
     def Destroy(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def Destroy(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_Destroy,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_Destroy(self, *_args, **_kwargs)
         return val
     def _setCallbackInfo(self, *_args, **_kwargs):
         return val
     def _setCallbackInfo(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess__setCallbackInfo,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess__setCallbackInfo(self, *_args, **_kwargs)
         return val
     def base_OnTerminate(self, *_args, **_kwargs):
         return val
     def base_OnTerminate(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_base_OnTerminate,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_base_OnTerminate(self, *_args, **_kwargs)
         return val
     def Redirect(self, *_args, **_kwargs):
         return val
     def Redirect(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_Redirect,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_Redirect(self, *_args, **_kwargs)
         return val
     def IsRedirected(self, *_args, **_kwargs):
         return val
     def IsRedirected(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_IsRedirected,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_IsRedirected(self, *_args, **_kwargs)
         return val
     def Detach(self, *_args, **_kwargs):
         return val
     def Detach(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_Detach,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_Detach(self, *_args, **_kwargs)
         return val
     def GetInputStream(self, *_args, **_kwargs):
         return val
     def GetInputStream(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_GetInputStream,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_GetInputStream(self, *_args, **_kwargs)
         return val
     def GetErrorStream(self, *_args, **_kwargs):
         return val
     def GetErrorStream(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_GetErrorStream,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_GetErrorStream(self, *_args, **_kwargs)
         return val
     def GetOutputStream(self, *_args, **_kwargs):
         return val
     def GetOutputStream(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_GetOutputStream,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_GetOutputStream(self, *_args, **_kwargs)
         if val: val = wxOutputStreamPtr(val) 
         return val
     def CloseOutput(self, *_args, **_kwargs):
         if val: val = wxOutputStreamPtr(val) 
         return val
     def CloseOutput(self, *_args, **_kwargs):
-        val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs)
+        val = misc2c.wxProcess_CloseOutput(self, *_args, **_kwargs)
+        return val
+    def IsInputOpened(self, *_args, **_kwargs):
+        val = misc2c.wxProcess_IsInputOpened(self, *_args, **_kwargs)
+        return val
+    def IsInputAvailable(self, *_args, **_kwargs):
+        val = misc2c.wxProcess_IsInputAvailable(self, *_args, **_kwargs)
+        return val
+    def IsErrorAvailable(self, *_args, **_kwargs):
+        val = misc2c.wxProcess_IsErrorAvailable(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxProcess instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxProcess instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxProcess(wxProcessPtr):
     def __init__(self,*_args,**_kwargs):
 class wxProcess(wxProcessPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxProcess,_args,_kwargs)
+        self.this = misc2c.new_wxProcess(*_args,**_kwargs)
         self.thisown = 1
         self._setCallbackInfo(self, wxProcess)
 
         self.thisown = 1
         self._setCallbackInfo(self, wxProcess)
 
@@ -573,141 +672,145 @@ class wxJoystickPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxJoystick(self)
+    def __del__(self, delfunc=misc2c.delete_wxJoystick):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def GetPosition(self, *_args, **_kwargs):
     def GetPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetPosition(self, *_args, **_kwargs)
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetZPosition(self, *_args, **_kwargs):
         if val: val = wxPointPtr(val) ; val.thisown = 1
         return val
     def GetZPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetZPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetZPosition(self, *_args, **_kwargs)
         return val
     def GetButtonState(self, *_args, **_kwargs):
         return val
     def GetButtonState(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetButtonState,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetButtonState(self, *_args, **_kwargs)
         return val
     def GetPOVPosition(self, *_args, **_kwargs):
         return val
     def GetPOVPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetPOVPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetPOVPosition(self, *_args, **_kwargs)
         return val
     def GetPOVCTSPosition(self, *_args, **_kwargs):
         return val
     def GetPOVCTSPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetPOVCTSPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetPOVCTSPosition(self, *_args, **_kwargs)
         return val
     def GetRudderPosition(self, *_args, **_kwargs):
         return val
     def GetRudderPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetRudderPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetRudderPosition(self, *_args, **_kwargs)
         return val
     def GetUPosition(self, *_args, **_kwargs):
         return val
     def GetUPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetUPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetUPosition(self, *_args, **_kwargs)
         return val
     def GetVPosition(self, *_args, **_kwargs):
         return val
     def GetVPosition(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetVPosition,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetVPosition(self, *_args, **_kwargs)
         return val
     def GetMovementThreshold(self, *_args, **_kwargs):
         return val
     def GetMovementThreshold(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetMovementThreshold,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetMovementThreshold(self, *_args, **_kwargs)
         return val
     def SetMovementThreshold(self, *_args, **_kwargs):
         return val
     def SetMovementThreshold(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_SetMovementThreshold,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_SetMovementThreshold(self, *_args, **_kwargs)
         return val
     def IsOk(self, *_args, **_kwargs):
         return val
     def IsOk(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_IsOk,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_IsOk(self, *_args, **_kwargs)
         return val
     def GetNumberJoysticks(self, *_args, **_kwargs):
         return val
     def GetNumberJoysticks(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetNumberJoysticks,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetNumberJoysticks(self, *_args, **_kwargs)
         return val
     def GetManufacturerId(self, *_args, **_kwargs):
         return val
     def GetManufacturerId(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetManufacturerId,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetManufacturerId(self, *_args, **_kwargs)
         return val
     def GetProductId(self, *_args, **_kwargs):
         return val
     def GetProductId(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetProductId,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetProductId(self, *_args, **_kwargs)
         return val
     def GetProductName(self, *_args, **_kwargs):
         return val
     def GetProductName(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetProductName,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetProductName(self, *_args, **_kwargs)
         return val
     def GetXMin(self, *_args, **_kwargs):
         return val
     def GetXMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetXMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetXMin(self, *_args, **_kwargs)
         return val
     def GetYMin(self, *_args, **_kwargs):
         return val
     def GetYMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetYMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetYMin(self, *_args, **_kwargs)
         return val
     def GetZMin(self, *_args, **_kwargs):
         return val
     def GetZMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetZMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetZMin(self, *_args, **_kwargs)
         return val
     def GetXMax(self, *_args, **_kwargs):
         return val
     def GetXMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetXMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetXMax(self, *_args, **_kwargs)
         return val
     def GetYMax(self, *_args, **_kwargs):
         return val
     def GetYMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetYMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetYMax(self, *_args, **_kwargs)
         return val
     def GetZMax(self, *_args, **_kwargs):
         return val
     def GetZMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetZMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetZMax(self, *_args, **_kwargs)
         return val
     def GetNumberButtons(self, *_args, **_kwargs):
         return val
     def GetNumberButtons(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetNumberButtons,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetNumberButtons(self, *_args, **_kwargs)
         return val
     def GetNumberAxes(self, *_args, **_kwargs):
         return val
     def GetNumberAxes(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetNumberAxes,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetNumberAxes(self, *_args, **_kwargs)
         return val
     def GetMaxButtons(self, *_args, **_kwargs):
         return val
     def GetMaxButtons(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetMaxButtons,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetMaxButtons(self, *_args, **_kwargs)
         return val
     def GetMaxAxes(self, *_args, **_kwargs):
         return val
     def GetMaxAxes(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetMaxAxes,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetMaxAxes(self, *_args, **_kwargs)
         return val
     def GetPollingMin(self, *_args, **_kwargs):
         return val
     def GetPollingMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetPollingMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetPollingMin(self, *_args, **_kwargs)
         return val
     def GetPollingMax(self, *_args, **_kwargs):
         return val
     def GetPollingMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetPollingMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetPollingMax(self, *_args, **_kwargs)
         return val
     def GetRudderMin(self, *_args, **_kwargs):
         return val
     def GetRudderMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetRudderMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetRudderMin(self, *_args, **_kwargs)
         return val
     def GetRudderMax(self, *_args, **_kwargs):
         return val
     def GetRudderMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetRudderMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetRudderMax(self, *_args, **_kwargs)
         return val
     def GetUMin(self, *_args, **_kwargs):
         return val
     def GetUMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetUMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetUMin(self, *_args, **_kwargs)
         return val
     def GetUMax(self, *_args, **_kwargs):
         return val
     def GetUMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetUMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetUMax(self, *_args, **_kwargs)
         return val
     def GetVMin(self, *_args, **_kwargs):
         return val
     def GetVMin(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetVMin,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetVMin(self, *_args, **_kwargs)
         return val
     def GetVMax(self, *_args, **_kwargs):
         return val
     def GetVMax(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_GetVMax,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_GetVMax(self, *_args, **_kwargs)
         return val
     def HasRudder(self, *_args, **_kwargs):
         return val
     def HasRudder(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasRudder,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasRudder(self, *_args, **_kwargs)
         return val
     def HasZ(self, *_args, **_kwargs):
         return val
     def HasZ(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasZ,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasZ(self, *_args, **_kwargs)
         return val
     def HasU(self, *_args, **_kwargs):
         return val
     def HasU(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasU,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasU(self, *_args, **_kwargs)
         return val
     def HasV(self, *_args, **_kwargs):
         return val
     def HasV(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasV,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasV(self, *_args, **_kwargs)
         return val
     def HasPOV(self, *_args, **_kwargs):
         return val
     def HasPOV(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasPOV,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasPOV(self, *_args, **_kwargs)
         return val
     def HasPOV4Dir(self, *_args, **_kwargs):
         return val
     def HasPOV4Dir(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasPOV4Dir,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasPOV4Dir(self, *_args, **_kwargs)
         return val
     def HasPOVCTS(self, *_args, **_kwargs):
         return val
     def HasPOVCTS(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_HasPOVCTS,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_HasPOVCTS(self, *_args, **_kwargs)
         return val
     def SetCapture(self, *_args, **_kwargs):
         return val
     def SetCapture(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_SetCapture,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_SetCapture(self, *_args, **_kwargs)
         return val
     def ReleaseCapture(self, *_args, **_kwargs):
         return val
     def ReleaseCapture(self, *_args, **_kwargs):
-        val = apply(misc2c.wxJoystick_ReleaseCapture,(self,) + _args, _kwargs)
+        val = misc2c.wxJoystick_ReleaseCapture(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxJoystick instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxJoystick instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    def __nonzero__(self): return self.IsOk()
 class wxJoystick(wxJoystickPtr):
     def __init__(self,*_args,**_kwargs):
 class wxJoystick(wxJoystickPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxJoystick,_args,_kwargs)
+        self.this = misc2c.new_wxJoystick(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -717,20 +820,24 @@ class wxWavePtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxWave(self)
+    def __del__(self, delfunc=misc2c.delete_wxWave):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def IsOk(self, *_args, **_kwargs):
     def IsOk(self, *_args, **_kwargs):
-        val = apply(misc2c.wxWave_IsOk,(self,) + _args, _kwargs)
+        val = misc2c.wxWave_IsOk(self, *_args, **_kwargs)
         return val
     def Play(self, *_args, **_kwargs):
         return val
     def Play(self, *_args, **_kwargs):
-        val = apply(misc2c.wxWave_Play,(self,) + _args, _kwargs)
+        val = misc2c.wxWave_Play(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxWave instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxWave instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    def __nonzero__(self): return self.IsOk()
 class wxWave(wxWavePtr):
     def __init__(self,*_args,**_kwargs):
 class wxWave(wxWavePtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxWave,_args,_kwargs)
+        self.this = misc2c.new_wxWave(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -741,57 +848,57 @@ class wxFileTypeInfoPtr :
         self.this = this
         self.thisown = 0
     def IsValid(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def IsValid(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_IsValid,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_IsValid(self, *_args, **_kwargs)
         return val
     def SetIcon(self, *_args, **_kwargs):
         return val
     def SetIcon(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_SetIcon,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_SetIcon(self, *_args, **_kwargs)
         return val
     def SetShortDesc(self, *_args, **_kwargs):
         return val
     def SetShortDesc(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_SetShortDesc,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_SetShortDesc(self, *_args, **_kwargs)
         return val
     def GetMimeType(self, *_args, **_kwargs):
         return val
     def GetMimeType(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetMimeType,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetMimeType(self, *_args, **_kwargs)
         return val
     def GetOpenCommand(self, *_args, **_kwargs):
         return val
     def GetOpenCommand(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetOpenCommand,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetOpenCommand(self, *_args, **_kwargs)
         return val
     def GetPrintCommand(self, *_args, **_kwargs):
         return val
     def GetPrintCommand(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetPrintCommand,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetPrintCommand(self, *_args, **_kwargs)
         return val
     def GetShortDesc(self, *_args, **_kwargs):
         return val
     def GetShortDesc(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetShortDesc,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetShortDesc(self, *_args, **_kwargs)
         return val
     def GetDescription(self, *_args, **_kwargs):
         return val
     def GetDescription(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetDescription,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetDescription(self, *_args, **_kwargs)
         return val
     def GetExtensions(self, *_args, **_kwargs):
         return val
     def GetExtensions(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetExtensions,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetExtensions(self, *_args, **_kwargs)
         return val
     def GetExtensionsCount(self, *_args, **_kwargs):
         return val
     def GetExtensionsCount(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetExtensionsCount,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetExtensionsCount(self, *_args, **_kwargs)
         return val
     def GetIconFile(self, *_args, **_kwargs):
         return val
     def GetIconFile(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetIconFile,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetIconFile(self, *_args, **_kwargs)
         return val
     def GetIconIndex(self, *_args, **_kwargs):
         return val
     def GetIconIndex(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileTypeInfo_GetIconIndex,(self,) + _args, _kwargs)
+        val = misc2c.wxFileTypeInfo_GetIconIndex(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxFileTypeInfo instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxFileTypeInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxFileTypeInfo(wxFileTypeInfoPtr):
     def __init__(self,*_args,**_kwargs):
 class wxFileTypeInfo(wxFileTypeInfoPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxFileTypeInfo,_args,_kwargs)
+        self.this = misc2c.new_wxFileTypeInfo(*_args,**_kwargs)
         self.thisown = 1
 
 
 
 def wxFileTypeInfoSequence(*_args,**_kwargs):
         self.thisown = 1
 
 
 
 def wxFileTypeInfoSequence(*_args,**_kwargs):
-    val = wxFileTypeInfoPtr(apply(misc2c.new_wxFileTypeInfoSequence,_args,_kwargs))
+    val = wxFileTypeInfoPtr(misc2c.new_wxFileTypeInfoSequence(*_args,**_kwargs))
     val.thisown = 1
     return val
 
 def wxNullFileTypeInfo(*_args,**_kwargs):
     val.thisown = 1
     return val
 
 def wxNullFileTypeInfo(*_args,**_kwargs):
-    val = wxFileTypeInfoPtr(apply(misc2c.new_wxNullFileTypeInfo,_args,_kwargs))
+    val = wxFileTypeInfoPtr(misc2c.new_wxNullFileTypeInfo(*_args,**_kwargs))
     val.thisown = 1
     return val
 
     val.thisown = 1
     return val
 
@@ -801,50 +908,53 @@ class wxFileTypePtr :
         self.this = this
         self.thisown = 0
     def GetMimeType(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def GetMimeType(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetMimeType,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetMimeType(self, *_args, **_kwargs)
         return val
     def GetMimeTypes(self, *_args, **_kwargs):
         return val
     def GetMimeTypes(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetMimeTypes,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetMimeTypes(self, *_args, **_kwargs)
         return val
     def GetExtensions(self, *_args, **_kwargs):
         return val
     def GetExtensions(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetExtensions,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetExtensions(self, *_args, **_kwargs)
         return val
     def GetIcon(self, *_args, **_kwargs):
         return val
     def GetIcon(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetIcon,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetIcon(self, *_args, **_kwargs)
         if val: val = wxIconPtr(val) ; val.thisown = 1
         return val
     def GetIconInfo(self, *_args, **_kwargs):
         if val: val = wxIconPtr(val) ; val.thisown = 1
         return val
     def GetIconInfo(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetIconInfo,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetIconInfo(self, *_args, **_kwargs)
         return val
     def GetDescription(self, *_args, **_kwargs):
         return val
     def GetDescription(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetDescription,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetDescription(self, *_args, **_kwargs)
         return val
     def GetOpenCommand(self, *_args, **_kwargs):
         return val
     def GetOpenCommand(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetOpenCommand,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetOpenCommand(self, *_args, **_kwargs)
         return val
     def GetPrintCommand(self, *_args, **_kwargs):
         return val
     def GetPrintCommand(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetPrintCommand,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetPrintCommand(self, *_args, **_kwargs)
         return val
     def GetAllCommands(self, *_args, **_kwargs):
         return val
     def GetAllCommands(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_GetAllCommands,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_GetAllCommands(self, *_args, **_kwargs)
         return val
     def SetCommand(self, *_args, **_kwargs):
         return val
     def SetCommand(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_SetCommand,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_SetCommand(self, *_args, **_kwargs)
         return val
     def SetDefaultIcon(self, *_args, **_kwargs):
         return val
     def SetDefaultIcon(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_SetDefaultIcon,(self,) + _args, _kwargs)
+        val = misc2c.wxFileType_SetDefaultIcon(self, *_args, **_kwargs)
         return val
     def Unassociate(self, *_args, **_kwargs):
         return val
     def Unassociate(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileType_Unassociate,(self,) + _args, _kwargs)
-        return val
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxFileType(self)
+        val = misc2c.wxFileType_Unassociate(self, *_args, **_kwargs)
+        return val
+    def __del__(self, delfunc=misc2c.delete_wxFileType):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxFileType instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxFileType instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxFileType(wxFileTypePtr):
     def __init__(self,*_args,**_kwargs):
 class wxFileType(wxFileTypePtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxFileType,_args,_kwargs)
+        self.this = misc2c.new_wxFileType(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -855,46 +965,49 @@ class wxMimeTypesManagerPtr :
         self.this = this
         self.thisown = 0
     def Initialize(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def Initialize(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_Initialize,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_Initialize(self, *_args, **_kwargs)
         return val
     def ClearData(self, *_args, **_kwargs):
         return val
     def ClearData(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_ClearData,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_ClearData(self, *_args, **_kwargs)
         return val
     def GetFileTypeFromExtension(self, *_args, **_kwargs):
         return val
     def GetFileTypeFromExtension(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromExtension,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_GetFileTypeFromExtension(self, *_args, **_kwargs)
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def GetFileTypeFromMimeType(self, *_args, **_kwargs):
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def GetFileTypeFromMimeType(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromMimeType,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_GetFileTypeFromMimeType(self, *_args, **_kwargs)
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def ReadMailcap(self, *_args, **_kwargs):
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def ReadMailcap(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_ReadMailcap,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_ReadMailcap(self, *_args, **_kwargs)
         return val
     def ReadMimeTypes(self, *_args, **_kwargs):
         return val
     def ReadMimeTypes(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_ReadMimeTypes,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_ReadMimeTypes(self, *_args, **_kwargs)
         return val
     def EnumAllFileTypes(self, *_args, **_kwargs):
         return val
     def EnumAllFileTypes(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_EnumAllFileTypes,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_EnumAllFileTypes(self, *_args, **_kwargs)
         return val
     def AddFallback(self, *_args, **_kwargs):
         return val
     def AddFallback(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_AddFallback,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_AddFallback(self, *_args, **_kwargs)
         return val
     def Associate(self, *_args, **_kwargs):
         return val
     def Associate(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_Associate,(self,) + _args, _kwargs)
+        val = misc2c.wxMimeTypesManager_Associate(self, *_args, **_kwargs)
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def Unassociate(self, *_args, **_kwargs):
         if val: val = wxFileTypePtr(val) ; val.thisown = 1
         return val
     def Unassociate(self, *_args, **_kwargs):
-        val = apply(misc2c.wxMimeTypesManager_Unassociate,(self,) + _args, _kwargs)
-        return val
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxMimeTypesManager(self)
+        val = misc2c.wxMimeTypesManager_Unassociate(self, *_args, **_kwargs)
+        return val
+    def __del__(self, delfunc=misc2c.delete_wxMimeTypesManager):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def __repr__(self):
     def __repr__(self):
-        return "<C wxMimeTypesManager instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxMimeTypesManager instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxMimeTypesManager(wxMimeTypesManagerPtr):
     def __init__(self,*_args,**_kwargs):
 class wxMimeTypesManager(wxMimeTypesManagerPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxMimeTypesManager,_args,_kwargs)
+        self.this = misc2c.new_wxMimeTypesManager(*_args,**_kwargs)
         self.thisown = 1
 
 
         self.thisown = 1
 
 
@@ -905,13 +1018,13 @@ class wxArtProviderPtr(wxObjectPtr):
         self.this = this
         self.thisown = 0
     def _setCallbackInfo(self, *_args, **_kwargs):
         self.this = this
         self.thisown = 0
     def _setCallbackInfo(self, *_args, **_kwargs):
-        val = apply(misc2c.wxArtProvider__setCallbackInfo,(self,) + _args, _kwargs)
+        val = misc2c.wxArtProvider__setCallbackInfo(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxArtProvider instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxArtProvider(wxArtProviderPtr):
     def __init__(self,*_args,**_kwargs):
 class wxArtProvider(wxArtProviderPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxArtProvider,_args,_kwargs)
+        self.this = misc2c.new_wxArtProvider(*_args,**_kwargs)
         self.thisown = 1
         self._setCallbackInfo(self, wxArtProvider)
 
         self.thisown = 1
         self._setCallbackInfo(self, wxArtProvider)
 
@@ -922,55 +1035,145 @@ class wxFileHistoryPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,misc2c=misc2c):
-        if self.thisown == 1 :
-            misc2c.delete_wxFileHistory(self)
+    def __del__(self, delfunc=misc2c.delete_wxFileHistory):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def AddFileToHistory(self, *_args, **_kwargs):
     def AddFileToHistory(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_AddFileToHistory,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_AddFileToHistory(self, *_args, **_kwargs)
         return val
     def RemoveFileFromHistory(self, *_args, **_kwargs):
         return val
     def RemoveFileFromHistory(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_RemoveFileFromHistory,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_RemoveFileFromHistory(self, *_args, **_kwargs)
         return val
     def GetMaxFiles(self, *_args, **_kwargs):
         return val
     def GetMaxFiles(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_GetMaxFiles,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_GetMaxFiles(self, *_args, **_kwargs)
         return val
     def UseMenu(self, *_args, **_kwargs):
         return val
     def UseMenu(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_UseMenu,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_UseMenu(self, *_args, **_kwargs)
         return val
     def RemoveMenu(self, *_args, **_kwargs):
         return val
     def RemoveMenu(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_RemoveMenu,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_RemoveMenu(self, *_args, **_kwargs)
         return val
     def Load(self, *_args, **_kwargs):
         return val
     def Load(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_Load,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_Load(self, *_args, **_kwargs)
         return val
     def Save(self, *_args, **_kwargs):
         return val
     def Save(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_Save,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_Save(self, *_args, **_kwargs)
         return val
     def AddFilesToMenu(self, *_args, **_kwargs):
         return val
     def AddFilesToMenu(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_AddFilesToMenu,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_AddFilesToMenu(self, *_args, **_kwargs)
         return val
     def AddFilesToThisMenu(self, *_args, **_kwargs):
         return val
     def AddFilesToThisMenu(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_AddFilesToThisMenu,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_AddFilesToThisMenu(self, *_args, **_kwargs)
         return val
     def GetHistoryFile(self, *_args, **_kwargs):
         return val
     def GetHistoryFile(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_GetHistoryFile,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_GetHistoryFile(self, *_args, **_kwargs)
         return val
     def GetCount(self, *_args, **_kwargs):
         return val
     def GetCount(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_GetCount,(self,) + _args, _kwargs)
-        return val
-    def GetNoHistoryFiles(self, *_args, **_kwargs):
-        val = apply(misc2c.wxFileHistory_GetNoHistoryFiles,(self,) + _args, _kwargs)
+        val = misc2c.wxFileHistory_GetCount(self, *_args, **_kwargs)
         return val
     def __repr__(self):
         return val
     def __repr__(self):
-        return "<C wxFileHistory instance at %s>" % (self.this,)
+        return "<%s.%s instance; proxy of C++ wxFileHistory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+    GetNoHistoryFiles = GetCount
 class wxFileHistory(wxFileHistoryPtr):
     def __init__(self,*_args,**_kwargs):
 class wxFileHistory(wxFileHistoryPtr):
     def __init__(self,*_args,**_kwargs):
-        self.this = apply(misc2c.new_wxFileHistory,_args,_kwargs)
+        self.this = misc2c.new_wxFileHistory(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
+class wxEffectsPtr(wxObjectPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def GetHighlightColour(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_GetHighlightColour(self, *_args, **_kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
+    def GetLightShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_GetLightShadow(self, *_args, **_kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
+    def GetFaceColour(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_GetFaceColour(self, *_args, **_kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
+    def GetMediumShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_GetMediumShadow(self, *_args, **_kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
+    def GetDarkShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_GetDarkShadow(self, *_args, **_kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
+    def SetHighlightColour(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_SetHighlightColour(self, *_args, **_kwargs)
+        return val
+    def SetLightShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_SetLightShadow(self, *_args, **_kwargs)
+        return val
+    def SetFaceColour(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_SetFaceColour(self, *_args, **_kwargs)
+        return val
+    def SetMediumShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_SetMediumShadow(self, *_args, **_kwargs)
+        return val
+    def SetDarkShadow(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_SetDarkShadow(self, *_args, **_kwargs)
+        return val
+    def Set(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_Set(self, *_args, **_kwargs)
+        return val
+    def DrawSunkenEdge(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_DrawSunkenEdge(self, *_args, **_kwargs)
+        return val
+    def TileBitmap(self, *_args, **_kwargs):
+        val = misc2c.wxEffects_TileBitmap(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxEffects(wxEffectsPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = misc2c.new_wxEffects(*_args,**_kwargs)
         self.thisown = 1
 
 
 
 
         self.thisown = 1
 
 
 
 
+class wxSingleInstanceCheckerPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self, delfunc=misc2c.delete_wxSingleInstanceChecker):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
+    def Create(self, *_args, **_kwargs):
+        val = misc2c.wxSingleInstanceChecker_Create(self, *_args, **_kwargs)
+        return val
+    def IsAnotherRunning(self, *_args, **_kwargs):
+        val = misc2c.wxSingleInstanceChecker_IsAnotherRunning(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxSingleInstanceChecker instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxSingleInstanceChecker(wxSingleInstanceCheckerPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = misc2c.new_wxSingleInstanceChecker(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+def wxPreSingleInstanceChecker(*_args,**_kwargs):
+    val = wxSingleInstanceCheckerPtr(misc2c.new_wxPreSingleInstanceChecker(*_args,**_kwargs))
+    val.thisown = 1
+    return val
+
+
 
 
 #-------------- FUNCTION WRAPPERS ------------------
 
 
 #-------------- FUNCTION WRAPPERS ------------------
@@ -1004,21 +1207,21 @@ wxGetDisplayDepth = misc2c.wxGetDisplayDepth
 wxDisplaySize = misc2c.wxDisplaySize
 
 def wxGetDisplaySize(*_args, **_kwargs):
 wxDisplaySize = misc2c.wxDisplaySize
 
 def wxGetDisplaySize(*_args, **_kwargs):
-    val = apply(misc2c.wxGetDisplaySize,_args,_kwargs)
+    val = misc2c.wxGetDisplaySize(*_args,**_kwargs)
     if val: val = wxSizePtr(val); val.thisown = 1
     return val
 
 wxDisplaySizeMM = misc2c.wxDisplaySizeMM
 
 def wxGetDisplaySizeMM(*_args, **_kwargs):
     if val: val = wxSizePtr(val); val.thisown = 1
     return val
 
 wxDisplaySizeMM = misc2c.wxDisplaySizeMM
 
 def wxGetDisplaySizeMM(*_args, **_kwargs):
-    val = apply(misc2c.wxGetDisplaySizeMM,_args,_kwargs)
+    val = misc2c.wxGetDisplaySizeMM(*_args,**_kwargs)
     if val: val = wxSizePtr(val); val.thisown = 1
     return val
 
 wxClientDisplayRect = misc2c.wxClientDisplayRect
 
 def wxGetClientDisplayRect(*_args, **_kwargs):
     if val: val = wxSizePtr(val); val.thisown = 1
     return val
 
 wxClientDisplayRect = misc2c.wxClientDisplayRect
 
 def wxGetClientDisplayRect(*_args, **_kwargs):
-    val = apply(misc2c.wxGetClientDisplayRect,_args,_kwargs)
+    val = misc2c.wxGetClientDisplayRect(*_args,**_kwargs)
     if val: val = wxRectPtr(val); val.thisown = 1
     return val
 
     if val: val = wxRectPtr(val); val.thisown = 1
     return val
 
@@ -1027,51 +1230,23 @@ wxSetCursor = misc2c.wxSetCursor
 wxBeginBusyCursor = misc2c.wxBeginBusyCursor
 
 def wxGetActiveWindow(*_args, **_kwargs):
 wxBeginBusyCursor = misc2c.wxBeginBusyCursor
 
 def wxGetActiveWindow(*_args, **_kwargs):
-    val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
+    val = misc2c.wxGetActiveWindow(*_args,**_kwargs)
     return val
 
 def wxGenericFindWindowAtPoint(*_args, **_kwargs):
     return val
 
 def wxGenericFindWindowAtPoint(*_args, **_kwargs):
-    val = apply(misc2c.wxGenericFindWindowAtPoint,_args,_kwargs)
+    val = misc2c.wxGenericFindWindowAtPoint(*_args,**_kwargs)
     return val
 
 def wxFindWindowAtPoint(*_args, **_kwargs):
     return val
 
 def wxFindWindowAtPoint(*_args, **_kwargs):
-    val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs)
+    val = misc2c.wxFindWindowAtPoint(*_args,**_kwargs)
     return val
 
 wxCheckForInterrupt = misc2c.wxCheckForInterrupt
 
     return val
 
 wxCheckForInterrupt = misc2c.wxCheckForInterrupt
 
-wxFlushEvents = misc2c.wxFlushEvents
-
 def wxGetTopLevelParent(*_args, **_kwargs):
 def wxGetTopLevelParent(*_args, **_kwargs):
-    val = apply(misc2c.wxGetTopLevelParent,_args,_kwargs)
-    return val
-
-wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
-
-wxResourceClear = misc2c.wxResourceClear
-
-def wxResourceCreateBitmap(*_args, **_kwargs):
-    val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
-    if val: val = wxBitmapPtr(val); val.thisown = 1
-    return val
-
-def wxResourceCreateIcon(*_args, **_kwargs):
-    val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
-    if val: val = wxIconPtr(val); val.thisown = 1
+    val = misc2c.wxGetTopLevelParent(*_args,**_kwargs)
     return val
 
     return val
 
-def wxResourceCreateMenuBar(*_args, **_kwargs):
-    val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
-    return val
-
-wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
-
-wxResourceParseData = misc2c.wxResourceParseData
-
-wxResourceParseFile = misc2c.wxResourceParseFile
-
-wxResourceParseString = misc2c.wxResourceParseString
-
 wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
 
 wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
 wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
 
 wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
@@ -1093,7 +1268,7 @@ wxThread_IsMain = misc2c.wxThread_IsMain
 wxShowTip = misc2c.wxShowTip
 
 def wxCreateFileTipProvider(*_args, **_kwargs):
 wxShowTip = misc2c.wxShowTip
 
 def wxCreateFileTipProvider(*_args, **_kwargs):
-    val = apply(misc2c.wxCreateFileTipProvider,_args,_kwargs)
+    val = misc2c.wxCreateFileTipProvider(*_args,**_kwargs)
     if val: val = wxTipProviderPtr(val); val.thisown = 1
     return val
 
     if val: val = wxTipProviderPtr(val); val.thisown = 1
     return val
 
@@ -1111,6 +1286,8 @@ wxLogMessage = misc2c.wxLogMessage
 
 wxLogInfo = misc2c.wxLogInfo
 
 
 wxLogInfo = misc2c.wxLogInfo
 
+wxLogDebug = misc2c.wxLogDebug
+
 wxLogVerbose = misc2c.wxLogVerbose
 
 wxLogStatus = misc2c.wxLogStatus
 wxLogVerbose = misc2c.wxLogVerbose
 
 wxLogStatus = misc2c.wxLogStatus
@@ -1130,17 +1307,17 @@ wxSafeShowMessage = misc2c.wxSafeShowMessage
 wxExecute = misc2c.wxExecute
 
 def wxWaveData(*_args, **_kwargs):
 wxExecute = misc2c.wxExecute
 
 def wxWaveData(*_args, **_kwargs):
-    val = apply(misc2c.wxWaveData,_args,_kwargs)
+    val = misc2c.wxWaveData(*_args,**_kwargs)
     if val: val = wxWavePtr(val); val.thisown = 1
     return val
 
 def wxSystemSettings_GetColour(*_args, **_kwargs):
     if val: val = wxWavePtr(val); val.thisown = 1
     return val
 
 def wxSystemSettings_GetColour(*_args, **_kwargs):
-    val = apply(misc2c.wxSystemSettings_GetColour,_args,_kwargs)
+    val = misc2c.wxSystemSettings_GetColour(*_args,**_kwargs)
     if val: val = wxColourPtr(val); val.thisown = 1
     return val
 
 def wxSystemSettings_GetFont(*_args, **_kwargs):
     if val: val = wxColourPtr(val); val.thisown = 1
     return val
 
 def wxSystemSettings_GetFont(*_args, **_kwargs):
-    val = apply(misc2c.wxSystemSettings_GetFont,_args,_kwargs)
+    val = misc2c.wxSystemSettings_GetFont(*_args,**_kwargs)
     if val: val = wxFontPtr(val); val.thisown = 1
     return val
 
     if val: val = wxFontPtr(val); val.thisown = 1
     return val
 
@@ -1152,6 +1329,16 @@ wxSystemSettings_GetScreenType = misc2c.wxSystemSettings_GetScreenType
 
 wxSystemSettings_SetScreenType = misc2c.wxSystemSettings_SetScreenType
 
 
 wxSystemSettings_SetScreenType = misc2c.wxSystemSettings_SetScreenType
 
+wxSystemOptions_SetOption = misc2c.wxSystemOptions_SetOption
+
+wxSystemOptions_SetOptionInt = misc2c.wxSystemOptions_SetOptionInt
+
+wxSystemOptions_GetOption = misc2c.wxSystemOptions_GetOption
+
+wxSystemOptions_GetOptionInt = misc2c.wxSystemOptions_GetOptionInt
+
+wxSystemOptions_HasOption = misc2c.wxSystemOptions_HasOption
+
 wxToolTip_Enable = misc2c.wxToolTip_Enable
 
 wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
 wxToolTip_Enable = misc2c.wxToolTip_Enable
 
 wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
@@ -1165,12 +1352,12 @@ wxLog_OnLog = misc2c.wxLog_OnLog
 wxLog_FlushActive = misc2c.wxLog_FlushActive
 
 def wxLog_GetActiveTarget(*_args, **_kwargs):
 wxLog_FlushActive = misc2c.wxLog_FlushActive
 
 def wxLog_GetActiveTarget(*_args, **_kwargs):
-    val = apply(misc2c.wxLog_GetActiveTarget,_args,_kwargs)
+    val = misc2c.wxLog_GetActiveTarget(*_args,**_kwargs)
     if val: val = wxLogPtr(val)
     return val
 
 def wxLog_SetActiveTarget(*_args, **_kwargs):
     if val: val = wxLogPtr(val)
     return val
 
 def wxLog_SetActiveTarget(*_args, **_kwargs):
-    val = apply(misc2c.wxLog_SetActiveTarget,_args,_kwargs)
+    val = misc2c.wxLog_SetActiveTarget(*_args,**_kwargs)
     if val: val = wxLogPtr(val)
     return val
 
     if val: val = wxLogPtr(val)
     return val
 
@@ -1190,6 +1377,8 @@ wxLog_RemoveTraceMask = misc2c.wxLog_RemoveTraceMask
 
 wxLog_ClearTraceMasks = misc2c.wxLog_ClearTraceMasks
 
 
 wxLog_ClearTraceMasks = misc2c.wxLog_ClearTraceMasks
 
+wxLog_GetTraceMasks = misc2c.wxLog_GetTraceMasks
+
 wxLog_SetTimestamp = misc2c.wxLog_SetTimestamp
 
 wxLog_GetTimestamp = misc2c.wxLog_GetTimestamp
 wxLog_SetTimestamp = misc2c.wxLog_SetTimestamp
 
 wxLog_GetTimestamp = misc2c.wxLog_GetTimestamp
@@ -1198,12 +1387,16 @@ wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask
 
 wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
 
 
 wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
 
+wxLog_SetLogLevel = misc2c.wxLog_SetLogLevel
+
+wxLog_GetLogLevel = misc2c.wxLog_GetLogLevel
+
 wxProcess_Kill = misc2c.wxProcess_Kill
 
 wxProcess_Exists = misc2c.wxProcess_Exists
 
 def wxProcess_Open(*_args, **_kwargs):
 wxProcess_Kill = misc2c.wxProcess_Kill
 
 wxProcess_Exists = misc2c.wxProcess_Exists
 
 def wxProcess_Open(*_args, **_kwargs):
-    val = apply(misc2c.wxProcess_Open,_args,_kwargs)
+    val = misc2c.wxProcess_Open(*_args,**_kwargs)
     if val: val = wxProcessPtr(val)
     return val
 
     if val: val = wxProcessPtr(val)
     return val
 
@@ -1218,17 +1411,15 @@ wxArtProvider_PopProvider = misc2c.wxArtProvider_PopProvider
 wxArtProvider_RemoveProvider = misc2c.wxArtProvider_RemoveProvider
 
 def wxArtProvider_GetBitmap(*_args, **_kwargs):
 wxArtProvider_RemoveProvider = misc2c.wxArtProvider_RemoveProvider
 
 def wxArtProvider_GetBitmap(*_args, **_kwargs):
-    val = apply(misc2c.wxArtProvider_GetBitmap,_args,_kwargs)
+    val = misc2c.wxArtProvider_GetBitmap(*_args,**_kwargs)
     if val: val = wxBitmapPtr(val); val.thisown = 1
     return val
 
 def wxArtProvider_GetIcon(*_args, **_kwargs):
     if val: val = wxBitmapPtr(val); val.thisown = 1
     return val
 
 def wxArtProvider_GetIcon(*_args, **_kwargs):
-    val = apply(misc2c.wxArtProvider_GetIcon,_args,_kwargs)
+    val = misc2c.wxArtProvider_GetIcon(*_args,**_kwargs)
     if val: val = wxIconPtr(val); val.thisown = 1
     return val
 
     if val: val = wxIconPtr(val); val.thisown = 1
     return val
 
-wxArtProvider_CleanUpProviders = misc2c.wxArtProvider_CleanUpProviders
-
 
 
 #-------------- VARIABLE WRAPPERS ------------------
 
 
 #-------------- VARIABLE WRAPPERS ------------------
@@ -1384,40 +1575,3 @@ wxMAILCAP_GNOME = misc2c.wxMAILCAP_GNOME
 wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL
 cvar = misc2c.cvar
 wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager)
 wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL
 cvar = misc2c.cvar
 wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager)
-wxART_TOOLBAR = misc2c.wxART_TOOLBAR
-wxART_MENU = misc2c.wxART_MENU
-wxART_FRAME_ICON = misc2c.wxART_FRAME_ICON
-wxART_CMN_DIALOG = misc2c.wxART_CMN_DIALOG
-wxART_HELP_BROWSER = misc2c.wxART_HELP_BROWSER
-wxART_MESSAGE_BOX = misc2c.wxART_MESSAGE_BOX
-wxART_OTHER = misc2c.wxART_OTHER
-wxART_ADD_BOOKMARK = misc2c.wxART_ADD_BOOKMARK
-wxART_DEL_BOOKMARK = misc2c.wxART_DEL_BOOKMARK
-wxART_HELP_SIDE_PANEL = misc2c.wxART_HELP_SIDE_PANEL
-wxART_HELP_SETTINGS = misc2c.wxART_HELP_SETTINGS
-wxART_HELP_BOOK = misc2c.wxART_HELP_BOOK
-wxART_HELP_FOLDER = misc2c.wxART_HELP_FOLDER
-wxART_HELP_PAGE = misc2c.wxART_HELP_PAGE
-wxART_GO_BACK = misc2c.wxART_GO_BACK
-wxART_GO_FORWARD = misc2c.wxART_GO_FORWARD
-wxART_GO_UP = misc2c.wxART_GO_UP
-wxART_GO_DOWN = misc2c.wxART_GO_DOWN
-wxART_GO_TO_PARENT = misc2c.wxART_GO_TO_PARENT
-wxART_GO_HOME = misc2c.wxART_GO_HOME
-wxART_FILE_OPEN = misc2c.wxART_FILE_OPEN
-wxART_PRINT = misc2c.wxART_PRINT
-wxART_HELP = misc2c.wxART_HELP
-wxART_TIP = misc2c.wxART_TIP
-wxART_REPORT_VIEW = misc2c.wxART_REPORT_VIEW
-wxART_LIST_VIEW = misc2c.wxART_LIST_VIEW
-wxART_NEW_DIR = misc2c.wxART_NEW_DIR
-wxART_FOLDER = misc2c.wxART_FOLDER
-wxART_GO_DIR_UP = misc2c.wxART_GO_DIR_UP
-wxART_EXECUTABLE_FILE = misc2c.wxART_EXECUTABLE_FILE
-wxART_NORMAL_FILE = misc2c.wxART_NORMAL_FILE
-wxART_TICK_MARK = misc2c.wxART_TICK_MARK
-wxART_CROSS_MARK = misc2c.wxART_CROSS_MARK
-wxART_ERROR = misc2c.wxART_ERROR
-wxART_QUESTION = misc2c.wxART_QUESTION
-wxART_WARNING = misc2c.wxART_WARNING
-wxART_INFORMATION = misc2c.wxART_INFORMATION