1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
9 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
10 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
11 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
12 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
13 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
14 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
15 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
16 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
17 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
18 class GridCellRenderer(object):
20 def __init__(self
): raise RuntimeError, "No constructor defined"
22 return "<%s.%s; proxy of C++ wxGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
23 def _setOORInfo(*args
, **kwargs
):
24 """_setOORInfo(PyObject _self)"""
25 return _grid
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
27 def SetParameters(*args
, **kwargs
):
28 """SetParameters(wxString params)"""
29 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
31 def IncRef(*args
, **kwargs
):
33 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
35 def DecRef(*args
, **kwargs
):
37 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
39 def Draw(*args
, **kwargs
):
40 """Draw(Grid grid, GridCellAttr attr, wxDC dc, Rect rect, int row,
41 int col, bool isSelected)"""
42 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
44 def GetBestSize(*args
, **kwargs
):
45 """GetBestSize(Grid grid, GridCellAttr attr, wxDC dc, int row, int col) -> Size"""
46 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
48 def Clone(*args
, **kwargs
):
49 """Clone() -> GridCellRenderer"""
50 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
53 class GridCellRendererPtr(GridCellRenderer
):
54 def __init__(self
, this
):
56 if not hasattr(self
,"thisown"): self
.thisown
= 0
57 self
.__class
__ = GridCellRenderer
58 _grid
.GridCellRenderer_swigregister(GridCellRendererPtr
)
60 GridNoCellCoords
= cvar
.GridNoCellCoords
61 GridNoCellRect
= cvar
.GridNoCellRect
63 class PyGridCellRenderer(GridCellRenderer
):
66 return "<%s.%s; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
67 def __init__(self
, *args
, **kwargs
):
68 """__init__() -> PyGridCellRenderer"""
69 newobj
= _grid
.new_PyGridCellRenderer(*args
, **kwargs
)
70 self
.this
= newobj
.this
73 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
75 def _setCallbackInfo(*args
, **kwargs
):
76 """_setCallbackInfo(PyObject self, PyObject _class)"""
77 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
79 def base_SetParameters(*args
, **kwargs
):
80 """base_SetParameters(wxString params)"""
81 return _grid
.PyGridCellRenderer_base_SetParameters(*args
, **kwargs
)
84 class PyGridCellRendererPtr(PyGridCellRenderer
):
85 def __init__(self
, this
):
87 if not hasattr(self
,"thisown"): self
.thisown
= 0
88 self
.__class
__ = PyGridCellRenderer
89 _grid
.PyGridCellRenderer_swigregister(PyGridCellRendererPtr
)
91 class GridCellStringRenderer(GridCellRenderer
):
94 return "<%s.%s; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
95 def __init__(self
, *args
, **kwargs
):
96 """__init__() -> GridCellStringRenderer"""
97 newobj
= _grid
.new_GridCellStringRenderer(*args
, **kwargs
)
98 self
.this
= newobj
.this
101 self
._setOORInfo
(self
)
104 class GridCellStringRendererPtr(GridCellStringRenderer
):
105 def __init__(self
, this
):
107 if not hasattr(self
,"thisown"): self
.thisown
= 0
108 self
.__class
__ = GridCellStringRenderer
109 _grid
.GridCellStringRenderer_swigregister(GridCellStringRendererPtr
)
111 class GridCellNumberRenderer(GridCellStringRenderer
):
114 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
115 def __init__(self
, *args
, **kwargs
):
116 """__init__() -> GridCellNumberRenderer"""
117 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
118 self
.this
= newobj
.this
121 self
._setOORInfo
(self
)
124 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
125 def __init__(self
, this
):
127 if not hasattr(self
,"thisown"): self
.thisown
= 0
128 self
.__class
__ = GridCellNumberRenderer
129 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
131 class GridCellFloatRenderer(GridCellStringRenderer
):
134 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
135 def __init__(self
, *args
, **kwargs
):
136 """__init__(int width=-1, int precision=-1) -> GridCellFloatRenderer"""
137 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
138 self
.this
= newobj
.this
141 self
._setOORInfo
(self
)
143 def GetWidth(*args
, **kwargs
):
144 """GetWidth() -> int"""
145 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
147 def SetWidth(*args
, **kwargs
):
148 """SetWidth(int width)"""
149 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
151 def GetPrecision(*args
, **kwargs
):
152 """GetPrecision() -> int"""
153 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
155 def SetPrecision(*args
, **kwargs
):
156 """SetPrecision(int precision)"""
157 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
160 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
161 def __init__(self
, this
):
163 if not hasattr(self
,"thisown"): self
.thisown
= 0
164 self
.__class
__ = GridCellFloatRenderer
165 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
167 class GridCellBoolRenderer(GridCellRenderer
):
170 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
171 def __init__(self
, *args
, **kwargs
):
172 """__init__() -> GridCellBoolRenderer"""
173 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
174 self
.this
= newobj
.this
177 self
._setOORInfo
(self
)
180 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
181 def __init__(self
, this
):
183 if not hasattr(self
,"thisown"): self
.thisown
= 0
184 self
.__class
__ = GridCellBoolRenderer
185 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
187 class GridCellDateTimeRenderer(GridCellStringRenderer
):
190 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
191 def __init__(self
, *args
, **kwargs
):
192 """__init__(wxString outformat=wxPyDateTimeFormatStr, wxString informat=wxPyDateTimeFormatStr) -> GridCellDateTimeRenderer"""
193 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
194 self
.this
= newobj
.this
197 self
._setOORInfo
(self
)
200 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
201 def __init__(self
, this
):
203 if not hasattr(self
,"thisown"): self
.thisown
= 0
204 self
.__class
__ = GridCellDateTimeRenderer
205 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
207 class GridCellEnumRenderer(GridCellStringRenderer
):
210 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
211 def __init__(self
, *args
, **kwargs
):
212 """__init__(wxString choices=wxPyEmptyString) -> GridCellEnumRenderer"""
213 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
214 self
.this
= newobj
.this
217 self
._setOORInfo
(self
)
220 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
221 def __init__(self
, this
):
223 if not hasattr(self
,"thisown"): self
.thisown
= 0
224 self
.__class
__ = GridCellEnumRenderer
225 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
227 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
230 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
231 def __init__(self
, *args
, **kwargs
):
232 """__init__() -> GridCellAutoWrapStringRenderer"""
233 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
234 self
.this
= newobj
.this
237 self
._setOORInfo
(self
)
240 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
241 def __init__(self
, this
):
243 if not hasattr(self
,"thisown"): self
.thisown
= 0
244 self
.__class
__ = GridCellAutoWrapStringRenderer
245 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
247 class GridCellEditor(object):
249 def __init__(self
): raise RuntimeError, "No constructor defined"
251 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
252 def _setOORInfo(*args
, **kwargs
):
253 """_setOORInfo(PyObject _self)"""
254 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
256 def IsCreated(*args
, **kwargs
):
257 """IsCreated() -> bool"""
258 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
260 def GetControl(*args
, **kwargs
):
261 """GetControl() -> Control"""
262 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
264 def SetControl(*args
, **kwargs
):
265 """SetControl(Control control)"""
266 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
268 def GetCellAttr(*args
, **kwargs
):
269 """GetCellAttr() -> GridCellAttr"""
270 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
272 def SetCellAttr(*args
, **kwargs
):
273 """SetCellAttr(GridCellAttr attr)"""
274 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
276 def SetParameters(*args
, **kwargs
):
277 """SetParameters(wxString params)"""
278 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
280 def IncRef(*args
, **kwargs
):
282 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
284 def DecRef(*args
, **kwargs
):
286 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
288 def Create(*args
, **kwargs
):
289 """Create(Window parent, int id, EvtHandler evtHandler)"""
290 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
292 def BeginEdit(*args
, **kwargs
):
293 """BeginEdit(int row, int col, Grid grid)"""
294 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
296 def EndEdit(*args
, **kwargs
):
297 """EndEdit(int row, int col, Grid grid) -> bool"""
298 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
300 def Reset(*args
, **kwargs
):
302 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
304 def Clone(*args
, **kwargs
):
305 """Clone() -> GridCellEditor"""
306 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
308 def SetSize(*args
, **kwargs
):
309 """SetSize(Rect rect)"""
310 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
312 def Show(*args
, **kwargs
):
313 """Show(bool show, GridCellAttr attr=None)"""
314 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
316 def PaintBackground(*args
, **kwargs
):
317 """PaintBackground(Rect rectCell, GridCellAttr attr)"""
318 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
320 def IsAcceptedKey(*args
, **kwargs
):
321 """IsAcceptedKey(KeyEvent event) -> bool"""
322 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
324 def StartingKey(*args
, **kwargs
):
325 """StartingKey(KeyEvent event)"""
326 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
328 def StartingClick(*args
, **kwargs
):
329 """StartingClick()"""
330 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
332 def HandleReturn(*args
, **kwargs
):
333 """HandleReturn(KeyEvent event)"""
334 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
336 def Destroy(*args
, **kwargs
):
338 return _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
341 class GridCellEditorPtr(GridCellEditor
):
342 def __init__(self
, this
):
344 if not hasattr(self
,"thisown"): self
.thisown
= 0
345 self
.__class
__ = GridCellEditor
346 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
348 class PyGridCellEditor(GridCellEditor
):
351 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
352 def __init__(self
, *args
, **kwargs
):
353 """__init__() -> PyGridCellEditor"""
354 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
355 self
.this
= newobj
.this
358 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
360 def _setCallbackInfo(*args
, **kwargs
):
361 """_setCallbackInfo(PyObject self, PyObject _class)"""
362 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
364 def base_SetSize(*args
, **kwargs
):
365 """base_SetSize(Rect rect)"""
366 return _grid
.PyGridCellEditor_base_SetSize(*args
, **kwargs
)
368 def base_Show(*args
, **kwargs
):
369 """base_Show(bool show, GridCellAttr attr=None)"""
370 return _grid
.PyGridCellEditor_base_Show(*args
, **kwargs
)
372 def base_PaintBackground(*args
, **kwargs
):
373 """base_PaintBackground(Rect rectCell, GridCellAttr attr)"""
374 return _grid
.PyGridCellEditor_base_PaintBackground(*args
, **kwargs
)
376 def base_IsAcceptedKey(*args
, **kwargs
):
377 """base_IsAcceptedKey(KeyEvent event) -> bool"""
378 return _grid
.PyGridCellEditor_base_IsAcceptedKey(*args
, **kwargs
)
380 def base_StartingKey(*args
, **kwargs
):
381 """base_StartingKey(KeyEvent event)"""
382 return _grid
.PyGridCellEditor_base_StartingKey(*args
, **kwargs
)
384 def base_StartingClick(*args
, **kwargs
):
385 """base_StartingClick()"""
386 return _grid
.PyGridCellEditor_base_StartingClick(*args
, **kwargs
)
388 def base_HandleReturn(*args
, **kwargs
):
389 """base_HandleReturn(KeyEvent event)"""
390 return _grid
.PyGridCellEditor_base_HandleReturn(*args
, **kwargs
)
392 def base_Destroy(*args
, **kwargs
):
394 return _grid
.PyGridCellEditor_base_Destroy(*args
, **kwargs
)
396 def base_SetParameters(*args
, **kwargs
):
397 """base_SetParameters(wxString params)"""
398 return _grid
.PyGridCellEditor_base_SetParameters(*args
, **kwargs
)
401 class PyGridCellEditorPtr(PyGridCellEditor
):
402 def __init__(self
, this
):
404 if not hasattr(self
,"thisown"): self
.thisown
= 0
405 self
.__class
__ = PyGridCellEditor
406 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
408 class GridCellTextEditor(GridCellEditor
):
411 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
412 def __init__(self
, *args
, **kwargs
):
413 """__init__() -> GridCellTextEditor"""
414 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
415 self
.this
= newobj
.this
418 self
._setOORInfo
(self
)
420 def GetValue(*args
, **kwargs
):
421 """GetValue() -> wxString"""
422 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
425 class GridCellTextEditorPtr(GridCellTextEditor
):
426 def __init__(self
, this
):
428 if not hasattr(self
,"thisown"): self
.thisown
= 0
429 self
.__class
__ = GridCellTextEditor
430 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
432 class GridCellNumberEditor(GridCellTextEditor
):
435 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
436 def __init__(self
, *args
, **kwargs
):
437 """__init__(int min=-1, int max=-1) -> GridCellNumberEditor"""
438 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
439 self
.this
= newobj
.this
442 self
._setOORInfo
(self
)
444 def GetValue(*args
, **kwargs
):
445 """GetValue() -> wxString"""
446 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
449 class GridCellNumberEditorPtr(GridCellNumberEditor
):
450 def __init__(self
, this
):
452 if not hasattr(self
,"thisown"): self
.thisown
= 0
453 self
.__class
__ = GridCellNumberEditor
454 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
456 class GridCellFloatEditor(GridCellTextEditor
):
459 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
460 def __init__(self
, *args
, **kwargs
):
461 """__init__() -> GridCellFloatEditor"""
462 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
463 self
.this
= newobj
.this
466 self
._setOORInfo
(self
)
468 def GetValue(*args
, **kwargs
):
469 """GetValue() -> wxString"""
470 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
473 class GridCellFloatEditorPtr(GridCellFloatEditor
):
474 def __init__(self
, this
):
476 if not hasattr(self
,"thisown"): self
.thisown
= 0
477 self
.__class
__ = GridCellFloatEditor
478 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
480 class GridCellBoolEditor(GridCellEditor
):
483 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
484 def __init__(self
, *args
, **kwargs
):
485 """__init__() -> GridCellBoolEditor"""
486 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
487 self
.this
= newobj
.this
490 self
._setOORInfo
(self
)
492 def GetValue(*args
, **kwargs
):
493 """GetValue() -> wxString"""
494 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
497 class GridCellBoolEditorPtr(GridCellBoolEditor
):
498 def __init__(self
, this
):
500 if not hasattr(self
,"thisown"): self
.thisown
= 0
501 self
.__class
__ = GridCellBoolEditor
502 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
504 class GridCellChoiceEditor(GridCellEditor
):
507 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
508 def __init__(self
, *args
, **kwargs
):
509 """__init__(int choices=0, wxString choices_array=None, bool allowOthers=False) -> GridCellChoiceEditor"""
510 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
511 self
.this
= newobj
.this
514 self
._setOORInfo
(self
)
516 def GetValue(*args
, **kwargs
):
517 """GetValue() -> wxString"""
518 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
521 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
522 def __init__(self
, this
):
524 if not hasattr(self
,"thisown"): self
.thisown
= 0
525 self
.__class
__ = GridCellChoiceEditor
526 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
528 class GridCellEnumEditor(GridCellChoiceEditor
):
531 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
532 def __init__(self
, *args
, **kwargs
):
533 """__init__(wxString choices=wxPyEmptyString) -> GridCellEnumEditor"""
534 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
535 self
.this
= newobj
.this
538 self
._setOORInfo
(self
)
540 def GetValue(*args
, **kwargs
):
541 """GetValue() -> wxString"""
542 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
545 class GridCellEnumEditorPtr(GridCellEnumEditor
):
546 def __init__(self
, this
):
548 if not hasattr(self
,"thisown"): self
.thisown
= 0
549 self
.__class
__ = GridCellEnumEditor
550 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
552 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__() -> GridCellAutoWrapStringEditor"""
558 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
559 self
.this
= newobj
.this
562 self
._setOORInfo
(self
)
564 def GetValue(*args
, **kwargs
):
565 """GetValue() -> wxString"""
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):
579 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
580 Any
= _grid
.GridCellAttr_Any
581 Default
= _grid
.GridCellAttr_Default
582 Cell
= _grid
.GridCellAttr_Cell
583 Row
= _grid
.GridCellAttr_Row
584 Col
= _grid
.GridCellAttr_Col
585 Merged
= _grid
.GridCellAttr_Merged
586 def _setOORInfo(*args
, **kwargs
):
587 """_setOORInfo(PyObject _self)"""
588 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
590 def __init__(self
, *args
, **kwargs
):
591 """__init__(GridCellAttr attrDefault=None) -> GridCellAttr"""
592 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
593 self
.this
= newobj
.this
596 self
._setOORInfo
(self
)
598 def Clone(*args
, **kwargs
):
599 """Clone() -> GridCellAttr"""
600 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
602 def MergeWith(*args
, **kwargs
):
603 """MergeWith(GridCellAttr mergefrom)"""
604 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
606 def IncRef(*args
, **kwargs
):
608 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
610 def DecRef(*args
, **kwargs
):
612 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
614 def SetTextColour(*args
, **kwargs
):
615 """SetTextColour(wxColour colText)"""
616 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
618 def SetBackgroundColour(*args
, **kwargs
):
619 """SetBackgroundColour(wxColour colBack)"""
620 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
622 def SetFont(*args
, **kwargs
):
623 """SetFont(wxFont font)"""
624 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
626 def SetAlignment(*args
, **kwargs
):
627 """SetAlignment(int hAlign, int vAlign)"""
628 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
630 def SetSize(*args
, **kwargs
):
631 """SetSize(int num_rows, int num_cols)"""
632 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
634 def SetOverflow(*args
, **kwargs
):
635 """SetOverflow(bool allow=True)"""
636 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
638 def SetReadOnly(*args
, **kwargs
):
639 """SetReadOnly(bool isReadOnly=True)"""
640 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
642 def SetRenderer(*args
, **kwargs
):
643 """SetRenderer(GridCellRenderer renderer)"""
644 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
646 def SetEditor(*args
, **kwargs
):
647 """SetEditor(GridCellEditor editor)"""
648 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
650 def SetKind(*args
, **kwargs
):
651 """SetKind(wxGridCellAttr::wxAttrKind kind)"""
652 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
654 def HasTextColour(*args
, **kwargs
):
655 """HasTextColour() -> bool"""
656 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
658 def HasBackgroundColour(*args
, **kwargs
):
659 """HasBackgroundColour() -> bool"""
660 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
662 def HasFont(*args
, **kwargs
):
663 """HasFont() -> bool"""
664 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
666 def HasAlignment(*args
, **kwargs
):
667 """HasAlignment() -> bool"""
668 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
670 def HasRenderer(*args
, **kwargs
):
671 """HasRenderer() -> bool"""
672 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
674 def HasEditor(*args
, **kwargs
):
675 """HasEditor() -> bool"""
676 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
678 def HasReadWriteMode(*args
, **kwargs
):
679 """HasReadWriteMode() -> bool"""
680 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
682 def HasOverflowMode(*args
, **kwargs
):
683 """HasOverflowMode() -> bool"""
684 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
686 def GetTextColour(*args
, **kwargs
):
687 """GetTextColour() -> wxColour"""
688 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
690 def GetBackgroundColour(*args
, **kwargs
):
691 """GetBackgroundColour() -> wxColour"""
692 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
694 def GetFont(*args
, **kwargs
):
695 """GetFont() -> wxFont"""
696 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
698 def GetAlignment(*args
, **kwargs
):
699 """GetAlignment() -> (hAlign, vAlign)"""
700 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
702 def GetSize(*args
, **kwargs
):
703 """GetSize() -> (num_rows, num_cols)"""
704 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
706 def GetOverflow(*args
, **kwargs
):
707 """GetOverflow() -> bool"""
708 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
710 def GetRenderer(*args
, **kwargs
):
711 """GetRenderer(Grid grid, int row, int col) -> GridCellRenderer"""
712 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
714 def GetEditor(*args
, **kwargs
):
715 """GetEditor(Grid grid, int row, int col) -> GridCellEditor"""
716 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
718 def IsReadOnly(*args
, **kwargs
):
719 """IsReadOnly() -> bool"""
720 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
722 def SetDefAttr(*args
, **kwargs
):
723 """SetDefAttr(GridCellAttr defAttr)"""
724 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
727 class GridCellAttrPtr(GridCellAttr
):
728 def __init__(self
, this
):
730 if not hasattr(self
,"thisown"): self
.thisown
= 0
731 self
.__class
__ = GridCellAttr
732 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
734 class GridCellAttrProvider(object):
737 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
738 def __init__(self
, *args
, **kwargs
):
739 """__init__() -> GridCellAttrProvider"""
740 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
741 self
.this
= newobj
.this
744 self
._setOORInfo
(self
)
746 def _setOORInfo(*args
, **kwargs
):
747 """_setOORInfo(PyObject _self)"""
748 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
750 def GetAttr(*args
, **kwargs
):
751 """GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
752 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
754 def SetAttr(*args
, **kwargs
):
755 """SetAttr(GridCellAttr attr, int row, int col)"""
756 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
758 def SetRowAttr(*args
, **kwargs
):
759 """SetRowAttr(GridCellAttr attr, int row)"""
760 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
762 def SetColAttr(*args
, **kwargs
):
763 """SetColAttr(GridCellAttr attr, int col)"""
764 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
766 def UpdateAttrRows(*args
, **kwargs
):
767 """UpdateAttrRows(size_t pos, int numRows)"""
768 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
770 def UpdateAttrCols(*args
, **kwargs
):
771 """UpdateAttrCols(size_t pos, int numCols)"""
772 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
775 class GridCellAttrProviderPtr(GridCellAttrProvider
):
776 def __init__(self
, this
):
778 if not hasattr(self
,"thisown"): self
.thisown
= 0
779 self
.__class
__ = GridCellAttrProvider
780 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
782 class PyGridCellAttrProvider(GridCellAttrProvider
):
785 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
786 def __init__(self
, *args
, **kwargs
):
787 """__init__() -> PyGridCellAttrProvider"""
788 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
789 self
.this
= newobj
.this
792 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
794 def _setCallbackInfo(*args
, **kwargs
):
795 """_setCallbackInfo(PyObject self, PyObject _class)"""
796 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
798 def base_GetAttr(*args
, **kwargs
):
799 """base_GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
800 return _grid
.PyGridCellAttrProvider_base_GetAttr(*args
, **kwargs
)
802 def base_SetAttr(*args
, **kwargs
):
803 """base_SetAttr(GridCellAttr attr, int row, int col)"""
804 return _grid
.PyGridCellAttrProvider_base_SetAttr(*args
, **kwargs
)
806 def base_SetRowAttr(*args
, **kwargs
):
807 """base_SetRowAttr(GridCellAttr attr, int row)"""
808 return _grid
.PyGridCellAttrProvider_base_SetRowAttr(*args
, **kwargs
)
810 def base_SetColAttr(*args
, **kwargs
):
811 """base_SetColAttr(GridCellAttr attr, int col)"""
812 return _grid
.PyGridCellAttrProvider_base_SetColAttr(*args
, **kwargs
)
815 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
816 def __init__(self
, this
):
818 if not hasattr(self
,"thisown"): self
.thisown
= 0
819 self
.__class
__ = PyGridCellAttrProvider
820 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
822 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(PyObject _self)"""
829 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
831 def SetAttrProvider(*args
, **kwargs
):
832 """SetAttrProvider(GridCellAttrProvider attrProvider)"""
833 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
835 def GetAttrProvider(*args
, **kwargs
):
836 """GetAttrProvider() -> GridCellAttrProvider"""
837 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
839 def SetView(*args
, **kwargs
):
840 """SetView(Grid grid)"""
841 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
843 def GetView(*args
, **kwargs
):
844 """GetView() -> Grid"""
845 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
847 def GetNumberRows(*args
, **kwargs
):
848 """GetNumberRows() -> int"""
849 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
851 def GetNumberCols(*args
, **kwargs
):
852 """GetNumberCols() -> int"""
853 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
855 def IsEmptyCell(*args
, **kwargs
):
856 """IsEmptyCell(int row, int col) -> bool"""
857 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
859 def GetValue(*args
, **kwargs
):
860 """GetValue(int row, int col) -> wxString"""
861 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
863 def SetValue(*args
, **kwargs
):
864 """SetValue(int row, int col, wxString value)"""
865 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
867 def GetTypeName(*args
, **kwargs
):
868 """GetTypeName(int row, int col) -> wxString"""
869 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
871 def CanGetValueAs(*args
, **kwargs
):
872 """CanGetValueAs(int row, int col, wxString typeName) -> bool"""
873 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
875 def CanSetValueAs(*args
, **kwargs
):
876 """CanSetValueAs(int row, int col, wxString typeName) -> bool"""
877 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
879 def GetValueAsLong(*args
, **kwargs
):
880 """GetValueAsLong(int row, int col) -> long"""
881 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
883 def GetValueAsDouble(*args
, **kwargs
):
884 """GetValueAsDouble(int row, int col) -> double"""
885 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
887 def GetValueAsBool(*args
, **kwargs
):
888 """GetValueAsBool(int row, int col) -> bool"""
889 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
891 def SetValueAsLong(*args
, **kwargs
):
892 """SetValueAsLong(int row, int col, long value)"""
893 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
895 def SetValueAsDouble(*args
, **kwargs
):
896 """SetValueAsDouble(int row, int col, double value)"""
897 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
899 def SetValueAsBool(*args
, **kwargs
):
900 """SetValueAsBool(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(size_t pos=0, size_t numRows=1) -> bool"""
909 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
911 def AppendRows(*args
, **kwargs
):
912 """AppendRows(size_t numRows=1) -> bool"""
913 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
915 def DeleteRows(*args
, **kwargs
):
916 """DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
917 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
919 def InsertCols(*args
, **kwargs
):
920 """InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
921 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
923 def AppendCols(*args
, **kwargs
):
924 """AppendCols(size_t numCols=1) -> bool"""
925 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
927 def DeleteCols(*args
, **kwargs
):
928 """DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
929 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
931 def GetRowLabelValue(*args
, **kwargs
):
932 """GetRowLabelValue(int row) -> wxString"""
933 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
935 def GetColLabelValue(*args
, **kwargs
):
936 """GetColLabelValue(int col) -> wxString"""
937 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
939 def SetRowLabelValue(*args
, **kwargs
):
940 """SetRowLabelValue(int row, wxString value)"""
941 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
943 def SetColLabelValue(*args
, **kwargs
):
944 """SetColLabelValue(int col, wxString value)"""
945 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
947 def CanHaveAttributes(*args
, **kwargs
):
948 """CanHaveAttributes() -> bool"""
949 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
951 def GetAttr(*args
, **kwargs
):
952 """GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
953 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
955 def SetAttr(*args
, **kwargs
):
956 """SetAttr(GridCellAttr attr, int row, int col)"""
957 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
959 def SetRowAttr(*args
, **kwargs
):
960 """SetRowAttr(GridCellAttr attr, int row)"""
961 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
963 def SetColAttr(*args
, **kwargs
):
964 """SetColAttr(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
):
978 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
979 def __init__(self
, *args
, **kwargs
):
980 """__init__() -> PyGridTableBase"""
981 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
982 self
.this
= newobj
.this
985 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
987 def _setCallbackInfo(*args
, **kwargs
):
988 """_setCallbackInfo(PyObject self, PyObject _class)"""
989 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
991 def Destroy(*args
, **kwargs
):
994 Deletes the C++ object this Python object is a proxy for."""
995 return _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
997 def base_GetTypeName(*args
, **kwargs
):
998 """base_GetTypeName(int row, int col) -> wxString"""
999 return _grid
.PyGridTableBase_base_GetTypeName(*args
, **kwargs
)
1001 def base_CanGetValueAs(*args
, **kwargs
):
1002 """base_CanGetValueAs(int row, int col, wxString typeName) -> bool"""
1003 return _grid
.PyGridTableBase_base_CanGetValueAs(*args
, **kwargs
)
1005 def base_CanSetValueAs(*args
, **kwargs
):
1006 """base_CanSetValueAs(int row, int col, wxString typeName) -> bool"""
1007 return _grid
.PyGridTableBase_base_CanSetValueAs(*args
, **kwargs
)
1009 def base_Clear(*args
, **kwargs
):
1011 return _grid
.PyGridTableBase_base_Clear(*args
, **kwargs
)
1013 def base_InsertRows(*args
, **kwargs
):
1014 """base_InsertRows(size_t pos=0, size_t numRows=1) -> bool"""
1015 return _grid
.PyGridTableBase_base_InsertRows(*args
, **kwargs
)
1017 def base_AppendRows(*args
, **kwargs
):
1018 """base_AppendRows(size_t numRows=1) -> bool"""
1019 return _grid
.PyGridTableBase_base_AppendRows(*args
, **kwargs
)
1021 def base_DeleteRows(*args
, **kwargs
):
1022 """base_DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
1023 return _grid
.PyGridTableBase_base_DeleteRows(*args
, **kwargs
)
1025 def base_InsertCols(*args
, **kwargs
):
1026 """base_InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
1027 return _grid
.PyGridTableBase_base_InsertCols(*args
, **kwargs
)
1029 def base_AppendCols(*args
, **kwargs
):
1030 """base_AppendCols(size_t numCols=1) -> bool"""
1031 return _grid
.PyGridTableBase_base_AppendCols(*args
, **kwargs
)
1033 def base_DeleteCols(*args
, **kwargs
):
1034 """base_DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
1035 return _grid
.PyGridTableBase_base_DeleteCols(*args
, **kwargs
)
1037 def base_GetRowLabelValue(*args
, **kwargs
):
1038 """base_GetRowLabelValue(int row) -> wxString"""
1039 return _grid
.PyGridTableBase_base_GetRowLabelValue(*args
, **kwargs
)
1041 def base_GetColLabelValue(*args
, **kwargs
):
1042 """base_GetColLabelValue(int col) -> wxString"""
1043 return _grid
.PyGridTableBase_base_GetColLabelValue(*args
, **kwargs
)
1045 def base_SetRowLabelValue(*args
, **kwargs
):
1046 """base_SetRowLabelValue(int row, wxString value)"""
1047 return _grid
.PyGridTableBase_base_SetRowLabelValue(*args
, **kwargs
)
1049 def base_SetColLabelValue(*args
, **kwargs
):
1050 """base_SetColLabelValue(int col, wxString value)"""
1051 return _grid
.PyGridTableBase_base_SetColLabelValue(*args
, **kwargs
)
1053 def base_CanHaveAttributes(*args
, **kwargs
):
1054 """base_CanHaveAttributes() -> bool"""
1055 return _grid
.PyGridTableBase_base_CanHaveAttributes(*args
, **kwargs
)
1057 def base_GetAttr(*args
, **kwargs
):
1058 """base_GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
1059 return _grid
.PyGridTableBase_base_GetAttr(*args
, **kwargs
)
1061 def base_SetAttr(*args
, **kwargs
):
1062 """base_SetAttr(GridCellAttr attr, int row, int col)"""
1063 return _grid
.PyGridTableBase_base_SetAttr(*args
, **kwargs
)
1065 def base_SetRowAttr(*args
, **kwargs
):
1066 """base_SetRowAttr(GridCellAttr attr, int row)"""
1067 return _grid
.PyGridTableBase_base_SetRowAttr(*args
, **kwargs
)
1069 def base_SetColAttr(*args
, **kwargs
):
1070 """base_SetColAttr(GridCellAttr attr, int col)"""
1071 return _grid
.PyGridTableBase_base_SetColAttr(*args
, **kwargs
)
1074 class PyGridTableBasePtr(PyGridTableBase
):
1075 def __init__(self
, this
):
1077 if not hasattr(self
,"thisown"): self
.thisown
= 0
1078 self
.__class
__ = PyGridTableBase
1079 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1081 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__(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):
1112 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1113 def __init__(self
, *args
, **kwargs
):
1114 """__init__(GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1115 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1116 self
.this
= newobj
.this
1119 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1122 if self
.thisown
: destroy(self
)
1125 def SetTableObject(*args
, **kwargs
):
1126 """SetTableObject(GridTableBase table)"""
1127 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1129 def GetTableObject(*args
, **kwargs
):
1130 """GetTableObject() -> GridTableBase"""
1131 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1133 def SetId(*args
, **kwargs
):
1135 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1137 def GetId(*args
, **kwargs
):
1138 """GetId() -> int"""
1139 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1141 def SetCommandInt(*args
, **kwargs
):
1142 """SetCommandInt(int comInt1)"""
1143 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1145 def GetCommandInt(*args
, **kwargs
):
1146 """GetCommandInt() -> int"""
1147 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1149 def SetCommandInt2(*args
, **kwargs
):
1150 """SetCommandInt2(int comInt2)"""
1151 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1153 def GetCommandInt2(*args
, **kwargs
):
1154 """GetCommandInt2() -> int"""
1155 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1158 class GridTableMessagePtr(GridTableMessage
):
1159 def __init__(self
, this
):
1161 if not hasattr(self
,"thisown"): self
.thisown
= 0
1162 self
.__class
__ = GridTableMessage
1163 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1165 class GridCellCoords(object):
1168 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1169 def __init__(self
, *args
, **kwargs
):
1170 """__init__(int r=-1, int c=-1) -> GridCellCoords"""
1171 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1172 self
.this
= newobj
.this
1175 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1178 if self
.thisown
: destroy(self
)
1181 def GetRow(*args
, **kwargs
):
1182 """GetRow() -> int"""
1183 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1185 def SetRow(*args
, **kwargs
):
1187 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1189 def GetCol(*args
, **kwargs
):
1190 """GetCol() -> int"""
1191 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1193 def SetCol(*args
, **kwargs
):
1195 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1197 def Set(*args
, **kwargs
):
1198 """Set(int row, int col)"""
1199 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1201 def __eq__(*args
, **kwargs
):
1202 """__eq__(GridCellCoords other) -> bool"""
1203 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1205 def __ne__(*args
, **kwargs
):
1206 """__ne__(GridCellCoords other) -> bool"""
1207 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1209 def asTuple(*args
, **kwargs
):
1210 """asTuple() -> PyObject"""
1211 return _grid
.GridCellCoords_asTuple(*args
, **kwargs
)
1213 def __str__(self
): return str(self
.asTuple())
1214 def __repr__(self
): return 'wxGridCellCoords'+str(self
.asTuple())
1215 def __len__(self
): return len(self
.asTuple())
1216 def __getitem__(self
, index
): return self
.asTuple()[index
]
1217 def __setitem__(self
, index
, val
):
1218 if index
== 0: self
.SetRow(val
)
1219 elif index
== 1: self
.SetCol(val
)
1220 else: raise IndexError
1223 class GridCellCoordsPtr(GridCellCoords
):
1224 def __init__(self
, this
):
1226 if not hasattr(self
,"thisown"): self
.thisown
= 0
1227 self
.__class
__ = GridCellCoords
1228 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1230 class Grid(windows
.ScrolledWindow
):
1233 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1234 def __init__(self
, *args
, **kwargs
):
1235 """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1236 long style=WANTS_CHARS,
1237 wxString name=PanelNameStr) -> Grid"""
1238 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1239 self
.this
= newobj
.this
1242 self
._setOORInfo
(self
)
1244 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1245 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1246 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1247 def CreateGrid(*args
, **kwargs
):
1248 """CreateGrid(int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1249 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1251 def SetSelectionMode(*args
, **kwargs
):
1252 """SetSelectionMode(WXGRIDSELECTIONMODES selmode)"""
1253 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1255 def GetSelectionMode(*args
, **kwargs
):
1256 """GetSelectionMode() -> WXGRIDSELECTIONMODES"""
1257 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1259 def GetNumberRows(*args
, **kwargs
):
1260 """GetNumberRows() -> int"""
1261 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1263 def GetNumberCols(*args
, **kwargs
):
1264 """GetNumberCols() -> int"""
1265 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1267 def ProcessTableMessage(*args
, **kwargs
):
1268 """ProcessTableMessage(GridTableMessage ??) -> bool"""
1269 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1271 def GetTable(*args
, **kwargs
):
1272 """GetTable() -> GridTableBase"""
1273 return _grid
.Grid_GetTable(*args
, **kwargs
)
1275 def SetTable(*args
, **kwargs
):
1276 """SetTable(GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1277 return _grid
.Grid_SetTable(*args
, **kwargs
)
1279 def ClearGrid(*args
, **kwargs
):
1281 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1283 def InsertRows(*args
, **kwargs
):
1284 """InsertRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1285 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1287 def AppendRows(*args
, **kwargs
):
1288 """AppendRows(int numRows=1, bool updateLabels=True) -> bool"""
1289 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1291 def DeleteRows(*args
, **kwargs
):
1292 """DeleteRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1293 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1295 def InsertCols(*args
, **kwargs
):
1296 """InsertCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1297 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1299 def AppendCols(*args
, **kwargs
):
1300 """AppendCols(int numCols=1, bool updateLabels=True) -> bool"""
1301 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1303 def DeleteCols(*args
, **kwargs
):
1304 """DeleteCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1305 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1307 def DrawCellHighlight(*args
, **kwargs
):
1308 """DrawCellHighlight(wxDC dc, GridCellAttr attr)"""
1309 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1311 def DrawTextRectangle(*args
, **kwargs
):
1312 """DrawTextRectangle(wxDC dc, wxString ??, Rect ??, int horizontalAlignment=LEFT,
1313 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)"""
1314 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1316 def GetTextBoxSize(*args
, **kwargs
):
1317 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1318 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1320 def BeginBatch(*args
, **kwargs
):
1322 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1324 def EndBatch(*args
, **kwargs
):
1326 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1328 def GetBatchCount(*args
, **kwargs
):
1329 """GetBatchCount() -> int"""
1330 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1332 def ForceRefresh(*args
, **kwargs
):
1333 """ForceRefresh()"""
1334 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1336 def Refresh(*args
, **kwargs
):
1337 """Refresh(bool eraseb=True, Rect rect=None)"""
1338 return _grid
.Grid_Refresh(*args
, **kwargs
)
1340 def IsEditable(*args
, **kwargs
):
1341 """IsEditable() -> bool"""
1342 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1344 def EnableEditing(*args
, **kwargs
):
1345 """EnableEditing(bool edit)"""
1346 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1348 def EnableCellEditControl(*args
, **kwargs
):
1349 """EnableCellEditControl(bool enable=True)"""
1350 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1352 def DisableCellEditControl(*args
, **kwargs
):
1353 """DisableCellEditControl()"""
1354 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1356 def CanEnableCellControl(*args
, **kwargs
):
1357 """CanEnableCellControl() -> bool"""
1358 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1360 def IsCellEditControlEnabled(*args
, **kwargs
):
1361 """IsCellEditControlEnabled() -> bool"""
1362 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1364 def IsCellEditControlShown(*args
, **kwargs
):
1365 """IsCellEditControlShown() -> bool"""
1366 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1368 def IsCurrentCellReadOnly(*args
, **kwargs
):
1369 """IsCurrentCellReadOnly() -> bool"""
1370 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1372 def ShowCellEditControl(*args
, **kwargs
):
1373 """ShowCellEditControl()"""
1374 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1376 def HideCellEditControl(*args
, **kwargs
):
1377 """HideCellEditControl()"""
1378 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1380 def SaveEditControlValue(*args
, **kwargs
):
1381 """SaveEditControlValue()"""
1382 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1384 def XYToCell(*args
, **kwargs
):
1385 """XYToCell(int x, int y) -> GridCellCoords"""
1386 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1388 def YToRow(*args
, **kwargs
):
1389 """YToRow(int y) -> int"""
1390 return _grid
.Grid_YToRow(*args
, **kwargs
)
1392 def XToCol(*args
, **kwargs
):
1393 """XToCol(int x) -> int"""
1394 return _grid
.Grid_XToCol(*args
, **kwargs
)
1396 def YToEdgeOfRow(*args
, **kwargs
):
1397 """YToEdgeOfRow(int y) -> int"""
1398 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1400 def XToEdgeOfCol(*args
, **kwargs
):
1401 """XToEdgeOfCol(int x) -> int"""
1402 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1404 def CellToRect(*args
, **kwargs
):
1405 """CellToRect(int row, int col) -> Rect"""
1406 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1408 def GetGridCursorRow(*args
, **kwargs
):
1409 """GetGridCursorRow() -> int"""
1410 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1412 def GetGridCursorCol(*args
, **kwargs
):
1413 """GetGridCursorCol() -> int"""
1414 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1416 def IsVisible(*args
, **kwargs
):
1417 """IsVisible(int row, int col, bool wholeCellVisible=True) -> bool"""
1418 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1420 def MakeCellVisible(*args
, **kwargs
):
1421 """MakeCellVisible(int row, int col)"""
1422 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1424 def SetGridCursor(*args
, **kwargs
):
1425 """SetGridCursor(int row, int col)"""
1426 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1428 def MoveCursorUp(*args
, **kwargs
):
1429 """MoveCursorUp(bool expandSelection) -> bool"""
1430 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1432 def MoveCursorDown(*args
, **kwargs
):
1433 """MoveCursorDown(bool expandSelection) -> bool"""
1434 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1436 def MoveCursorLeft(*args
, **kwargs
):
1437 """MoveCursorLeft(bool expandSelection) -> bool"""
1438 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1440 def MoveCursorRight(*args
, **kwargs
):
1441 """MoveCursorRight(bool expandSelection) -> bool"""
1442 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1444 def MovePageDown(*args
, **kwargs
):
1445 """MovePageDown() -> bool"""
1446 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1448 def MovePageUp(*args
, **kwargs
):
1449 """MovePageUp() -> bool"""
1450 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1452 def MoveCursorUpBlock(*args
, **kwargs
):
1453 """MoveCursorUpBlock(bool expandSelection) -> bool"""
1454 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1456 def MoveCursorDownBlock(*args
, **kwargs
):
1457 """MoveCursorDownBlock(bool expandSelection) -> bool"""
1458 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1460 def MoveCursorLeftBlock(*args
, **kwargs
):
1461 """MoveCursorLeftBlock(bool expandSelection) -> bool"""
1462 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1464 def MoveCursorRightBlock(*args
, **kwargs
):
1465 """MoveCursorRightBlock(bool expandSelection) -> bool"""
1466 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1468 def GetDefaultRowLabelSize(*args
, **kwargs
):
1469 """GetDefaultRowLabelSize() -> int"""
1470 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1472 def GetRowLabelSize(*args
, **kwargs
):
1473 """GetRowLabelSize() -> int"""
1474 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1476 def GetDefaultColLabelSize(*args
, **kwargs
):
1477 """GetDefaultColLabelSize() -> int"""
1478 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1480 def GetColLabelSize(*args
, **kwargs
):
1481 """GetColLabelSize() -> int"""
1482 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1484 def GetLabelBackgroundColour(*args
, **kwargs
):
1485 """GetLabelBackgroundColour() -> wxColour"""
1486 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1488 def GetLabelTextColour(*args
, **kwargs
):
1489 """GetLabelTextColour() -> wxColour"""
1490 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1492 def GetLabelFont(*args
, **kwargs
):
1493 """GetLabelFont() -> wxFont"""
1494 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1496 def GetRowLabelAlignment(*args
, **kwargs
):
1497 """GetRowLabelAlignment() -> (horiz, vert)"""
1498 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1500 def GetColLabelAlignment(*args
, **kwargs
):
1501 """GetColLabelAlignment() -> (horiz, vert)"""
1502 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1504 def GetColLabelTextOrientation(*args
, **kwargs
):
1505 """GetColLabelTextOrientation() -> int"""
1506 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1508 def GetRowLabelValue(*args
, **kwargs
):
1509 """GetRowLabelValue(int row) -> wxString"""
1510 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1512 def GetColLabelValue(*args
, **kwargs
):
1513 """GetColLabelValue(int col) -> wxString"""
1514 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1516 def GetGridLineColour(*args
, **kwargs
):
1517 """GetGridLineColour() -> wxColour"""
1518 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1520 def GetCellHighlightColour(*args
, **kwargs
):
1521 """GetCellHighlightColour() -> wxColour"""
1522 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1524 def GetCellHighlightPenWidth(*args
, **kwargs
):
1525 """GetCellHighlightPenWidth() -> int"""
1526 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1528 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1529 """GetCellHighlightROPenWidth() -> int"""
1530 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1532 def SetRowLabelSize(*args
, **kwargs
):
1533 """SetRowLabelSize(int width)"""
1534 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1536 def SetColLabelSize(*args
, **kwargs
):
1537 """SetColLabelSize(int height)"""
1538 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1540 def SetLabelBackgroundColour(*args
, **kwargs
):
1541 """SetLabelBackgroundColour(wxColour ??)"""
1542 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1544 def SetLabelTextColour(*args
, **kwargs
):
1545 """SetLabelTextColour(wxColour ??)"""
1546 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1548 def SetLabelFont(*args
, **kwargs
):
1549 """SetLabelFont(wxFont ??)"""
1550 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1552 def SetRowLabelAlignment(*args
, **kwargs
):
1553 """SetRowLabelAlignment(int horiz, int vert)"""
1554 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1556 def SetColLabelAlignment(*args
, **kwargs
):
1557 """SetColLabelAlignment(int horiz, int vert)"""
1558 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1560 def SetColLabelTextOrientation(*args
, **kwargs
):
1561 """SetColLabelTextOrientation(int textOrientation)"""
1562 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1564 def SetRowLabelValue(*args
, **kwargs
):
1565 """SetRowLabelValue(int row, wxString ??)"""
1566 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1568 def SetColLabelValue(*args
, **kwargs
):
1569 """SetColLabelValue(int col, wxString ??)"""
1570 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1572 def SetGridLineColour(*args
, **kwargs
):
1573 """SetGridLineColour(wxColour ??)"""
1574 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1576 def SetCellHighlightColour(*args
, **kwargs
):
1577 """SetCellHighlightColour(wxColour ??)"""
1578 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1580 def SetCellHighlightPenWidth(*args
, **kwargs
):
1581 """SetCellHighlightPenWidth(int width)"""
1582 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1584 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1585 """SetCellHighlightROPenWidth(int width)"""
1586 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1588 def EnableDragRowSize(*args
, **kwargs
):
1589 """EnableDragRowSize(bool enable=True)"""
1590 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1592 def DisableDragRowSize(*args
, **kwargs
):
1593 """DisableDragRowSize()"""
1594 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1596 def CanDragRowSize(*args
, **kwargs
):
1597 """CanDragRowSize() -> bool"""
1598 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1600 def EnableDragColSize(*args
, **kwargs
):
1601 """EnableDragColSize(bool enable=True)"""
1602 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1604 def DisableDragColSize(*args
, **kwargs
):
1605 """DisableDragColSize()"""
1606 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1608 def CanDragColSize(*args
, **kwargs
):
1609 """CanDragColSize() -> bool"""
1610 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1612 def EnableDragGridSize(*args
, **kwargs
):
1613 """EnableDragGridSize(bool enable=True)"""
1614 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1616 def DisableDragGridSize(*args
, **kwargs
):
1617 """DisableDragGridSize()"""
1618 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1620 def CanDragGridSize(*args
, **kwargs
):
1621 """CanDragGridSize() -> bool"""
1622 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1624 def SetAttr(*args
, **kwargs
):
1625 """SetAttr(int row, int col, GridCellAttr attr)"""
1626 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1628 def SetRowAttr(*args
, **kwargs
):
1629 """SetRowAttr(int row, GridCellAttr attr)"""
1630 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1632 def SetColAttr(*args
, **kwargs
):
1633 """SetColAttr(int col, GridCellAttr attr)"""
1634 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1636 def SetColFormatBool(*args
, **kwargs
):
1637 """SetColFormatBool(int col)"""
1638 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1640 def SetColFormatNumber(*args
, **kwargs
):
1641 """SetColFormatNumber(int col)"""
1642 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1644 def SetColFormatFloat(*args
, **kwargs
):
1645 """SetColFormatFloat(int col, int width=-1, int precision=-1)"""
1646 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1648 def SetColFormatCustom(*args
, **kwargs
):
1649 """SetColFormatCustom(int col, wxString typeName)"""
1650 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1652 def EnableGridLines(*args
, **kwargs
):
1653 """EnableGridLines(bool enable=True)"""
1654 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1656 def GridLinesEnabled(*args
, **kwargs
):
1657 """GridLinesEnabled() -> bool"""
1658 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1660 def GetDefaultRowSize(*args
, **kwargs
):
1661 """GetDefaultRowSize() -> int"""
1662 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1664 def GetRowSize(*args
, **kwargs
):
1665 """GetRowSize(int row) -> int"""
1666 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1668 def GetDefaultColSize(*args
, **kwargs
):
1669 """GetDefaultColSize() -> int"""
1670 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1672 def GetColSize(*args
, **kwargs
):
1673 """GetColSize(int col) -> int"""
1674 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1676 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1677 """GetDefaultCellBackgroundColour() -> wxColour"""
1678 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1680 def GetCellBackgroundColour(*args
, **kwargs
):
1681 """GetCellBackgroundColour(int row, int col) -> wxColour"""
1682 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1684 def GetDefaultCellTextColour(*args
, **kwargs
):
1685 """GetDefaultCellTextColour() -> wxColour"""
1686 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1688 def GetCellTextColour(*args
, **kwargs
):
1689 """GetCellTextColour(int row, int col) -> wxColour"""
1690 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1692 def GetDefaultCellFont(*args
, **kwargs
):
1693 """GetDefaultCellFont() -> wxFont"""
1694 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1696 def GetCellFont(*args
, **kwargs
):
1697 """GetCellFont(int row, int col) -> wxFont"""
1698 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1700 def GetDefaultCellAlignment(*args
, **kwargs
):
1701 """GetDefaultCellAlignment() -> (horiz, vert)"""
1702 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1704 def GetCellAlignment(*args
, **kwargs
):
1705 """GetCellAlignment() -> (horiz, vert)"""
1706 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1708 def GetDefaultCellOverflow(*args
, **kwargs
):
1709 """GetDefaultCellOverflow() -> bool"""
1710 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1712 def GetCellOverflow(*args
, **kwargs
):
1713 """GetCellOverflow(int row, int col) -> bool"""
1714 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1716 def GetCellSize(*args
, **kwargs
):
1717 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1718 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1720 def SetDefaultRowSize(*args
, **kwargs
):
1721 """SetDefaultRowSize(int height, bool resizeExistingRows=False)"""
1722 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1724 def SetRowSize(*args
, **kwargs
):
1725 """SetRowSize(int row, int height)"""
1726 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1728 def SetDefaultColSize(*args
, **kwargs
):
1729 """SetDefaultColSize(int width, bool resizeExistingCols=False)"""
1730 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1732 def SetColSize(*args
, **kwargs
):
1733 """SetColSize(int col, int width)"""
1734 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1736 def AutoSizeColumn(*args
, **kwargs
):
1737 """AutoSizeColumn(int col, bool setAsMin=True)"""
1738 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1740 def AutoSizeRow(*args
, **kwargs
):
1741 """AutoSizeRow(int row, bool setAsMin=True)"""
1742 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1744 def AutoSizeColumns(*args
, **kwargs
):
1745 """AutoSizeColumns(bool setAsMin=True)"""
1746 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1748 def AutoSizeRows(*args
, **kwargs
):
1749 """AutoSizeRows(bool setAsMin=True)"""
1750 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1752 def AutoSize(*args
, **kwargs
):
1754 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1756 def AutoSizeRowLabelSize(*args
, **kwargs
):
1757 """AutoSizeRowLabelSize(int row)"""
1758 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1760 def AutoSizeColLabelSize(*args
, **kwargs
):
1761 """AutoSizeColLabelSize(int col)"""
1762 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1764 def SetColMinimalWidth(*args
, **kwargs
):
1765 """SetColMinimalWidth(int col, int width)"""
1766 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1768 def SetRowMinimalHeight(*args
, **kwargs
):
1769 """SetRowMinimalHeight(int row, int width)"""
1770 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1772 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1773 """SetColMinimalAcceptableWidth(int width)"""
1774 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1776 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1777 """SetRowMinimalAcceptableHeight(int width)"""
1778 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1780 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1781 """GetColMinimalAcceptableWidth() -> int"""
1782 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1784 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1785 """GetRowMinimalAcceptableHeight() -> int"""
1786 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1788 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1789 """SetDefaultCellBackgroundColour(wxColour ??)"""
1790 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1792 def SetCellBackgroundColour(*args
, **kwargs
):
1793 """SetCellBackgroundColour(int row, int col, wxColour ??)"""
1794 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1796 def SetDefaultCellTextColour(*args
, **kwargs
):
1797 """SetDefaultCellTextColour(wxColour ??)"""
1798 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1800 def SetCellTextColour(*args
, **kwargs
):
1801 """SetCellTextColour(int row, int col, wxColour ??)"""
1802 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1804 def SetDefaultCellFont(*args
, **kwargs
):
1805 """SetDefaultCellFont(wxFont ??)"""
1806 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1808 def SetCellFont(*args
, **kwargs
):
1809 """SetCellFont(int row, int col, wxFont ??)"""
1810 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1812 def SetDefaultCellAlignment(*args
, **kwargs
):
1813 """SetDefaultCellAlignment(int horiz, int vert)"""
1814 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1816 def SetCellAlignment(*args
, **kwargs
):
1817 """SetCellAlignment(int row, int col, int horiz, int vert)"""
1818 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1820 def SetDefaultCellOverflow(*args
, **kwargs
):
1821 """SetDefaultCellOverflow(bool allow)"""
1822 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1824 def SetCellOverflow(*args
, **kwargs
):
1825 """SetCellOverflow(int row, int col, bool allow)"""
1826 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1828 def SetCellSize(*args
, **kwargs
):
1829 """SetCellSize(int row, int col, int num_rows, int num_cols)"""
1830 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1832 def SetDefaultRenderer(*args
, **kwargs
):
1833 """SetDefaultRenderer(GridCellRenderer renderer)"""
1834 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1836 def SetCellRenderer(*args
, **kwargs
):
1837 """SetCellRenderer(int row, int col, GridCellRenderer renderer)"""
1838 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1840 def GetDefaultRenderer(*args
, **kwargs
):
1841 """GetDefaultRenderer() -> GridCellRenderer"""
1842 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1844 def GetCellRenderer(*args
, **kwargs
):
1845 """GetCellRenderer(int row, int col) -> GridCellRenderer"""
1846 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1848 def SetDefaultEditor(*args
, **kwargs
):
1849 """SetDefaultEditor(GridCellEditor editor)"""
1850 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1852 def SetCellEditor(*args
, **kwargs
):
1853 """SetCellEditor(int row, int col, GridCellEditor editor)"""
1854 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1856 def GetDefaultEditor(*args
, **kwargs
):
1857 """GetDefaultEditor() -> GridCellEditor"""
1858 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1860 def GetCellEditor(*args
, **kwargs
):
1861 """GetCellEditor(int row, int col) -> GridCellEditor"""
1862 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1864 def GetCellValue(*args
, **kwargs
):
1865 """GetCellValue(int row, int col) -> wxString"""
1866 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1868 def SetCellValue(*args
, **kwargs
):
1869 """SetCellValue(int row, int col, wxString s)"""
1870 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1872 def IsReadOnly(*args
, **kwargs
):
1873 """IsReadOnly(int row, int col) -> bool"""
1874 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1876 def SetReadOnly(*args
, **kwargs
):
1877 """SetReadOnly(int row, int col, bool isReadOnly=True)"""
1878 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1880 def SelectRow(*args
, **kwargs
):
1881 """SelectRow(int row, bool addToSelected=False)"""
1882 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1884 def SelectCol(*args
, **kwargs
):
1885 """SelectCol(int col, bool addToSelected=False)"""
1886 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1888 def SelectBlock(*args
, **kwargs
):
1889 """SelectBlock(int topRow, int leftCol, int bottomRow, int rightCol,
1890 bool addToSelected=False)"""
1891 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1893 def SelectAll(*args
, **kwargs
):
1895 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1897 def IsSelection(*args
, **kwargs
):
1898 """IsSelection() -> bool"""
1899 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1901 def ClearSelection(*args
, **kwargs
):
1902 """ClearSelection()"""
1903 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1905 def IsInSelection(*args
, **kwargs
):
1906 """IsInSelection(int row, int col) -> bool"""
1907 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1909 def GetSelectedCells(*args
, **kwargs
):
1910 """GetSelectedCells() -> wxGridCellCoordsArray"""
1911 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1913 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1914 """GetSelectionBlockTopLeft() -> wxGridCellCoordsArray"""
1915 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1917 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1918 """GetSelectionBlockBottomRight() -> wxGridCellCoordsArray"""
1919 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1921 def GetSelectedRows(*args
, **kwargs
):
1922 """GetSelectedRows() -> wxArrayInt"""
1923 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1925 def GetSelectedCols(*args
, **kwargs
):
1926 """GetSelectedCols() -> wxArrayInt"""
1927 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1929 def DeselectRow(*args
, **kwargs
):
1930 """DeselectRow(int row)"""
1931 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1933 def DeselectCol(*args
, **kwargs
):
1934 """DeselectCol(int col)"""
1935 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1937 def DeselectCell(*args
, **kwargs
):
1938 """DeselectCell(int row, int col)"""
1939 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1941 def BlockToDeviceRect(*args
, **kwargs
):
1942 """BlockToDeviceRect(GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1943 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1945 def GetSelectionBackground(*args
, **kwargs
):
1946 """GetSelectionBackground() -> wxColour"""
1947 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1949 def GetSelectionForeground(*args
, **kwargs
):
1950 """GetSelectionForeground() -> wxColour"""
1951 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1953 def SetSelectionBackground(*args
, **kwargs
):
1954 """SetSelectionBackground(wxColour c)"""
1955 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1957 def SetSelectionForeground(*args
, **kwargs
):
1958 """SetSelectionForeground(wxColour c)"""
1959 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1961 def RegisterDataType(*args
, **kwargs
):
1962 """RegisterDataType(wxString typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1963 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1965 def GetDefaultEditorForCell(*args
, **kwargs
):
1966 """GetDefaultEditorForCell(int row, int col) -> GridCellEditor"""
1967 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1969 def GetDefaultRendererForCell(*args
, **kwargs
):
1970 """GetDefaultRendererForCell(int row, int col) -> GridCellRenderer"""
1971 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1973 def GetDefaultEditorForType(*args
, **kwargs
):
1974 """GetDefaultEditorForType(wxString typeName) -> GridCellEditor"""
1975 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1977 def GetDefaultRendererForType(*args
, **kwargs
):
1978 """GetDefaultRendererForType(wxString typeName) -> GridCellRenderer"""
1979 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1981 def SetMargins(*args
, **kwargs
):
1982 """SetMargins(int extraWidth, int extraHeight)"""
1983 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1985 def GetGridWindow(*args
, **kwargs
):
1986 """GetGridWindow() -> Window"""
1987 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1989 def GetGridRowLabelWindow(*args
, **kwargs
):
1990 """GetGridRowLabelWindow() -> Window"""
1991 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1993 def GetGridColLabelWindow(*args
, **kwargs
):
1994 """GetGridColLabelWindow() -> Window"""
1995 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1997 def GetGridCornerLabelWindow(*args
, **kwargs
):
1998 """GetGridCornerLabelWindow() -> Window"""
1999 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
2002 class GridPtr(Grid
):
2003 def __init__(self
, this
):
2005 if not hasattr(self
,"thisown"): self
.thisown
= 0
2006 self
.__class
__ = Grid
2007 _grid
.Grid_swigregister(GridPtr
)
2009 class GridEvent(core
.NotifyEvent
):
2012 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2013 def __init__(self
, *args
, **kwargs
):
2014 """__init__(int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2015 int x=-1, int y=-1, bool sel=True, bool control=False,
2016 bool shift=False, bool alt=False,
2017 bool meta=False) -> GridEvent"""
2018 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2019 self
.this
= newobj
.this
2022 def GetRow(*args
, **kwargs
):
2023 """GetRow() -> int"""
2024 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2026 def GetCol(*args
, **kwargs
):
2027 """GetCol() -> int"""
2028 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2030 def GetPosition(*args
, **kwargs
):
2031 """GetPosition() -> Point"""
2032 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2034 def Selecting(*args
, **kwargs
):
2035 """Selecting() -> bool"""
2036 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2038 def ControlDown(*args
, **kwargs
):
2039 """ControlDown() -> bool"""
2040 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2042 def MetaDown(*args
, **kwargs
):
2043 """MetaDown() -> bool"""
2044 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2046 def ShiftDown(*args
, **kwargs
):
2047 """ShiftDown() -> bool"""
2048 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2050 def AltDown(*args
, **kwargs
):
2051 """AltDown() -> bool"""
2052 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2055 class GridEventPtr(GridEvent
):
2056 def __init__(self
, this
):
2058 if not hasattr(self
,"thisown"): self
.thisown
= 0
2059 self
.__class
__ = GridEvent
2060 _grid
.GridEvent_swigregister(GridEventPtr
)
2062 class GridSizeEvent(core
.NotifyEvent
):
2065 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2066 def __init__(self
, *args
, **kwargs
):
2067 """__init__(int id, wxEventType type, Grid obj, int rowOrCol=-1,
2068 int x=-1, int y=-1, bool control=False, bool shift=False,
2069 bool alt=False, bool meta=False) -> GridSizeEvent"""
2070 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2071 self
.this
= newobj
.this
2074 def GetRowOrCol(*args
, **kwargs
):
2075 """GetRowOrCol() -> int"""
2076 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2078 def GetPosition(*args
, **kwargs
):
2079 """GetPosition() -> Point"""
2080 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2082 def ControlDown(*args
, **kwargs
):
2083 """ControlDown() -> bool"""
2084 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2086 def MetaDown(*args
, **kwargs
):
2087 """MetaDown() -> bool"""
2088 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2090 def ShiftDown(*args
, **kwargs
):
2091 """ShiftDown() -> bool"""
2092 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2094 def AltDown(*args
, **kwargs
):
2095 """AltDown() -> bool"""
2096 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2099 class GridSizeEventPtr(GridSizeEvent
):
2100 def __init__(self
, this
):
2102 if not hasattr(self
,"thisown"): self
.thisown
= 0
2103 self
.__class
__ = GridSizeEvent
2104 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2106 class GridRangeSelectEvent(core
.NotifyEvent
):
2109 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2110 def __init__(self
, *args
, **kwargs
):
2111 """__init__(int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2112 GridCellCoords bottomRight, bool sel=True,
2113 bool control=False, bool shift=False,
2114 bool alt=False, bool meta=False) -> GridRangeSelectEvent"""
2115 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2116 self
.this
= newobj
.this
2119 def GetTopLeftCoords(*args
, **kwargs
):
2120 """GetTopLeftCoords() -> GridCellCoords"""
2121 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2123 def GetBottomRightCoords(*args
, **kwargs
):
2124 """GetBottomRightCoords() -> GridCellCoords"""
2125 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2127 def GetTopRow(*args
, **kwargs
):
2128 """GetTopRow() -> int"""
2129 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2131 def GetBottomRow(*args
, **kwargs
):
2132 """GetBottomRow() -> int"""
2133 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2135 def GetLeftCol(*args
, **kwargs
):
2136 """GetLeftCol() -> int"""
2137 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2139 def GetRightCol(*args
, **kwargs
):
2140 """GetRightCol() -> int"""
2141 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2143 def Selecting(*args
, **kwargs
):
2144 """Selecting() -> bool"""
2145 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2147 def ControlDown(*args
, **kwargs
):
2148 """ControlDown() -> bool"""
2149 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2151 def MetaDown(*args
, **kwargs
):
2152 """MetaDown() -> bool"""
2153 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2155 def ShiftDown(*args
, **kwargs
):
2156 """ShiftDown() -> bool"""
2157 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2159 def AltDown(*args
, **kwargs
):
2160 """AltDown() -> bool"""
2161 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2164 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2165 def __init__(self
, this
):
2167 if not hasattr(self
,"thisown"): self
.thisown
= 0
2168 self
.__class
__ = GridRangeSelectEvent
2169 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2171 class GridEditorCreatedEvent(core
.CommandEvent
):
2174 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2175 def __init__(self
, *args
, **kwargs
):
2176 """__init__(int id, wxEventType type, Object obj, int row, int col,
2177 Control ctrl) -> GridEditorCreatedEvent"""
2178 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2179 self
.this
= newobj
.this
2182 def GetRow(*args
, **kwargs
):
2183 """GetRow() -> int"""
2184 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2186 def GetCol(*args
, **kwargs
):
2187 """GetCol() -> int"""
2188 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2190 def GetControl(*args
, **kwargs
):
2191 """GetControl() -> Control"""
2192 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2194 def SetRow(*args
, **kwargs
):
2195 """SetRow(int row)"""
2196 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2198 def SetCol(*args
, **kwargs
):
2199 """SetCol(int col)"""
2200 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2202 def SetControl(*args
, **kwargs
):
2203 """SetControl(Control ctrl)"""
2204 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2207 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = GridEditorCreatedEvent
2212 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2214 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2215 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2216 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2217 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2218 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2219 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2220 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2221 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2222 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2223 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2224 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2225 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2226 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2227 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2228 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2229 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2230 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2231 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2232 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2233 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2234 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2235 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2236 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2237 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2238 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2239 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2240 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2241 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2242 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2243 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2244 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2245 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)