]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/controls.py
added functions to read/write several elements at once (patch 754986)
[wxWidgets.git] / wxPython / src / mac / controls.py
index 855f3e76cebaba0e63153104e3568af0b0464c6e..3491f87a54ffcf4ca8731e9c77ebd2d017ba5d18 100644 (file)
@@ -200,6 +200,9 @@ class wxCheckBoxPtr(wxControlPtr):
     def GetValue(self, *_args, **_kwargs):
         val = apply(controlsc.wxCheckBox_GetValue,(self,) + _args, _kwargs)
         return val
+    def IsChecked(self, *_args, **_kwargs):
+        val = apply(controlsc.wxCheckBox_IsChecked,(self,) + _args, _kwargs)
+        return val
     def SetValue(self, *_args, **_kwargs):
         val = apply(controlsc.wxCheckBox_SetValue,(self,) + _args, _kwargs)
         return val
@@ -560,9 +563,12 @@ class wxTextAttrPtr :
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,controlsc=controlsc):
-        if self.thisown == 1 :
-            controlsc.delete_wxTextAttr(self)
+    def __del__(self, delfunc=controlsc.delete_wxTextAttr):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def SetTextColour(self, *_args, **_kwargs):
         val = apply(controlsc.wxTextAttr_SetTextColour,(self,) + _args, _kwargs)
         return val
@@ -921,6 +927,9 @@ class wxRadioBoxPtr(wxControlPtr):
     def GetRowCount(self, *_args, **_kwargs):
         val = apply(controlsc.wxRadioBox_GetRowCount,(self,) + _args, _kwargs)
         return val
+    def GetNextItem(self, *_args, **_kwargs):
+        val = apply(controlsc.wxRadioBox_GetNextItem,(self,) + _args, _kwargs)
+        return val
     def GetSelection(self, *_args, **_kwargs):
         val = apply(controlsc.wxRadioBox_GetSelection,(self,) + _args, _kwargs)
         return val