]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/help.py
Build fixes and reSWIGs for wxMac
[wxWidgets.git] / wxPython / src / msw / help.py
index add867a4447af7ba4a3c60e73f379fd71063a47f..ac1612ba19beae2f1f237824f356d0807e09fa9f 100644 (file)
@@ -65,9 +65,12 @@ class wxContextHelpPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,helpc=helpc):
-        if self.thisown == 1 :
-            helpc.delete_wxContextHelp(self)
+    def __del__(self, delfunc=helpc.delete_wxContextHelp):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def BeginContextHelp(self, *_args, **_kwargs):
         val = apply(helpc.wxContextHelp_BeginContextHelp,(self,) + _args, _kwargs)
         return val
@@ -171,3 +174,4 @@ wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
 # Stuff these names into the wx namespace so wxPyConstructObject can find them
 import wx
 wx.wxHelpEventPtr         = wxHelpEventPtr
+wx.wxContextHelpButtonPtr = wxContextHelpButtonPtr