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