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