+# This file was created automatically by SWIG 1.3.29.
+# Don't modify this file, modify the SWIG interface instead.
+
+"""
+Classes for implementing a spreadsheet-like control.
+"""
+
+import _grid
+import new
+new_instancemethod = new.instancemethod
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
+ if (name == "this"):
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ if (not static) or hasattr(self,name):
+ self.__dict__[name] = value
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+def _swig_repr(self):
+ try: strthis = "proxy of " + self.this.__repr__()
+ except: strthis = ""
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+del types
+
+
+def _swig_setattr_nondynamic_method(set):
+ def set_attr(self,name,value):
+ if (name == "thisown"): return self.this.own(value)
+ if hasattr(self,name) or (name == "this"):
+ set(self,name,value)
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+ return set_attr
+
+
+import _windows
+import _core
+wx = _core
+__docfilter__ = wx.__DocFilter(globals())
+GRID_VALUE_STRING = _grid.GRID_VALUE_STRING
+GRID_VALUE_BOOL = _grid.GRID_VALUE_BOOL
+GRID_VALUE_NUMBER = _grid.GRID_VALUE_NUMBER
+GRID_VALUE_FLOAT = _grid.GRID_VALUE_FLOAT
+GRID_VALUE_CHOICE = _grid.GRID_VALUE_CHOICE
+GRID_VALUE_TEXT = _grid.GRID_VALUE_TEXT
+GRID_VALUE_LONG = _grid.GRID_VALUE_LONG
+GRID_VALUE_CHOICEINT = _grid.GRID_VALUE_CHOICEINT
+GRID_VALUE_DATETIME = _grid.GRID_VALUE_DATETIME
+GRID_DEFAULT_NUMBER_ROWS = _grid.GRID_DEFAULT_NUMBER_ROWS
+GRID_DEFAULT_NUMBER_COLS = _grid.GRID_DEFAULT_NUMBER_COLS
+GRID_DEFAULT_ROW_HEIGHT = _grid.GRID_DEFAULT_ROW_HEIGHT
+GRID_DEFAULT_COL_WIDTH = _grid.GRID_DEFAULT_COL_WIDTH
+GRID_DEFAULT_COL_LABEL_HEIGHT = _grid.GRID_DEFAULT_COL_LABEL_HEIGHT
+GRID_DEFAULT_ROW_LABEL_WIDTH = _grid.GRID_DEFAULT_ROW_LABEL_WIDTH
+GRID_LABEL_EDGE_ZONE = _grid.GRID_LABEL_EDGE_ZONE
+GRID_MIN_ROW_HEIGHT = _grid.GRID_MIN_ROW_HEIGHT
+GRID_MIN_COL_WIDTH = _grid.GRID_MIN_COL_WIDTH
+GRID_DEFAULT_SCROLLBAR_WIDTH = _grid.GRID_DEFAULT_SCROLLBAR_WIDTH
+class GridCellWorker(object):
+ """Proxy of C++ GridCellWorker class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+ def _setOORInfo(*args, **kwargs):
+ """_setOORInfo(self, PyObject _self)"""
+ return _grid.GridCellWorker__setOORInfo(*args, **kwargs)
+
+ __swig_destroy__ = _grid.delete_GridCellWorker
+ __del__ = lambda self : None;
+ def SetParameters(*args, **kwargs):
+ """SetParameters(self, String params)"""
+ return _grid.GridCellWorker_SetParameters(*args, **kwargs)
+
+ def IncRef(*args, **kwargs):
+ """IncRef(self)"""
+ return _grid.GridCellWorker_IncRef(*args, **kwargs)
+
+ def DecRef(*args, **kwargs):
+ """DecRef(self)"""
+ return _grid.GridCellWorker_DecRef(*args, **kwargs)
+
+_grid.GridCellWorker_swigregister(GridCellWorker)
+cvar = _grid.cvar
+GridNoCellCoords = cvar.GridNoCellCoords
+GridNoCellRect = cvar.GridNoCellRect
+
+class GridCellRenderer(GridCellWorker):
+ """Proxy of C++ GridCellRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+_grid.GridCellRenderer_swigregister(GridCellRenderer)
+
+class PyGridCellRenderer(GridCellRenderer):
+ """Proxy of C++ PyGridCellRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> PyGridCellRenderer"""
+ _grid.PyGridCellRenderer_swiginit(self,_grid.new_PyGridCellRenderer(*args, **kwargs))
+ self._setCallbackInfo(self, PyGridCellRenderer);self._setOORInfo(self)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(self, PyObject self, PyObject _class)"""
+ return _grid.PyGridCellRenderer__setCallbackInfo(*args, **kwargs)
+
+ def SetParameters(*args, **kwargs):
+ """SetParameters(self, String params)"""
+ return _grid.PyGridCellRenderer_SetParameters(*args, **kwargs)
+
+ def base_SetParameters(*args, **kw):
+ return PyGridCellRenderer.SetParameters(*args, **kw)
+ base_SetParameters = wx._deprecated(base_SetParameters,
+ "Please use PyGridCellRenderer.SetParameters instead.")
+
+_grid.PyGridCellRenderer_swigregister(PyGridCellRenderer)
+
+class GridCellStringRenderer(GridCellRenderer):
+ """Proxy of C++ GridCellStringRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellStringRenderer"""
+ _grid.GridCellStringRenderer_swiginit(self,_grid.new_GridCellStringRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellStringRenderer_swigregister(GridCellStringRenderer)
+
+class GridCellNumberRenderer(GridCellStringRenderer):
+ """Proxy of C++ GridCellNumberRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellNumberRenderer"""
+ _grid.GridCellNumberRenderer_swiginit(self,_grid.new_GridCellNumberRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellNumberRenderer_swigregister(GridCellNumberRenderer)
+
+class GridCellFloatRenderer(GridCellStringRenderer):
+ """Proxy of C++ GridCellFloatRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
+ _grid.GridCellFloatRenderer_swiginit(self,_grid.new_GridCellFloatRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def GetWidth(*args, **kwargs):
+ """GetWidth(self) -> int"""
+ return _grid.GridCellFloatRenderer_GetWidth(*args, **kwargs)
+
+ def SetWidth(*args, **kwargs):
+ """SetWidth(self, int width)"""
+ return _grid.GridCellFloatRenderer_SetWidth(*args, **kwargs)
+
+ def GetPrecision(*args, **kwargs):
+ """GetPrecision(self) -> int"""
+ return _grid.GridCellFloatRenderer_GetPrecision(*args, **kwargs)
+
+ def SetPrecision(*args, **kwargs):
+ """SetPrecision(self, int precision)"""
+ return _grid.GridCellFloatRenderer_SetPrecision(*args, **kwargs)
+
+_grid.GridCellFloatRenderer_swigregister(GridCellFloatRenderer)
+
+class GridCellBoolRenderer(GridCellRenderer):
+ """Proxy of C++ GridCellBoolRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellBoolRenderer"""
+ _grid.GridCellBoolRenderer_swiginit(self,_grid.new_GridCellBoolRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellBoolRenderer_swigregister(GridCellBoolRenderer)
+
+class GridCellDateTimeRenderer(GridCellStringRenderer):
+ """Proxy of C++ GridCellDateTimeRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
+ _grid.GridCellDateTimeRenderer_swiginit(self,_grid.new_GridCellDateTimeRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer)
+
+class GridCellEnumRenderer(GridCellStringRenderer):
+ """Proxy of C++ GridCellEnumRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
+ _grid.GridCellEnumRenderer_swiginit(self,_grid.new_GridCellEnumRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellEnumRenderer_swigregister(GridCellEnumRenderer)
+
+class GridCellAutoWrapStringRenderer(GridCellStringRenderer):
+ """Proxy of C++ GridCellAutoWrapStringRenderer class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellAutoWrapStringRenderer"""
+ _grid.GridCellAutoWrapStringRenderer_swiginit(self,_grid.new_GridCellAutoWrapStringRenderer(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer)
+
+class GridCellEditor(GridCellWorker):
+ """Proxy of C++ GridCellEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+ def IsCreated(*args, **kwargs):
+ """IsCreated(self) -> bool"""
+ return _grid.GridCellEditor_IsCreated(*args, **kwargs)
+
+ def GetControl(*args, **kwargs):
+ """GetControl(self) -> Control"""
+ return _grid.GridCellEditor_GetControl(*args, **kwargs)
+
+ def SetControl(*args, **kwargs):
+ """SetControl(self, Control control)"""
+ return _grid.GridCellEditor_SetControl(*args, **kwargs)
+
+ def GetCellAttr(*args, **kwargs):
+ """GetCellAttr(self) -> GridCellAttr"""
+ return _grid.GridCellEditor_GetCellAttr(*args, **kwargs)
+
+ def SetCellAttr(*args, **kwargs):
+ """SetCellAttr(self, GridCellAttr attr)"""
+ return _grid.GridCellEditor_SetCellAttr(*args, **kwargs)
+
+ def Create(*args, **kwargs):
+ """Create(self, Window parent, int id, EvtHandler evtHandler)"""
+ return _grid.GridCellEditor_Create(*args, **kwargs)
+
+ def BeginEdit(*args, **kwargs):
+ """BeginEdit(self, int row, int col, Grid grid)"""
+ return _grid.GridCellEditor_BeginEdit(*args, **kwargs)
+
+ def EndEdit(*args, **kwargs):
+ """EndEdit(self, int row, int col, Grid grid) -> bool"""
+ return _grid.GridCellEditor_EndEdit(*args, **kwargs)
+
+ def Reset(*args, **kwargs):
+ """Reset(self)"""
+ return _grid.GridCellEditor_Reset(*args, **kwargs)
+
+ def Clone(*args, **kwargs):
+ """Clone(self) -> GridCellEditor"""
+ return _grid.GridCellEditor_Clone(*args, **kwargs)
+
+ def SetSize(*args, **kwargs):
+ """SetSize(self, Rect rect)"""
+ return _grid.GridCellEditor_SetSize(*args, **kwargs)
+
+ def Show(*args, **kwargs):
+ """Show(self, bool show, GridCellAttr attr=None)"""
+ return _grid.GridCellEditor_Show(*args, **kwargs)
+
+ def PaintBackground(*args, **kwargs):
+ """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
+ return _grid.GridCellEditor_PaintBackground(*args, **kwargs)
+
+ def IsAcceptedKey(*args, **kwargs):
+ """IsAcceptedKey(self, KeyEvent event) -> bool"""
+ return _grid.GridCellEditor_IsAcceptedKey(*args, **kwargs)
+
+ def StartingKey(*args, **kwargs):
+ """StartingKey(self, KeyEvent event)"""
+ return _grid.GridCellEditor_StartingKey(*args, **kwargs)
+
+ def StartingClick(*args, **kwargs):
+ """StartingClick(self)"""
+ return _grid.GridCellEditor_StartingClick(*args, **kwargs)
+
+ def HandleReturn(*args, **kwargs):
+ """HandleReturn(self, KeyEvent event)"""
+ return _grid.GridCellEditor_HandleReturn(*args, **kwargs)
+
+ def Destroy(*args, **kwargs):
+ """Destroy(self)"""
+ val = _grid.GridCellEditor_Destroy(*args, **kwargs)
+ args[0].thisown = 0
+ return val
+
+_grid.GridCellEditor_swigregister(GridCellEditor)
+
+class PyGridCellEditor(GridCellEditor):
+ """Proxy of C++ PyGridCellEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> PyGridCellEditor"""
+ _grid.PyGridCellEditor_swiginit(self,_grid.new_PyGridCellEditor(*args, **kwargs))
+ self._setCallbackInfo(self, PyGridCellEditor);self._setOORInfo(self)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(self, PyObject self, PyObject _class)"""
+ return _grid.PyGridCellEditor__setCallbackInfo(*args, **kwargs)
+
+ def SetParameters(*args, **kwargs):
+ """SetParameters(self, String params)"""
+ return _grid.PyGridCellEditor_SetParameters(*args, **kwargs)
+
+ def base_SetSize(*args, **kw):
+ return PyGridCellEditor.SetSize(*args, **kw)
+ base_SetSize = wx._deprecated(base_SetSize,
+ "Please use PyGridCellEditor.SetSize instead.")
+
+ def base_Show(*args, **kw):
+ return PyGridCellEditor.Show(*args, **kw)
+ base_Show = wx._deprecated(base_Show,
+ "Please use PyGridCellEditor.Show instead.")
+
+ def base_PaintBackground(*args, **kw):
+ return PyGridCellEditor.PaintBackground(*args, **kw)
+ base_PaintBackground = wx._deprecated(base_PaintBackground,
+ "Please use PyGridCellEditor.PaintBackground instead.")
+
+ def base_IsAcceptedKey(*args, **kw):
+ return PyGridCellEditor.IsAcceptedKey(*args, **kw)
+ base_IsAcceptedKey = wx._deprecated(base_IsAcceptedKey,
+ "Please use PyGridCellEditor.IsAcceptedKey instead.")
+
+ def base_StartingKey(*args, **kw):
+ return PyGridCellEditor.StartingKey(*args, **kw)
+ base_StartingKey = wx._deprecated(base_StartingKey,
+ "Please use PyGridCellEditor.StartingKey instead.")
+
+ def base_StartingClick(*args, **kw):
+ return PyGridCellEditor.StartingClick(*args, **kw)
+ base_StartingClick = wx._deprecated(base_StartingClick,
+ "Please use PyGridCellEditor.StartingClick instead.")
+
+ def base_HandleReturn(*args, **kw):
+ return PyGridCellEditor.HandleReturn(*args, **kw)
+ base_HandleReturn = wx._deprecated(base_HandleReturn,
+ "Please use PyGridCellEditor.HandleReturn instead.")
+
+ def base_Destroy(*args, **kw):
+ return PyGridCellEditor.Destroy(*args, **kw)
+ base_Destroy = wx._deprecated(base_Destroy,
+ "Please use PyGridCellEditor.Destroy instead.")
+
+ def base_SetParameters(*args, **kw):
+ return PyGridCellEditor.SetParameters(*args, **kw)
+ base_SetParameters = wx._deprecated(base_SetParameters,
+ "Please use PyGridCellEditor.SetParameters instead.")
+
+_grid.PyGridCellEditor_swigregister(PyGridCellEditor)
+
+class GridCellTextEditor(GridCellEditor):
+ """Proxy of C++ GridCellTextEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellTextEditor"""
+ _grid.GridCellTextEditor_swiginit(self,_grid.new_GridCellTextEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def GetValue(*args, **kwargs):
+ """GetValue(self) -> String"""
+ return _grid.GridCellTextEditor_GetValue(*args, **kwargs)
+
+_grid.GridCellTextEditor_swigregister(GridCellTextEditor)
+
+class GridCellNumberEditor(GridCellTextEditor):
+ """Proxy of C++ GridCellNumberEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
+ _grid.GridCellNumberEditor_swiginit(self,_grid.new_GridCellNumberEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellNumberEditor_swigregister(GridCellNumberEditor)
+
+class GridCellFloatEditor(GridCellTextEditor):
+ """Proxy of C++ GridCellFloatEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
+ _grid.GridCellFloatEditor_swiginit(self,_grid.new_GridCellFloatEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellFloatEditor_swigregister(GridCellFloatEditor)
+
+class GridCellBoolEditor(GridCellEditor):
+ """Proxy of C++ GridCellBoolEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellBoolEditor"""
+ _grid.GridCellBoolEditor_swiginit(self,_grid.new_GridCellBoolEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def GetValue(*args, **kwargs):
+ """GetValue(self) -> String"""
+ return _grid.GridCellBoolEditor_GetValue(*args, **kwargs)
+
+_grid.GridCellBoolEditor_swigregister(GridCellBoolEditor)
+
+class GridCellChoiceEditor(GridCellEditor):
+ """Proxy of C++ GridCellChoiceEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
+ _grid.GridCellChoiceEditor_swiginit(self,_grid.new_GridCellChoiceEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def GetValue(*args, **kwargs):
+ """GetValue(self) -> String"""
+ return _grid.GridCellChoiceEditor_GetValue(*args, **kwargs)
+
+_grid.GridCellChoiceEditor_swigregister(GridCellChoiceEditor)
+
+class GridCellEnumEditor(GridCellChoiceEditor):
+ """Proxy of C++ GridCellEnumEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
+ _grid.GridCellEnumEditor_swiginit(self,_grid.new_GridCellEnumEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellEnumEditor_swigregister(GridCellEnumEditor)
+
+class GridCellAutoWrapStringEditor(GridCellTextEditor):
+ """Proxy of C++ GridCellAutoWrapStringEditor class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellAutoWrapStringEditor"""
+ _grid.GridCellAutoWrapStringEditor_swiginit(self,_grid.new_GridCellAutoWrapStringEditor(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor)
+
+class GridCellAttr(object):
+ """Proxy of C++ GridCellAttr class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ Any = _grid.GridCellAttr_Any
+ Default = _grid.GridCellAttr_Default
+ Cell = _grid.GridCellAttr_Cell
+ Row = _grid.GridCellAttr_Row
+ Col = _grid.GridCellAttr_Col
+ Merged = _grid.GridCellAttr_Merged
+ def _setOORInfo(*args, **kwargs):
+ """_setOORInfo(self, PyObject _self)"""
+ return _grid.GridCellAttr__setOORInfo(*args, **kwargs)
+
+ def __init__(self, *args, **kwargs):
+ """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
+ _grid.GridCellAttr_swiginit(self,_grid.new_GridCellAttr(*args, **kwargs))
+ self._setOORInfo(self)
+
+ __swig_destroy__ = _grid.delete_GridCellAttr
+ __del__ = lambda self : None;
+ def Clone(*args, **kwargs):
+ """Clone(self) -> GridCellAttr"""
+ return _grid.GridCellAttr_Clone(*args, **kwargs)
+
+ def MergeWith(*args, **kwargs):
+ """MergeWith(self, GridCellAttr mergefrom)"""
+ return _grid.GridCellAttr_MergeWith(*args, **kwargs)
+
+ def IncRef(*args, **kwargs):
+ """IncRef(self)"""
+ return _grid.GridCellAttr_IncRef(*args, **kwargs)
+
+ def DecRef(*args, **kwargs):
+ """DecRef(self)"""
+ return _grid.GridCellAttr_DecRef(*args, **kwargs)
+
+ def SetTextColour(*args, **kwargs):
+ """SetTextColour(self, Colour colText)"""
+ return _grid.GridCellAttr_SetTextColour(*args, **kwargs)
+
+ def SetBackgroundColour(*args, **kwargs):
+ """SetBackgroundColour(self, Colour colBack)"""
+ return _grid.GridCellAttr_SetBackgroundColour(*args, **kwargs)
+
+ def SetFont(*args, **kwargs):
+ """SetFont(self, Font font)"""
+ return _grid.GridCellAttr_SetFont(*args, **kwargs)
+
+ def SetAlignment(*args, **kwargs):
+ """SetAlignment(self, int hAlign, int vAlign)"""
+ return _grid.GridCellAttr_SetAlignment(*args, **kwargs)
+
+ def SetSize(*args, **kwargs):
+ """SetSize(self, int num_rows, int num_cols)"""
+ return _grid.GridCellAttr_SetSize(*args, **kwargs)
+
+ def SetOverflow(*args, **kwargs):
+ """SetOverflow(self, bool allow=True)"""
+ return _grid.GridCellAttr_SetOverflow(*args, **kwargs)
+
+ def SetReadOnly(*args, **kwargs):
+ """SetReadOnly(self, bool isReadOnly=True)"""
+ return _grid.GridCellAttr_SetReadOnly(*args, **kwargs)
+
+ def SetRenderer(*args, **kwargs):
+ """SetRenderer(self, GridCellRenderer renderer)"""
+ return _grid.GridCellAttr_SetRenderer(*args, **kwargs)
+
+ def SetEditor(*args, **kwargs):
+ """SetEditor(self, GridCellEditor editor)"""
+ return _grid.GridCellAttr_SetEditor(*args, **kwargs)
+
+ def SetKind(*args, **kwargs):
+ """SetKind(self, int kind)"""
+ return _grid.GridCellAttr_SetKind(*args, **kwargs)
+
+ def HasTextColour(*args, **kwargs):
+ """HasTextColour(self) -> bool"""
+ return _grid.GridCellAttr_HasTextColour(*args, **kwargs)
+
+ def HasBackgroundColour(*args, **kwargs):
+ """HasBackgroundColour(self) -> bool"""
+ return _grid.GridCellAttr_HasBackgroundColour(*args, **kwargs)
+
+ def HasFont(*args, **kwargs):
+ """HasFont(self) -> bool"""
+ return _grid.GridCellAttr_HasFont(*args, **kwargs)
+
+ def HasAlignment(*args, **kwargs):
+ """HasAlignment(self) -> bool"""
+ return _grid.GridCellAttr_HasAlignment(*args, **kwargs)
+
+ def HasRenderer(*args, **kwargs):
+ """HasRenderer(self) -> bool"""
+ return _grid.GridCellAttr_HasRenderer(*args, **kwargs)
+
+ def HasEditor(*args, **kwargs):
+ """HasEditor(self) -> bool"""
+ return _grid.GridCellAttr_HasEditor(*args, **kwargs)
+
+ def HasReadWriteMode(*args, **kwargs):
+ """HasReadWriteMode(self) -> bool"""
+ return _grid.GridCellAttr_HasReadWriteMode(*args, **kwargs)
+
+ def HasOverflowMode(*args, **kwargs):
+ """HasOverflowMode(self) -> bool"""
+ return _grid.GridCellAttr_HasOverflowMode(*args, **kwargs)
+
+ def GetTextColour(*args, **kwargs):
+ """GetTextColour(self) -> Colour"""
+ return _grid.GridCellAttr_GetTextColour(*args, **kwargs)
+
+ def GetBackgroundColour(*args, **kwargs):
+ """GetBackgroundColour(self) -> Colour"""
+ return _grid.GridCellAttr_GetBackgroundColour(*args, **kwargs)
+
+ def GetFont(*args, **kwargs):
+ """GetFont(self) -> Font"""
+ return _grid.GridCellAttr_GetFont(*args, **kwargs)
+
+ def GetAlignment(*args, **kwargs):
+ """GetAlignment() -> (hAlign, vAlign)"""
+ return _grid.GridCellAttr_GetAlignment(*args, **kwargs)
+
+ def GetSize(*args, **kwargs):
+ """GetSize() -> (num_rows, num_cols)"""
+ return _grid.GridCellAttr_GetSize(*args, **kwargs)
+
+ def GetOverflow(*args, **kwargs):
+ """GetOverflow(self) -> bool"""
+ return _grid.GridCellAttr_GetOverflow(*args, **kwargs)
+
+ def GetRenderer(*args, **kwargs):
+ """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
+ return _grid.GridCellAttr_GetRenderer(*args, **kwargs)
+
+ def GetEditor(*args, **kwargs):
+ """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
+ return _grid.GridCellAttr_GetEditor(*args, **kwargs)
+
+ def IsReadOnly(*args, **kwargs):
+ """IsReadOnly(self) -> bool"""
+ return _grid.GridCellAttr_IsReadOnly(*args, **kwargs)
+
+ def GetKind(*args, **kwargs):
+ """GetKind(self) -> int"""
+ return _grid.GridCellAttr_GetKind(*args, **kwargs)
+
+ def SetDefAttr(*args, **kwargs):
+ """SetDefAttr(self, GridCellAttr defAttr)"""
+ return _grid.GridCellAttr_SetDefAttr(*args, **kwargs)
+
+_grid.GridCellAttr_swigregister(GridCellAttr)
+
+class GridCellAttrProvider(object):
+ """Proxy of C++ GridCellAttrProvider class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> GridCellAttrProvider"""
+ _grid.GridCellAttrProvider_swiginit(self,_grid.new_GridCellAttrProvider(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def _setOORInfo(*args, **kwargs):
+ """_setOORInfo(self, PyObject _self)"""
+ return _grid.GridCellAttrProvider__setOORInfo(*args, **kwargs)
+
+ def GetAttr(*args, **kwargs):
+ """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
+ return _grid.GridCellAttrProvider_GetAttr(*args, **kwargs)
+
+ def SetAttr(*args, **kwargs):
+ """SetAttr(self, GridCellAttr attr, int row, int col)"""
+ return _grid.GridCellAttrProvider_SetAttr(*args, **kwargs)
+
+ def SetRowAttr(*args, **kwargs):
+ """SetRowAttr(self, GridCellAttr attr, int row)"""
+ return _grid.GridCellAttrProvider_SetRowAttr(*args, **kwargs)
+
+ def SetColAttr(*args, **kwargs):
+ """SetColAttr(self, GridCellAttr attr, int col)"""
+ return _grid.GridCellAttrProvider_SetColAttr(*args, **kwargs)
+
+ def UpdateAttrRows(*args, **kwargs):
+ """UpdateAttrRows(self, size_t pos, int numRows)"""
+ return _grid.GridCellAttrProvider_UpdateAttrRows(*args, **kwargs)
+
+ def UpdateAttrCols(*args, **kwargs):
+ """UpdateAttrCols(self, size_t pos, int numCols)"""
+ return _grid.GridCellAttrProvider_UpdateAttrCols(*args, **kwargs)
+
+_grid.GridCellAttrProvider_swigregister(GridCellAttrProvider)
+
+class PyGridCellAttrProvider(GridCellAttrProvider):
+ """Proxy of C++ PyGridCellAttrProvider class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> PyGridCellAttrProvider"""
+ _grid.PyGridCellAttrProvider_swiginit(self,_grid.new_PyGridCellAttrProvider(*args, **kwargs))
+ self._setCallbackInfo(self, PyGridCellAttrProvider)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(self, PyObject self, PyObject _class)"""
+ return _grid.PyGridCellAttrProvider__setCallbackInfo(*args, **kwargs)
+
+ def GetAttr(*args, **kwargs):
+ """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
+ return _grid.PyGridCellAttrProvider_GetAttr(*args, **kwargs)
+
+ def SetAttr(*args, **kwargs):
+ """SetAttr(self, GridCellAttr attr, int row, int col)"""
+ return _grid.PyGridCellAttrProvider_SetAttr(*args, **kwargs)
+
+ def SetRowAttr(*args, **kwargs):
+ """SetRowAttr(self, GridCellAttr attr, int row)"""
+ return _grid.PyGridCellAttrProvider_SetRowAttr(*args, **kwargs)
+
+ def SetColAttr(*args, **kwargs):
+ """SetColAttr(self, GridCellAttr attr, int col)"""
+ return _grid.PyGridCellAttrProvider_SetColAttr(*args, **kwargs)
+
+ def base_GetAttr(*args, **kw):
+ return PyGridCellAttrProvider.GetAttr(*args, **kw)
+ base_GetAttr = wx._deprecated(base_GetAttr,
+ "Please use PyGridCellAttrProvider.GetAttr instead.")
+
+ def base_SetAttr(*args, **kw):
+ return PyGridCellAttrProvider.SetAttr(*args, **kw)
+ base_SetAttr = wx._deprecated(base_SetAttr,
+ "Please use PyGridCellAttrProvider.SetAttr instead.")
+
+ def base_SetRowAttr(*args, **kw):
+ return PyGridCellAttrProvider.SetRowAttr(*args, **kw)
+ base_SetRowAttr = wx._deprecated(base_SetRowAttr,
+ "Please use PyGridCellAttrProvider.SetRowAttr instead.")
+
+ def base_SetColAttr(*args, **kw):
+ return PyGridCellAttrProvider.SetColAttr(*args, **kw)
+ base_SetColAttr = wx._deprecated(base_SetColAttr,
+ "Please use PyGridCellAttrProvider.SetColAttr instead.")
+
+_grid.PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider)
+
+class GridTableBase(_core.Object):
+ """Proxy of C++ GridTableBase class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ def __init__(self): raise AttributeError, "No constructor defined"
+ __repr__ = _swig_repr
+ __swig_destroy__ = _grid.delete_GridTableBase
+ __del__ = lambda self : None;
+ def _setOORInfo(*args, **kwargs):
+ """_setOORInfo(self, PyObject _self)"""
+ return _grid.GridTableBase__setOORInfo(*args, **kwargs)
+
+ def SetAttrProvider(*args, **kwargs):
+ """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
+ return _grid.GridTableBase_SetAttrProvider(*args, **kwargs)
+
+ def GetAttrProvider(*args, **kwargs):
+ """GetAttrProvider(self) -> GridCellAttrProvider"""
+ return _grid.GridTableBase_GetAttrProvider(*args, **kwargs)
+
+ def SetView(*args, **kwargs):
+ """SetView(self, Grid grid)"""
+ return _grid.GridTableBase_SetView(*args, **kwargs)
+
+ def GetView(*args, **kwargs):
+ """GetView(self) -> Grid"""
+ return _grid.GridTableBase_GetView(*args, **kwargs)
+
+ def GetNumberRows(*args, **kwargs):
+ """GetNumberRows(self) -> int"""
+ return _grid.GridTableBase_GetNumberRows(*args, **kwargs)
+
+ def GetNumberCols(*args, **kwargs):
+ """GetNumberCols(self) -> int"""
+ return _grid.GridTableBase_GetNumberCols(*args, **kwargs)
+
+ def IsEmptyCell(*args, **kwargs):
+ """IsEmptyCell(self, int row, int col) -> bool"""
+ return _grid.GridTableBase_IsEmptyCell(*args, **kwargs)
+
+ def GetValue(*args, **kwargs):
+ """GetValue(self, int row, int col) -> String"""
+ return _grid.GridTableBase_GetValue(*args, **kwargs)
+
+ def SetValue(*args, **kwargs):
+ """SetValue(self, int row, int col, String value)"""
+ return _grid.GridTableBase_SetValue(*args, **kwargs)
+
+ def GetTypeName(*args, **kwargs):
+ """GetTypeName(self, int row, int col) -> String"""
+ return _grid.GridTableBase_GetTypeName(*args, **kwargs)
+
+ def CanGetValueAs(*args, **kwargs):
+ """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
+ return _grid.GridTableBase_CanGetValueAs(*args, **kwargs)
+
+ def CanSetValueAs(*args, **kwargs):
+ """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
+ return _grid.GridTableBase_CanSetValueAs(*args, **kwargs)
+
+ def GetValueAsLong(*args, **kwargs):
+ """GetValueAsLong(self, int row, int col) -> long"""
+ return _grid.GridTableBase_GetValueAsLong(*args, **kwargs)
+
+ def GetValueAsDouble(*args, **kwargs):
+ """GetValueAsDouble(self, int row, int col) -> double"""
+ return _grid.GridTableBase_GetValueAsDouble(*args, **kwargs)
+
+ def GetValueAsBool(*args, **kwargs):
+ """GetValueAsBool(self, int row, int col) -> bool"""
+ return _grid.GridTableBase_GetValueAsBool(*args, **kwargs)
+
+ def SetValueAsLong(*args, **kwargs):
+ """SetValueAsLong(self, int row, int col, long value)"""
+ return _grid.GridTableBase_SetValueAsLong(*args, **kwargs)
+
+ def SetValueAsDouble(*args, **kwargs):
+ """SetValueAsDouble(self, int row, int col, double value)"""
+ return _grid.GridTableBase_SetValueAsDouble(*args, **kwargs)
+
+ def SetValueAsBool(*args, **kwargs):
+ """SetValueAsBool(self, int row, int col, bool value)"""
+ return _grid.GridTableBase_SetValueAsBool(*args, **kwargs)
+
+ def Clear(*args, **kwargs):
+ """Clear(self)"""
+ return _grid.GridTableBase_Clear(*args, **kwargs)
+
+ def InsertRows(*args, **kwargs):
+ """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
+ return _grid.GridTableBase_InsertRows(*args, **kwargs)
+
+ def AppendRows(*args, **kwargs):
+ """AppendRows(self, size_t numRows=1) -> bool"""
+ return _grid.GridTableBase_AppendRows(*args, **kwargs)
+
+ def DeleteRows(*args, **kwargs):
+ """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
+ return _grid.GridTableBase_DeleteRows(*args, **kwargs)
+
+ def InsertCols(*args, **kwargs):
+ """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
+ return _grid.GridTableBase_InsertCols(*args, **kwargs)
+
+ def AppendCols(*args, **kwargs):
+ """AppendCols(self, size_t numCols=1) -> bool"""
+ return _grid.GridTableBase_AppendCols(*args, **kwargs)
+
+ def DeleteCols(*args, **kwargs):
+ """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
+ return _grid.GridTableBase_DeleteCols(*args, **kwargs)
+
+ def GetRowLabelValue(*args, **kwargs):
+ """GetRowLabelValue(self, int row) -> String"""
+ return _grid.GridTableBase_GetRowLabelValue(*args, **kwargs)
+
+ def GetColLabelValue(*args, **kwargs):
+ """GetColLabelValue(self, int col) -> String"""
+ return _grid.GridTableBase_GetColLabelValue(*args, **kwargs)
+
+ def SetRowLabelValue(*args, **kwargs):
+ """SetRowLabelValue(self, int row, String value)"""
+ return _grid.GridTableBase_SetRowLabelValue(*args, **kwargs)
+
+ def SetColLabelValue(*args, **kwargs):
+ """SetColLabelValue(self, int col, String value)"""
+ return _grid.GridTableBase_SetColLabelValue(*args, **kwargs)
+
+ def CanHaveAttributes(*args, **kwargs):
+ """CanHaveAttributes(self) -> bool"""
+ return _grid.GridTableBase_CanHaveAttributes(*args, **kwargs)
+
+ def GetAttr(*args, **kwargs):
+ """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
+ return _grid.GridTableBase_GetAttr(*args, **kwargs)
+
+ def SetAttr(*args, **kwargs):
+ """SetAttr(self, GridCellAttr attr, int row, int col)"""
+ return _grid.GridTableBase_SetAttr(*args, **kwargs)
+
+ def SetRowAttr(*args, **kwargs):
+ """SetRowAttr(self, GridCellAttr attr, int row)"""
+ return _grid.GridTableBase_SetRowAttr(*args, **kwargs)
+
+ def SetColAttr(*args, **kwargs):
+ """SetColAttr(self, GridCellAttr attr, int col)"""
+ return _grid.GridTableBase_SetColAttr(*args, **kwargs)
+
+_grid.GridTableBase_swigregister(GridTableBase)
+
+class PyGridTableBase(GridTableBase):
+ """Proxy of C++ PyGridTableBase class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> PyGridTableBase"""
+ _grid.PyGridTableBase_swiginit(self,_grid.new_PyGridTableBase(*args, **kwargs))
+ self._setCallbackInfo(self, PyGridTableBase);self._setOORInfo(self)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(self, PyObject self, PyObject _class)"""
+ return _grid.PyGridTableBase__setCallbackInfo(*args, **kwargs)
+
+ def Destroy(*args, **kwargs):
+ """
+ Destroy(self)
+
+ Deletes the C++ object this Python object is a proxy for.
+ """
+ val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
+ args[0].thisown = 0
+ return val
+
+ def base_GetTypeName(*args, **kw):
+ return PyGridTableBase.GetTypeName(*args, **kw)
+ base_GetTypeName = wx._deprecated(base_GetTypeName,
+ "Please use PyGridTableBase.GetTypeName instead.")
+
+ def base_CanGetValueAs(*args, **kw):
+ return PyGridTableBase.CanGetValueAs(*args, **kw)
+ base_CanGetValueAs = wx._deprecated(base_CanGetValueAs,
+ "Please use PyGridTableBase.CanGetValueAs instead.")
+
+ def base_CanSetValueAs(*args, **kw):
+ return PyGridTableBase.CanSetValueAs(*args, **kw)
+ base_CanSetValueAs = wx._deprecated(base_CanSetValueAs,
+ "Please use PyGridTableBase.CanSetValueAs instead.")
+
+ def base_Clear(*args, **kw):
+ return PyGridTableBase.Clear(*args, **kw)
+ base_Clear = wx._deprecated(base_Clear,
+ "Please use PyGridTableBase.Clear instead.")
+
+ def base_InsertRows(*args, **kw):
+ return PyGridTableBase.InsertRows(*args, **kw)
+ base_InsertRows = wx._deprecated(base_InsertRows,
+ "Please use PyGridTableBase.InsertRows instead.")
+
+ def base_AppendRows(*args, **kw):
+ return PyGridTableBase.AppendRows(*args, **kw)
+ base_AppendRows = wx._deprecated(base_AppendRows,
+ "Please use PyGridTableBase.AppendRows instead.")
+
+ def base_DeleteRows(*args, **kw):
+ return PyGridTableBase.DeleteRows(*args, **kw)
+ base_DeleteRows = wx._deprecated(base_DeleteRows,
+ "Please use PyGridTableBase.DeleteRows instead.")
+
+ def base_InsertCols(*args, **kw):
+ return PyGridTableBase.InsertCols(*args, **kw)
+ base_InsertCols = wx._deprecated(base_InsertCols,
+ "Please use PyGridTableBase.InsertCols instead.")
+
+ def base_AppendCols(*args, **kw):
+ return PyGridTableBase.AppendCols(*args, **kw)
+ base_AppendCols = wx._deprecated(base_AppendCols,
+ "Please use PyGridTableBase.AppendCols instead.")
+
+ def base_DeleteCols(*args, **kw):
+ return PyGridTableBase.DeleteCols(*args, **kw)
+ base_DeleteCols = wx._deprecated(base_DeleteCols,
+ "Please use PyGridTableBase.DeleteCols instead.")
+
+ def base_GetRowLabelValue(*args, **kw):
+ return PyGridTableBase.GetRowLabelValue(*args, **kw)
+ base_GetRowLabelValue = wx._deprecated(base_GetRowLabelValue,
+ "Please use PyGridTableBase.GetRowLabelValue instead.")
+
+ def base_GetColLabelValue(*args, **kw):
+ return PyGridTableBase.GetColLabelValue(*args, **kw)
+ base_GetColLabelValue = wx._deprecated(base_GetColLabelValue,
+ "Please use PyGridTableBase.GetColLabelValue instead.")
+
+ def base_SetRowLabelValue(*args, **kw):
+ return PyGridTableBase.SetRowLabelValue(*args, **kw)
+ base_SetRowLabelValue = wx._deprecated(base_SetRowLabelValue,
+ "Please use PyGridTableBase.SetRowLabelValue instead.")
+
+ def base_SetColLabelValue(*args, **kw):
+ return PyGridTableBase.SetColLabelValue(*args, **kw)
+ base_SetColLabelValue = wx._deprecated(base_SetColLabelValue,
+ "Please use PyGridTableBase.SetColLabelValue instead.")
+
+ def base_CanHaveAttributes(*args, **kw):
+ return PyGridTableBase.CanHaveAttributes(*args, **kw)
+ base_CanHaveAttributes = wx._deprecated(base_CanHaveAttributes,
+ "Please use PyGridTableBase.CanHaveAttributes instead.")
+
+ def base_GetAttr(*args, **kw):
+ return PyGridTableBase.GetAttr(*args, **kw)
+ base_GetAttr = wx._deprecated(base_GetAttr,
+ "Please use PyGridTableBase.GetAttr instead.")
+
+ def base_SetAttr(*args, **kw):
+ return PyGridTableBase.SetAttr(*args, **kw)
+ base_SetAttr = wx._deprecated(base_SetAttr,
+ "Please use PyGridTableBase.SetAttr instead.")
+
+ def base_SetRowAttr(*args, **kw):
+ return PyGridTableBase.SetRowAttr(*args, **kw)
+ base_SetRowAttr = wx._deprecated(base_SetRowAttr,
+ "Please use PyGridTableBase.SetRowAttr instead.")
+
+ def base_SetColAttr(*args, **kw):
+ return PyGridTableBase.SetColAttr(*args, **kw)
+ base_SetColAttr = wx._deprecated(base_SetColAttr,
+ "Please use PyGridTableBase.SetColAttr instead.")
+
+_grid.PyGridTableBase_swigregister(PyGridTableBase)
+
+class GridStringTable(GridTableBase):
+ """Proxy of C++ GridStringTable class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
+ _grid.GridStringTable_swiginit(self,_grid.new_GridStringTable(*args, **kwargs))
+ self._setOORInfo(self)
+
+_grid.GridStringTable_swigregister(GridStringTable)
+
+GRIDTABLE_REQUEST_VIEW_GET_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES
+GRIDTABLE_REQUEST_VIEW_SEND_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
+GRIDTABLE_NOTIFY_ROWS_INSERTED = _grid.GRIDTABLE_NOTIFY_ROWS_INSERTED
+GRIDTABLE_NOTIFY_ROWS_APPENDED = _grid.GRIDTABLE_NOTIFY_ROWS_APPENDED
+GRIDTABLE_NOTIFY_ROWS_DELETED = _grid.GRIDTABLE_NOTIFY_ROWS_DELETED
+GRIDTABLE_NOTIFY_COLS_INSERTED = _grid.GRIDTABLE_NOTIFY_COLS_INSERTED
+GRIDTABLE_NOTIFY_COLS_APPENDED = _grid.GRIDTABLE_NOTIFY_COLS_APPENDED
+GRIDTABLE_NOTIFY_COLS_DELETED = _grid.GRIDTABLE_NOTIFY_COLS_DELETED
+class GridTableMessage(object):
+ """Proxy of C++ GridTableMessage class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
+ _grid.GridTableMessage_swiginit(self,_grid.new_GridTableMessage(*args, **kwargs))
+ __swig_destroy__ = _grid.delete_GridTableMessage
+ __del__ = lambda self : None;
+ def SetTableObject(*args, **kwargs):
+ """SetTableObject(self, GridTableBase table)"""
+ return _grid.GridTableMessage_SetTableObject(*args, **kwargs)
+
+ def GetTableObject(*args, **kwargs):
+ """GetTableObject(self) -> GridTableBase"""
+ return _grid.GridTableMessage_GetTableObject(*args, **kwargs)
+
+ def SetId(*args, **kwargs):
+ """SetId(self, int id)"""
+ return _grid.GridTableMessage_SetId(*args, **kwargs)
+
+ def GetId(*args, **kwargs):
+ """GetId(self) -> int"""
+ return _grid.GridTableMessage_GetId(*args, **kwargs)
+
+ def SetCommandInt(*args, **kwargs):
+ """SetCommandInt(self, int comInt1)"""
+ return _grid.GridTableMessage_SetCommandInt(*args, **kwargs)
+
+ def GetCommandInt(*args, **kwargs):
+ """GetCommandInt(self) -> int"""
+ return _grid.GridTableMessage_GetCommandInt(*args, **kwargs)
+
+ def SetCommandInt2(*args, **kwargs):
+ """SetCommandInt2(self, int comInt2)"""
+ return _grid.GridTableMessage_SetCommandInt2(*args, **kwargs)
+
+ def GetCommandInt2(*args, **kwargs):
+ """GetCommandInt2(self) -> int"""
+ return _grid.GridTableMessage_GetCommandInt2(*args, **kwargs)
+
+_grid.GridTableMessage_swigregister(GridTableMessage)
+
+class GridCellCoords(object):
+ """Proxy of C++ GridCellCoords class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
+ _grid.GridCellCoords_swiginit(self,_grid.new_GridCellCoords(*args, **kwargs))
+ __swig_destroy__ = _grid.delete_GridCellCoords
+ __del__ = lambda self : None;
+ def GetRow(*args, **kwargs):
+ """GetRow(self) -> int"""
+ return _grid.GridCellCoords_GetRow(*args, **kwargs)
+
+ def SetRow(*args, **kwargs):
+ """SetRow(self, int n)"""
+ return _grid.GridCellCoords_SetRow(*args, **kwargs)
+
+ def GetCol(*args, **kwargs):
+ """GetCol(self) -> int"""
+ return _grid.GridCellCoords_GetCol(*args, **kwargs)
+
+ def SetCol(*args, **kwargs):
+ """SetCol(self, int n)"""
+ return _grid.GridCellCoords_SetCol(*args, **kwargs)
+
+ def Set(*args, **kwargs):
+ """Set(self, int row, int col)"""
+ return _grid.GridCellCoords_Set(*args, **kwargs)
+
+ def __eq__(*args, **kwargs):
+ """
+ __eq__(self, PyObject other) -> bool
+
+ Test for equality of GridCellCoords objects.
+ """
+ return _grid.GridCellCoords___eq__(*args, **kwargs)
+
+ def __ne__(*args, **kwargs):
+ """
+ __ne__(self, PyObject other) -> bool
+
+ Test for inequality of GridCellCoords objects.
+ """
+ return _grid.GridCellCoords___ne__(*args, **kwargs)
+
+ def Get(*args, **kwargs):
+ """Get(self) -> PyObject"""
+ return _grid.GridCellCoords_Get(*args, **kwargs)
+
+ asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
+ def __str__(self): return str(self.Get())
+ def __repr__(self): return 'wxGridCellCoords'+str(self.Get())
+ def __len__(self): return len(self.Get())
+ 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
+
+_grid.GridCellCoords_swigregister(GridCellCoords)
+
+class Grid(_windows.ScrolledWindow):
+ """Proxy of C++ Grid class"""
+ thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
+ __repr__ = _swig_repr
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=WANTS_CHARS,
+ String name=PanelNameStr) -> Grid
+ """
+ _grid.Grid_swiginit(self,_grid.new_Grid(*args, **kwargs))
+ self._setOORInfo(self)
+
+ def Create(*args, **kwargs):
+ """
+ Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
+ Size size=DefaultSize, long style=WANTS_CHARS,
+ String name=PanelNameStr) -> bool
+ """
+ return _grid.Grid_Create(*args, **kwargs)
+
+ wxGridSelectCells = _grid.Grid_wxGridSelectCells
+ wxGridSelectRows = _grid.Grid_wxGridSelectRows
+ wxGridSelectColumns = _grid.Grid_wxGridSelectColumns
+ SelectCells = wxGridSelectCells
+ SelectRows = wxGridSelectRows
+ SelectColumns = wxGridSelectColumns
+
+ def CreateGrid(*args, **kwargs):
+ """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
+ return _grid.Grid_CreateGrid(*args, **kwargs)
+
+ def SetSelectionMode(*args, **kwargs):
+ """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
+ return _grid.Grid_SetSelectionMode(*args, **kwargs)
+
+ def GetSelectionMode(*args, **kwargs):
+ """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
+ return _grid.Grid_GetSelectionMode(*args, **kwargs)
+
+ def GetNumberRows(*args, **kwargs):
+ """GetNumberRows(self) -> int"""
+ return _grid.Grid_GetNumberRows(*args, **kwargs)
+
+ def GetNumberCols(*args, **kwargs):
+ """GetNumberCols(self) -> int"""
+ return _grid.Grid_GetNumberCols(*args, **kwargs)
+
+ def ProcessTableMessage(*args, **kwargs):
+ """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
+ return _grid.Grid_ProcessTableMessage(*args, **kwargs)
+
+ def GetTable(*args, **kwargs):
+ """GetTable(self) -> GridTableBase"""
+ return _grid.Grid_GetTable(*args, **kwargs)
+
+ def SetTable(*args, **kwargs):
+ """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
+ return _grid.Grid_SetTable(*args, **kwargs)
+
+ def ClearGrid(*args, **kwargs):
+ """ClearGrid(self)"""
+ return _grid.Grid_ClearGrid(*args, **kwargs)
+
+ def InsertRows(*args, **kwargs):
+ """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_InsertRows(*args, **kwargs)
+
+ def AppendRows(*args, **kwargs):
+ """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_AppendRows(*args, **kwargs)
+
+ def DeleteRows(*args, **kwargs):
+ """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_DeleteRows(*args, **kwargs)
+
+ def InsertCols(*args, **kwargs):
+ """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_InsertCols(*args, **kwargs)
+
+ def AppendCols(*args, **kwargs):
+ """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_AppendCols(*args, **kwargs)
+
+ def DeleteCols(*args, **kwargs):
+ """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
+ return _grid.Grid_DeleteCols(*args, **kwargs)
+
+ def DrawCellHighlight(*args, **kwargs):
+ """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
+ return _grid.Grid_DrawCellHighlight(*args, **kwargs)
+
+ def DrawTextRectangle(*args, **kwargs):
+ """
+ DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
+ int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
+ """
+ return _grid.Grid_DrawTextRectangle(*args, **kwargs)
+
+ def GetTextBoxSize(*args, **kwargs):
+ """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
+ return _grid.Grid_GetTextBoxSize(*args, **kwargs)
+
+ def BeginBatch(*args, **kwargs):
+ """BeginBatch(self)"""
+ return _grid.Grid_BeginBatch(*args, **kwargs)
+
+ def EndBatch(*args, **kwargs):
+ """EndBatch(self)"""
+ return _grid.Grid_EndBatch(*args, **kwargs)
+
+ def GetBatchCount(*args, **kwargs):
+ """GetBatchCount(self) -> int"""
+ return _grid.Grid_GetBatchCount(*args, **kwargs)
+
+ def ForceRefresh(*args, **kwargs):
+ """ForceRefresh(self)"""
+ return _grid.Grid_ForceRefresh(*args, **kwargs)
+
+ def IsEditable(*args, **kwargs):
+ """IsEditable(self) -> bool"""
+ return _grid.Grid_IsEditable(*args, **kwargs)
+
+ def EnableEditing(*args, **kwargs):
+ """EnableEditing(self, bool edit)"""
+ return _grid.Grid_EnableEditing(*args, **kwargs)