SWIGged updates for wxMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-10-22 06:20:16 +00:00
parent 5de6e36941
commit 6a8dabe2ae
28 changed files with 912 additions and 606 deletions

View File

@@ -932,8 +932,16 @@ class wxGridCellCoordsPtr :
return val
def __repr__(self):
return "<C wxGridCellCoords instance at %s>" % (self.this,)
def __str__(self): return str(self.asTuple())
def __repr__(self): return str(self.asTuple())
def __str__(self): return str(self.asTuple())
def __repr__(self): return str(self.asTuple())
def __len__(self): return len(self.asTuple())
def __getitem__(self, index): return self.asTuple()[index]
def __setitem__(self, index, val):
if index == 0: self.SetRow(val)
elif index == 1: self.SetCol(val)
else: raise IndexError
class wxGridCellCoords(wxGridCellCoordsPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(gridc.new_wxGridCellCoords,_args,_kwargs)
@@ -1433,6 +1441,21 @@ class wxGridPtr(wxScrolledWindowPtr):
def IsInSelection(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_IsInSelection,(self,) + _args, _kwargs)
return val
def GetSelectedCells(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetSelectedCells,(self,) + _args, _kwargs)
return val
def GetSelectionBlockTopLeft(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetSelectionBlockTopLeft,(self,) + _args, _kwargs)
return val
def GetSelectionBlockBottomRight(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetSelectionBlockBottomRight,(self,) + _args, _kwargs)
return val
def GetSelectedRows(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetSelectedRows,(self,) + _args, _kwargs)
return val
def GetSelectedCols(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetSelectedCols,(self,) + _args, _kwargs)
return val
def BlockToDeviceRect(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_BlockToDeviceRect,(self,) + _args, _kwargs)
if val: val = wxRectPtr(val) ; val.thisown = 1