1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for implementing a spreadsheet-like control.
10 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if isinstance(value
, class_type
):
13 self
.__dict
__[name
] = value
.this
14 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
20 self
.__dict
__[name
] = value
22 raise AttributeError("You cannot add attributes to %s" % self
)
24 def _swig_setattr(self
,class_type
,name
,value
):
25 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
27 def _swig_getattr(self
,class_type
,name
):
28 method
= class_type
.__swig
_getmethods
__.get(name
,None)
29 if method
: return method(self
)
30 raise AttributeError,name
34 _object
= types
.ObjectType
36 except AttributeError:
42 def _swig_setattr_nondynamic_method(set):
43 def set_attr(self
,name
,value
):
44 if hasattr(self
,name
) or (name
in ("this", "thisown")):
47 raise AttributeError("You cannot add attributes to %s" % self
)
54 __docfilter__
= wx
.__DocFilter
(globals())
55 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
56 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
57 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
58 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
59 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
60 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
61 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
62 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
63 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
64 GRID_DEFAULT_NUMBER_ROWS
= _grid
.GRID_DEFAULT_NUMBER_ROWS
65 GRID_DEFAULT_NUMBER_COLS
= _grid
.GRID_DEFAULT_NUMBER_COLS
66 GRID_DEFAULT_ROW_HEIGHT
= _grid
.GRID_DEFAULT_ROW_HEIGHT
67 GRID_DEFAULT_COL_WIDTH
= _grid
.GRID_DEFAULT_COL_WIDTH
68 GRID_DEFAULT_COL_LABEL_HEIGHT
= _grid
.GRID_DEFAULT_COL_LABEL_HEIGHT
69 GRID_DEFAULT_ROW_LABEL_WIDTH
= _grid
.GRID_DEFAULT_ROW_LABEL_WIDTH
70 GRID_LABEL_EDGE_ZONE
= _grid
.GRID_LABEL_EDGE_ZONE
71 GRID_MIN_ROW_HEIGHT
= _grid
.GRID_MIN_ROW_HEIGHT
72 GRID_MIN_COL_WIDTH
= _grid
.GRID_MIN_COL_WIDTH
73 GRID_DEFAULT_SCROLLBAR_WIDTH
= _grid
.GRID_DEFAULT_SCROLLBAR_WIDTH
74 class GridCellRenderer(object):
75 """Proxy of C++ GridCellRenderer class"""
76 def __init__(self
): raise RuntimeError, "No constructor defined"
78 return "<%s.%s; proxy of C++ wxGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
79 def _setOORInfo(*args
, **kwargs
):
80 """_setOORInfo(self, PyObject _self)"""
81 return _grid
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
83 def SetParameters(*args
, **kwargs
):
84 """SetParameters(self, String params)"""
85 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
87 def IncRef(*args
, **kwargs
):
89 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
91 def DecRef(*args
, **kwargs
):
93 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
95 def Draw(*args
, **kwargs
):
97 Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
98 int col, bool isSelected)
100 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
102 def GetBestSize(*args
, **kwargs
):
103 """GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
104 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
106 def Clone(*args
, **kwargs
):
107 """Clone(self) -> GridCellRenderer"""
108 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
111 class GridCellRendererPtr(GridCellRenderer
):
112 def __init__(self
, this
):
114 if not hasattr(self
,"thisown"): self
.thisown
= 0
115 self
.__class
__ = GridCellRenderer
116 _grid
.GridCellRenderer_swigregister(GridCellRendererPtr
)
118 GridNoCellCoords
= cvar
.GridNoCellCoords
119 GridNoCellRect
= cvar
.GridNoCellRect
121 class PyGridCellRenderer(GridCellRenderer
):
122 """Proxy of C++ PyGridCellRenderer class"""
124 return "<%s.%s; proxy of C++ wxPyGridCellRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
125 def __init__(self
, *args
, **kwargs
):
126 """__init__(self) -> PyGridCellRenderer"""
127 newobj
= _grid
.new_PyGridCellRenderer(*args
, **kwargs
)
128 self
.this
= newobj
.this
131 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
133 def _setCallbackInfo(*args
, **kwargs
):
134 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
135 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
137 def SetParameters(*args
, **kwargs
):
138 """SetParameters(self, String params)"""
139 return _grid
.PyGridCellRenderer_SetParameters(*args
, **kwargs
)
141 def base_SetParameters(*args
, **kw
):
142 return PyGridCellRenderer
.SetParameters(*args
, **kw
)
143 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
144 "Please use PyGridCellRenderer.SetParameters instead.")
147 class PyGridCellRendererPtr(PyGridCellRenderer
):
148 def __init__(self
, this
):
150 if not hasattr(self
,"thisown"): self
.thisown
= 0
151 self
.__class
__ = PyGridCellRenderer
152 _grid
.PyGridCellRenderer_swigregister(PyGridCellRendererPtr
)
154 class GridCellStringRenderer(GridCellRenderer
):
155 """Proxy of C++ GridCellStringRenderer class"""
157 return "<%s.%s; proxy of C++ wxGridCellStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
158 def __init__(self
, *args
, **kwargs
):
159 """__init__(self) -> GridCellStringRenderer"""
160 newobj
= _grid
.new_GridCellStringRenderer(*args
, **kwargs
)
161 self
.this
= newobj
.this
164 self
._setOORInfo
(self
)
167 class GridCellStringRendererPtr(GridCellStringRenderer
):
168 def __init__(self
, this
):
170 if not hasattr(self
,"thisown"): self
.thisown
= 0
171 self
.__class
__ = GridCellStringRenderer
172 _grid
.GridCellStringRenderer_swigregister(GridCellStringRendererPtr
)
174 class GridCellNumberRenderer(GridCellStringRenderer
):
175 """Proxy of C++ GridCellNumberRenderer class"""
177 return "<%s.%s; proxy of C++ wxGridCellNumberRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
178 def __init__(self
, *args
, **kwargs
):
179 """__init__(self) -> GridCellNumberRenderer"""
180 newobj
= _grid
.new_GridCellNumberRenderer(*args
, **kwargs
)
181 self
.this
= newobj
.this
184 self
._setOORInfo
(self
)
187 class GridCellNumberRendererPtr(GridCellNumberRenderer
):
188 def __init__(self
, this
):
190 if not hasattr(self
,"thisown"): self
.thisown
= 0
191 self
.__class
__ = GridCellNumberRenderer
192 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRendererPtr
)
194 class GridCellFloatRenderer(GridCellStringRenderer
):
195 """Proxy of C++ GridCellFloatRenderer class"""
197 return "<%s.%s; proxy of C++ wxGridCellFloatRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
198 def __init__(self
, *args
, **kwargs
):
199 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
200 newobj
= _grid
.new_GridCellFloatRenderer(*args
, **kwargs
)
201 self
.this
= newobj
.this
204 self
._setOORInfo
(self
)
206 def GetWidth(*args
, **kwargs
):
207 """GetWidth(self) -> int"""
208 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
210 def SetWidth(*args
, **kwargs
):
211 """SetWidth(self, int width)"""
212 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
214 def GetPrecision(*args
, **kwargs
):
215 """GetPrecision(self) -> int"""
216 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
218 def SetPrecision(*args
, **kwargs
):
219 """SetPrecision(self, int precision)"""
220 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
223 class GridCellFloatRendererPtr(GridCellFloatRenderer
):
224 def __init__(self
, this
):
226 if not hasattr(self
,"thisown"): self
.thisown
= 0
227 self
.__class
__ = GridCellFloatRenderer
228 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRendererPtr
)
230 class GridCellBoolRenderer(GridCellRenderer
):
231 """Proxy of C++ GridCellBoolRenderer class"""
233 return "<%s.%s; proxy of C++ wxGridCellBoolRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
234 def __init__(self
, *args
, **kwargs
):
235 """__init__(self) -> GridCellBoolRenderer"""
236 newobj
= _grid
.new_GridCellBoolRenderer(*args
, **kwargs
)
237 self
.this
= newobj
.this
240 self
._setOORInfo
(self
)
243 class GridCellBoolRendererPtr(GridCellBoolRenderer
):
244 def __init__(self
, this
):
246 if not hasattr(self
,"thisown"): self
.thisown
= 0
247 self
.__class
__ = GridCellBoolRenderer
248 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRendererPtr
)
250 class GridCellDateTimeRenderer(GridCellStringRenderer
):
251 """Proxy of C++ GridCellDateTimeRenderer class"""
253 return "<%s.%s; proxy of C++ wxGridCellDateTimeRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
254 def __init__(self
, *args
, **kwargs
):
255 """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
256 newobj
= _grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
)
257 self
.this
= newobj
.this
260 self
._setOORInfo
(self
)
263 class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer
):
264 def __init__(self
, this
):
266 if not hasattr(self
,"thisown"): self
.thisown
= 0
267 self
.__class
__ = GridCellDateTimeRenderer
268 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRendererPtr
)
270 class GridCellEnumRenderer(GridCellStringRenderer
):
271 """Proxy of C++ GridCellEnumRenderer class"""
273 return "<%s.%s; proxy of C++ wxGridCellEnumRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
274 def __init__(self
, *args
, **kwargs
):
275 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
276 newobj
= _grid
.new_GridCellEnumRenderer(*args
, **kwargs
)
277 self
.this
= newobj
.this
280 self
._setOORInfo
(self
)
283 class GridCellEnumRendererPtr(GridCellEnumRenderer
):
284 def __init__(self
, this
):
286 if not hasattr(self
,"thisown"): self
.thisown
= 0
287 self
.__class
__ = GridCellEnumRenderer
288 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRendererPtr
)
290 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
291 """Proxy of C++ GridCellAutoWrapStringRenderer class"""
293 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringRenderer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
294 def __init__(self
, *args
, **kwargs
):
295 """__init__(self) -> GridCellAutoWrapStringRenderer"""
296 newobj
= _grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
)
297 self
.this
= newobj
.this
300 self
._setOORInfo
(self
)
303 class GridCellAutoWrapStringRendererPtr(GridCellAutoWrapStringRenderer
):
304 def __init__(self
, this
):
306 if not hasattr(self
,"thisown"): self
.thisown
= 0
307 self
.__class
__ = GridCellAutoWrapStringRenderer
308 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRendererPtr
)
310 class GridCellEditor(object):
311 """Proxy of C++ GridCellEditor class"""
312 def __init__(self
): raise RuntimeError, "No constructor defined"
314 return "<%s.%s; proxy of C++ wxGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
315 def _setOORInfo(*args
, **kwargs
):
316 """_setOORInfo(self, PyObject _self)"""
317 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
319 def IsCreated(*args
, **kwargs
):
320 """IsCreated(self) -> bool"""
321 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
323 def GetControl(*args
, **kwargs
):
324 """GetControl(self) -> Control"""
325 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
327 def SetControl(*args
, **kwargs
):
328 """SetControl(self, Control control)"""
329 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
331 def GetCellAttr(*args
, **kwargs
):
332 """GetCellAttr(self) -> GridCellAttr"""
333 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
335 def SetCellAttr(*args
, **kwargs
):
336 """SetCellAttr(self, GridCellAttr attr)"""
337 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
339 def SetParameters(*args
, **kwargs
):
340 """SetParameters(self, String params)"""
341 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
343 def IncRef(*args
, **kwargs
):
345 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
347 def DecRef(*args
, **kwargs
):
349 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
351 def Create(*args
, **kwargs
):
352 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
353 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
355 def BeginEdit(*args
, **kwargs
):
356 """BeginEdit(self, int row, int col, Grid grid)"""
357 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
359 def EndEdit(*args
, **kwargs
):
360 """EndEdit(self, int row, int col, Grid grid) -> bool"""
361 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
363 def Reset(*args
, **kwargs
):
365 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
367 def Clone(*args
, **kwargs
):
368 """Clone(self) -> GridCellEditor"""
369 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
371 def SetSize(*args
, **kwargs
):
372 """SetSize(self, Rect rect)"""
373 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
375 def Show(*args
, **kwargs
):
376 """Show(self, bool show, GridCellAttr attr=None)"""
377 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
379 def PaintBackground(*args
, **kwargs
):
380 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
381 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
383 def IsAcceptedKey(*args
, **kwargs
):
384 """IsAcceptedKey(self, KeyEvent event) -> bool"""
385 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
387 def StartingKey(*args
, **kwargs
):
388 """StartingKey(self, KeyEvent event)"""
389 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
391 def StartingClick(*args
, **kwargs
):
392 """StartingClick(self)"""
393 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
395 def HandleReturn(*args
, **kwargs
):
396 """HandleReturn(self, KeyEvent event)"""
397 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
399 def Destroy(*args
, **kwargs
):
401 val
= _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
406 class GridCellEditorPtr(GridCellEditor
):
407 def __init__(self
, this
):
409 if not hasattr(self
,"thisown"): self
.thisown
= 0
410 self
.__class
__ = GridCellEditor
411 _grid
.GridCellEditor_swigregister(GridCellEditorPtr
)
413 class PyGridCellEditor(GridCellEditor
):
414 """Proxy of C++ PyGridCellEditor class"""
416 return "<%s.%s; proxy of C++ wxPyGridCellEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
417 def __init__(self
, *args
, **kwargs
):
418 """__init__(self) -> PyGridCellEditor"""
419 newobj
= _grid
.new_PyGridCellEditor(*args
, **kwargs
)
420 self
.this
= newobj
.this
423 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
425 def _setCallbackInfo(*args
, **kwargs
):
426 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
427 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
429 def SetSize(*args
, **kwargs
):
430 """SetSize(self, Rect rect)"""
431 return _grid
.PyGridCellEditor_SetSize(*args
, **kwargs
)
433 def Show(*args
, **kwargs
):
434 """Show(self, bool show, GridCellAttr attr=None)"""
435 return _grid
.PyGridCellEditor_Show(*args
, **kwargs
)
437 def PaintBackground(*args
, **kwargs
):
438 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
439 return _grid
.PyGridCellEditor_PaintBackground(*args
, **kwargs
)
441 def IsAcceptedKey(*args
, **kwargs
):
442 """IsAcceptedKey(self, KeyEvent event) -> bool"""
443 return _grid
.PyGridCellEditor_IsAcceptedKey(*args
, **kwargs
)
445 def StartingKey(*args
, **kwargs
):
446 """StartingKey(self, KeyEvent event)"""
447 return _grid
.PyGridCellEditor_StartingKey(*args
, **kwargs
)
449 def StartingClick(*args
, **kwargs
):
450 """StartingClick(self)"""
451 return _grid
.PyGridCellEditor_StartingClick(*args
, **kwargs
)
453 def HandleReturn(*args
, **kwargs
):
454 """HandleReturn(self, KeyEvent event)"""
455 return _grid
.PyGridCellEditor_HandleReturn(*args
, **kwargs
)
457 def Destroy(*args
, **kwargs
):
459 val
= _grid
.PyGridCellEditor_Destroy(*args
, **kwargs
)
463 def SetParameters(*args
, **kwargs
):
464 """SetParameters(self, String params)"""
465 return _grid
.PyGridCellEditor_SetParameters(*args
, **kwargs
)
467 def base_SetSize(*args
, **kw
):
468 return PyGridCellEditor
.SetSize(*args
, **kw
)
469 base_SetSize
= wx
._deprecated
(base_SetSize
,
470 "Please use PyGridCellEditor.SetSize instead.")
472 def base_Show(*args
, **kw
):
473 return PyGridCellEditor
.Show(*args
, **kw
)
474 base_Show
= wx
._deprecated
(base_Show
,
475 "Please use PyGridCellEditor.Show instead.")
477 def base_PaintBackground(*args
, **kw
):
478 return PyGridCellEditor
.PaintBackground(*args
, **kw
)
479 base_PaintBackground
= wx
._deprecated
(base_PaintBackground
,
480 "Please use PyGridCellEditor.PaintBackground instead.")
482 def base_IsAcceptedKey(*args
, **kw
):
483 return PyGridCellEditor
.IsAcceptedKey(*args
, **kw
)
484 base_IsAcceptedKey
= wx
._deprecated
(base_IsAcceptedKey
,
485 "Please use PyGridCellEditor.IsAcceptedKey instead.")
487 def base_StartingKey(*args
, **kw
):
488 return PyGridCellEditor
.StartingKey(*args
, **kw
)
489 base_StartingKey
= wx
._deprecated
(base_StartingKey
,
490 "Please use PyGridCellEditor.StartingKey instead.")
492 def base_StartingClick(*args
, **kw
):
493 return PyGridCellEditor
.StartingClick(*args
, **kw
)
494 base_StartingClick
= wx
._deprecated
(base_StartingClick
,
495 "Please use PyGridCellEditor.StartingClick instead.")
497 def base_HandleReturn(*args
, **kw
):
498 return PyGridCellEditor
.HandleReturn(*args
, **kw
)
499 base_HandleReturn
= wx
._deprecated
(base_HandleReturn
,
500 "Please use PyGridCellEditor.HandleReturn instead.")
502 def base_Destroy(*args
, **kw
):
503 return PyGridCellEditor
.Destroy(*args
, **kw
)
504 base_Destroy
= wx
._deprecated
(base_Destroy
,
505 "Please use PyGridCellEditor.Destroy instead.")
507 def base_SetParameters(*args
, **kw
):
508 return PyGridCellEditor
.SetParameters(*args
, **kw
)
509 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
510 "Please use PyGridCellEditor.SetParameters instead.")
513 class PyGridCellEditorPtr(PyGridCellEditor
):
514 def __init__(self
, this
):
516 if not hasattr(self
,"thisown"): self
.thisown
= 0
517 self
.__class
__ = PyGridCellEditor
518 _grid
.PyGridCellEditor_swigregister(PyGridCellEditorPtr
)
520 class GridCellTextEditor(GridCellEditor
):
521 """Proxy of C++ GridCellTextEditor class"""
523 return "<%s.%s; proxy of C++ wxGridCellTextEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
524 def __init__(self
, *args
, **kwargs
):
525 """__init__(self) -> GridCellTextEditor"""
526 newobj
= _grid
.new_GridCellTextEditor(*args
, **kwargs
)
527 self
.this
= newobj
.this
530 self
._setOORInfo
(self
)
532 def GetValue(*args
, **kwargs
):
533 """GetValue(self) -> String"""
534 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
537 class GridCellTextEditorPtr(GridCellTextEditor
):
538 def __init__(self
, this
):
540 if not hasattr(self
,"thisown"): self
.thisown
= 0
541 self
.__class
__ = GridCellTextEditor
542 _grid
.GridCellTextEditor_swigregister(GridCellTextEditorPtr
)
544 class GridCellNumberEditor(GridCellTextEditor
):
545 """Proxy of C++ GridCellNumberEditor class"""
547 return "<%s.%s; proxy of C++ wxGridCellNumberEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
548 def __init__(self
, *args
, **kwargs
):
549 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
550 newobj
= _grid
.new_GridCellNumberEditor(*args
, **kwargs
)
551 self
.this
= newobj
.this
554 self
._setOORInfo
(self
)
556 def GetValue(*args
, **kwargs
):
557 """GetValue(self) -> String"""
558 return _grid
.GridCellNumberEditor_GetValue(*args
, **kwargs
)
561 class GridCellNumberEditorPtr(GridCellNumberEditor
):
562 def __init__(self
, this
):
564 if not hasattr(self
,"thisown"): self
.thisown
= 0
565 self
.__class
__ = GridCellNumberEditor
566 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditorPtr
)
568 class GridCellFloatEditor(GridCellTextEditor
):
569 """Proxy of C++ GridCellFloatEditor class"""
571 return "<%s.%s; proxy of C++ wxGridCellFloatEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
572 def __init__(self
, *args
, **kwargs
):
573 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
574 newobj
= _grid
.new_GridCellFloatEditor(*args
, **kwargs
)
575 self
.this
= newobj
.this
578 self
._setOORInfo
(self
)
580 def GetValue(*args
, **kwargs
):
581 """GetValue(self) -> String"""
582 return _grid
.GridCellFloatEditor_GetValue(*args
, **kwargs
)
585 class GridCellFloatEditorPtr(GridCellFloatEditor
):
586 def __init__(self
, this
):
588 if not hasattr(self
,"thisown"): self
.thisown
= 0
589 self
.__class
__ = GridCellFloatEditor
590 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditorPtr
)
592 class GridCellBoolEditor(GridCellEditor
):
593 """Proxy of C++ GridCellBoolEditor class"""
595 return "<%s.%s; proxy of C++ wxGridCellBoolEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
596 def __init__(self
, *args
, **kwargs
):
597 """__init__(self) -> GridCellBoolEditor"""
598 newobj
= _grid
.new_GridCellBoolEditor(*args
, **kwargs
)
599 self
.this
= newobj
.this
602 self
._setOORInfo
(self
)
604 def GetValue(*args
, **kwargs
):
605 """GetValue(self) -> String"""
606 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
609 class GridCellBoolEditorPtr(GridCellBoolEditor
):
610 def __init__(self
, this
):
612 if not hasattr(self
,"thisown"): self
.thisown
= 0
613 self
.__class
__ = GridCellBoolEditor
614 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditorPtr
)
616 class GridCellChoiceEditor(GridCellEditor
):
617 """Proxy of C++ GridCellChoiceEditor class"""
619 return "<%s.%s; proxy of C++ wxGridCellChoiceEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
620 def __init__(self
, *args
, **kwargs
):
621 """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
622 newobj
= _grid
.new_GridCellChoiceEditor(*args
, **kwargs
)
623 self
.this
= newobj
.this
626 self
._setOORInfo
(self
)
628 def GetValue(*args
, **kwargs
):
629 """GetValue(self) -> String"""
630 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
633 class GridCellChoiceEditorPtr(GridCellChoiceEditor
):
634 def __init__(self
, this
):
636 if not hasattr(self
,"thisown"): self
.thisown
= 0
637 self
.__class
__ = GridCellChoiceEditor
638 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditorPtr
)
640 class GridCellEnumEditor(GridCellChoiceEditor
):
641 """Proxy of C++ GridCellEnumEditor class"""
643 return "<%s.%s; proxy of C++ wxGridCellEnumEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
644 def __init__(self
, *args
, **kwargs
):
645 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
646 newobj
= _grid
.new_GridCellEnumEditor(*args
, **kwargs
)
647 self
.this
= newobj
.this
650 self
._setOORInfo
(self
)
652 def GetValue(*args
, **kwargs
):
653 """GetValue(self) -> String"""
654 return _grid
.GridCellEnumEditor_GetValue(*args
, **kwargs
)
657 class GridCellEnumEditorPtr(GridCellEnumEditor
):
658 def __init__(self
, this
):
660 if not hasattr(self
,"thisown"): self
.thisown
= 0
661 self
.__class
__ = GridCellEnumEditor
662 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditorPtr
)
664 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
665 """Proxy of C++ GridCellAutoWrapStringEditor class"""
667 return "<%s.%s; proxy of C++ wxGridCellAutoWrapStringEditor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
668 def __init__(self
, *args
, **kwargs
):
669 """__init__(self) -> GridCellAutoWrapStringEditor"""
670 newobj
= _grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
)
671 self
.this
= newobj
.this
674 self
._setOORInfo
(self
)
676 def GetValue(*args
, **kwargs
):
677 """GetValue(self) -> String"""
678 return _grid
.GridCellAutoWrapStringEditor_GetValue(*args
, **kwargs
)
681 class GridCellAutoWrapStringEditorPtr(GridCellAutoWrapStringEditor
):
682 def __init__(self
, this
):
684 if not hasattr(self
,"thisown"): self
.thisown
= 0
685 self
.__class
__ = GridCellAutoWrapStringEditor
686 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditorPtr
)
688 class GridCellAttr(object):
689 """Proxy of C++ GridCellAttr class"""
691 return "<%s.%s; proxy of C++ wxGridCellAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
692 Any
= _grid
.GridCellAttr_Any
693 Default
= _grid
.GridCellAttr_Default
694 Cell
= _grid
.GridCellAttr_Cell
695 Row
= _grid
.GridCellAttr_Row
696 Col
= _grid
.GridCellAttr_Col
697 Merged
= _grid
.GridCellAttr_Merged
698 def _setOORInfo(*args
, **kwargs
):
699 """_setOORInfo(self, PyObject _self)"""
700 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
702 def __init__(self
, *args
, **kwargs
):
703 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
704 newobj
= _grid
.new_GridCellAttr(*args
, **kwargs
)
705 self
.this
= newobj
.this
708 self
._setOORInfo
(self
)
710 def Clone(*args
, **kwargs
):
711 """Clone(self) -> GridCellAttr"""
712 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
714 def MergeWith(*args
, **kwargs
):
715 """MergeWith(self, GridCellAttr mergefrom)"""
716 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
718 def IncRef(*args
, **kwargs
):
720 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
722 def DecRef(*args
, **kwargs
):
724 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
726 def SetTextColour(*args
, **kwargs
):
727 """SetTextColour(self, Colour colText)"""
728 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
730 def SetBackgroundColour(*args
, **kwargs
):
731 """SetBackgroundColour(self, Colour colBack)"""
732 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
734 def SetFont(*args
, **kwargs
):
735 """SetFont(self, Font font)"""
736 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
738 def SetAlignment(*args
, **kwargs
):
739 """SetAlignment(self, int hAlign, int vAlign)"""
740 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
742 def SetSize(*args
, **kwargs
):
743 """SetSize(self, int num_rows, int num_cols)"""
744 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
746 def SetOverflow(*args
, **kwargs
):
747 """SetOverflow(self, bool allow=True)"""
748 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
750 def SetReadOnly(*args
, **kwargs
):
751 """SetReadOnly(self, bool isReadOnly=True)"""
752 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
754 def SetRenderer(*args
, **kwargs
):
755 """SetRenderer(self, GridCellRenderer renderer)"""
756 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
758 def SetEditor(*args
, **kwargs
):
759 """SetEditor(self, GridCellEditor editor)"""
760 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
762 def SetKind(*args
, **kwargs
):
763 """SetKind(self, int kind)"""
764 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
766 def HasTextColour(*args
, **kwargs
):
767 """HasTextColour(self) -> bool"""
768 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
770 def HasBackgroundColour(*args
, **kwargs
):
771 """HasBackgroundColour(self) -> bool"""
772 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
774 def HasFont(*args
, **kwargs
):
775 """HasFont(self) -> bool"""
776 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
778 def HasAlignment(*args
, **kwargs
):
779 """HasAlignment(self) -> bool"""
780 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
782 def HasRenderer(*args
, **kwargs
):
783 """HasRenderer(self) -> bool"""
784 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
786 def HasEditor(*args
, **kwargs
):
787 """HasEditor(self) -> bool"""
788 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
790 def HasReadWriteMode(*args
, **kwargs
):
791 """HasReadWriteMode(self) -> bool"""
792 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
794 def HasOverflowMode(*args
, **kwargs
):
795 """HasOverflowMode(self) -> bool"""
796 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
798 def GetTextColour(*args
, **kwargs
):
799 """GetTextColour(self) -> Colour"""
800 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
802 def GetBackgroundColour(*args
, **kwargs
):
803 """GetBackgroundColour(self) -> Colour"""
804 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
806 def GetFont(*args
, **kwargs
):
807 """GetFont(self) -> Font"""
808 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
810 def GetAlignment(*args
, **kwargs
):
811 """GetAlignment() -> (hAlign, vAlign)"""
812 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
814 def GetSize(*args
, **kwargs
):
815 """GetSize() -> (num_rows, num_cols)"""
816 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
818 def GetOverflow(*args
, **kwargs
):
819 """GetOverflow(self) -> bool"""
820 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
822 def GetRenderer(*args
, **kwargs
):
823 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
824 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
826 def GetEditor(*args
, **kwargs
):
827 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
828 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
830 def IsReadOnly(*args
, **kwargs
):
831 """IsReadOnly(self) -> bool"""
832 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
834 def GetKind(*args
, **kwargs
):
835 """GetKind(self) -> int"""
836 return _grid
.GridCellAttr_GetKind(*args
, **kwargs
)
838 def SetDefAttr(*args
, **kwargs
):
839 """SetDefAttr(self, GridCellAttr defAttr)"""
840 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
843 class GridCellAttrPtr(GridCellAttr
):
844 def __init__(self
, this
):
846 if not hasattr(self
,"thisown"): self
.thisown
= 0
847 self
.__class
__ = GridCellAttr
848 _grid
.GridCellAttr_swigregister(GridCellAttrPtr
)
850 class GridCellAttrProvider(object):
851 """Proxy of C++ GridCellAttrProvider class"""
853 return "<%s.%s; proxy of C++ wxGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
854 def __init__(self
, *args
, **kwargs
):
855 """__init__(self) -> GridCellAttrProvider"""
856 newobj
= _grid
.new_GridCellAttrProvider(*args
, **kwargs
)
857 self
.this
= newobj
.this
860 self
._setOORInfo
(self
)
862 def _setOORInfo(*args
, **kwargs
):
863 """_setOORInfo(self, PyObject _self)"""
864 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
866 def GetAttr(*args
, **kwargs
):
867 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
868 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
870 def SetAttr(*args
, **kwargs
):
871 """SetAttr(self, GridCellAttr attr, int row, int col)"""
872 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
874 def SetRowAttr(*args
, **kwargs
):
875 """SetRowAttr(self, GridCellAttr attr, int row)"""
876 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
878 def SetColAttr(*args
, **kwargs
):
879 """SetColAttr(self, GridCellAttr attr, int col)"""
880 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
882 def UpdateAttrRows(*args
, **kwargs
):
883 """UpdateAttrRows(self, size_t pos, int numRows)"""
884 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
886 def UpdateAttrCols(*args
, **kwargs
):
887 """UpdateAttrCols(self, size_t pos, int numCols)"""
888 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
891 class GridCellAttrProviderPtr(GridCellAttrProvider
):
892 def __init__(self
, this
):
894 if not hasattr(self
,"thisown"): self
.thisown
= 0
895 self
.__class
__ = GridCellAttrProvider
896 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProviderPtr
)
898 class PyGridCellAttrProvider(GridCellAttrProvider
):
899 """Proxy of C++ PyGridCellAttrProvider class"""
901 return "<%s.%s; proxy of C++ wxPyGridCellAttrProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
902 def __init__(self
, *args
, **kwargs
):
903 """__init__(self) -> PyGridCellAttrProvider"""
904 newobj
= _grid
.new_PyGridCellAttrProvider(*args
, **kwargs
)
905 self
.this
= newobj
.this
908 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
910 def _setCallbackInfo(*args
, **kwargs
):
911 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
912 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
914 def GetAttr(*args
, **kwargs
):
915 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
916 return _grid
.PyGridCellAttrProvider_GetAttr(*args
, **kwargs
)
918 def SetAttr(*args
, **kwargs
):
919 """SetAttr(self, GridCellAttr attr, int row, int col)"""
920 return _grid
.PyGridCellAttrProvider_SetAttr(*args
, **kwargs
)
922 def SetRowAttr(*args
, **kwargs
):
923 """SetRowAttr(self, GridCellAttr attr, int row)"""
924 return _grid
.PyGridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
926 def SetColAttr(*args
, **kwargs
):
927 """SetColAttr(self, GridCellAttr attr, int col)"""
928 return _grid
.PyGridCellAttrProvider_SetColAttr(*args
, **kwargs
)
930 def base_GetAttr(*args
, **kw
):
931 return PyGridCellAttrProvider
.GetAttr(*args
, **kw
)
932 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
933 "Please use PyGridCellAttrProvider.GetAttr instead.")
935 def base_SetAttr(*args
, **kw
):
936 return PyGridCellAttrProvider
.SetAttr(*args
, **kw
)
937 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
938 "Please use PyGridCellAttrProvider.SetAttr instead.")
940 def base_SetRowAttr(*args
, **kw
):
941 return PyGridCellAttrProvider
.SetRowAttr(*args
, **kw
)
942 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
943 "Please use PyGridCellAttrProvider.SetRowAttr instead.")
945 def base_SetColAttr(*args
, **kw
):
946 return PyGridCellAttrProvider
.SetColAttr(*args
, **kw
)
947 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
948 "Please use PyGridCellAttrProvider.SetColAttr instead.")
951 class PyGridCellAttrProviderPtr(PyGridCellAttrProvider
):
952 def __init__(self
, this
):
954 if not hasattr(self
,"thisown"): self
.thisown
= 0
955 self
.__class
__ = PyGridCellAttrProvider
956 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProviderPtr
)
958 class GridTableBase(_core
.Object
):
959 """Proxy of C++ GridTableBase class"""
960 def __init__(self
): raise RuntimeError, "No constructor defined"
962 return "<%s.%s; proxy of C++ wxGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
963 def _setOORInfo(*args
, **kwargs
):
964 """_setOORInfo(self, PyObject _self)"""
965 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
967 def SetAttrProvider(*args
, **kwargs
):
968 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
969 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
971 def GetAttrProvider(*args
, **kwargs
):
972 """GetAttrProvider(self) -> GridCellAttrProvider"""
973 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
975 def SetView(*args
, **kwargs
):
976 """SetView(self, Grid grid)"""
977 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
979 def GetView(*args
, **kwargs
):
980 """GetView(self) -> Grid"""
981 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
983 def GetNumberRows(*args
, **kwargs
):
984 """GetNumberRows(self) -> int"""
985 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
987 def GetNumberCols(*args
, **kwargs
):
988 """GetNumberCols(self) -> int"""
989 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
991 def IsEmptyCell(*args
, **kwargs
):
992 """IsEmptyCell(self, int row, int col) -> bool"""
993 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
995 def GetValue(*args
, **kwargs
):
996 """GetValue(self, int row, int col) -> String"""
997 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
999 def SetValue(*args
, **kwargs
):
1000 """SetValue(self, int row, int col, String value)"""
1001 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
1003 def GetTypeName(*args
, **kwargs
):
1004 """GetTypeName(self, int row, int col) -> String"""
1005 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
1007 def CanGetValueAs(*args
, **kwargs
):
1008 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
1009 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
1011 def CanSetValueAs(*args
, **kwargs
):
1012 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
1013 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
1015 def GetValueAsLong(*args
, **kwargs
):
1016 """GetValueAsLong(self, int row, int col) -> long"""
1017 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
1019 def GetValueAsDouble(*args
, **kwargs
):
1020 """GetValueAsDouble(self, int row, int col) -> double"""
1021 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
1023 def GetValueAsBool(*args
, **kwargs
):
1024 """GetValueAsBool(self, int row, int col) -> bool"""
1025 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
1027 def SetValueAsLong(*args
, **kwargs
):
1028 """SetValueAsLong(self, int row, int col, long value)"""
1029 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
1031 def SetValueAsDouble(*args
, **kwargs
):
1032 """SetValueAsDouble(self, int row, int col, double value)"""
1033 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
1035 def SetValueAsBool(*args
, **kwargs
):
1036 """SetValueAsBool(self, int row, int col, bool value)"""
1037 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
1039 def Clear(*args
, **kwargs
):
1041 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
1043 def InsertRows(*args
, **kwargs
):
1044 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1045 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
1047 def AppendRows(*args
, **kwargs
):
1048 """AppendRows(self, size_t numRows=1) -> bool"""
1049 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
1051 def DeleteRows(*args
, **kwargs
):
1052 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1053 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
1055 def InsertCols(*args
, **kwargs
):
1056 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1057 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
1059 def AppendCols(*args
, **kwargs
):
1060 """AppendCols(self, size_t numCols=1) -> bool"""
1061 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
1063 def DeleteCols(*args
, **kwargs
):
1064 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1065 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
1067 def GetRowLabelValue(*args
, **kwargs
):
1068 """GetRowLabelValue(self, int row) -> String"""
1069 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
1071 def GetColLabelValue(*args
, **kwargs
):
1072 """GetColLabelValue(self, int col) -> String"""
1073 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
1075 def SetRowLabelValue(*args
, **kwargs
):
1076 """SetRowLabelValue(self, int row, String value)"""
1077 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
1079 def SetColLabelValue(*args
, **kwargs
):
1080 """SetColLabelValue(self, int col, String value)"""
1081 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
1083 def CanHaveAttributes(*args
, **kwargs
):
1084 """CanHaveAttributes(self) -> bool"""
1085 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
1087 def GetAttr(*args
, **kwargs
):
1088 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
1089 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
1091 def SetAttr(*args
, **kwargs
):
1092 """SetAttr(self, GridCellAttr attr, int row, int col)"""
1093 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
1095 def SetRowAttr(*args
, **kwargs
):
1096 """SetRowAttr(self, GridCellAttr attr, int row)"""
1097 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
1099 def SetColAttr(*args
, **kwargs
):
1100 """SetColAttr(self, GridCellAttr attr, int col)"""
1101 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
1104 class GridTableBasePtr(GridTableBase
):
1105 def __init__(self
, this
):
1107 if not hasattr(self
,"thisown"): self
.thisown
= 0
1108 self
.__class
__ = GridTableBase
1109 _grid
.GridTableBase_swigregister(GridTableBasePtr
)
1111 class PyGridTableBase(GridTableBase
):
1112 """Proxy of C++ PyGridTableBase class"""
1114 return "<%s.%s; proxy of C++ wxPyGridTableBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1115 def __init__(self
, *args
, **kwargs
):
1116 """__init__(self) -> PyGridTableBase"""
1117 newobj
= _grid
.new_PyGridTableBase(*args
, **kwargs
)
1118 self
.this
= newobj
.this
1121 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
1123 def _setCallbackInfo(*args
, **kwargs
):
1124 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1125 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
1127 def Destroy(*args
, **kwargs
):
1131 Deletes the C++ object this Python object is a proxy for.
1133 val
= _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
1137 def GetTypeName(*args
, **kwargs
):
1138 """GetTypeName(self, int row, int col) -> String"""
1139 return _grid
.PyGridTableBase_GetTypeName(*args
, **kwargs
)
1141 def CanGetValueAs(*args
, **kwargs
):
1142 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
1143 return _grid
.PyGridTableBase_CanGetValueAs(*args
, **kwargs
)
1145 def CanSetValueAs(*args
, **kwargs
):
1146 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
1147 return _grid
.PyGridTableBase_CanSetValueAs(*args
, **kwargs
)
1149 def Clear(*args
, **kwargs
):
1151 return _grid
.PyGridTableBase_Clear(*args
, **kwargs
)
1153 def InsertRows(*args
, **kwargs
):
1154 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1155 return _grid
.PyGridTableBase_InsertRows(*args
, **kwargs
)
1157 def AppendRows(*args
, **kwargs
):
1158 """AppendRows(self, size_t numRows=1) -> bool"""
1159 return _grid
.PyGridTableBase_AppendRows(*args
, **kwargs
)
1161 def DeleteRows(*args
, **kwargs
):
1162 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
1163 return _grid
.PyGridTableBase_DeleteRows(*args
, **kwargs
)
1165 def InsertCols(*args
, **kwargs
):
1166 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1167 return _grid
.PyGridTableBase_InsertCols(*args
, **kwargs
)
1169 def AppendCols(*args
, **kwargs
):
1170 """AppendCols(self, size_t numCols=1) -> bool"""
1171 return _grid
.PyGridTableBase_AppendCols(*args
, **kwargs
)
1173 def DeleteCols(*args
, **kwargs
):
1174 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
1175 return _grid
.PyGridTableBase_DeleteCols(*args
, **kwargs
)
1177 def GetRowLabelValue(*args
, **kwargs
):
1178 """GetRowLabelValue(self, int row) -> String"""
1179 return _grid
.PyGridTableBase_GetRowLabelValue(*args
, **kwargs
)
1181 def GetColLabelValue(*args
, **kwargs
):
1182 """GetColLabelValue(self, int col) -> String"""
1183 return _grid
.PyGridTableBase_GetColLabelValue(*args
, **kwargs
)
1185 def SetRowLabelValue(*args
, **kwargs
):
1186 """SetRowLabelValue(self, int row, String value)"""
1187 return _grid
.PyGridTableBase_SetRowLabelValue(*args
, **kwargs
)
1189 def SetColLabelValue(*args
, **kwargs
):
1190 """SetColLabelValue(self, int col, String value)"""
1191 return _grid
.PyGridTableBase_SetColLabelValue(*args
, **kwargs
)
1193 def CanHaveAttributes(*args
, **kwargs
):
1194 """CanHaveAttributes(self) -> bool"""
1195 return _grid
.PyGridTableBase_CanHaveAttributes(*args
, **kwargs
)
1197 def GetAttr(*args
, **kwargs
):
1198 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
1199 return _grid
.PyGridTableBase_GetAttr(*args
, **kwargs
)
1201 def SetAttr(*args
, **kwargs
):
1202 """SetAttr(self, GridCellAttr attr, int row, int col)"""
1203 return _grid
.PyGridTableBase_SetAttr(*args
, **kwargs
)
1205 def SetRowAttr(*args
, **kwargs
):
1206 """SetRowAttr(self, GridCellAttr attr, int row)"""
1207 return _grid
.PyGridTableBase_SetRowAttr(*args
, **kwargs
)
1209 def SetColAttr(*args
, **kwargs
):
1210 """SetColAttr(self, GridCellAttr attr, int col)"""
1211 return _grid
.PyGridTableBase_SetColAttr(*args
, **kwargs
)
1213 def base_GetTypeName(*args
, **kw
):
1214 return PyGridTableBase
.GetTypeName(*args
, **kw
)
1215 base_GetTypeName
= wx
._deprecated
(base_GetTypeName
,
1216 "Please use PyGridTableBase.GetTypeName instead.")
1218 def base_CanGetValueAs(*args
, **kw
):
1219 return PyGridTableBase
.CanGetValueAs(*args
, **kw
)
1220 base_CanGetValueAs
= wx
._deprecated
(base_CanGetValueAs
,
1221 "Please use PyGridTableBase.CanGetValueAs instead.")
1223 def base_CanSetValueAs(*args
, **kw
):
1224 return PyGridTableBase
.CanSetValueAs(*args
, **kw
)
1225 base_CanSetValueAs
= wx
._deprecated
(base_CanSetValueAs
,
1226 "Please use PyGridTableBase.CanSetValueAs instead.")
1228 def base_Clear(*args
, **kw
):
1229 return PyGridTableBase
.Clear(*args
, **kw
)
1230 base_Clear
= wx
._deprecated
(base_Clear
,
1231 "Please use PyGridTableBase.Clear instead.")
1233 def base_InsertRows(*args
, **kw
):
1234 return PyGridTableBase
.InsertRows(*args
, **kw
)
1235 base_InsertRows
= wx
._deprecated
(base_InsertRows
,
1236 "Please use PyGridTableBase.InsertRows instead.")
1238 def base_AppendRows(*args
, **kw
):
1239 return PyGridTableBase
.AppendRows(*args
, **kw
)
1240 base_AppendRows
= wx
._deprecated
(base_AppendRows
,
1241 "Please use PyGridTableBase.AppendRows instead.")
1243 def base_DeleteRows(*args
, **kw
):
1244 return PyGridTableBase
.DeleteRows(*args
, **kw
)
1245 base_DeleteRows
= wx
._deprecated
(base_DeleteRows
,
1246 "Please use PyGridTableBase.DeleteRows instead.")
1248 def base_InsertCols(*args
, **kw
):
1249 return PyGridTableBase
.InsertCols(*args
, **kw
)
1250 base_InsertCols
= wx
._deprecated
(base_InsertCols
,
1251 "Please use PyGridTableBase.InsertCols instead.")
1253 def base_AppendCols(*args
, **kw
):
1254 return PyGridTableBase
.AppendCols(*args
, **kw
)
1255 base_AppendCols
= wx
._deprecated
(base_AppendCols
,
1256 "Please use PyGridTableBase.AppendCols instead.")
1258 def base_DeleteCols(*args
, **kw
):
1259 return PyGridTableBase
.DeleteCols(*args
, **kw
)
1260 base_DeleteCols
= wx
._deprecated
(base_DeleteCols
,
1261 "Please use PyGridTableBase.DeleteCols instead.")
1263 def base_GetRowLabelValue(*args
, **kw
):
1264 return PyGridTableBase
.GetRowLabelValue(*args
, **kw
)
1265 base_GetRowLabelValue
= wx
._deprecated
(base_GetRowLabelValue
,
1266 "Please use PyGridTableBase.GetRowLabelValue instead.")
1268 def base_GetColLabelValue(*args
, **kw
):
1269 return PyGridTableBase
.GetColLabelValue(*args
, **kw
)
1270 base_GetColLabelValue
= wx
._deprecated
(base_GetColLabelValue
,
1271 "Please use PyGridTableBase.GetColLabelValue instead.")
1273 def base_SetRowLabelValue(*args
, **kw
):
1274 return PyGridTableBase
.SetRowLabelValue(*args
, **kw
)
1275 base_SetRowLabelValue
= wx
._deprecated
(base_SetRowLabelValue
,
1276 "Please use PyGridTableBase.SetRowLabelValue instead.")
1278 def base_SetColLabelValue(*args
, **kw
):
1279 return PyGridTableBase
.SetColLabelValue(*args
, **kw
)
1280 base_SetColLabelValue
= wx
._deprecated
(base_SetColLabelValue
,
1281 "Please use PyGridTableBase.SetColLabelValue instead.")
1283 def base_CanHaveAttributes(*args
, **kw
):
1284 return PyGridTableBase
.CanHaveAttributes(*args
, **kw
)
1285 base_CanHaveAttributes
= wx
._deprecated
(base_CanHaveAttributes
,
1286 "Please use PyGridTableBase.CanHaveAttributes instead.")
1288 def base_GetAttr(*args
, **kw
):
1289 return PyGridTableBase
.GetAttr(*args
, **kw
)
1290 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
1291 "Please use PyGridTableBase.GetAttr instead.")
1293 def base_SetAttr(*args
, **kw
):
1294 return PyGridTableBase
.SetAttr(*args
, **kw
)
1295 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
1296 "Please use PyGridTableBase.SetAttr instead.")
1298 def base_SetRowAttr(*args
, **kw
):
1299 return PyGridTableBase
.SetRowAttr(*args
, **kw
)
1300 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
1301 "Please use PyGridTableBase.SetRowAttr instead.")
1303 def base_SetColAttr(*args
, **kw
):
1304 return PyGridTableBase
.SetColAttr(*args
, **kw
)
1305 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
1306 "Please use PyGridTableBase.SetColAttr instead.")
1309 class PyGridTableBasePtr(PyGridTableBase
):
1310 def __init__(self
, this
):
1312 if not hasattr(self
,"thisown"): self
.thisown
= 0
1313 self
.__class
__ = PyGridTableBase
1314 _grid
.PyGridTableBase_swigregister(PyGridTableBasePtr
)
1316 class GridStringTable(GridTableBase
):
1317 """Proxy of C++ GridStringTable class"""
1319 return "<%s.%s; proxy of C++ wxGridStringTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1320 def __init__(self
, *args
, **kwargs
):
1321 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1322 newobj
= _grid
.new_GridStringTable(*args
, **kwargs
)
1323 self
.this
= newobj
.this
1326 self
._setOORInfo
(self
)
1329 class GridStringTablePtr(GridStringTable
):
1330 def __init__(self
, this
):
1332 if not hasattr(self
,"thisown"): self
.thisown
= 0
1333 self
.__class
__ = GridStringTable
1334 _grid
.GridStringTable_swigregister(GridStringTablePtr
)
1336 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1337 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1338 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1339 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1340 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1341 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1342 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1343 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1344 class GridTableMessage(object):
1345 """Proxy of C++ GridTableMessage class"""
1347 return "<%s.%s; proxy of C++ wxGridTableMessage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1348 def __init__(self
, *args
, **kwargs
):
1349 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1350 newobj
= _grid
.new_GridTableMessage(*args
, **kwargs
)
1351 self
.this
= newobj
.this
1354 def __del__(self
, destroy
=_grid
.delete_GridTableMessage
):
1357 if self
.thisown
: destroy(self
)
1360 def SetTableObject(*args
, **kwargs
):
1361 """SetTableObject(self, GridTableBase table)"""
1362 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1364 def GetTableObject(*args
, **kwargs
):
1365 """GetTableObject(self) -> GridTableBase"""
1366 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1368 def SetId(*args
, **kwargs
):
1369 """SetId(self, int id)"""
1370 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1372 def GetId(*args
, **kwargs
):
1373 """GetId(self) -> int"""
1374 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1376 def SetCommandInt(*args
, **kwargs
):
1377 """SetCommandInt(self, int comInt1)"""
1378 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1380 def GetCommandInt(*args
, **kwargs
):
1381 """GetCommandInt(self) -> int"""
1382 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1384 def SetCommandInt2(*args
, **kwargs
):
1385 """SetCommandInt2(self, int comInt2)"""
1386 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1388 def GetCommandInt2(*args
, **kwargs
):
1389 """GetCommandInt2(self) -> int"""
1390 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1393 class GridTableMessagePtr(GridTableMessage
):
1394 def __init__(self
, this
):
1396 if not hasattr(self
,"thisown"): self
.thisown
= 0
1397 self
.__class
__ = GridTableMessage
1398 _grid
.GridTableMessage_swigregister(GridTableMessagePtr
)
1400 class GridCellCoords(object):
1401 """Proxy of C++ GridCellCoords class"""
1403 return "<%s.%s; proxy of C++ wxGridCellCoords instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1404 def __init__(self
, *args
, **kwargs
):
1405 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1406 newobj
= _grid
.new_GridCellCoords(*args
, **kwargs
)
1407 self
.this
= newobj
.this
1410 def __del__(self
, destroy
=_grid
.delete_GridCellCoords
):
1413 if self
.thisown
: destroy(self
)
1416 def GetRow(*args
, **kwargs
):
1417 """GetRow(self) -> int"""
1418 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1420 def SetRow(*args
, **kwargs
):
1421 """SetRow(self, int n)"""
1422 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1424 def GetCol(*args
, **kwargs
):
1425 """GetCol(self) -> int"""
1426 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1428 def SetCol(*args
, **kwargs
):
1429 """SetCol(self, int n)"""
1430 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1432 def Set(*args
, **kwargs
):
1433 """Set(self, int row, int col)"""
1434 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1436 def __eq__(*args
, **kwargs
):
1437 """__eq__(self, GridCellCoords other) -> bool"""
1438 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1440 def __ne__(*args
, **kwargs
):
1441 """__ne__(self, GridCellCoords other) -> bool"""
1442 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1444 def Get(*args
, **kwargs
):
1445 """Get(self) -> PyObject"""
1446 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1448 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1449 def __str__(self
): return str(self
.Get())
1450 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1451 def __len__(self
): return len(self
.Get())
1452 def __getitem__(self
, index
): return self
.asTuple()[index
]
1453 def __setitem__(self
, index
, val
):
1454 if index
== 0: self
.SetRow(val
)
1455 elif index
== 1: self
.SetCol(val
)
1456 else: raise IndexError
1459 class GridCellCoordsPtr(GridCellCoords
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = GridCellCoords
1464 _grid
.GridCellCoords_swigregister(GridCellCoordsPtr
)
1466 class Grid(_windows
.ScrolledWindow
):
1467 """Proxy of C++ Grid class"""
1469 return "<%s.%s; proxy of C++ wxGrid instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1470 def __init__(self
, *args
, **kwargs
):
1472 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1473 Size size=DefaultSize, long style=WANTS_CHARS,
1474 String name=PanelNameStr) -> Grid
1476 newobj
= _grid
.new_Grid(*args
, **kwargs
)
1477 self
.this
= newobj
.this
1480 self
._setOORInfo
(self
)
1482 def Create(*args
, **kwargs
):
1484 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1485 Size size=DefaultSize, long style=WANTS_CHARS,
1486 String name=PanelNameStr) -> bool
1488 return _grid
.Grid_Create(*args
, **kwargs
)
1490 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1491 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1492 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1493 SelectCells
= wxGridSelectCells
1494 SelectRows
= wxGridSelectRows
1495 SelectColumns
= wxGridSelectColumns
1497 def CreateGrid(*args
, **kwargs
):
1498 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1499 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1501 def SetSelectionMode(*args
, **kwargs
):
1502 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1503 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1505 def GetSelectionMode(*args
, **kwargs
):
1506 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1507 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1509 def GetNumberRows(*args
, **kwargs
):
1510 """GetNumberRows(self) -> int"""
1511 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1513 def GetNumberCols(*args
, **kwargs
):
1514 """GetNumberCols(self) -> int"""
1515 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1517 def ProcessTableMessage(*args
, **kwargs
):
1518 """ProcessTableMessage(self, GridTableMessage ??) -> bool"""
1519 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1521 def GetTable(*args
, **kwargs
):
1522 """GetTable(self) -> GridTableBase"""
1523 return _grid
.Grid_GetTable(*args
, **kwargs
)
1525 def SetTable(*args
, **kwargs
):
1526 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1527 return _grid
.Grid_SetTable(*args
, **kwargs
)
1529 def ClearGrid(*args
, **kwargs
):
1530 """ClearGrid(self)"""
1531 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1533 def InsertRows(*args
, **kwargs
):
1534 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1535 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1537 def AppendRows(*args
, **kwargs
):
1538 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1539 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1541 def DeleteRows(*args
, **kwargs
):
1542 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1543 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1545 def InsertCols(*args
, **kwargs
):
1546 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1547 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1549 def AppendCols(*args
, **kwargs
):
1550 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1551 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1553 def DeleteCols(*args
, **kwargs
):
1554 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1555 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1557 def DrawCellHighlight(*args
, **kwargs
):
1558 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1559 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1561 def DrawTextRectangle(*args
, **kwargs
):
1563 DrawTextRectangle(self, DC dc, String ??, Rect ??, int horizontalAlignment=LEFT,
1564 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1566 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1568 def GetTextBoxSize(*args
, **kwargs
):
1569 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1570 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1572 def BeginBatch(*args
, **kwargs
):
1573 """BeginBatch(self)"""
1574 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1576 def EndBatch(*args
, **kwargs
):
1577 """EndBatch(self)"""
1578 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1580 def GetBatchCount(*args
, **kwargs
):
1581 """GetBatchCount(self) -> int"""
1582 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1584 def ForceRefresh(*args
, **kwargs
):
1585 """ForceRefresh(self)"""
1586 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1588 def IsEditable(*args
, **kwargs
):
1589 """IsEditable(self) -> bool"""
1590 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1592 def EnableEditing(*args
, **kwargs
):
1593 """EnableEditing(self, bool edit)"""
1594 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1596 def EnableCellEditControl(*args
, **kwargs
):
1597 """EnableCellEditControl(self, bool enable=True)"""
1598 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1600 def DisableCellEditControl(*args
, **kwargs
):
1601 """DisableCellEditControl(self)"""
1602 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1604 def CanEnableCellControl(*args
, **kwargs
):
1605 """CanEnableCellControl(self) -> bool"""
1606 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1608 def IsCellEditControlEnabled(*args
, **kwargs
):
1609 """IsCellEditControlEnabled(self) -> bool"""
1610 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1612 def IsCellEditControlShown(*args
, **kwargs
):
1613 """IsCellEditControlShown(self) -> bool"""
1614 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1616 def IsCurrentCellReadOnly(*args
, **kwargs
):
1617 """IsCurrentCellReadOnly(self) -> bool"""
1618 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1620 def ShowCellEditControl(*args
, **kwargs
):
1621 """ShowCellEditControl(self)"""
1622 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1624 def HideCellEditControl(*args
, **kwargs
):
1625 """HideCellEditControl(self)"""
1626 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1628 def SaveEditControlValue(*args
, **kwargs
):
1629 """SaveEditControlValue(self)"""
1630 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1632 def XYToCell(*args
, **kwargs
):
1633 """XYToCell(self, int x, int y) -> GridCellCoords"""
1634 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1636 def YToRow(*args
, **kwargs
):
1637 """YToRow(self, int y) -> int"""
1638 return _grid
.Grid_YToRow(*args
, **kwargs
)
1640 def XToCol(*args
, **kwargs
):
1641 """XToCol(self, int x) -> int"""
1642 return _grid
.Grid_XToCol(*args
, **kwargs
)
1644 def YToEdgeOfRow(*args
, **kwargs
):
1645 """YToEdgeOfRow(self, int y) -> int"""
1646 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1648 def XToEdgeOfCol(*args
, **kwargs
):
1649 """XToEdgeOfCol(self, int x) -> int"""
1650 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1652 def CellToRect(*args
, **kwargs
):
1653 """CellToRect(self, int row, int col) -> Rect"""
1654 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1656 def GetGridCursorRow(*args
, **kwargs
):
1657 """GetGridCursorRow(self) -> int"""
1658 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1660 def GetGridCursorCol(*args
, **kwargs
):
1661 """GetGridCursorCol(self) -> int"""
1662 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1664 def IsVisible(*args
, **kwargs
):
1665 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1666 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1668 def MakeCellVisible(*args
, **kwargs
):
1669 """MakeCellVisible(self, int row, int col)"""
1670 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1672 def SetGridCursor(*args
, **kwargs
):
1673 """SetGridCursor(self, int row, int col)"""
1674 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1676 def MoveCursorUp(*args
, **kwargs
):
1677 """MoveCursorUp(self, bool expandSelection) -> bool"""
1678 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1680 def MoveCursorDown(*args
, **kwargs
):
1681 """MoveCursorDown(self, bool expandSelection) -> bool"""
1682 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1684 def MoveCursorLeft(*args
, **kwargs
):
1685 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1686 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1688 def MoveCursorRight(*args
, **kwargs
):
1689 """MoveCursorRight(self, bool expandSelection) -> bool"""
1690 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1692 def MovePageDown(*args
, **kwargs
):
1693 """MovePageDown(self) -> bool"""
1694 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1696 def MovePageUp(*args
, **kwargs
):
1697 """MovePageUp(self) -> bool"""
1698 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1700 def MoveCursorUpBlock(*args
, **kwargs
):
1701 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1702 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1704 def MoveCursorDownBlock(*args
, **kwargs
):
1705 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1706 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1708 def MoveCursorLeftBlock(*args
, **kwargs
):
1709 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1710 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1712 def MoveCursorRightBlock(*args
, **kwargs
):
1713 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1714 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1716 def GetDefaultRowLabelSize(*args
, **kwargs
):
1717 """GetDefaultRowLabelSize(self) -> int"""
1718 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1720 def GetRowLabelSize(*args
, **kwargs
):
1721 """GetRowLabelSize(self) -> int"""
1722 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1724 def GetDefaultColLabelSize(*args
, **kwargs
):
1725 """GetDefaultColLabelSize(self) -> int"""
1726 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1728 def GetColLabelSize(*args
, **kwargs
):
1729 """GetColLabelSize(self) -> int"""
1730 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1732 def GetLabelBackgroundColour(*args
, **kwargs
):
1733 """GetLabelBackgroundColour(self) -> Colour"""
1734 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1736 def GetLabelTextColour(*args
, **kwargs
):
1737 """GetLabelTextColour(self) -> Colour"""
1738 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1740 def GetLabelFont(*args
, **kwargs
):
1741 """GetLabelFont(self) -> Font"""
1742 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1744 def GetRowLabelAlignment(*args
, **kwargs
):
1745 """GetRowLabelAlignment() -> (horiz, vert)"""
1746 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1748 def GetColLabelAlignment(*args
, **kwargs
):
1749 """GetColLabelAlignment() -> (horiz, vert)"""
1750 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1752 def GetColLabelTextOrientation(*args
, **kwargs
):
1753 """GetColLabelTextOrientation(self) -> int"""
1754 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1756 def GetRowLabelValue(*args
, **kwargs
):
1757 """GetRowLabelValue(self, int row) -> String"""
1758 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1760 def GetColLabelValue(*args
, **kwargs
):
1761 """GetColLabelValue(self, int col) -> String"""
1762 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1764 def GetGridLineColour(*args
, **kwargs
):
1765 """GetGridLineColour(self) -> Colour"""
1766 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1768 def GetCellHighlightColour(*args
, **kwargs
):
1769 """GetCellHighlightColour(self) -> Colour"""
1770 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1772 def GetCellHighlightPenWidth(*args
, **kwargs
):
1773 """GetCellHighlightPenWidth(self) -> int"""
1774 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1776 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1777 """GetCellHighlightROPenWidth(self) -> int"""
1778 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1780 def SetRowLabelSize(*args
, **kwargs
):
1781 """SetRowLabelSize(self, int width)"""
1782 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1784 def SetColLabelSize(*args
, **kwargs
):
1785 """SetColLabelSize(self, int height)"""
1786 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1788 def SetLabelBackgroundColour(*args
, **kwargs
):
1789 """SetLabelBackgroundColour(self, Colour ??)"""
1790 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1792 def SetLabelTextColour(*args
, **kwargs
):
1793 """SetLabelTextColour(self, Colour ??)"""
1794 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1796 def SetLabelFont(*args
, **kwargs
):
1797 """SetLabelFont(self, Font ??)"""
1798 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1800 def SetRowLabelAlignment(*args
, **kwargs
):
1801 """SetRowLabelAlignment(self, int horiz, int vert)"""
1802 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1804 def SetColLabelAlignment(*args
, **kwargs
):
1805 """SetColLabelAlignment(self, int horiz, int vert)"""
1806 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1808 def SetColLabelTextOrientation(*args
, **kwargs
):
1809 """SetColLabelTextOrientation(self, int textOrientation)"""
1810 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1812 def SetRowLabelValue(*args
, **kwargs
):
1813 """SetRowLabelValue(self, int row, String ??)"""
1814 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1816 def SetColLabelValue(*args
, **kwargs
):
1817 """SetColLabelValue(self, int col, String ??)"""
1818 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1820 def SetGridLineColour(*args
, **kwargs
):
1821 """SetGridLineColour(self, Colour ??)"""
1822 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1824 def SetCellHighlightColour(*args
, **kwargs
):
1825 """SetCellHighlightColour(self, Colour ??)"""
1826 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1828 def SetCellHighlightPenWidth(*args
, **kwargs
):
1829 """SetCellHighlightPenWidth(self, int width)"""
1830 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1832 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1833 """SetCellHighlightROPenWidth(self, int width)"""
1834 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1836 def EnableDragRowSize(*args
, **kwargs
):
1837 """EnableDragRowSize(self, bool enable=True)"""
1838 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1840 def DisableDragRowSize(*args
, **kwargs
):
1841 """DisableDragRowSize(self)"""
1842 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1844 def CanDragRowSize(*args
, **kwargs
):
1845 """CanDragRowSize(self) -> bool"""
1846 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1848 def EnableDragColSize(*args
, **kwargs
):
1849 """EnableDragColSize(self, bool enable=True)"""
1850 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1852 def DisableDragColSize(*args
, **kwargs
):
1853 """DisableDragColSize(self)"""
1854 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1856 def CanDragColSize(*args
, **kwargs
):
1857 """CanDragColSize(self) -> bool"""
1858 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1860 def EnableDragGridSize(*args
, **kwargs
):
1861 """EnableDragGridSize(self, bool enable=True)"""
1862 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1864 def DisableDragGridSize(*args
, **kwargs
):
1865 """DisableDragGridSize(self)"""
1866 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1868 def CanDragGridSize(*args
, **kwargs
):
1869 """CanDragGridSize(self) -> bool"""
1870 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1872 def EnableDragCell(*args
, **kwargs
):
1873 """EnableDragCell(self, bool enable=True)"""
1874 return _grid
.Grid_EnableDragCell(*args
, **kwargs
)
1876 def DisableDragCell(*args
, **kwargs
):
1877 """DisableDragCell(self)"""
1878 return _grid
.Grid_DisableDragCell(*args
, **kwargs
)
1880 def CanDragCell(*args
, **kwargs
):
1881 """CanDragCell(self) -> bool"""
1882 return _grid
.Grid_CanDragCell(*args
, **kwargs
)
1884 def SetAttr(*args
, **kwargs
):
1885 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1886 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1888 def SetRowAttr(*args
, **kwargs
):
1889 """SetRowAttr(self, int row, GridCellAttr attr)"""
1890 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1892 def SetColAttr(*args
, **kwargs
):
1893 """SetColAttr(self, int col, GridCellAttr attr)"""
1894 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1896 def GetOrCreateCellAttr(*args
, **kwargs
):
1897 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1898 return _grid
.Grid_GetOrCreateCellAttr(*args
, **kwargs
)
1900 def SetColFormatBool(*args
, **kwargs
):
1901 """SetColFormatBool(self, int col)"""
1902 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1904 def SetColFormatNumber(*args
, **kwargs
):
1905 """SetColFormatNumber(self, int col)"""
1906 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1908 def SetColFormatFloat(*args
, **kwargs
):
1909 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1910 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1912 def SetColFormatCustom(*args
, **kwargs
):
1913 """SetColFormatCustom(self, int col, String typeName)"""
1914 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1916 def EnableGridLines(*args
, **kwargs
):
1917 """EnableGridLines(self, bool enable=True)"""
1918 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1920 def GridLinesEnabled(*args
, **kwargs
):
1921 """GridLinesEnabled(self) -> bool"""
1922 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1924 def GetDefaultRowSize(*args
, **kwargs
):
1925 """GetDefaultRowSize(self) -> int"""
1926 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1928 def GetRowSize(*args
, **kwargs
):
1929 """GetRowSize(self, int row) -> int"""
1930 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1932 def GetDefaultColSize(*args
, **kwargs
):
1933 """GetDefaultColSize(self) -> int"""
1934 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1936 def GetColSize(*args
, **kwargs
):
1937 """GetColSize(self, int col) -> int"""
1938 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1940 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1941 """GetDefaultCellBackgroundColour(self) -> Colour"""
1942 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1944 def GetCellBackgroundColour(*args
, **kwargs
):
1945 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1946 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1948 def GetDefaultCellTextColour(*args
, **kwargs
):
1949 """GetDefaultCellTextColour(self) -> Colour"""
1950 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1952 def GetCellTextColour(*args
, **kwargs
):
1953 """GetCellTextColour(self, int row, int col) -> Colour"""
1954 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1956 def GetDefaultCellFont(*args
, **kwargs
):
1957 """GetDefaultCellFont(self) -> Font"""
1958 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1960 def GetCellFont(*args
, **kwargs
):
1961 """GetCellFont(self, int row, int col) -> Font"""
1962 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1964 def GetDefaultCellAlignment(*args
, **kwargs
):
1965 """GetDefaultCellAlignment() -> (horiz, vert)"""
1966 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1968 def GetCellAlignment(*args
, **kwargs
):
1969 """GetCellAlignment() -> (horiz, vert)"""
1970 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1972 def GetDefaultCellOverflow(*args
, **kwargs
):
1973 """GetDefaultCellOverflow(self) -> bool"""
1974 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1976 def GetCellOverflow(*args
, **kwargs
):
1977 """GetCellOverflow(self, int row, int col) -> bool"""
1978 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1980 def GetCellSize(*args
, **kwargs
):
1981 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1982 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1984 def SetDefaultRowSize(*args
, **kwargs
):
1985 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1986 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1988 def SetRowSize(*args
, **kwargs
):
1989 """SetRowSize(self, int row, int height)"""
1990 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1992 def SetDefaultColSize(*args
, **kwargs
):
1993 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1994 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1996 def SetColSize(*args
, **kwargs
):
1997 """SetColSize(self, int col, int width)"""
1998 return _grid
.Grid_SetColSize(*args
, **kwargs
)
2000 def AutoSizeColumn(*args
, **kwargs
):
2001 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
2002 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
2004 def AutoSizeRow(*args
, **kwargs
):
2005 """AutoSizeRow(self, int row, bool setAsMin=True)"""
2006 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
2008 def AutoSizeColumns(*args
, **kwargs
):
2009 """AutoSizeColumns(self, bool setAsMin=True)"""
2010 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
2012 def AutoSizeRows(*args
, **kwargs
):
2013 """AutoSizeRows(self, bool setAsMin=True)"""
2014 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
2016 def AutoSize(*args
, **kwargs
):
2017 """AutoSize(self)"""
2018 return _grid
.Grid_AutoSize(*args
, **kwargs
)
2020 def AutoSizeRowLabelSize(*args
, **kwargs
):
2021 """AutoSizeRowLabelSize(self, int row)"""
2022 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
2024 def AutoSizeColLabelSize(*args
, **kwargs
):
2025 """AutoSizeColLabelSize(self, int col)"""
2026 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
2028 def SetColMinimalWidth(*args
, **kwargs
):
2029 """SetColMinimalWidth(self, int col, int width)"""
2030 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
2032 def SetRowMinimalHeight(*args
, **kwargs
):
2033 """SetRowMinimalHeight(self, int row, int width)"""
2034 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
2036 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
2037 """SetColMinimalAcceptableWidth(self, int width)"""
2038 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
2040 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
2041 """SetRowMinimalAcceptableHeight(self, int width)"""
2042 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
2044 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
2045 """GetColMinimalAcceptableWidth(self) -> int"""
2046 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
2048 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
2049 """GetRowMinimalAcceptableHeight(self) -> int"""
2050 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
2052 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
2053 """SetDefaultCellBackgroundColour(self, Colour ??)"""
2054 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
2056 def SetCellBackgroundColour(*args
, **kwargs
):
2057 """SetCellBackgroundColour(self, int row, int col, Colour ??)"""
2058 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
2060 def SetDefaultCellTextColour(*args
, **kwargs
):
2061 """SetDefaultCellTextColour(self, Colour ??)"""
2062 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
2064 def SetCellTextColour(*args
, **kwargs
):
2065 """SetCellTextColour(self, int row, int col, Colour ??)"""
2066 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
2068 def SetDefaultCellFont(*args
, **kwargs
):
2069 """SetDefaultCellFont(self, Font ??)"""
2070 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
2072 def SetCellFont(*args
, **kwargs
):
2073 """SetCellFont(self, int row, int col, Font ??)"""
2074 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
2076 def SetDefaultCellAlignment(*args
, **kwargs
):
2077 """SetDefaultCellAlignment(self, int horiz, int vert)"""
2078 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
2080 def SetCellAlignment(*args
, **kwargs
):
2081 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
2082 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
2084 def SetDefaultCellOverflow(*args
, **kwargs
):
2085 """SetDefaultCellOverflow(self, bool allow)"""
2086 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
2088 def SetCellOverflow(*args
, **kwargs
):
2089 """SetCellOverflow(self, int row, int col, bool allow)"""
2090 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
2092 def SetCellSize(*args
, **kwargs
):
2093 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
2094 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
2096 def SetDefaultRenderer(*args
, **kwargs
):
2097 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
2098 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
2100 def SetCellRenderer(*args
, **kwargs
):
2101 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
2102 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
2104 def GetDefaultRenderer(*args
, **kwargs
):
2105 """GetDefaultRenderer(self) -> GridCellRenderer"""
2106 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
2108 def GetCellRenderer(*args
, **kwargs
):
2109 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
2110 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
2112 def SetDefaultEditor(*args
, **kwargs
):
2113 """SetDefaultEditor(self, GridCellEditor editor)"""
2114 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
2116 def SetCellEditor(*args
, **kwargs
):
2117 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
2118 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
2120 def GetDefaultEditor(*args
, **kwargs
):
2121 """GetDefaultEditor(self) -> GridCellEditor"""
2122 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
2124 def GetCellEditor(*args
, **kwargs
):
2125 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
2126 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
2128 def GetCellValue(*args
, **kwargs
):
2129 """GetCellValue(self, int row, int col) -> String"""
2130 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
2132 def SetCellValue(*args
, **kwargs
):
2133 """SetCellValue(self, int row, int col, String s)"""
2134 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
2136 def IsReadOnly(*args
, **kwargs
):
2137 """IsReadOnly(self, int row, int col) -> bool"""
2138 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
2140 def SetReadOnly(*args
, **kwargs
):
2141 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
2142 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
2144 def SelectRow(*args
, **kwargs
):
2145 """SelectRow(self, int row, bool addToSelected=False)"""
2146 return _grid
.Grid_SelectRow(*args
, **kwargs
)
2148 def SelectCol(*args
, **kwargs
):
2149 """SelectCol(self, int col, bool addToSelected=False)"""
2150 return _grid
.Grid_SelectCol(*args
, **kwargs
)
2152 def SelectBlock(*args
, **kwargs
):
2154 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
2155 bool addToSelected=False)
2157 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
2159 def SelectAll(*args
, **kwargs
):
2160 """SelectAll(self)"""
2161 return _grid
.Grid_SelectAll(*args
, **kwargs
)
2163 def IsSelection(*args
, **kwargs
):
2164 """IsSelection(self) -> bool"""
2165 return _grid
.Grid_IsSelection(*args
, **kwargs
)
2167 def ClearSelection(*args
, **kwargs
):
2168 """ClearSelection(self)"""
2169 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
2171 def IsInSelection(*args
, **kwargs
):
2172 """IsInSelection(self, int row, int col) -> bool"""
2173 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
2175 def GetSelectedCells(*args
, **kwargs
):
2176 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
2177 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
2179 def GetSelectionBlockTopLeft(*args
, **kwargs
):
2180 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
2181 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
2183 def GetSelectionBlockBottomRight(*args
, **kwargs
):
2184 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
2185 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
2187 def GetSelectedRows(*args
, **kwargs
):
2188 """GetSelectedRows(self) -> wxArrayInt"""
2189 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
2191 def GetSelectedCols(*args
, **kwargs
):
2192 """GetSelectedCols(self) -> wxArrayInt"""
2193 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
2195 def DeselectRow(*args
, **kwargs
):
2196 """DeselectRow(self, int row)"""
2197 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
2199 def DeselectCol(*args
, **kwargs
):
2200 """DeselectCol(self, int col)"""
2201 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
2203 def DeselectCell(*args
, **kwargs
):
2204 """DeselectCell(self, int row, int col)"""
2205 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
2207 def BlockToDeviceRect(*args
, **kwargs
):
2208 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
2209 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
2211 def GetSelectionBackground(*args
, **kwargs
):
2212 """GetSelectionBackground(self) -> Colour"""
2213 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
2215 def GetSelectionForeground(*args
, **kwargs
):
2216 """GetSelectionForeground(self) -> Colour"""
2217 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
2219 def SetSelectionBackground(*args
, **kwargs
):
2220 """SetSelectionBackground(self, Colour c)"""
2221 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
2223 def SetSelectionForeground(*args
, **kwargs
):
2224 """SetSelectionForeground(self, Colour c)"""
2225 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
2227 def RegisterDataType(*args
, **kwargs
):
2228 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
2229 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
2231 def GetDefaultEditorForCell(*args
, **kwargs
):
2232 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
2233 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
2235 def GetDefaultRendererForCell(*args
, **kwargs
):
2236 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
2237 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
2239 def GetDefaultEditorForType(*args
, **kwargs
):
2240 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
2241 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
2243 def GetDefaultRendererForType(*args
, **kwargs
):
2244 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
2245 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
2247 def SetMargins(*args
, **kwargs
):
2248 """SetMargins(self, int extraWidth, int extraHeight)"""
2249 return _grid
.Grid_SetMargins(*args
, **kwargs
)
2251 def GetGridWindow(*args
, **kwargs
):
2252 """GetGridWindow(self) -> Window"""
2253 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
2255 def GetGridRowLabelWindow(*args
, **kwargs
):
2256 """GetGridRowLabelWindow(self) -> Window"""
2257 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
2259 def GetGridColLabelWindow(*args
, **kwargs
):
2260 """GetGridColLabelWindow(self) -> Window"""
2261 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
2263 def GetGridCornerLabelWindow(*args
, **kwargs
):
2264 """GetGridCornerLabelWindow(self) -> Window"""
2265 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
2267 def SetScrollLineX(*args
, **kwargs
):
2268 """SetScrollLineX(self, int x)"""
2269 return _grid
.Grid_SetScrollLineX(*args
, **kwargs
)
2271 def SetScrollLineY(*args
, **kwargs
):
2272 """SetScrollLineY(self, int y)"""
2273 return _grid
.Grid_SetScrollLineY(*args
, **kwargs
)
2275 def GetScrollLineX(*args
, **kwargs
):
2276 """GetScrollLineX(self) -> int"""
2277 return _grid
.Grid_GetScrollLineX(*args
, **kwargs
)
2279 def GetScrollLineY(*args
, **kwargs
):
2280 """GetScrollLineY(self) -> int"""
2281 return _grid
.Grid_GetScrollLineY(*args
, **kwargs
)
2283 def GetScrollX(*args
, **kwargs
):
2284 """GetScrollX(self, int x) -> int"""
2285 return _grid
.Grid_GetScrollX(*args
, **kwargs
)
2287 def GetScrollY(*args
, **kwargs
):
2288 """GetScrollY(self, int y) -> int"""
2289 return _grid
.Grid_GetScrollY(*args
, **kwargs
)
2291 def GetClassDefaultAttributes(*args
, **kwargs
):
2293 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2295 Get the default attributes for this class. This is useful if you want
2296 to use the same font or colour in your own control as in a standard
2297 control -- which is a much better idea than hard coding specific
2298 colours or fonts which might look completely out of place on the
2299 user's system, especially if it uses themes.
2301 The variant parameter is only relevant under Mac currently and is
2302 ignore under other platforms. Under Mac, it will change the size of
2303 the returned font. See `wx.Window.SetWindowVariant` for more about
2306 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2308 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2310 class GridPtr(Grid
):
2311 def __init__(self
, this
):
2313 if not hasattr(self
,"thisown"): self
.thisown
= 0
2314 self
.__class
__ = Grid
2315 _grid
.Grid_swigregister(GridPtr
)
2317 def PreGrid(*args
, **kwargs
):
2318 """PreGrid() -> Grid"""
2319 val
= _grid
.new_PreGrid(*args
, **kwargs
)
2323 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
2325 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2327 Get the default attributes for this class. This is useful if you want
2328 to use the same font or colour in your own control as in a standard
2329 control -- which is a much better idea than hard coding specific
2330 colours or fonts which might look completely out of place on the
2331 user's system, especially if it uses themes.
2333 The variant parameter is only relevant under Mac currently and is
2334 ignore under other platforms. Under Mac, it will change the size of
2335 the returned font. See `wx.Window.SetWindowVariant` for more about
2338 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2340 class GridEvent(_core
.NotifyEvent
):
2341 """Proxy of C++ GridEvent class"""
2343 return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2344 def __init__(self
, *args
, **kwargs
):
2346 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2347 int x=-1, int y=-1, bool sel=True, bool control=False,
2348 bool shift=False, bool alt=False,
2349 bool meta=False) -> GridEvent
2351 newobj
= _grid
.new_GridEvent(*args
, **kwargs
)
2352 self
.this
= newobj
.this
2355 def GetRow(*args
, **kwargs
):
2356 """GetRow(self) -> int"""
2357 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2359 def GetCol(*args
, **kwargs
):
2360 """GetCol(self) -> int"""
2361 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2363 def GetPosition(*args
, **kwargs
):
2364 """GetPosition(self) -> Point"""
2365 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2367 def Selecting(*args
, **kwargs
):
2368 """Selecting(self) -> bool"""
2369 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2371 def ControlDown(*args
, **kwargs
):
2372 """ControlDown(self) -> bool"""
2373 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2375 def MetaDown(*args
, **kwargs
):
2376 """MetaDown(self) -> bool"""
2377 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2379 def ShiftDown(*args
, **kwargs
):
2380 """ShiftDown(self) -> bool"""
2381 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2383 def AltDown(*args
, **kwargs
):
2384 """AltDown(self) -> bool"""
2385 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2388 class GridEventPtr(GridEvent
):
2389 def __init__(self
, this
):
2391 if not hasattr(self
,"thisown"): self
.thisown
= 0
2392 self
.__class
__ = GridEvent
2393 _grid
.GridEvent_swigregister(GridEventPtr
)
2395 class GridSizeEvent(_core
.NotifyEvent
):
2396 """Proxy of C++ GridSizeEvent class"""
2398 return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2399 def __init__(self
, *args
, **kwargs
):
2401 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2402 int x=-1, int y=-1, bool control=False, bool shift=False,
2403 bool alt=False, bool meta=False) -> GridSizeEvent
2405 newobj
= _grid
.new_GridSizeEvent(*args
, **kwargs
)
2406 self
.this
= newobj
.this
2409 def GetRowOrCol(*args
, **kwargs
):
2410 """GetRowOrCol(self) -> int"""
2411 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2413 def GetPosition(*args
, **kwargs
):
2414 """GetPosition(self) -> Point"""
2415 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2417 def ControlDown(*args
, **kwargs
):
2418 """ControlDown(self) -> bool"""
2419 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2421 def MetaDown(*args
, **kwargs
):
2422 """MetaDown(self) -> bool"""
2423 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2425 def ShiftDown(*args
, **kwargs
):
2426 """ShiftDown(self) -> bool"""
2427 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2429 def AltDown(*args
, **kwargs
):
2430 """AltDown(self) -> bool"""
2431 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2434 class GridSizeEventPtr(GridSizeEvent
):
2435 def __init__(self
, this
):
2437 if not hasattr(self
,"thisown"): self
.thisown
= 0
2438 self
.__class
__ = GridSizeEvent
2439 _grid
.GridSizeEvent_swigregister(GridSizeEventPtr
)
2441 class GridRangeSelectEvent(_core
.NotifyEvent
):
2442 """Proxy of C++ GridRangeSelectEvent class"""
2444 return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2445 def __init__(self
, *args
, **kwargs
):
2447 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2448 GridCellCoords bottomRight, bool sel=True,
2449 bool control=False, bool shift=False,
2450 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2452 newobj
= _grid
.new_GridRangeSelectEvent(*args
, **kwargs
)
2453 self
.this
= newobj
.this
2456 def GetTopLeftCoords(*args
, **kwargs
):
2457 """GetTopLeftCoords(self) -> GridCellCoords"""
2458 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2460 def GetBottomRightCoords(*args
, **kwargs
):
2461 """GetBottomRightCoords(self) -> GridCellCoords"""
2462 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2464 def GetTopRow(*args
, **kwargs
):
2465 """GetTopRow(self) -> int"""
2466 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2468 def GetBottomRow(*args
, **kwargs
):
2469 """GetBottomRow(self) -> int"""
2470 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2472 def GetLeftCol(*args
, **kwargs
):
2473 """GetLeftCol(self) -> int"""
2474 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2476 def GetRightCol(*args
, **kwargs
):
2477 """GetRightCol(self) -> int"""
2478 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2480 def Selecting(*args
, **kwargs
):
2481 """Selecting(self) -> bool"""
2482 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2484 def ControlDown(*args
, **kwargs
):
2485 """ControlDown(self) -> bool"""
2486 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2488 def MetaDown(*args
, **kwargs
):
2489 """MetaDown(self) -> bool"""
2490 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2492 def ShiftDown(*args
, **kwargs
):
2493 """ShiftDown(self) -> bool"""
2494 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2496 def AltDown(*args
, **kwargs
):
2497 """AltDown(self) -> bool"""
2498 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2501 class GridRangeSelectEventPtr(GridRangeSelectEvent
):
2502 def __init__(self
, this
):
2504 if not hasattr(self
,"thisown"): self
.thisown
= 0
2505 self
.__class
__ = GridRangeSelectEvent
2506 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr
)
2508 class GridEditorCreatedEvent(_core
.CommandEvent
):
2509 """Proxy of C++ GridEditorCreatedEvent class"""
2511 return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2512 def __init__(self
, *args
, **kwargs
):
2514 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2515 Control ctrl) -> GridEditorCreatedEvent
2517 newobj
= _grid
.new_GridEditorCreatedEvent(*args
, **kwargs
)
2518 self
.this
= newobj
.this
2521 def GetRow(*args
, **kwargs
):
2522 """GetRow(self) -> int"""
2523 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2525 def GetCol(*args
, **kwargs
):
2526 """GetCol(self) -> int"""
2527 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2529 def GetControl(*args
, **kwargs
):
2530 """GetControl(self) -> Control"""
2531 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2533 def SetRow(*args
, **kwargs
):
2534 """SetRow(self, int row)"""
2535 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2537 def SetCol(*args
, **kwargs
):
2538 """SetCol(self, int col)"""
2539 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2541 def SetControl(*args
, **kwargs
):
2542 """SetControl(self, Control ctrl)"""
2543 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2546 class GridEditorCreatedEventPtr(GridEditorCreatedEvent
):
2547 def __init__(self
, this
):
2549 if not hasattr(self
,"thisown"): self
.thisown
= 0
2550 self
.__class
__ = GridEditorCreatedEvent
2551 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr
)
2553 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2554 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2555 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2556 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2557 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2558 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2559 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2560 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2561 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2562 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2563 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2564 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2565 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2566 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2567 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2568 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2569 wxEVT_GRID_CELL_BEGIN_DRAG
= _grid
.wxEVT_GRID_CELL_BEGIN_DRAG
2570 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2571 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2572 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2573 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2574 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2575 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2576 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2577 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2578 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2579 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2580 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2581 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2582 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2583 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2584 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2585 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)
2586 EVT_GRID_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
)
2589 # The same as above but with the ability to specify an identifier
2590 EVT_GRID_CMD_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
, 1 )
2591 EVT_GRID_CMD_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
, 1 )
2592 EVT_GRID_CMD_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
, 1 )
2593 EVT_GRID_CMD_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
, 1 )
2594 EVT_GRID_CMD_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
, 1 )
2595 EVT_GRID_CMD_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
, 1 )
2596 EVT_GRID_CMD_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
, 1 )
2597 EVT_GRID_CMD_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
, 1 )
2598 EVT_GRID_CMD_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
, 1 )
2599 EVT_GRID_CMD_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
, 1 )
2600 EVT_GRID_CMD_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
, 1 )
2601 EVT_GRID_CMD_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
, 1 )
2602 EVT_GRID_CMD_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
, 1 )
2603 EVT_GRID_CMD_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
, 1 )
2604 EVT_GRID_CMD_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
, 1 )
2605 EVT_GRID_CMD_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
, 1 )
2606 EVT_GRID_CMD_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
, 1 )