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):
19 def __init__(self
): raise RuntimeError, "No constructor defined"
21 return "<%s.%s; proxy of C++ wxGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
22 def _setOORInfo(*args
, **kwargs
):
23 """_setOORInfo(PyObject _self)"""
24 return _grid
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
26 def SetParameters(*args
, **kwargs
):
27 """SetParameters(wxString params)"""
28 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
30 def IncRef(*args
, **kwargs
):
32 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
34 def DecRef(*args
, **kwargs
):
36 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
38 def Draw(*args
, **kwargs
):
40 Draw(Grid grid, GridCellAttr attr, wxDC dc, Rect rect, int row,
41 int col, bool isSelected)
43 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
45 def GetBestSize(*args
, **kwargs
):
46 """GetBestSize(Grid grid, GridCellAttr attr, wxDC dc, int row, int col) -> Size"""
47 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
49 def Clone(*args
, **kwargs
):
50 """Clone() -> GridCellRenderer"""
51 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
54 class GridCellRendererPtr(GridCellRenderer
):
55 def __init__(self
, this
):
57 if not hasattr(self
,"thisown"): self
.thisown
= 0
58 self
.__class
__ = GridCellRenderer
59 _grid
.GridCellRenderer_swigregister(GridCellRendererPtr
)
61 GridNoCellCoords
= cvar
.GridNoCellCoords
62 GridNoCellRect
= cvar
.GridNoCellRect
64 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
):
93 return "<%s.%s; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
94 def __init__(self
, *args
, **kwargs
):
95 """__init__() -> GridCellStringRenderer"""
96 newobj
= _grid
.new_GridCellStringRenderer(*args
, **kwargs
)
97 self
.this
= newobj
.this
100 self
._setOORInfo
(self
)
103 class GridCellStringRendererPtr(GridCellStringRenderer
):
104 def __init__(self
, this
):
106 if not hasattr(self
,"thisown"): self
.thisown
= 0
107 self
.__class
__ = GridCellStringRenderer
108 _grid
.GridCellStringRenderer_swigregister(GridCellStringRendererPtr
)
110 class GridCellNumberRenderer(GridCellStringRenderer
):
112 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
113 def __init__(self
, *args
, **kwargs
):
114 """__init__() -> GridCellNumberRenderer"""
115 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
116 self
.this
= newobj
.this
119 self
._setOORInfo
(self
)
122 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
123 def __init__(self
, this
):
125 if not hasattr(self
,"thisown"): self
.thisown
= 0
126 self
.__class
__ = GridCellNumberRenderer
127 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
129 class GridCellFloatRenderer(GridCellStringRenderer
):
131 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
132 def __init__(self
, *args
, **kwargs
):
133 """__init__(int width=-1, int precision=-1) -> GridCellFloatRenderer"""
134 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
135 self
.this
= newobj
.this
138 self
._setOORInfo
(self
)
140 def GetWidth(*args
, **kwargs
):
141 """GetWidth() -> int"""
142 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
144 def SetWidth(*args
, **kwargs
):
145 """SetWidth(int width)"""
146 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
148 def GetPrecision(*args
, **kwargs
):
149 """GetPrecision() -> int"""
150 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
152 def SetPrecision(*args
, **kwargs
):
153 """SetPrecision(int precision)"""
154 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
157 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
158 def __init__(self
, this
):
160 if not hasattr(self
,"thisown"): self
.thisown
= 0
161 self
.__class
__ = GridCellFloatRenderer
162 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
164 class GridCellBoolRenderer(GridCellRenderer
):
166 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
167 def __init__(self
, *args
, **kwargs
):
168 """__init__() -> GridCellBoolRenderer"""
169 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 self
._setOORInfo
(self
)
176 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
177 def __init__(self
, this
):
179 if not hasattr(self
,"thisown"): self
.thisown
= 0
180 self
.__class
__ = GridCellBoolRenderer
181 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
183 class GridCellDateTimeRenderer(GridCellStringRenderer
):
185 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
186 def __init__(self
, *args
, **kwargs
):
187 """__init__(wxString outformat=wxPyDateTimeFormatStr, wxString informat=wxPyDateTimeFormatStr) -> GridCellDateTimeRenderer"""
188 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
189 self
.this
= newobj
.this
192 self
._setOORInfo
(self
)
195 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
196 def __init__(self
, this
):
198 if not hasattr(self
,"thisown"): self
.thisown
= 0
199 self
.__class
__ = GridCellDateTimeRenderer
200 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
202 class GridCellEnumRenderer(GridCellStringRenderer
):
204 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
205 def __init__(self
, *args
, **kwargs
):
206 """__init__(wxString choices=wxPyEmptyString) -> GridCellEnumRenderer"""
207 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
208 self
.this
= newobj
.this
211 self
._setOORInfo
(self
)
214 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
215 def __init__(self
, this
):
217 if not hasattr(self
,"thisown"): self
.thisown
= 0
218 self
.__class
__ = GridCellEnumRenderer
219 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
221 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
223 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
224 def __init__(self
, *args
, **kwargs
):
225 """__init__() -> GridCellAutoWrapStringRenderer"""
226 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
227 self
.this
= newobj
.this
230 self
._setOORInfo
(self
)
233 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
234 def __init__(self
, this
):
236 if not hasattr(self
,"thisown"): self
.thisown
= 0
237 self
.__class
__ = GridCellAutoWrapStringRenderer
238 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
240 class GridCellEditor(object):
241 def __init__(self
): raise RuntimeError, "No constructor defined"
243 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
244 def _setOORInfo(*args
, **kwargs
):
245 """_setOORInfo(PyObject _self)"""
246 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
248 def IsCreated(*args
, **kwargs
):
249 """IsCreated() -> bool"""
250 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
252 def GetControl(*args
, **kwargs
):
253 """GetControl() -> Control"""
254 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
256 def SetControl(*args
, **kwargs
):
257 """SetControl(Control control)"""
258 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
260 def GetCellAttr(*args
, **kwargs
):
261 """GetCellAttr() -> GridCellAttr"""
262 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
264 def SetCellAttr(*args
, **kwargs
):
265 """SetCellAttr(GridCellAttr attr)"""
266 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
268 def SetParameters(*args
, **kwargs
):
269 """SetParameters(wxString params)"""
270 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
272 def IncRef(*args
, **kwargs
):
274 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
276 def DecRef(*args
, **kwargs
):
278 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
280 def Create(*args
, **kwargs
):
281 """Create(Window parent, int id, EvtHandler evtHandler)"""
282 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
284 def BeginEdit(*args
, **kwargs
):
285 """BeginEdit(int row, int col, Grid grid)"""
286 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
288 def EndEdit(*args
, **kwargs
):
289 """EndEdit(int row, int col, Grid grid) -> bool"""
290 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
292 def Reset(*args
, **kwargs
):
294 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
296 def Clone(*args
, **kwargs
):
297 """Clone() -> GridCellEditor"""
298 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
300 def SetSize(*args
, **kwargs
):
301 """SetSize(Rect rect)"""
302 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
304 def Show(*args
, **kwargs
):
305 """Show(bool show, GridCellAttr attr=None)"""
306 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
308 def PaintBackground(*args
, **kwargs
):
309 """PaintBackground(Rect rectCell, GridCellAttr attr)"""
310 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
312 def IsAcceptedKey(*args
, **kwargs
):
313 """IsAcceptedKey(KeyEvent event) -> bool"""
314 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
316 def StartingKey(*args
, **kwargs
):
317 """StartingKey(KeyEvent event)"""
318 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
320 def StartingClick(*args
, **kwargs
):
321 """StartingClick()"""
322 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
324 def HandleReturn(*args
, **kwargs
):
325 """HandleReturn(KeyEvent event)"""
326 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
328 def Destroy(*args
, **kwargs
):
330 return _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
333 class GridCellEditorPtr(GridCellEditor
):
334 def __init__(self
, this
):
336 if not hasattr(self
,"thisown"): self
.thisown
= 0
337 self
.__class
__ = GridCellEditor
338 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
340 class PyGridCellEditor(GridCellEditor
):
342 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
343 def __init__(self
, *args
, **kwargs
):
344 """__init__() -> PyGridCellEditor"""
345 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
346 self
.this
= newobj
.this
349 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
351 def _setCallbackInfo(*args
, **kwargs
):
352 """_setCallbackInfo(PyObject self, PyObject _class)"""
353 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
355 def base_SetSize(*args
, **kwargs
):
356 """base_SetSize(Rect rect)"""
357 return _grid
.PyGridCellEditor_base_SetSize(*args
, **kwargs
)
359 def base_Show(*args
, **kwargs
):
360 """base_Show(bool show, GridCellAttr attr=None)"""
361 return _grid
.PyGridCellEditor_base_Show(*args
, **kwargs
)
363 def base_PaintBackground(*args
, **kwargs
):
364 """base_PaintBackground(Rect rectCell, GridCellAttr attr)"""
365 return _grid
.PyGridCellEditor_base_PaintBackground(*args
, **kwargs
)
367 def base_IsAcceptedKey(*args
, **kwargs
):
368 """base_IsAcceptedKey(KeyEvent event) -> bool"""
369 return _grid
.PyGridCellEditor_base_IsAcceptedKey(*args
, **kwargs
)
371 def base_StartingKey(*args
, **kwargs
):
372 """base_StartingKey(KeyEvent event)"""
373 return _grid
.PyGridCellEditor_base_StartingKey(*args
, **kwargs
)
375 def base_StartingClick(*args
, **kwargs
):
376 """base_StartingClick()"""
377 return _grid
.PyGridCellEditor_base_StartingClick(*args
, **kwargs
)
379 def base_HandleReturn(*args
, **kwargs
):
380 """base_HandleReturn(KeyEvent event)"""
381 return _grid
.PyGridCellEditor_base_HandleReturn(*args
, **kwargs
)
383 def base_Destroy(*args
, **kwargs
):
385 return _grid
.PyGridCellEditor_base_Destroy(*args
, **kwargs
)
387 def base_SetParameters(*args
, **kwargs
):
388 """base_SetParameters(wxString params)"""
389 return _grid
.PyGridCellEditor_base_SetParameters(*args
, **kwargs
)
392 class PyGridCellEditorPtr(PyGridCellEditor
):
393 def __init__(self
, this
):
395 if not hasattr(self
,"thisown"): self
.thisown
= 0
396 self
.__class
__ = PyGridCellEditor
397 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
399 class GridCellTextEditor(GridCellEditor
):
401 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
402 def __init__(self
, *args
, **kwargs
):
403 """__init__() -> GridCellTextEditor"""
404 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
405 self
.this
= newobj
.this
408 self
._setOORInfo
(self
)
410 def GetValue(*args
, **kwargs
):
411 """GetValue() -> wxString"""
412 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
415 class GridCellTextEditorPtr(GridCellTextEditor
):
416 def __init__(self
, this
):
418 if not hasattr(self
,"thisown"): self
.thisown
= 0
419 self
.__class
__ = GridCellTextEditor
420 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
422 class GridCellNumberEditor(GridCellTextEditor
):
424 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
425 def __init__(self
, *args
, **kwargs
):
426 """__init__(int min=-1, int max=-1) -> GridCellNumberEditor"""
427 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
428 self
.this
= newobj
.this
431 self
._setOORInfo
(self
)
433 def GetValue(*args
, **kwargs
):
434 """GetValue() -> wxString"""
435 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
438 class GridCellNumberEditorPtr(GridCellNumberEditor
):
439 def __init__(self
, this
):
441 if not hasattr(self
,"thisown"): self
.thisown
= 0
442 self
.__class
__ = GridCellNumberEditor
443 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
445 class GridCellFloatEditor(GridCellTextEditor
):
447 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
448 def __init__(self
, *args
, **kwargs
):
449 """__init__() -> GridCellFloatEditor"""
450 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
451 self
.this
= newobj
.this
454 self
._setOORInfo
(self
)
456 def GetValue(*args
, **kwargs
):
457 """GetValue() -> wxString"""
458 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
461 class GridCellFloatEditorPtr(GridCellFloatEditor
):
462 def __init__(self
, this
):
464 if not hasattr(self
,"thisown"): self
.thisown
= 0
465 self
.__class
__ = GridCellFloatEditor
466 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
468 class GridCellBoolEditor(GridCellEditor
):
470 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
471 def __init__(self
, *args
, **kwargs
):
472 """__init__() -> GridCellBoolEditor"""
473 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
474 self
.this
= newobj
.this
477 self
._setOORInfo
(self
)
479 def GetValue(*args
, **kwargs
):
480 """GetValue() -> wxString"""
481 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
484 class GridCellBoolEditorPtr(GridCellBoolEditor
):
485 def __init__(self
, this
):
487 if not hasattr(self
,"thisown"): self
.thisown
= 0
488 self
.__class
__ = GridCellBoolEditor
489 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
491 class GridCellChoiceEditor(GridCellEditor
):
493 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
494 def __init__(self
, *args
, **kwargs
):
495 """__init__(int choices=0, wxString choices_array=None, bool allowOthers=False) -> GridCellChoiceEditor"""
496 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
497 self
.this
= newobj
.this
500 self
._setOORInfo
(self
)
502 def GetValue(*args
, **kwargs
):
503 """GetValue() -> wxString"""
504 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
507 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
508 def __init__(self
, this
):
510 if not hasattr(self
,"thisown"): self
.thisown
= 0
511 self
.__class
__ = GridCellChoiceEditor
512 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
514 class GridCellEnumEditor(GridCellChoiceEditor
):
516 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
517 def __init__(self
, *args
, **kwargs
):
518 """__init__(wxString choices=wxPyEmptyString) -> GridCellEnumEditor"""
519 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
520 self
.this
= newobj
.this
523 self
._setOORInfo
(self
)
525 def GetValue(*args
, **kwargs
):
526 """GetValue() -> wxString"""
527 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
530 class GridCellEnumEditorPtr(GridCellEnumEditor
):
531 def __init__(self
, this
):
533 if not hasattr(self
,"thisown"): self
.thisown
= 0
534 self
.__class
__ = GridCellEnumEditor
535 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
537 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
539 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
540 def __init__(self
, *args
, **kwargs
):
541 """__init__() -> GridCellAutoWrapStringEditor"""
542 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
543 self
.this
= newobj
.this
546 self
._setOORInfo
(self
)
548 def GetValue(*args
, **kwargs
):
549 """GetValue() -> wxString"""
550 return _grid
.GridCellAutoWrapStringEditor_GetValue(*args
, **kwargs
)
553 class GridCellAutoWrapStringEditorPtr(GridCellAutoWrapStringEditor
):
554 def __init__(self
, this
):
556 if not hasattr(self
,"thisown"): self
.thisown
= 0
557 self
.__class
__ = GridCellAutoWrapStringEditor
558 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditorPtr
)
560 class GridCellAttr(object):
562 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
563 Any
= _grid
.GridCellAttr_Any
564 Default
= _grid
.GridCellAttr_Default
565 Cell
= _grid
.GridCellAttr_Cell
566 Row
= _grid
.GridCellAttr_Row
567 Col
= _grid
.GridCellAttr_Col
568 Merged
= _grid
.GridCellAttr_Merged
569 def _setOORInfo(*args
, **kwargs
):
570 """_setOORInfo(PyObject _self)"""
571 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
573 def __init__(self
, *args
, **kwargs
):
574 """__init__(GridCellAttr attrDefault=None) -> GridCellAttr"""
575 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
576 self
.this
= newobj
.this
579 self
._setOORInfo
(self
)
581 def Clone(*args
, **kwargs
):
582 """Clone() -> GridCellAttr"""
583 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
585 def MergeWith(*args
, **kwargs
):
586 """MergeWith(GridCellAttr mergefrom)"""
587 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
589 def IncRef(*args
, **kwargs
):
591 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
593 def DecRef(*args
, **kwargs
):
595 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
597 def SetTextColour(*args
, **kwargs
):
598 """SetTextColour(wxColour colText)"""
599 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
601 def SetBackgroundColour(*args
, **kwargs
):
602 """SetBackgroundColour(wxColour colBack)"""
603 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
605 def SetFont(*args
, **kwargs
):
606 """SetFont(wxFont font)"""
607 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
609 def SetAlignment(*args
, **kwargs
):
610 """SetAlignment(int hAlign, int vAlign)"""
611 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
613 def SetSize(*args
, **kwargs
):
614 """SetSize(int num_rows, int num_cols)"""
615 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
617 def SetOverflow(*args
, **kwargs
):
618 """SetOverflow(bool allow=True)"""
619 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
621 def SetReadOnly(*args
, **kwargs
):
622 """SetReadOnly(bool isReadOnly=True)"""
623 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
625 def SetRenderer(*args
, **kwargs
):
626 """SetRenderer(GridCellRenderer renderer)"""
627 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
629 def SetEditor(*args
, **kwargs
):
630 """SetEditor(GridCellEditor editor)"""
631 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
633 def SetKind(*args
, **kwargs
):
634 """SetKind(wxGridCellAttr::wxAttrKind kind)"""
635 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
637 def HasTextColour(*args
, **kwargs
):
638 """HasTextColour() -> bool"""
639 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
641 def HasBackgroundColour(*args
, **kwargs
):
642 """HasBackgroundColour() -> bool"""
643 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
645 def HasFont(*args
, **kwargs
):
646 """HasFont() -> bool"""
647 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
649 def HasAlignment(*args
, **kwargs
):
650 """HasAlignment() -> bool"""
651 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
653 def HasRenderer(*args
, **kwargs
):
654 """HasRenderer() -> bool"""
655 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
657 def HasEditor(*args
, **kwargs
):
658 """HasEditor() -> bool"""
659 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
661 def HasReadWriteMode(*args
, **kwargs
):
662 """HasReadWriteMode() -> bool"""
663 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
665 def HasOverflowMode(*args
, **kwargs
):
666 """HasOverflowMode() -> bool"""
667 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
669 def GetTextColour(*args
, **kwargs
):
670 """GetTextColour() -> wxColour"""
671 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
673 def GetBackgroundColour(*args
, **kwargs
):
674 """GetBackgroundColour() -> wxColour"""
675 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
677 def GetFont(*args
, **kwargs
):
678 """GetFont() -> wxFont"""
679 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
681 def GetAlignment(*args
, **kwargs
):
682 """GetAlignment() -> (hAlign, vAlign)"""
683 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
685 def GetSize(*args
, **kwargs
):
686 """GetSize() -> (num_rows, num_cols)"""
687 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
689 def GetOverflow(*args
, **kwargs
):
690 """GetOverflow() -> bool"""
691 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
693 def GetRenderer(*args
, **kwargs
):
694 """GetRenderer(Grid grid, int row, int col) -> GridCellRenderer"""
695 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
697 def GetEditor(*args
, **kwargs
):
698 """GetEditor(Grid grid, int row, int col) -> GridCellEditor"""
699 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
701 def IsReadOnly(*args
, **kwargs
):
702 """IsReadOnly() -> bool"""
703 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
705 def SetDefAttr(*args
, **kwargs
):
706 """SetDefAttr(GridCellAttr defAttr)"""
707 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
710 class GridCellAttrPtr(GridCellAttr
):
711 def __init__(self
, this
):
713 if not hasattr(self
,"thisown"): self
.thisown
= 0
714 self
.__class
__ = GridCellAttr
715 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
717 class GridCellAttrProvider(object):
719 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
720 def __init__(self
, *args
, **kwargs
):
721 """__init__() -> GridCellAttrProvider"""
722 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
723 self
.this
= newobj
.this
726 self
._setOORInfo
(self
)
728 def _setOORInfo(*args
, **kwargs
):
729 """_setOORInfo(PyObject _self)"""
730 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
732 def GetAttr(*args
, **kwargs
):
733 """GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
734 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
736 def SetAttr(*args
, **kwargs
):
737 """SetAttr(GridCellAttr attr, int row, int col)"""
738 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
740 def SetRowAttr(*args
, **kwargs
):
741 """SetRowAttr(GridCellAttr attr, int row)"""
742 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
744 def SetColAttr(*args
, **kwargs
):
745 """SetColAttr(GridCellAttr attr, int col)"""
746 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
748 def UpdateAttrRows(*args
, **kwargs
):
749 """UpdateAttrRows(size_t pos, int numRows)"""
750 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
752 def UpdateAttrCols(*args
, **kwargs
):
753 """UpdateAttrCols(size_t pos, int numCols)"""
754 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
757 class GridCellAttrProviderPtr(GridCellAttrProvider
):
758 def __init__(self
, this
):
760 if not hasattr(self
,"thisown"): self
.thisown
= 0
761 self
.__class
__ = GridCellAttrProvider
762 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
764 class PyGridCellAttrProvider(GridCellAttrProvider
):
766 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
767 def __init__(self
, *args
, **kwargs
):
768 """__init__() -> PyGridCellAttrProvider"""
769 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
770 self
.this
= newobj
.this
773 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
775 def _setCallbackInfo(*args
, **kwargs
):
776 """_setCallbackInfo(PyObject self, PyObject _class)"""
777 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
779 def base_GetAttr(*args
, **kwargs
):
780 """base_GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
781 return _grid
.PyGridCellAttrProvider_base_GetAttr(*args
, **kwargs
)
783 def base_SetAttr(*args
, **kwargs
):
784 """base_SetAttr(GridCellAttr attr, int row, int col)"""
785 return _grid
.PyGridCellAttrProvider_base_SetAttr(*args
, **kwargs
)
787 def base_SetRowAttr(*args
, **kwargs
):
788 """base_SetRowAttr(GridCellAttr attr, int row)"""
789 return _grid
.PyGridCellAttrProvider_base_SetRowAttr(*args
, **kwargs
)
791 def base_SetColAttr(*args
, **kwargs
):
792 """base_SetColAttr(GridCellAttr attr, int col)"""
793 return _grid
.PyGridCellAttrProvider_base_SetColAttr(*args
, **kwargs
)
796 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
797 def __init__(self
, this
):
799 if not hasattr(self
,"thisown"): self
.thisown
= 0
800 self
.__class
__ = PyGridCellAttrProvider
801 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
803 class GridTableBase(core
.Object
):
804 def __init__(self
): raise RuntimeError, "No constructor defined"
806 return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
807 def _setOORInfo(*args
, **kwargs
):
808 """_setOORInfo(PyObject _self)"""
809 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
811 def SetAttrProvider(*args
, **kwargs
):
812 """SetAttrProvider(GridCellAttrProvider attrProvider)"""
813 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
815 def GetAttrProvider(*args
, **kwargs
):
816 """GetAttrProvider() -> GridCellAttrProvider"""
817 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
819 def SetView(*args
, **kwargs
):
820 """SetView(Grid grid)"""
821 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
823 def GetView(*args
, **kwargs
):
824 """GetView() -> Grid"""
825 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
827 def GetNumberRows(*args
, **kwargs
):
828 """GetNumberRows() -> int"""
829 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
831 def GetNumberCols(*args
, **kwargs
):
832 """GetNumberCols() -> int"""
833 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
835 def IsEmptyCell(*args
, **kwargs
):
836 """IsEmptyCell(int row, int col) -> bool"""
837 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
839 def GetValue(*args
, **kwargs
):
840 """GetValue(int row, int col) -> wxString"""
841 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
843 def SetValue(*args
, **kwargs
):
844 """SetValue(int row, int col, wxString value)"""
845 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
847 def GetTypeName(*args
, **kwargs
):
848 """GetTypeName(int row, int col) -> wxString"""
849 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
851 def CanGetValueAs(*args
, **kwargs
):
852 """CanGetValueAs(int row, int col, wxString typeName) -> bool"""
853 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
855 def CanSetValueAs(*args
, **kwargs
):
856 """CanSetValueAs(int row, int col, wxString typeName) -> bool"""
857 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
859 def GetValueAsLong(*args
, **kwargs
):
860 """GetValueAsLong(int row, int col) -> long"""
861 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
863 def GetValueAsDouble(*args
, **kwargs
):
864 """GetValueAsDouble(int row, int col) -> double"""
865 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
867 def GetValueAsBool(*args
, **kwargs
):
868 """GetValueAsBool(int row, int col) -> bool"""
869 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
871 def SetValueAsLong(*args
, **kwargs
):
872 """SetValueAsLong(int row, int col, long value)"""
873 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
875 def SetValueAsDouble(*args
, **kwargs
):
876 """SetValueAsDouble(int row, int col, double value)"""
877 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
879 def SetValueAsBool(*args
, **kwargs
):
880 """SetValueAsBool(int row, int col, bool value)"""
881 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
883 def Clear(*args
, **kwargs
):
885 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
887 def InsertRows(*args
, **kwargs
):
888 """InsertRows(size_t pos=0, size_t numRows=1) -> bool"""
889 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
891 def AppendRows(*args
, **kwargs
):
892 """AppendRows(size_t numRows=1) -> bool"""
893 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
895 def DeleteRows(*args
, **kwargs
):
896 """DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
897 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
899 def InsertCols(*args
, **kwargs
):
900 """InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
901 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
903 def AppendCols(*args
, **kwargs
):
904 """AppendCols(size_t numCols=1) -> bool"""
905 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
907 def DeleteCols(*args
, **kwargs
):
908 """DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
909 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
911 def GetRowLabelValue(*args
, **kwargs
):
912 """GetRowLabelValue(int row) -> wxString"""
913 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
915 def GetColLabelValue(*args
, **kwargs
):
916 """GetColLabelValue(int col) -> wxString"""
917 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
919 def SetRowLabelValue(*args
, **kwargs
):
920 """SetRowLabelValue(int row, wxString value)"""
921 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
923 def SetColLabelValue(*args
, **kwargs
):
924 """SetColLabelValue(int col, wxString value)"""
925 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
927 def CanHaveAttributes(*args
, **kwargs
):
928 """CanHaveAttributes() -> bool"""
929 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
931 def GetAttr(*args
, **kwargs
):
932 """GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
933 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
935 def SetAttr(*args
, **kwargs
):
936 """SetAttr(GridCellAttr attr, int row, int col)"""
937 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
939 def SetRowAttr(*args
, **kwargs
):
940 """SetRowAttr(GridCellAttr attr, int row)"""
941 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
943 def SetColAttr(*args
, **kwargs
):
944 """SetColAttr(GridCellAttr attr, int col)"""
945 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
948 class GridTableBasePtr(GridTableBase
):
949 def __init__(self
, this
):
951 if not hasattr(self
,"thisown"): self
.thisown
= 0
952 self
.__class
__ = GridTableBase
953 _grid
.GridTableBase_swigregister(GridTableBasePtr
)
955 class PyGridTableBase(GridTableBase
):
957 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
958 def __init__(self
, *args
, **kwargs
):
959 """__init__() -> PyGridTableBase"""
960 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
961 self
.this
= newobj
.this
964 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
966 def _setCallbackInfo(*args
, **kwargs
):
967 """_setCallbackInfo(PyObject self, PyObject _class)"""
968 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
970 def Destroy(*args
, **kwargs
):
974 Deletes the C++ object this Python object is a proxy for.
976 return _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
978 def base_GetTypeName(*args
, **kwargs
):
979 """base_GetTypeName(int row, int col) -> wxString"""
980 return _grid
.PyGridTableBase_base_GetTypeName(*args
, **kwargs
)
982 def base_CanGetValueAs(*args
, **kwargs
):
983 """base_CanGetValueAs(int row, int col, wxString typeName) -> bool"""
984 return _grid
.PyGridTableBase_base_CanGetValueAs(*args
, **kwargs
)
986 def base_CanSetValueAs(*args
, **kwargs
):
987 """base_CanSetValueAs(int row, int col, wxString typeName) -> bool"""
988 return _grid
.PyGridTableBase_base_CanSetValueAs(*args
, **kwargs
)
990 def base_Clear(*args
, **kwargs
):
992 return _grid
.PyGridTableBase_base_Clear(*args
, **kwargs
)
994 def base_InsertRows(*args
, **kwargs
):
995 """base_InsertRows(size_t pos=0, size_t numRows=1) -> bool"""
996 return _grid
.PyGridTableBase_base_InsertRows(*args
, **kwargs
)
998 def base_AppendRows(*args
, **kwargs
):
999 """base_AppendRows(size_t numRows=1) -> bool"""
1000 return _grid
.PyGridTableBase_base_AppendRows(*args
, **kwargs
)
1002 def base_DeleteRows(*args
, **kwargs
):
1003 """base_DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
1004 return _grid
.PyGridTableBase_base_DeleteRows(*args
, **kwargs
)
1006 def base_InsertCols(*args
, **kwargs
):
1007 """base_InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
1008 return _grid
.PyGridTableBase_base_InsertCols(*args
, **kwargs
)
1010 def base_AppendCols(*args
, **kwargs
):
1011 """base_AppendCols(size_t numCols=1) -> bool"""
1012 return _grid
.PyGridTableBase_base_AppendCols(*args
, **kwargs
)
1014 def base_DeleteCols(*args
, **kwargs
):
1015 """base_DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
1016 return _grid
.PyGridTableBase_base_DeleteCols(*args
, **kwargs
)
1018 def base_GetRowLabelValue(*args
, **kwargs
):
1019 """base_GetRowLabelValue(int row) -> wxString"""
1020 return _grid
.PyGridTableBase_base_GetRowLabelValue(*args
, **kwargs
)
1022 def base_GetColLabelValue(*args
, **kwargs
):
1023 """base_GetColLabelValue(int col) -> wxString"""
1024 return _grid
.PyGridTableBase_base_GetColLabelValue(*args
, **kwargs
)
1026 def base_SetRowLabelValue(*args
, **kwargs
):
1027 """base_SetRowLabelValue(int row, wxString value)"""
1028 return _grid
.PyGridTableBase_base_SetRowLabelValue(*args
, **kwargs
)
1030 def base_SetColLabelValue(*args
, **kwargs
):
1031 """base_SetColLabelValue(int col, wxString value)"""
1032 return _grid
.PyGridTableBase_base_SetColLabelValue(*args
, **kwargs
)
1034 def base_CanHaveAttributes(*args
, **kwargs
):
1035 """base_CanHaveAttributes() -> bool"""
1036 return _grid
.PyGridTableBase_base_CanHaveAttributes(*args
, **kwargs
)
1038 def base_GetAttr(*args
, **kwargs
):
1039 """base_GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) -> GridCellAttr"""
1040 return _grid
.PyGridTableBase_base_GetAttr(*args
, **kwargs
)
1042 def base_SetAttr(*args
, **kwargs
):
1043 """base_SetAttr(GridCellAttr attr, int row, int col)"""
1044 return _grid
.PyGridTableBase_base_SetAttr(*args
, **kwargs
)
1046 def base_SetRowAttr(*args
, **kwargs
):
1047 """base_SetRowAttr(GridCellAttr attr, int row)"""
1048 return _grid
.PyGridTableBase_base_SetRowAttr(*args
, **kwargs
)
1050 def base_SetColAttr(*args
, **kwargs
):
1051 """base_SetColAttr(GridCellAttr attr, int col)"""
1052 return _grid
.PyGridTableBase_base_SetColAttr(*args
, **kwargs
)
1055 class PyGridTableBasePtr(PyGridTableBase
):
1056 def __init__(self
, this
):
1058 if not hasattr(self
,"thisown"): self
.thisown
= 0
1059 self
.__class
__ = PyGridTableBase
1060 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1062 class GridStringTable(GridTableBase
):
1064 return "<%s.%s; proxy of C++ wxGridStringTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1065 def __init__(self
, *args
, **kwargs
):
1066 """__init__(int numRows=0, int numCols=0) -> GridStringTable"""
1067 newobj
= _grid
.new_GridStringTable(*args
, **kwargs
)
1068 self
.this
= newobj
.this
1071 self
._setOORInfo
(self
)
1074 class GridStringTablePtr(GridStringTable
):
1075 def __init__(self
, this
):
1077 if not hasattr(self
,"thisown"): self
.thisown
= 0
1078 self
.__class
__ = GridStringTable
1079 _grid
.GridStringTable_swigregister(GridStringTablePtr
)
1081 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1082 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1083 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1084 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1085 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1086 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1087 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1088 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1089 class GridTableMessage(object):
1091 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1092 def __init__(self
, *args
, **kwargs
):
1093 """__init__(GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1094 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1095 self
.this
= newobj
.this
1098 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1101 if self
.thisown
: destroy(self
)
1104 def SetTableObject(*args
, **kwargs
):
1105 """SetTableObject(GridTableBase table)"""
1106 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1108 def GetTableObject(*args
, **kwargs
):
1109 """GetTableObject() -> GridTableBase"""
1110 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1112 def SetId(*args
, **kwargs
):
1114 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1116 def GetId(*args
, **kwargs
):
1117 """GetId() -> int"""
1118 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1120 def SetCommandInt(*args
, **kwargs
):
1121 """SetCommandInt(int comInt1)"""
1122 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1124 def GetCommandInt(*args
, **kwargs
):
1125 """GetCommandInt() -> int"""
1126 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1128 def SetCommandInt2(*args
, **kwargs
):
1129 """SetCommandInt2(int comInt2)"""
1130 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1132 def GetCommandInt2(*args
, **kwargs
):
1133 """GetCommandInt2() -> int"""
1134 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1137 class GridTableMessagePtr(GridTableMessage
):
1138 def __init__(self
, this
):
1140 if not hasattr(self
,"thisown"): self
.thisown
= 0
1141 self
.__class
__ = GridTableMessage
1142 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1144 class GridCellCoords(object):
1146 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1147 def __init__(self
, *args
, **kwargs
):
1148 """__init__(int r=-1, int c=-1) -> GridCellCoords"""
1149 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1150 self
.this
= newobj
.this
1153 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1156 if self
.thisown
: destroy(self
)
1159 def GetRow(*args
, **kwargs
):
1160 """GetRow() -> int"""
1161 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1163 def SetRow(*args
, **kwargs
):
1165 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1167 def GetCol(*args
, **kwargs
):
1168 """GetCol() -> int"""
1169 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1171 def SetCol(*args
, **kwargs
):
1173 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1175 def Set(*args
, **kwargs
):
1176 """Set(int row, int col)"""
1177 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1179 def __eq__(*args
, **kwargs
):
1180 """__eq__(GridCellCoords other) -> bool"""
1181 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1183 def __ne__(*args
, **kwargs
):
1184 """__ne__(GridCellCoords other) -> bool"""
1185 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1187 def asTuple(*args
, **kwargs
):
1188 """asTuple() -> PyObject"""
1189 return _grid
.GridCellCoords_asTuple(*args
, **kwargs
)
1191 def __str__(self
): return str(self
.asTuple())
1192 def __repr__(self
): return 'wxGridCellCoords'+str(self
.asTuple())
1193 def __len__(self
): return len(self
.asTuple())
1194 def __getitem__(self
, index
): return self
.asTuple()[index
]
1195 def __setitem__(self
, index
, val
):
1196 if index
== 0: self
.SetRow(val
)
1197 elif index
== 1: self
.SetCol(val
)
1198 else: raise IndexError
1201 class GridCellCoordsPtr(GridCellCoords
):
1202 def __init__(self
, this
):
1204 if not hasattr(self
,"thisown"): self
.thisown
= 0
1205 self
.__class
__ = GridCellCoords
1206 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1208 class Grid(windows
.ScrolledWindow
):
1210 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1211 def __init__(self
, *args
, **kwargs
):
1213 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1214 long style=WANTS_CHARS,
1215 wxString name=PanelNameStr) -> Grid
1217 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1218 self
.this
= newobj
.this
1221 self
._setOORInfo
(self
)
1223 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1224 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1225 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1226 def CreateGrid(*args
, **kwargs
):
1227 """CreateGrid(int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1228 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1230 def SetSelectionMode(*args
, **kwargs
):
1231 """SetSelectionMode(WXGRIDSELECTIONMODES selmode)"""
1232 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1234 def GetSelectionMode(*args
, **kwargs
):
1235 """GetSelectionMode() -> WXGRIDSELECTIONMODES"""
1236 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1238 def GetNumberRows(*args
, **kwargs
):
1239 """GetNumberRows() -> int"""
1240 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1242 def GetNumberCols(*args
, **kwargs
):
1243 """GetNumberCols() -> int"""
1244 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1246 def ProcessTableMessage(*args
, **kwargs
):
1247 """ProcessTableMessage(GridTableMessage ??) -> bool"""
1248 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1250 def GetTable(*args
, **kwargs
):
1251 """GetTable() -> GridTableBase"""
1252 return _grid
.Grid_GetTable(*args
, **kwargs
)
1254 def SetTable(*args
, **kwargs
):
1255 """SetTable(GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1256 return _grid
.Grid_SetTable(*args
, **kwargs
)
1258 def ClearGrid(*args
, **kwargs
):
1260 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1262 def InsertRows(*args
, **kwargs
):
1263 """InsertRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1264 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1266 def AppendRows(*args
, **kwargs
):
1267 """AppendRows(int numRows=1, bool updateLabels=True) -> bool"""
1268 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1270 def DeleteRows(*args
, **kwargs
):
1271 """DeleteRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1272 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1274 def InsertCols(*args
, **kwargs
):
1275 """InsertCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1276 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1278 def AppendCols(*args
, **kwargs
):
1279 """AppendCols(int numCols=1, bool updateLabels=True) -> bool"""
1280 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1282 def DeleteCols(*args
, **kwargs
):
1283 """DeleteCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1284 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1286 def DrawCellHighlight(*args
, **kwargs
):
1287 """DrawCellHighlight(wxDC dc, GridCellAttr attr)"""
1288 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1290 def DrawTextRectangle(*args
, **kwargs
):
1292 DrawTextRectangle(wxDC dc, wxString ??, Rect ??, int horizontalAlignment=LEFT,
1293 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1295 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1297 def GetTextBoxSize(*args
, **kwargs
):
1298 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1299 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1301 def BeginBatch(*args
, **kwargs
):
1303 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1305 def EndBatch(*args
, **kwargs
):
1307 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1309 def GetBatchCount(*args
, **kwargs
):
1310 """GetBatchCount() -> int"""
1311 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1313 def ForceRefresh(*args
, **kwargs
):
1314 """ForceRefresh()"""
1315 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1317 def Refresh(*args
, **kwargs
):
1318 """Refresh(bool eraseb=True, Rect rect=None)"""
1319 return _grid
.Grid_Refresh(*args
, **kwargs
)
1321 def IsEditable(*args
, **kwargs
):
1322 """IsEditable() -> bool"""
1323 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1325 def EnableEditing(*args
, **kwargs
):
1326 """EnableEditing(bool edit)"""
1327 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1329 def EnableCellEditControl(*args
, **kwargs
):
1330 """EnableCellEditControl(bool enable=True)"""
1331 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1333 def DisableCellEditControl(*args
, **kwargs
):
1334 """DisableCellEditControl()"""
1335 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1337 def CanEnableCellControl(*args
, **kwargs
):
1338 """CanEnableCellControl() -> bool"""
1339 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1341 def IsCellEditControlEnabled(*args
, **kwargs
):
1342 """IsCellEditControlEnabled() -> bool"""
1343 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1345 def IsCellEditControlShown(*args
, **kwargs
):
1346 """IsCellEditControlShown() -> bool"""
1347 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1349 def IsCurrentCellReadOnly(*args
, **kwargs
):
1350 """IsCurrentCellReadOnly() -> bool"""
1351 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1353 def ShowCellEditControl(*args
, **kwargs
):
1354 """ShowCellEditControl()"""
1355 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1357 def HideCellEditControl(*args
, **kwargs
):
1358 """HideCellEditControl()"""
1359 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1361 def SaveEditControlValue(*args
, **kwargs
):
1362 """SaveEditControlValue()"""
1363 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1365 def XYToCell(*args
, **kwargs
):
1366 """XYToCell(int x, int y) -> GridCellCoords"""
1367 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1369 def YToRow(*args
, **kwargs
):
1370 """YToRow(int y) -> int"""
1371 return _grid
.Grid_YToRow(*args
, **kwargs
)
1373 def XToCol(*args
, **kwargs
):
1374 """XToCol(int x) -> int"""
1375 return _grid
.Grid_XToCol(*args
, **kwargs
)
1377 def YToEdgeOfRow(*args
, **kwargs
):
1378 """YToEdgeOfRow(int y) -> int"""
1379 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1381 def XToEdgeOfCol(*args
, **kwargs
):
1382 """XToEdgeOfCol(int x) -> int"""
1383 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1385 def CellToRect(*args
, **kwargs
):
1386 """CellToRect(int row, int col) -> Rect"""
1387 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1389 def GetGridCursorRow(*args
, **kwargs
):
1390 """GetGridCursorRow() -> int"""
1391 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1393 def GetGridCursorCol(*args
, **kwargs
):
1394 """GetGridCursorCol() -> int"""
1395 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1397 def IsVisible(*args
, **kwargs
):
1398 """IsVisible(int row, int col, bool wholeCellVisible=True) -> bool"""
1399 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1401 def MakeCellVisible(*args
, **kwargs
):
1402 """MakeCellVisible(int row, int col)"""
1403 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1405 def SetGridCursor(*args
, **kwargs
):
1406 """SetGridCursor(int row, int col)"""
1407 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1409 def MoveCursorUp(*args
, **kwargs
):
1410 """MoveCursorUp(bool expandSelection) -> bool"""
1411 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1413 def MoveCursorDown(*args
, **kwargs
):
1414 """MoveCursorDown(bool expandSelection) -> bool"""
1415 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1417 def MoveCursorLeft(*args
, **kwargs
):
1418 """MoveCursorLeft(bool expandSelection) -> bool"""
1419 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1421 def MoveCursorRight(*args
, **kwargs
):
1422 """MoveCursorRight(bool expandSelection) -> bool"""
1423 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1425 def MovePageDown(*args
, **kwargs
):
1426 """MovePageDown() -> bool"""
1427 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1429 def MovePageUp(*args
, **kwargs
):
1430 """MovePageUp() -> bool"""
1431 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1433 def MoveCursorUpBlock(*args
, **kwargs
):
1434 """MoveCursorUpBlock(bool expandSelection) -> bool"""
1435 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1437 def MoveCursorDownBlock(*args
, **kwargs
):
1438 """MoveCursorDownBlock(bool expandSelection) -> bool"""
1439 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1441 def MoveCursorLeftBlock(*args
, **kwargs
):
1442 """MoveCursorLeftBlock(bool expandSelection) -> bool"""
1443 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1445 def MoveCursorRightBlock(*args
, **kwargs
):
1446 """MoveCursorRightBlock(bool expandSelection) -> bool"""
1447 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1449 def GetDefaultRowLabelSize(*args
, **kwargs
):
1450 """GetDefaultRowLabelSize() -> int"""
1451 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1453 def GetRowLabelSize(*args
, **kwargs
):
1454 """GetRowLabelSize() -> int"""
1455 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1457 def GetDefaultColLabelSize(*args
, **kwargs
):
1458 """GetDefaultColLabelSize() -> int"""
1459 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1461 def GetColLabelSize(*args
, **kwargs
):
1462 """GetColLabelSize() -> int"""
1463 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1465 def GetLabelBackgroundColour(*args
, **kwargs
):
1466 """GetLabelBackgroundColour() -> wxColour"""
1467 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1469 def GetLabelTextColour(*args
, **kwargs
):
1470 """GetLabelTextColour() -> wxColour"""
1471 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1473 def GetLabelFont(*args
, **kwargs
):
1474 """GetLabelFont() -> wxFont"""
1475 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1477 def GetRowLabelAlignment(*args
, **kwargs
):
1478 """GetRowLabelAlignment() -> (horiz, vert)"""
1479 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1481 def GetColLabelAlignment(*args
, **kwargs
):
1482 """GetColLabelAlignment() -> (horiz, vert)"""
1483 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1485 def GetColLabelTextOrientation(*args
, **kwargs
):
1486 """GetColLabelTextOrientation() -> int"""
1487 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1489 def GetRowLabelValue(*args
, **kwargs
):
1490 """GetRowLabelValue(int row) -> wxString"""
1491 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1493 def GetColLabelValue(*args
, **kwargs
):
1494 """GetColLabelValue(int col) -> wxString"""
1495 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1497 def GetGridLineColour(*args
, **kwargs
):
1498 """GetGridLineColour() -> wxColour"""
1499 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1501 def GetCellHighlightColour(*args
, **kwargs
):
1502 """GetCellHighlightColour() -> wxColour"""
1503 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1505 def GetCellHighlightPenWidth(*args
, **kwargs
):
1506 """GetCellHighlightPenWidth() -> int"""
1507 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1509 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1510 """GetCellHighlightROPenWidth() -> int"""
1511 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1513 def SetRowLabelSize(*args
, **kwargs
):
1514 """SetRowLabelSize(int width)"""
1515 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1517 def SetColLabelSize(*args
, **kwargs
):
1518 """SetColLabelSize(int height)"""
1519 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1521 def SetLabelBackgroundColour(*args
, **kwargs
):
1522 """SetLabelBackgroundColour(wxColour ??)"""
1523 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1525 def SetLabelTextColour(*args
, **kwargs
):
1526 """SetLabelTextColour(wxColour ??)"""
1527 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1529 def SetLabelFont(*args
, **kwargs
):
1530 """SetLabelFont(wxFont ??)"""
1531 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1533 def SetRowLabelAlignment(*args
, **kwargs
):
1534 """SetRowLabelAlignment(int horiz, int vert)"""
1535 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1537 def SetColLabelAlignment(*args
, **kwargs
):
1538 """SetColLabelAlignment(int horiz, int vert)"""
1539 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1541 def SetColLabelTextOrientation(*args
, **kwargs
):
1542 """SetColLabelTextOrientation(int textOrientation)"""
1543 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1545 def SetRowLabelValue(*args
, **kwargs
):
1546 """SetRowLabelValue(int row, wxString ??)"""
1547 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1549 def SetColLabelValue(*args
, **kwargs
):
1550 """SetColLabelValue(int col, wxString ??)"""
1551 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1553 def SetGridLineColour(*args
, **kwargs
):
1554 """SetGridLineColour(wxColour ??)"""
1555 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1557 def SetCellHighlightColour(*args
, **kwargs
):
1558 """SetCellHighlightColour(wxColour ??)"""
1559 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1561 def SetCellHighlightPenWidth(*args
, **kwargs
):
1562 """SetCellHighlightPenWidth(int width)"""
1563 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1565 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1566 """SetCellHighlightROPenWidth(int width)"""
1567 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1569 def EnableDragRowSize(*args
, **kwargs
):
1570 """EnableDragRowSize(bool enable=True)"""
1571 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1573 def DisableDragRowSize(*args
, **kwargs
):
1574 """DisableDragRowSize()"""
1575 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1577 def CanDragRowSize(*args
, **kwargs
):
1578 """CanDragRowSize() -> bool"""
1579 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1581 def EnableDragColSize(*args
, **kwargs
):
1582 """EnableDragColSize(bool enable=True)"""
1583 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1585 def DisableDragColSize(*args
, **kwargs
):
1586 """DisableDragColSize()"""
1587 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1589 def CanDragColSize(*args
, **kwargs
):
1590 """CanDragColSize() -> bool"""
1591 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1593 def EnableDragGridSize(*args
, **kwargs
):
1594 """EnableDragGridSize(bool enable=True)"""
1595 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1597 def DisableDragGridSize(*args
, **kwargs
):
1598 """DisableDragGridSize()"""
1599 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1601 def CanDragGridSize(*args
, **kwargs
):
1602 """CanDragGridSize() -> bool"""
1603 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1605 def SetAttr(*args
, **kwargs
):
1606 """SetAttr(int row, int col, GridCellAttr attr)"""
1607 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1609 def SetRowAttr(*args
, **kwargs
):
1610 """SetRowAttr(int row, GridCellAttr attr)"""
1611 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1613 def SetColAttr(*args
, **kwargs
):
1614 """SetColAttr(int col, GridCellAttr attr)"""
1615 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1617 def SetColFormatBool(*args
, **kwargs
):
1618 """SetColFormatBool(int col)"""
1619 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1621 def SetColFormatNumber(*args
, **kwargs
):
1622 """SetColFormatNumber(int col)"""
1623 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1625 def SetColFormatFloat(*args
, **kwargs
):
1626 """SetColFormatFloat(int col, int width=-1, int precision=-1)"""
1627 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1629 def SetColFormatCustom(*args
, **kwargs
):
1630 """SetColFormatCustom(int col, wxString typeName)"""
1631 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1633 def EnableGridLines(*args
, **kwargs
):
1634 """EnableGridLines(bool enable=True)"""
1635 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1637 def GridLinesEnabled(*args
, **kwargs
):
1638 """GridLinesEnabled() -> bool"""
1639 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1641 def GetDefaultRowSize(*args
, **kwargs
):
1642 """GetDefaultRowSize() -> int"""
1643 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1645 def GetRowSize(*args
, **kwargs
):
1646 """GetRowSize(int row) -> int"""
1647 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1649 def GetDefaultColSize(*args
, **kwargs
):
1650 """GetDefaultColSize() -> int"""
1651 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1653 def GetColSize(*args
, **kwargs
):
1654 """GetColSize(int col) -> int"""
1655 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1657 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1658 """GetDefaultCellBackgroundColour() -> wxColour"""
1659 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1661 def GetCellBackgroundColour(*args
, **kwargs
):
1662 """GetCellBackgroundColour(int row, int col) -> wxColour"""
1663 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1665 def GetDefaultCellTextColour(*args
, **kwargs
):
1666 """GetDefaultCellTextColour() -> wxColour"""
1667 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1669 def GetCellTextColour(*args
, **kwargs
):
1670 """GetCellTextColour(int row, int col) -> wxColour"""
1671 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1673 def GetDefaultCellFont(*args
, **kwargs
):
1674 """GetDefaultCellFont() -> wxFont"""
1675 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1677 def GetCellFont(*args
, **kwargs
):
1678 """GetCellFont(int row, int col) -> wxFont"""
1679 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1681 def GetDefaultCellAlignment(*args
, **kwargs
):
1682 """GetDefaultCellAlignment() -> (horiz, vert)"""
1683 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1685 def GetCellAlignment(*args
, **kwargs
):
1686 """GetCellAlignment() -> (horiz, vert)"""
1687 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1689 def GetDefaultCellOverflow(*args
, **kwargs
):
1690 """GetDefaultCellOverflow() -> bool"""
1691 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1693 def GetCellOverflow(*args
, **kwargs
):
1694 """GetCellOverflow(int row, int col) -> bool"""
1695 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1697 def GetCellSize(*args
, **kwargs
):
1698 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1699 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1701 def SetDefaultRowSize(*args
, **kwargs
):
1702 """SetDefaultRowSize(int height, bool resizeExistingRows=False)"""
1703 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1705 def SetRowSize(*args
, **kwargs
):
1706 """SetRowSize(int row, int height)"""
1707 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1709 def SetDefaultColSize(*args
, **kwargs
):
1710 """SetDefaultColSize(int width, bool resizeExistingCols=False)"""
1711 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1713 def SetColSize(*args
, **kwargs
):
1714 """SetColSize(int col, int width)"""
1715 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1717 def AutoSizeColumn(*args
, **kwargs
):
1718 """AutoSizeColumn(int col, bool setAsMin=True)"""
1719 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1721 def AutoSizeRow(*args
, **kwargs
):
1722 """AutoSizeRow(int row, bool setAsMin=True)"""
1723 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1725 def AutoSizeColumns(*args
, **kwargs
):
1726 """AutoSizeColumns(bool setAsMin=True)"""
1727 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1729 def AutoSizeRows(*args
, **kwargs
):
1730 """AutoSizeRows(bool setAsMin=True)"""
1731 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1733 def AutoSize(*args
, **kwargs
):
1735 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1737 def AutoSizeRowLabelSize(*args
, **kwargs
):
1738 """AutoSizeRowLabelSize(int row)"""
1739 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1741 def AutoSizeColLabelSize(*args
, **kwargs
):
1742 """AutoSizeColLabelSize(int col)"""
1743 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1745 def SetColMinimalWidth(*args
, **kwargs
):
1746 """SetColMinimalWidth(int col, int width)"""
1747 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1749 def SetRowMinimalHeight(*args
, **kwargs
):
1750 """SetRowMinimalHeight(int row, int width)"""
1751 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1753 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1754 """SetColMinimalAcceptableWidth(int width)"""
1755 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1757 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1758 """SetRowMinimalAcceptableHeight(int width)"""
1759 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1761 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1762 """GetColMinimalAcceptableWidth() -> int"""
1763 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1765 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1766 """GetRowMinimalAcceptableHeight() -> int"""
1767 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1769 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1770 """SetDefaultCellBackgroundColour(wxColour ??)"""
1771 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1773 def SetCellBackgroundColour(*args
, **kwargs
):
1774 """SetCellBackgroundColour(int row, int col, wxColour ??)"""
1775 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1777 def SetDefaultCellTextColour(*args
, **kwargs
):
1778 """SetDefaultCellTextColour(wxColour ??)"""
1779 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1781 def SetCellTextColour(*args
, **kwargs
):
1782 """SetCellTextColour(int row, int col, wxColour ??)"""
1783 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1785 def SetDefaultCellFont(*args
, **kwargs
):
1786 """SetDefaultCellFont(wxFont ??)"""
1787 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1789 def SetCellFont(*args
, **kwargs
):
1790 """SetCellFont(int row, int col, wxFont ??)"""
1791 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1793 def SetDefaultCellAlignment(*args
, **kwargs
):
1794 """SetDefaultCellAlignment(int horiz, int vert)"""
1795 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1797 def SetCellAlignment(*args
, **kwargs
):
1798 """SetCellAlignment(int row, int col, int horiz, int vert)"""
1799 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1801 def SetDefaultCellOverflow(*args
, **kwargs
):
1802 """SetDefaultCellOverflow(bool allow)"""
1803 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1805 def SetCellOverflow(*args
, **kwargs
):
1806 """SetCellOverflow(int row, int col, bool allow)"""
1807 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1809 def SetCellSize(*args
, **kwargs
):
1810 """SetCellSize(int row, int col, int num_rows, int num_cols)"""
1811 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1813 def SetDefaultRenderer(*args
, **kwargs
):
1814 """SetDefaultRenderer(GridCellRenderer renderer)"""
1815 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1817 def SetCellRenderer(*args
, **kwargs
):
1818 """SetCellRenderer(int row, int col, GridCellRenderer renderer)"""
1819 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1821 def GetDefaultRenderer(*args
, **kwargs
):
1822 """GetDefaultRenderer() -> GridCellRenderer"""
1823 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1825 def GetCellRenderer(*args
, **kwargs
):
1826 """GetCellRenderer(int row, int col) -> GridCellRenderer"""
1827 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1829 def SetDefaultEditor(*args
, **kwargs
):
1830 """SetDefaultEditor(GridCellEditor editor)"""
1831 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1833 def SetCellEditor(*args
, **kwargs
):
1834 """SetCellEditor(int row, int col, GridCellEditor editor)"""
1835 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1837 def GetDefaultEditor(*args
, **kwargs
):
1838 """GetDefaultEditor() -> GridCellEditor"""
1839 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1841 def GetCellEditor(*args
, **kwargs
):
1842 """GetCellEditor(int row, int col) -> GridCellEditor"""
1843 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1845 def GetCellValue(*args
, **kwargs
):
1846 """GetCellValue(int row, int col) -> wxString"""
1847 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1849 def SetCellValue(*args
, **kwargs
):
1850 """SetCellValue(int row, int col, wxString s)"""
1851 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1853 def IsReadOnly(*args
, **kwargs
):
1854 """IsReadOnly(int row, int col) -> bool"""
1855 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1857 def SetReadOnly(*args
, **kwargs
):
1858 """SetReadOnly(int row, int col, bool isReadOnly=True)"""
1859 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1861 def SelectRow(*args
, **kwargs
):
1862 """SelectRow(int row, bool addToSelected=False)"""
1863 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1865 def SelectCol(*args
, **kwargs
):
1866 """SelectCol(int col, bool addToSelected=False)"""
1867 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1869 def SelectBlock(*args
, **kwargs
):
1871 SelectBlock(int topRow, int leftCol, int bottomRow, int rightCol,
1872 bool addToSelected=False)
1874 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1876 def SelectAll(*args
, **kwargs
):
1878 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1880 def IsSelection(*args
, **kwargs
):
1881 """IsSelection() -> bool"""
1882 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1884 def ClearSelection(*args
, **kwargs
):
1885 """ClearSelection()"""
1886 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1888 def IsInSelection(*args
, **kwargs
):
1889 """IsInSelection(int row, int col) -> bool"""
1890 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1892 def GetSelectedCells(*args
, **kwargs
):
1893 """GetSelectedCells() -> wxGridCellCoordsArray"""
1894 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1896 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1897 """GetSelectionBlockTopLeft() -> wxGridCellCoordsArray"""
1898 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1900 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1901 """GetSelectionBlockBottomRight() -> wxGridCellCoordsArray"""
1902 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1904 def GetSelectedRows(*args
, **kwargs
):
1905 """GetSelectedRows() -> wxArrayInt"""
1906 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1908 def GetSelectedCols(*args
, **kwargs
):
1909 """GetSelectedCols() -> wxArrayInt"""
1910 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1912 def DeselectRow(*args
, **kwargs
):
1913 """DeselectRow(int row)"""
1914 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1916 def DeselectCol(*args
, **kwargs
):
1917 """DeselectCol(int col)"""
1918 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1920 def DeselectCell(*args
, **kwargs
):
1921 """DeselectCell(int row, int col)"""
1922 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1924 def BlockToDeviceRect(*args
, **kwargs
):
1925 """BlockToDeviceRect(GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1926 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1928 def GetSelectionBackground(*args
, **kwargs
):
1929 """GetSelectionBackground() -> wxColour"""
1930 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1932 def GetSelectionForeground(*args
, **kwargs
):
1933 """GetSelectionForeground() -> wxColour"""
1934 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1936 def SetSelectionBackground(*args
, **kwargs
):
1937 """SetSelectionBackground(wxColour c)"""
1938 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1940 def SetSelectionForeground(*args
, **kwargs
):
1941 """SetSelectionForeground(wxColour c)"""
1942 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1944 def RegisterDataType(*args
, **kwargs
):
1945 """RegisterDataType(wxString typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1946 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1948 def GetDefaultEditorForCell(*args
, **kwargs
):
1949 """GetDefaultEditorForCell(int row, int col) -> GridCellEditor"""
1950 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1952 def GetDefaultRendererForCell(*args
, **kwargs
):
1953 """GetDefaultRendererForCell(int row, int col) -> GridCellRenderer"""
1954 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1956 def GetDefaultEditorForType(*args
, **kwargs
):
1957 """GetDefaultEditorForType(wxString typeName) -> GridCellEditor"""
1958 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1960 def GetDefaultRendererForType(*args
, **kwargs
):
1961 """GetDefaultRendererForType(wxString typeName) -> GridCellRenderer"""
1962 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1964 def SetMargins(*args
, **kwargs
):
1965 """SetMargins(int extraWidth, int extraHeight)"""
1966 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1968 def GetGridWindow(*args
, **kwargs
):
1969 """GetGridWindow() -> Window"""
1970 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1972 def GetGridRowLabelWindow(*args
, **kwargs
):
1973 """GetGridRowLabelWindow() -> Window"""
1974 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1976 def GetGridColLabelWindow(*args
, **kwargs
):
1977 """GetGridColLabelWindow() -> Window"""
1978 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1980 def GetGridCornerLabelWindow(*args
, **kwargs
):
1981 """GetGridCornerLabelWindow() -> Window"""
1982 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1985 class GridPtr(Grid
):
1986 def __init__(self
, this
):
1988 if not hasattr(self
,"thisown"): self
.thisown
= 0
1989 self
.__class
__ = Grid
1990 _grid
.Grid_swigregister(GridPtr
)
1992 class GridEvent(core
.NotifyEvent
):
1994 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1995 def __init__(self
, *args
, **kwargs
):
1997 __init__(int id, wxEventType type, Grid obj, int row=-1, int col=-1,
1998 int x=-1, int y=-1, bool sel=True, bool control=False,
1999 bool shift=False, bool alt=False,
2000 bool meta=False) -> GridEvent
2002 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2003 self
.this
= newobj
.this
2006 def GetRow(*args
, **kwargs
):
2007 """GetRow() -> int"""
2008 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2010 def GetCol(*args
, **kwargs
):
2011 """GetCol() -> int"""
2012 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2014 def GetPosition(*args
, **kwargs
):
2015 """GetPosition() -> Point"""
2016 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2018 def Selecting(*args
, **kwargs
):
2019 """Selecting() -> bool"""
2020 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2022 def ControlDown(*args
, **kwargs
):
2023 """ControlDown() -> bool"""
2024 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2026 def MetaDown(*args
, **kwargs
):
2027 """MetaDown() -> bool"""
2028 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2030 def ShiftDown(*args
, **kwargs
):
2031 """ShiftDown() -> bool"""
2032 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2034 def AltDown(*args
, **kwargs
):
2035 """AltDown() -> bool"""
2036 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2039 class GridEventPtr(GridEvent
):
2040 def __init__(self
, this
):
2042 if not hasattr(self
,"thisown"): self
.thisown
= 0
2043 self
.__class
__ = GridEvent
2044 _grid
.GridEvent_swigregister(GridEventPtr
)
2046 class GridSizeEvent(core
.NotifyEvent
):
2048 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2049 def __init__(self
, *args
, **kwargs
):
2051 __init__(int id, wxEventType type, Grid obj, int rowOrCol=-1,
2052 int x=-1, int y=-1, bool control=False, bool shift=False,
2053 bool alt=False, bool meta=False) -> GridSizeEvent
2055 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2056 self
.this
= newobj
.this
2059 def GetRowOrCol(*args
, **kwargs
):
2060 """GetRowOrCol() -> int"""
2061 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2063 def GetPosition(*args
, **kwargs
):
2064 """GetPosition() -> Point"""
2065 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2067 def ControlDown(*args
, **kwargs
):
2068 """ControlDown() -> bool"""
2069 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2071 def MetaDown(*args
, **kwargs
):
2072 """MetaDown() -> bool"""
2073 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2075 def ShiftDown(*args
, **kwargs
):
2076 """ShiftDown() -> bool"""
2077 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2079 def AltDown(*args
, **kwargs
):
2080 """AltDown() -> bool"""
2081 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2084 class GridSizeEventPtr(GridSizeEvent
):
2085 def __init__(self
, this
):
2087 if not hasattr(self
,"thisown"): self
.thisown
= 0
2088 self
.__class
__ = GridSizeEvent
2089 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2091 class GridRangeSelectEvent(core
.NotifyEvent
):
2093 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2094 def __init__(self
, *args
, **kwargs
):
2096 __init__(int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2097 GridCellCoords bottomRight, bool sel=True,
2098 bool control=False, bool shift=False,
2099 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2101 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2102 self
.this
= newobj
.this
2105 def GetTopLeftCoords(*args
, **kwargs
):
2106 """GetTopLeftCoords() -> GridCellCoords"""
2107 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2109 def GetBottomRightCoords(*args
, **kwargs
):
2110 """GetBottomRightCoords() -> GridCellCoords"""
2111 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2113 def GetTopRow(*args
, **kwargs
):
2114 """GetTopRow() -> int"""
2115 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2117 def GetBottomRow(*args
, **kwargs
):
2118 """GetBottomRow() -> int"""
2119 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2121 def GetLeftCol(*args
, **kwargs
):
2122 """GetLeftCol() -> int"""
2123 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2125 def GetRightCol(*args
, **kwargs
):
2126 """GetRightCol() -> int"""
2127 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2129 def Selecting(*args
, **kwargs
):
2130 """Selecting() -> bool"""
2131 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2133 def ControlDown(*args
, **kwargs
):
2134 """ControlDown() -> bool"""
2135 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2137 def MetaDown(*args
, **kwargs
):
2138 """MetaDown() -> bool"""
2139 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2141 def ShiftDown(*args
, **kwargs
):
2142 """ShiftDown() -> bool"""
2143 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2145 def AltDown(*args
, **kwargs
):
2146 """AltDown() -> bool"""
2147 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2150 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2151 def __init__(self
, this
):
2153 if not hasattr(self
,"thisown"): self
.thisown
= 0
2154 self
.__class
__ = GridRangeSelectEvent
2155 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2157 class GridEditorCreatedEvent(core
.CommandEvent
):
2159 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2160 def __init__(self
, *args
, **kwargs
):
2162 __init__(int id, wxEventType type, Object obj, int row, int col,
2163 Control ctrl) -> GridEditorCreatedEvent
2165 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2166 self
.this
= newobj
.this
2169 def GetRow(*args
, **kwargs
):
2170 """GetRow() -> int"""
2171 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2173 def GetCol(*args
, **kwargs
):
2174 """GetCol() -> int"""
2175 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2177 def GetControl(*args
, **kwargs
):
2178 """GetControl() -> Control"""
2179 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2181 def SetRow(*args
, **kwargs
):
2182 """SetRow(int row)"""
2183 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2185 def SetCol(*args
, **kwargs
):
2186 """SetCol(int col)"""
2187 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2189 def SetControl(*args
, **kwargs
):
2190 """SetControl(Control ctrl)"""
2191 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2194 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2195 def __init__(self
, this
):
2197 if not hasattr(self
,"thisown"): self
.thisown
= 0
2198 self
.__class
__ = GridEditorCreatedEvent
2199 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2201 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2202 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2203 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2204 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2205 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2206 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2207 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2208 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2209 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2210 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2211 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2212 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2213 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2214 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2215 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2216 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2217 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2218 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2219 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2220 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2221 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2222 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2223 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2224 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2225 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2226 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2227 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2228 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2229 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2230 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2231 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2232 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)