X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca31b3da9988750539c28ab7bf07518832cab6a0..53663be8a5ea8e1c6f178839209b67e8228e4642:/wxPython/src/mac/controls.py diff --git a/wxPython/src/mac/controls.py b/wxPython/src/mac/controls.py index e8af318e33..3491f87a54 100644 --- a/wxPython/src/mac/controls.py +++ b/wxPython/src/mac/controls.py @@ -7,6 +7,8 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from events import * @@ -198,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 @@ -531,6 +536,12 @@ class wxCheckListBoxPtr(wxListBoxPtr): def InsertItems(self, *_args, **_kwargs): val = apply(controlsc.wxCheckListBox_InsertItems,(self,) + _args, _kwargs) return val + def HitTest(self, *_args, **_kwargs): + val = apply(controlsc.wxCheckListBox_HitTest,(self,) + _args, _kwargs) + return val + def HitTestXY(self, *_args, **_kwargs): + val = apply(controlsc.wxCheckListBox_HitTestXY,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxCheckListBox(wxCheckListBoxPtr): @@ -552,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 @@ -662,6 +676,9 @@ class wxTextCtrlPtr(wxControlPtr): def AppendText(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_AppendText,(self,) + _args, _kwargs) return val + def EmulateKeyPress(self, *_args, **_kwargs): + val = apply(controlsc.wxTextCtrl_EmulateKeyPress,(self,) + _args, _kwargs) + return val def SetStyle(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_SetStyle,(self,) + _args, _kwargs) return val @@ -732,6 +749,12 @@ class wxTextCtrlPtr(wxControlPtr): def SetEditable(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_SetEditable,(self,) + _args, _kwargs) return val + def IsSingleLine(self, *_args, **_kwargs): + val = apply(controlsc.wxTextCtrl_IsSingleLine,(self,) + _args, _kwargs) + return val + def IsMultiLine(self, *_args, **_kwargs): + val = apply(controlsc.wxTextCtrl_IsMultiLine,(self,) + _args, _kwargs) + return val def write(self, *_args, **_kwargs): val = apply(controlsc.wxTextCtrl_write,(self,) + _args, _kwargs) return val @@ -904,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