SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -255,6 +255,12 @@ class wxGridCellEditorPtr :
|
||||
def SetControl(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetCellAttr(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_GetCellAttr,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetCellAttr(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_SetCellAttr,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetParameters(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -303,6 +309,9 @@ class wxGridCellEditorPtr :
|
||||
def Destroy(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_Destroy,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetValue(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellEditor_GetValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxGridCellEditor instance at %s>" % (self.this,)
|
||||
class wxGridCellEditor(wxGridCellEditorPtr):
|
||||
@@ -346,6 +355,9 @@ class wxPyGridCellEditorPtr(wxGridCellEditorPtr):
|
||||
def base_SetParameters(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxPyGridCellEditor_base_SetParameters,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def base_GetValue(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxPyGridCellEditor_base_GetValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyGridCellEditor instance at %s>" % (self.this,)
|
||||
class wxPyGridCellEditor(wxPyGridCellEditorPtr):
|
||||
@@ -865,9 +877,12 @@ class wxGridTableMessagePtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,gridc=gridc):
|
||||
if self.thisown == 1 :
|
||||
gridc.delete_wxGridTableMessage(self)
|
||||
def __del__(self, delfunc=gridc.delete_wxGridTableMessage):
|
||||
if self.thisown == 1:
|
||||
try:
|
||||
delfunc(self)
|
||||
except:
|
||||
pass
|
||||
def SetTableObject(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridTableMessage_SetTableObject,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -906,9 +921,12 @@ class wxGridCellCoordsPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,gridc=gridc):
|
||||
if self.thisown == 1 :
|
||||
gridc.delete_wxGridCellCoords(self)
|
||||
def __del__(self, delfunc=gridc.delete_wxGridCellCoords):
|
||||
if self.thisown == 1:
|
||||
try:
|
||||
delfunc(self)
|
||||
except:
|
||||
pass
|
||||
def GetRow(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGridCellCoords_GetRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -932,8 +950,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 'wxGridCellCoords'+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)
|
||||
@@ -1146,6 +1172,9 @@ class wxGridPtr(wxScrolledWindowPtr):
|
||||
def GetColLabelAlignment(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_GetColLabelAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetColLabelTextOrientation(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_GetColLabelTextOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetRowLabelValue(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_GetRowLabelValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -1187,6 +1216,9 @@ class wxGridPtr(wxScrolledWindowPtr):
|
||||
def SetColLabelAlignment(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_SetColLabelAlignment,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColLabelTextOrientation(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_SetColLabelTextOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRowLabelValue(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_SetRowLabelValue,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -1337,6 +1369,12 @@ class wxGridPtr(wxScrolledWindowPtr):
|
||||
def AutoSize(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_AutoSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AutoSizeRowLabelSize(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_AutoSizeRowLabelSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def AutoSizeColLabelSize(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_AutoSizeColLabelSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetColMinimalWidth(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_SetColMinimalWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
@@ -1433,6 +1471,30 @@ 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 DeselectRow(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_DeselectRow,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeselectCol(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_DeselectCol,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeselectCell(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_DeselectCell,(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
|
||||
|
Reference in New Issue
Block a user