1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for implementing a spreadsheet-like control.
13 __docfilter__
= wx
.__DocFilter
(globals())
14 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
15 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
16 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
17 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
18 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
19 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
20 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
21 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
22 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
23 class GridCellRenderer(object):
24 def __init__(self
): raise RuntimeError, "No constructor defined"
26 return "<%s.%s; proxy of C++ wxGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
27 def _setOORInfo(*args
, **kwargs
):
28 """_setOORInfo(self, PyObject _self)"""
29 return _grid
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
31 def SetParameters(*args
, **kwargs
):
32 """SetParameters(self, String params)"""
33 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
35 def IncRef(*args
, **kwargs
):
37 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
39 def DecRef(*args
, **kwargs
):
41 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
43 def Draw(*args
, **kwargs
):
45 Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
46 int col, bool isSelected)
48 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
50 def GetBestSize(*args
, **kwargs
):
51 """GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
52 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
54 def Clone(*args
, **kwargs
):
55 """Clone(self) -> GridCellRenderer"""
56 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
59 class GridCellRendererPtr(GridCellRenderer
):
60 def __init__(self
, this
):
62 if not hasattr(self
,"thisown"): self
.thisown
= 0
63 self
.__class
__ = GridCellRenderer
64 _grid
.GridCellRenderer_swigregister(GridCellRendererPtr
)
66 DateTimeFormatStr
= cvar
.DateTimeFormatStr
67 GridNoCellCoords
= cvar
.GridNoCellCoords
68 GridNoCellRect
= cvar
.GridNoCellRect
70 class PyGridCellRenderer(GridCellRenderer
):
72 return "<%s.%s; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
73 def __init__(self
, *args
, **kwargs
):
74 """__init__(self) -> PyGridCellRenderer"""
75 newobj
= _grid
.new_PyGridCellRenderer(*args
, **kwargs
)
76 self
.this
= newobj
.this
79 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
81 def _setCallbackInfo(*args
, **kwargs
):
82 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
83 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
85 def base_SetParameters(*args
, **kwargs
):
86 """base_SetParameters(self, String params)"""
87 return _grid
.PyGridCellRenderer_base_SetParameters(*args
, **kwargs
)
90 class PyGridCellRendererPtr(PyGridCellRenderer
):
91 def __init__(self
, this
):
93 if not hasattr(self
,"thisown"): self
.thisown
= 0
94 self
.__class
__ = PyGridCellRenderer
95 _grid
.PyGridCellRenderer_swigregister(PyGridCellRendererPtr
)
97 class GridCellStringRenderer(GridCellRenderer
):
99 return "<%s.%s; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
100 def __init__(self
, *args
, **kwargs
):
101 """__init__(self) -> GridCellStringRenderer"""
102 newobj
= _grid
.new_GridCellStringRenderer(*args
, **kwargs
)
103 self
.this
= newobj
.this
106 self
._setOORInfo
(self
)
109 class GridCellStringRendererPtr(GridCellStringRenderer
):
110 def __init__(self
, this
):
112 if not hasattr(self
,"thisown"): self
.thisown
= 0
113 self
.__class
__ = GridCellStringRenderer
114 _grid
.GridCellStringRenderer_swigregister(GridCellStringRendererPtr
)
116 class GridCellNumberRenderer(GridCellStringRenderer
):
118 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
119 def __init__(self
, *args
, **kwargs
):
120 """__init__(self) -> GridCellNumberRenderer"""
121 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
122 self
.this
= newobj
.this
125 self
._setOORInfo
(self
)
128 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
129 def __init__(self
, this
):
131 if not hasattr(self
,"thisown"): self
.thisown
= 0
132 self
.__class
__ = GridCellNumberRenderer
133 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
135 class GridCellFloatRenderer(GridCellStringRenderer
):
137 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
138 def __init__(self
, *args
, **kwargs
):
139 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
140 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
141 self
.this
= newobj
.this
144 self
._setOORInfo
(self
)
146 def GetWidth(*args
, **kwargs
):
147 """GetWidth(self) -> int"""
148 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
150 def SetWidth(*args
, **kwargs
):
151 """SetWidth(self, int width)"""
152 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
154 def GetPrecision(*args
, **kwargs
):
155 """GetPrecision(self) -> int"""
156 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
158 def SetPrecision(*args
, **kwargs
):
159 """SetPrecision(self, int precision)"""
160 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
163 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
164 def __init__(self
, this
):
166 if not hasattr(self
,"thisown"): self
.thisown
= 0
167 self
.__class
__ = GridCellFloatRenderer
168 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
170 class GridCellBoolRenderer(GridCellRenderer
):
172 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
173 def __init__(self
, *args
, **kwargs
):
174 """__init__(self) -> GridCellBoolRenderer"""
175 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
176 self
.this
= newobj
.this
179 self
._setOORInfo
(self
)
182 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
183 def __init__(self
, this
):
185 if not hasattr(self
,"thisown"): self
.thisown
= 0
186 self
.__class
__ = GridCellBoolRenderer
187 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
189 class GridCellDateTimeRenderer(GridCellStringRenderer
):
191 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
192 def __init__(self
, *args
, **kwargs
):
193 """__init__(self, String outformat=DateTimeFormatStr, String informat=DateTimeFormatStr) -> GridCellDateTimeRenderer"""
194 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
195 self
.this
= newobj
.this
198 self
._setOORInfo
(self
)
201 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
202 def __init__(self
, this
):
204 if not hasattr(self
,"thisown"): self
.thisown
= 0
205 self
.__class
__ = GridCellDateTimeRenderer
206 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
208 class GridCellEnumRenderer(GridCellStringRenderer
):
210 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
211 def __init__(self
, *args
, **kwargs
):
212 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
213 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
214 self
.this
= newobj
.this
217 self
._setOORInfo
(self
)
220 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
221 def __init__(self
, this
):
223 if not hasattr(self
,"thisown"): self
.thisown
= 0
224 self
.__class
__ = GridCellEnumRenderer
225 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
227 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
229 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
230 def __init__(self
, *args
, **kwargs
):
231 """__init__(self) -> GridCellAutoWrapStringRenderer"""
232 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
233 self
.this
= newobj
.this
236 self
._setOORInfo
(self
)
239 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
240 def __init__(self
, this
):
242 if not hasattr(self
,"thisown"): self
.thisown
= 0
243 self
.__class
__ = GridCellAutoWrapStringRenderer
244 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
246 class GridCellEditor(object):
247 def __init__(self
): raise RuntimeError, "No constructor defined"
249 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
250 def _setOORInfo(*args
, **kwargs
):
251 """_setOORInfo(self, PyObject _self)"""
252 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
254 def IsCreated(*args
, **kwargs
):
255 """IsCreated(self) -> bool"""
256 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
258 def GetControl(*args
, **kwargs
):
259 """GetControl(self) -> Control"""
260 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
262 def SetControl(*args
, **kwargs
):
263 """SetControl(self, Control control)"""
264 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
266 def GetCellAttr(*args
, **kwargs
):
267 """GetCellAttr(self) -> GridCellAttr"""
268 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
270 def SetCellAttr(*args
, **kwargs
):
271 """SetCellAttr(self, GridCellAttr attr)"""
272 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
274 def SetParameters(*args
, **kwargs
):
275 """SetParameters(self, String params)"""
276 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
278 def IncRef(*args
, **kwargs
):
280 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
282 def DecRef(*args
, **kwargs
):
284 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
286 def Create(*args
, **kwargs
):
287 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
288 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
290 def BeginEdit(*args
, **kwargs
):
291 """BeginEdit(self, int row, int col, Grid grid)"""
292 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
294 def EndEdit(*args
, **kwargs
):
295 """EndEdit(self, int row, int col, Grid grid) -> bool"""
296 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
298 def Reset(*args
, **kwargs
):
300 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
302 def Clone(*args
, **kwargs
):
303 """Clone(self) -> GridCellEditor"""
304 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
306 def SetSize(*args
, **kwargs
):
307 """SetSize(self, Rect rect)"""
308 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
310 def Show(*args
, **kwargs
):
311 """Show(self, bool show, GridCellAttr attr=None)"""
312 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
314 def PaintBackground(*args
, **kwargs
):
315 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
316 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
318 def IsAcceptedKey(*args
, **kwargs
):
319 """IsAcceptedKey(self, KeyEvent event) -> bool"""
320 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
322 def StartingKey(*args
, **kwargs
):
323 """StartingKey(self, KeyEvent event)"""
324 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
326 def StartingClick(*args
, **kwargs
):
327 """StartingClick(self)"""
328 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
330 def HandleReturn(*args
, **kwargs
):
331 """HandleReturn(self, KeyEvent event)"""
332 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
334 def Destroy(*args
, **kwargs
):
336 return _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
339 class GridCellEditorPtr(GridCellEditor
):
340 def __init__(self
, this
):
342 if not hasattr(self
,"thisown"): self
.thisown
= 0
343 self
.__class
__ = GridCellEditor
344 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
346 class PyGridCellEditor(GridCellEditor
):
348 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
349 def __init__(self
, *args
, **kwargs
):
350 """__init__(self) -> PyGridCellEditor"""
351 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
352 self
.this
= newobj
.this
355 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
357 def _setCallbackInfo(*args
, **kwargs
):
358 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
359 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
361 def base_SetSize(*args
, **kwargs
):
362 """base_SetSize(self, Rect rect)"""
363 return _grid
.PyGridCellEditor_base_SetSize(*args
, **kwargs
)
365 def base_Show(*args
, **kwargs
):
366 """base_Show(self, bool show, GridCellAttr attr=None)"""
367 return _grid
.PyGridCellEditor_base_Show(*args
, **kwargs
)
369 def base_PaintBackground(*args
, **kwargs
):
370 """base_PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
371 return _grid
.PyGridCellEditor_base_PaintBackground(*args
, **kwargs
)
373 def base_IsAcceptedKey(*args
, **kwargs
):
374 """base_IsAcceptedKey(self, KeyEvent event) -> bool"""
375 return _grid
.PyGridCellEditor_base_IsAcceptedKey(*args
, **kwargs
)
377 def base_StartingKey(*args
, **kwargs
):
378 """base_StartingKey(self, KeyEvent event)"""
379 return _grid
.PyGridCellEditor_base_StartingKey(*args
, **kwargs
)
381 def base_StartingClick(*args
, **kwargs
):
382 """base_StartingClick(self)"""
383 return _grid
.PyGridCellEditor_base_StartingClick(*args
, **kwargs
)
385 def base_HandleReturn(*args
, **kwargs
):
386 """base_HandleReturn(self, KeyEvent event)"""
387 return _grid
.PyGridCellEditor_base_HandleReturn(*args
, **kwargs
)
389 def base_Destroy(*args
, **kwargs
):
390 """base_Destroy(self)"""
391 return _grid
.PyGridCellEditor_base_Destroy(*args
, **kwargs
)
393 def base_SetParameters(*args
, **kwargs
):
394 """base_SetParameters(self, String params)"""
395 return _grid
.PyGridCellEditor_base_SetParameters(*args
, **kwargs
)
398 class PyGridCellEditorPtr(PyGridCellEditor
):
399 def __init__(self
, this
):
401 if not hasattr(self
,"thisown"): self
.thisown
= 0
402 self
.__class
__ = PyGridCellEditor
403 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
405 class GridCellTextEditor(GridCellEditor
):
407 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
408 def __init__(self
, *args
, **kwargs
):
409 """__init__(self) -> GridCellTextEditor"""
410 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
411 self
.this
= newobj
.this
414 self
._setOORInfo
(self
)
416 def GetValue(*args
, **kwargs
):
417 """GetValue(self) -> String"""
418 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
421 class GridCellTextEditorPtr(GridCellTextEditor
):
422 def __init__(self
, this
):
424 if not hasattr(self
,"thisown"): self
.thisown
= 0
425 self
.__class
__ = GridCellTextEditor
426 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
428 class GridCellNumberEditor(GridCellTextEditor
):
430 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
431 def __init__(self
, *args
, **kwargs
):
432 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
433 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
434 self
.this
= newobj
.this
437 self
._setOORInfo
(self
)
439 def GetValue(*args
, **kwargs
):
440 """GetValue(self) -> String"""
441 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
444 class GridCellNumberEditorPtr(GridCellNumberEditor
):
445 def __init__(self
, this
):
447 if not hasattr(self
,"thisown"): self
.thisown
= 0
448 self
.__class
__ = GridCellNumberEditor
449 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
451 class GridCellFloatEditor(GridCellTextEditor
):
453 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
454 def __init__(self
, *args
, **kwargs
):
455 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
456 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
457 self
.this
= newobj
.this
460 self
._setOORInfo
(self
)
462 def GetValue(*args
, **kwargs
):
463 """GetValue(self) -> String"""
464 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
467 class GridCellFloatEditorPtr(GridCellFloatEditor
):
468 def __init__(self
, this
):
470 if not hasattr(self
,"thisown"): self
.thisown
= 0
471 self
.__class
__ = GridCellFloatEditor
472 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
474 class GridCellBoolEditor(GridCellEditor
):
476 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
477 def __init__(self
, *args
, **kwargs
):
478 """__init__(self) -> GridCellBoolEditor"""
479 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
480 self
.this
= newobj
.this
483 self
._setOORInfo
(self
)
485 def GetValue(*args
, **kwargs
):
486 """GetValue(self) -> String"""
487 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
490 class GridCellBoolEditorPtr(GridCellBoolEditor
):
491 def __init__(self
, this
):
493 if not hasattr(self
,"thisown"): self
.thisown
= 0
494 self
.__class
__ = GridCellBoolEditor
495 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
497 class GridCellChoiceEditor(GridCellEditor
):
499 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
500 def __init__(self
, *args
, **kwargs
):
501 """__init__(self, int choices=0, String choices_array=None, bool allowOthers=False) -> GridCellChoiceEditor"""
502 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
503 self
.this
= newobj
.this
506 self
._setOORInfo
(self
)
508 def GetValue(*args
, **kwargs
):
509 """GetValue(self) -> String"""
510 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
513 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
514 def __init__(self
, this
):
516 if not hasattr(self
,"thisown"): self
.thisown
= 0
517 self
.__class
__ = GridCellChoiceEditor
518 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
520 class GridCellEnumEditor(GridCellChoiceEditor
):
522 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
523 def __init__(self
, *args
, **kwargs
):
524 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
525 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
526 self
.this
= newobj
.this
529 self
._setOORInfo
(self
)
531 def GetValue(*args
, **kwargs
):
532 """GetValue(self) -> String"""
533 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
536 class GridCellEnumEditorPtr(GridCellEnumEditor
):
537 def __init__(self
, this
):
539 if not hasattr(self
,"thisown"): self
.thisown
= 0
540 self
.__class
__ = GridCellEnumEditor
541 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
543 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
545 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
546 def __init__(self
, *args
, **kwargs
):
547 """__init__(self) -> GridCellAutoWrapStringEditor"""
548 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
549 self
.this
= newobj
.this
552 self
._setOORInfo
(self
)
554 def GetValue(*args
, **kwargs
):
555 """GetValue(self) -> String"""
556 return _grid
.GridCellAutoWrapStringEditor_GetValue(*args
, **kwargs
)
559 class GridCellAutoWrapStringEditorPtr(GridCellAutoWrapStringEditor
):
560 def __init__(self
, this
):
562 if not hasattr(self
,"thisown"): self
.thisown
= 0
563 self
.__class
__ = GridCellAutoWrapStringEditor
564 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditorPtr
)
566 class GridCellAttr(object):
568 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
569 Any
= _grid
.GridCellAttr_Any
570 Default
= _grid
.GridCellAttr_Default
571 Cell
= _grid
.GridCellAttr_Cell
572 Row
= _grid
.GridCellAttr_Row
573 Col
= _grid
.GridCellAttr_Col
574 Merged
= _grid
.GridCellAttr_Merged
575 def _setOORInfo(*args
, **kwargs
):
576 """_setOORInfo(self, PyObject _self)"""
577 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
579 def __init__(self
, *args
, **kwargs
):
580 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
581 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
582 self
.this
= newobj
.this
585 self
._setOORInfo
(self
)
587 def Clone(*args
, **kwargs
):
588 """Clone(self) -> GridCellAttr"""
589 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
591 def MergeWith(*args
, **kwargs
):
592 """MergeWith(self, GridCellAttr mergefrom)"""
593 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
595 def IncRef(*args
, **kwargs
):
597 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
599 def DecRef(*args
, **kwargs
):
601 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
603 def SetTextColour(*args
, **kwargs
):
604 """SetTextColour(self, Colour colText)"""
605 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
607 def SetBackgroundColour(*args
, **kwargs
):
608 """SetBackgroundColour(self, Colour colBack)"""
609 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
611 def SetFont(*args
, **kwargs
):
612 """SetFont(self, Font font)"""
613 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
615 def SetAlignment(*args
, **kwargs
):
616 """SetAlignment(self, int hAlign, int vAlign)"""
617 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
619 def SetSize(*args
, **kwargs
):
620 """SetSize(self, int num_rows, int num_cols)"""
621 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
623 def SetOverflow(*args
, **kwargs
):
624 """SetOverflow(self, bool allow=True)"""
625 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
627 def SetReadOnly(*args
, **kwargs
):
628 """SetReadOnly(self, bool isReadOnly=True)"""
629 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
631 def SetRenderer(*args
, **kwargs
):
632 """SetRenderer(self, GridCellRenderer renderer)"""
633 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
635 def SetEditor(*args
, **kwargs
):
636 """SetEditor(self, GridCellEditor editor)"""
637 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
639 def SetKind(*args
, **kwargs
):
640 """SetKind(self, int kind)"""
641 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
643 def HasTextColour(*args
, **kwargs
):
644 """HasTextColour(self) -> bool"""
645 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
647 def HasBackgroundColour(*args
, **kwargs
):
648 """HasBackgroundColour(self) -> bool"""
649 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
651 def HasFont(*args
, **kwargs
):
652 """HasFont(self) -> bool"""
653 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
655 def HasAlignment(*args
, **kwargs
):
656 """HasAlignment(self) -> bool"""
657 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
659 def HasRenderer(*args
, **kwargs
):
660 """HasRenderer(self) -> bool"""
661 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
663 def HasEditor(*args
, **kwargs
):
664 """HasEditor(self) -> bool"""
665 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
667 def HasReadWriteMode(*args
, **kwargs
):
668 """HasReadWriteMode(self) -> bool"""
669 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
671 def HasOverflowMode(*args
, **kwargs
):
672 """HasOverflowMode(self) -> bool"""
673 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
675 def GetTextColour(*args
, **kwargs
):
676 """GetTextColour(self) -> Colour"""
677 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
679 def GetBackgroundColour(*args
, **kwargs
):
680 """GetBackgroundColour(self) -> Colour"""
681 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
683 def GetFont(*args
, **kwargs
):
684 """GetFont(self) -> Font"""
685 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
687 def GetAlignment(*args
, **kwargs
):
688 """GetAlignment() -> (hAlign, vAlign)"""
689 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
691 def GetSize(*args
, **kwargs
):
692 """GetSize() -> (num_rows, num_cols)"""
693 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
695 def GetOverflow(*args
, **kwargs
):
696 """GetOverflow(self) -> bool"""
697 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
699 def GetRenderer(*args
, **kwargs
):
700 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
701 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
703 def GetEditor(*args
, **kwargs
):
704 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
705 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
707 def IsReadOnly(*args
, **kwargs
):
708 """IsReadOnly(self) -> bool"""
709 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
711 def SetDefAttr(*args
, **kwargs
):
712 """SetDefAttr(self, GridCellAttr defAttr)"""
713 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
716 class GridCellAttrPtr(GridCellAttr
):
717 def __init__(self
, this
):
719 if not hasattr(self
,"thisown"): self
.thisown
= 0
720 self
.__class
__ = GridCellAttr
721 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
723 class GridCellAttrProvider(object):
725 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
726 def __init__(self
, *args
, **kwargs
):
727 """__init__(self) -> GridCellAttrProvider"""
728 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
729 self
.this
= newobj
.this
732 self
._setOORInfo
(self
)
734 def _setOORInfo(*args
, **kwargs
):
735 """_setOORInfo(self, PyObject _self)"""
736 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
738 def GetAttr(*args
, **kwargs
):
739 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
740 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
742 def SetAttr(*args
, **kwargs
):
743 """SetAttr(self, GridCellAttr attr, int row, int col)"""
744 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
746 def SetRowAttr(*args
, **kwargs
):
747 """SetRowAttr(self, GridCellAttr attr, int row)"""
748 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
750 def SetColAttr(*args
, **kwargs
):
751 """SetColAttr(self, GridCellAttr attr, int col)"""
752 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
754 def UpdateAttrRows(*args
, **kwargs
):
755 """UpdateAttrRows(self, size_t pos, int numRows)"""
756 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
758 def UpdateAttrCols(*args
, **kwargs
):
759 """UpdateAttrCols(self, size_t pos, int numCols)"""
760 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
763 class GridCellAttrProviderPtr(GridCellAttrProvider
):
764 def __init__(self
, this
):
766 if not hasattr(self
,"thisown"): self
.thisown
= 0
767 self
.__class
__ = GridCellAttrProvider
768 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
770 class PyGridCellAttrProvider(GridCellAttrProvider
):
772 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
773 def __init__(self
, *args
, **kwargs
):
774 """__init__(self) -> PyGridCellAttrProvider"""
775 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
776 self
.this
= newobj
.this
779 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
781 def _setCallbackInfo(*args
, **kwargs
):
782 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
783 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
785 def base_GetAttr(*args
, **kwargs
):
786 """base_GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
787 return _grid
.PyGridCellAttrProvider_base_GetAttr(*args
, **kwargs
)
789 def base_SetAttr(*args
, **kwargs
):
790 """base_SetAttr(self, GridCellAttr attr, int row, int col)"""
791 return _grid
.PyGridCellAttrProvider_base_SetAttr(*args
, **kwargs
)
793 def base_SetRowAttr(*args
, **kwargs
):
794 """base_SetRowAttr(self, GridCellAttr attr, int row)"""
795 return _grid
.PyGridCellAttrProvider_base_SetRowAttr(*args
, **kwargs
)
797 def base_SetColAttr(*args
, **kwargs
):
798 """base_SetColAttr(self, GridCellAttr attr, int col)"""
799 return _grid
.PyGridCellAttrProvider_base_SetColAttr(*args
, **kwargs
)
802 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
803 def __init__(self
, this
):
805 if not hasattr(self
,"thisown"): self
.thisown
= 0
806 self
.__class
__ = PyGridCellAttrProvider
807 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
809 class GridTableBase(_core
.Object
):
810 def __init__(self
): raise RuntimeError, "No constructor defined"
812 return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
813 def _setOORInfo(*args
, **kwargs
):
814 """_setOORInfo(self, PyObject _self)"""
815 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
817 def SetAttrProvider(*args
, **kwargs
):
818 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
819 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
821 def GetAttrProvider(*args
, **kwargs
):
822 """GetAttrProvider(self) -> GridCellAttrProvider"""
823 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
825 def SetView(*args
, **kwargs
):
826 """SetView(self, Grid grid)"""
827 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
829 def GetView(*args
, **kwargs
):
830 """GetView(self) -> Grid"""
831 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
833 def GetNumberRows(*args
, **kwargs
):
834 """GetNumberRows(self) -> int"""
835 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
837 def GetNumberCols(*args
, **kwargs
):
838 """GetNumberCols(self) -> int"""
839 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
841 def IsEmptyCell(*args
, **kwargs
):
842 """IsEmptyCell(self, int row, int col) -> bool"""
843 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
845 def GetValue(*args
, **kwargs
):
846 """GetValue(self, int row, int col) -> String"""
847 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
849 def SetValue(*args
, **kwargs
):
850 """SetValue(self, int row, int col, String value)"""
851 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
853 def GetTypeName(*args
, **kwargs
):
854 """GetTypeName(self, int row, int col) -> String"""
855 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
857 def CanGetValueAs(*args
, **kwargs
):
858 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
859 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
861 def CanSetValueAs(*args
, **kwargs
):
862 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
863 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
865 def GetValueAsLong(*args
, **kwargs
):
866 """GetValueAsLong(self, int row, int col) -> long"""
867 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
869 def GetValueAsDouble(*args
, **kwargs
):
870 """GetValueAsDouble(self, int row, int col) -> double"""
871 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
873 def GetValueAsBool(*args
, **kwargs
):
874 """GetValueAsBool(self, int row, int col) -> bool"""
875 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
877 def SetValueAsLong(*args
, **kwargs
):
878 """SetValueAsLong(self, int row, int col, long value)"""
879 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
881 def SetValueAsDouble(*args
, **kwargs
):
882 """SetValueAsDouble(self, int row, int col, double value)"""
883 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
885 def SetValueAsBool(*args
, **kwargs
):
886 """SetValueAsBool(self, int row, int col, bool value)"""
887 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
889 def Clear(*args
, **kwargs
):
891 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
893 def InsertRows(*args
, **kwargs
):
894 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
895 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
897 def AppendRows(*args
, **kwargs
):
898 """AppendRows(self, size_t numRows=1) -> bool"""
899 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
901 def DeleteRows(*args
, **kwargs
):
902 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
903 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
905 def InsertCols(*args
, **kwargs
):
906 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
907 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
909 def AppendCols(*args
, **kwargs
):
910 """AppendCols(self, size_t numCols=1) -> bool"""
911 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
913 def DeleteCols(*args
, **kwargs
):
914 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
915 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
917 def GetRowLabelValue(*args
, **kwargs
):
918 """GetRowLabelValue(self, int row) -> String"""
919 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
921 def GetColLabelValue(*args
, **kwargs
):
922 """GetColLabelValue(self, int col) -> String"""
923 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
925 def SetRowLabelValue(*args
, **kwargs
):
926 """SetRowLabelValue(self, int row, String value)"""
927 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
929 def SetColLabelValue(*args
, **kwargs
):
930 """SetColLabelValue(self, int col, String value)"""
931 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
933 def CanHaveAttributes(*args
, **kwargs
):
934 """CanHaveAttributes(self) -> bool"""
935 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
937 def GetAttr(*args
, **kwargs
):
938 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
939 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
941 def SetAttr(*args
, **kwargs
):
942 """SetAttr(self, GridCellAttr attr, int row, int col)"""
943 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
945 def SetRowAttr(*args
, **kwargs
):
946 """SetRowAttr(self, GridCellAttr attr, int row)"""
947 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
949 def SetColAttr(*args
, **kwargs
):
950 """SetColAttr(self, GridCellAttr attr, int col)"""
951 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
954 class GridTableBasePtr(GridTableBase
):
955 def __init__(self
, this
):
957 if not hasattr(self
,"thisown"): self
.thisown
= 0
958 self
.__class
__ = GridTableBase
959 _grid
.GridTableBase_swigregister(GridTableBasePtr
)
961 class PyGridTableBase(GridTableBase
):
963 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
964 def __init__(self
, *args
, **kwargs
):
965 """__init__(self) -> PyGridTableBase"""
966 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
967 self
.this
= newobj
.this
970 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
972 def _setCallbackInfo(*args
, **kwargs
):
973 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
974 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
976 def Destroy(*args
, **kwargs
):
980 Deletes the C++ object this Python object is a proxy for.
982 return _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
984 def base_GetTypeName(*args
, **kwargs
):
985 """base_GetTypeName(self, int row, int col) -> String"""
986 return _grid
.PyGridTableBase_base_GetTypeName(*args
, **kwargs
)
988 def base_CanGetValueAs(*args
, **kwargs
):
989 """base_CanGetValueAs(self, int row, int col, String typeName) -> bool"""
990 return _grid
.PyGridTableBase_base_CanGetValueAs(*args
, **kwargs
)
992 def base_CanSetValueAs(*args
, **kwargs
):
993 """base_CanSetValueAs(self, int row, int col, String typeName) -> bool"""
994 return _grid
.PyGridTableBase_base_CanSetValueAs(*args
, **kwargs
)
996 def base_Clear(*args
, **kwargs
):
997 """base_Clear(self)"""
998 return _grid
.PyGridTableBase_base_Clear(*args
, **kwargs
)
1000 def base_InsertRows(*args
, **kwargs
):
1001 """base_InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1002 return _grid
.PyGridTableBase_base_InsertRows(*args
, **kwargs
)
1004 def base_AppendRows(*args
, **kwargs
):
1005 """base_AppendRows(self, size_t numRows=1) -> bool"""
1006 return _grid
.PyGridTableBase_base_AppendRows(*args
, **kwargs
)
1008 def base_DeleteRows(*args
, **kwargs
):
1009 """base_DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1010 return _grid
.PyGridTableBase_base_DeleteRows(*args
, **kwargs
)
1012 def base_InsertCols(*args
, **kwargs
):
1013 """base_InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1014 return _grid
.PyGridTableBase_base_InsertCols(*args
, **kwargs
)
1016 def base_AppendCols(*args
, **kwargs
):
1017 """base_AppendCols(self, size_t numCols=1) -> bool"""
1018 return _grid
.PyGridTableBase_base_AppendCols(*args
, **kwargs
)
1020 def base_DeleteCols(*args
, **kwargs
):
1021 """base_DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1022 return _grid
.PyGridTableBase_base_DeleteCols(*args
, **kwargs
)
1024 def base_GetRowLabelValue(*args
, **kwargs
):
1025 """base_GetRowLabelValue(self, int row) -> String"""
1026 return _grid
.PyGridTableBase_base_GetRowLabelValue(*args
, **kwargs
)
1028 def base_GetColLabelValue(*args
, **kwargs
):
1029 """base_GetColLabelValue(self, int col) -> String"""
1030 return _grid
.PyGridTableBase_base_GetColLabelValue(*args
, **kwargs
)
1032 def base_SetRowLabelValue(*args
, **kwargs
):
1033 """base_SetRowLabelValue(self, int row, String value)"""
1034 return _grid
.PyGridTableBase_base_SetRowLabelValue(*args
, **kwargs
)
1036 def base_SetColLabelValue(*args
, **kwargs
):
1037 """base_SetColLabelValue(self, int col, String value)"""
1038 return _grid
.PyGridTableBase_base_SetColLabelValue(*args
, **kwargs
)
1040 def base_CanHaveAttributes(*args
, **kwargs
):
1041 """base_CanHaveAttributes(self) -> bool"""
1042 return _grid
.PyGridTableBase_base_CanHaveAttributes(*args
, **kwargs
)
1044 def base_GetAttr(*args
, **kwargs
):
1045 """base_GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
1046 return _grid
.PyGridTableBase_base_GetAttr(*args
, **kwargs
)
1048 def base_SetAttr(*args
, **kwargs
):
1049 """base_SetAttr(self, GridCellAttr attr, int row, int col)"""
1050 return _grid
.PyGridTableBase_base_SetAttr(*args
, **kwargs
)
1052 def base_SetRowAttr(*args
, **kwargs
):
1053 """base_SetRowAttr(self, GridCellAttr attr, int row)"""
1054 return _grid
.PyGridTableBase_base_SetRowAttr(*args
, **kwargs
)
1056 def base_SetColAttr(*args
, **kwargs
):
1057 """base_SetColAttr(self, GridCellAttr attr, int col)"""
1058 return _grid
.PyGridTableBase_base_SetColAttr(*args
, **kwargs
)
1061 class PyGridTableBasePtr(PyGridTableBase
):
1062 def __init__(self
, this
):
1064 if not hasattr(self
,"thisown"): self
.thisown
= 0
1065 self
.__class
__ = PyGridTableBase
1066 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1068 class GridStringTable(GridTableBase
):
1070 return "<%s.%s; proxy of C++ wxGridStringTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1071 def __init__(self
, *args
, **kwargs
):
1072 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1073 newobj
= _grid
.new_GridStringTable(*args
, **kwargs
)
1074 self
.this
= newobj
.this
1077 self
._setOORInfo
(self
)
1080 class GridStringTablePtr(GridStringTable
):
1081 def __init__(self
, this
):
1083 if not hasattr(self
,"thisown"): self
.thisown
= 0
1084 self
.__class
__ = GridStringTable
1085 _grid
.GridStringTable_swigregister(GridStringTablePtr
)
1087 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1088 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1089 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1090 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1091 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1092 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1093 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1094 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1095 class GridTableMessage(object):
1097 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1098 def __init__(self
, *args
, **kwargs
):
1099 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1100 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1101 self
.this
= newobj
.this
1104 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1107 if self
.thisown
: destroy(self
)
1110 def SetTableObject(*args
, **kwargs
):
1111 """SetTableObject(self, GridTableBase table)"""
1112 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1114 def GetTableObject(*args
, **kwargs
):
1115 """GetTableObject(self) -> GridTableBase"""
1116 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1118 def SetId(*args
, **kwargs
):
1119 """SetId(self, int id)"""
1120 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1122 def GetId(*args
, **kwargs
):
1123 """GetId(self) -> int"""
1124 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1126 def SetCommandInt(*args
, **kwargs
):
1127 """SetCommandInt(self, int comInt1)"""
1128 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1130 def GetCommandInt(*args
, **kwargs
):
1131 """GetCommandInt(self) -> int"""
1132 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1134 def SetCommandInt2(*args
, **kwargs
):
1135 """SetCommandInt2(self, int comInt2)"""
1136 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1138 def GetCommandInt2(*args
, **kwargs
):
1139 """GetCommandInt2(self) -> int"""
1140 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1143 class GridTableMessagePtr(GridTableMessage
):
1144 def __init__(self
, this
):
1146 if not hasattr(self
,"thisown"): self
.thisown
= 0
1147 self
.__class
__ = GridTableMessage
1148 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1150 class GridCellCoords(object):
1152 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1153 def __init__(self
, *args
, **kwargs
):
1154 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1155 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1156 self
.this
= newobj
.this
1159 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1162 if self
.thisown
: destroy(self
)
1165 def GetRow(*args
, **kwargs
):
1166 """GetRow(self) -> int"""
1167 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1169 def SetRow(*args
, **kwargs
):
1170 """SetRow(self, int n)"""
1171 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1173 def GetCol(*args
, **kwargs
):
1174 """GetCol(self) -> int"""
1175 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1177 def SetCol(*args
, **kwargs
):
1178 """SetCol(self, int n)"""
1179 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1181 def Set(*args
, **kwargs
):
1182 """Set(self, int row, int col)"""
1183 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1185 def __eq__(*args
, **kwargs
):
1186 """__eq__(self, GridCellCoords other) -> bool"""
1187 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1189 def __ne__(*args
, **kwargs
):
1190 """__ne__(self, GridCellCoords other) -> bool"""
1191 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1193 def Get(*args
, **kwargs
):
1194 """Get(self) -> PyObject"""
1195 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1197 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1198 def __str__(self
): return str(self
.Get())
1199 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1200 def __len__(self
): return len(self
.Get())
1201 def __getitem__(self
, index
): return self
.asTuple()[index
]
1202 def __setitem__(self
, index
, val
):
1203 if index
== 0: self
.SetRow(val
)
1204 elif index
== 1: self
.SetCol(val
)
1205 else: raise IndexError
1208 class GridCellCoordsPtr(GridCellCoords
):
1209 def __init__(self
, this
):
1211 if not hasattr(self
,"thisown"): self
.thisown
= 0
1212 self
.__class
__ = GridCellCoords
1213 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1215 class Grid(_windows
.ScrolledWindow
):
1217 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1218 def __init__(self
, *args
, **kwargs
):
1220 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1221 long style=WANTS_CHARS,
1222 String name=PanelNameStr) -> Grid
1224 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1225 self
.this
= newobj
.this
1228 self
._setOORInfo
(self
)
1230 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1231 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1232 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1233 SelectCells
= wxGridSelectCells
1234 SelectRows
= wxGridSelectRows
1235 SelectColumns
= wxGridSelectColumns
1237 def CreateGrid(*args
, **kwargs
):
1238 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1239 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1241 def SetSelectionMode(*args
, **kwargs
):
1242 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1243 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1245 def GetSelectionMode(*args
, **kwargs
):
1246 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1247 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1249 def GetNumberRows(*args
, **kwargs
):
1250 """GetNumberRows(self) -> int"""
1251 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1253 def GetNumberCols(*args
, **kwargs
):
1254 """GetNumberCols(self) -> int"""
1255 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1257 def ProcessTableMessage(*args
, **kwargs
):
1258 """ProcessTableMessage(self, GridTableMessage ??) -> bool"""
1259 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1261 def GetTable(*args
, **kwargs
):
1262 """GetTable(self) -> GridTableBase"""
1263 return _grid
.Grid_GetTable(*args
, **kwargs
)
1265 def SetTable(*args
, **kwargs
):
1266 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1267 return _grid
.Grid_SetTable(*args
, **kwargs
)
1269 def ClearGrid(*args
, **kwargs
):
1270 """ClearGrid(self)"""
1271 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1273 def InsertRows(*args
, **kwargs
):
1274 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1275 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1277 def AppendRows(*args
, **kwargs
):
1278 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1279 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1281 def DeleteRows(*args
, **kwargs
):
1282 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1283 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1285 def InsertCols(*args
, **kwargs
):
1286 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1287 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1289 def AppendCols(*args
, **kwargs
):
1290 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1291 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1293 def DeleteCols(*args
, **kwargs
):
1294 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1295 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1297 def DrawCellHighlight(*args
, **kwargs
):
1298 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1299 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1301 def DrawTextRectangle(*args
, **kwargs
):
1303 DrawTextRectangle(self, DC dc, String ??, Rect ??, int horizontalAlignment=LEFT,
1304 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1306 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1308 def GetTextBoxSize(*args
, **kwargs
):
1309 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1310 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1312 def BeginBatch(*args
, **kwargs
):
1313 """BeginBatch(self)"""
1314 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1316 def EndBatch(*args
, **kwargs
):
1317 """EndBatch(self)"""
1318 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1320 def GetBatchCount(*args
, **kwargs
):
1321 """GetBatchCount(self) -> int"""
1322 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1324 def ForceRefresh(*args
, **kwargs
):
1325 """ForceRefresh(self)"""
1326 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1328 def IsEditable(*args
, **kwargs
):
1329 """IsEditable(self) -> bool"""
1330 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1332 def EnableEditing(*args
, **kwargs
):
1333 """EnableEditing(self, bool edit)"""
1334 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1336 def EnableCellEditControl(*args
, **kwargs
):
1337 """EnableCellEditControl(self, bool enable=True)"""
1338 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1340 def DisableCellEditControl(*args
, **kwargs
):
1341 """DisableCellEditControl(self)"""
1342 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1344 def CanEnableCellControl(*args
, **kwargs
):
1345 """CanEnableCellControl(self) -> bool"""
1346 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1348 def IsCellEditControlEnabled(*args
, **kwargs
):
1349 """IsCellEditControlEnabled(self) -> bool"""
1350 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1352 def IsCellEditControlShown(*args
, **kwargs
):
1353 """IsCellEditControlShown(self) -> bool"""
1354 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1356 def IsCurrentCellReadOnly(*args
, **kwargs
):
1357 """IsCurrentCellReadOnly(self) -> bool"""
1358 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1360 def ShowCellEditControl(*args
, **kwargs
):
1361 """ShowCellEditControl(self)"""
1362 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1364 def HideCellEditControl(*args
, **kwargs
):
1365 """HideCellEditControl(self)"""
1366 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1368 def SaveEditControlValue(*args
, **kwargs
):
1369 """SaveEditControlValue(self)"""
1370 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1372 def XYToCell(*args
, **kwargs
):
1373 """XYToCell(self, int x, int y) -> GridCellCoords"""
1374 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1376 def YToRow(*args
, **kwargs
):
1377 """YToRow(self, int y) -> int"""
1378 return _grid
.Grid_YToRow(*args
, **kwargs
)
1380 def XToCol(*args
, **kwargs
):
1381 """XToCol(self, int x) -> int"""
1382 return _grid
.Grid_XToCol(*args
, **kwargs
)
1384 def YToEdgeOfRow(*args
, **kwargs
):
1385 """YToEdgeOfRow(self, int y) -> int"""
1386 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1388 def XToEdgeOfCol(*args
, **kwargs
):
1389 """XToEdgeOfCol(self, int x) -> int"""
1390 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1392 def CellToRect(*args
, **kwargs
):
1393 """CellToRect(self, int row, int col) -> Rect"""
1394 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1396 def GetGridCursorRow(*args
, **kwargs
):
1397 """GetGridCursorRow(self) -> int"""
1398 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1400 def GetGridCursorCol(*args
, **kwargs
):
1401 """GetGridCursorCol(self) -> int"""
1402 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1404 def IsVisible(*args
, **kwargs
):
1405 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1406 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1408 def MakeCellVisible(*args
, **kwargs
):
1409 """MakeCellVisible(self, int row, int col)"""
1410 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1412 def SetGridCursor(*args
, **kwargs
):
1413 """SetGridCursor(self, int row, int col)"""
1414 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1416 def MoveCursorUp(*args
, **kwargs
):
1417 """MoveCursorUp(self, bool expandSelection) -> bool"""
1418 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1420 def MoveCursorDown(*args
, **kwargs
):
1421 """MoveCursorDown(self, bool expandSelection) -> bool"""
1422 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1424 def MoveCursorLeft(*args
, **kwargs
):
1425 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1426 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1428 def MoveCursorRight(*args
, **kwargs
):
1429 """MoveCursorRight(self, bool expandSelection) -> bool"""
1430 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1432 def MovePageDown(*args
, **kwargs
):
1433 """MovePageDown(self) -> bool"""
1434 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1436 def MovePageUp(*args
, **kwargs
):
1437 """MovePageUp(self) -> bool"""
1438 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1440 def MoveCursorUpBlock(*args
, **kwargs
):
1441 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1442 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1444 def MoveCursorDownBlock(*args
, **kwargs
):
1445 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1446 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1448 def MoveCursorLeftBlock(*args
, **kwargs
):
1449 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1450 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1452 def MoveCursorRightBlock(*args
, **kwargs
):
1453 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1454 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1456 def GetDefaultRowLabelSize(*args
, **kwargs
):
1457 """GetDefaultRowLabelSize(self) -> int"""
1458 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1460 def GetRowLabelSize(*args
, **kwargs
):
1461 """GetRowLabelSize(self) -> int"""
1462 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1464 def GetDefaultColLabelSize(*args
, **kwargs
):
1465 """GetDefaultColLabelSize(self) -> int"""
1466 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1468 def GetColLabelSize(*args
, **kwargs
):
1469 """GetColLabelSize(self) -> int"""
1470 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1472 def GetLabelBackgroundColour(*args
, **kwargs
):
1473 """GetLabelBackgroundColour(self) -> Colour"""
1474 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1476 def GetLabelTextColour(*args
, **kwargs
):
1477 """GetLabelTextColour(self) -> Colour"""
1478 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1480 def GetLabelFont(*args
, **kwargs
):
1481 """GetLabelFont(self) -> Font"""
1482 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1484 def GetRowLabelAlignment(*args
, **kwargs
):
1485 """GetRowLabelAlignment() -> (horiz, vert)"""
1486 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1488 def GetColLabelAlignment(*args
, **kwargs
):
1489 """GetColLabelAlignment() -> (horiz, vert)"""
1490 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1492 def GetColLabelTextOrientation(*args
, **kwargs
):
1493 """GetColLabelTextOrientation(self) -> int"""
1494 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1496 def GetRowLabelValue(*args
, **kwargs
):
1497 """GetRowLabelValue(self, int row) -> String"""
1498 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1500 def GetColLabelValue(*args
, **kwargs
):
1501 """GetColLabelValue(self, int col) -> String"""
1502 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1504 def GetGridLineColour(*args
, **kwargs
):
1505 """GetGridLineColour(self) -> Colour"""
1506 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1508 def GetCellHighlightColour(*args
, **kwargs
):
1509 """GetCellHighlightColour(self) -> Colour"""
1510 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1512 def GetCellHighlightPenWidth(*args
, **kwargs
):
1513 """GetCellHighlightPenWidth(self) -> int"""
1514 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1516 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1517 """GetCellHighlightROPenWidth(self) -> int"""
1518 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1520 def SetRowLabelSize(*args
, **kwargs
):
1521 """SetRowLabelSize(self, int width)"""
1522 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1524 def SetColLabelSize(*args
, **kwargs
):
1525 """SetColLabelSize(self, int height)"""
1526 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1528 def SetLabelBackgroundColour(*args
, **kwargs
):
1529 """SetLabelBackgroundColour(self, Colour ??)"""
1530 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1532 def SetLabelTextColour(*args
, **kwargs
):
1533 """SetLabelTextColour(self, Colour ??)"""
1534 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1536 def SetLabelFont(*args
, **kwargs
):
1537 """SetLabelFont(self, Font ??)"""
1538 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1540 def SetRowLabelAlignment(*args
, **kwargs
):
1541 """SetRowLabelAlignment(self, int horiz, int vert)"""
1542 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1544 def SetColLabelAlignment(*args
, **kwargs
):
1545 """SetColLabelAlignment(self, int horiz, int vert)"""
1546 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1548 def SetColLabelTextOrientation(*args
, **kwargs
):
1549 """SetColLabelTextOrientation(self, int textOrientation)"""
1550 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1552 def SetRowLabelValue(*args
, **kwargs
):
1553 """SetRowLabelValue(self, int row, String ??)"""
1554 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1556 def SetColLabelValue(*args
, **kwargs
):
1557 """SetColLabelValue(self, int col, String ??)"""
1558 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1560 def SetGridLineColour(*args
, **kwargs
):
1561 """SetGridLineColour(self, Colour ??)"""
1562 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1564 def SetCellHighlightColour(*args
, **kwargs
):
1565 """SetCellHighlightColour(self, Colour ??)"""
1566 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1568 def SetCellHighlightPenWidth(*args
, **kwargs
):
1569 """SetCellHighlightPenWidth(self, int width)"""
1570 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1572 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1573 """SetCellHighlightROPenWidth(self, int width)"""
1574 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1576 def EnableDragRowSize(*args
, **kwargs
):
1577 """EnableDragRowSize(self, bool enable=True)"""
1578 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1580 def DisableDragRowSize(*args
, **kwargs
):
1581 """DisableDragRowSize(self)"""
1582 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1584 def CanDragRowSize(*args
, **kwargs
):
1585 """CanDragRowSize(self) -> bool"""
1586 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1588 def EnableDragColSize(*args
, **kwargs
):
1589 """EnableDragColSize(self, bool enable=True)"""
1590 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1592 def DisableDragColSize(*args
, **kwargs
):
1593 """DisableDragColSize(self)"""
1594 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1596 def CanDragColSize(*args
, **kwargs
):
1597 """CanDragColSize(self) -> bool"""
1598 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1600 def EnableDragGridSize(*args
, **kwargs
):
1601 """EnableDragGridSize(self, bool enable=True)"""
1602 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1604 def DisableDragGridSize(*args
, **kwargs
):
1605 """DisableDragGridSize(self)"""
1606 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1608 def CanDragGridSize(*args
, **kwargs
):
1609 """CanDragGridSize(self) -> bool"""
1610 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1612 def SetAttr(*args
, **kwargs
):
1613 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1614 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1616 def SetRowAttr(*args
, **kwargs
):
1617 """SetRowAttr(self, int row, GridCellAttr attr)"""
1618 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1620 def SetColAttr(*args
, **kwargs
):
1621 """SetColAttr(self, int col, GridCellAttr attr)"""
1622 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1624 def SetColFormatBool(*args
, **kwargs
):
1625 """SetColFormatBool(self, int col)"""
1626 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1628 def SetColFormatNumber(*args
, **kwargs
):
1629 """SetColFormatNumber(self, int col)"""
1630 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1632 def SetColFormatFloat(*args
, **kwargs
):
1633 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1634 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1636 def SetColFormatCustom(*args
, **kwargs
):
1637 """SetColFormatCustom(self, int col, String typeName)"""
1638 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1640 def EnableGridLines(*args
, **kwargs
):
1641 """EnableGridLines(self, bool enable=True)"""
1642 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1644 def GridLinesEnabled(*args
, **kwargs
):
1645 """GridLinesEnabled(self) -> bool"""
1646 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1648 def GetDefaultRowSize(*args
, **kwargs
):
1649 """GetDefaultRowSize(self) -> int"""
1650 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1652 def GetRowSize(*args
, **kwargs
):
1653 """GetRowSize(self, int row) -> int"""
1654 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1656 def GetDefaultColSize(*args
, **kwargs
):
1657 """GetDefaultColSize(self) -> int"""
1658 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1660 def GetColSize(*args
, **kwargs
):
1661 """GetColSize(self, int col) -> int"""
1662 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1664 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1665 """GetDefaultCellBackgroundColour(self) -> Colour"""
1666 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1668 def GetCellBackgroundColour(*args
, **kwargs
):
1669 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1670 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1672 def GetDefaultCellTextColour(*args
, **kwargs
):
1673 """GetDefaultCellTextColour(self) -> Colour"""
1674 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1676 def GetCellTextColour(*args
, **kwargs
):
1677 """GetCellTextColour(self, int row, int col) -> Colour"""
1678 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1680 def GetDefaultCellFont(*args
, **kwargs
):
1681 """GetDefaultCellFont(self) -> Font"""
1682 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1684 def GetCellFont(*args
, **kwargs
):
1685 """GetCellFont(self, int row, int col) -> Font"""
1686 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1688 def GetDefaultCellAlignment(*args
, **kwargs
):
1689 """GetDefaultCellAlignment() -> (horiz, vert)"""
1690 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1692 def GetCellAlignment(*args
, **kwargs
):
1693 """GetCellAlignment() -> (horiz, vert)"""
1694 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1696 def GetDefaultCellOverflow(*args
, **kwargs
):
1697 """GetDefaultCellOverflow(self) -> bool"""
1698 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1700 def GetCellOverflow(*args
, **kwargs
):
1701 """GetCellOverflow(self, int row, int col) -> bool"""
1702 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1704 def GetCellSize(*args
, **kwargs
):
1705 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1706 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1708 def SetDefaultRowSize(*args
, **kwargs
):
1709 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1710 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1712 def SetRowSize(*args
, **kwargs
):
1713 """SetRowSize(self, int row, int height)"""
1714 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1716 def SetDefaultColSize(*args
, **kwargs
):
1717 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1718 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1720 def SetColSize(*args
, **kwargs
):
1721 """SetColSize(self, int col, int width)"""
1722 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1724 def AutoSizeColumn(*args
, **kwargs
):
1725 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1726 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1728 def AutoSizeRow(*args
, **kwargs
):
1729 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1730 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1732 def AutoSizeColumns(*args
, **kwargs
):
1733 """AutoSizeColumns(self, bool setAsMin=True)"""
1734 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1736 def AutoSizeRows(*args
, **kwargs
):
1737 """AutoSizeRows(self, bool setAsMin=True)"""
1738 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1740 def AutoSize(*args
, **kwargs
):
1741 """AutoSize(self)"""
1742 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1744 def AutoSizeRowLabelSize(*args
, **kwargs
):
1745 """AutoSizeRowLabelSize(self, int row)"""
1746 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1748 def AutoSizeColLabelSize(*args
, **kwargs
):
1749 """AutoSizeColLabelSize(self, int col)"""
1750 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1752 def SetColMinimalWidth(*args
, **kwargs
):
1753 """SetColMinimalWidth(self, int col, int width)"""
1754 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1756 def SetRowMinimalHeight(*args
, **kwargs
):
1757 """SetRowMinimalHeight(self, int row, int width)"""
1758 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1760 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1761 """SetColMinimalAcceptableWidth(self, int width)"""
1762 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1764 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1765 """SetRowMinimalAcceptableHeight(self, int width)"""
1766 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1768 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1769 """GetColMinimalAcceptableWidth(self) -> int"""
1770 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1772 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1773 """GetRowMinimalAcceptableHeight(self) -> int"""
1774 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1776 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1777 """SetDefaultCellBackgroundColour(self, Colour ??)"""
1778 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1780 def SetCellBackgroundColour(*args
, **kwargs
):
1781 """SetCellBackgroundColour(self, int row, int col, Colour ??)"""
1782 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1784 def SetDefaultCellTextColour(*args
, **kwargs
):
1785 """SetDefaultCellTextColour(self, Colour ??)"""
1786 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1788 def SetCellTextColour(*args
, **kwargs
):
1789 """SetCellTextColour(self, int row, int col, Colour ??)"""
1790 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1792 def SetDefaultCellFont(*args
, **kwargs
):
1793 """SetDefaultCellFont(self, Font ??)"""
1794 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1796 def SetCellFont(*args
, **kwargs
):
1797 """SetCellFont(self, int row, int col, Font ??)"""
1798 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1800 def SetDefaultCellAlignment(*args
, **kwargs
):
1801 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1802 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1804 def SetCellAlignment(*args
, **kwargs
):
1805 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1806 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1808 def SetDefaultCellOverflow(*args
, **kwargs
):
1809 """SetDefaultCellOverflow(self, bool allow)"""
1810 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1812 def SetCellOverflow(*args
, **kwargs
):
1813 """SetCellOverflow(self, int row, int col, bool allow)"""
1814 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1816 def SetCellSize(*args
, **kwargs
):
1817 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1818 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1820 def SetDefaultRenderer(*args
, **kwargs
):
1821 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1822 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1824 def SetCellRenderer(*args
, **kwargs
):
1825 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1826 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1828 def GetDefaultRenderer(*args
, **kwargs
):
1829 """GetDefaultRenderer(self) -> GridCellRenderer"""
1830 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1832 def GetCellRenderer(*args
, **kwargs
):
1833 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1834 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1836 def SetDefaultEditor(*args
, **kwargs
):
1837 """SetDefaultEditor(self, GridCellEditor editor)"""
1838 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1840 def SetCellEditor(*args
, **kwargs
):
1841 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1842 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1844 def GetDefaultEditor(*args
, **kwargs
):
1845 """GetDefaultEditor(self) -> GridCellEditor"""
1846 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1848 def GetCellEditor(*args
, **kwargs
):
1849 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1850 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1852 def GetCellValue(*args
, **kwargs
):
1853 """GetCellValue(self, int row, int col) -> String"""
1854 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1856 def SetCellValue(*args
, **kwargs
):
1857 """SetCellValue(self, int row, int col, String s)"""
1858 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1860 def IsReadOnly(*args
, **kwargs
):
1861 """IsReadOnly(self, int row, int col) -> bool"""
1862 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1864 def SetReadOnly(*args
, **kwargs
):
1865 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1866 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1868 def SelectRow(*args
, **kwargs
):
1869 """SelectRow(self, int row, bool addToSelected=False)"""
1870 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1872 def SelectCol(*args
, **kwargs
):
1873 """SelectCol(self, int col, bool addToSelected=False)"""
1874 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1876 def SelectBlock(*args
, **kwargs
):
1878 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1879 bool addToSelected=False)
1881 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1883 def SelectAll(*args
, **kwargs
):
1884 """SelectAll(self)"""
1885 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1887 def IsSelection(*args
, **kwargs
):
1888 """IsSelection(self) -> bool"""
1889 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1891 def ClearSelection(*args
, **kwargs
):
1892 """ClearSelection(self)"""
1893 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1895 def IsInSelection(*args
, **kwargs
):
1896 """IsInSelection(self, int row, int col) -> bool"""
1897 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1899 def GetSelectedCells(*args
, **kwargs
):
1900 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1901 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1903 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1904 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1905 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1907 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1908 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1909 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1911 def GetSelectedRows(*args
, **kwargs
):
1912 """GetSelectedRows(self) -> wxArrayInt"""
1913 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1915 def GetSelectedCols(*args
, **kwargs
):
1916 """GetSelectedCols(self) -> wxArrayInt"""
1917 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1919 def DeselectRow(*args
, **kwargs
):
1920 """DeselectRow(self, int row)"""
1921 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1923 def DeselectCol(*args
, **kwargs
):
1924 """DeselectCol(self, int col)"""
1925 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1927 def DeselectCell(*args
, **kwargs
):
1928 """DeselectCell(self, int row, int col)"""
1929 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1931 def BlockToDeviceRect(*args
, **kwargs
):
1932 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1933 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1935 def GetSelectionBackground(*args
, **kwargs
):
1936 """GetSelectionBackground(self) -> Colour"""
1937 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1939 def GetSelectionForeground(*args
, **kwargs
):
1940 """GetSelectionForeground(self) -> Colour"""
1941 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1943 def SetSelectionBackground(*args
, **kwargs
):
1944 """SetSelectionBackground(self, Colour c)"""
1945 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1947 def SetSelectionForeground(*args
, **kwargs
):
1948 """SetSelectionForeground(self, Colour c)"""
1949 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1951 def RegisterDataType(*args
, **kwargs
):
1952 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1953 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1955 def GetDefaultEditorForCell(*args
, **kwargs
):
1956 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1957 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1959 def GetDefaultRendererForCell(*args
, **kwargs
):
1960 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1961 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1963 def GetDefaultEditorForType(*args
, **kwargs
):
1964 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
1965 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1967 def GetDefaultRendererForType(*args
, **kwargs
):
1968 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
1969 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1971 def SetMargins(*args
, **kwargs
):
1972 """SetMargins(self, int extraWidth, int extraHeight)"""
1973 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1975 def GetGridWindow(*args
, **kwargs
):
1976 """GetGridWindow(self) -> Window"""
1977 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1979 def GetGridRowLabelWindow(*args
, **kwargs
):
1980 """GetGridRowLabelWindow(self) -> Window"""
1981 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1983 def GetGridColLabelWindow(*args
, **kwargs
):
1984 """GetGridColLabelWindow(self) -> Window"""
1985 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1987 def GetGridCornerLabelWindow(*args
, **kwargs
):
1988 """GetGridCornerLabelWindow(self) -> Window"""
1989 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1991 def GetClassDefaultAttributes(*args
, **kwargs
):
1993 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1995 Get the default attributes for this class. This is useful if you want
1996 to use the same font or colour in your own control as in a standard
1997 control -- which is a much better idea than hard coding specific
1998 colours or fonts which might look completely out of place on the
1999 user's system, especially if it uses themes.
2001 The variant parameter is only relevant under Mac currently and is
2002 ignore under other platforms. Under Mac, it will change the size of
2003 the returned font. See `wx.Window.SetWindowVariant` for more about
2006 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2008 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2010 class GridPtr(Grid
):
2011 def __init__(self
, this
):
2013 if not hasattr(self
,"thisown"): self
.thisown
= 0
2014 self
.__class
__ = Grid
2015 _grid
.Grid_swigregister(GridPtr
)
2017 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
2019 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2021 Get the default attributes for this class. This is useful if you want
2022 to use the same font or colour in your own control as in a standard
2023 control -- which is a much better idea than hard coding specific
2024 colours or fonts which might look completely out of place on the
2025 user's system, especially if it uses themes.
2027 The variant parameter is only relevant under Mac currently and is
2028 ignore under other platforms. Under Mac, it will change the size of
2029 the returned font. See `wx.Window.SetWindowVariant` for more about
2032 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2034 class GridEvent(_core
.NotifyEvent
):
2036 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2037 def __init__(self
, *args
, **kwargs
):
2039 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2040 int x=-1, int y=-1, bool sel=True, bool control=False,
2041 bool shift=False, bool alt=False,
2042 bool meta=False) -> GridEvent
2044 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2045 self
.this
= newobj
.this
2048 def GetRow(*args
, **kwargs
):
2049 """GetRow(self) -> int"""
2050 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2052 def GetCol(*args
, **kwargs
):
2053 """GetCol(self) -> int"""
2054 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2056 def GetPosition(*args
, **kwargs
):
2057 """GetPosition(self) -> Point"""
2058 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2060 def Selecting(*args
, **kwargs
):
2061 """Selecting(self) -> bool"""
2062 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2064 def ControlDown(*args
, **kwargs
):
2065 """ControlDown(self) -> bool"""
2066 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2068 def MetaDown(*args
, **kwargs
):
2069 """MetaDown(self) -> bool"""
2070 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2072 def ShiftDown(*args
, **kwargs
):
2073 """ShiftDown(self) -> bool"""
2074 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2076 def AltDown(*args
, **kwargs
):
2077 """AltDown(self) -> bool"""
2078 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2081 class GridEventPtr(GridEvent
):
2082 def __init__(self
, this
):
2084 if not hasattr(self
,"thisown"): self
.thisown
= 0
2085 self
.__class
__ = GridEvent
2086 _grid
.GridEvent_swigregister(GridEventPtr
)
2088 class GridSizeEvent(_core
.NotifyEvent
):
2090 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2091 def __init__(self
, *args
, **kwargs
):
2093 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2094 int x=-1, int y=-1, bool control=False, bool shift=False,
2095 bool alt=False, bool meta=False) -> GridSizeEvent
2097 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2098 self
.this
= newobj
.this
2101 def GetRowOrCol(*args
, **kwargs
):
2102 """GetRowOrCol(self) -> int"""
2103 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2105 def GetPosition(*args
, **kwargs
):
2106 """GetPosition(self) -> Point"""
2107 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2109 def ControlDown(*args
, **kwargs
):
2110 """ControlDown(self) -> bool"""
2111 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2113 def MetaDown(*args
, **kwargs
):
2114 """MetaDown(self) -> bool"""
2115 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2117 def ShiftDown(*args
, **kwargs
):
2118 """ShiftDown(self) -> bool"""
2119 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2121 def AltDown(*args
, **kwargs
):
2122 """AltDown(self) -> bool"""
2123 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2126 class GridSizeEventPtr(GridSizeEvent
):
2127 def __init__(self
, this
):
2129 if not hasattr(self
,"thisown"): self
.thisown
= 0
2130 self
.__class
__ = GridSizeEvent
2131 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2133 class GridRangeSelectEvent(_core
.NotifyEvent
):
2135 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2136 def __init__(self
, *args
, **kwargs
):
2138 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2139 GridCellCoords bottomRight, bool sel=True,
2140 bool control=False, bool shift=False,
2141 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2143 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2144 self
.this
= newobj
.this
2147 def GetTopLeftCoords(*args
, **kwargs
):
2148 """GetTopLeftCoords(self) -> GridCellCoords"""
2149 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2151 def GetBottomRightCoords(*args
, **kwargs
):
2152 """GetBottomRightCoords(self) -> GridCellCoords"""
2153 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2155 def GetTopRow(*args
, **kwargs
):
2156 """GetTopRow(self) -> int"""
2157 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2159 def GetBottomRow(*args
, **kwargs
):
2160 """GetBottomRow(self) -> int"""
2161 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2163 def GetLeftCol(*args
, **kwargs
):
2164 """GetLeftCol(self) -> int"""
2165 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2167 def GetRightCol(*args
, **kwargs
):
2168 """GetRightCol(self) -> int"""
2169 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2171 def Selecting(*args
, **kwargs
):
2172 """Selecting(self) -> bool"""
2173 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2175 def ControlDown(*args
, **kwargs
):
2176 """ControlDown(self) -> bool"""
2177 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2179 def MetaDown(*args
, **kwargs
):
2180 """MetaDown(self) -> bool"""
2181 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2183 def ShiftDown(*args
, **kwargs
):
2184 """ShiftDown(self) -> bool"""
2185 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2187 def AltDown(*args
, **kwargs
):
2188 """AltDown(self) -> bool"""
2189 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2192 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2193 def __init__(self
, this
):
2195 if not hasattr(self
,"thisown"): self
.thisown
= 0
2196 self
.__class
__ = GridRangeSelectEvent
2197 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2199 class GridEditorCreatedEvent(_core
.CommandEvent
):
2201 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2202 def __init__(self
, *args
, **kwargs
):
2204 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2205 Control ctrl) -> GridEditorCreatedEvent
2207 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2208 self
.this
= newobj
.this
2211 def GetRow(*args
, **kwargs
):
2212 """GetRow(self) -> int"""
2213 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2215 def GetCol(*args
, **kwargs
):
2216 """GetCol(self) -> int"""
2217 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2219 def GetControl(*args
, **kwargs
):
2220 """GetControl(self) -> Control"""
2221 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2223 def SetRow(*args
, **kwargs
):
2224 """SetRow(self, int row)"""
2225 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2227 def SetCol(*args
, **kwargs
):
2228 """SetCol(self, int col)"""
2229 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2231 def SetControl(*args
, **kwargs
):
2232 """SetControl(self, Control ctrl)"""
2233 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2236 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2237 def __init__(self
, this
):
2239 if not hasattr(self
,"thisown"): self
.thisown
= 0
2240 self
.__class
__ = GridEditorCreatedEvent
2241 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2243 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2244 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2245 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2246 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2247 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2248 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2249 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2250 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2251 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2252 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2253 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2254 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2255 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2256 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2257 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2258 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2259 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2260 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2261 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2262 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2263 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2264 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2265 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2266 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2267 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2268 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2269 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2270 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2271 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2272 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2273 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2274 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)