]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/windows3.py
Added bakefile for the OGL contrib
[wxWidgets.git] / wxPython / src / msw / windows3.py
index 994e73cca0102359057b5a4a8984f47e3b6b5635..c7a571f5644564919c72ca14b1051d9cde763153 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