]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/windows3.py
SWIGged updates for wxMac
[wxWidgets.git] / wxPython / src / mac / windows3.py
index e18a7ac36ce540a1f7d369036ee9344dcaf9fde3..838e90b6da2a27659cdffc7249b6f60d91e6431a 100644 (file)
@@ -246,9 +246,12 @@ class wxLayoutAlgorithmPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,windows3c=windows3c):
-        if self.thisown == 1 :
-            windows3c.delete_wxLayoutAlgorithm(self)
+    def __del__(self, delfunc=windows3c.delete_wxLayoutAlgorithm):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def LayoutMDIFrame(self, *_args, **_kwargs):
         val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self,) + _args, _kwargs)
         return val