]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/grid.py
Factory some of wxFilterClassFactory into a base class.
[wxWidgets.git] / wxPython / src / msw / grid.py
CommitLineData
554f62e9 1# This file was created automatically by SWIG 1.3.29.
d14a1e28
RD
2# Don't modify this file, modify the SWIG interface instead.
3
caef1a4d
RD
4"""
5Classes for implementing a spreadsheet-like control.
6"""
7
d14a1e28 8import _grid
554f62e9
RD
9import new
10new_instancemethod = new.instancemethod
093d3ff1 11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
554f62e9 12 if (name == "thisown"): return self.this.own(value)
093d3ff1 13 if (name == "this"):
554f62e9
RD
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
093d3ff1
RD
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
554f62e9 19 if (not static) or hasattr(self,name):
093d3ff1
RD
20 self.__dict__[name] = value
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
27def _swig_getattr(self,class_type,name):
554f62e9 28 if (name == "thisown"): return self.this.own()
093d3ff1
RD
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
554f62e9
RD
33def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
093d3ff1
RD
38import types
39try:
40 _object = types.ObjectType
41 _newclass = 1
42except AttributeError:
43 class _object : pass
44 _newclass = 0
45del types
46
47
48def _swig_setattr_nondynamic_method(set):
49 def set_attr(self,name,value):
554f62e9
RD
50 if (name == "thisown"): return self.this.own(value)
51 if hasattr(self,name) or (name == "this"):
093d3ff1
RD
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
d55e5bfc
RD
58import _windows
59import _core
60wx = _core
c24da6d6 61__docfilter__ = wx.__DocFilter(globals())
d14a1e28
RD
62GRID_VALUE_STRING = _grid.GRID_VALUE_STRING
63GRID_VALUE_BOOL = _grid.GRID_VALUE_BOOL
64GRID_VALUE_NUMBER = _grid.GRID_VALUE_NUMBER
65GRID_VALUE_FLOAT = _grid.GRID_VALUE_FLOAT
66GRID_VALUE_CHOICE = _grid.GRID_VALUE_CHOICE
67GRID_VALUE_TEXT = _grid.GRID_VALUE_TEXT
68GRID_VALUE_LONG = _grid.GRID_VALUE_LONG
69GRID_VALUE_CHOICEINT = _grid.GRID_VALUE_CHOICEINT
70GRID_VALUE_DATETIME = _grid.GRID_VALUE_DATETIME
92379a03
RD
71GRID_DEFAULT_NUMBER_ROWS = _grid.GRID_DEFAULT_NUMBER_ROWS
72GRID_DEFAULT_NUMBER_COLS = _grid.GRID_DEFAULT_NUMBER_COLS
73GRID_DEFAULT_ROW_HEIGHT = _grid.GRID_DEFAULT_ROW_HEIGHT
74GRID_DEFAULT_COL_WIDTH = _grid.GRID_DEFAULT_COL_WIDTH
75GRID_DEFAULT_COL_LABEL_HEIGHT = _grid.GRID_DEFAULT_COL_LABEL_HEIGHT
76GRID_DEFAULT_ROW_LABEL_WIDTH = _grid.GRID_DEFAULT_ROW_LABEL_WIDTH
77GRID_LABEL_EDGE_ZONE = _grid.GRID_LABEL_EDGE_ZONE
78GRID_MIN_ROW_HEIGHT = _grid.GRID_MIN_ROW_HEIGHT
79GRID_MIN_COL_WIDTH = _grid.GRID_MIN_COL_WIDTH
80GRID_DEFAULT_SCROLLBAR_WIDTH = _grid.GRID_DEFAULT_SCROLLBAR_WIDTH
f52cbe90
RD
81class GridCellWorker(object):
82 """Proxy of C++ GridCellWorker class"""
554f62e9
RD
83 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
84 def __init__(self): raise AttributeError, "No constructor defined"
85 __repr__ = _swig_repr
423f194a 86 def _setOORInfo(*args, **kwargs):
a95a7133 87 """_setOORInfo(self, PyObject _self)"""
f52cbe90 88 return _grid.GridCellWorker__setOORInfo(*args, **kwargs)
423f194a 89
f52cbe90
RD
90 __swig_destroy__ = _grid.delete_GridCellWorker
91 __del__ = lambda self : None;
423f194a 92 def SetParameters(*args, **kwargs):
a95a7133 93 """SetParameters(self, String params)"""
f52cbe90 94 return _grid.GridCellWorker_SetParameters(*args, **kwargs)
423f194a
RD
95
96 def IncRef(*args, **kwargs):
a95a7133 97 """IncRef(self)"""
f52cbe90 98 return _grid.GridCellWorker_IncRef(*args, **kwargs)
423f194a
RD
99
100 def DecRef(*args, **kwargs):
a95a7133 101 """DecRef(self)"""
f52cbe90 102 return _grid.GridCellWorker_DecRef(*args, **kwargs)
423f194a 103
2131d850 104_grid.GridCellWorker_swigregister(GridCellWorker)
d14a1e28
RD
105cvar = _grid.cvar
106GridNoCellCoords = cvar.GridNoCellCoords
107GridNoCellRect = cvar.GridNoCellRect
108
f52cbe90
RD
109class GridCellRenderer(GridCellWorker):
110 """Proxy of C++ GridCellRenderer class"""
111 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
112 def __init__(self): raise AttributeError, "No constructor defined"
113 __repr__ = _swig_repr
a5f9094e
RD
114 def Draw(*args, **kwargs):
115 """
116 Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
117 int col, bool isSelected)
118 """
119 return _grid.GridCellRenderer_Draw(*args, **kwargs)
120
121 def GetBestSize(*args, **kwargs):
122 """GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
123 return _grid.GridCellRenderer_GetBestSize(*args, **kwargs)
124
125 def Clone(*args, **kwargs):
126 """Clone(self) -> GridCellRenderer"""
127 return _grid.GridCellRenderer_Clone(*args, **kwargs)
128
2131d850 129_grid.GridCellRenderer_swigregister(GridCellRenderer)
f52cbe90 130
d14a1e28 131class PyGridCellRenderer(GridCellRenderer):
093d3ff1 132 """Proxy of C++ PyGridCellRenderer class"""
554f62e9
RD
133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
134 __repr__ = _swig_repr
135 def __init__(self, *args, **kwargs):
a95a7133 136 """__init__(self) -> PyGridCellRenderer"""
554f62e9 137 _grid.PyGridCellRenderer_swiginit(self,_grid.new_PyGridCellRenderer(*args, **kwargs))
d14a1e28 138 self._setCallbackInfo(self, PyGridCellRenderer);self._setOORInfo(self)
423f194a
RD
139
140 def _setCallbackInfo(*args, **kwargs):
a95a7133 141 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
142 return _grid.PyGridCellRenderer__setCallbackInfo(*args, **kwargs)
143
b06b3e70
RD
144 def SetParameters(*args, **kwargs):
145 """SetParameters(self, String params)"""
146 return _grid.PyGridCellRenderer_SetParameters(*args, **kwargs)
147
148 def base_SetParameters(*args, **kw):
149 return PyGridCellRenderer.SetParameters(*args, **kw)
150 base_SetParameters = wx._deprecated(base_SetParameters,
151 "Please use PyGridCellRenderer.SetParameters instead.")
423f194a 152
2131d850 153_grid.PyGridCellRenderer_swigregister(PyGridCellRenderer)
d14a1e28
RD
154
155class GridCellStringRenderer(GridCellRenderer):
093d3ff1 156 """Proxy of C++ GridCellStringRenderer class"""
554f62e9
RD
157 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
158 __repr__ = _swig_repr
159 def __init__(self, *args, **kwargs):
a95a7133 160 """__init__(self) -> GridCellStringRenderer"""
554f62e9 161 _grid.GridCellStringRenderer_swiginit(self,_grid.new_GridCellStringRenderer(*args, **kwargs))
33ff77f6 162 self._setOORInfo(self)
423f194a 163
2131d850 164_grid.GridCellStringRenderer_swigregister(GridCellStringRenderer)
d14a1e28
RD
165
166class GridCellNumberRenderer(GridCellStringRenderer):
093d3ff1 167 """Proxy of C++ GridCellNumberRenderer class"""
554f62e9
RD
168 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
169 __repr__ = _swig_repr
170 def __init__(self, *args, **kwargs):
a95a7133 171 """__init__(self) -> GridCellNumberRenderer"""
554f62e9 172 _grid.GridCellNumberRenderer_swiginit(self,_grid.new_GridCellNumberRenderer(*args, **kwargs))
33ff77f6 173 self._setOORInfo(self)
423f194a 174
2131d850 175_grid.GridCellNumberRenderer_swigregister(GridCellNumberRenderer)
d14a1e28
RD
176
177class GridCellFloatRenderer(GridCellStringRenderer):
093d3ff1 178 """Proxy of C++ GridCellFloatRenderer class"""
554f62e9
RD
179 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
180 __repr__ = _swig_repr
181 def __init__(self, *args, **kwargs):
a95a7133 182 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
554f62e9 183 _grid.GridCellFloatRenderer_swiginit(self,_grid.new_GridCellFloatRenderer(*args, **kwargs))
33ff77f6 184 self._setOORInfo(self)
423f194a
RD
185
186 def GetWidth(*args, **kwargs):
a95a7133 187 """GetWidth(self) -> int"""
423f194a
RD
188 return _grid.GridCellFloatRenderer_GetWidth(*args, **kwargs)
189
190 def SetWidth(*args, **kwargs):
a95a7133 191 """SetWidth(self, int width)"""
423f194a
RD
192 return _grid.GridCellFloatRenderer_SetWidth(*args, **kwargs)
193
194 def GetPrecision(*args, **kwargs):
a95a7133 195 """GetPrecision(self) -> int"""
423f194a
RD
196 return _grid.GridCellFloatRenderer_GetPrecision(*args, **kwargs)
197
198 def SetPrecision(*args, **kwargs):
a95a7133 199 """SetPrecision(self, int precision)"""
423f194a
RD
200 return _grid.GridCellFloatRenderer_SetPrecision(*args, **kwargs)
201
e70b4d2d
RD
202 Precision = property(GetPrecision,SetPrecision,doc="See `GetPrecision` and `SetPrecision`")
203 Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
2131d850 204_grid.GridCellFloatRenderer_swigregister(GridCellFloatRenderer)
d14a1e28
RD
205
206class GridCellBoolRenderer(GridCellRenderer):
093d3ff1 207 """Proxy of C++ GridCellBoolRenderer class"""
554f62e9
RD
208 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
209 __repr__ = _swig_repr
210 def __init__(self, *args, **kwargs):
a95a7133 211 """__init__(self) -> GridCellBoolRenderer"""
554f62e9 212 _grid.GridCellBoolRenderer_swiginit(self,_grid.new_GridCellBoolRenderer(*args, **kwargs))
33ff77f6 213 self._setOORInfo(self)
423f194a 214
2131d850 215_grid.GridCellBoolRenderer_swigregister(GridCellBoolRenderer)
d14a1e28
RD
216
217class GridCellDateTimeRenderer(GridCellStringRenderer):
093d3ff1 218 """Proxy of C++ GridCellDateTimeRenderer class"""
554f62e9
RD
219 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
220 __repr__ = _swig_repr
221 def __init__(self, *args, **kwargs):
fef4c27a 222 """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
554f62e9 223 _grid.GridCellDateTimeRenderer_swiginit(self,_grid.new_GridCellDateTimeRenderer(*args, **kwargs))
33ff77f6 224 self._setOORInfo(self)
423f194a 225
2131d850 226_grid.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer)
d14a1e28
RD
227
228class GridCellEnumRenderer(GridCellStringRenderer):
093d3ff1 229 """Proxy of C++ GridCellEnumRenderer class"""
554f62e9
RD
230 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
231 __repr__ = _swig_repr
232 def __init__(self, *args, **kwargs):
a95a7133 233 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
554f62e9 234 _grid.GridCellEnumRenderer_swiginit(self,_grid.new_GridCellEnumRenderer(*args, **kwargs))
33ff77f6 235 self._setOORInfo(self)
423f194a 236
2131d850 237_grid.GridCellEnumRenderer_swigregister(GridCellEnumRenderer)
d14a1e28
RD
238
239class GridCellAutoWrapStringRenderer(GridCellStringRenderer):
093d3ff1 240 """Proxy of C++ GridCellAutoWrapStringRenderer class"""
554f62e9
RD
241 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
242 __repr__ = _swig_repr
243 def __init__(self, *args, **kwargs):
a95a7133 244 """__init__(self) -> GridCellAutoWrapStringRenderer"""
554f62e9 245 _grid.GridCellAutoWrapStringRenderer_swiginit(self,_grid.new_GridCellAutoWrapStringRenderer(*args, **kwargs))
33ff77f6 246 self._setOORInfo(self)
423f194a 247
2131d850 248_grid.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer)
d14a1e28 249
f52cbe90 250class GridCellEditor(GridCellWorker):
093d3ff1 251 """Proxy of C++ GridCellEditor class"""
554f62e9
RD
252 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
253 def __init__(self): raise AttributeError, "No constructor defined"
254 __repr__ = _swig_repr
423f194a 255 def IsCreated(*args, **kwargs):
a95a7133 256 """IsCreated(self) -> bool"""
423f194a
RD
257 return _grid.GridCellEditor_IsCreated(*args, **kwargs)
258
259 def GetControl(*args, **kwargs):
a95a7133 260 """GetControl(self) -> Control"""
423f194a
RD
261 return _grid.GridCellEditor_GetControl(*args, **kwargs)
262
263 def SetControl(*args, **kwargs):
a95a7133 264 """SetControl(self, Control control)"""
423f194a
RD
265 return _grid.GridCellEditor_SetControl(*args, **kwargs)
266
267 def GetCellAttr(*args, **kwargs):
a95a7133 268 """GetCellAttr(self) -> GridCellAttr"""
423f194a
RD
269 return _grid.GridCellEditor_GetCellAttr(*args, **kwargs)
270
271 def SetCellAttr(*args, **kwargs):
a95a7133 272 """SetCellAttr(self, GridCellAttr attr)"""
423f194a
RD
273 return _grid.GridCellEditor_SetCellAttr(*args, **kwargs)
274
423f194a 275 def Create(*args, **kwargs):
a95a7133 276 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
423f194a
RD
277 return _grid.GridCellEditor_Create(*args, **kwargs)
278
279 def BeginEdit(*args, **kwargs):
a95a7133 280 """BeginEdit(self, int row, int col, Grid grid)"""
423f194a
RD
281 return _grid.GridCellEditor_BeginEdit(*args, **kwargs)
282
283 def EndEdit(*args, **kwargs):
a95a7133 284 """EndEdit(self, int row, int col, Grid grid) -> bool"""
423f194a
RD
285 return _grid.GridCellEditor_EndEdit(*args, **kwargs)
286
287 def Reset(*args, **kwargs):
a95a7133 288 """Reset(self)"""
423f194a
RD
289 return _grid.GridCellEditor_Reset(*args, **kwargs)
290
291 def Clone(*args, **kwargs):
a95a7133 292 """Clone(self) -> GridCellEditor"""
423f194a
RD
293 return _grid.GridCellEditor_Clone(*args, **kwargs)
294
295 def SetSize(*args, **kwargs):
a95a7133 296 """SetSize(self, Rect rect)"""
423f194a
RD
297 return _grid.GridCellEditor_SetSize(*args, **kwargs)
298
299 def Show(*args, **kwargs):
a95a7133 300 """Show(self, bool show, GridCellAttr attr=None)"""
423f194a
RD
301 return _grid.GridCellEditor_Show(*args, **kwargs)
302
303 def PaintBackground(*args, **kwargs):
a95a7133 304 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
423f194a
RD
305 return _grid.GridCellEditor_PaintBackground(*args, **kwargs)
306
307 def IsAcceptedKey(*args, **kwargs):
a95a7133 308 """IsAcceptedKey(self, KeyEvent event) -> bool"""
423f194a
RD
309 return _grid.GridCellEditor_IsAcceptedKey(*args, **kwargs)
310
311 def StartingKey(*args, **kwargs):
a95a7133 312 """StartingKey(self, KeyEvent event)"""
423f194a
RD
313 return _grid.GridCellEditor_StartingKey(*args, **kwargs)
314
315 def StartingClick(*args, **kwargs):
a95a7133 316 """StartingClick(self)"""
423f194a
RD
317 return _grid.GridCellEditor_StartingClick(*args, **kwargs)
318
319 def HandleReturn(*args, **kwargs):
a95a7133 320 """HandleReturn(self, KeyEvent event)"""
423f194a
RD
321 return _grid.GridCellEditor_HandleReturn(*args, **kwargs)
322
323 def Destroy(*args, **kwargs):
a95a7133 324 """Destroy(self)"""
b39fe951
RD
325 args[0].this.own(False)
326 return _grid.GridCellEditor_Destroy(*args, **kwargs)
423f194a 327
e70b4d2d
RD
328 CellAttr = property(GetCellAttr,SetCellAttr,doc="See `GetCellAttr` and `SetCellAttr`")
329 Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`")
2131d850 330_grid.GridCellEditor_swigregister(GridCellEditor)
f6bcfd97 331
d14a1e28 332class PyGridCellEditor(GridCellEditor):
093d3ff1 333 """Proxy of C++ PyGridCellEditor class"""
554f62e9
RD
334 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
335 __repr__ = _swig_repr
336 def __init__(self, *args, **kwargs):
a95a7133 337 """__init__(self) -> PyGridCellEditor"""
554f62e9 338 _grid.PyGridCellEditor_swiginit(self,_grid.new_PyGridCellEditor(*args, **kwargs))
d14a1e28 339 self._setCallbackInfo(self, PyGridCellEditor);self._setOORInfo(self)
423f194a
RD
340
341 def _setCallbackInfo(*args, **kwargs):
a95a7133 342 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
343 return _grid.PyGridCellEditor__setCallbackInfo(*args, **kwargs)
344
b06b3e70
RD
345 def SetParameters(*args, **kwargs):
346 """SetParameters(self, String params)"""
347 return _grid.PyGridCellEditor_SetParameters(*args, **kwargs)
348
349 def base_SetSize(*args, **kw):
350 return PyGridCellEditor.SetSize(*args, **kw)
351 base_SetSize = wx._deprecated(base_SetSize,
352 "Please use PyGridCellEditor.SetSize instead.")
353
354 def base_Show(*args, **kw):
355 return PyGridCellEditor.Show(*args, **kw)
356 base_Show = wx._deprecated(base_Show,
357 "Please use PyGridCellEditor.Show instead.")
358
359 def base_PaintBackground(*args, **kw):
360 return PyGridCellEditor.PaintBackground(*args, **kw)
361 base_PaintBackground = wx._deprecated(base_PaintBackground,
362 "Please use PyGridCellEditor.PaintBackground instead.")
363
364 def base_IsAcceptedKey(*args, **kw):
365 return PyGridCellEditor.IsAcceptedKey(*args, **kw)
366 base_IsAcceptedKey = wx._deprecated(base_IsAcceptedKey,
367 "Please use PyGridCellEditor.IsAcceptedKey instead.")
368
369 def base_StartingKey(*args, **kw):
370 return PyGridCellEditor.StartingKey(*args, **kw)
371 base_StartingKey = wx._deprecated(base_StartingKey,
372 "Please use PyGridCellEditor.StartingKey instead.")
373
374 def base_StartingClick(*args, **kw):
375 return PyGridCellEditor.StartingClick(*args, **kw)
376 base_StartingClick = wx._deprecated(base_StartingClick,
377 "Please use PyGridCellEditor.StartingClick instead.")
378
379 def base_HandleReturn(*args, **kw):
380 return PyGridCellEditor.HandleReturn(*args, **kw)
381 base_HandleReturn = wx._deprecated(base_HandleReturn,
382 "Please use PyGridCellEditor.HandleReturn instead.")
383
384 def base_Destroy(*args, **kw):
385 return PyGridCellEditor.Destroy(*args, **kw)
386 base_Destroy = wx._deprecated(base_Destroy,
387 "Please use PyGridCellEditor.Destroy instead.")
388
389 def base_SetParameters(*args, **kw):
390 return PyGridCellEditor.SetParameters(*args, **kw)
391 base_SetParameters = wx._deprecated(base_SetParameters,
392 "Please use PyGridCellEditor.SetParameters instead.")
423f194a 393
2131d850 394_grid.PyGridCellEditor_swigregister(PyGridCellEditor)
d14a1e28
RD
395
396class GridCellTextEditor(GridCellEditor):
093d3ff1 397 """Proxy of C++ GridCellTextEditor class"""
554f62e9
RD
398 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
399 __repr__ = _swig_repr
400 def __init__(self, *args, **kwargs):
a95a7133 401 """__init__(self) -> GridCellTextEditor"""
554f62e9 402 _grid.GridCellTextEditor_swiginit(self,_grid.new_GridCellTextEditor(*args, **kwargs))
33ff77f6 403 self._setOORInfo(self)
423f194a
RD
404
405 def GetValue(*args, **kwargs):
a95a7133 406 """GetValue(self) -> String"""
423f194a
RD
407 return _grid.GridCellTextEditor_GetValue(*args, **kwargs)
408
e70b4d2d 409 Value = property(GetValue,doc="See `GetValue`")
2131d850 410_grid.GridCellTextEditor_swigregister(GridCellTextEditor)
d14a1e28
RD
411
412class GridCellNumberEditor(GridCellTextEditor):
093d3ff1 413 """Proxy of C++ GridCellNumberEditor class"""
554f62e9
RD
414 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
415 __repr__ = _swig_repr
416 def __init__(self, *args, **kwargs):
a95a7133 417 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
554f62e9 418 _grid.GridCellNumberEditor_swiginit(self,_grid.new_GridCellNumberEditor(*args, **kwargs))
33ff77f6 419 self._setOORInfo(self)
423f194a 420
2131d850 421_grid.GridCellNumberEditor_swigregister(GridCellNumberEditor)
d14a1e28
RD
422
423class GridCellFloatEditor(GridCellTextEditor):
093d3ff1 424 """Proxy of C++ GridCellFloatEditor class"""
554f62e9
RD
425 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
426 __repr__ = _swig_repr
427 def __init__(self, *args, **kwargs):
a95a7133 428 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
554f62e9 429 _grid.GridCellFloatEditor_swiginit(self,_grid.new_GridCellFloatEditor(*args, **kwargs))
33ff77f6 430 self._setOORInfo(self)
423f194a 431
2131d850 432_grid.GridCellFloatEditor_swigregister(GridCellFloatEditor)
d14a1e28
RD
433
434class GridCellBoolEditor(GridCellEditor):
093d3ff1 435 """Proxy of C++ GridCellBoolEditor class"""
554f62e9
RD
436 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
437 __repr__ = _swig_repr
438 def __init__(self, *args, **kwargs):
a95a7133 439 """__init__(self) -> GridCellBoolEditor"""
554f62e9 440 _grid.GridCellBoolEditor_swiginit(self,_grid.new_GridCellBoolEditor(*args, **kwargs))
33ff77f6 441 self._setOORInfo(self)
423f194a 442
2131d850 443_grid.GridCellBoolEditor_swigregister(GridCellBoolEditor)
d14a1e28
RD
444
445class GridCellChoiceEditor(GridCellEditor):
093d3ff1 446 """Proxy of C++ GridCellChoiceEditor class"""
554f62e9
RD
447 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
448 __repr__ = _swig_repr
449 def __init__(self, *args, **kwargs):
093d3ff1 450 """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
554f62e9 451 _grid.GridCellChoiceEditor_swiginit(self,_grid.new_GridCellChoiceEditor(*args, **kwargs))
33ff77f6 452 self._setOORInfo(self)
423f194a 453
2131d850 454_grid.GridCellChoiceEditor_swigregister(GridCellChoiceEditor)
d14a1e28
RD
455
456class GridCellEnumEditor(GridCellChoiceEditor):
093d3ff1 457 """Proxy of C++ GridCellEnumEditor class"""
554f62e9
RD
458 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
459 __repr__ = _swig_repr
460 def __init__(self, *args, **kwargs):
a95a7133 461 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
554f62e9 462 _grid.GridCellEnumEditor_swiginit(self,_grid.new_GridCellEnumEditor(*args, **kwargs))
33ff77f6 463 self._setOORInfo(self)
423f194a 464
2131d850 465_grid.GridCellEnumEditor_swigregister(GridCellEnumEditor)
d14a1e28
RD
466
467class GridCellAutoWrapStringEditor(GridCellTextEditor):
093d3ff1 468 """Proxy of C++ GridCellAutoWrapStringEditor class"""
554f62e9
RD
469 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
470 __repr__ = _swig_repr
471 def __init__(self, *args, **kwargs):
a95a7133 472 """__init__(self) -> GridCellAutoWrapStringEditor"""
554f62e9 473 _grid.GridCellAutoWrapStringEditor_swiginit(self,_grid.new_GridCellAutoWrapStringEditor(*args, **kwargs))
33ff77f6 474 self._setOORInfo(self)
423f194a 475
2131d850 476_grid.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor)
d14a1e28
RD
477
478class GridCellAttr(object):
093d3ff1 479 """Proxy of C++ GridCellAttr class"""
554f62e9
RD
480 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
481 __repr__ = _swig_repr
d14a1e28
RD
482 Any = _grid.GridCellAttr_Any
483 Default = _grid.GridCellAttr_Default
484 Cell = _grid.GridCellAttr_Cell
485 Row = _grid.GridCellAttr_Row
486 Col = _grid.GridCellAttr_Col
487 Merged = _grid.GridCellAttr_Merged
423f194a 488 def _setOORInfo(*args, **kwargs):
a95a7133 489 """_setOORInfo(self, PyObject _self)"""
423f194a
RD
490 return _grid.GridCellAttr__setOORInfo(*args, **kwargs)
491
554f62e9 492 def __init__(self, *args, **kwargs):
a95a7133 493 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
554f62e9 494 _grid.GridCellAttr_swiginit(self,_grid.new_GridCellAttr(*args, **kwargs))
33ff77f6 495 self._setOORInfo(self)
423f194a 496
f52cbe90
RD
497 __swig_destroy__ = _grid.delete_GridCellAttr
498 __del__ = lambda self : None;
423f194a 499 def Clone(*args, **kwargs):
a95a7133 500 """Clone(self) -> GridCellAttr"""
423f194a
RD
501 return _grid.GridCellAttr_Clone(*args, **kwargs)
502
503 def MergeWith(*args, **kwargs):
a95a7133 504 """MergeWith(self, GridCellAttr mergefrom)"""
423f194a
RD
505 return _grid.GridCellAttr_MergeWith(*args, **kwargs)
506
507 def IncRef(*args, **kwargs):
a95a7133 508 """IncRef(self)"""
423f194a
RD
509 return _grid.GridCellAttr_IncRef(*args, **kwargs)
510
511 def DecRef(*args, **kwargs):
a95a7133 512 """DecRef(self)"""
423f194a
RD
513 return _grid.GridCellAttr_DecRef(*args, **kwargs)
514
515 def SetTextColour(*args, **kwargs):
a95a7133 516 """SetTextColour(self, Colour colText)"""
423f194a
RD
517 return _grid.GridCellAttr_SetTextColour(*args, **kwargs)
518
519 def SetBackgroundColour(*args, **kwargs):
a95a7133 520 """SetBackgroundColour(self, Colour colBack)"""
423f194a
RD
521 return _grid.GridCellAttr_SetBackgroundColour(*args, **kwargs)
522
523 def SetFont(*args, **kwargs):
a95a7133 524 """SetFont(self, Font font)"""
423f194a
RD
525 return _grid.GridCellAttr_SetFont(*args, **kwargs)
526
527 def SetAlignment(*args, **kwargs):
a95a7133 528 """SetAlignment(self, int hAlign, int vAlign)"""
423f194a
RD
529 return _grid.GridCellAttr_SetAlignment(*args, **kwargs)
530
531 def SetSize(*args, **kwargs):
a95a7133 532 """SetSize(self, int num_rows, int num_cols)"""
423f194a
RD
533 return _grid.GridCellAttr_SetSize(*args, **kwargs)
534
535 def SetOverflow(*args, **kwargs):
a95a7133 536 """SetOverflow(self, bool allow=True)"""
423f194a
RD
537 return _grid.GridCellAttr_SetOverflow(*args, **kwargs)
538
539 def SetReadOnly(*args, **kwargs):
a95a7133 540 """SetReadOnly(self, bool isReadOnly=True)"""
423f194a
RD
541 return _grid.GridCellAttr_SetReadOnly(*args, **kwargs)
542
543 def SetRenderer(*args, **kwargs):
a95a7133 544 """SetRenderer(self, GridCellRenderer renderer)"""
423f194a
RD
545 return _grid.GridCellAttr_SetRenderer(*args, **kwargs)
546
547 def SetEditor(*args, **kwargs):
a95a7133 548 """SetEditor(self, GridCellEditor editor)"""
423f194a
RD
549 return _grid.GridCellAttr_SetEditor(*args, **kwargs)
550
551 def SetKind(*args, **kwargs):
a95a7133 552 """SetKind(self, int kind)"""
423f194a
RD
553 return _grid.GridCellAttr_SetKind(*args, **kwargs)
554
555 def HasTextColour(*args, **kwargs):
a95a7133 556 """HasTextColour(self) -> bool"""
423f194a
RD
557 return _grid.GridCellAttr_HasTextColour(*args, **kwargs)
558
559 def HasBackgroundColour(*args, **kwargs):
a95a7133 560 """HasBackgroundColour(self) -> bool"""
423f194a
RD
561 return _grid.GridCellAttr_HasBackgroundColour(*args, **kwargs)
562
563 def HasFont(*args, **kwargs):
a95a7133 564 """HasFont(self) -> bool"""
423f194a
RD
565 return _grid.GridCellAttr_HasFont(*args, **kwargs)
566
567 def HasAlignment(*args, **kwargs):
a95a7133 568 """HasAlignment(self) -> bool"""
423f194a
RD
569 return _grid.GridCellAttr_HasAlignment(*args, **kwargs)
570
571 def HasRenderer(*args, **kwargs):
a95a7133 572 """HasRenderer(self) -> bool"""
423f194a
RD
573 return _grid.GridCellAttr_HasRenderer(*args, **kwargs)
574
575 def HasEditor(*args, **kwargs):
a95a7133 576 """HasEditor(self) -> bool"""
423f194a
RD
577 return _grid.GridCellAttr_HasEditor(*args, **kwargs)
578
579 def HasReadWriteMode(*args, **kwargs):
a95a7133 580 """HasReadWriteMode(self) -> bool"""
423f194a
RD
581 return _grid.GridCellAttr_HasReadWriteMode(*args, **kwargs)
582
583 def HasOverflowMode(*args, **kwargs):
a95a7133 584 """HasOverflowMode(self) -> bool"""
423f194a
RD
585 return _grid.GridCellAttr_HasOverflowMode(*args, **kwargs)
586
587 def GetTextColour(*args, **kwargs):
a95a7133 588 """GetTextColour(self) -> Colour"""
423f194a
RD
589 return _grid.GridCellAttr_GetTextColour(*args, **kwargs)
590
591 def GetBackgroundColour(*args, **kwargs):
a95a7133 592 """GetBackgroundColour(self) -> Colour"""
423f194a
RD
593 return _grid.GridCellAttr_GetBackgroundColour(*args, **kwargs)
594
595 def GetFont(*args, **kwargs):
a95a7133 596 """GetFont(self) -> Font"""
423f194a
RD
597 return _grid.GridCellAttr_GetFont(*args, **kwargs)
598
599 def GetAlignment(*args, **kwargs):
44127b65 600 """GetAlignment() -> (hAlign, vAlign)"""
423f194a
RD
601 return _grid.GridCellAttr_GetAlignment(*args, **kwargs)
602
603 def GetSize(*args, **kwargs):
44127b65 604 """GetSize() -> (num_rows, num_cols)"""
423f194a
RD
605 return _grid.GridCellAttr_GetSize(*args, **kwargs)
606
607 def GetOverflow(*args, **kwargs):
a95a7133 608 """GetOverflow(self) -> bool"""
423f194a
RD
609 return _grid.GridCellAttr_GetOverflow(*args, **kwargs)
610
611 def GetRenderer(*args, **kwargs):
a95a7133 612 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
423f194a
RD
613 return _grid.GridCellAttr_GetRenderer(*args, **kwargs)
614
615 def GetEditor(*args, **kwargs):
a95a7133 616 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
423f194a
RD
617 return _grid.GridCellAttr_GetEditor(*args, **kwargs)
618
619 def IsReadOnly(*args, **kwargs):
a95a7133 620 """IsReadOnly(self) -> bool"""
423f194a
RD
621 return _grid.GridCellAttr_IsReadOnly(*args, **kwargs)
622
a8eff060
RD
623 def GetKind(*args, **kwargs):
624 """GetKind(self) -> int"""
625 return _grid.GridCellAttr_GetKind(*args, **kwargs)
626
423f194a 627 def SetDefAttr(*args, **kwargs):
a95a7133 628 """SetDefAttr(self, GridCellAttr defAttr)"""
423f194a
RD
629 return _grid.GridCellAttr_SetDefAttr(*args, **kwargs)
630
e70b4d2d
RD
631 Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
632 BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
633 Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
634 Kind = property(GetKind,SetKind,doc="See `GetKind` and `SetKind`")
635 Overflow = property(GetOverflow,SetOverflow,doc="See `GetOverflow` and `SetOverflow`")
636 Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`")
637 TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`")
2131d850 638_grid.GridCellAttr_swigregister(GridCellAttr)
d14a1e28
RD
639
640class GridCellAttrProvider(object):
093d3ff1 641 """Proxy of C++ GridCellAttrProvider class"""
554f62e9
RD
642 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
643 __repr__ = _swig_repr
644 def __init__(self, *args, **kwargs):
a95a7133 645 """__init__(self) -> GridCellAttrProvider"""
554f62e9 646 _grid.GridCellAttrProvider_swiginit(self,_grid.new_GridCellAttrProvider(*args, **kwargs))
33ff77f6 647 self._setOORInfo(self)
423f194a
RD
648
649 def _setOORInfo(*args, **kwargs):
a95a7133 650 """_setOORInfo(self, PyObject _self)"""
423f194a
RD
651 return _grid.GridCellAttrProvider__setOORInfo(*args, **kwargs)
652
653 def GetAttr(*args, **kwargs):
a95a7133 654 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
423f194a
RD
655 return _grid.GridCellAttrProvider_GetAttr(*args, **kwargs)
656
657 def SetAttr(*args, **kwargs):
a95a7133 658 """SetAttr(self, GridCellAttr attr, int row, int col)"""
423f194a
RD
659 return _grid.GridCellAttrProvider_SetAttr(*args, **kwargs)
660
661 def SetRowAttr(*args, **kwargs):
a95a7133 662 """SetRowAttr(self, GridCellAttr attr, int row)"""
423f194a
RD
663 return _grid.GridCellAttrProvider_SetRowAttr(*args, **kwargs)
664
665 def SetColAttr(*args, **kwargs):
a95a7133 666 """SetColAttr(self, GridCellAttr attr, int col)"""
423f194a
RD
667 return _grid.GridCellAttrProvider_SetColAttr(*args, **kwargs)
668
669 def UpdateAttrRows(*args, **kwargs):
a95a7133 670 """UpdateAttrRows(self, size_t pos, int numRows)"""
423f194a
RD
671 return _grid.GridCellAttrProvider_UpdateAttrRows(*args, **kwargs)
672
673 def UpdateAttrCols(*args, **kwargs):
a95a7133 674 """UpdateAttrCols(self, size_t pos, int numCols)"""
423f194a
RD
675 return _grid.GridCellAttrProvider_UpdateAttrCols(*args, **kwargs)
676
2131d850 677_grid.GridCellAttrProvider_swigregister(GridCellAttrProvider)
f6bcfd97 678
d14a1e28 679class PyGridCellAttrProvider(GridCellAttrProvider):
093d3ff1 680 """Proxy of C++ PyGridCellAttrProvider class"""
554f62e9
RD
681 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
682 __repr__ = _swig_repr
683 def __init__(self, *args, **kwargs):
a95a7133 684 """__init__(self) -> PyGridCellAttrProvider"""
554f62e9 685 _grid.PyGridCellAttrProvider_swiginit(self,_grid.new_PyGridCellAttrProvider(*args, **kwargs))
d14a1e28 686 self._setCallbackInfo(self, PyGridCellAttrProvider)
423f194a
RD
687
688 def _setCallbackInfo(*args, **kwargs):
a95a7133 689 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
690 return _grid.PyGridCellAttrProvider__setCallbackInfo(*args, **kwargs)
691
b06b3e70
RD
692 def GetAttr(*args, **kwargs):
693 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
694 return _grid.PyGridCellAttrProvider_GetAttr(*args, **kwargs)
695
696 def SetAttr(*args, **kwargs):
697 """SetAttr(self, GridCellAttr attr, int row, int col)"""
698 return _grid.PyGridCellAttrProvider_SetAttr(*args, **kwargs)
699
700 def SetRowAttr(*args, **kwargs):
701 """SetRowAttr(self, GridCellAttr attr, int row)"""
702 return _grid.PyGridCellAttrProvider_SetRowAttr(*args, **kwargs)
423f194a 703
b06b3e70
RD
704 def SetColAttr(*args, **kwargs):
705 """SetColAttr(self, GridCellAttr attr, int col)"""
706 return _grid.PyGridCellAttrProvider_SetColAttr(*args, **kwargs)
423f194a 707
b06b3e70
RD
708 def base_GetAttr(*args, **kw):
709 return PyGridCellAttrProvider.GetAttr(*args, **kw)
710 base_GetAttr = wx._deprecated(base_GetAttr,
711 "Please use PyGridCellAttrProvider.GetAttr instead.")
423f194a 712
b06b3e70
RD
713 def base_SetAttr(*args, **kw):
714 return PyGridCellAttrProvider.SetAttr(*args, **kw)
715 base_SetAttr = wx._deprecated(base_SetAttr,
716 "Please use PyGridCellAttrProvider.SetAttr instead.")
717
718 def base_SetRowAttr(*args, **kw):
719 return PyGridCellAttrProvider.SetRowAttr(*args, **kw)
720 base_SetRowAttr = wx._deprecated(base_SetRowAttr,
721 "Please use PyGridCellAttrProvider.SetRowAttr instead.")
722
723 def base_SetColAttr(*args, **kw):
724 return PyGridCellAttrProvider.SetColAttr(*args, **kw)
725 base_SetColAttr = wx._deprecated(base_SetColAttr,
726 "Please use PyGridCellAttrProvider.SetColAttr instead.")
423f194a 727
2131d850 728_grid.PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider)
d14a1e28 729
d55e5bfc 730class GridTableBase(_core.Object):
093d3ff1 731 """Proxy of C++ GridTableBase class"""
554f62e9
RD
732 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
733 def __init__(self): raise AttributeError, "No constructor defined"
734 __repr__ = _swig_repr
e9d6f3a4
RD
735 __swig_destroy__ = _grid.delete_GridTableBase
736 __del__ = lambda self : None;
423f194a 737 def _setOORInfo(*args, **kwargs):
a95a7133 738 """_setOORInfo(self, PyObject _self)"""
423f194a
RD
739 return _grid.GridTableBase__setOORInfo(*args, **kwargs)
740
741 def SetAttrProvider(*args, **kwargs):
a95a7133 742 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
423f194a
RD
743 return _grid.GridTableBase_SetAttrProvider(*args, **kwargs)
744
745 def GetAttrProvider(*args, **kwargs):
a95a7133 746 """GetAttrProvider(self) -> GridCellAttrProvider"""
423f194a
RD
747 return _grid.GridTableBase_GetAttrProvider(*args, **kwargs)
748
749 def SetView(*args, **kwargs):
a95a7133 750 """SetView(self, Grid grid)"""
423f194a
RD
751 return _grid.GridTableBase_SetView(*args, **kwargs)
752
753 def GetView(*args, **kwargs):
a95a7133 754 """GetView(self) -> Grid"""
423f194a
RD
755 return _grid.GridTableBase_GetView(*args, **kwargs)
756
757 def GetNumberRows(*args, **kwargs):
a95a7133 758 """GetNumberRows(self) -> int"""
423f194a
RD
759 return _grid.GridTableBase_GetNumberRows(*args, **kwargs)
760
761 def GetNumberCols(*args, **kwargs):
a95a7133 762 """GetNumberCols(self) -> int"""
423f194a
RD
763 return _grid.GridTableBase_GetNumberCols(*args, **kwargs)
764
765 def IsEmptyCell(*args, **kwargs):
a95a7133 766 """IsEmptyCell(self, int row, int col) -> bool"""
423f194a
RD
767 return _grid.GridTableBase_IsEmptyCell(*args, **kwargs)
768
769 def GetValue(*args, **kwargs):
a95a7133 770 """GetValue(self, int row, int col) -> String"""
423f194a
RD
771 return _grid.GridTableBase_GetValue(*args, **kwargs)
772
773 def SetValue(*args, **kwargs):
a95a7133 774 """SetValue(self, int row, int col, String value)"""
423f194a
RD
775 return _grid.GridTableBase_SetValue(*args, **kwargs)
776
777 def GetTypeName(*args, **kwargs):
a95a7133 778 """GetTypeName(self, int row, int col) -> String"""
423f194a
RD
779 return _grid.GridTableBase_GetTypeName(*args, **kwargs)
780
781 def CanGetValueAs(*args, **kwargs):
a95a7133 782 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
423f194a
RD
783 return _grid.GridTableBase_CanGetValueAs(*args, **kwargs)
784
785 def CanSetValueAs(*args, **kwargs):
a95a7133 786 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
423f194a
RD
787 return _grid.GridTableBase_CanSetValueAs(*args, **kwargs)
788
789 def GetValueAsLong(*args, **kwargs):
a95a7133 790 """GetValueAsLong(self, int row, int col) -> long"""
423f194a
RD
791 return _grid.GridTableBase_GetValueAsLong(*args, **kwargs)
792
793 def GetValueAsDouble(*args, **kwargs):
a95a7133 794 """GetValueAsDouble(self, int row, int col) -> double"""
423f194a
RD
795 return _grid.GridTableBase_GetValueAsDouble(*args, **kwargs)
796
797 def GetValueAsBool(*args, **kwargs):
a95a7133 798 """GetValueAsBool(self, int row, int col) -> bool"""
423f194a
RD
799 return _grid.GridTableBase_GetValueAsBool(*args, **kwargs)
800
801 def SetValueAsLong(*args, **kwargs):
a95a7133 802 """SetValueAsLong(self, int row, int col, long value)"""
423f194a
RD
803 return _grid.GridTableBase_SetValueAsLong(*args, **kwargs)
804
805 def SetValueAsDouble(*args, **kwargs):
a95a7133 806 """SetValueAsDouble(self, int row, int col, double value)"""
423f194a
RD
807 return _grid.GridTableBase_SetValueAsDouble(*args, **kwargs)
808
809 def SetValueAsBool(*args, **kwargs):
a95a7133 810 """SetValueAsBool(self, int row, int col, bool value)"""
423f194a
RD
811 return _grid.GridTableBase_SetValueAsBool(*args, **kwargs)
812
813 def Clear(*args, **kwargs):
a95a7133 814 """Clear(self)"""
423f194a
RD
815 return _grid.GridTableBase_Clear(*args, **kwargs)
816
817 def InsertRows(*args, **kwargs):
a95a7133 818 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
423f194a
RD
819 return _grid.GridTableBase_InsertRows(*args, **kwargs)
820
821 def AppendRows(*args, **kwargs):
a95a7133 822 """AppendRows(self, size_t numRows=1) -> bool"""
423f194a
RD
823 return _grid.GridTableBase_AppendRows(*args, **kwargs)
824
825 def DeleteRows(*args, **kwargs):
a95a7133 826 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
423f194a
RD
827 return _grid.GridTableBase_DeleteRows(*args, **kwargs)
828
829 def InsertCols(*args, **kwargs):
a95a7133 830 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
423f194a
RD
831 return _grid.GridTableBase_InsertCols(*args, **kwargs)
832
833 def AppendCols(*args, **kwargs):
a95a7133 834 """AppendCols(self, size_t numCols=1) -> bool"""
423f194a
RD
835 return _grid.GridTableBase_AppendCols(*args, **kwargs)
836
837 def DeleteCols(*args, **kwargs):
a95a7133 838 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
423f194a
RD
839 return _grid.GridTableBase_DeleteCols(*args, **kwargs)
840
841 def GetRowLabelValue(*args, **kwargs):
a95a7133 842 """GetRowLabelValue(self, int row) -> String"""
423f194a
RD
843 return _grid.GridTableBase_GetRowLabelValue(*args, **kwargs)
844
845 def GetColLabelValue(*args, **kwargs):
a95a7133 846 """GetColLabelValue(self, int col) -> String"""
423f194a
RD
847 return _grid.GridTableBase_GetColLabelValue(*args, **kwargs)
848
849 def SetRowLabelValue(*args, **kwargs):
a95a7133 850 """SetRowLabelValue(self, int row, String value)"""
423f194a
RD
851 return _grid.GridTableBase_SetRowLabelValue(*args, **kwargs)
852
853 def SetColLabelValue(*args, **kwargs):
a95a7133 854 """SetColLabelValue(self, int col, String value)"""
423f194a
RD
855 return _grid.GridTableBase_SetColLabelValue(*args, **kwargs)
856
857 def CanHaveAttributes(*args, **kwargs):
a95a7133 858 """CanHaveAttributes(self) -> bool"""
423f194a
RD
859 return _grid.GridTableBase_CanHaveAttributes(*args, **kwargs)
860
861 def GetAttr(*args, **kwargs):
a95a7133 862 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
423f194a
RD
863 return _grid.GridTableBase_GetAttr(*args, **kwargs)
864
865 def SetAttr(*args, **kwargs):
a95a7133 866 """SetAttr(self, GridCellAttr attr, int row, int col)"""
423f194a
RD
867 return _grid.GridTableBase_SetAttr(*args, **kwargs)
868
869 def SetRowAttr(*args, **kwargs):
a95a7133 870 """SetRowAttr(self, GridCellAttr attr, int row)"""
423f194a
RD
871 return _grid.GridTableBase_SetRowAttr(*args, **kwargs)
872
873 def SetColAttr(*args, **kwargs):
a95a7133 874 """SetColAttr(self, GridCellAttr attr, int col)"""
423f194a
RD
875 return _grid.GridTableBase_SetColAttr(*args, **kwargs)
876
e70b4d2d
RD
877 AttrProvider = property(GetAttrProvider,SetAttrProvider,doc="See `GetAttrProvider` and `SetAttrProvider`")
878 NumberCols = property(GetNumberCols,doc="See `GetNumberCols`")
879 NumberRows = property(GetNumberRows,doc="See `GetNumberRows`")
880 View = property(GetView,SetView,doc="See `GetView` and `SetView`")
2131d850 881_grid.GridTableBase_swigregister(GridTableBase)
f6bcfd97 882
d14a1e28 883class PyGridTableBase(GridTableBase):
093d3ff1 884 """Proxy of C++ PyGridTableBase class"""
554f62e9
RD
885 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
886 __repr__ = _swig_repr
887 def __init__(self, *args, **kwargs):
a95a7133 888 """__init__(self) -> PyGridTableBase"""
554f62e9 889 _grid.PyGridTableBase_swiginit(self,_grid.new_PyGridTableBase(*args, **kwargs))
d14a1e28 890 self._setCallbackInfo(self, PyGridTableBase);self._setOORInfo(self)
423f194a
RD
891
892 def _setCallbackInfo(*args, **kwargs):
a95a7133 893 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
894 return _grid.PyGridTableBase__setCallbackInfo(*args, **kwargs)
895
896 def Destroy(*args, **kwargs):
41f1cec7 897 """
a95a7133 898 Destroy(self)
423f194a 899
41f1cec7
RD
900 Deletes the C++ object this Python object is a proxy for.
901 """
b39fe951
RD
902 args[0].this.own(False)
903 return _grid.PyGridTableBase_Destroy(*args, **kwargs)
423f194a 904
b06b3e70
RD
905 def base_GetTypeName(*args, **kw):
906 return PyGridTableBase.GetTypeName(*args, **kw)
907 base_GetTypeName = wx._deprecated(base_GetTypeName,
908 "Please use PyGridTableBase.GetTypeName instead.")
909
910 def base_CanGetValueAs(*args, **kw):
911 return PyGridTableBase.CanGetValueAs(*args, **kw)
912 base_CanGetValueAs = wx._deprecated(base_CanGetValueAs,
913 "Please use PyGridTableBase.CanGetValueAs instead.")
914
915 def base_CanSetValueAs(*args, **kw):
916 return PyGridTableBase.CanSetValueAs(*args, **kw)
917 base_CanSetValueAs = wx._deprecated(base_CanSetValueAs,
918 "Please use PyGridTableBase.CanSetValueAs instead.")
919
920 def base_Clear(*args, **kw):
921 return PyGridTableBase.Clear(*args, **kw)
922 base_Clear = wx._deprecated(base_Clear,
923 "Please use PyGridTableBase.Clear instead.")
924
925 def base_InsertRows(*args, **kw):
926 return PyGridTableBase.InsertRows(*args, **kw)
927 base_InsertRows = wx._deprecated(base_InsertRows,
928 "Please use PyGridTableBase.InsertRows instead.")
929
930 def base_AppendRows(*args, **kw):
931 return PyGridTableBase.AppendRows(*args, **kw)
932 base_AppendRows = wx._deprecated(base_AppendRows,
933 "Please use PyGridTableBase.AppendRows instead.")
934
935 def base_DeleteRows(*args, **kw):
936 return PyGridTableBase.DeleteRows(*args, **kw)
937 base_DeleteRows = wx._deprecated(base_DeleteRows,
938 "Please use PyGridTableBase.DeleteRows instead.")
939
940 def base_InsertCols(*args, **kw):
941 return PyGridTableBase.InsertCols(*args, **kw)
942 base_InsertCols = wx._deprecated(base_InsertCols,
943 "Please use PyGridTableBase.InsertCols instead.")
944
945 def base_AppendCols(*args, **kw):
946 return PyGridTableBase.AppendCols(*args, **kw)
947 base_AppendCols = wx._deprecated(base_AppendCols,
948 "Please use PyGridTableBase.AppendCols instead.")
949
950 def base_DeleteCols(*args, **kw):
951 return PyGridTableBase.DeleteCols(*args, **kw)
952 base_DeleteCols = wx._deprecated(base_DeleteCols,
953 "Please use PyGridTableBase.DeleteCols instead.")
954
955 def base_GetRowLabelValue(*args, **kw):
956 return PyGridTableBase.GetRowLabelValue(*args, **kw)
957 base_GetRowLabelValue = wx._deprecated(base_GetRowLabelValue,
958 "Please use PyGridTableBase.GetRowLabelValue instead.")
959
960 def base_GetColLabelValue(*args, **kw):
961 return PyGridTableBase.GetColLabelValue(*args, **kw)
962 base_GetColLabelValue = wx._deprecated(base_GetColLabelValue,
963 "Please use PyGridTableBase.GetColLabelValue instead.")
964
965 def base_SetRowLabelValue(*args, **kw):
966 return PyGridTableBase.SetRowLabelValue(*args, **kw)
967 base_SetRowLabelValue = wx._deprecated(base_SetRowLabelValue,
968 "Please use PyGridTableBase.SetRowLabelValue instead.")
969
970 def base_SetColLabelValue(*args, **kw):
971 return PyGridTableBase.SetColLabelValue(*args, **kw)
972 base_SetColLabelValue = wx._deprecated(base_SetColLabelValue,
973 "Please use PyGridTableBase.SetColLabelValue instead.")
974
975 def base_CanHaveAttributes(*args, **kw):
976 return PyGridTableBase.CanHaveAttributes(*args, **kw)
977 base_CanHaveAttributes = wx._deprecated(base_CanHaveAttributes,
978 "Please use PyGridTableBase.CanHaveAttributes instead.")
979
980 def base_GetAttr(*args, **kw):
981 return PyGridTableBase.GetAttr(*args, **kw)
982 base_GetAttr = wx._deprecated(base_GetAttr,
983 "Please use PyGridTableBase.GetAttr instead.")
984
985 def base_SetAttr(*args, **kw):
986 return PyGridTableBase.SetAttr(*args, **kw)
987 base_SetAttr = wx._deprecated(base_SetAttr,
988 "Please use PyGridTableBase.SetAttr instead.")
989
990 def base_SetRowAttr(*args, **kw):
991 return PyGridTableBase.SetRowAttr(*args, **kw)
992 base_SetRowAttr = wx._deprecated(base_SetRowAttr,
993 "Please use PyGridTableBase.SetRowAttr instead.")
994
995 def base_SetColAttr(*args, **kw):
996 return PyGridTableBase.SetColAttr(*args, **kw)
997 base_SetColAttr = wx._deprecated(base_SetColAttr,
998 "Please use PyGridTableBase.SetColAttr instead.")
423f194a 999
2131d850 1000_grid.PyGridTableBase_swigregister(PyGridTableBase)
d14a1e28
RD
1001
1002class GridStringTable(GridTableBase):
093d3ff1 1003 """Proxy of C++ GridStringTable class"""
554f62e9
RD
1004 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1005 __repr__ = _swig_repr
1006 def __init__(self, *args, **kwargs):
a95a7133 1007 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
554f62e9 1008 _grid.GridStringTable_swiginit(self,_grid.new_GridStringTable(*args, **kwargs))
33ff77f6 1009 self._setOORInfo(self)
423f194a 1010
2131d850 1011_grid.GridStringTable_swigregister(GridStringTable)
d14a1e28
RD
1012
1013GRIDTABLE_REQUEST_VIEW_GET_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1014GRIDTABLE_REQUEST_VIEW_SEND_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1015GRIDTABLE_NOTIFY_ROWS_INSERTED = _grid.GRIDTABLE_NOTIFY_ROWS_INSERTED
1016GRIDTABLE_NOTIFY_ROWS_APPENDED = _grid.GRIDTABLE_NOTIFY_ROWS_APPENDED
1017GRIDTABLE_NOTIFY_ROWS_DELETED = _grid.GRIDTABLE_NOTIFY_ROWS_DELETED
1018GRIDTABLE_NOTIFY_COLS_INSERTED = _grid.GRIDTABLE_NOTIFY_COLS_INSERTED
1019GRIDTABLE_NOTIFY_COLS_APPENDED = _grid.GRIDTABLE_NOTIFY_COLS_APPENDED
1020GRIDTABLE_NOTIFY_COLS_DELETED = _grid.GRIDTABLE_NOTIFY_COLS_DELETED
1021class GridTableMessage(object):
093d3ff1 1022 """Proxy of C++ GridTableMessage class"""
554f62e9
RD
1023 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1024 __repr__ = _swig_repr
1025 def __init__(self, *args, **kwargs):
a95a7133 1026 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
554f62e9
RD
1027 _grid.GridTableMessage_swiginit(self,_grid.new_GridTableMessage(*args, **kwargs))
1028 __swig_destroy__ = _grid.delete_GridTableMessage
1029 __del__ = lambda self : None;
423f194a 1030 def SetTableObject(*args, **kwargs):
a95a7133 1031 """SetTableObject(self, GridTableBase table)"""
423f194a
RD
1032 return _grid.GridTableMessage_SetTableObject(*args, **kwargs)
1033
1034 def GetTableObject(*args, **kwargs):
a95a7133 1035 """GetTableObject(self) -> GridTableBase"""
423f194a
RD
1036 return _grid.GridTableMessage_GetTableObject(*args, **kwargs)
1037
1038 def SetId(*args, **kwargs):
a95a7133 1039 """SetId(self, int id)"""
423f194a
RD
1040 return _grid.GridTableMessage_SetId(*args, **kwargs)
1041
1042 def GetId(*args, **kwargs):
a95a7133 1043 """GetId(self) -> int"""
423f194a
RD
1044 return _grid.GridTableMessage_GetId(*args, **kwargs)
1045
1046 def SetCommandInt(*args, **kwargs):
a95a7133 1047 """SetCommandInt(self, int comInt1)"""
423f194a
RD
1048 return _grid.GridTableMessage_SetCommandInt(*args, **kwargs)
1049
1050 def GetCommandInt(*args, **kwargs):
a95a7133 1051 """GetCommandInt(self) -> int"""
423f194a
RD
1052 return _grid.GridTableMessage_GetCommandInt(*args, **kwargs)
1053
1054 def SetCommandInt2(*args, **kwargs):
a95a7133 1055 """SetCommandInt2(self, int comInt2)"""
423f194a
RD
1056 return _grid.GridTableMessage_SetCommandInt2(*args, **kwargs)
1057
1058 def GetCommandInt2(*args, **kwargs):
a95a7133 1059 """GetCommandInt2(self) -> int"""
423f194a
RD
1060 return _grid.GridTableMessage_GetCommandInt2(*args, **kwargs)
1061
e70b4d2d
RD
1062 CommandInt = property(GetCommandInt,SetCommandInt,doc="See `GetCommandInt` and `SetCommandInt`")
1063 CommandInt2 = property(GetCommandInt2,SetCommandInt2,doc="See `GetCommandInt2` and `SetCommandInt2`")
1064 Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
1065 TableObject = property(GetTableObject,SetTableObject,doc="See `GetTableObject` and `SetTableObject`")
2131d850 1066_grid.GridTableMessage_swigregister(GridTableMessage)
d14a1e28
RD
1067
1068class GridCellCoords(object):
093d3ff1 1069 """Proxy of C++ GridCellCoords class"""
554f62e9
RD
1070 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1071 __repr__ = _swig_repr
1072 def __init__(self, *args, **kwargs):
a95a7133 1073 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
554f62e9
RD
1074 _grid.GridCellCoords_swiginit(self,_grid.new_GridCellCoords(*args, **kwargs))
1075 __swig_destroy__ = _grid.delete_GridCellCoords
1076 __del__ = lambda self : None;
423f194a 1077 def GetRow(*args, **kwargs):
a95a7133 1078 """GetRow(self) -> int"""
423f194a
RD
1079 return _grid.GridCellCoords_GetRow(*args, **kwargs)
1080
1081 def SetRow(*args, **kwargs):
a95a7133 1082 """SetRow(self, int n)"""
423f194a
RD
1083 return _grid.GridCellCoords_SetRow(*args, **kwargs)
1084
1085 def GetCol(*args, **kwargs):
a95a7133 1086 """GetCol(self) -> int"""
423f194a
RD
1087 return _grid.GridCellCoords_GetCol(*args, **kwargs)
1088
1089 def SetCol(*args, **kwargs):
a95a7133 1090 """SetCol(self, int n)"""
423f194a
RD
1091 return _grid.GridCellCoords_SetCol(*args, **kwargs)
1092
1093 def Set(*args, **kwargs):
a95a7133 1094 """Set(self, int row, int col)"""
423f194a
RD
1095 return _grid.GridCellCoords_Set(*args, **kwargs)
1096
1097 def __eq__(*args, **kwargs):
e9d6f3a4
RD
1098 """
1099 __eq__(self, PyObject other) -> bool
1100
1101 Test for equality of GridCellCoords objects.
1102 """
423f194a
RD
1103 return _grid.GridCellCoords___eq__(*args, **kwargs)
1104
1105 def __ne__(*args, **kwargs):
e9d6f3a4
RD
1106 """
1107 __ne__(self, PyObject other) -> bool
1108
1109 Test for inequality of GridCellCoords objects.
1110 """
423f194a
RD
1111 return _grid.GridCellCoords___ne__(*args, **kwargs)
1112
79fccf9d
RD
1113 def Get(*args, **kwargs):
1114 """Get(self) -> PyObject"""
1115 return _grid.GridCellCoords_Get(*args, **kwargs)
1116
1117 asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
1118 def __str__(self): return str(self.Get())
1119 def __repr__(self): return 'wxGridCellCoords'+str(self.Get())
1120 def __len__(self): return len(self.Get())
7e50db3f
RD
1121 def __getitem__(self, index): return self.asTuple()[index]
1122 def __setitem__(self, index, val):
1123 if index == 0: self.SetRow(val)
1124 elif index == 1: self.SetCol(val)
1125 else: raise IndexError
f6bcfd97 1126
e70b4d2d
RD
1127 Col = property(GetCol,SetCol,doc="See `GetCol` and `SetCol`")
1128 Row = property(GetRow,SetRow,doc="See `GetRow` and `SetRow`")
2131d850 1129_grid.GridCellCoords_swigregister(GridCellCoords)
d14a1e28 1130
d55e5bfc 1131class Grid(_windows.ScrolledWindow):
093d3ff1 1132 """Proxy of C++ Grid class"""
554f62e9
RD
1133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1134 __repr__ = _swig_repr
1135 def __init__(self, *args, **kwargs):
41f1cec7 1136 """
248ed943
RD
1137 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1138 Size size=DefaultSize, long style=WANTS_CHARS,
79df624a 1139 String name=wxPyGridNameStr) -> Grid
41f1cec7 1140 """
554f62e9 1141 _grid.Grid_swiginit(self,_grid.new_Grid(*args, **kwargs))
0122b7e3 1142 self._setOORInfo(self)
423f194a 1143
a07a67e6
RD
1144 def Create(*args, **kwargs):
1145 """
248ed943
RD
1146 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1147 Size size=DefaultSize, long style=WANTS_CHARS,
79df624a 1148 String name=wxPyGridNameStr) -> bool
a07a67e6
RD
1149 """
1150 return _grid.Grid_Create(*args, **kwargs)
1151
f05326ba
RD
1152 wxGridSelectCells = _grid.Grid_wxGridSelectCells
1153 wxGridSelectRows = _grid.Grid_wxGridSelectRows
1154 wxGridSelectColumns = _grid.Grid_wxGridSelectColumns
eb9b6107
RD
1155 SelectCells = wxGridSelectCells
1156 SelectRows = wxGridSelectRows
fe763115 1157 SelectColumns = wxGridSelectColumns
eb9b6107 1158
423f194a 1159 def CreateGrid(*args, **kwargs):
f05326ba 1160 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
423f194a
RD
1161 return _grid.Grid_CreateGrid(*args, **kwargs)
1162
1163 def SetSelectionMode(*args, **kwargs):
a95a7133 1164 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
423f194a
RD
1165 return _grid.Grid_SetSelectionMode(*args, **kwargs)
1166
1167 def GetSelectionMode(*args, **kwargs):
a95a7133 1168 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
423f194a
RD
1169 return _grid.Grid_GetSelectionMode(*args, **kwargs)
1170
1171 def GetNumberRows(*args, **kwargs):
a95a7133 1172 """GetNumberRows(self) -> int"""
423f194a
RD
1173 return _grid.Grid_GetNumberRows(*args, **kwargs)
1174
1175 def GetNumberCols(*args, **kwargs):
a95a7133 1176 """GetNumberCols(self) -> int"""
423f194a
RD
1177 return _grid.Grid_GetNumberCols(*args, **kwargs)
1178
1179 def ProcessTableMessage(*args, **kwargs):
554f62e9 1180 """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
423f194a
RD
1181 return _grid.Grid_ProcessTableMessage(*args, **kwargs)
1182
1183 def GetTable(*args, **kwargs):
a95a7133 1184 """GetTable(self) -> GridTableBase"""
423f194a
RD
1185 return _grid.Grid_GetTable(*args, **kwargs)
1186
1187 def SetTable(*args, **kwargs):
f05326ba 1188 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
423f194a
RD
1189 return _grid.Grid_SetTable(*args, **kwargs)
1190
1191 def ClearGrid(*args, **kwargs):
a95a7133 1192 """ClearGrid(self)"""
423f194a
RD
1193 return _grid.Grid_ClearGrid(*args, **kwargs)
1194
1195 def InsertRows(*args, **kwargs):
a95a7133 1196 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
423f194a
RD
1197 return _grid.Grid_InsertRows(*args, **kwargs)
1198
1199 def AppendRows(*args, **kwargs):
a95a7133 1200 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
423f194a
RD
1201 return _grid.Grid_AppendRows(*args, **kwargs)
1202
1203 def DeleteRows(*args, **kwargs):
a95a7133 1204 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
423f194a
RD
1205 return _grid.Grid_DeleteRows(*args, **kwargs)
1206
1207 def InsertCols(*args, **kwargs):
a95a7133 1208 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
423f194a
RD
1209 return _grid.Grid_InsertCols(*args, **kwargs)
1210
1211 def AppendCols(*args, **kwargs):
a95a7133 1212 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
423f194a
RD
1213 return _grid.Grid_AppendCols(*args, **kwargs)
1214
1215 def DeleteCols(*args, **kwargs):
a95a7133 1216 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
423f194a
RD
1217 return _grid.Grid_DeleteCols(*args, **kwargs)
1218
1219 def DrawCellHighlight(*args, **kwargs):
a95a7133 1220 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
423f194a
RD
1221 return _grid.Grid_DrawCellHighlight(*args, **kwargs)
1222
1223 def DrawTextRectangle(*args, **kwargs):
41f1cec7 1224 """
554f62e9 1225 DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
41f1cec7
RD
1226 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1227 """
423f194a
RD
1228 return _grid.Grid_DrawTextRectangle(*args, **kwargs)
1229
1230 def GetTextBoxSize(*args, **kwargs):
44127b65 1231 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
423f194a
RD
1232 return _grid.Grid_GetTextBoxSize(*args, **kwargs)
1233
1234 def BeginBatch(*args, **kwargs):
a95a7133 1235 """BeginBatch(self)"""
423f194a
RD
1236 return _grid.Grid_BeginBatch(*args, **kwargs)
1237
1238 def EndBatch(*args, **kwargs):
a95a7133 1239 """EndBatch(self)"""
423f194a
RD
1240 return _grid.Grid_EndBatch(*args, **kwargs)
1241
1242 def GetBatchCount(*args, **kwargs):
a95a7133 1243 """GetBatchCount(self) -> int"""
423f194a
RD
1244 return _grid.Grid_GetBatchCount(*args, **kwargs)
1245
1246 def ForceRefresh(*args, **kwargs):
a95a7133 1247 """ForceRefresh(self)"""
423f194a
RD
1248 return _grid.Grid_ForceRefresh(*args, **kwargs)
1249
423f194a 1250 def IsEditable(*args, **kwargs):
a95a7133 1251 """IsEditable(self) -> bool"""
423f194a
RD
1252 return _grid.Grid_IsEditable(*args, **kwargs)
1253
1254 def EnableEditing(*args, **kwargs):
a95a7133 1255 """EnableEditing(self, bool edit)"""
423f194a
RD
1256 return _grid.Grid_EnableEditing(*args, **kwargs)
1257
1258 def EnableCellEditControl(*args, **kwargs):
a95a7133 1259 """EnableCellEditControl(self, bool enable=True)"""
423f194a
RD
1260 return _grid.Grid_EnableCellEditControl(*args, **kwargs)
1261
1262 def DisableCellEditControl(*args, **kwargs):
a95a7133 1263 """DisableCellEditControl(self)"""
423f194a
RD
1264 return _grid.Grid_DisableCellEditControl(*args, **kwargs)
1265
1266 def CanEnableCellControl(*args, **kwargs):
a95a7133 1267 """CanEnableCellControl(self) -> bool"""
423f194a
RD
1268 return _grid.Grid_CanEnableCellControl(*args, **kwargs)
1269
1270 def IsCellEditControlEnabled(*args, **kwargs):
a95a7133 1271 """IsCellEditControlEnabled(self) -> bool"""
423f194a
RD
1272 return _grid.Grid_IsCellEditControlEnabled(*args, **kwargs)
1273
1274 def IsCellEditControlShown(*args, **kwargs):
a95a7133 1275 """IsCellEditControlShown(self) -> bool"""
423f194a
RD
1276 return _grid.Grid_IsCellEditControlShown(*args, **kwargs)
1277
1278 def IsCurrentCellReadOnly(*args, **kwargs):
a95a7133 1279 """IsCurrentCellReadOnly(self) -> bool"""
423f194a
RD
1280 return _grid.Grid_IsCurrentCellReadOnly(*args, **kwargs)
1281
1282 def ShowCellEditControl(*args, **kwargs):
a95a7133 1283 """ShowCellEditControl(self)"""
423f194a
RD
1284 return _grid.Grid_ShowCellEditControl(*args, **kwargs)
1285
1286 def HideCellEditControl(*args, **kwargs):
a95a7133 1287 """HideCellEditControl(self)"""
423f194a
RD
1288 return _grid.Grid_HideCellEditControl(*args, **kwargs)
1289
1290 def SaveEditControlValue(*args, **kwargs):
a95a7133 1291 """SaveEditControlValue(self)"""
423f194a
RD
1292 return _grid.Grid_SaveEditControlValue(*args, **kwargs)
1293
1294 def XYToCell(*args, **kwargs):
a95a7133 1295 """XYToCell(self, int x, int y) -> GridCellCoords"""
423f194a
RD
1296 return _grid.Grid_XYToCell(*args, **kwargs)
1297
1298 def YToRow(*args, **kwargs):
a95a7133 1299 """YToRow(self, int y) -> int"""
423f194a
RD
1300 return _grid.Grid_YToRow(*args, **kwargs)
1301
1302 def XToCol(*args, **kwargs):
092f0ed7 1303 """XToCol(self, int x, bool clipToMinMax=False) -> int"""
423f194a
RD
1304 return _grid.Grid_XToCol(*args, **kwargs)
1305
1306 def YToEdgeOfRow(*args, **kwargs):
a95a7133 1307 """YToEdgeOfRow(self, int y) -> int"""
423f194a
RD
1308 return _grid.Grid_YToEdgeOfRow(*args, **kwargs)
1309
1310 def XToEdgeOfCol(*args, **kwargs):
a95a7133 1311 """XToEdgeOfCol(self, int x) -> int"""
423f194a
RD
1312 return _grid.Grid_XToEdgeOfCol(*args, **kwargs)
1313
1314 def CellToRect(*args, **kwargs):
a95a7133 1315 """CellToRect(self, int row, int col) -> Rect"""
423f194a
RD
1316 return _grid.Grid_CellToRect(*args, **kwargs)
1317
1318 def GetGridCursorRow(*args, **kwargs):
a95a7133 1319 """GetGridCursorRow(self) -> int"""
423f194a
RD
1320 return _grid.Grid_GetGridCursorRow(*args, **kwargs)
1321
1322 def GetGridCursorCol(*args, **kwargs):
a95a7133 1323 """GetGridCursorCol(self) -> int"""
423f194a
RD
1324 return _grid.Grid_GetGridCursorCol(*args, **kwargs)
1325
1326 def IsVisible(*args, **kwargs):
a95a7133 1327 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
423f194a
RD
1328 return _grid.Grid_IsVisible(*args, **kwargs)
1329
1330 def MakeCellVisible(*args, **kwargs):
a95a7133 1331 """MakeCellVisible(self, int row, int col)"""
423f194a
RD
1332 return _grid.Grid_MakeCellVisible(*args, **kwargs)
1333
1334 def SetGridCursor(*args, **kwargs):
a95a7133 1335 """SetGridCursor(self, int row, int col)"""
423f194a
RD
1336 return _grid.Grid_SetGridCursor(*args, **kwargs)
1337
1338 def MoveCursorUp(*args, **kwargs):
a95a7133 1339 """MoveCursorUp(self, bool expandSelection) -> bool"""
423f194a
RD
1340 return _grid.Grid_MoveCursorUp(*args, **kwargs)
1341
1342 def MoveCursorDown(*args, **kwargs):
a95a7133 1343 """MoveCursorDown(self, bool expandSelection) -> bool"""
423f194a
RD
1344 return _grid.Grid_MoveCursorDown(*args, **kwargs)
1345
1346 def MoveCursorLeft(*args, **kwargs):
a95a7133 1347 """MoveCursorLeft(self, bool expandSelection) -> bool"""
423f194a
RD
1348 return _grid.Grid_MoveCursorLeft(*args, **kwargs)
1349
1350 def MoveCursorRight(*args, **kwargs):
a95a7133 1351 """MoveCursorRight(self, bool expandSelection) -> bool"""
423f194a
RD
1352 return _grid.Grid_MoveCursorRight(*args, **kwargs)
1353
1354 def MovePageDown(*args, **kwargs):
a95a7133 1355 """MovePageDown(self) -> bool"""
423f194a
RD
1356 return _grid.Grid_MovePageDown(*args, **kwargs)
1357
1358 def MovePageUp(*args, **kwargs):
a95a7133 1359 """MovePageUp(self) -> bool"""
423f194a
RD
1360 return _grid.Grid_MovePageUp(*args, **kwargs)
1361
1362 def MoveCursorUpBlock(*args, **kwargs):
a95a7133 1363 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
423f194a
RD
1364 return _grid.Grid_MoveCursorUpBlock(*args, **kwargs)
1365
1366 def MoveCursorDownBlock(*args, **kwargs):
a95a7133 1367 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
423f194a
RD
1368 return _grid.Grid_MoveCursorDownBlock(*args, **kwargs)
1369
1370 def MoveCursorLeftBlock(*args, **kwargs):
a95a7133 1371 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
423f194a
RD
1372 return _grid.Grid_MoveCursorLeftBlock(*args, **kwargs)
1373
1374 def MoveCursorRightBlock(*args, **kwargs):
a95a7133 1375 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
423f194a
RD
1376 return _grid.Grid_MoveCursorRightBlock(*args, **kwargs)
1377
1378 def GetDefaultRowLabelSize(*args, **kwargs):
a95a7133 1379 """GetDefaultRowLabelSize(self) -> int"""
423f194a
RD
1380 return _grid.Grid_GetDefaultRowLabelSize(*args, **kwargs)
1381
1382 def GetRowLabelSize(*args, **kwargs):
a95a7133 1383 """GetRowLabelSize(self) -> int"""
423f194a
RD
1384 return _grid.Grid_GetRowLabelSize(*args, **kwargs)
1385
1386 def GetDefaultColLabelSize(*args, **kwargs):
a95a7133 1387 """GetDefaultColLabelSize(self) -> int"""
423f194a
RD
1388 return _grid.Grid_GetDefaultColLabelSize(*args, **kwargs)
1389
1390 def GetColLabelSize(*args, **kwargs):
a95a7133 1391 """GetColLabelSize(self) -> int"""
423f194a
RD
1392 return _grid.Grid_GetColLabelSize(*args, **kwargs)
1393
1394 def GetLabelBackgroundColour(*args, **kwargs):
a95a7133 1395 """GetLabelBackgroundColour(self) -> Colour"""
423f194a
RD
1396 return _grid.Grid_GetLabelBackgroundColour(*args, **kwargs)
1397
1398 def GetLabelTextColour(*args, **kwargs):
a95a7133 1399 """GetLabelTextColour(self) -> Colour"""
423f194a
RD
1400 return _grid.Grid_GetLabelTextColour(*args, **kwargs)
1401
1402 def GetLabelFont(*args, **kwargs):
a95a7133 1403 """GetLabelFont(self) -> Font"""
423f194a
RD
1404 return _grid.Grid_GetLabelFont(*args, **kwargs)
1405
1406 def GetRowLabelAlignment(*args, **kwargs):
44127b65 1407 """GetRowLabelAlignment() -> (horiz, vert)"""
423f194a
RD
1408 return _grid.Grid_GetRowLabelAlignment(*args, **kwargs)
1409
1410 def GetColLabelAlignment(*args, **kwargs):
44127b65 1411 """GetColLabelAlignment() -> (horiz, vert)"""
423f194a
RD
1412 return _grid.Grid_GetColLabelAlignment(*args, **kwargs)
1413
1414 def GetColLabelTextOrientation(*args, **kwargs):
a95a7133 1415 """GetColLabelTextOrientation(self) -> int"""
423f194a
RD
1416 return _grid.Grid_GetColLabelTextOrientation(*args, **kwargs)
1417
1418 def GetRowLabelValue(*args, **kwargs):
a95a7133 1419 """GetRowLabelValue(self, int row) -> String"""
423f194a
RD
1420 return _grid.Grid_GetRowLabelValue(*args, **kwargs)
1421
1422 def GetColLabelValue(*args, **kwargs):
a95a7133 1423 """GetColLabelValue(self, int col) -> String"""
423f194a
RD
1424 return _grid.Grid_GetColLabelValue(*args, **kwargs)
1425
1426 def GetGridLineColour(*args, **kwargs):
a95a7133 1427 """GetGridLineColour(self) -> Colour"""
423f194a
RD
1428 return _grid.Grid_GetGridLineColour(*args, **kwargs)
1429
1eeb270e
RD
1430 def GetDefaultGridLinePen(*args, **kwargs):
1431 """GetDefaultGridLinePen(self) -> wxPen"""
1432 return _grid.Grid_GetDefaultGridLinePen(*args, **kwargs)
1433
1434 def GetRowGridLinePen(*args, **kwargs):
1435 """GetRowGridLinePen(self, int row) -> wxPen"""
1436 return _grid.Grid_GetRowGridLinePen(*args, **kwargs)
1437
1438 def GetColGridLinePen(*args, **kwargs):
1439 """GetColGridLinePen(self, int col) -> wxPen"""
1440 return _grid.Grid_GetColGridLinePen(*args, **kwargs)
1441
423f194a 1442 def GetCellHighlightColour(*args, **kwargs):
a95a7133 1443 """GetCellHighlightColour(self) -> Colour"""
423f194a
RD
1444 return _grid.Grid_GetCellHighlightColour(*args, **kwargs)
1445
1446 def GetCellHighlightPenWidth(*args, **kwargs):
a95a7133 1447 """GetCellHighlightPenWidth(self) -> int"""
423f194a
RD
1448 return _grid.Grid_GetCellHighlightPenWidth(*args, **kwargs)
1449
1450 def GetCellHighlightROPenWidth(*args, **kwargs):
a95a7133 1451 """GetCellHighlightROPenWidth(self) -> int"""
423f194a
RD
1452 return _grid.Grid_GetCellHighlightROPenWidth(*args, **kwargs)
1453
1454 def SetRowLabelSize(*args, **kwargs):
a95a7133 1455 """SetRowLabelSize(self, int width)"""
423f194a
RD
1456 return _grid.Grid_SetRowLabelSize(*args, **kwargs)
1457
1458 def SetColLabelSize(*args, **kwargs):
a95a7133 1459 """SetColLabelSize(self, int height)"""
423f194a
RD
1460 return _grid.Grid_SetColLabelSize(*args, **kwargs)
1461
1462 def SetLabelBackgroundColour(*args, **kwargs):
554f62e9 1463 """SetLabelBackgroundColour(self, Colour ?)"""
423f194a
RD
1464 return _grid.Grid_SetLabelBackgroundColour(*args, **kwargs)
1465
1466 def SetLabelTextColour(*args, **kwargs):
554f62e9 1467 """SetLabelTextColour(self, Colour ?)"""
423f194a
RD
1468 return _grid.Grid_SetLabelTextColour(*args, **kwargs)
1469
1470 def SetLabelFont(*args, **kwargs):
554f62e9 1471 """SetLabelFont(self, Font ?)"""
423f194a
RD
1472 return _grid.Grid_SetLabelFont(*args, **kwargs)
1473
1474 def SetRowLabelAlignment(*args, **kwargs):
a95a7133 1475 """SetRowLabelAlignment(self, int horiz, int vert)"""
423f194a
RD
1476 return _grid.Grid_SetRowLabelAlignment(*args, **kwargs)
1477
1478 def SetColLabelAlignment(*args, **kwargs):
a95a7133 1479 """SetColLabelAlignment(self, int horiz, int vert)"""
423f194a
RD
1480 return _grid.Grid_SetColLabelAlignment(*args, **kwargs)
1481
1482 def SetColLabelTextOrientation(*args, **kwargs):
a95a7133 1483 """SetColLabelTextOrientation(self, int textOrientation)"""
423f194a
RD
1484 return _grid.Grid_SetColLabelTextOrientation(*args, **kwargs)
1485
1486 def SetRowLabelValue(*args, **kwargs):
554f62e9 1487 """SetRowLabelValue(self, int row, String ?)"""
423f194a
RD
1488 return _grid.Grid_SetRowLabelValue(*args, **kwargs)
1489
1490 def SetColLabelValue(*args, **kwargs):
554f62e9 1491 """SetColLabelValue(self, int col, String ?)"""
423f194a
RD
1492 return _grid.Grid_SetColLabelValue(*args, **kwargs)
1493
1494 def SetGridLineColour(*args, **kwargs):
554f62e9 1495 """SetGridLineColour(self, Colour ?)"""
423f194a
RD
1496 return _grid.Grid_SetGridLineColour(*args, **kwargs)
1497
1498 def SetCellHighlightColour(*args, **kwargs):
554f62e9 1499 """SetCellHighlightColour(self, Colour ?)"""
423f194a
RD
1500 return _grid.Grid_SetCellHighlightColour(*args, **kwargs)
1501
1502 def SetCellHighlightPenWidth(*args, **kwargs):
a95a7133 1503 """SetCellHighlightPenWidth(self, int width)"""
423f194a
RD
1504 return _grid.Grid_SetCellHighlightPenWidth(*args, **kwargs)
1505
1506 def SetCellHighlightROPenWidth(*args, **kwargs):
a95a7133 1507 """SetCellHighlightROPenWidth(self, int width)"""
423f194a
RD
1508 return _grid.Grid_SetCellHighlightROPenWidth(*args, **kwargs)
1509
1510 def EnableDragRowSize(*args, **kwargs):
a95a7133 1511 """EnableDragRowSize(self, bool enable=True)"""
423f194a
RD
1512 return _grid.Grid_EnableDragRowSize(*args, **kwargs)
1513
1514 def DisableDragRowSize(*args, **kwargs):
a95a7133 1515 """DisableDragRowSize(self)"""
423f194a
RD
1516 return _grid.Grid_DisableDragRowSize(*args, **kwargs)
1517
1518 def CanDragRowSize(*args, **kwargs):
a95a7133 1519 """CanDragRowSize(self) -> bool"""
423f194a
RD
1520 return _grid.Grid_CanDragRowSize(*args, **kwargs)
1521
1522 def EnableDragColSize(*args, **kwargs):
a95a7133 1523 """EnableDragColSize(self, bool enable=True)"""
423f194a
RD
1524 return _grid.Grid_EnableDragColSize(*args, **kwargs)
1525
1526 def DisableDragColSize(*args, **kwargs):
a95a7133 1527 """DisableDragColSize(self)"""
423f194a
RD
1528 return _grid.Grid_DisableDragColSize(*args, **kwargs)
1529
1530 def CanDragColSize(*args, **kwargs):
a95a7133 1531 """CanDragColSize(self) -> bool"""
423f194a
RD
1532 return _grid.Grid_CanDragColSize(*args, **kwargs)
1533
092f0ed7
RD
1534 def EnableDragColMove(*args, **kwargs):
1535 """EnableDragColMove(self, bool enable=True)"""
1536 return _grid.Grid_EnableDragColMove(*args, **kwargs)
1537
1538 def DisableDragColMove(*args, **kwargs):
1539 """DisableDragColMove(self)"""
1540 return _grid.Grid_DisableDragColMove(*args, **kwargs)
1541
1542 def CanDragColMove(*args, **kwargs):
1543 """CanDragColMove(self) -> bool"""
1544 return _grid.Grid_CanDragColMove(*args, **kwargs)
1545
423f194a 1546 def EnableDragGridSize(*args, **kwargs):
a95a7133 1547 """EnableDragGridSize(self, bool enable=True)"""
423f194a
RD
1548 return _grid.Grid_EnableDragGridSize(*args, **kwargs)
1549
1550 def DisableDragGridSize(*args, **kwargs):
a95a7133 1551 """DisableDragGridSize(self)"""
423f194a
RD
1552 return _grid.Grid_DisableDragGridSize(*args, **kwargs)
1553
1554 def CanDragGridSize(*args, **kwargs):
a95a7133 1555 """CanDragGridSize(self) -> bool"""
423f194a
RD
1556 return _grid.Grid_CanDragGridSize(*args, **kwargs)
1557
4cf4100f
RD
1558 def EnableDragCell(*args, **kwargs):
1559 """EnableDragCell(self, bool enable=True)"""
1560 return _grid.Grid_EnableDragCell(*args, **kwargs)
1561
1562 def DisableDragCell(*args, **kwargs):
1563 """DisableDragCell(self)"""
1564 return _grid.Grid_DisableDragCell(*args, **kwargs)
1565
1566 def CanDragCell(*args, **kwargs):
1567 """CanDragCell(self) -> bool"""
1568 return _grid.Grid_CanDragCell(*args, **kwargs)
1569
423f194a 1570 def SetAttr(*args, **kwargs):
a95a7133 1571 """SetAttr(self, int row, int col, GridCellAttr attr)"""
423f194a
RD
1572 return _grid.Grid_SetAttr(*args, **kwargs)
1573
1574 def SetRowAttr(*args, **kwargs):
a95a7133 1575 """SetRowAttr(self, int row, GridCellAttr attr)"""
423f194a
RD
1576 return _grid.Grid_SetRowAttr(*args, **kwargs)
1577
1578 def SetColAttr(*args, **kwargs):
a95a7133 1579 """SetColAttr(self, int col, GridCellAttr attr)"""
423f194a
RD
1580 return _grid.Grid_SetColAttr(*args, **kwargs)
1581
d1f3a348
RD
1582 def GetOrCreateCellAttr(*args, **kwargs):
1583 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1584 return _grid.Grid_GetOrCreateCellAttr(*args, **kwargs)
1585
423f194a 1586 def SetColFormatBool(*args, **kwargs):
a95a7133 1587 """SetColFormatBool(self, int col)"""
423f194a
RD
1588 return _grid.Grid_SetColFormatBool(*args, **kwargs)
1589
1590 def SetColFormatNumber(*args, **kwargs):
a95a7133 1591 """SetColFormatNumber(self, int col)"""
423f194a
RD
1592 return _grid.Grid_SetColFormatNumber(*args, **kwargs)
1593
1594 def SetColFormatFloat(*args, **kwargs):
a95a7133 1595 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
423f194a
RD
1596 return _grid.Grid_SetColFormatFloat(*args, **kwargs)
1597
1598 def SetColFormatCustom(*args, **kwargs):
a95a7133 1599 """SetColFormatCustom(self, int col, String typeName)"""
423f194a
RD
1600 return _grid.Grid_SetColFormatCustom(*args, **kwargs)
1601
1602 def EnableGridLines(*args, **kwargs):
a95a7133 1603 """EnableGridLines(self, bool enable=True)"""
423f194a
RD
1604 return _grid.Grid_EnableGridLines(*args, **kwargs)
1605
1606 def GridLinesEnabled(*args, **kwargs):
a95a7133 1607 """GridLinesEnabled(self) -> bool"""
423f194a
RD
1608 return _grid.Grid_GridLinesEnabled(*args, **kwargs)
1609
1610 def GetDefaultRowSize(*args, **kwargs):
a95a7133 1611 """GetDefaultRowSize(self) -> int"""
423f194a
RD
1612 return _grid.Grid_GetDefaultRowSize(*args, **kwargs)
1613
1614 def GetRowSize(*args, **kwargs):
a95a7133 1615 """GetRowSize(self, int row) -> int"""
423f194a
RD
1616 return _grid.Grid_GetRowSize(*args, **kwargs)
1617
1618 def GetDefaultColSize(*args, **kwargs):
a95a7133 1619 """GetDefaultColSize(self) -> int"""
423f194a
RD
1620 return _grid.Grid_GetDefaultColSize(*args, **kwargs)
1621
1622 def GetColSize(*args, **kwargs):
a95a7133 1623 """GetColSize(self, int col) -> int"""
423f194a
RD
1624 return _grid.Grid_GetColSize(*args, **kwargs)
1625
1626 def GetDefaultCellBackgroundColour(*args, **kwargs):
a95a7133 1627 """GetDefaultCellBackgroundColour(self) -> Colour"""
423f194a
RD
1628 return _grid.Grid_GetDefaultCellBackgroundColour(*args, **kwargs)
1629
1630 def GetCellBackgroundColour(*args, **kwargs):
a95a7133 1631 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
423f194a
RD
1632 return _grid.Grid_GetCellBackgroundColour(*args, **kwargs)
1633
1634 def GetDefaultCellTextColour(*args, **kwargs):
a95a7133 1635 """GetDefaultCellTextColour(self) -> Colour"""
423f194a
RD
1636 return _grid.Grid_GetDefaultCellTextColour(*args, **kwargs)
1637
1638 def GetCellTextColour(*args, **kwargs):
a95a7133 1639 """GetCellTextColour(self, int row, int col) -> Colour"""
423f194a
RD
1640 return _grid.Grid_GetCellTextColour(*args, **kwargs)
1641
1642 def GetDefaultCellFont(*args, **kwargs):
a95a7133 1643 """GetDefaultCellFont(self) -> Font"""
423f194a
RD
1644 return _grid.Grid_GetDefaultCellFont(*args, **kwargs)
1645
1646 def GetCellFont(*args, **kwargs):
a95a7133 1647 """GetCellFont(self, int row, int col) -> Font"""
423f194a
RD
1648 return _grid.Grid_GetCellFont(*args, **kwargs)
1649
1650 def GetDefaultCellAlignment(*args, **kwargs):
44127b65 1651 """GetDefaultCellAlignment() -> (horiz, vert)"""
423f194a
RD
1652 return _grid.Grid_GetDefaultCellAlignment(*args, **kwargs)
1653
1654 def GetCellAlignment(*args, **kwargs):
e70b4d2d 1655 """GetCellAlignment(int row, int col) -> (horiz, vert)"""
423f194a
RD
1656 return _grid.Grid_GetCellAlignment(*args, **kwargs)
1657
1658 def GetDefaultCellOverflow(*args, **kwargs):
a95a7133 1659 """GetDefaultCellOverflow(self) -> bool"""
423f194a
RD
1660 return _grid.Grid_GetDefaultCellOverflow(*args, **kwargs)
1661
1662 def GetCellOverflow(*args, **kwargs):
a95a7133 1663 """GetCellOverflow(self, int row, int col) -> bool"""
423f194a
RD
1664 return _grid.Grid_GetCellOverflow(*args, **kwargs)
1665
1666 def GetCellSize(*args, **kwargs):
44127b65 1667 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
423f194a
RD
1668 return _grid.Grid_GetCellSize(*args, **kwargs)
1669
1670 def SetDefaultRowSize(*args, **kwargs):
a95a7133 1671 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
423f194a
RD
1672 return _grid.Grid_SetDefaultRowSize(*args, **kwargs)
1673
1674 def SetRowSize(*args, **kwargs):
a95a7133 1675 """SetRowSize(self, int row, int height)"""
423f194a
RD
1676 return _grid.Grid_SetRowSize(*args, **kwargs)
1677
1678 def SetDefaultColSize(*args, **kwargs):
a95a7133 1679 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
423f194a
RD
1680 return _grid.Grid_SetDefaultColSize(*args, **kwargs)
1681
1682 def SetColSize(*args, **kwargs):
a95a7133 1683 """SetColSize(self, int col, int width)"""
423f194a
RD
1684 return _grid.Grid_SetColSize(*args, **kwargs)
1685
092f0ed7
RD
1686 def GetColAt(*args, **kwargs):
1687 """GetColAt(self, int colPos) -> int"""
1688 return _grid.Grid_GetColAt(*args, **kwargs)
1689
1690 def SetColPos(*args, **kwargs):
1691 """SetColPos(self, int colID, int newPos)"""
1692 return _grid.Grid_SetColPos(*args, **kwargs)
1693
1694 def GetColPos(*args, **kwargs):
1695 """GetColPos(self, int colID) -> int"""
1696 return _grid.Grid_GetColPos(*args, **kwargs)
1697
423f194a 1698 def AutoSizeColumn(*args, **kwargs):
a95a7133 1699 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
423f194a
RD
1700 return _grid.Grid_AutoSizeColumn(*args, **kwargs)
1701
1702 def AutoSizeRow(*args, **kwargs):
a95a7133 1703 """AutoSizeRow(self, int row, bool setAsMin=True)"""
423f194a
RD
1704 return _grid.Grid_AutoSizeRow(*args, **kwargs)
1705
1706 def AutoSizeColumns(*args, **kwargs):
a95a7133 1707 """AutoSizeColumns(self, bool setAsMin=True)"""
423f194a
RD
1708 return _grid.Grid_AutoSizeColumns(*args, **kwargs)
1709
1710 def AutoSizeRows(*args, **kwargs):
a95a7133 1711 """AutoSizeRows(self, bool setAsMin=True)"""
423f194a
RD
1712 return _grid.Grid_AutoSizeRows(*args, **kwargs)
1713
1714 def AutoSize(*args, **kwargs):
a95a7133 1715 """AutoSize(self)"""
423f194a
RD
1716 return _grid.Grid_AutoSize(*args, **kwargs)
1717
1718 def AutoSizeRowLabelSize(*args, **kwargs):
a95a7133 1719 """AutoSizeRowLabelSize(self, int row)"""
423f194a
RD
1720 return _grid.Grid_AutoSizeRowLabelSize(*args, **kwargs)
1721
1722 def AutoSizeColLabelSize(*args, **kwargs):
a95a7133 1723 """AutoSizeColLabelSize(self, int col)"""
423f194a
RD
1724 return _grid.Grid_AutoSizeColLabelSize(*args, **kwargs)
1725
1726 def SetColMinimalWidth(*args, **kwargs):
a95a7133 1727 """SetColMinimalWidth(self, int col, int width)"""
423f194a
RD
1728 return _grid.Grid_SetColMinimalWidth(*args, **kwargs)
1729
1730 def SetRowMinimalHeight(*args, **kwargs):
a95a7133 1731 """SetRowMinimalHeight(self, int row, int width)"""
423f194a
RD
1732 return _grid.Grid_SetRowMinimalHeight(*args, **kwargs)
1733
1734 def SetColMinimalAcceptableWidth(*args, **kwargs):
a95a7133 1735 """SetColMinimalAcceptableWidth(self, int width)"""
423f194a
RD
1736 return _grid.Grid_SetColMinimalAcceptableWidth(*args, **kwargs)
1737
1738 def SetRowMinimalAcceptableHeight(*args, **kwargs):
a95a7133 1739 """SetRowMinimalAcceptableHeight(self, int width)"""
423f194a
RD
1740 return _grid.Grid_SetRowMinimalAcceptableHeight(*args, **kwargs)
1741
1742 def GetColMinimalAcceptableWidth(*args, **kwargs):
a95a7133 1743 """GetColMinimalAcceptableWidth(self) -> int"""
423f194a
RD
1744 return _grid.Grid_GetColMinimalAcceptableWidth(*args, **kwargs)
1745
1746 def GetRowMinimalAcceptableHeight(*args, **kwargs):
a95a7133 1747 """GetRowMinimalAcceptableHeight(self) -> int"""
423f194a
RD
1748 return _grid.Grid_GetRowMinimalAcceptableHeight(*args, **kwargs)
1749
1750 def SetDefaultCellBackgroundColour(*args, **kwargs):
554f62e9 1751 """SetDefaultCellBackgroundColour(self, Colour ?)"""
423f194a
RD
1752 return _grid.Grid_SetDefaultCellBackgroundColour(*args, **kwargs)
1753
1754 def SetCellBackgroundColour(*args, **kwargs):
554f62e9 1755 """SetCellBackgroundColour(self, int row, int col, Colour ?)"""
423f194a
RD
1756 return _grid.Grid_SetCellBackgroundColour(*args, **kwargs)
1757
1758 def SetDefaultCellTextColour(*args, **kwargs):
554f62e9 1759 """SetDefaultCellTextColour(self, Colour ?)"""
423f194a
RD
1760 return _grid.Grid_SetDefaultCellTextColour(*args, **kwargs)
1761
1762 def SetCellTextColour(*args, **kwargs):
554f62e9 1763 """SetCellTextColour(self, int row, int col, Colour ?)"""
423f194a
RD
1764 return _grid.Grid_SetCellTextColour(*args, **kwargs)
1765
1766 def SetDefaultCellFont(*args, **kwargs):
554f62e9 1767 """SetDefaultCellFont(self, Font ?)"""
423f194a
RD
1768 return _grid.Grid_SetDefaultCellFont(*args, **kwargs)
1769
1770 def SetCellFont(*args, **kwargs):
554f62e9 1771 """SetCellFont(self, int row, int col, Font ?)"""
423f194a
RD
1772 return _grid.Grid_SetCellFont(*args, **kwargs)
1773
1774 def SetDefaultCellAlignment(*args, **kwargs):
a95a7133 1775 """SetDefaultCellAlignment(self, int horiz, int vert)"""
423f194a
RD
1776 return _grid.Grid_SetDefaultCellAlignment(*args, **kwargs)
1777
1778 def SetCellAlignment(*args, **kwargs):
a95a7133 1779 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
423f194a
RD
1780 return _grid.Grid_SetCellAlignment(*args, **kwargs)
1781
1782 def SetDefaultCellOverflow(*args, **kwargs):
a95a7133 1783 """SetDefaultCellOverflow(self, bool allow)"""
423f194a
RD
1784 return _grid.Grid_SetDefaultCellOverflow(*args, **kwargs)
1785
1786 def SetCellOverflow(*args, **kwargs):
a95a7133 1787 """SetCellOverflow(self, int row, int col, bool allow)"""
423f194a
RD
1788 return _grid.Grid_SetCellOverflow(*args, **kwargs)
1789
1790 def SetCellSize(*args, **kwargs):
a95a7133 1791 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
423f194a
RD
1792 return _grid.Grid_SetCellSize(*args, **kwargs)
1793
1794 def SetDefaultRenderer(*args, **kwargs):
a95a7133 1795 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
423f194a
RD
1796 return _grid.Grid_SetDefaultRenderer(*args, **kwargs)
1797
1798 def SetCellRenderer(*args, **kwargs):
a95a7133 1799 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
423f194a
RD
1800 return _grid.Grid_SetCellRenderer(*args, **kwargs)
1801
1802 def GetDefaultRenderer(*args, **kwargs):
a95a7133 1803 """GetDefaultRenderer(self) -> GridCellRenderer"""
423f194a
RD
1804 return _grid.Grid_GetDefaultRenderer(*args, **kwargs)
1805
1806 def GetCellRenderer(*args, **kwargs):
a95a7133 1807 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
423f194a
RD
1808 return _grid.Grid_GetCellRenderer(*args, **kwargs)
1809
1810 def SetDefaultEditor(*args, **kwargs):
a95a7133 1811 """SetDefaultEditor(self, GridCellEditor editor)"""
423f194a
RD
1812 return _grid.Grid_SetDefaultEditor(*args, **kwargs)
1813
1814 def SetCellEditor(*args, **kwargs):
a95a7133 1815 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
423f194a
RD
1816 return _grid.Grid_SetCellEditor(*args, **kwargs)
1817
1818 def GetDefaultEditor(*args, **kwargs):
a95a7133 1819 """GetDefaultEditor(self) -> GridCellEditor"""
423f194a
RD
1820 return _grid.Grid_GetDefaultEditor(*args, **kwargs)
1821
1822 def GetCellEditor(*args, **kwargs):
a95a7133 1823 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
423f194a
RD
1824 return _grid.Grid_GetCellEditor(*args, **kwargs)
1825
1826 def GetCellValue(*args, **kwargs):
a95a7133 1827 """GetCellValue(self, int row, int col) -> String"""
423f194a
RD
1828 return _grid.Grid_GetCellValue(*args, **kwargs)
1829
1830 def SetCellValue(*args, **kwargs):
a95a7133 1831 """SetCellValue(self, int row, int col, String s)"""
423f194a
RD
1832 return _grid.Grid_SetCellValue(*args, **kwargs)
1833
1834 def IsReadOnly(*args, **kwargs):
a95a7133 1835 """IsReadOnly(self, int row, int col) -> bool"""
423f194a
RD
1836 return _grid.Grid_IsReadOnly(*args, **kwargs)
1837
1838 def SetReadOnly(*args, **kwargs):
a95a7133 1839 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
423f194a
RD
1840 return _grid.Grid_SetReadOnly(*args, **kwargs)
1841
1842 def SelectRow(*args, **kwargs):
a95a7133 1843 """SelectRow(self, int row, bool addToSelected=False)"""
423f194a
RD
1844 return _grid.Grid_SelectRow(*args, **kwargs)
1845
1846 def SelectCol(*args, **kwargs):
a95a7133 1847 """SelectCol(self, int col, bool addToSelected=False)"""
423f194a
RD
1848 return _grid.Grid_SelectCol(*args, **kwargs)
1849
1850 def SelectBlock(*args, **kwargs):
41f1cec7 1851 """
a95a7133 1852 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
41f1cec7
RD
1853 bool addToSelected=False)
1854 """
423f194a
RD
1855 return _grid.Grid_SelectBlock(*args, **kwargs)
1856
1857 def SelectAll(*args, **kwargs):
a95a7133 1858 """SelectAll(self)"""
423f194a
RD
1859 return _grid.Grid_SelectAll(*args, **kwargs)
1860
1861 def IsSelection(*args, **kwargs):
a95a7133 1862 """IsSelection(self) -> bool"""
423f194a
RD
1863 return _grid.Grid_IsSelection(*args, **kwargs)
1864
1865 def ClearSelection(*args, **kwargs):
a95a7133 1866 """ClearSelection(self)"""
423f194a
RD
1867 return _grid.Grid_ClearSelection(*args, **kwargs)
1868
1869 def IsInSelection(*args, **kwargs):
a95a7133 1870 """IsInSelection(self, int row, int col) -> bool"""
423f194a
RD
1871 return _grid.Grid_IsInSelection(*args, **kwargs)
1872
1873 def GetSelectedCells(*args, **kwargs):
a95a7133 1874 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
423f194a
RD
1875 return _grid.Grid_GetSelectedCells(*args, **kwargs)
1876
1877 def GetSelectionBlockTopLeft(*args, **kwargs):
a95a7133 1878 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
423f194a
RD
1879 return _grid.Grid_GetSelectionBlockTopLeft(*args, **kwargs)
1880
1881 def GetSelectionBlockBottomRight(*args, **kwargs):
a95a7133 1882 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
423f194a
RD
1883 return _grid.Grid_GetSelectionBlockBottomRight(*args, **kwargs)
1884
1885 def GetSelectedRows(*args, **kwargs):
a95a7133 1886 """GetSelectedRows(self) -> wxArrayInt"""
423f194a
RD
1887 return _grid.Grid_GetSelectedRows(*args, **kwargs)
1888
1889 def GetSelectedCols(*args, **kwargs):
a95a7133 1890 """GetSelectedCols(self) -> wxArrayInt"""
423f194a
RD
1891 return _grid.Grid_GetSelectedCols(*args, **kwargs)
1892
1893 def DeselectRow(*args, **kwargs):
a95a7133 1894 """DeselectRow(self, int row)"""
423f194a
RD
1895 return _grid.Grid_DeselectRow(*args, **kwargs)
1896
1897 def DeselectCol(*args, **kwargs):
a95a7133 1898 """DeselectCol(self, int col)"""
423f194a
RD
1899 return _grid.Grid_DeselectCol(*args, **kwargs)
1900
1901 def DeselectCell(*args, **kwargs):
a95a7133 1902 """DeselectCell(self, int row, int col)"""
423f194a
RD
1903 return _grid.Grid_DeselectCell(*args, **kwargs)
1904
1905 def BlockToDeviceRect(*args, **kwargs):
a95a7133 1906 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
423f194a
RD
1907 return _grid.Grid_BlockToDeviceRect(*args, **kwargs)
1908
1909 def GetSelectionBackground(*args, **kwargs):
a95a7133 1910 """GetSelectionBackground(self) -> Colour"""
423f194a
RD
1911 return _grid.Grid_GetSelectionBackground(*args, **kwargs)
1912
1913 def GetSelectionForeground(*args, **kwargs):
a95a7133 1914 """GetSelectionForeground(self) -> Colour"""
423f194a
RD
1915 return _grid.Grid_GetSelectionForeground(*args, **kwargs)
1916
1917 def SetSelectionBackground(*args, **kwargs):
a95a7133 1918 """SetSelectionBackground(self, Colour c)"""
423f194a
RD
1919 return _grid.Grid_SetSelectionBackground(*args, **kwargs)
1920
1921 def SetSelectionForeground(*args, **kwargs):
a95a7133 1922 """SetSelectionForeground(self, Colour c)"""
423f194a
RD
1923 return _grid.Grid_SetSelectionForeground(*args, **kwargs)
1924
1925 def RegisterDataType(*args, **kwargs):
a95a7133 1926 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
423f194a
RD
1927 return _grid.Grid_RegisterDataType(*args, **kwargs)
1928
1929 def GetDefaultEditorForCell(*args, **kwargs):
a95a7133 1930 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
423f194a
RD
1931 return _grid.Grid_GetDefaultEditorForCell(*args, **kwargs)
1932
1933 def GetDefaultRendererForCell(*args, **kwargs):
a95a7133 1934 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
423f194a
RD
1935 return _grid.Grid_GetDefaultRendererForCell(*args, **kwargs)
1936
1937 def GetDefaultEditorForType(*args, **kwargs):
a95a7133 1938 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
423f194a
RD
1939 return _grid.Grid_GetDefaultEditorForType(*args, **kwargs)
1940
1941 def GetDefaultRendererForType(*args, **kwargs):
a95a7133 1942 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
423f194a
RD
1943 return _grid.Grid_GetDefaultRendererForType(*args, **kwargs)
1944
1945 def SetMargins(*args, **kwargs):
a95a7133 1946 """SetMargins(self, int extraWidth, int extraHeight)"""
423f194a
RD
1947 return _grid.Grid_SetMargins(*args, **kwargs)
1948
1949 def GetGridWindow(*args, **kwargs):
a95a7133 1950 """GetGridWindow(self) -> Window"""
423f194a
RD
1951 return _grid.Grid_GetGridWindow(*args, **kwargs)
1952
1953 def GetGridRowLabelWindow(*args, **kwargs):
a95a7133 1954 """GetGridRowLabelWindow(self) -> Window"""
423f194a
RD
1955 return _grid.Grid_GetGridRowLabelWindow(*args, **kwargs)
1956
1957 def GetGridColLabelWindow(*args, **kwargs):
a95a7133 1958 """GetGridColLabelWindow(self) -> Window"""
423f194a
RD
1959 return _grid.Grid_GetGridColLabelWindow(*args, **kwargs)
1960
1961 def GetGridCornerLabelWindow(*args, **kwargs):
a95a7133 1962 """GetGridCornerLabelWindow(self) -> Window"""
423f194a
RD
1963 return _grid.Grid_GetGridCornerLabelWindow(*args, **kwargs)
1964
c1cb24a4
RD
1965 def SetScrollLineX(*args, **kwargs):
1966 """SetScrollLineX(self, int x)"""
1967 return _grid.Grid_SetScrollLineX(*args, **kwargs)
1968
1969 def SetScrollLineY(*args, **kwargs):
1970 """SetScrollLineY(self, int y)"""
1971 return _grid.Grid_SetScrollLineY(*args, **kwargs)
1972
1973 def GetScrollLineX(*args, **kwargs):
1974 """GetScrollLineX(self) -> int"""
1975 return _grid.Grid_GetScrollLineX(*args, **kwargs)
1976
1977 def GetScrollLineY(*args, **kwargs):
1978 """GetScrollLineY(self) -> int"""
1979 return _grid.Grid_GetScrollLineY(*args, **kwargs)
1980
1981 def GetScrollX(*args, **kwargs):
1982 """GetScrollX(self, int x) -> int"""
1983 return _grid.Grid_GetScrollX(*args, **kwargs)
1984
1985 def GetScrollY(*args, **kwargs):
1986 """GetScrollY(self, int y) -> int"""
1987 return _grid.Grid_GetScrollY(*args, **kwargs)
1988
f20a2e1f
RD
1989 def GetClassDefaultAttributes(*args, **kwargs):
1990 """
1991 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1992
79fccf9d
RD
1993 Get the default attributes for this class. This is useful if you want
1994 to use the same font or colour in your own control as in a standard
1995 control -- which is a much better idea than hard coding specific
caef1a4d
RD
1996 colours or fonts which might look completely out of place on the
1997 user's system, especially if it uses themes.
f20a2e1f
RD
1998
1999 The variant parameter is only relevant under Mac currently and is
79fccf9d 2000 ignore under other platforms. Under Mac, it will change the size of
caef1a4d
RD
2001 the returned font. See `wx.Window.SetWindowVariant` for more about
2002 this.
f20a2e1f
RD
2003 """
2004 return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
2005
2006 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
e70b4d2d
RD
2007 BatchCount = property(GetBatchCount,doc="See `GetBatchCount`")
2008 CellHighlightColour = property(GetCellHighlightColour,SetCellHighlightColour,doc="See `GetCellHighlightColour` and `SetCellHighlightColour`")
2009 CellHighlightPenWidth = property(GetCellHighlightPenWidth,SetCellHighlightPenWidth,doc="See `GetCellHighlightPenWidth` and `SetCellHighlightPenWidth`")
2010 CellHighlightROPenWidth = property(GetCellHighlightROPenWidth,SetCellHighlightROPenWidth,doc="See `GetCellHighlightROPenWidth` and `SetCellHighlightROPenWidth`")
2011 CellSize = property(GetCellSize,SetCellSize,doc="See `GetCellSize` and `SetCellSize`")
2012 ColLabelAlignment = property(GetColLabelAlignment,SetColLabelAlignment,doc="See `GetColLabelAlignment` and `SetColLabelAlignment`")
2013 ColLabelSize = property(GetColLabelSize,SetColLabelSize,doc="See `GetColLabelSize` and `SetColLabelSize`")
2014 ColLabelTextOrientation = property(GetColLabelTextOrientation,SetColLabelTextOrientation,doc="See `GetColLabelTextOrientation` and `SetColLabelTextOrientation`")
2015 ColMinimalAcceptableWidth = property(GetColMinimalAcceptableWidth,SetColMinimalAcceptableWidth,doc="See `GetColMinimalAcceptableWidth` and `SetColMinimalAcceptableWidth`")
2016 DefaultCellAlignment = property(GetDefaultCellAlignment,SetDefaultCellAlignment,doc="See `GetDefaultCellAlignment` and `SetDefaultCellAlignment`")
2017 DefaultCellBackgroundColour = property(GetDefaultCellBackgroundColour,SetDefaultCellBackgroundColour,doc="See `GetDefaultCellBackgroundColour` and `SetDefaultCellBackgroundColour`")
2018 DefaultCellFont = property(GetDefaultCellFont,SetDefaultCellFont,doc="See `GetDefaultCellFont` and `SetDefaultCellFont`")
2019 DefaultCellOverflow = property(GetDefaultCellOverflow,SetDefaultCellOverflow,doc="See `GetDefaultCellOverflow` and `SetDefaultCellOverflow`")
2020 DefaultCellTextColour = property(GetDefaultCellTextColour,SetDefaultCellTextColour,doc="See `GetDefaultCellTextColour` and `SetDefaultCellTextColour`")
2021 DefaultColLabelSize = property(GetDefaultColLabelSize,doc="See `GetDefaultColLabelSize`")
2022 DefaultColSize = property(GetDefaultColSize,SetDefaultColSize,doc="See `GetDefaultColSize` and `SetDefaultColSize`")
2023 DefaultEditor = property(GetDefaultEditor,SetDefaultEditor,doc="See `GetDefaultEditor` and `SetDefaultEditor`")
2024 DefaultGridLinePen = property(GetDefaultGridLinePen,doc="See `GetDefaultGridLinePen`")
2025 DefaultRenderer = property(GetDefaultRenderer,SetDefaultRenderer,doc="See `GetDefaultRenderer` and `SetDefaultRenderer`")
2026 DefaultRowLabelSize = property(GetDefaultRowLabelSize,doc="See `GetDefaultRowLabelSize`")
2027 DefaultRowSize = property(GetDefaultRowSize,SetDefaultRowSize,doc="See `GetDefaultRowSize` and `SetDefaultRowSize`")
2028 GridColLabelWindow = property(GetGridColLabelWindow,doc="See `GetGridColLabelWindow`")
2029 GridCornerLabelWindow = property(GetGridCornerLabelWindow,doc="See `GetGridCornerLabelWindow`")
2030 GridCursorCol = property(GetGridCursorCol,doc="See `GetGridCursorCol`")
2031 GridCursorRow = property(GetGridCursorRow,doc="See `GetGridCursorRow`")
2032 GridLineColour = property(GetGridLineColour,SetGridLineColour,doc="See `GetGridLineColour` and `SetGridLineColour`")
2033 GridRowLabelWindow = property(GetGridRowLabelWindow,doc="See `GetGridRowLabelWindow`")
2034 GridWindow = property(GetGridWindow,doc="See `GetGridWindow`")
2035 LabelBackgroundColour = property(GetLabelBackgroundColour,SetLabelBackgroundColour,doc="See `GetLabelBackgroundColour` and `SetLabelBackgroundColour`")
2036 LabelFont = property(GetLabelFont,SetLabelFont,doc="See `GetLabelFont` and `SetLabelFont`")
2037 LabelTextColour = property(GetLabelTextColour,SetLabelTextColour,doc="See `GetLabelTextColour` and `SetLabelTextColour`")
2038 NumberCols = property(GetNumberCols,doc="See `GetNumberCols`")
2039 NumberRows = property(GetNumberRows,doc="See `GetNumberRows`")
2040 RowLabelAlignment = property(GetRowLabelAlignment,SetRowLabelAlignment,doc="See `GetRowLabelAlignment` and `SetRowLabelAlignment`")
2041 RowLabelSize = property(GetRowLabelSize,SetRowLabelSize,doc="See `GetRowLabelSize` and `SetRowLabelSize`")
2042 RowMinimalAcceptableHeight = property(GetRowMinimalAcceptableHeight,SetRowMinimalAcceptableHeight,doc="See `GetRowMinimalAcceptableHeight` and `SetRowMinimalAcceptableHeight`")
2043 ScrollLineX = property(GetScrollLineX,SetScrollLineX,doc="See `GetScrollLineX` and `SetScrollLineX`")
2044 ScrollLineY = property(GetScrollLineY,SetScrollLineY,doc="See `GetScrollLineY` and `SetScrollLineY`")
2045 SelectedCells = property(GetSelectedCells,doc="See `GetSelectedCells`")
2046 SelectedCols = property(GetSelectedCols,doc="See `GetSelectedCols`")
2047 SelectedRows = property(GetSelectedRows,doc="See `GetSelectedRows`")
2048 SelectionBackground = property(GetSelectionBackground,SetSelectionBackground,doc="See `GetSelectionBackground` and `SetSelectionBackground`")
2049 SelectionBlockBottomRight = property(GetSelectionBlockBottomRight,doc="See `GetSelectionBlockBottomRight`")
2050 SelectionBlockTopLeft = property(GetSelectionBlockTopLeft,doc="See `GetSelectionBlockTopLeft`")
2051 SelectionForeground = property(GetSelectionForeground,SetSelectionForeground,doc="See `GetSelectionForeground` and `SetSelectionForeground`")
2052 SelectionMode = property(GetSelectionMode,SetSelectionMode,doc="See `GetSelectionMode` and `SetSelectionMode`")
2053 Table = property(GetTable,SetTable,doc="See `GetTable` and `SetTable`")
2131d850 2054_grid.Grid_swigregister(Grid)
f6bcfd97 2055
a07a67e6
RD
2056def PreGrid(*args, **kwargs):
2057 """PreGrid() -> Grid"""
2058 val = _grid.new_PreGrid(*args, **kwargs)
a07a67e6
RD
2059 return val
2060
f20a2e1f 2061def Grid_GetClassDefaultAttributes(*args, **kwargs):
554f62e9 2062 """
f20a2e1f
RD
2063 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2064
79fccf9d
RD
2065 Get the default attributes for this class. This is useful if you want
2066 to use the same font or colour in your own control as in a standard
2067 control -- which is a much better idea than hard coding specific
caef1a4d
RD
2068 colours or fonts which might look completely out of place on the
2069 user's system, especially if it uses themes.
f20a2e1f
RD
2070
2071 The variant parameter is only relevant under Mac currently and is
79fccf9d 2072 ignore under other platforms. Under Mac, it will change the size of
caef1a4d
RD
2073 the returned font. See `wx.Window.SetWindowVariant` for more about
2074 this.
f20a2e1f 2075 """
554f62e9 2076 return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
f20a2e1f 2077
d55e5bfc 2078class GridEvent(_core.NotifyEvent):
093d3ff1 2079 """Proxy of C++ GridEvent class"""
554f62e9
RD
2080 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2081 __repr__ = _swig_repr
2082 def __init__(self, *args, **kwargs):
41f1cec7 2083 """
f460c29d 2084 __init__(self, int id, EventType type, Grid obj, int row=-1, int col=-1,
41f1cec7
RD
2085 int x=-1, int y=-1, bool sel=True, bool control=False,
2086 bool shift=False, bool alt=False,
2087 bool meta=False) -> GridEvent
2088 """
554f62e9 2089 _grid.GridEvent_swiginit(self,_grid.new_GridEvent(*args, **kwargs))
423f194a 2090 def GetRow(*args, **kwargs):
a95a7133 2091 """GetRow(self) -> int"""
423f194a
RD
2092 return _grid.GridEvent_GetRow(*args, **kwargs)
2093
2094 def GetCol(*args, **kwargs):
a95a7133 2095 """GetCol(self) -> int"""
423f194a
RD
2096 return _grid.GridEvent_GetCol(*args, **kwargs)
2097
2098 def GetPosition(*args, **kwargs):
a95a7133 2099 """GetPosition(self) -> Point"""
423f194a
RD
2100 return _grid.GridEvent_GetPosition(*args, **kwargs)
2101
2102 def Selecting(*args, **kwargs):
a95a7133 2103 """Selecting(self) -> bool"""
423f194a
RD
2104 return _grid.GridEvent_Selecting(*args, **kwargs)
2105
2106 def ControlDown(*args, **kwargs):
a95a7133 2107 """ControlDown(self) -> bool"""
423f194a
RD
2108 return _grid.GridEvent_ControlDown(*args, **kwargs)
2109
2110 def MetaDown(*args, **kwargs):
a95a7133 2111 """MetaDown(self) -> bool"""
423f194a
RD
2112 return _grid.GridEvent_MetaDown(*args, **kwargs)
2113
2114 def ShiftDown(*args, **kwargs):
a95a7133 2115 """ShiftDown(self) -> bool"""
423f194a
RD
2116 return _grid.GridEvent_ShiftDown(*args, **kwargs)
2117
2118 def AltDown(*args, **kwargs):
a95a7133 2119 """AltDown(self) -> bool"""
423f194a
RD
2120 return _grid.GridEvent_AltDown(*args, **kwargs)
2121
e9d6f3a4
RD
2122 def CmdDown(*args, **kwargs):
2123 """CmdDown(self) -> bool"""
2124 return _grid.GridEvent_CmdDown(*args, **kwargs)
2125
e70b4d2d
RD
2126 Col = property(GetCol,doc="See `GetCol`")
2127 Position = property(GetPosition,doc="See `GetPosition`")
2128 Row = property(GetRow,doc="See `GetRow`")
2131d850 2129_grid.GridEvent_swigregister(GridEvent)
d14a1e28 2130
d55e5bfc 2131class GridSizeEvent(_core.NotifyEvent):
093d3ff1 2132 """Proxy of C++ GridSizeEvent class"""
554f62e9
RD
2133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2134 __repr__ = _swig_repr
2135 def __init__(self, *args, **kwargs):
41f1cec7 2136 """
f460c29d 2137 __init__(self, int id, EventType type, Grid obj, int rowOrCol=-1,
41f1cec7
RD
2138 int x=-1, int y=-1, bool control=False, bool shift=False,
2139 bool alt=False, bool meta=False) -> GridSizeEvent
2140 """
554f62e9 2141 _grid.GridSizeEvent_swiginit(self,_grid.new_GridSizeEvent(*args, **kwargs))
423f194a 2142 def GetRowOrCol(*args, **kwargs):
a95a7133 2143 """GetRowOrCol(self) -> int"""
423f194a
RD
2144 return _grid.GridSizeEvent_GetRowOrCol(*args, **kwargs)
2145
2146 def GetPosition(*args, **kwargs):
a95a7133 2147 """GetPosition(self) -> Point"""
423f194a
RD
2148 return _grid.GridSizeEvent_GetPosition(*args, **kwargs)
2149
2150 def ControlDown(*args, **kwargs):
a95a7133 2151 """ControlDown(self) -> bool"""
423f194a
RD
2152 return _grid.GridSizeEvent_ControlDown(*args, **kwargs)
2153
2154 def MetaDown(*args, **kwargs):
a95a7133 2155 """MetaDown(self) -> bool"""
423f194a
RD
2156 return _grid.GridSizeEvent_MetaDown(*args, **kwargs)
2157
2158 def ShiftDown(*args, **kwargs):
a95a7133 2159 """ShiftDown(self) -> bool"""
423f194a
RD
2160 return _grid.GridSizeEvent_ShiftDown(*args, **kwargs)
2161
2162 def AltDown(*args, **kwargs):
a95a7133 2163 """AltDown(self) -> bool"""
423f194a
RD
2164 return _grid.GridSizeEvent_AltDown(*args, **kwargs)
2165
e9d6f3a4
RD
2166 def CmdDown(*args, **kwargs):
2167 """CmdDown(self) -> bool"""
2168 return _grid.GridSizeEvent_CmdDown(*args, **kwargs)
2169
e70b4d2d
RD
2170 Position = property(GetPosition,doc="See `GetPosition`")
2171 RowOrCol = property(GetRowOrCol,doc="See `GetRowOrCol`")
2131d850 2172_grid.GridSizeEvent_swigregister(GridSizeEvent)
bf7945ce 2173
d55e5bfc 2174class GridRangeSelectEvent(_core.NotifyEvent):
093d3ff1 2175 """Proxy of C++ GridRangeSelectEvent class"""
554f62e9
RD
2176 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2177 __repr__ = _swig_repr
2178 def __init__(self, *args, **kwargs):
41f1cec7 2179 """
f460c29d 2180 __init__(self, int id, EventType type, Grid obj, GridCellCoords topLeft,
41f1cec7 2181 GridCellCoords bottomRight, bool sel=True,
f460c29d
RD
2182 bool control=False, bool shift=False, bool alt=False,
2183 bool meta=False) -> GridRangeSelectEvent
41f1cec7 2184 """
554f62e9 2185 _grid.GridRangeSelectEvent_swiginit(self,_grid.new_GridRangeSelectEvent(*args, **kwargs))
423f194a 2186 def GetTopLeftCoords(*args, **kwargs):
a95a7133 2187 """GetTopLeftCoords(self) -> GridCellCoords"""
423f194a
RD
2188 return _grid.GridRangeSelectEvent_GetTopLeftCoords(*args, **kwargs)
2189
2190 def GetBottomRightCoords(*args, **kwargs):
a95a7133 2191 """GetBottomRightCoords(self) -> GridCellCoords"""
423f194a
RD
2192 return _grid.GridRangeSelectEvent_GetBottomRightCoords(*args, **kwargs)
2193
2194 def GetTopRow(*args, **kwargs):
a95a7133 2195 """GetTopRow(self) -> int"""
423f194a
RD
2196 return _grid.GridRangeSelectEvent_GetTopRow(*args, **kwargs)
2197
2198 def GetBottomRow(*args, **kwargs):
a95a7133 2199 """GetBottomRow(self) -> int"""
423f194a
RD
2200 return _grid.GridRangeSelectEvent_GetBottomRow(*args, **kwargs)
2201
2202 def GetLeftCol(*args, **kwargs):
a95a7133 2203 """GetLeftCol(self) -> int"""
423f194a
RD
2204 return _grid.GridRangeSelectEvent_GetLeftCol(*args, **kwargs)
2205
2206 def GetRightCol(*args, **kwargs):
a95a7133 2207 """GetRightCol(self) -> int"""
423f194a
RD
2208 return _grid.GridRangeSelectEvent_GetRightCol(*args, **kwargs)
2209
2210 def Selecting(*args, **kwargs):
a95a7133 2211 """Selecting(self) -> bool"""
423f194a
RD
2212 return _grid.GridRangeSelectEvent_Selecting(*args, **kwargs)
2213
2214 def ControlDown(*args, **kwargs):
a95a7133 2215 """ControlDown(self) -> bool"""
423f194a
RD
2216 return _grid.GridRangeSelectEvent_ControlDown(*args, **kwargs)
2217
2218 def MetaDown(*args, **kwargs):
a95a7133 2219 """MetaDown(self) -> bool"""
423f194a
RD
2220 return _grid.GridRangeSelectEvent_MetaDown(*args, **kwargs)
2221
2222 def ShiftDown(*args, **kwargs):
a95a7133 2223 """ShiftDown(self) -> bool"""
423f194a
RD
2224 return _grid.GridRangeSelectEvent_ShiftDown(*args, **kwargs)
2225
2226 def AltDown(*args, **kwargs):
a95a7133 2227 """AltDown(self) -> bool"""
423f194a
RD
2228 return _grid.GridRangeSelectEvent_AltDown(*args, **kwargs)
2229
e9d6f3a4
RD
2230 def CmdDown(*args, **kwargs):
2231 """CmdDown(self) -> bool"""
2232 return _grid.GridRangeSelectEvent_CmdDown(*args, **kwargs)
2233
e70b4d2d
RD
2234 BottomRightCoords = property(GetBottomRightCoords,doc="See `GetBottomRightCoords`")
2235 BottomRow = property(GetBottomRow,doc="See `GetBottomRow`")
2236 LeftCol = property(GetLeftCol,doc="See `GetLeftCol`")
2237 RightCol = property(GetRightCol,doc="See `GetRightCol`")
2238 TopLeftCoords = property(GetTopLeftCoords,doc="See `GetTopLeftCoords`")
2239 TopRow = property(GetTopRow,doc="See `GetTopRow`")
2131d850 2240_grid.GridRangeSelectEvent_swigregister(GridRangeSelectEvent)
bf7945ce 2241
d55e5bfc 2242class GridEditorCreatedEvent(_core.CommandEvent):
093d3ff1 2243 """Proxy of C++ GridEditorCreatedEvent class"""
554f62e9
RD
2244 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2245 __repr__ = _swig_repr
2246 def __init__(self, *args, **kwargs):
41f1cec7 2247 """
f460c29d 2248 __init__(self, int id, EventType type, Object obj, int row, int col,
41f1cec7
RD
2249 Control ctrl) -> GridEditorCreatedEvent
2250 """
554f62e9 2251 _grid.GridEditorCreatedEvent_swiginit(self,_grid.new_GridEditorCreatedEvent(*args, **kwargs))
423f194a 2252 def GetRow(*args, **kwargs):
a95a7133 2253 """GetRow(self) -> int"""
423f194a
RD
2254 return _grid.GridEditorCreatedEvent_GetRow(*args, **kwargs)
2255
2256 def GetCol(*args, **kwargs):
a95a7133 2257 """GetCol(self) -> int"""
423f194a
RD
2258 return _grid.GridEditorCreatedEvent_GetCol(*args, **kwargs)
2259
2260 def GetControl(*args, **kwargs):
a95a7133 2261 """GetControl(self) -> Control"""
423f194a
RD
2262 return _grid.GridEditorCreatedEvent_GetControl(*args, **kwargs)
2263
2264 def SetRow(*args, **kwargs):
a95a7133 2265 """SetRow(self, int row)"""
423f194a
RD
2266 return _grid.GridEditorCreatedEvent_SetRow(*args, **kwargs)
2267
2268 def SetCol(*args, **kwargs):
a95a7133 2269 """SetCol(self, int col)"""
423f194a
RD
2270 return _grid.GridEditorCreatedEvent_SetCol(*args, **kwargs)
2271
2272 def SetControl(*args, **kwargs):
a95a7133 2273 """SetControl(self, Control ctrl)"""
423f194a
RD
2274 return _grid.GridEditorCreatedEvent_SetControl(*args, **kwargs)
2275
e70b4d2d
RD
2276 Col = property(GetCol,SetCol,doc="See `GetCol` and `SetCol`")
2277 Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`")
2278 Row = property(GetRow,SetRow,doc="See `GetRow` and `SetRow`")
2131d850 2279_grid.GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent)
d14a1e28
RD
2280
2281wxEVT_GRID_CELL_LEFT_CLICK = _grid.wxEVT_GRID_CELL_LEFT_CLICK
2282wxEVT_GRID_CELL_RIGHT_CLICK = _grid.wxEVT_GRID_CELL_RIGHT_CLICK
2283wxEVT_GRID_CELL_LEFT_DCLICK = _grid.wxEVT_GRID_CELL_LEFT_DCLICK
2284wxEVT_GRID_CELL_RIGHT_DCLICK = _grid.wxEVT_GRID_CELL_RIGHT_DCLICK
2285wxEVT_GRID_LABEL_LEFT_CLICK = _grid.wxEVT_GRID_LABEL_LEFT_CLICK
2286wxEVT_GRID_LABEL_RIGHT_CLICK = _grid.wxEVT_GRID_LABEL_RIGHT_CLICK
2287wxEVT_GRID_LABEL_LEFT_DCLICK = _grid.wxEVT_GRID_LABEL_LEFT_DCLICK
2288wxEVT_GRID_LABEL_RIGHT_DCLICK = _grid.wxEVT_GRID_LABEL_RIGHT_DCLICK
2289wxEVT_GRID_ROW_SIZE = _grid.wxEVT_GRID_ROW_SIZE
2290wxEVT_GRID_COL_SIZE = _grid.wxEVT_GRID_COL_SIZE
2291wxEVT_GRID_RANGE_SELECT = _grid.wxEVT_GRID_RANGE_SELECT
2292wxEVT_GRID_CELL_CHANGE = _grid.wxEVT_GRID_CELL_CHANGE
2293wxEVT_GRID_SELECT_CELL = _grid.wxEVT_GRID_SELECT_CELL
2294wxEVT_GRID_EDITOR_SHOWN = _grid.wxEVT_GRID_EDITOR_SHOWN
2295wxEVT_GRID_EDITOR_HIDDEN = _grid.wxEVT_GRID_EDITOR_HIDDEN
2296wxEVT_GRID_EDITOR_CREATED = _grid.wxEVT_GRID_EDITOR_CREATED
4cf4100f 2297wxEVT_GRID_CELL_BEGIN_DRAG = _grid.wxEVT_GRID_CELL_BEGIN_DRAG
d14a1e28
RD
2298EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK )
2299EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK )
2300EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK )
2301EVT_GRID_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK )
2302EVT_GRID_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK )
2303EVT_GRID_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK )
2304EVT_GRID_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK )
2305EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK )
2306EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE )
2307EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE )
2308EVT_GRID_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT )
2309EVT_GRID_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE )
2310EVT_GRID_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL )
2311EVT_GRID_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN )
2312EVT_GRID_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN )
2313EVT_GRID_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED )
4cf4100f 2314EVT_GRID_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG )
f6bcfd97
BP
2315
2316
6923d0a9
RD
2317# The same as above but with the ability to specify an identifier
2318EVT_GRID_CMD_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK, 1 )
2319EVT_GRID_CMD_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK, 1 )
2320EVT_GRID_CMD_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK, 1 )
2321EVT_GRID_CMD_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK, 1 )
2322EVT_GRID_CMD_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK, 1 )
2323EVT_GRID_CMD_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK, 1 )
2324EVT_GRID_CMD_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK, 1 )
2325EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 )
2326EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 )
2327EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 )
2328EVT_GRID_CMD_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT, 1 )
2329EVT_GRID_CMD_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE, 1 )
2330EVT_GRID_CMD_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL, 1 )
2331EVT_GRID_CMD_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN, 1 )
2332EVT_GRID_CMD_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN, 1 )
2333EVT_GRID_CMD_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED, 1 )
4cf4100f
RD
2334EVT_GRID_CMD_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG, 1 )
2335
6923d0a9
RD
2336
2337
7449af73 2338