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(String 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, DC 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, DC 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 DateTimeFormatStr
= cvar
.DateTimeFormatStr
62 GridNoCellCoords
= cvar
.GridNoCellCoords
63 GridNoCellRect
= cvar
.GridNoCellRect
65 class PyGridCellRenderer(GridCellRenderer
):
67 return "<%s.%s; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
68 def __init__(self
, *args
, **kwargs
):
69 """__init__() -> PyGridCellRenderer"""
70 newobj
= _grid
.new_PyGridCellRenderer(*args
, **kwargs
)
71 self
.this
= newobj
.this
74 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
76 def _setCallbackInfo(*args
, **kwargs
):
77 """_setCallbackInfo(PyObject self, PyObject _class)"""
78 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
80 def base_SetParameters(*args
, **kwargs
):
81 """base_SetParameters(String params)"""
82 return _grid
.PyGridCellRenderer_base_SetParameters(*args
, **kwargs
)
85 class PyGridCellRendererPtr(PyGridCellRenderer
):
86 def __init__(self
, this
):
88 if not hasattr(self
,"thisown"): self
.thisown
= 0
89 self
.__class
__ = PyGridCellRenderer
90 _grid
.PyGridCellRenderer_swigregister(PyGridCellRendererPtr
)
92 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
):
113 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
114 def __init__(self
, *args
, **kwargs
):
115 """__init__() -> GridCellNumberRenderer"""
116 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
117 self
.this
= newobj
.this
120 self
._setOORInfo
(self
)
123 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
124 def __init__(self
, this
):
126 if not hasattr(self
,"thisown"): self
.thisown
= 0
127 self
.__class
__ = GridCellNumberRenderer
128 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
130 class GridCellFloatRenderer(GridCellStringRenderer
):
132 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
133 def __init__(self
, *args
, **kwargs
):
134 """__init__(int width=-1, int precision=-1) -> GridCellFloatRenderer"""
135 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
136 self
.this
= newobj
.this
139 self
._setOORInfo
(self
)
141 def GetWidth(*args
, **kwargs
):
142 """GetWidth() -> int"""
143 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
145 def SetWidth(*args
, **kwargs
):
146 """SetWidth(int width)"""
147 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
149 def GetPrecision(*args
, **kwargs
):
150 """GetPrecision() -> int"""
151 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
153 def SetPrecision(*args
, **kwargs
):
154 """SetPrecision(int precision)"""
155 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
158 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
159 def __init__(self
, this
):
161 if not hasattr(self
,"thisown"): self
.thisown
= 0
162 self
.__class
__ = GridCellFloatRenderer
163 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
165 class GridCellBoolRenderer(GridCellRenderer
):
167 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
168 def __init__(self
, *args
, **kwargs
):
169 """__init__() -> GridCellBoolRenderer"""
170 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
171 self
.this
= newobj
.this
174 self
._setOORInfo
(self
)
177 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
178 def __init__(self
, this
):
180 if not hasattr(self
,"thisown"): self
.thisown
= 0
181 self
.__class
__ = GridCellBoolRenderer
182 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
184 class GridCellDateTimeRenderer(GridCellStringRenderer
):
186 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
187 def __init__(self
, *args
, **kwargs
):
188 """__init__(String outformat=DateTimeFormatStr, String informat=DateTimeFormatStr) -> GridCellDateTimeRenderer"""
189 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
190 self
.this
= newobj
.this
193 self
._setOORInfo
(self
)
196 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
197 def __init__(self
, this
):
199 if not hasattr(self
,"thisown"): self
.thisown
= 0
200 self
.__class
__ = GridCellDateTimeRenderer
201 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
203 class GridCellEnumRenderer(GridCellStringRenderer
):
205 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
206 def __init__(self
, *args
, **kwargs
):
207 """__init__(String choices=EmptyString) -> GridCellEnumRenderer"""
208 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
209 self
.this
= newobj
.this
212 self
._setOORInfo
(self
)
215 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
216 def __init__(self
, this
):
218 if not hasattr(self
,"thisown"): self
.thisown
= 0
219 self
.__class
__ = GridCellEnumRenderer
220 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
222 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
224 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
225 def __init__(self
, *args
, **kwargs
):
226 """__init__() -> GridCellAutoWrapStringRenderer"""
227 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
228 self
.this
= newobj
.this
231 self
._setOORInfo
(self
)
234 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
235 def __init__(self
, this
):
237 if not hasattr(self
,"thisown"): self
.thisown
= 0
238 self
.__class
__ = GridCellAutoWrapStringRenderer
239 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
241 class GridCellEditor(object):
242 def __init__(self
): raise RuntimeError, "No constructor defined"
244 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
245 def _setOORInfo(*args
, **kwargs
):
246 """_setOORInfo(PyObject _self)"""
247 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
249 def IsCreated(*args
, **kwargs
):
250 """IsCreated() -> bool"""
251 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
253 def GetControl(*args
, **kwargs
):
254 """GetControl() -> Control"""
255 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
257 def SetControl(*args
, **kwargs
):
258 """SetControl(Control control)"""
259 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
261 def GetCellAttr(*args
, **kwargs
):
262 """GetCellAttr() -> GridCellAttr"""
263 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
265 def SetCellAttr(*args
, **kwargs
):
266 """SetCellAttr(GridCellAttr attr)"""
267 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
269 def SetParameters(*args
, **kwargs
):
270 """SetParameters(String params)"""
271 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
273 def IncRef(*args
, **kwargs
):
275 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
277 def DecRef(*args
, **kwargs
):
279 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
281 def Create(*args
, **kwargs
):
282 """Create(Window parent, int id, EvtHandler evtHandler)"""
283 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
285 def BeginEdit(*args
, **kwargs
):
286 """BeginEdit(int row, int col, Grid grid)"""
287 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
289 def EndEdit(*args
, **kwargs
):
290 """EndEdit(int row, int col, Grid grid) -> bool"""
291 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
293 def Reset(*args
, **kwargs
):
295 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
297 def Clone(*args
, **kwargs
):
298 """Clone() -> GridCellEditor"""
299 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
301 def SetSize(*args
, **kwargs
):
302 """SetSize(Rect rect)"""
303 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
305 def Show(*args
, **kwargs
):
306 """Show(bool show, GridCellAttr attr=None)"""
307 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
309 def PaintBackground(*args
, **kwargs
):
310 """PaintBackground(Rect rectCell, GridCellAttr attr)"""
311 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
313 def IsAcceptedKey(*args
, **kwargs
):
314 """IsAcceptedKey(KeyEvent event) -> bool"""
315 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
317 def StartingKey(*args
, **kwargs
):
318 """StartingKey(KeyEvent event)"""
319 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
321 def StartingClick(*args
, **kwargs
):
322 """StartingClick()"""
323 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
325 def HandleReturn(*args
, **kwargs
):
326 """HandleReturn(KeyEvent event)"""
327 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
329 def Destroy(*args
, **kwargs
):
331 return _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
334 class GridCellEditorPtr(GridCellEditor
):
335 def __init__(self
, this
):
337 if not hasattr(self
,"thisown"): self
.thisown
= 0
338 self
.__class
__ = GridCellEditor
339 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
341 class PyGridCellEditor(GridCellEditor
):
343 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
344 def __init__(self
, *args
, **kwargs
):
345 """__init__() -> PyGridCellEditor"""
346 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
347 self
.this
= newobj
.this
350 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
352 def _setCallbackInfo(*args
, **kwargs
):
353 """_setCallbackInfo(PyObject self, PyObject _class)"""
354 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
356 def base_SetSize(*args
, **kwargs
):
357 """base_SetSize(Rect rect)"""
358 return _grid
.PyGridCellEditor_base_SetSize(*args
, **kwargs
)
360 def base_Show(*args
, **kwargs
):
361 """base_Show(bool show, GridCellAttr attr=None)"""
362 return _grid
.PyGridCellEditor_base_Show(*args
, **kwargs
)
364 def base_PaintBackground(*args
, **kwargs
):
365 """base_PaintBackground(Rect rectCell, GridCellAttr attr)"""
366 return _grid
.PyGridCellEditor_base_PaintBackground(*args
, **kwargs
)
368 def base_IsAcceptedKey(*args
, **kwargs
):
369 """base_IsAcceptedKey(KeyEvent event) -> bool"""
370 return _grid
.PyGridCellEditor_base_IsAcceptedKey(*args
, **kwargs
)
372 def base_StartingKey(*args
, **kwargs
):
373 """base_StartingKey(KeyEvent event)"""
374 return _grid
.PyGridCellEditor_base_StartingKey(*args
, **kwargs
)
376 def base_StartingClick(*args
, **kwargs
):
377 """base_StartingClick()"""
378 return _grid
.PyGridCellEditor_base_StartingClick(*args
, **kwargs
)
380 def base_HandleReturn(*args
, **kwargs
):
381 """base_HandleReturn(KeyEvent event)"""
382 return _grid
.PyGridCellEditor_base_HandleReturn(*args
, **kwargs
)
384 def base_Destroy(*args
, **kwargs
):
386 return _grid
.PyGridCellEditor_base_Destroy(*args
, **kwargs
)
388 def base_SetParameters(*args
, **kwargs
):
389 """base_SetParameters(String params)"""
390 return _grid
.PyGridCellEditor_base_SetParameters(*args
, **kwargs
)
393 class PyGridCellEditorPtr(PyGridCellEditor
):
394 def __init__(self
, this
):
396 if not hasattr(self
,"thisown"): self
.thisown
= 0
397 self
.__class
__ = PyGridCellEditor
398 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
400 class GridCellTextEditor(GridCellEditor
):
402 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
403 def __init__(self
, *args
, **kwargs
):
404 """__init__() -> GridCellTextEditor"""
405 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
406 self
.this
= newobj
.this
409 self
._setOORInfo
(self
)
411 def GetValue(*args
, **kwargs
):
412 """GetValue() -> String"""
413 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
416 class GridCellTextEditorPtr(GridCellTextEditor
):
417 def __init__(self
, this
):
419 if not hasattr(self
,"thisown"): self
.thisown
= 0
420 self
.__class
__ = GridCellTextEditor
421 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
423 class GridCellNumberEditor(GridCellTextEditor
):
425 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
426 def __init__(self
, *args
, **kwargs
):
427 """__init__(int min=-1, int max=-1) -> GridCellNumberEditor"""
428 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
429 self
.this
= newobj
.this
432 self
._setOORInfo
(self
)
434 def GetValue(*args
, **kwargs
):
435 """GetValue() -> String"""
436 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
439 class GridCellNumberEditorPtr(GridCellNumberEditor
):
440 def __init__(self
, this
):
442 if not hasattr(self
,"thisown"): self
.thisown
= 0
443 self
.__class
__ = GridCellNumberEditor
444 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
446 class GridCellFloatEditor(GridCellTextEditor
):
448 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
449 def __init__(self
, *args
, **kwargs
):
450 """__init__() -> GridCellFloatEditor"""
451 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
452 self
.this
= newobj
.this
455 self
._setOORInfo
(self
)
457 def GetValue(*args
, **kwargs
):
458 """GetValue() -> String"""
459 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
462 class GridCellFloatEditorPtr(GridCellFloatEditor
):
463 def __init__(self
, this
):
465 if not hasattr(self
,"thisown"): self
.thisown
= 0
466 self
.__class
__ = GridCellFloatEditor
467 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
469 class GridCellBoolEditor(GridCellEditor
):
471 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
472 def __init__(self
, *args
, **kwargs
):
473 """__init__() -> GridCellBoolEditor"""
474 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
475 self
.this
= newobj
.this
478 self
._setOORInfo
(self
)
480 def GetValue(*args
, **kwargs
):
481 """GetValue() -> String"""
482 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
485 class GridCellBoolEditorPtr(GridCellBoolEditor
):
486 def __init__(self
, this
):
488 if not hasattr(self
,"thisown"): self
.thisown
= 0
489 self
.__class
__ = GridCellBoolEditor
490 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
492 class GridCellChoiceEditor(GridCellEditor
):
494 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
495 def __init__(self
, *args
, **kwargs
):
496 """__init__(int choices=0, String choices_array=None, bool allowOthers=False) -> GridCellChoiceEditor"""
497 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
498 self
.this
= newobj
.this
501 self
._setOORInfo
(self
)
503 def GetValue(*args
, **kwargs
):
504 """GetValue() -> String"""
505 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
508 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
509 def __init__(self
, this
):
511 if not hasattr(self
,"thisown"): self
.thisown
= 0
512 self
.__class
__ = GridCellChoiceEditor
513 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
515 class GridCellEnumEditor(GridCellChoiceEditor
):
517 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
518 def __init__(self
, *args
, **kwargs
):
519 """__init__(String choices=EmptyString) -> GridCellEnumEditor"""
520 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
521 self
.this
= newobj
.this
524 self
._setOORInfo
(self
)
526 def GetValue(*args
, **kwargs
):
527 """GetValue() -> String"""
528 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
531 class GridCellEnumEditorPtr(GridCellEnumEditor
):
532 def __init__(self
, this
):
534 if not hasattr(self
,"thisown"): self
.thisown
= 0
535 self
.__class
__ = GridCellEnumEditor
536 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
538 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
540 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
541 def __init__(self
, *args
, **kwargs
):
542 """__init__() -> GridCellAutoWrapStringEditor"""
543 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
544 self
.this
= newobj
.this
547 self
._setOORInfo
(self
)
549 def GetValue(*args
, **kwargs
):
550 """GetValue() -> String"""
551 return _grid
.GridCellAutoWrapStringEditor_GetValue(*args
, **kwargs
)
554 class GridCellAutoWrapStringEditorPtr(GridCellAutoWrapStringEditor
):
555 def __init__(self
, this
):
557 if not hasattr(self
,"thisown"): self
.thisown
= 0
558 self
.__class
__ = GridCellAutoWrapStringEditor
559 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditorPtr
)
561 class GridCellAttr(object):
563 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
564 Any
= _grid
.GridCellAttr_Any
565 Default
= _grid
.GridCellAttr_Default
566 Cell
= _grid
.GridCellAttr_Cell
567 Row
= _grid
.GridCellAttr_Row
568 Col
= _grid
.GridCellAttr_Col
569 Merged
= _grid
.GridCellAttr_Merged
570 def _setOORInfo(*args
, **kwargs
):
571 """_setOORInfo(PyObject _self)"""
572 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
574 def __init__(self
, *args
, **kwargs
):
575 """__init__(GridCellAttr attrDefault=None) -> GridCellAttr"""
576 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
577 self
.this
= newobj
.this
580 self
._setOORInfo
(self
)
582 def Clone(*args
, **kwargs
):
583 """Clone() -> GridCellAttr"""
584 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
586 def MergeWith(*args
, **kwargs
):
587 """MergeWith(GridCellAttr mergefrom)"""
588 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
590 def IncRef(*args
, **kwargs
):
592 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
594 def DecRef(*args
, **kwargs
):
596 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
598 def SetTextColour(*args
, **kwargs
):
599 """SetTextColour(Colour colText)"""
600 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
602 def SetBackgroundColour(*args
, **kwargs
):
603 """SetBackgroundColour(Colour colBack)"""
604 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
606 def SetFont(*args
, **kwargs
):
607 """SetFont(Font font)"""
608 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
610 def SetAlignment(*args
, **kwargs
):
611 """SetAlignment(int hAlign, int vAlign)"""
612 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
614 def SetSize(*args
, **kwargs
):
615 """SetSize(int num_rows, int num_cols)"""
616 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
618 def SetOverflow(*args
, **kwargs
):
619 """SetOverflow(bool allow=True)"""
620 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
622 def SetReadOnly(*args
, **kwargs
):
623 """SetReadOnly(bool isReadOnly=True)"""
624 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
626 def SetRenderer(*args
, **kwargs
):
627 """SetRenderer(GridCellRenderer renderer)"""
628 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
630 def SetEditor(*args
, **kwargs
):
631 """SetEditor(GridCellEditor editor)"""
632 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
634 def SetKind(*args
, **kwargs
):
635 """SetKind(int kind)"""
636 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
638 def HasTextColour(*args
, **kwargs
):
639 """HasTextColour() -> bool"""
640 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
642 def HasBackgroundColour(*args
, **kwargs
):
643 """HasBackgroundColour() -> bool"""
644 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
646 def HasFont(*args
, **kwargs
):
647 """HasFont() -> bool"""
648 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
650 def HasAlignment(*args
, **kwargs
):
651 """HasAlignment() -> bool"""
652 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
654 def HasRenderer(*args
, **kwargs
):
655 """HasRenderer() -> bool"""
656 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
658 def HasEditor(*args
, **kwargs
):
659 """HasEditor() -> bool"""
660 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
662 def HasReadWriteMode(*args
, **kwargs
):
663 """HasReadWriteMode() -> bool"""
664 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
666 def HasOverflowMode(*args
, **kwargs
):
667 """HasOverflowMode() -> bool"""
668 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
670 def GetTextColour(*args
, **kwargs
):
671 """GetTextColour() -> Colour"""
672 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
674 def GetBackgroundColour(*args
, **kwargs
):
675 """GetBackgroundColour() -> Colour"""
676 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
678 def GetFont(*args
, **kwargs
):
679 """GetFont() -> Font"""
680 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
682 def GetAlignment(*args
, **kwargs
):
683 """GetAlignment() -> (hAlign, vAlign)"""
684 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
686 def GetSize(*args
, **kwargs
):
687 """GetSize() -> (num_rows, num_cols)"""
688 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
690 def GetOverflow(*args
, **kwargs
):
691 """GetOverflow() -> bool"""
692 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
694 def GetRenderer(*args
, **kwargs
):
695 """GetRenderer(Grid grid, int row, int col) -> GridCellRenderer"""
696 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
698 def GetEditor(*args
, **kwargs
):
699 """GetEditor(Grid grid, int row, int col) -> GridCellEditor"""
700 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
702 def IsReadOnly(*args
, **kwargs
):
703 """IsReadOnly() -> bool"""
704 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
706 def SetDefAttr(*args
, **kwargs
):
707 """SetDefAttr(GridCellAttr defAttr)"""
708 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
711 class GridCellAttrPtr(GridCellAttr
):
712 def __init__(self
, this
):
714 if not hasattr(self
,"thisown"): self
.thisown
= 0
715 self
.__class
__ = GridCellAttr
716 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
718 class GridCellAttrProvider(object):
720 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
721 def __init__(self
, *args
, **kwargs
):
722 """__init__() -> GridCellAttrProvider"""
723 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
724 self
.this
= newobj
.this
727 self
._setOORInfo
(self
)
729 def _setOORInfo(*args
, **kwargs
):
730 """_setOORInfo(PyObject _self)"""
731 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
733 def GetAttr(*args
, **kwargs
):
734 """GetAttr(int row, int col, int kind) -> GridCellAttr"""
735 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
737 def SetAttr(*args
, **kwargs
):
738 """SetAttr(GridCellAttr attr, int row, int col)"""
739 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
741 def SetRowAttr(*args
, **kwargs
):
742 """SetRowAttr(GridCellAttr attr, int row)"""
743 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
745 def SetColAttr(*args
, **kwargs
):
746 """SetColAttr(GridCellAttr attr, int col)"""
747 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
749 def UpdateAttrRows(*args
, **kwargs
):
750 """UpdateAttrRows(size_t pos, int numRows)"""
751 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
753 def UpdateAttrCols(*args
, **kwargs
):
754 """UpdateAttrCols(size_t pos, int numCols)"""
755 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
758 class GridCellAttrProviderPtr(GridCellAttrProvider
):
759 def __init__(self
, this
):
761 if not hasattr(self
,"thisown"): self
.thisown
= 0
762 self
.__class
__ = GridCellAttrProvider
763 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
765 class PyGridCellAttrProvider(GridCellAttrProvider
):
767 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
768 def __init__(self
, *args
, **kwargs
):
769 """__init__() -> PyGridCellAttrProvider"""
770 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
771 self
.this
= newobj
.this
774 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
776 def _setCallbackInfo(*args
, **kwargs
):
777 """_setCallbackInfo(PyObject self, PyObject _class)"""
778 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
780 def base_GetAttr(*args
, **kwargs
):
781 """base_GetAttr(int row, int col, int kind) -> GridCellAttr"""
782 return _grid
.PyGridCellAttrProvider_base_GetAttr(*args
, **kwargs
)
784 def base_SetAttr(*args
, **kwargs
):
785 """base_SetAttr(GridCellAttr attr, int row, int col)"""
786 return _grid
.PyGridCellAttrProvider_base_SetAttr(*args
, **kwargs
)
788 def base_SetRowAttr(*args
, **kwargs
):
789 """base_SetRowAttr(GridCellAttr attr, int row)"""
790 return _grid
.PyGridCellAttrProvider_base_SetRowAttr(*args
, **kwargs
)
792 def base_SetColAttr(*args
, **kwargs
):
793 """base_SetColAttr(GridCellAttr attr, int col)"""
794 return _grid
.PyGridCellAttrProvider_base_SetColAttr(*args
, **kwargs
)
797 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
798 def __init__(self
, this
):
800 if not hasattr(self
,"thisown"): self
.thisown
= 0
801 self
.__class
__ = PyGridCellAttrProvider
802 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
804 class GridTableBase(core
.Object
):
805 def __init__(self
): raise RuntimeError, "No constructor defined"
807 return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
808 def _setOORInfo(*args
, **kwargs
):
809 """_setOORInfo(PyObject _self)"""
810 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
812 def SetAttrProvider(*args
, **kwargs
):
813 """SetAttrProvider(GridCellAttrProvider attrProvider)"""
814 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
816 def GetAttrProvider(*args
, **kwargs
):
817 """GetAttrProvider() -> GridCellAttrProvider"""
818 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
820 def SetView(*args
, **kwargs
):
821 """SetView(Grid grid)"""
822 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
824 def GetView(*args
, **kwargs
):
825 """GetView() -> Grid"""
826 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
828 def GetNumberRows(*args
, **kwargs
):
829 """GetNumberRows() -> int"""
830 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
832 def GetNumberCols(*args
, **kwargs
):
833 """GetNumberCols() -> int"""
834 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
836 def IsEmptyCell(*args
, **kwargs
):
837 """IsEmptyCell(int row, int col) -> bool"""
838 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
840 def GetValue(*args
, **kwargs
):
841 """GetValue(int row, int col) -> String"""
842 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
844 def SetValue(*args
, **kwargs
):
845 """SetValue(int row, int col, String value)"""
846 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
848 def GetTypeName(*args
, **kwargs
):
849 """GetTypeName(int row, int col) -> String"""
850 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
852 def CanGetValueAs(*args
, **kwargs
):
853 """CanGetValueAs(int row, int col, String typeName) -> bool"""
854 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
856 def CanSetValueAs(*args
, **kwargs
):
857 """CanSetValueAs(int row, int col, String typeName) -> bool"""
858 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
860 def GetValueAsLong(*args
, **kwargs
):
861 """GetValueAsLong(int row, int col) -> long"""
862 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
864 def GetValueAsDouble(*args
, **kwargs
):
865 """GetValueAsDouble(int row, int col) -> double"""
866 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
868 def GetValueAsBool(*args
, **kwargs
):
869 """GetValueAsBool(int row, int col) -> bool"""
870 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
872 def SetValueAsLong(*args
, **kwargs
):
873 """SetValueAsLong(int row, int col, long value)"""
874 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
876 def SetValueAsDouble(*args
, **kwargs
):
877 """SetValueAsDouble(int row, int col, double value)"""
878 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
880 def SetValueAsBool(*args
, **kwargs
):
881 """SetValueAsBool(int row, int col, bool value)"""
882 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
884 def Clear(*args
, **kwargs
):
886 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
888 def InsertRows(*args
, **kwargs
):
889 """InsertRows(size_t pos=0, size_t numRows=1) -> bool"""
890 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
892 def AppendRows(*args
, **kwargs
):
893 """AppendRows(size_t numRows=1) -> bool"""
894 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
896 def DeleteRows(*args
, **kwargs
):
897 """DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
898 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
900 def InsertCols(*args
, **kwargs
):
901 """InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
902 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
904 def AppendCols(*args
, **kwargs
):
905 """AppendCols(size_t numCols=1) -> bool"""
906 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
908 def DeleteCols(*args
, **kwargs
):
909 """DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
910 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
912 def GetRowLabelValue(*args
, **kwargs
):
913 """GetRowLabelValue(int row) -> String"""
914 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
916 def GetColLabelValue(*args
, **kwargs
):
917 """GetColLabelValue(int col) -> String"""
918 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
920 def SetRowLabelValue(*args
, **kwargs
):
921 """SetRowLabelValue(int row, String value)"""
922 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
924 def SetColLabelValue(*args
, **kwargs
):
925 """SetColLabelValue(int col, String value)"""
926 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
928 def CanHaveAttributes(*args
, **kwargs
):
929 """CanHaveAttributes() -> bool"""
930 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
932 def GetAttr(*args
, **kwargs
):
933 """GetAttr(int row, int col, int kind) -> GridCellAttr"""
934 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
936 def SetAttr(*args
, **kwargs
):
937 """SetAttr(GridCellAttr attr, int row, int col)"""
938 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
940 def SetRowAttr(*args
, **kwargs
):
941 """SetRowAttr(GridCellAttr attr, int row)"""
942 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
944 def SetColAttr(*args
, **kwargs
):
945 """SetColAttr(GridCellAttr attr, int col)"""
946 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
949 class GridTableBasePtr(GridTableBase
):
950 def __init__(self
, this
):
952 if not hasattr(self
,"thisown"): self
.thisown
= 0
953 self
.__class
__ = GridTableBase
954 _grid
.GridTableBase_swigregister(GridTableBasePtr
)
956 class PyGridTableBase(GridTableBase
):
958 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
959 def __init__(self
, *args
, **kwargs
):
960 """__init__() -> PyGridTableBase"""
961 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
962 self
.this
= newobj
.this
965 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
967 def _setCallbackInfo(*args
, **kwargs
):
968 """_setCallbackInfo(PyObject self, PyObject _class)"""
969 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
971 def Destroy(*args
, **kwargs
):
975 Deletes the C++ object this Python object is a proxy for.
977 return _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
979 def base_GetTypeName(*args
, **kwargs
):
980 """base_GetTypeName(int row, int col) -> String"""
981 return _grid
.PyGridTableBase_base_GetTypeName(*args
, **kwargs
)
983 def base_CanGetValueAs(*args
, **kwargs
):
984 """base_CanGetValueAs(int row, int col, String typeName) -> bool"""
985 return _grid
.PyGridTableBase_base_CanGetValueAs(*args
, **kwargs
)
987 def base_CanSetValueAs(*args
, **kwargs
):
988 """base_CanSetValueAs(int row, int col, String typeName) -> bool"""
989 return _grid
.PyGridTableBase_base_CanSetValueAs(*args
, **kwargs
)
991 def base_Clear(*args
, **kwargs
):
993 return _grid
.PyGridTableBase_base_Clear(*args
, **kwargs
)
995 def base_InsertRows(*args
, **kwargs
):
996 """base_InsertRows(size_t pos=0, size_t numRows=1) -> bool"""
997 return _grid
.PyGridTableBase_base_InsertRows(*args
, **kwargs
)
999 def base_AppendRows(*args
, **kwargs
):
1000 """base_AppendRows(size_t numRows=1) -> bool"""
1001 return _grid
.PyGridTableBase_base_AppendRows(*args
, **kwargs
)
1003 def base_DeleteRows(*args
, **kwargs
):
1004 """base_DeleteRows(size_t pos=0, size_t numRows=1) -> bool"""
1005 return _grid
.PyGridTableBase_base_DeleteRows(*args
, **kwargs
)
1007 def base_InsertCols(*args
, **kwargs
):
1008 """base_InsertCols(size_t pos=0, size_t numCols=1) -> bool"""
1009 return _grid
.PyGridTableBase_base_InsertCols(*args
, **kwargs
)
1011 def base_AppendCols(*args
, **kwargs
):
1012 """base_AppendCols(size_t numCols=1) -> bool"""
1013 return _grid
.PyGridTableBase_base_AppendCols(*args
, **kwargs
)
1015 def base_DeleteCols(*args
, **kwargs
):
1016 """base_DeleteCols(size_t pos=0, size_t numCols=1) -> bool"""
1017 return _grid
.PyGridTableBase_base_DeleteCols(*args
, **kwargs
)
1019 def base_GetRowLabelValue(*args
, **kwargs
):
1020 """base_GetRowLabelValue(int row) -> String"""
1021 return _grid
.PyGridTableBase_base_GetRowLabelValue(*args
, **kwargs
)
1023 def base_GetColLabelValue(*args
, **kwargs
):
1024 """base_GetColLabelValue(int col) -> String"""
1025 return _grid
.PyGridTableBase_base_GetColLabelValue(*args
, **kwargs
)
1027 def base_SetRowLabelValue(*args
, **kwargs
):
1028 """base_SetRowLabelValue(int row, String value)"""
1029 return _grid
.PyGridTableBase_base_SetRowLabelValue(*args
, **kwargs
)
1031 def base_SetColLabelValue(*args
, **kwargs
):
1032 """base_SetColLabelValue(int col, String value)"""
1033 return _grid
.PyGridTableBase_base_SetColLabelValue(*args
, **kwargs
)
1035 def base_CanHaveAttributes(*args
, **kwargs
):
1036 """base_CanHaveAttributes() -> bool"""
1037 return _grid
.PyGridTableBase_base_CanHaveAttributes(*args
, **kwargs
)
1039 def base_GetAttr(*args
, **kwargs
):
1040 """base_GetAttr(int row, int col, int kind) -> GridCellAttr"""
1041 return _grid
.PyGridTableBase_base_GetAttr(*args
, **kwargs
)
1043 def base_SetAttr(*args
, **kwargs
):
1044 """base_SetAttr(GridCellAttr attr, int row, int col)"""
1045 return _grid
.PyGridTableBase_base_SetAttr(*args
, **kwargs
)
1047 def base_SetRowAttr(*args
, **kwargs
):
1048 """base_SetRowAttr(GridCellAttr attr, int row)"""
1049 return _grid
.PyGridTableBase_base_SetRowAttr(*args
, **kwargs
)
1051 def base_SetColAttr(*args
, **kwargs
):
1052 """base_SetColAttr(GridCellAttr attr, int col)"""
1053 return _grid
.PyGridTableBase_base_SetColAttr(*args
, **kwargs
)
1056 class PyGridTableBasePtr(PyGridTableBase
):
1057 def __init__(self
, this
):
1059 if not hasattr(self
,"thisown"): self
.thisown
= 0
1060 self
.__class
__ = PyGridTableBase
1061 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1063 class GridStringTable(GridTableBase
):
1065 return "<%s.%s; proxy of C++ wxGridStringTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1066 def __init__(self
, *args
, **kwargs
):
1067 """__init__(int numRows=0, int numCols=0) -> GridStringTable"""
1068 newobj
= _grid
.new_GridStringTable(*args
, **kwargs
)
1069 self
.this
= newobj
.this
1072 self
._setOORInfo
(self
)
1075 class GridStringTablePtr(GridStringTable
):
1076 def __init__(self
, this
):
1078 if not hasattr(self
,"thisown"): self
.thisown
= 0
1079 self
.__class
__ = GridStringTable
1080 _grid
.GridStringTable_swigregister(GridStringTablePtr
)
1082 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1083 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1084 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1085 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1086 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1087 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1088 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1089 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1090 class GridTableMessage(object):
1092 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1093 def __init__(self
, *args
, **kwargs
):
1094 """__init__(GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1095 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1096 self
.this
= newobj
.this
1099 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1102 if self
.thisown
: destroy(self
)
1105 def SetTableObject(*args
, **kwargs
):
1106 """SetTableObject(GridTableBase table)"""
1107 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1109 def GetTableObject(*args
, **kwargs
):
1110 """GetTableObject() -> GridTableBase"""
1111 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1113 def SetId(*args
, **kwargs
):
1115 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1117 def GetId(*args
, **kwargs
):
1118 """GetId() -> int"""
1119 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1121 def SetCommandInt(*args
, **kwargs
):
1122 """SetCommandInt(int comInt1)"""
1123 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1125 def GetCommandInt(*args
, **kwargs
):
1126 """GetCommandInt() -> int"""
1127 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1129 def SetCommandInt2(*args
, **kwargs
):
1130 """SetCommandInt2(int comInt2)"""
1131 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1133 def GetCommandInt2(*args
, **kwargs
):
1134 """GetCommandInt2() -> int"""
1135 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1138 class GridTableMessagePtr(GridTableMessage
):
1139 def __init__(self
, this
):
1141 if not hasattr(self
,"thisown"): self
.thisown
= 0
1142 self
.__class
__ = GridTableMessage
1143 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1145 class GridCellCoords(object):
1147 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1148 def __init__(self
, *args
, **kwargs
):
1149 """__init__(int r=-1, int c=-1) -> GridCellCoords"""
1150 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1151 self
.this
= newobj
.this
1154 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1157 if self
.thisown
: destroy(self
)
1160 def GetRow(*args
, **kwargs
):
1161 """GetRow() -> int"""
1162 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1164 def SetRow(*args
, **kwargs
):
1166 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1168 def GetCol(*args
, **kwargs
):
1169 """GetCol() -> int"""
1170 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1172 def SetCol(*args
, **kwargs
):
1174 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1176 def Set(*args
, **kwargs
):
1177 """Set(int row, int col)"""
1178 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1180 def __eq__(*args
, **kwargs
):
1181 """__eq__(GridCellCoords other) -> bool"""
1182 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1184 def __ne__(*args
, **kwargs
):
1185 """__ne__(GridCellCoords other) -> bool"""
1186 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1188 def asTuple(*args
, **kwargs
):
1189 """asTuple() -> PyObject"""
1190 return _grid
.GridCellCoords_asTuple(*args
, **kwargs
)
1192 def __str__(self
): return str(self
.asTuple())
1193 def __repr__(self
): return 'wxGridCellCoords'+str(self
.asTuple())
1194 def __len__(self
): return len(self
.asTuple())
1195 def __getitem__(self
, index
): return self
.asTuple()[index
]
1196 def __setitem__(self
, index
, val
):
1197 if index
== 0: self
.SetRow(val
)
1198 elif index
== 1: self
.SetCol(val
)
1199 else: raise IndexError
1202 class GridCellCoordsPtr(GridCellCoords
):
1203 def __init__(self
, this
):
1205 if not hasattr(self
,"thisown"): self
.thisown
= 0
1206 self
.__class
__ = GridCellCoords
1207 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1209 class Grid(windows
.ScrolledWindow
):
1211 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1212 def __init__(self
, *args
, **kwargs
):
1214 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1215 long style=WANTS_CHARS,
1216 String name=PanelNameStr) -> Grid
1218 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1219 self
.this
= newobj
.this
1222 self
._setOORInfo
(self
)
1224 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1225 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1226 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1227 SelectCells
= wxGridSelectCells
1228 SelectRows
= wxGridSelectRows
1229 SelectColumns
= wxGridSelectColumns
,
1231 def CreateGrid(*args
, **kwargs
):
1232 """CreateGrid(int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1233 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1235 def SetSelectionMode(*args
, **kwargs
):
1236 """SetSelectionMode(WXGRIDSELECTIONMODES selmode)"""
1237 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1239 def GetSelectionMode(*args
, **kwargs
):
1240 """GetSelectionMode() -> WXGRIDSELECTIONMODES"""
1241 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1243 def GetNumberRows(*args
, **kwargs
):
1244 """GetNumberRows() -> int"""
1245 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1247 def GetNumberCols(*args
, **kwargs
):
1248 """GetNumberCols() -> int"""
1249 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1251 def ProcessTableMessage(*args
, **kwargs
):
1252 """ProcessTableMessage(GridTableMessage ??) -> bool"""
1253 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1255 def GetTable(*args
, **kwargs
):
1256 """GetTable() -> GridTableBase"""
1257 return _grid
.Grid_GetTable(*args
, **kwargs
)
1259 def SetTable(*args
, **kwargs
):
1260 """SetTable(GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1261 return _grid
.Grid_SetTable(*args
, **kwargs
)
1263 def ClearGrid(*args
, **kwargs
):
1265 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1267 def InsertRows(*args
, **kwargs
):
1268 """InsertRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1269 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1271 def AppendRows(*args
, **kwargs
):
1272 """AppendRows(int numRows=1, bool updateLabels=True) -> bool"""
1273 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1275 def DeleteRows(*args
, **kwargs
):
1276 """DeleteRows(int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1277 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1279 def InsertCols(*args
, **kwargs
):
1280 """InsertCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1281 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1283 def AppendCols(*args
, **kwargs
):
1284 """AppendCols(int numCols=1, bool updateLabels=True) -> bool"""
1285 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1287 def DeleteCols(*args
, **kwargs
):
1288 """DeleteCols(int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1289 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1291 def DrawCellHighlight(*args
, **kwargs
):
1292 """DrawCellHighlight(DC dc, GridCellAttr attr)"""
1293 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1295 def DrawTextRectangle(*args
, **kwargs
):
1297 DrawTextRectangle(DC dc, String ??, Rect ??, int horizontalAlignment=LEFT,
1298 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1300 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1302 def GetTextBoxSize(*args
, **kwargs
):
1303 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1304 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1306 def BeginBatch(*args
, **kwargs
):
1308 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1310 def EndBatch(*args
, **kwargs
):
1312 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1314 def GetBatchCount(*args
, **kwargs
):
1315 """GetBatchCount() -> int"""
1316 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1318 def ForceRefresh(*args
, **kwargs
):
1319 """ForceRefresh()"""
1320 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1322 def Refresh(*args
, **kwargs
):
1324 Refresh(bool eraseb=True, Rect rect=None)
1326 Mark the specified rectangle (or the whole window) as "dirty" so it
1327 will be repainted. Causes an EVT_PAINT event to be generated and sent
1330 return _grid
.Grid_Refresh(*args
, **kwargs
)
1332 def IsEditable(*args
, **kwargs
):
1333 """IsEditable() -> bool"""
1334 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1336 def EnableEditing(*args
, **kwargs
):
1337 """EnableEditing(bool edit)"""
1338 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1340 def EnableCellEditControl(*args
, **kwargs
):
1341 """EnableCellEditControl(bool enable=True)"""
1342 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1344 def DisableCellEditControl(*args
, **kwargs
):
1345 """DisableCellEditControl()"""
1346 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1348 def CanEnableCellControl(*args
, **kwargs
):
1349 """CanEnableCellControl() -> bool"""
1350 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1352 def IsCellEditControlEnabled(*args
, **kwargs
):
1353 """IsCellEditControlEnabled() -> bool"""
1354 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1356 def IsCellEditControlShown(*args
, **kwargs
):
1357 """IsCellEditControlShown() -> bool"""
1358 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1360 def IsCurrentCellReadOnly(*args
, **kwargs
):
1361 """IsCurrentCellReadOnly() -> bool"""
1362 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1364 def ShowCellEditControl(*args
, **kwargs
):
1365 """ShowCellEditControl()"""
1366 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1368 def HideCellEditControl(*args
, **kwargs
):
1369 """HideCellEditControl()"""
1370 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1372 def SaveEditControlValue(*args
, **kwargs
):
1373 """SaveEditControlValue()"""
1374 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1376 def XYToCell(*args
, **kwargs
):
1377 """XYToCell(int x, int y) -> GridCellCoords"""
1378 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1380 def YToRow(*args
, **kwargs
):
1381 """YToRow(int y) -> int"""
1382 return _grid
.Grid_YToRow(*args
, **kwargs
)
1384 def XToCol(*args
, **kwargs
):
1385 """XToCol(int x) -> int"""
1386 return _grid
.Grid_XToCol(*args
, **kwargs
)
1388 def YToEdgeOfRow(*args
, **kwargs
):
1389 """YToEdgeOfRow(int y) -> int"""
1390 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1392 def XToEdgeOfCol(*args
, **kwargs
):
1393 """XToEdgeOfCol(int x) -> int"""
1394 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1396 def CellToRect(*args
, **kwargs
):
1397 """CellToRect(int row, int col) -> Rect"""
1398 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1400 def GetGridCursorRow(*args
, **kwargs
):
1401 """GetGridCursorRow() -> int"""
1402 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1404 def GetGridCursorCol(*args
, **kwargs
):
1405 """GetGridCursorCol() -> int"""
1406 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1408 def IsVisible(*args
, **kwargs
):
1409 """IsVisible(int row, int col, bool wholeCellVisible=True) -> bool"""
1410 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1412 def MakeCellVisible(*args
, **kwargs
):
1413 """MakeCellVisible(int row, int col)"""
1414 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1416 def SetGridCursor(*args
, **kwargs
):
1417 """SetGridCursor(int row, int col)"""
1418 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1420 def MoveCursorUp(*args
, **kwargs
):
1421 """MoveCursorUp(bool expandSelection) -> bool"""
1422 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1424 def MoveCursorDown(*args
, **kwargs
):
1425 """MoveCursorDown(bool expandSelection) -> bool"""
1426 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1428 def MoveCursorLeft(*args
, **kwargs
):
1429 """MoveCursorLeft(bool expandSelection) -> bool"""
1430 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1432 def MoveCursorRight(*args
, **kwargs
):
1433 """MoveCursorRight(bool expandSelection) -> bool"""
1434 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1436 def MovePageDown(*args
, **kwargs
):
1437 """MovePageDown() -> bool"""
1438 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1440 def MovePageUp(*args
, **kwargs
):
1441 """MovePageUp() -> bool"""
1442 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1444 def MoveCursorUpBlock(*args
, **kwargs
):
1445 """MoveCursorUpBlock(bool expandSelection) -> bool"""
1446 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1448 def MoveCursorDownBlock(*args
, **kwargs
):
1449 """MoveCursorDownBlock(bool expandSelection) -> bool"""
1450 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1452 def MoveCursorLeftBlock(*args
, **kwargs
):
1453 """MoveCursorLeftBlock(bool expandSelection) -> bool"""
1454 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1456 def MoveCursorRightBlock(*args
, **kwargs
):
1457 """MoveCursorRightBlock(bool expandSelection) -> bool"""
1458 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1460 def GetDefaultRowLabelSize(*args
, **kwargs
):
1461 """GetDefaultRowLabelSize() -> int"""
1462 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1464 def GetRowLabelSize(*args
, **kwargs
):
1465 """GetRowLabelSize() -> int"""
1466 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1468 def GetDefaultColLabelSize(*args
, **kwargs
):
1469 """GetDefaultColLabelSize() -> int"""
1470 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1472 def GetColLabelSize(*args
, **kwargs
):
1473 """GetColLabelSize() -> int"""
1474 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1476 def GetLabelBackgroundColour(*args
, **kwargs
):
1477 """GetLabelBackgroundColour() -> Colour"""
1478 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1480 def GetLabelTextColour(*args
, **kwargs
):
1481 """GetLabelTextColour() -> Colour"""
1482 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1484 def GetLabelFont(*args
, **kwargs
):
1485 """GetLabelFont() -> Font"""
1486 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1488 def GetRowLabelAlignment(*args
, **kwargs
):
1489 """GetRowLabelAlignment() -> (horiz, vert)"""
1490 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1492 def GetColLabelAlignment(*args
, **kwargs
):
1493 """GetColLabelAlignment() -> (horiz, vert)"""
1494 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1496 def GetColLabelTextOrientation(*args
, **kwargs
):
1497 """GetColLabelTextOrientation() -> int"""
1498 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1500 def GetRowLabelValue(*args
, **kwargs
):
1501 """GetRowLabelValue(int row) -> String"""
1502 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1504 def GetColLabelValue(*args
, **kwargs
):
1505 """GetColLabelValue(int col) -> String"""
1506 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1508 def GetGridLineColour(*args
, **kwargs
):
1509 """GetGridLineColour() -> Colour"""
1510 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1512 def GetCellHighlightColour(*args
, **kwargs
):
1513 """GetCellHighlightColour() -> Colour"""
1514 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1516 def GetCellHighlightPenWidth(*args
, **kwargs
):
1517 """GetCellHighlightPenWidth() -> int"""
1518 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1520 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1521 """GetCellHighlightROPenWidth() -> int"""
1522 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1524 def SetRowLabelSize(*args
, **kwargs
):
1525 """SetRowLabelSize(int width)"""
1526 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1528 def SetColLabelSize(*args
, **kwargs
):
1529 """SetColLabelSize(int height)"""
1530 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1532 def SetLabelBackgroundColour(*args
, **kwargs
):
1533 """SetLabelBackgroundColour(Colour ??)"""
1534 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1536 def SetLabelTextColour(*args
, **kwargs
):
1537 """SetLabelTextColour(Colour ??)"""
1538 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1540 def SetLabelFont(*args
, **kwargs
):
1541 """SetLabelFont(Font ??)"""
1542 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1544 def SetRowLabelAlignment(*args
, **kwargs
):
1545 """SetRowLabelAlignment(int horiz, int vert)"""
1546 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1548 def SetColLabelAlignment(*args
, **kwargs
):
1549 """SetColLabelAlignment(int horiz, int vert)"""
1550 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1552 def SetColLabelTextOrientation(*args
, **kwargs
):
1553 """SetColLabelTextOrientation(int textOrientation)"""
1554 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1556 def SetRowLabelValue(*args
, **kwargs
):
1557 """SetRowLabelValue(int row, String ??)"""
1558 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1560 def SetColLabelValue(*args
, **kwargs
):
1561 """SetColLabelValue(int col, String ??)"""
1562 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1564 def SetGridLineColour(*args
, **kwargs
):
1565 """SetGridLineColour(Colour ??)"""
1566 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1568 def SetCellHighlightColour(*args
, **kwargs
):
1569 """SetCellHighlightColour(Colour ??)"""
1570 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1572 def SetCellHighlightPenWidth(*args
, **kwargs
):
1573 """SetCellHighlightPenWidth(int width)"""
1574 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1576 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1577 """SetCellHighlightROPenWidth(int width)"""
1578 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1580 def EnableDragRowSize(*args
, **kwargs
):
1581 """EnableDragRowSize(bool enable=True)"""
1582 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1584 def DisableDragRowSize(*args
, **kwargs
):
1585 """DisableDragRowSize()"""
1586 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1588 def CanDragRowSize(*args
, **kwargs
):
1589 """CanDragRowSize() -> bool"""
1590 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1592 def EnableDragColSize(*args
, **kwargs
):
1593 """EnableDragColSize(bool enable=True)"""
1594 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1596 def DisableDragColSize(*args
, **kwargs
):
1597 """DisableDragColSize()"""
1598 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1600 def CanDragColSize(*args
, **kwargs
):
1601 """CanDragColSize() -> bool"""
1602 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1604 def EnableDragGridSize(*args
, **kwargs
):
1605 """EnableDragGridSize(bool enable=True)"""
1606 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1608 def DisableDragGridSize(*args
, **kwargs
):
1609 """DisableDragGridSize()"""
1610 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1612 def CanDragGridSize(*args
, **kwargs
):
1613 """CanDragGridSize() -> bool"""
1614 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1616 def SetAttr(*args
, **kwargs
):
1617 """SetAttr(int row, int col, GridCellAttr attr)"""
1618 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1620 def SetRowAttr(*args
, **kwargs
):
1621 """SetRowAttr(int row, GridCellAttr attr)"""
1622 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1624 def SetColAttr(*args
, **kwargs
):
1625 """SetColAttr(int col, GridCellAttr attr)"""
1626 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1628 def SetColFormatBool(*args
, **kwargs
):
1629 """SetColFormatBool(int col)"""
1630 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1632 def SetColFormatNumber(*args
, **kwargs
):
1633 """SetColFormatNumber(int col)"""
1634 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1636 def SetColFormatFloat(*args
, **kwargs
):
1637 """SetColFormatFloat(int col, int width=-1, int precision=-1)"""
1638 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1640 def SetColFormatCustom(*args
, **kwargs
):
1641 """SetColFormatCustom(int col, String typeName)"""
1642 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1644 def EnableGridLines(*args
, **kwargs
):
1645 """EnableGridLines(bool enable=True)"""
1646 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1648 def GridLinesEnabled(*args
, **kwargs
):
1649 """GridLinesEnabled() -> bool"""
1650 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1652 def GetDefaultRowSize(*args
, **kwargs
):
1653 """GetDefaultRowSize() -> int"""
1654 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1656 def GetRowSize(*args
, **kwargs
):
1657 """GetRowSize(int row) -> int"""
1658 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1660 def GetDefaultColSize(*args
, **kwargs
):
1661 """GetDefaultColSize() -> int"""
1662 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1664 def GetColSize(*args
, **kwargs
):
1665 """GetColSize(int col) -> int"""
1666 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1668 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1669 """GetDefaultCellBackgroundColour() -> Colour"""
1670 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1672 def GetCellBackgroundColour(*args
, **kwargs
):
1673 """GetCellBackgroundColour(int row, int col) -> Colour"""
1674 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1676 def GetDefaultCellTextColour(*args
, **kwargs
):
1677 """GetDefaultCellTextColour() -> Colour"""
1678 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1680 def GetCellTextColour(*args
, **kwargs
):
1681 """GetCellTextColour(int row, int col) -> Colour"""
1682 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1684 def GetDefaultCellFont(*args
, **kwargs
):
1685 """GetDefaultCellFont() -> Font"""
1686 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1688 def GetCellFont(*args
, **kwargs
):
1689 """GetCellFont(int row, int col) -> Font"""
1690 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1692 def GetDefaultCellAlignment(*args
, **kwargs
):
1693 """GetDefaultCellAlignment() -> (horiz, vert)"""
1694 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1696 def GetCellAlignment(*args
, **kwargs
):
1697 """GetCellAlignment() -> (horiz, vert)"""
1698 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1700 def GetDefaultCellOverflow(*args
, **kwargs
):
1701 """GetDefaultCellOverflow() -> bool"""
1702 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1704 def GetCellOverflow(*args
, **kwargs
):
1705 """GetCellOverflow(int row, int col) -> bool"""
1706 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1708 def GetCellSize(*args
, **kwargs
):
1709 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1710 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1712 def SetDefaultRowSize(*args
, **kwargs
):
1713 """SetDefaultRowSize(int height, bool resizeExistingRows=False)"""
1714 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1716 def SetRowSize(*args
, **kwargs
):
1717 """SetRowSize(int row, int height)"""
1718 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1720 def SetDefaultColSize(*args
, **kwargs
):
1721 """SetDefaultColSize(int width, bool resizeExistingCols=False)"""
1722 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1724 def SetColSize(*args
, **kwargs
):
1725 """SetColSize(int col, int width)"""
1726 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1728 def AutoSizeColumn(*args
, **kwargs
):
1729 """AutoSizeColumn(int col, bool setAsMin=True)"""
1730 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1732 def AutoSizeRow(*args
, **kwargs
):
1733 """AutoSizeRow(int row, bool setAsMin=True)"""
1734 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1736 def AutoSizeColumns(*args
, **kwargs
):
1737 """AutoSizeColumns(bool setAsMin=True)"""
1738 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1740 def AutoSizeRows(*args
, **kwargs
):
1741 """AutoSizeRows(bool setAsMin=True)"""
1742 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1744 def AutoSize(*args
, **kwargs
):
1746 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1748 def AutoSizeRowLabelSize(*args
, **kwargs
):
1749 """AutoSizeRowLabelSize(int row)"""
1750 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1752 def AutoSizeColLabelSize(*args
, **kwargs
):
1753 """AutoSizeColLabelSize(int col)"""
1754 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1756 def SetColMinimalWidth(*args
, **kwargs
):
1757 """SetColMinimalWidth(int col, int width)"""
1758 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1760 def SetRowMinimalHeight(*args
, **kwargs
):
1761 """SetRowMinimalHeight(int row, int width)"""
1762 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1764 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1765 """SetColMinimalAcceptableWidth(int width)"""
1766 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1768 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1769 """SetRowMinimalAcceptableHeight(int width)"""
1770 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1772 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1773 """GetColMinimalAcceptableWidth() -> int"""
1774 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1776 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1777 """GetRowMinimalAcceptableHeight() -> int"""
1778 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1780 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1781 """SetDefaultCellBackgroundColour(Colour ??)"""
1782 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1784 def SetCellBackgroundColour(*args
, **kwargs
):
1785 """SetCellBackgroundColour(int row, int col, Colour ??)"""
1786 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1788 def SetDefaultCellTextColour(*args
, **kwargs
):
1789 """SetDefaultCellTextColour(Colour ??)"""
1790 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1792 def SetCellTextColour(*args
, **kwargs
):
1793 """SetCellTextColour(int row, int col, Colour ??)"""
1794 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1796 def SetDefaultCellFont(*args
, **kwargs
):
1797 """SetDefaultCellFont(Font ??)"""
1798 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1800 def SetCellFont(*args
, **kwargs
):
1801 """SetCellFont(int row, int col, Font ??)"""
1802 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1804 def SetDefaultCellAlignment(*args
, **kwargs
):
1805 """SetDefaultCellAlignment(int horiz, int vert)"""
1806 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1808 def SetCellAlignment(*args
, **kwargs
):
1809 """SetCellAlignment(int row, int col, int horiz, int vert)"""
1810 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1812 def SetDefaultCellOverflow(*args
, **kwargs
):
1813 """SetDefaultCellOverflow(bool allow)"""
1814 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1816 def SetCellOverflow(*args
, **kwargs
):
1817 """SetCellOverflow(int row, int col, bool allow)"""
1818 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1820 def SetCellSize(*args
, **kwargs
):
1821 """SetCellSize(int row, int col, int num_rows, int num_cols)"""
1822 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1824 def SetDefaultRenderer(*args
, **kwargs
):
1825 """SetDefaultRenderer(GridCellRenderer renderer)"""
1826 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1828 def SetCellRenderer(*args
, **kwargs
):
1829 """SetCellRenderer(int row, int col, GridCellRenderer renderer)"""
1830 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1832 def GetDefaultRenderer(*args
, **kwargs
):
1833 """GetDefaultRenderer() -> GridCellRenderer"""
1834 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1836 def GetCellRenderer(*args
, **kwargs
):
1837 """GetCellRenderer(int row, int col) -> GridCellRenderer"""
1838 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1840 def SetDefaultEditor(*args
, **kwargs
):
1841 """SetDefaultEditor(GridCellEditor editor)"""
1842 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1844 def SetCellEditor(*args
, **kwargs
):
1845 """SetCellEditor(int row, int col, GridCellEditor editor)"""
1846 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1848 def GetDefaultEditor(*args
, **kwargs
):
1849 """GetDefaultEditor() -> GridCellEditor"""
1850 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1852 def GetCellEditor(*args
, **kwargs
):
1853 """GetCellEditor(int row, int col) -> GridCellEditor"""
1854 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1856 def GetCellValue(*args
, **kwargs
):
1857 """GetCellValue(int row, int col) -> String"""
1858 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1860 def SetCellValue(*args
, **kwargs
):
1861 """SetCellValue(int row, int col, String s)"""
1862 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1864 def IsReadOnly(*args
, **kwargs
):
1865 """IsReadOnly(int row, int col) -> bool"""
1866 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1868 def SetReadOnly(*args
, **kwargs
):
1869 """SetReadOnly(int row, int col, bool isReadOnly=True)"""
1870 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1872 def SelectRow(*args
, **kwargs
):
1873 """SelectRow(int row, bool addToSelected=False)"""
1874 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1876 def SelectCol(*args
, **kwargs
):
1877 """SelectCol(int col, bool addToSelected=False)"""
1878 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1880 def SelectBlock(*args
, **kwargs
):
1882 SelectBlock(int topRow, int leftCol, int bottomRow, int rightCol,
1883 bool addToSelected=False)
1885 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1887 def SelectAll(*args
, **kwargs
):
1889 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1891 def IsSelection(*args
, **kwargs
):
1892 """IsSelection() -> bool"""
1893 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1895 def ClearSelection(*args
, **kwargs
):
1896 """ClearSelection()"""
1897 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1899 def IsInSelection(*args
, **kwargs
):
1900 """IsInSelection(int row, int col) -> bool"""
1901 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1903 def GetSelectedCells(*args
, **kwargs
):
1904 """GetSelectedCells() -> wxGridCellCoordsArray"""
1905 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1907 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1908 """GetSelectionBlockTopLeft() -> wxGridCellCoordsArray"""
1909 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1911 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1912 """GetSelectionBlockBottomRight() -> wxGridCellCoordsArray"""
1913 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1915 def GetSelectedRows(*args
, **kwargs
):
1916 """GetSelectedRows() -> wxArrayInt"""
1917 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1919 def GetSelectedCols(*args
, **kwargs
):
1920 """GetSelectedCols() -> wxArrayInt"""
1921 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1923 def DeselectRow(*args
, **kwargs
):
1924 """DeselectRow(int row)"""
1925 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1927 def DeselectCol(*args
, **kwargs
):
1928 """DeselectCol(int col)"""
1929 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1931 def DeselectCell(*args
, **kwargs
):
1932 """DeselectCell(int row, int col)"""
1933 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1935 def BlockToDeviceRect(*args
, **kwargs
):
1936 """BlockToDeviceRect(GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1937 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1939 def GetSelectionBackground(*args
, **kwargs
):
1940 """GetSelectionBackground() -> Colour"""
1941 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1943 def GetSelectionForeground(*args
, **kwargs
):
1944 """GetSelectionForeground() -> Colour"""
1945 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1947 def SetSelectionBackground(*args
, **kwargs
):
1948 """SetSelectionBackground(Colour c)"""
1949 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1951 def SetSelectionForeground(*args
, **kwargs
):
1952 """SetSelectionForeground(Colour c)"""
1953 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1955 def RegisterDataType(*args
, **kwargs
):
1956 """RegisterDataType(String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1957 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1959 def GetDefaultEditorForCell(*args
, **kwargs
):
1960 """GetDefaultEditorForCell(int row, int col) -> GridCellEditor"""
1961 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1963 def GetDefaultRendererForCell(*args
, **kwargs
):
1964 """GetDefaultRendererForCell(int row, int col) -> GridCellRenderer"""
1965 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1967 def GetDefaultEditorForType(*args
, **kwargs
):
1968 """GetDefaultEditorForType(String typeName) -> GridCellEditor"""
1969 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1971 def GetDefaultRendererForType(*args
, **kwargs
):
1972 """GetDefaultRendererForType(String typeName) -> GridCellRenderer"""
1973 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1975 def SetMargins(*args
, **kwargs
):
1976 """SetMargins(int extraWidth, int extraHeight)"""
1977 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1979 def GetGridWindow(*args
, **kwargs
):
1980 """GetGridWindow() -> Window"""
1981 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1983 def GetGridRowLabelWindow(*args
, **kwargs
):
1984 """GetGridRowLabelWindow() -> Window"""
1985 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1987 def GetGridColLabelWindow(*args
, **kwargs
):
1988 """GetGridColLabelWindow() -> Window"""
1989 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1991 def GetGridCornerLabelWindow(*args
, **kwargs
):
1992 """GetGridCornerLabelWindow() -> Window"""
1993 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1996 class GridPtr(Grid
):
1997 def __init__(self
, this
):
1999 if not hasattr(self
,"thisown"): self
.thisown
= 0
2000 self
.__class
__ = Grid
2001 _grid
.Grid_swigregister(GridPtr
)
2003 class GridEvent(core
.NotifyEvent
):
2005 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2006 def __init__(self
, *args
, **kwargs
):
2008 __init__(int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2009 int x=-1, int y=-1, bool sel=True, bool control=False,
2010 bool shift=False, bool alt=False,
2011 bool meta=False) -> GridEvent
2013 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2014 self
.this
= newobj
.this
2017 def GetRow(*args
, **kwargs
):
2018 """GetRow() -> int"""
2019 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2021 def GetCol(*args
, **kwargs
):
2022 """GetCol() -> int"""
2023 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2025 def GetPosition(*args
, **kwargs
):
2026 """GetPosition() -> Point"""
2027 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2029 def Selecting(*args
, **kwargs
):
2030 """Selecting() -> bool"""
2031 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2033 def ControlDown(*args
, **kwargs
):
2034 """ControlDown() -> bool"""
2035 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2037 def MetaDown(*args
, **kwargs
):
2038 """MetaDown() -> bool"""
2039 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2041 def ShiftDown(*args
, **kwargs
):
2042 """ShiftDown() -> bool"""
2043 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2045 def AltDown(*args
, **kwargs
):
2046 """AltDown() -> bool"""
2047 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2050 class GridEventPtr(GridEvent
):
2051 def __init__(self
, this
):
2053 if not hasattr(self
,"thisown"): self
.thisown
= 0
2054 self
.__class
__ = GridEvent
2055 _grid
.GridEvent_swigregister(GridEventPtr
)
2057 class GridSizeEvent(core
.NotifyEvent
):
2059 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2060 def __init__(self
, *args
, **kwargs
):
2062 __init__(int id, wxEventType type, Grid obj, int rowOrCol=-1,
2063 int x=-1, int y=-1, bool control=False, bool shift=False,
2064 bool alt=False, bool meta=False) -> GridSizeEvent
2066 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2067 self
.this
= newobj
.this
2070 def GetRowOrCol(*args
, **kwargs
):
2071 """GetRowOrCol() -> int"""
2072 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2074 def GetPosition(*args
, **kwargs
):
2075 """GetPosition() -> Point"""
2076 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2078 def ControlDown(*args
, **kwargs
):
2079 """ControlDown() -> bool"""
2080 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2082 def MetaDown(*args
, **kwargs
):
2083 """MetaDown() -> bool"""
2084 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2086 def ShiftDown(*args
, **kwargs
):
2087 """ShiftDown() -> bool"""
2088 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2090 def AltDown(*args
, **kwargs
):
2091 """AltDown() -> bool"""
2092 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2095 class GridSizeEventPtr(GridSizeEvent
):
2096 def __init__(self
, this
):
2098 if not hasattr(self
,"thisown"): self
.thisown
= 0
2099 self
.__class
__ = GridSizeEvent
2100 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2102 class GridRangeSelectEvent(core
.NotifyEvent
):
2104 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2105 def __init__(self
, *args
, **kwargs
):
2107 __init__(int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2108 GridCellCoords bottomRight, bool sel=True,
2109 bool control=False, bool shift=False,
2110 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2112 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2113 self
.this
= newobj
.this
2116 def GetTopLeftCoords(*args
, **kwargs
):
2117 """GetTopLeftCoords() -> GridCellCoords"""
2118 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2120 def GetBottomRightCoords(*args
, **kwargs
):
2121 """GetBottomRightCoords() -> GridCellCoords"""
2122 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2124 def GetTopRow(*args
, **kwargs
):
2125 """GetTopRow() -> int"""
2126 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2128 def GetBottomRow(*args
, **kwargs
):
2129 """GetBottomRow() -> int"""
2130 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2132 def GetLeftCol(*args
, **kwargs
):
2133 """GetLeftCol() -> int"""
2134 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2136 def GetRightCol(*args
, **kwargs
):
2137 """GetRightCol() -> int"""
2138 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2140 def Selecting(*args
, **kwargs
):
2141 """Selecting() -> bool"""
2142 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2144 def ControlDown(*args
, **kwargs
):
2145 """ControlDown() -> bool"""
2146 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2148 def MetaDown(*args
, **kwargs
):
2149 """MetaDown() -> bool"""
2150 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2152 def ShiftDown(*args
, **kwargs
):
2153 """ShiftDown() -> bool"""
2154 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2156 def AltDown(*args
, **kwargs
):
2157 """AltDown() -> bool"""
2158 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2161 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2162 def __init__(self
, this
):
2164 if not hasattr(self
,"thisown"): self
.thisown
= 0
2165 self
.__class
__ = GridRangeSelectEvent
2166 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2168 class GridEditorCreatedEvent(core
.CommandEvent
):
2170 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2171 def __init__(self
, *args
, **kwargs
):
2173 __init__(int id, wxEventType type, Object obj, int row, int col,
2174 Control ctrl) -> GridEditorCreatedEvent
2176 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2177 self
.this
= newobj
.this
2180 def GetRow(*args
, **kwargs
):
2181 """GetRow() -> int"""
2182 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2184 def GetCol(*args
, **kwargs
):
2185 """GetCol() -> int"""
2186 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2188 def GetControl(*args
, **kwargs
):
2189 """GetControl() -> Control"""
2190 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2192 def SetRow(*args
, **kwargs
):
2193 """SetRow(int row)"""
2194 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2196 def SetCol(*args
, **kwargs
):
2197 """SetCol(int col)"""
2198 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2200 def SetControl(*args
, **kwargs
):
2201 """SetControl(Control ctrl)"""
2202 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2205 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2206 def __init__(self
, this
):
2208 if not hasattr(self
,"thisown"): self
.thisown
= 0
2209 self
.__class
__ = GridEditorCreatedEvent
2210 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2212 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2213 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2214 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2215 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2216 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2217 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2218 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2219 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2220 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2221 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2222 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2223 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2224 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2225 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2226 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2227 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2228 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2229 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2230 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2231 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2232 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2233 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2234 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2235 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2236 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2237 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2238 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2239 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2240 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2241 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2242 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2243 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)