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