1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for implementing a spreadsheet-like control.
13 __docfilter__
= wx
.__DocFilter
(globals())
14 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
15 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
16 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
17 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
18 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
19 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
20 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
21 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
22 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
23 GRID_DEFAULT_NUMBER_ROWS
= _grid
.GRID_DEFAULT_NUMBER_ROWS
24 GRID_DEFAULT_NUMBER_COLS
= _grid
.GRID_DEFAULT_NUMBER_COLS
25 GRID_DEFAULT_ROW_HEIGHT
= _grid
.GRID_DEFAULT_ROW_HEIGHT
26 GRID_DEFAULT_COL_WIDTH
= _grid
.GRID_DEFAULT_COL_WIDTH
27 GRID_DEFAULT_COL_LABEL_HEIGHT
= _grid
.GRID_DEFAULT_COL_LABEL_HEIGHT
28 GRID_DEFAULT_ROW_LABEL_WIDTH
= _grid
.GRID_DEFAULT_ROW_LABEL_WIDTH
29 GRID_LABEL_EDGE_ZONE
= _grid
.GRID_LABEL_EDGE_ZONE
30 GRID_MIN_ROW_HEIGHT
= _grid
.GRID_MIN_ROW_HEIGHT
31 GRID_MIN_COL_WIDTH
= _grid
.GRID_MIN_COL_WIDTH
32 GRID_DEFAULT_SCROLLBAR_WIDTH
= _grid
.GRID_DEFAULT_SCROLLBAR_WIDTH
33 class GridCellRenderer(object):
34 def __init__(self
): raise RuntimeError, "No constructor defined"
36 return "<%s.%s; proxy of C++ wxGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
37 def _setOORInfo(*args
, **kwargs
):
38 """_setOORInfo(self, PyObject _self)"""
39 return _grid
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
41 def SetParameters(*args
, **kwargs
):
42 """SetParameters(self, String params)"""
43 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
45 def IncRef(*args
, **kwargs
):
47 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
49 def DecRef(*args
, **kwargs
):
51 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
53 def Draw(*args
, **kwargs
):
55 Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
56 int col, bool isSelected)
58 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
60 def GetBestSize(*args
, **kwargs
):
61 """GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
62 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
64 def Clone(*args
, **kwargs
):
65 """Clone(self) -> GridCellRenderer"""
66 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
69 class GridCellRendererPtr(GridCellRenderer
):
70 def __init__(self
, this
):
72 if not hasattr(self
,"thisown"): self
.thisown
= 0
73 self
.__class
__ = GridCellRenderer
74 _grid
.GridCellRenderer_swigregister(GridCellRendererPtr
)
76 DateTimeFormatStr
= cvar
.DateTimeFormatStr
77 GridNoCellCoords
= cvar
.GridNoCellCoords
78 GridNoCellRect
= cvar
.GridNoCellRect
80 class PyGridCellRenderer(GridCellRenderer
):
82 return "<%s.%s; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
83 def __init__(self
, *args
, **kwargs
):
84 """__init__(self) -> PyGridCellRenderer"""
85 newobj
= _grid
.new_PyGridCellRenderer(*args
, **kwargs
)
86 self
.this
= newobj
.this
89 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
91 def _setCallbackInfo(*args
, **kwargs
):
92 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
93 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
95 def base_SetParameters(*args
, **kwargs
):
96 """base_SetParameters(self, String params)"""
97 return _grid
.PyGridCellRenderer_base_SetParameters(*args
, **kwargs
)
100 class PyGridCellRendererPtr(PyGridCellRenderer
):
101 def __init__(self
, this
):
103 if not hasattr(self
,"thisown"): self
.thisown
= 0
104 self
.__class
__ = PyGridCellRenderer
105 _grid
.PyGridCellRenderer_swigregister(PyGridCellRendererPtr
)
107 class GridCellStringRenderer(GridCellRenderer
):
109 return "<%s.%s; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
110 def __init__(self
, *args
, **kwargs
):
111 """__init__(self) -> GridCellStringRenderer"""
112 newobj
= _grid
.new_GridCellStringRenderer(*args
, **kwargs
)
113 self
.this
= newobj
.this
116 self
._setOORInfo
(self
)
119 class GridCellStringRendererPtr(GridCellStringRenderer
):
120 def __init__(self
, this
):
122 if not hasattr(self
,"thisown"): self
.thisown
= 0
123 self
.__class
__ = GridCellStringRenderer
124 _grid
.GridCellStringRenderer_swigregister(GridCellStringRendererPtr
)
126 class GridCellNumberRenderer(GridCellStringRenderer
):
128 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
129 def __init__(self
, *args
, **kwargs
):
130 """__init__(self) -> GridCellNumberRenderer"""
131 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
132 self
.this
= newobj
.this
135 self
._setOORInfo
(self
)
138 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
139 def __init__(self
, this
):
141 if not hasattr(self
,"thisown"): self
.thisown
= 0
142 self
.__class
__ = GridCellNumberRenderer
143 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
145 class GridCellFloatRenderer(GridCellStringRenderer
):
147 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
148 def __init__(self
, *args
, **kwargs
):
149 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
150 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
151 self
.this
= newobj
.this
154 self
._setOORInfo
(self
)
156 def GetWidth(*args
, **kwargs
):
157 """GetWidth(self) -> int"""
158 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
160 def SetWidth(*args
, **kwargs
):
161 """SetWidth(self, int width)"""
162 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
164 def GetPrecision(*args
, **kwargs
):
165 """GetPrecision(self) -> int"""
166 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
168 def SetPrecision(*args
, **kwargs
):
169 """SetPrecision(self, int precision)"""
170 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
173 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
174 def __init__(self
, this
):
176 if not hasattr(self
,"thisown"): self
.thisown
= 0
177 self
.__class
__ = GridCellFloatRenderer
178 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
180 class GridCellBoolRenderer(GridCellRenderer
):
182 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
183 def __init__(self
, *args
, **kwargs
):
184 """__init__(self) -> GridCellBoolRenderer"""
185 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
186 self
.this
= newobj
.this
189 self
._setOORInfo
(self
)
192 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
193 def __init__(self
, this
):
195 if not hasattr(self
,"thisown"): self
.thisown
= 0
196 self
.__class
__ = GridCellBoolRenderer
197 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
199 class GridCellDateTimeRenderer(GridCellStringRenderer
):
201 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
202 def __init__(self
, *args
, **kwargs
):
203 """__init__(self, String outformat=DateTimeFormatStr, String informat=DateTimeFormatStr) -> GridCellDateTimeRenderer"""
204 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
205 self
.this
= newobj
.this
208 self
._setOORInfo
(self
)
211 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
212 def __init__(self
, this
):
214 if not hasattr(self
,"thisown"): self
.thisown
= 0
215 self
.__class
__ = GridCellDateTimeRenderer
216 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
218 class GridCellEnumRenderer(GridCellStringRenderer
):
220 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
221 def __init__(self
, *args
, **kwargs
):
222 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
223 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
224 self
.this
= newobj
.this
227 self
._setOORInfo
(self
)
230 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
231 def __init__(self
, this
):
233 if not hasattr(self
,"thisown"): self
.thisown
= 0
234 self
.__class
__ = GridCellEnumRenderer
235 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
237 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
239 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
240 def __init__(self
, *args
, **kwargs
):
241 """__init__(self) -> GridCellAutoWrapStringRenderer"""
242 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
243 self
.this
= newobj
.this
246 self
._setOORInfo
(self
)
249 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
250 def __init__(self
, this
):
252 if not hasattr(self
,"thisown"): self
.thisown
= 0
253 self
.__class
__ = GridCellAutoWrapStringRenderer
254 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
256 class GridCellEditor(object):
257 def __init__(self
): raise RuntimeError, "No constructor defined"
259 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
260 def _setOORInfo(*args
, **kwargs
):
261 """_setOORInfo(self, PyObject _self)"""
262 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
264 def IsCreated(*args
, **kwargs
):
265 """IsCreated(self) -> bool"""
266 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
268 def GetControl(*args
, **kwargs
):
269 """GetControl(self) -> Control"""
270 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
272 def SetControl(*args
, **kwargs
):
273 """SetControl(self, Control control)"""
274 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
276 def GetCellAttr(*args
, **kwargs
):
277 """GetCellAttr(self) -> GridCellAttr"""
278 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
280 def SetCellAttr(*args
, **kwargs
):
281 """SetCellAttr(self, GridCellAttr attr)"""
282 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
284 def SetParameters(*args
, **kwargs
):
285 """SetParameters(self, String params)"""
286 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
288 def IncRef(*args
, **kwargs
):
290 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
292 def DecRef(*args
, **kwargs
):
294 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
296 def Create(*args
, **kwargs
):
297 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
298 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
300 def BeginEdit(*args
, **kwargs
):
301 """BeginEdit(self, int row, int col, Grid grid)"""
302 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
304 def EndEdit(*args
, **kwargs
):
305 """EndEdit(self, int row, int col, Grid grid) -> bool"""
306 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
308 def Reset(*args
, **kwargs
):
310 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
312 def Clone(*args
, **kwargs
):
313 """Clone(self) -> GridCellEditor"""
314 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
316 def SetSize(*args
, **kwargs
):
317 """SetSize(self, Rect rect)"""
318 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
320 def Show(*args
, **kwargs
):
321 """Show(self, bool show, GridCellAttr attr=None)"""
322 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
324 def PaintBackground(*args
, **kwargs
):
325 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
326 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
328 def IsAcceptedKey(*args
, **kwargs
):
329 """IsAcceptedKey(self, KeyEvent event) -> bool"""
330 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
332 def StartingKey(*args
, **kwargs
):
333 """StartingKey(self, KeyEvent event)"""
334 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
336 def StartingClick(*args
, **kwargs
):
337 """StartingClick(self)"""
338 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
340 def HandleReturn(*args
, **kwargs
):
341 """HandleReturn(self, KeyEvent event)"""
342 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
344 def Destroy(*args
, **kwargs
):
346 return _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
349 class GridCellEditorPtr(GridCellEditor
):
350 def __init__(self
, this
):
352 if not hasattr(self
,"thisown"): self
.thisown
= 0
353 self
.__class
__ = GridCellEditor
354 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
356 class PyGridCellEditor(GridCellEditor
):
358 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
359 def __init__(self
, *args
, **kwargs
):
360 """__init__(self) -> PyGridCellEditor"""
361 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
362 self
.this
= newobj
.this
365 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
367 def _setCallbackInfo(*args
, **kwargs
):
368 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
369 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
371 def base_SetSize(*args
, **kwargs
):
372 """base_SetSize(self, Rect rect)"""
373 return _grid
.PyGridCellEditor_base_SetSize(*args
, **kwargs
)
375 def base_Show(*args
, **kwargs
):
376 """base_Show(self, bool show, GridCellAttr attr=None)"""
377 return _grid
.PyGridCellEditor_base_Show(*args
, **kwargs
)
379 def base_PaintBackground(*args
, **kwargs
):
380 """base_PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
381 return _grid
.PyGridCellEditor_base_PaintBackground(*args
, **kwargs
)
383 def base_IsAcceptedKey(*args
, **kwargs
):
384 """base_IsAcceptedKey(self, KeyEvent event) -> bool"""
385 return _grid
.PyGridCellEditor_base_IsAcceptedKey(*args
, **kwargs
)
387 def base_StartingKey(*args
, **kwargs
):
388 """base_StartingKey(self, KeyEvent event)"""
389 return _grid
.PyGridCellEditor_base_StartingKey(*args
, **kwargs
)
391 def base_StartingClick(*args
, **kwargs
):
392 """base_StartingClick(self)"""
393 return _grid
.PyGridCellEditor_base_StartingClick(*args
, **kwargs
)
395 def base_HandleReturn(*args
, **kwargs
):
396 """base_HandleReturn(self, KeyEvent event)"""
397 return _grid
.PyGridCellEditor_base_HandleReturn(*args
, **kwargs
)
399 def base_Destroy(*args
, **kwargs
):
400 """base_Destroy(self)"""
401 return _grid
.PyGridCellEditor_base_Destroy(*args
, **kwargs
)
403 def base_SetParameters(*args
, **kwargs
):
404 """base_SetParameters(self, String params)"""
405 return _grid
.PyGridCellEditor_base_SetParameters(*args
, **kwargs
)
408 class PyGridCellEditorPtr(PyGridCellEditor
):
409 def __init__(self
, this
):
411 if not hasattr(self
,"thisown"): self
.thisown
= 0
412 self
.__class
__ = PyGridCellEditor
413 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
415 class GridCellTextEditor(GridCellEditor
):
417 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
418 def __init__(self
, *args
, **kwargs
):
419 """__init__(self) -> GridCellTextEditor"""
420 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
421 self
.this
= newobj
.this
424 self
._setOORInfo
(self
)
426 def GetValue(*args
, **kwargs
):
427 """GetValue(self) -> String"""
428 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
431 class GridCellTextEditorPtr(GridCellTextEditor
):
432 def __init__(self
, this
):
434 if not hasattr(self
,"thisown"): self
.thisown
= 0
435 self
.__class
__ = GridCellTextEditor
436 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
438 class GridCellNumberEditor(GridCellTextEditor
):
440 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
441 def __init__(self
, *args
, **kwargs
):
442 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
443 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
444 self
.this
= newobj
.this
447 self
._setOORInfo
(self
)
449 def GetValue(*args
, **kwargs
):
450 """GetValue(self) -> String"""
451 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
454 class GridCellNumberEditorPtr(GridCellNumberEditor
):
455 def __init__(self
, this
):
457 if not hasattr(self
,"thisown"): self
.thisown
= 0
458 self
.__class
__ = GridCellNumberEditor
459 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
461 class GridCellFloatEditor(GridCellTextEditor
):
463 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
464 def __init__(self
, *args
, **kwargs
):
465 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
466 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
467 self
.this
= newobj
.this
470 self
._setOORInfo
(self
)
472 def GetValue(*args
, **kwargs
):
473 """GetValue(self) -> String"""
474 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
477 class GridCellFloatEditorPtr(GridCellFloatEditor
):
478 def __init__(self
, this
):
480 if not hasattr(self
,"thisown"): self
.thisown
= 0
481 self
.__class
__ = GridCellFloatEditor
482 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
484 class GridCellBoolEditor(GridCellEditor
):
486 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
487 def __init__(self
, *args
, **kwargs
):
488 """__init__(self) -> GridCellBoolEditor"""
489 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
490 self
.this
= newobj
.this
493 self
._setOORInfo
(self
)
495 def GetValue(*args
, **kwargs
):
496 """GetValue(self) -> String"""
497 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
500 class GridCellBoolEditorPtr(GridCellBoolEditor
):
501 def __init__(self
, this
):
503 if not hasattr(self
,"thisown"): self
.thisown
= 0
504 self
.__class
__ = GridCellBoolEditor
505 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
507 class GridCellChoiceEditor(GridCellEditor
):
509 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
510 def __init__(self
, *args
, **kwargs
):
511 """__init__(self, int choices=0, String choices_array=None, bool allowOthers=False) -> GridCellChoiceEditor"""
512 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
513 self
.this
= newobj
.this
516 self
._setOORInfo
(self
)
518 def GetValue(*args
, **kwargs
):
519 """GetValue(self) -> String"""
520 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
523 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
524 def __init__(self
, this
):
526 if not hasattr(self
,"thisown"): self
.thisown
= 0
527 self
.__class
__ = GridCellChoiceEditor
528 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
530 class GridCellEnumEditor(GridCellChoiceEditor
):
532 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
533 def __init__(self
, *args
, **kwargs
):
534 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
535 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
536 self
.this
= newobj
.this
539 self
._setOORInfo
(self
)
541 def GetValue(*args
, **kwargs
):
542 """GetValue(self) -> String"""
543 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
546 class GridCellEnumEditorPtr(GridCellEnumEditor
):
547 def __init__(self
, this
):
549 if not hasattr(self
,"thisown"): self
.thisown
= 0
550 self
.__class
__ = GridCellEnumEditor
551 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
553 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
555 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
556 def __init__(self
, *args
, **kwargs
):
557 """__init__(self) -> GridCellAutoWrapStringEditor"""
558 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
559 self
.this
= newobj
.this
562 self
._setOORInfo
(self
)
564 def GetValue(*args
, **kwargs
):
565 """GetValue(self) -> String"""
566 return _grid
.GridCellAutoWrapStringEditor_GetValue(*args
, **kwargs
)
569 class GridCellAutoWrapStringEditorPtr(GridCellAutoWrapStringEditor
):
570 def __init__(self
, this
):
572 if not hasattr(self
,"thisown"): self
.thisown
= 0
573 self
.__class
__ = GridCellAutoWrapStringEditor
574 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditorPtr
)
576 class GridCellAttr(object):
578 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
579 Any
= _grid
.GridCellAttr_Any
580 Default
= _grid
.GridCellAttr_Default
581 Cell
= _grid
.GridCellAttr_Cell
582 Row
= _grid
.GridCellAttr_Row
583 Col
= _grid
.GridCellAttr_Col
584 Merged
= _grid
.GridCellAttr_Merged
585 def _setOORInfo(*args
, **kwargs
):
586 """_setOORInfo(self, PyObject _self)"""
587 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
589 def __init__(self
, *args
, **kwargs
):
590 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
591 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
592 self
.this
= newobj
.this
595 self
._setOORInfo
(self
)
597 def Clone(*args
, **kwargs
):
598 """Clone(self) -> GridCellAttr"""
599 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
601 def MergeWith(*args
, **kwargs
):
602 """MergeWith(self, GridCellAttr mergefrom)"""
603 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
605 def IncRef(*args
, **kwargs
):
607 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
609 def DecRef(*args
, **kwargs
):
611 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
613 def SetTextColour(*args
, **kwargs
):
614 """SetTextColour(self, Colour colText)"""
615 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
617 def SetBackgroundColour(*args
, **kwargs
):
618 """SetBackgroundColour(self, Colour colBack)"""
619 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
621 def SetFont(*args
, **kwargs
):
622 """SetFont(self, Font font)"""
623 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
625 def SetAlignment(*args
, **kwargs
):
626 """SetAlignment(self, int hAlign, int vAlign)"""
627 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
629 def SetSize(*args
, **kwargs
):
630 """SetSize(self, int num_rows, int num_cols)"""
631 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
633 def SetOverflow(*args
, **kwargs
):
634 """SetOverflow(self, bool allow=True)"""
635 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
637 def SetReadOnly(*args
, **kwargs
):
638 """SetReadOnly(self, bool isReadOnly=True)"""
639 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
641 def SetRenderer(*args
, **kwargs
):
642 """SetRenderer(self, GridCellRenderer renderer)"""
643 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
645 def SetEditor(*args
, **kwargs
):
646 """SetEditor(self, GridCellEditor editor)"""
647 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
649 def SetKind(*args
, **kwargs
):
650 """SetKind(self, int kind)"""
651 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
653 def HasTextColour(*args
, **kwargs
):
654 """HasTextColour(self) -> bool"""
655 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
657 def HasBackgroundColour(*args
, **kwargs
):
658 """HasBackgroundColour(self) -> bool"""
659 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
661 def HasFont(*args
, **kwargs
):
662 """HasFont(self) -> bool"""
663 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
665 def HasAlignment(*args
, **kwargs
):
666 """HasAlignment(self) -> bool"""
667 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
669 def HasRenderer(*args
, **kwargs
):
670 """HasRenderer(self) -> bool"""
671 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
673 def HasEditor(*args
, **kwargs
):
674 """HasEditor(self) -> bool"""
675 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
677 def HasReadWriteMode(*args
, **kwargs
):
678 """HasReadWriteMode(self) -> bool"""
679 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
681 def HasOverflowMode(*args
, **kwargs
):
682 """HasOverflowMode(self) -> bool"""
683 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
685 def GetTextColour(*args
, **kwargs
):
686 """GetTextColour(self) -> Colour"""
687 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
689 def GetBackgroundColour(*args
, **kwargs
):
690 """GetBackgroundColour(self) -> Colour"""
691 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
693 def GetFont(*args
, **kwargs
):
694 """GetFont(self) -> Font"""
695 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
697 def GetAlignment(*args
, **kwargs
):
698 """GetAlignment() -> (hAlign, vAlign)"""
699 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
701 def GetSize(*args
, **kwargs
):
702 """GetSize() -> (num_rows, num_cols)"""
703 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
705 def GetOverflow(*args
, **kwargs
):
706 """GetOverflow(self) -> bool"""
707 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
709 def GetRenderer(*args
, **kwargs
):
710 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
711 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
713 def GetEditor(*args
, **kwargs
):
714 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
715 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
717 def IsReadOnly(*args
, **kwargs
):
718 """IsReadOnly(self) -> bool"""
719 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
721 def GetKind(*args
, **kwargs
):
722 """GetKind(self) -> int"""
723 return _grid
.GridCellAttr_GetKind(*args
, **kwargs
)
725 def SetDefAttr(*args
, **kwargs
):
726 """SetDefAttr(self, GridCellAttr defAttr)"""
727 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
730 class GridCellAttrPtr(GridCellAttr
):
731 def __init__(self
, this
):
733 if not hasattr(self
,"thisown"): self
.thisown
= 0
734 self
.__class
__ = GridCellAttr
735 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
737 class GridCellAttrProvider(object):
739 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
740 def __init__(self
, *args
, **kwargs
):
741 """__init__(self) -> GridCellAttrProvider"""
742 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
743 self
.this
= newobj
.this
746 self
._setOORInfo
(self
)
748 def _setOORInfo(*args
, **kwargs
):
749 """_setOORInfo(self, PyObject _self)"""
750 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
752 def GetAttr(*args
, **kwargs
):
753 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
754 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
756 def SetAttr(*args
, **kwargs
):
757 """SetAttr(self, GridCellAttr attr, int row, int col)"""
758 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
760 def SetRowAttr(*args
, **kwargs
):
761 """SetRowAttr(self, GridCellAttr attr, int row)"""
762 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
764 def SetColAttr(*args
, **kwargs
):
765 """SetColAttr(self, GridCellAttr attr, int col)"""
766 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
768 def UpdateAttrRows(*args
, **kwargs
):
769 """UpdateAttrRows(self, size_t pos, int numRows)"""
770 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
772 def UpdateAttrCols(*args
, **kwargs
):
773 """UpdateAttrCols(self, size_t pos, int numCols)"""
774 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
777 class GridCellAttrProviderPtr(GridCellAttrProvider
):
778 def __init__(self
, this
):
780 if not hasattr(self
,"thisown"): self
.thisown
= 0
781 self
.__class
__ = GridCellAttrProvider
782 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
784 class PyGridCellAttrProvider(GridCellAttrProvider
):
786 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
787 def __init__(self
, *args
, **kwargs
):
788 """__init__(self) -> PyGridCellAttrProvider"""
789 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
790 self
.this
= newobj
.this
793 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
795 def _setCallbackInfo(*args
, **kwargs
):
796 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
797 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
799 def base_GetAttr(*args
, **kwargs
):
800 """base_GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
801 return _grid
.PyGridCellAttrProvider_base_GetAttr(*args
, **kwargs
)
803 def base_SetAttr(*args
, **kwargs
):
804 """base_SetAttr(self, GridCellAttr attr, int row, int col)"""
805 return _grid
.PyGridCellAttrProvider_base_SetAttr(*args
, **kwargs
)
807 def base_SetRowAttr(*args
, **kwargs
):
808 """base_SetRowAttr(self, GridCellAttr attr, int row)"""
809 return _grid
.PyGridCellAttrProvider_base_SetRowAttr(*args
, **kwargs
)
811 def base_SetColAttr(*args
, **kwargs
):
812 """base_SetColAttr(self, GridCellAttr attr, int col)"""
813 return _grid
.PyGridCellAttrProvider_base_SetColAttr(*args
, **kwargs
)
816 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
817 def __init__(self
, this
):
819 if not hasattr(self
,"thisown"): self
.thisown
= 0
820 self
.__class
__ = PyGridCellAttrProvider
821 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
823 class GridTableBase(_core
.Object
):
824 def __init__(self
): raise RuntimeError, "No constructor defined"
826 return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
827 def _setOORInfo(*args
, **kwargs
):
828 """_setOORInfo(self, PyObject _self)"""
829 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
831 def SetAttrProvider(*args
, **kwargs
):
832 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
833 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
835 def GetAttrProvider(*args
, **kwargs
):
836 """GetAttrProvider(self) -> GridCellAttrProvider"""
837 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
839 def SetView(*args
, **kwargs
):
840 """SetView(self, Grid grid)"""
841 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
843 def GetView(*args
, **kwargs
):
844 """GetView(self) -> Grid"""
845 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
847 def GetNumberRows(*args
, **kwargs
):
848 """GetNumberRows(self) -> int"""
849 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
851 def GetNumberCols(*args
, **kwargs
):
852 """GetNumberCols(self) -> int"""
853 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
855 def IsEmptyCell(*args
, **kwargs
):
856 """IsEmptyCell(self, int row, int col) -> bool"""
857 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
859 def GetValue(*args
, **kwargs
):
860 """GetValue(self, int row, int col) -> String"""
861 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
863 def SetValue(*args
, **kwargs
):
864 """SetValue(self, int row, int col, String value)"""
865 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
867 def GetTypeName(*args
, **kwargs
):
868 """GetTypeName(self, int row, int col) -> String"""
869 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
871 def CanGetValueAs(*args
, **kwargs
):
872 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
873 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
875 def CanSetValueAs(*args
, **kwargs
):
876 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
877 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
879 def GetValueAsLong(*args
, **kwargs
):
880 """GetValueAsLong(self, int row, int col) -> long"""
881 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
883 def GetValueAsDouble(*args
, **kwargs
):
884 """GetValueAsDouble(self, int row, int col) -> double"""
885 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
887 def GetValueAsBool(*args
, **kwargs
):
888 """GetValueAsBool(self, int row, int col) -> bool"""
889 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
891 def SetValueAsLong(*args
, **kwargs
):
892 """SetValueAsLong(self, int row, int col, long value)"""
893 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
895 def SetValueAsDouble(*args
, **kwargs
):
896 """SetValueAsDouble(self, int row, int col, double value)"""
897 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
899 def SetValueAsBool(*args
, **kwargs
):
900 """SetValueAsBool(self, int row, int col, bool value)"""
901 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
903 def Clear(*args
, **kwargs
):
905 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
907 def InsertRows(*args
, **kwargs
):
908 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
909 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
911 def AppendRows(*args
, **kwargs
):
912 """AppendRows(self, size_t numRows=1) -> bool"""
913 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
915 def DeleteRows(*args
, **kwargs
):
916 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
917 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
919 def InsertCols(*args
, **kwargs
):
920 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
921 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
923 def AppendCols(*args
, **kwargs
):
924 """AppendCols(self, size_t numCols=1) -> bool"""
925 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
927 def DeleteCols(*args
, **kwargs
):
928 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
929 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
931 def GetRowLabelValue(*args
, **kwargs
):
932 """GetRowLabelValue(self, int row) -> String"""
933 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
935 def GetColLabelValue(*args
, **kwargs
):
936 """GetColLabelValue(self, int col) -> String"""
937 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
939 def SetRowLabelValue(*args
, **kwargs
):
940 """SetRowLabelValue(self, int row, String value)"""
941 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
943 def SetColLabelValue(*args
, **kwargs
):
944 """SetColLabelValue(self, int col, String value)"""
945 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
947 def CanHaveAttributes(*args
, **kwargs
):
948 """CanHaveAttributes(self) -> bool"""
949 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
951 def GetAttr(*args
, **kwargs
):
952 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
953 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
955 def SetAttr(*args
, **kwargs
):
956 """SetAttr(self, GridCellAttr attr, int row, int col)"""
957 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
959 def SetRowAttr(*args
, **kwargs
):
960 """SetRowAttr(self, GridCellAttr attr, int row)"""
961 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
963 def SetColAttr(*args
, **kwargs
):
964 """SetColAttr(self, GridCellAttr attr, int col)"""
965 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
968 class GridTableBasePtr(GridTableBase
):
969 def __init__(self
, this
):
971 if not hasattr(self
,"thisown"): self
.thisown
= 0
972 self
.__class
__ = GridTableBase
973 _grid
.GridTableBase_swigregister(GridTableBasePtr
)
975 class PyGridTableBase(GridTableBase
):
977 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
978 def __init__(self
, *args
, **kwargs
):
979 """__init__(self) -> PyGridTableBase"""
980 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
981 self
.this
= newobj
.this
984 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
986 def _setCallbackInfo(*args
, **kwargs
):
987 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
988 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
990 def Destroy(*args
, **kwargs
):
994 Deletes the C++ object this Python object is a proxy for.
996 return _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
998 def base_GetTypeName(*args
, **kwargs
):
999 """base_GetTypeName(self, int row, int col) -> String"""
1000 return _grid
.PyGridTableBase_base_GetTypeName(*args
, **kwargs
)
1002 def base_CanGetValueAs(*args
, **kwargs
):
1003 """base_CanGetValueAs(self, int row, int col, String typeName) -> bool"""
1004 return _grid
.PyGridTableBase_base_CanGetValueAs(*args
, **kwargs
)
1006 def base_CanSetValueAs(*args
, **kwargs
):
1007 """base_CanSetValueAs(self, int row, int col, String typeName) -> bool"""
1008 return _grid
.PyGridTableBase_base_CanSetValueAs(*args
, **kwargs
)
1010 def base_Clear(*args
, **kwargs
):
1011 """base_Clear(self)"""
1012 return _grid
.PyGridTableBase_base_Clear(*args
, **kwargs
)
1014 def base_InsertRows(*args
, **kwargs
):
1015 """base_InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1016 return _grid
.PyGridTableBase_base_InsertRows(*args
, **kwargs
)
1018 def base_AppendRows(*args
, **kwargs
):
1019 """base_AppendRows(self, size_t numRows=1) -> bool"""
1020 return _grid
.PyGridTableBase_base_AppendRows(*args
, **kwargs
)
1022 def base_DeleteRows(*args
, **kwargs
):
1023 """base_DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1024 return _grid
.PyGridTableBase_base_DeleteRows(*args
, **kwargs
)
1026 def base_InsertCols(*args
, **kwargs
):
1027 """base_InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1028 return _grid
.PyGridTableBase_base_InsertCols(*args
, **kwargs
)
1030 def base_AppendCols(*args
, **kwargs
):
1031 """base_AppendCols(self, size_t numCols=1) -> bool"""
1032 return _grid
.PyGridTableBase_base_AppendCols(*args
, **kwargs
)
1034 def base_DeleteCols(*args
, **kwargs
):
1035 """base_DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1036 return _grid
.PyGridTableBase_base_DeleteCols(*args
, **kwargs
)
1038 def base_GetRowLabelValue(*args
, **kwargs
):
1039 """base_GetRowLabelValue(self, int row) -> String"""
1040 return _grid
.PyGridTableBase_base_GetRowLabelValue(*args
, **kwargs
)
1042 def base_GetColLabelValue(*args
, **kwargs
):
1043 """base_GetColLabelValue(self, int col) -> String"""
1044 return _grid
.PyGridTableBase_base_GetColLabelValue(*args
, **kwargs
)
1046 def base_SetRowLabelValue(*args
, **kwargs
):
1047 """base_SetRowLabelValue(self, int row, String value)"""
1048 return _grid
.PyGridTableBase_base_SetRowLabelValue(*args
, **kwargs
)
1050 def base_SetColLabelValue(*args
, **kwargs
):
1051 """base_SetColLabelValue(self, int col, String value)"""
1052 return _grid
.PyGridTableBase_base_SetColLabelValue(*args
, **kwargs
)
1054 def base_CanHaveAttributes(*args
, **kwargs
):
1055 """base_CanHaveAttributes(self) -> bool"""
1056 return _grid
.PyGridTableBase_base_CanHaveAttributes(*args
, **kwargs
)
1058 def base_GetAttr(*args
, **kwargs
):
1059 """base_GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
1060 return _grid
.PyGridTableBase_base_GetAttr(*args
, **kwargs
)
1062 def base_SetAttr(*args
, **kwargs
):
1063 """base_SetAttr(self, GridCellAttr attr, int row, int col)"""
1064 return _grid
.PyGridTableBase_base_SetAttr(*args
, **kwargs
)
1066 def base_SetRowAttr(*args
, **kwargs
):
1067 """base_SetRowAttr(self, GridCellAttr attr, int row)"""
1068 return _grid
.PyGridTableBase_base_SetRowAttr(*args
, **kwargs
)
1070 def base_SetColAttr(*args
, **kwargs
):
1071 """base_SetColAttr(self, GridCellAttr attr, int col)"""
1072 return _grid
.PyGridTableBase_base_SetColAttr(*args
, **kwargs
)
1075 class PyGridTableBasePtr(PyGridTableBase
):
1076 def __init__(self
, this
):
1078 if not hasattr(self
,"thisown"): self
.thisown
= 0
1079 self
.__class
__ = PyGridTableBase
1080 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1082 class GridStringTable(GridTableBase
):
1084 return "<%s.%s; proxy of C++ wxGridStringTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1085 def __init__(self
, *args
, **kwargs
):
1086 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1087 newobj
= _grid
.new_GridStringTable(*args
, **kwargs
)
1088 self
.this
= newobj
.this
1091 self
._setOORInfo
(self
)
1094 class GridStringTablePtr(GridStringTable
):
1095 def __init__(self
, this
):
1097 if not hasattr(self
,"thisown"): self
.thisown
= 0
1098 self
.__class
__ = GridStringTable
1099 _grid
.GridStringTable_swigregister(GridStringTablePtr
)
1101 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1102 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1103 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1104 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1105 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1106 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1107 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1108 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1109 class GridTableMessage(object):
1111 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1112 def __init__(self
, *args
, **kwargs
):
1113 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1114 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1115 self
.this
= newobj
.this
1118 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1121 if self
.thisown
: destroy(self
)
1124 def SetTableObject(*args
, **kwargs
):
1125 """SetTableObject(self, GridTableBase table)"""
1126 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1128 def GetTableObject(*args
, **kwargs
):
1129 """GetTableObject(self) -> GridTableBase"""
1130 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1132 def SetId(*args
, **kwargs
):
1133 """SetId(self, int id)"""
1134 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1136 def GetId(*args
, **kwargs
):
1137 """GetId(self) -> int"""
1138 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1140 def SetCommandInt(*args
, **kwargs
):
1141 """SetCommandInt(self, int comInt1)"""
1142 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1144 def GetCommandInt(*args
, **kwargs
):
1145 """GetCommandInt(self) -> int"""
1146 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1148 def SetCommandInt2(*args
, **kwargs
):
1149 """SetCommandInt2(self, int comInt2)"""
1150 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1152 def GetCommandInt2(*args
, **kwargs
):
1153 """GetCommandInt2(self) -> int"""
1154 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1157 class GridTableMessagePtr(GridTableMessage
):
1158 def __init__(self
, this
):
1160 if not hasattr(self
,"thisown"): self
.thisown
= 0
1161 self
.__class
__ = GridTableMessage
1162 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1164 class GridCellCoords(object):
1166 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1167 def __init__(self
, *args
, **kwargs
):
1168 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1169 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1170 self
.this
= newobj
.this
1173 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1176 if self
.thisown
: destroy(self
)
1179 def GetRow(*args
, **kwargs
):
1180 """GetRow(self) -> int"""
1181 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1183 def SetRow(*args
, **kwargs
):
1184 """SetRow(self, int n)"""
1185 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1187 def GetCol(*args
, **kwargs
):
1188 """GetCol(self) -> int"""
1189 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1191 def SetCol(*args
, **kwargs
):
1192 """SetCol(self, int n)"""
1193 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1195 def Set(*args
, **kwargs
):
1196 """Set(self, int row, int col)"""
1197 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1199 def __eq__(*args
, **kwargs
):
1200 """__eq__(self, GridCellCoords other) -> bool"""
1201 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1203 def __ne__(*args
, **kwargs
):
1204 """__ne__(self, GridCellCoords other) -> bool"""
1205 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1207 def Get(*args
, **kwargs
):
1208 """Get(self) -> PyObject"""
1209 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1211 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1212 def __str__(self
): return str(self
.Get())
1213 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1214 def __len__(self
): return len(self
.Get())
1215 def __getitem__(self
, index
): return self
.asTuple()[index
]
1216 def __setitem__(self
, index
, val
):
1217 if index
== 0: self
.SetRow(val
)
1218 elif index
== 1: self
.SetCol(val
)
1219 else: raise IndexError
1222 class GridCellCoordsPtr(GridCellCoords
):
1223 def __init__(self
, this
):
1225 if not hasattr(self
,"thisown"): self
.thisown
= 0
1226 self
.__class
__ = GridCellCoords
1227 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1229 class Grid(_windows
.ScrolledWindow
):
1231 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1232 def __init__(self
, *args
, **kwargs
):
1234 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1235 Size size=DefaultSize, long style=WANTS_CHARS,
1236 String name=PanelNameStr) -> Grid
1238 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1239 self
.this
= newobj
.this
1242 self
._setOORInfo
(self
)
1244 def Create(*args
, **kwargs
):
1246 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1247 Size size=DefaultSize, long style=WANTS_CHARS,
1248 String name=PanelNameStr) -> bool
1250 return _grid
.Grid_Create(*args
, **kwargs
)
1252 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1253 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1254 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1255 SelectCells
= wxGridSelectCells
1256 SelectRows
= wxGridSelectRows
1257 SelectColumns
= wxGridSelectColumns
1259 def CreateGrid(*args
, **kwargs
):
1260 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1261 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1263 def SetSelectionMode(*args
, **kwargs
):
1264 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1265 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1267 def GetSelectionMode(*args
, **kwargs
):
1268 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1269 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1271 def GetNumberRows(*args
, **kwargs
):
1272 """GetNumberRows(self) -> int"""
1273 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1275 def GetNumberCols(*args
, **kwargs
):
1276 """GetNumberCols(self) -> int"""
1277 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1279 def ProcessTableMessage(*args
, **kwargs
):
1280 """ProcessTableMessage(self, GridTableMessage ??) -> bool"""
1281 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1283 def GetTable(*args
, **kwargs
):
1284 """GetTable(self) -> GridTableBase"""
1285 return _grid
.Grid_GetTable(*args
, **kwargs
)
1287 def SetTable(*args
, **kwargs
):
1288 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1289 return _grid
.Grid_SetTable(*args
, **kwargs
)
1291 def ClearGrid(*args
, **kwargs
):
1292 """ClearGrid(self)"""
1293 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1295 def InsertRows(*args
, **kwargs
):
1296 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1297 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1299 def AppendRows(*args
, **kwargs
):
1300 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1301 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1303 def DeleteRows(*args
, **kwargs
):
1304 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1305 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1307 def InsertCols(*args
, **kwargs
):
1308 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1309 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1311 def AppendCols(*args
, **kwargs
):
1312 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1313 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1315 def DeleteCols(*args
, **kwargs
):
1316 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1317 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1319 def DrawCellHighlight(*args
, **kwargs
):
1320 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1321 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1323 def DrawTextRectangle(*args
, **kwargs
):
1325 DrawTextRectangle(self, DC dc, String ??, Rect ??, int horizontalAlignment=LEFT,
1326 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1328 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1330 def GetTextBoxSize(*args
, **kwargs
):
1331 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1332 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1334 def BeginBatch(*args
, **kwargs
):
1335 """BeginBatch(self)"""
1336 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1338 def EndBatch(*args
, **kwargs
):
1339 """EndBatch(self)"""
1340 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1342 def GetBatchCount(*args
, **kwargs
):
1343 """GetBatchCount(self) -> int"""
1344 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1346 def ForceRefresh(*args
, **kwargs
):
1347 """ForceRefresh(self)"""
1348 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1350 def IsEditable(*args
, **kwargs
):
1351 """IsEditable(self) -> bool"""
1352 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1354 def EnableEditing(*args
, **kwargs
):
1355 """EnableEditing(self, bool edit)"""
1356 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1358 def EnableCellEditControl(*args
, **kwargs
):
1359 """EnableCellEditControl(self, bool enable=True)"""
1360 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1362 def DisableCellEditControl(*args
, **kwargs
):
1363 """DisableCellEditControl(self)"""
1364 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1366 def CanEnableCellControl(*args
, **kwargs
):
1367 """CanEnableCellControl(self) -> bool"""
1368 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1370 def IsCellEditControlEnabled(*args
, **kwargs
):
1371 """IsCellEditControlEnabled(self) -> bool"""
1372 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1374 def IsCellEditControlShown(*args
, **kwargs
):
1375 """IsCellEditControlShown(self) -> bool"""
1376 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1378 def IsCurrentCellReadOnly(*args
, **kwargs
):
1379 """IsCurrentCellReadOnly(self) -> bool"""
1380 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1382 def ShowCellEditControl(*args
, **kwargs
):
1383 """ShowCellEditControl(self)"""
1384 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1386 def HideCellEditControl(*args
, **kwargs
):
1387 """HideCellEditControl(self)"""
1388 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1390 def SaveEditControlValue(*args
, **kwargs
):
1391 """SaveEditControlValue(self)"""
1392 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1394 def XYToCell(*args
, **kwargs
):
1395 """XYToCell(self, int x, int y) -> GridCellCoords"""
1396 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1398 def YToRow(*args
, **kwargs
):
1399 """YToRow(self, int y) -> int"""
1400 return _grid
.Grid_YToRow(*args
, **kwargs
)
1402 def XToCol(*args
, **kwargs
):
1403 """XToCol(self, int x) -> int"""
1404 return _grid
.Grid_XToCol(*args
, **kwargs
)
1406 def YToEdgeOfRow(*args
, **kwargs
):
1407 """YToEdgeOfRow(self, int y) -> int"""
1408 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1410 def XToEdgeOfCol(*args
, **kwargs
):
1411 """XToEdgeOfCol(self, int x) -> int"""
1412 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1414 def CellToRect(*args
, **kwargs
):
1415 """CellToRect(self, int row, int col) -> Rect"""
1416 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1418 def GetGridCursorRow(*args
, **kwargs
):
1419 """GetGridCursorRow(self) -> int"""
1420 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1422 def GetGridCursorCol(*args
, **kwargs
):
1423 """GetGridCursorCol(self) -> int"""
1424 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1426 def IsVisible(*args
, **kwargs
):
1427 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1428 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1430 def MakeCellVisible(*args
, **kwargs
):
1431 """MakeCellVisible(self, int row, int col)"""
1432 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1434 def SetGridCursor(*args
, **kwargs
):
1435 """SetGridCursor(self, int row, int col)"""
1436 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1438 def MoveCursorUp(*args
, **kwargs
):
1439 """MoveCursorUp(self, bool expandSelection) -> bool"""
1440 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1442 def MoveCursorDown(*args
, **kwargs
):
1443 """MoveCursorDown(self, bool expandSelection) -> bool"""
1444 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1446 def MoveCursorLeft(*args
, **kwargs
):
1447 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1448 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1450 def MoveCursorRight(*args
, **kwargs
):
1451 """MoveCursorRight(self, bool expandSelection) -> bool"""
1452 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1454 def MovePageDown(*args
, **kwargs
):
1455 """MovePageDown(self) -> bool"""
1456 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1458 def MovePageUp(*args
, **kwargs
):
1459 """MovePageUp(self) -> bool"""
1460 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1462 def MoveCursorUpBlock(*args
, **kwargs
):
1463 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1464 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1466 def MoveCursorDownBlock(*args
, **kwargs
):
1467 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1468 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1470 def MoveCursorLeftBlock(*args
, **kwargs
):
1471 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1472 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1474 def MoveCursorRightBlock(*args
, **kwargs
):
1475 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1476 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1478 def GetDefaultRowLabelSize(*args
, **kwargs
):
1479 """GetDefaultRowLabelSize(self) -> int"""
1480 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1482 def GetRowLabelSize(*args
, **kwargs
):
1483 """GetRowLabelSize(self) -> int"""
1484 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1486 def GetDefaultColLabelSize(*args
, **kwargs
):
1487 """GetDefaultColLabelSize(self) -> int"""
1488 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1490 def GetColLabelSize(*args
, **kwargs
):
1491 """GetColLabelSize(self) -> int"""
1492 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1494 def GetLabelBackgroundColour(*args
, **kwargs
):
1495 """GetLabelBackgroundColour(self) -> Colour"""
1496 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1498 def GetLabelTextColour(*args
, **kwargs
):
1499 """GetLabelTextColour(self) -> Colour"""
1500 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1502 def GetLabelFont(*args
, **kwargs
):
1503 """GetLabelFont(self) -> Font"""
1504 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1506 def GetRowLabelAlignment(*args
, **kwargs
):
1507 """GetRowLabelAlignment() -> (horiz, vert)"""
1508 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1510 def GetColLabelAlignment(*args
, **kwargs
):
1511 """GetColLabelAlignment() -> (horiz, vert)"""
1512 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1514 def GetColLabelTextOrientation(*args
, **kwargs
):
1515 """GetColLabelTextOrientation(self) -> int"""
1516 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1518 def GetRowLabelValue(*args
, **kwargs
):
1519 """GetRowLabelValue(self, int row) -> String"""
1520 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1522 def GetColLabelValue(*args
, **kwargs
):
1523 """GetColLabelValue(self, int col) -> String"""
1524 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1526 def GetGridLineColour(*args
, **kwargs
):
1527 """GetGridLineColour(self) -> Colour"""
1528 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1530 def GetCellHighlightColour(*args
, **kwargs
):
1531 """GetCellHighlightColour(self) -> Colour"""
1532 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1534 def GetCellHighlightPenWidth(*args
, **kwargs
):
1535 """GetCellHighlightPenWidth(self) -> int"""
1536 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1538 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1539 """GetCellHighlightROPenWidth(self) -> int"""
1540 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1542 def SetRowLabelSize(*args
, **kwargs
):
1543 """SetRowLabelSize(self, int width)"""
1544 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1546 def SetColLabelSize(*args
, **kwargs
):
1547 """SetColLabelSize(self, int height)"""
1548 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1550 def SetLabelBackgroundColour(*args
, **kwargs
):
1551 """SetLabelBackgroundColour(self, Colour ??)"""
1552 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1554 def SetLabelTextColour(*args
, **kwargs
):
1555 """SetLabelTextColour(self, Colour ??)"""
1556 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1558 def SetLabelFont(*args
, **kwargs
):
1559 """SetLabelFont(self, Font ??)"""
1560 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1562 def SetRowLabelAlignment(*args
, **kwargs
):
1563 """SetRowLabelAlignment(self, int horiz, int vert)"""
1564 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1566 def SetColLabelAlignment(*args
, **kwargs
):
1567 """SetColLabelAlignment(self, int horiz, int vert)"""
1568 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1570 def SetColLabelTextOrientation(*args
, **kwargs
):
1571 """SetColLabelTextOrientation(self, int textOrientation)"""
1572 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1574 def SetRowLabelValue(*args
, **kwargs
):
1575 """SetRowLabelValue(self, int row, String ??)"""
1576 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1578 def SetColLabelValue(*args
, **kwargs
):
1579 """SetColLabelValue(self, int col, String ??)"""
1580 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1582 def SetGridLineColour(*args
, **kwargs
):
1583 """SetGridLineColour(self, Colour ??)"""
1584 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1586 def SetCellHighlightColour(*args
, **kwargs
):
1587 """SetCellHighlightColour(self, Colour ??)"""
1588 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1590 def SetCellHighlightPenWidth(*args
, **kwargs
):
1591 """SetCellHighlightPenWidth(self, int width)"""
1592 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1594 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1595 """SetCellHighlightROPenWidth(self, int width)"""
1596 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1598 def EnableDragRowSize(*args
, **kwargs
):
1599 """EnableDragRowSize(self, bool enable=True)"""
1600 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1602 def DisableDragRowSize(*args
, **kwargs
):
1603 """DisableDragRowSize(self)"""
1604 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1606 def CanDragRowSize(*args
, **kwargs
):
1607 """CanDragRowSize(self) -> bool"""
1608 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1610 def EnableDragColSize(*args
, **kwargs
):
1611 """EnableDragColSize(self, bool enable=True)"""
1612 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1614 def DisableDragColSize(*args
, **kwargs
):
1615 """DisableDragColSize(self)"""
1616 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1618 def CanDragColSize(*args
, **kwargs
):
1619 """CanDragColSize(self) -> bool"""
1620 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1622 def EnableDragGridSize(*args
, **kwargs
):
1623 """EnableDragGridSize(self, bool enable=True)"""
1624 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1626 def DisableDragGridSize(*args
, **kwargs
):
1627 """DisableDragGridSize(self)"""
1628 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1630 def CanDragGridSize(*args
, **kwargs
):
1631 """CanDragGridSize(self) -> bool"""
1632 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1634 def EnableDragCell(*args
, **kwargs
):
1635 """EnableDragCell(self, bool enable=True)"""
1636 return _grid
.Grid_EnableDragCell(*args
, **kwargs
)
1638 def DisableDragCell(*args
, **kwargs
):
1639 """DisableDragCell(self)"""
1640 return _grid
.Grid_DisableDragCell(*args
, **kwargs
)
1642 def CanDragCell(*args
, **kwargs
):
1643 """CanDragCell(self) -> bool"""
1644 return _grid
.Grid_CanDragCell(*args
, **kwargs
)
1646 def SetAttr(*args
, **kwargs
):
1647 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1648 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1650 def SetRowAttr(*args
, **kwargs
):
1651 """SetRowAttr(self, int row, GridCellAttr attr)"""
1652 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1654 def SetColAttr(*args
, **kwargs
):
1655 """SetColAttr(self, int col, GridCellAttr attr)"""
1656 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1658 def GetOrCreateCellAttr(*args
, **kwargs
):
1659 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1660 return _grid
.Grid_GetOrCreateCellAttr(*args
, **kwargs
)
1662 def SetColFormatBool(*args
, **kwargs
):
1663 """SetColFormatBool(self, int col)"""
1664 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1666 def SetColFormatNumber(*args
, **kwargs
):
1667 """SetColFormatNumber(self, int col)"""
1668 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1670 def SetColFormatFloat(*args
, **kwargs
):
1671 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1672 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1674 def SetColFormatCustom(*args
, **kwargs
):
1675 """SetColFormatCustom(self, int col, String typeName)"""
1676 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1678 def EnableGridLines(*args
, **kwargs
):
1679 """EnableGridLines(self, bool enable=True)"""
1680 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1682 def GridLinesEnabled(*args
, **kwargs
):
1683 """GridLinesEnabled(self) -> bool"""
1684 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1686 def GetDefaultRowSize(*args
, **kwargs
):
1687 """GetDefaultRowSize(self) -> int"""
1688 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1690 def GetRowSize(*args
, **kwargs
):
1691 """GetRowSize(self, int row) -> int"""
1692 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1694 def GetDefaultColSize(*args
, **kwargs
):
1695 """GetDefaultColSize(self) -> int"""
1696 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1698 def GetColSize(*args
, **kwargs
):
1699 """GetColSize(self, int col) -> int"""
1700 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1702 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1703 """GetDefaultCellBackgroundColour(self) -> Colour"""
1704 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1706 def GetCellBackgroundColour(*args
, **kwargs
):
1707 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1708 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1710 def GetDefaultCellTextColour(*args
, **kwargs
):
1711 """GetDefaultCellTextColour(self) -> Colour"""
1712 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1714 def GetCellTextColour(*args
, **kwargs
):
1715 """GetCellTextColour(self, int row, int col) -> Colour"""
1716 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1718 def GetDefaultCellFont(*args
, **kwargs
):
1719 """GetDefaultCellFont(self) -> Font"""
1720 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1722 def GetCellFont(*args
, **kwargs
):
1723 """GetCellFont(self, int row, int col) -> Font"""
1724 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1726 def GetDefaultCellAlignment(*args
, **kwargs
):
1727 """GetDefaultCellAlignment() -> (horiz, vert)"""
1728 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1730 def GetCellAlignment(*args
, **kwargs
):
1731 """GetCellAlignment() -> (horiz, vert)"""
1732 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1734 def GetDefaultCellOverflow(*args
, **kwargs
):
1735 """GetDefaultCellOverflow(self) -> bool"""
1736 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1738 def GetCellOverflow(*args
, **kwargs
):
1739 """GetCellOverflow(self, int row, int col) -> bool"""
1740 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1742 def GetCellSize(*args
, **kwargs
):
1743 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1744 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1746 def SetDefaultRowSize(*args
, **kwargs
):
1747 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1748 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1750 def SetRowSize(*args
, **kwargs
):
1751 """SetRowSize(self, int row, int height)"""
1752 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1754 def SetDefaultColSize(*args
, **kwargs
):
1755 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1756 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1758 def SetColSize(*args
, **kwargs
):
1759 """SetColSize(self, int col, int width)"""
1760 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1762 def AutoSizeColumn(*args
, **kwargs
):
1763 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1764 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1766 def AutoSizeRow(*args
, **kwargs
):
1767 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1768 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1770 def AutoSizeColumns(*args
, **kwargs
):
1771 """AutoSizeColumns(self, bool setAsMin=True)"""
1772 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1774 def AutoSizeRows(*args
, **kwargs
):
1775 """AutoSizeRows(self, bool setAsMin=True)"""
1776 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1778 def AutoSize(*args
, **kwargs
):
1779 """AutoSize(self)"""
1780 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1782 def AutoSizeRowLabelSize(*args
, **kwargs
):
1783 """AutoSizeRowLabelSize(self, int row)"""
1784 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1786 def AutoSizeColLabelSize(*args
, **kwargs
):
1787 """AutoSizeColLabelSize(self, int col)"""
1788 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1790 def SetColMinimalWidth(*args
, **kwargs
):
1791 """SetColMinimalWidth(self, int col, int width)"""
1792 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1794 def SetRowMinimalHeight(*args
, **kwargs
):
1795 """SetRowMinimalHeight(self, int row, int width)"""
1796 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1798 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1799 """SetColMinimalAcceptableWidth(self, int width)"""
1800 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1802 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1803 """SetRowMinimalAcceptableHeight(self, int width)"""
1804 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1806 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1807 """GetColMinimalAcceptableWidth(self) -> int"""
1808 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1810 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1811 """GetRowMinimalAcceptableHeight(self) -> int"""
1812 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1814 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1815 """SetDefaultCellBackgroundColour(self, Colour ??)"""
1816 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1818 def SetCellBackgroundColour(*args
, **kwargs
):
1819 """SetCellBackgroundColour(self, int row, int col, Colour ??)"""
1820 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1822 def SetDefaultCellTextColour(*args
, **kwargs
):
1823 """SetDefaultCellTextColour(self, Colour ??)"""
1824 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1826 def SetCellTextColour(*args
, **kwargs
):
1827 """SetCellTextColour(self, int row, int col, Colour ??)"""
1828 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1830 def SetDefaultCellFont(*args
, **kwargs
):
1831 """SetDefaultCellFont(self, Font ??)"""
1832 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1834 def SetCellFont(*args
, **kwargs
):
1835 """SetCellFont(self, int row, int col, Font ??)"""
1836 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1838 def SetDefaultCellAlignment(*args
, **kwargs
):
1839 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1840 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1842 def SetCellAlignment(*args
, **kwargs
):
1843 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1844 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1846 def SetDefaultCellOverflow(*args
, **kwargs
):
1847 """SetDefaultCellOverflow(self, bool allow)"""
1848 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1850 def SetCellOverflow(*args
, **kwargs
):
1851 """SetCellOverflow(self, int row, int col, bool allow)"""
1852 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1854 def SetCellSize(*args
, **kwargs
):
1855 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1856 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1858 def SetDefaultRenderer(*args
, **kwargs
):
1859 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1860 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1862 def SetCellRenderer(*args
, **kwargs
):
1863 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1864 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1866 def GetDefaultRenderer(*args
, **kwargs
):
1867 """GetDefaultRenderer(self) -> GridCellRenderer"""
1868 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1870 def GetCellRenderer(*args
, **kwargs
):
1871 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1872 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1874 def SetDefaultEditor(*args
, **kwargs
):
1875 """SetDefaultEditor(self, GridCellEditor editor)"""
1876 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1878 def SetCellEditor(*args
, **kwargs
):
1879 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1880 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1882 def GetDefaultEditor(*args
, **kwargs
):
1883 """GetDefaultEditor(self) -> GridCellEditor"""
1884 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1886 def GetCellEditor(*args
, **kwargs
):
1887 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1888 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1890 def GetCellValue(*args
, **kwargs
):
1891 """GetCellValue(self, int row, int col) -> String"""
1892 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1894 def SetCellValue(*args
, **kwargs
):
1895 """SetCellValue(self, int row, int col, String s)"""
1896 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1898 def IsReadOnly(*args
, **kwargs
):
1899 """IsReadOnly(self, int row, int col) -> bool"""
1900 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1902 def SetReadOnly(*args
, **kwargs
):
1903 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1904 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1906 def SelectRow(*args
, **kwargs
):
1907 """SelectRow(self, int row, bool addToSelected=False)"""
1908 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1910 def SelectCol(*args
, **kwargs
):
1911 """SelectCol(self, int col, bool addToSelected=False)"""
1912 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1914 def SelectBlock(*args
, **kwargs
):
1916 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1917 bool addToSelected=False)
1919 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1921 def SelectAll(*args
, **kwargs
):
1922 """SelectAll(self)"""
1923 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1925 def IsSelection(*args
, **kwargs
):
1926 """IsSelection(self) -> bool"""
1927 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1929 def ClearSelection(*args
, **kwargs
):
1930 """ClearSelection(self)"""
1931 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1933 def IsInSelection(*args
, **kwargs
):
1934 """IsInSelection(self, int row, int col) -> bool"""
1935 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1937 def GetSelectedCells(*args
, **kwargs
):
1938 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1939 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1941 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1942 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1943 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1945 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1946 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1947 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1949 def GetSelectedRows(*args
, **kwargs
):
1950 """GetSelectedRows(self) -> wxArrayInt"""
1951 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1953 def GetSelectedCols(*args
, **kwargs
):
1954 """GetSelectedCols(self) -> wxArrayInt"""
1955 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1957 def DeselectRow(*args
, **kwargs
):
1958 """DeselectRow(self, int row)"""
1959 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1961 def DeselectCol(*args
, **kwargs
):
1962 """DeselectCol(self, int col)"""
1963 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1965 def DeselectCell(*args
, **kwargs
):
1966 """DeselectCell(self, int row, int col)"""
1967 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1969 def BlockToDeviceRect(*args
, **kwargs
):
1970 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1971 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1973 def GetSelectionBackground(*args
, **kwargs
):
1974 """GetSelectionBackground(self) -> Colour"""
1975 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1977 def GetSelectionForeground(*args
, **kwargs
):
1978 """GetSelectionForeground(self) -> Colour"""
1979 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1981 def SetSelectionBackground(*args
, **kwargs
):
1982 """SetSelectionBackground(self, Colour c)"""
1983 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1985 def SetSelectionForeground(*args
, **kwargs
):
1986 """SetSelectionForeground(self, Colour c)"""
1987 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1989 def RegisterDataType(*args
, **kwargs
):
1990 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1991 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1993 def GetDefaultEditorForCell(*args
, **kwargs
):
1994 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1995 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1997 def GetDefaultRendererForCell(*args
, **kwargs
):
1998 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1999 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
2001 def GetDefaultEditorForType(*args
, **kwargs
):
2002 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
2003 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
2005 def GetDefaultRendererForType(*args
, **kwargs
):
2006 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
2007 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
2009 def SetMargins(*args
, **kwargs
):
2010 """SetMargins(self, int extraWidth, int extraHeight)"""
2011 return _grid
.Grid_SetMargins(*args
, **kwargs
)
2013 def GetGridWindow(*args
, **kwargs
):
2014 """GetGridWindow(self) -> Window"""
2015 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
2017 def GetGridRowLabelWindow(*args
, **kwargs
):
2018 """GetGridRowLabelWindow(self) -> Window"""
2019 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
2021 def GetGridColLabelWindow(*args
, **kwargs
):
2022 """GetGridColLabelWindow(self) -> Window"""
2023 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
2025 def GetGridCornerLabelWindow(*args
, **kwargs
):
2026 """GetGridCornerLabelWindow(self) -> Window"""
2027 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
2029 def SetScrollLineX(*args
, **kwargs
):
2030 """SetScrollLineX(self, int x)"""
2031 return _grid
.Grid_SetScrollLineX(*args
, **kwargs
)
2033 def SetScrollLineY(*args
, **kwargs
):
2034 """SetScrollLineY(self, int y)"""
2035 return _grid
.Grid_SetScrollLineY(*args
, **kwargs
)
2037 def GetScrollLineX(*args
, **kwargs
):
2038 """GetScrollLineX(self) -> int"""
2039 return _grid
.Grid_GetScrollLineX(*args
, **kwargs
)
2041 def GetScrollLineY(*args
, **kwargs
):
2042 """GetScrollLineY(self) -> int"""
2043 return _grid
.Grid_GetScrollLineY(*args
, **kwargs
)
2045 def GetScrollX(*args
, **kwargs
):
2046 """GetScrollX(self, int x) -> int"""
2047 return _grid
.Grid_GetScrollX(*args
, **kwargs
)
2049 def GetScrollY(*args
, **kwargs
):
2050 """GetScrollY(self, int y) -> int"""
2051 return _grid
.Grid_GetScrollY(*args
, **kwargs
)
2053 def GetClassDefaultAttributes(*args
, **kwargs
):
2055 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2057 Get the default attributes for this class. This is useful if you want
2058 to use the same font or colour in your own control as in a standard
2059 control -- which is a much better idea than hard coding specific
2060 colours or fonts which might look completely out of place on the
2061 user's system, especially if it uses themes.
2063 The variant parameter is only relevant under Mac currently and is
2064 ignore under other platforms. Under Mac, it will change the size of
2065 the returned font. See `wx.Window.SetWindowVariant` for more about
2068 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2070 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2072 class GridPtr(Grid
):
2073 def __init__(self
, this
):
2075 if not hasattr(self
,"thisown"): self
.thisown
= 0
2076 self
.__class
__ = Grid
2077 _grid
.Grid_swigregister(GridPtr
)
2079 def PreGrid(*args
, **kwargs
):
2080 """PreGrid() -> Grid"""
2081 val
= _grid
.new_PreGrid(*args
, **kwargs
)
2085 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
2087 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2089 Get the default attributes for this class. This is useful if you want
2090 to use the same font or colour in your own control as in a standard
2091 control -- which is a much better idea than hard coding specific
2092 colours or fonts which might look completely out of place on the
2093 user's system, especially if it uses themes.
2095 The variant parameter is only relevant under Mac currently and is
2096 ignore under other platforms. Under Mac, it will change the size of
2097 the returned font. See `wx.Window.SetWindowVariant` for more about
2100 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2102 class GridEvent(_core
.NotifyEvent
):
2104 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2105 def __init__(self
, *args
, **kwargs
):
2107 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2108 int x=-1, int y=-1, bool sel=True, bool control=False,
2109 bool shift=False, bool alt=False,
2110 bool meta=False) -> GridEvent
2112 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2113 self
.this
= newobj
.this
2116 def GetRow(*args
, **kwargs
):
2117 """GetRow(self) -> int"""
2118 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2120 def GetCol(*args
, **kwargs
):
2121 """GetCol(self) -> int"""
2122 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2124 def GetPosition(*args
, **kwargs
):
2125 """GetPosition(self) -> Point"""
2126 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2128 def Selecting(*args
, **kwargs
):
2129 """Selecting(self) -> bool"""
2130 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2132 def ControlDown(*args
, **kwargs
):
2133 """ControlDown(self) -> bool"""
2134 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2136 def MetaDown(*args
, **kwargs
):
2137 """MetaDown(self) -> bool"""
2138 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2140 def ShiftDown(*args
, **kwargs
):
2141 """ShiftDown(self) -> bool"""
2142 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2144 def AltDown(*args
, **kwargs
):
2145 """AltDown(self) -> bool"""
2146 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2149 class GridEventPtr(GridEvent
):
2150 def __init__(self
, this
):
2152 if not hasattr(self
,"thisown"): self
.thisown
= 0
2153 self
.__class
__ = GridEvent
2154 _grid
.GridEvent_swigregister(GridEventPtr
)
2156 class GridSizeEvent(_core
.NotifyEvent
):
2158 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2159 def __init__(self
, *args
, **kwargs
):
2161 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2162 int x=-1, int y=-1, bool control=False, bool shift=False,
2163 bool alt=False, bool meta=False) -> GridSizeEvent
2165 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2166 self
.this
= newobj
.this
2169 def GetRowOrCol(*args
, **kwargs
):
2170 """GetRowOrCol(self) -> int"""
2171 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2173 def GetPosition(*args
, **kwargs
):
2174 """GetPosition(self) -> Point"""
2175 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2177 def ControlDown(*args
, **kwargs
):
2178 """ControlDown(self) -> bool"""
2179 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2181 def MetaDown(*args
, **kwargs
):
2182 """MetaDown(self) -> bool"""
2183 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2185 def ShiftDown(*args
, **kwargs
):
2186 """ShiftDown(self) -> bool"""
2187 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2189 def AltDown(*args
, **kwargs
):
2190 """AltDown(self) -> bool"""
2191 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2194 class GridSizeEventPtr(GridSizeEvent
):
2195 def __init__(self
, this
):
2197 if not hasattr(self
,"thisown"): self
.thisown
= 0
2198 self
.__class
__ = GridSizeEvent
2199 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2201 class GridRangeSelectEvent(_core
.NotifyEvent
):
2203 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2204 def __init__(self
, *args
, **kwargs
):
2206 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2207 GridCellCoords bottomRight, bool sel=True,
2208 bool control=False, bool shift=False,
2209 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2211 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2212 self
.this
= newobj
.this
2215 def GetTopLeftCoords(*args
, **kwargs
):
2216 """GetTopLeftCoords(self) -> GridCellCoords"""
2217 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2219 def GetBottomRightCoords(*args
, **kwargs
):
2220 """GetBottomRightCoords(self) -> GridCellCoords"""
2221 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2223 def GetTopRow(*args
, **kwargs
):
2224 """GetTopRow(self) -> int"""
2225 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2227 def GetBottomRow(*args
, **kwargs
):
2228 """GetBottomRow(self) -> int"""
2229 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2231 def GetLeftCol(*args
, **kwargs
):
2232 """GetLeftCol(self) -> int"""
2233 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2235 def GetRightCol(*args
, **kwargs
):
2236 """GetRightCol(self) -> int"""
2237 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2239 def Selecting(*args
, **kwargs
):
2240 """Selecting(self) -> bool"""
2241 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2243 def ControlDown(*args
, **kwargs
):
2244 """ControlDown(self) -> bool"""
2245 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2247 def MetaDown(*args
, **kwargs
):
2248 """MetaDown(self) -> bool"""
2249 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2251 def ShiftDown(*args
, **kwargs
):
2252 """ShiftDown(self) -> bool"""
2253 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2255 def AltDown(*args
, **kwargs
):
2256 """AltDown(self) -> bool"""
2257 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2260 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2261 def __init__(self
, this
):
2263 if not hasattr(self
,"thisown"): self
.thisown
= 0
2264 self
.__class
__ = GridRangeSelectEvent
2265 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2267 class GridEditorCreatedEvent(_core
.CommandEvent
):
2269 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2270 def __init__(self
, *args
, **kwargs
):
2272 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2273 Control ctrl) -> GridEditorCreatedEvent
2275 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2276 self
.this
= newobj
.this
2279 def GetRow(*args
, **kwargs
):
2280 """GetRow(self) -> int"""
2281 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2283 def GetCol(*args
, **kwargs
):
2284 """GetCol(self) -> int"""
2285 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2287 def GetControl(*args
, **kwargs
):
2288 """GetControl(self) -> Control"""
2289 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2291 def SetRow(*args
, **kwargs
):
2292 """SetRow(self, int row)"""
2293 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2295 def SetCol(*args
, **kwargs
):
2296 """SetCol(self, int col)"""
2297 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2299 def SetControl(*args
, **kwargs
):
2300 """SetControl(self, Control ctrl)"""
2301 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2304 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2305 def __init__(self
, this
):
2307 if not hasattr(self
,"thisown"): self
.thisown
= 0
2308 self
.__class
__ = GridEditorCreatedEvent
2309 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2311 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2312 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2313 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2314 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2315 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2316 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2317 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2318 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2319 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2320 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2321 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2322 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2323 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2324 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2325 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2326 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2327 wxEVT_GRID_CELL_BEGIN_DRAG
= _grid
.wxEVT_GRID_CELL_BEGIN_DRAG
2328 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2329 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2330 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2331 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2332 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2333 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2334 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2335 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2336 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2337 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2338 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2339 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2340 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2341 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2342 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2343 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)
2344 EVT_GRID_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
)
2347 # The same as above but with the ability to specify an identifier
2348 EVT_GRID_CMD_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
, 1 )
2349 EVT_GRID_CMD_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
, 1 )
2350 EVT_GRID_CMD_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
, 1 )
2351 EVT_GRID_CMD_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
, 1 )
2352 EVT_GRID_CMD_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
, 1 )
2353 EVT_GRID_CMD_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
, 1 )
2354 EVT_GRID_CMD_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
, 1 )
2355 EVT_GRID_CMD_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
, 1 )
2356 EVT_GRID_CMD_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
, 1 )
2357 EVT_GRID_CMD_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
, 1 )
2358 EVT_GRID_CMD_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
, 1 )
2359 EVT_GRID_CMD_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
, 1 )
2360 EVT_GRID_CMD_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
, 1 )
2361 EVT_GRID_CMD_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
, 1 )
2362 EVT_GRID_CMD_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
, 1 )
2363 EVT_GRID_CMD_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
, 1 )
2364 EVT_GRID_CMD_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
, 1 )