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