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