1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for implementing a spreadsheet-like control.
10 new_instancemethod
= new
.instancemethod
11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if (name
== "thisown"): return self
.this
.own(value
)
14 if type(value
).__name
__ == 'PySwigObject':
15 self
.__dict
__[name
] = value
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
):
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 if (name
== "thisown"): return self
.this
.own()
29 method
= class_type
.__swig
_getmethods
__.get(name
,None)
30 if method
: return method(self
)
31 raise AttributeError,name
34 try: strthis
= "proxy of " + self
.this
.__repr
__()
36 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
40 _object
= types
.ObjectType
42 except AttributeError:
48 def _swig_setattr_nondynamic_method(set):
49 def set_attr(self
,name
,value
):
50 if (name
== "thisown"): return self
.this
.own(value
)
51 if hasattr(self
,name
) or (name
== "this"):
54 raise AttributeError("You cannot add attributes to %s" % self
)
61 __docfilter__
= wx
.__DocFilter
(globals())
62 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
63 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
64 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
65 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
66 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
67 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
68 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
69 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
70 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
71 GRID_DEFAULT_NUMBER_ROWS
= _grid
.GRID_DEFAULT_NUMBER_ROWS
72 GRID_DEFAULT_NUMBER_COLS
= _grid
.GRID_DEFAULT_NUMBER_COLS
73 GRID_DEFAULT_ROW_HEIGHT
= _grid
.GRID_DEFAULT_ROW_HEIGHT
74 GRID_DEFAULT_COL_WIDTH
= _grid
.GRID_DEFAULT_COL_WIDTH
75 GRID_DEFAULT_COL_LABEL_HEIGHT
= _grid
.GRID_DEFAULT_COL_LABEL_HEIGHT
76 GRID_DEFAULT_ROW_LABEL_WIDTH
= _grid
.GRID_DEFAULT_ROW_LABEL_WIDTH
77 GRID_LABEL_EDGE_ZONE
= _grid
.GRID_LABEL_EDGE_ZONE
78 GRID_MIN_ROW_HEIGHT
= _grid
.GRID_MIN_ROW_HEIGHT
79 GRID_MIN_COL_WIDTH
= _grid
.GRID_MIN_COL_WIDTH
80 GRID_DEFAULT_SCROLLBAR_WIDTH
= _grid
.GRID_DEFAULT_SCROLLBAR_WIDTH
81 class GridCellWorker(object):
82 """Proxy of C++ GridCellWorker class"""
83 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
84 def __init__(self
): raise AttributeError, "No constructor defined"
86 def _setOORInfo(*args
, **kwargs
):
87 """_setOORInfo(self, PyObject _self)"""
88 return _grid
.GridCellWorker__setOORInfo(*args
, **kwargs
)
90 __swig_destroy__
= _grid
.delete_GridCellWorker
91 __del__
= lambda self
: None;
92 def SetParameters(*args
, **kwargs
):
93 """SetParameters(self, String params)"""
94 return _grid
.GridCellWorker_SetParameters(*args
, **kwargs
)
96 def IncRef(*args
, **kwargs
):
98 return _grid
.GridCellWorker_IncRef(*args
, **kwargs
)
100 def DecRef(*args
, **kwargs
):
102 return _grid
.GridCellWorker_DecRef(*args
, **kwargs
)
104 _grid
.GridCellWorker_swigregister(GridCellWorker
)
106 GridNoCellCoords
= cvar
.GridNoCellCoords
107 GridNoCellRect
= cvar
.GridNoCellRect
109 class GridCellRenderer(GridCellWorker
):
110 """Proxy of C++ GridCellRenderer class"""
111 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
112 def __init__(self
): raise AttributeError, "No constructor defined"
113 __repr__
= _swig_repr
114 _grid
.GridCellRenderer_swigregister(GridCellRenderer
)
116 class PyGridCellRenderer(GridCellRenderer
):
117 """Proxy of C++ PyGridCellRenderer class"""
118 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
119 __repr__
= _swig_repr
120 def __init__(self
, *args
, **kwargs
):
121 """__init__(self) -> PyGridCellRenderer"""
122 _grid
.PyGridCellRenderer_swiginit(self
,_grid
.new_PyGridCellRenderer(*args
, **kwargs
))
123 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
125 def _setCallbackInfo(*args
, **kwargs
):
126 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
127 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
129 def SetParameters(*args
, **kwargs
):
130 """SetParameters(self, String params)"""
131 return _grid
.PyGridCellRenderer_SetParameters(*args
, **kwargs
)
133 def base_SetParameters(*args
, **kw
):
134 return PyGridCellRenderer
.SetParameters(*args
, **kw
)
135 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
136 "Please use PyGridCellRenderer.SetParameters instead.")
138 _grid
.PyGridCellRenderer_swigregister(PyGridCellRenderer
)
140 class GridCellStringRenderer(GridCellRenderer
):
141 """Proxy of C++ GridCellStringRenderer class"""
142 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
143 __repr__
= _swig_repr
144 def __init__(self
, *args
, **kwargs
):
145 """__init__(self) -> GridCellStringRenderer"""
146 _grid
.GridCellStringRenderer_swiginit(self
,_grid
.new_GridCellStringRenderer(*args
, **kwargs
))
147 self
._setOORInfo
(self
)
149 _grid
.GridCellStringRenderer_swigregister(GridCellStringRenderer
)
151 class GridCellNumberRenderer(GridCellStringRenderer
):
152 """Proxy of C++ GridCellNumberRenderer class"""
153 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
154 __repr__
= _swig_repr
155 def __init__(self
, *args
, **kwargs
):
156 """__init__(self) -> GridCellNumberRenderer"""
157 _grid
.GridCellNumberRenderer_swiginit(self
,_grid
.new_GridCellNumberRenderer(*args
, **kwargs
))
158 self
._setOORInfo
(self
)
160 _grid
.GridCellNumberRenderer_swigregister(GridCellNumberRenderer
)
162 class GridCellFloatRenderer(GridCellStringRenderer
):
163 """Proxy of C++ GridCellFloatRenderer class"""
164 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
165 __repr__
= _swig_repr
166 def __init__(self
, *args
, **kwargs
):
167 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
168 _grid
.GridCellFloatRenderer_swiginit(self
,_grid
.new_GridCellFloatRenderer(*args
, **kwargs
))
169 self
._setOORInfo
(self
)
171 def GetWidth(*args
, **kwargs
):
172 """GetWidth(self) -> int"""
173 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
175 def SetWidth(*args
, **kwargs
):
176 """SetWidth(self, int width)"""
177 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
179 def GetPrecision(*args
, **kwargs
):
180 """GetPrecision(self) -> int"""
181 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
183 def SetPrecision(*args
, **kwargs
):
184 """SetPrecision(self, int precision)"""
185 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
187 _grid
.GridCellFloatRenderer_swigregister(GridCellFloatRenderer
)
189 class GridCellBoolRenderer(GridCellRenderer
):
190 """Proxy of C++ GridCellBoolRenderer class"""
191 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
192 __repr__
= _swig_repr
193 def __init__(self
, *args
, **kwargs
):
194 """__init__(self) -> GridCellBoolRenderer"""
195 _grid
.GridCellBoolRenderer_swiginit(self
,_grid
.new_GridCellBoolRenderer(*args
, **kwargs
))
196 self
._setOORInfo
(self
)
198 _grid
.GridCellBoolRenderer_swigregister(GridCellBoolRenderer
)
200 class GridCellDateTimeRenderer(GridCellStringRenderer
):
201 """Proxy of C++ GridCellDateTimeRenderer class"""
202 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
203 __repr__
= _swig_repr
204 def __init__(self
, *args
, **kwargs
):
205 """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
206 _grid
.GridCellDateTimeRenderer_swiginit(self
,_grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
))
207 self
._setOORInfo
(self
)
209 _grid
.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer
)
211 class GridCellEnumRenderer(GridCellStringRenderer
):
212 """Proxy of C++ GridCellEnumRenderer class"""
213 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
214 __repr__
= _swig_repr
215 def __init__(self
, *args
, **kwargs
):
216 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
217 _grid
.GridCellEnumRenderer_swiginit(self
,_grid
.new_GridCellEnumRenderer(*args
, **kwargs
))
218 self
._setOORInfo
(self
)
220 _grid
.GridCellEnumRenderer_swigregister(GridCellEnumRenderer
)
222 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
223 """Proxy of C++ GridCellAutoWrapStringRenderer class"""
224 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
225 __repr__
= _swig_repr
226 def __init__(self
, *args
, **kwargs
):
227 """__init__(self) -> GridCellAutoWrapStringRenderer"""
228 _grid
.GridCellAutoWrapStringRenderer_swiginit(self
,_grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
))
229 self
._setOORInfo
(self
)
231 _grid
.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer
)
233 class GridCellEditor(GridCellWorker
):
234 """Proxy of C++ GridCellEditor class"""
235 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
236 def __init__(self
): raise AttributeError, "No constructor defined"
237 __repr__
= _swig_repr
238 def IsCreated(*args
, **kwargs
):
239 """IsCreated(self) -> bool"""
240 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
242 def GetControl(*args
, **kwargs
):
243 """GetControl(self) -> Control"""
244 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
246 def SetControl(*args
, **kwargs
):
247 """SetControl(self, Control control)"""
248 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
250 def GetCellAttr(*args
, **kwargs
):
251 """GetCellAttr(self) -> GridCellAttr"""
252 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
254 def SetCellAttr(*args
, **kwargs
):
255 """SetCellAttr(self, GridCellAttr attr)"""
256 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
258 def Create(*args
, **kwargs
):
259 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
260 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
262 def BeginEdit(*args
, **kwargs
):
263 """BeginEdit(self, int row, int col, Grid grid)"""
264 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
266 def EndEdit(*args
, **kwargs
):
267 """EndEdit(self, int row, int col, Grid grid) -> bool"""
268 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
270 def Reset(*args
, **kwargs
):
272 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
274 def Clone(*args
, **kwargs
):
275 """Clone(self) -> GridCellEditor"""
276 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
278 def SetSize(*args
, **kwargs
):
279 """SetSize(self, Rect rect)"""
280 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
282 def Show(*args
, **kwargs
):
283 """Show(self, bool show, GridCellAttr attr=None)"""
284 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
286 def PaintBackground(*args
, **kwargs
):
287 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
288 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
290 def IsAcceptedKey(*args
, **kwargs
):
291 """IsAcceptedKey(self, KeyEvent event) -> bool"""
292 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
294 def StartingKey(*args
, **kwargs
):
295 """StartingKey(self, KeyEvent event)"""
296 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
298 def StartingClick(*args
, **kwargs
):
299 """StartingClick(self)"""
300 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
302 def HandleReturn(*args
, **kwargs
):
303 """HandleReturn(self, KeyEvent event)"""
304 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
306 def Destroy(*args
, **kwargs
):
308 val
= _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
312 _grid
.GridCellEditor_swigregister(GridCellEditor
)
314 class PyGridCellEditor(GridCellEditor
):
315 """Proxy of C++ PyGridCellEditor class"""
316 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
317 __repr__
= _swig_repr
318 def __init__(self
, *args
, **kwargs
):
319 """__init__(self) -> PyGridCellEditor"""
320 _grid
.PyGridCellEditor_swiginit(self
,_grid
.new_PyGridCellEditor(*args
, **kwargs
))
321 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
323 def _setCallbackInfo(*args
, **kwargs
):
324 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
325 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
327 def SetParameters(*args
, **kwargs
):
328 """SetParameters(self, String params)"""
329 return _grid
.PyGridCellEditor_SetParameters(*args
, **kwargs
)
331 def base_SetSize(*args
, **kw
):
332 return PyGridCellEditor
.SetSize(*args
, **kw
)
333 base_SetSize
= wx
._deprecated
(base_SetSize
,
334 "Please use PyGridCellEditor.SetSize instead.")
336 def base_Show(*args
, **kw
):
337 return PyGridCellEditor
.Show(*args
, **kw
)
338 base_Show
= wx
._deprecated
(base_Show
,
339 "Please use PyGridCellEditor.Show instead.")
341 def base_PaintBackground(*args
, **kw
):
342 return PyGridCellEditor
.PaintBackground(*args
, **kw
)
343 base_PaintBackground
= wx
._deprecated
(base_PaintBackground
,
344 "Please use PyGridCellEditor.PaintBackground instead.")
346 def base_IsAcceptedKey(*args
, **kw
):
347 return PyGridCellEditor
.IsAcceptedKey(*args
, **kw
)
348 base_IsAcceptedKey
= wx
._deprecated
(base_IsAcceptedKey
,
349 "Please use PyGridCellEditor.IsAcceptedKey instead.")
351 def base_StartingKey(*args
, **kw
):
352 return PyGridCellEditor
.StartingKey(*args
, **kw
)
353 base_StartingKey
= wx
._deprecated
(base_StartingKey
,
354 "Please use PyGridCellEditor.StartingKey instead.")
356 def base_StartingClick(*args
, **kw
):
357 return PyGridCellEditor
.StartingClick(*args
, **kw
)
358 base_StartingClick
= wx
._deprecated
(base_StartingClick
,
359 "Please use PyGridCellEditor.StartingClick instead.")
361 def base_HandleReturn(*args
, **kw
):
362 return PyGridCellEditor
.HandleReturn(*args
, **kw
)
363 base_HandleReturn
= wx
._deprecated
(base_HandleReturn
,
364 "Please use PyGridCellEditor.HandleReturn instead.")
366 def base_Destroy(*args
, **kw
):
367 return PyGridCellEditor
.Destroy(*args
, **kw
)
368 base_Destroy
= wx
._deprecated
(base_Destroy
,
369 "Please use PyGridCellEditor.Destroy instead.")
371 def base_SetParameters(*args
, **kw
):
372 return PyGridCellEditor
.SetParameters(*args
, **kw
)
373 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
374 "Please use PyGridCellEditor.SetParameters instead.")
376 _grid
.PyGridCellEditor_swigregister(PyGridCellEditor
)
378 class GridCellTextEditor(GridCellEditor
):
379 """Proxy of C++ GridCellTextEditor class"""
380 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
381 __repr__
= _swig_repr
382 def __init__(self
, *args
, **kwargs
):
383 """__init__(self) -> GridCellTextEditor"""
384 _grid
.GridCellTextEditor_swiginit(self
,_grid
.new_GridCellTextEditor(*args
, **kwargs
))
385 self
._setOORInfo
(self
)
387 def GetValue(*args
, **kwargs
):
388 """GetValue(self) -> String"""
389 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
391 _grid
.GridCellTextEditor_swigregister(GridCellTextEditor
)
393 class GridCellNumberEditor(GridCellTextEditor
):
394 """Proxy of C++ GridCellNumberEditor class"""
395 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
396 __repr__
= _swig_repr
397 def __init__(self
, *args
, **kwargs
):
398 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
399 _grid
.GridCellNumberEditor_swiginit(self
,_grid
.new_GridCellNumberEditor(*args
, **kwargs
))
400 self
._setOORInfo
(self
)
402 _grid
.GridCellNumberEditor_swigregister(GridCellNumberEditor
)
404 class GridCellFloatEditor(GridCellTextEditor
):
405 """Proxy of C++ GridCellFloatEditor class"""
406 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
407 __repr__
= _swig_repr
408 def __init__(self
, *args
, **kwargs
):
409 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
410 _grid
.GridCellFloatEditor_swiginit(self
,_grid
.new_GridCellFloatEditor(*args
, **kwargs
))
411 self
._setOORInfo
(self
)
413 _grid
.GridCellFloatEditor_swigregister(GridCellFloatEditor
)
415 class GridCellBoolEditor(GridCellEditor
):
416 """Proxy of C++ GridCellBoolEditor class"""
417 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
418 __repr__
= _swig_repr
419 def __init__(self
, *args
, **kwargs
):
420 """__init__(self) -> GridCellBoolEditor"""
421 _grid
.GridCellBoolEditor_swiginit(self
,_grid
.new_GridCellBoolEditor(*args
, **kwargs
))
422 self
._setOORInfo
(self
)
424 def GetValue(*args
, **kwargs
):
425 """GetValue(self) -> String"""
426 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
428 _grid
.GridCellBoolEditor_swigregister(GridCellBoolEditor
)
430 class GridCellChoiceEditor(GridCellEditor
):
431 """Proxy of C++ GridCellChoiceEditor class"""
432 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
433 __repr__
= _swig_repr
434 def __init__(self
, *args
, **kwargs
):
435 """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
436 _grid
.GridCellChoiceEditor_swiginit(self
,_grid
.new_GridCellChoiceEditor(*args
, **kwargs
))
437 self
._setOORInfo
(self
)
439 def GetValue(*args
, **kwargs
):
440 """GetValue(self) -> String"""
441 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
443 _grid
.GridCellChoiceEditor_swigregister(GridCellChoiceEditor
)
445 class GridCellEnumEditor(GridCellChoiceEditor
):
446 """Proxy of C++ GridCellEnumEditor class"""
447 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
448 __repr__
= _swig_repr
449 def __init__(self
, *args
, **kwargs
):
450 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
451 _grid
.GridCellEnumEditor_swiginit(self
,_grid
.new_GridCellEnumEditor(*args
, **kwargs
))
452 self
._setOORInfo
(self
)
454 _grid
.GridCellEnumEditor_swigregister(GridCellEnumEditor
)
456 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
457 """Proxy of C++ GridCellAutoWrapStringEditor class"""
458 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
459 __repr__
= _swig_repr
460 def __init__(self
, *args
, **kwargs
):
461 """__init__(self) -> GridCellAutoWrapStringEditor"""
462 _grid
.GridCellAutoWrapStringEditor_swiginit(self
,_grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
))
463 self
._setOORInfo
(self
)
465 _grid
.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor
)
467 class GridCellAttr(object):
468 """Proxy of C++ GridCellAttr class"""
469 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
470 __repr__
= _swig_repr
471 Any
= _grid
.GridCellAttr_Any
472 Default
= _grid
.GridCellAttr_Default
473 Cell
= _grid
.GridCellAttr_Cell
474 Row
= _grid
.GridCellAttr_Row
475 Col
= _grid
.GridCellAttr_Col
476 Merged
= _grid
.GridCellAttr_Merged
477 def _setOORInfo(*args
, **kwargs
):
478 """_setOORInfo(self, PyObject _self)"""
479 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
481 def __init__(self
, *args
, **kwargs
):
482 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
483 _grid
.GridCellAttr_swiginit(self
,_grid
.new_GridCellAttr(*args
, **kwargs
))
484 self
._setOORInfo
(self
)
486 __swig_destroy__
= _grid
.delete_GridCellAttr
487 __del__
= lambda self
: None;
488 def Clone(*args
, **kwargs
):
489 """Clone(self) -> GridCellAttr"""
490 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
492 def MergeWith(*args
, **kwargs
):
493 """MergeWith(self, GridCellAttr mergefrom)"""
494 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
496 def IncRef(*args
, **kwargs
):
498 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
500 def DecRef(*args
, **kwargs
):
502 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
504 def SetTextColour(*args
, **kwargs
):
505 """SetTextColour(self, Colour colText)"""
506 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
508 def SetBackgroundColour(*args
, **kwargs
):
509 """SetBackgroundColour(self, Colour colBack)"""
510 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
512 def SetFont(*args
, **kwargs
):
513 """SetFont(self, Font font)"""
514 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
516 def SetAlignment(*args
, **kwargs
):
517 """SetAlignment(self, int hAlign, int vAlign)"""
518 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
520 def SetSize(*args
, **kwargs
):
521 """SetSize(self, int num_rows, int num_cols)"""
522 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
524 def SetOverflow(*args
, **kwargs
):
525 """SetOverflow(self, bool allow=True)"""
526 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
528 def SetReadOnly(*args
, **kwargs
):
529 """SetReadOnly(self, bool isReadOnly=True)"""
530 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
532 def SetRenderer(*args
, **kwargs
):
533 """SetRenderer(self, GridCellRenderer renderer)"""
534 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
536 def SetEditor(*args
, **kwargs
):
537 """SetEditor(self, GridCellEditor editor)"""
538 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
540 def SetKind(*args
, **kwargs
):
541 """SetKind(self, int kind)"""
542 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
544 def HasTextColour(*args
, **kwargs
):
545 """HasTextColour(self) -> bool"""
546 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
548 def HasBackgroundColour(*args
, **kwargs
):
549 """HasBackgroundColour(self) -> bool"""
550 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
552 def HasFont(*args
, **kwargs
):
553 """HasFont(self) -> bool"""
554 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
556 def HasAlignment(*args
, **kwargs
):
557 """HasAlignment(self) -> bool"""
558 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
560 def HasRenderer(*args
, **kwargs
):
561 """HasRenderer(self) -> bool"""
562 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
564 def HasEditor(*args
, **kwargs
):
565 """HasEditor(self) -> bool"""
566 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
568 def HasReadWriteMode(*args
, **kwargs
):
569 """HasReadWriteMode(self) -> bool"""
570 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
572 def HasOverflowMode(*args
, **kwargs
):
573 """HasOverflowMode(self) -> bool"""
574 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
576 def GetTextColour(*args
, **kwargs
):
577 """GetTextColour(self) -> Colour"""
578 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
580 def GetBackgroundColour(*args
, **kwargs
):
581 """GetBackgroundColour(self) -> Colour"""
582 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
584 def GetFont(*args
, **kwargs
):
585 """GetFont(self) -> Font"""
586 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
588 def GetAlignment(*args
, **kwargs
):
589 """GetAlignment() -> (hAlign, vAlign)"""
590 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
592 def GetSize(*args
, **kwargs
):
593 """GetSize() -> (num_rows, num_cols)"""
594 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
596 def GetOverflow(*args
, **kwargs
):
597 """GetOverflow(self) -> bool"""
598 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
600 def GetRenderer(*args
, **kwargs
):
601 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
602 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
604 def GetEditor(*args
, **kwargs
):
605 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
606 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
608 def IsReadOnly(*args
, **kwargs
):
609 """IsReadOnly(self) -> bool"""
610 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
612 def GetKind(*args
, **kwargs
):
613 """GetKind(self) -> int"""
614 return _grid
.GridCellAttr_GetKind(*args
, **kwargs
)
616 def SetDefAttr(*args
, **kwargs
):
617 """SetDefAttr(self, GridCellAttr defAttr)"""
618 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
620 _grid
.GridCellAttr_swigregister(GridCellAttr
)
622 class GridCellAttrProvider(object):
623 """Proxy of C++ GridCellAttrProvider class"""
624 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
625 __repr__
= _swig_repr
626 def __init__(self
, *args
, **kwargs
):
627 """__init__(self) -> GridCellAttrProvider"""
628 _grid
.GridCellAttrProvider_swiginit(self
,_grid
.new_GridCellAttrProvider(*args
, **kwargs
))
629 self
._setOORInfo
(self
)
631 def _setOORInfo(*args
, **kwargs
):
632 """_setOORInfo(self, PyObject _self)"""
633 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
635 def GetAttr(*args
, **kwargs
):
636 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
637 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
639 def SetAttr(*args
, **kwargs
):
640 """SetAttr(self, GridCellAttr attr, int row, int col)"""
641 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
643 def SetRowAttr(*args
, **kwargs
):
644 """SetRowAttr(self, GridCellAttr attr, int row)"""
645 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
647 def SetColAttr(*args
, **kwargs
):
648 """SetColAttr(self, GridCellAttr attr, int col)"""
649 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
651 def UpdateAttrRows(*args
, **kwargs
):
652 """UpdateAttrRows(self, size_t pos, int numRows)"""
653 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
655 def UpdateAttrCols(*args
, **kwargs
):
656 """UpdateAttrCols(self, size_t pos, int numCols)"""
657 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
659 _grid
.GridCellAttrProvider_swigregister(GridCellAttrProvider
)
661 class PyGridCellAttrProvider(GridCellAttrProvider
):
662 """Proxy of C++ PyGridCellAttrProvider class"""
663 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
664 __repr__
= _swig_repr
665 def __init__(self
, *args
, **kwargs
):
666 """__init__(self) -> PyGridCellAttrProvider"""
667 _grid
.PyGridCellAttrProvider_swiginit(self
,_grid
.new_PyGridCellAttrProvider(*args
, **kwargs
))
668 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
670 def _setCallbackInfo(*args
, **kwargs
):
671 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
672 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
674 def GetAttr(*args
, **kwargs
):
675 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
676 return _grid
.PyGridCellAttrProvider_GetAttr(*args
, **kwargs
)
678 def SetAttr(*args
, **kwargs
):
679 """SetAttr(self, GridCellAttr attr, int row, int col)"""
680 return _grid
.PyGridCellAttrProvider_SetAttr(*args
, **kwargs
)
682 def SetRowAttr(*args
, **kwargs
):
683 """SetRowAttr(self, GridCellAttr attr, int row)"""
684 return _grid
.PyGridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
686 def SetColAttr(*args
, **kwargs
):
687 """SetColAttr(self, GridCellAttr attr, int col)"""
688 return _grid
.PyGridCellAttrProvider_SetColAttr(*args
, **kwargs
)
690 def base_GetAttr(*args
, **kw
):
691 return PyGridCellAttrProvider
.GetAttr(*args
, **kw
)
692 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
693 "Please use PyGridCellAttrProvider.GetAttr instead.")
695 def base_SetAttr(*args
, **kw
):
696 return PyGridCellAttrProvider
.SetAttr(*args
, **kw
)
697 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
698 "Please use PyGridCellAttrProvider.SetAttr instead.")
700 def base_SetRowAttr(*args
, **kw
):
701 return PyGridCellAttrProvider
.SetRowAttr(*args
, **kw
)
702 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
703 "Please use PyGridCellAttrProvider.SetRowAttr instead.")
705 def base_SetColAttr(*args
, **kw
):
706 return PyGridCellAttrProvider
.SetColAttr(*args
, **kw
)
707 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
708 "Please use PyGridCellAttrProvider.SetColAttr instead.")
710 _grid
.PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider
)
712 class GridTableBase(_core
.Object
):
713 """Proxy of C++ GridTableBase class"""
714 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
715 def __init__(self
): raise AttributeError, "No constructor defined"
716 __repr__
= _swig_repr
717 __swig_destroy__
= _grid
.delete_GridTableBase
718 __del__
= lambda self
: None;
719 def _setOORInfo(*args
, **kwargs
):
720 """_setOORInfo(self, PyObject _self)"""
721 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
723 def SetAttrProvider(*args
, **kwargs
):
724 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
725 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
727 def GetAttrProvider(*args
, **kwargs
):
728 """GetAttrProvider(self) -> GridCellAttrProvider"""
729 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
731 def SetView(*args
, **kwargs
):
732 """SetView(self, Grid grid)"""
733 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
735 def GetView(*args
, **kwargs
):
736 """GetView(self) -> Grid"""
737 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
739 def GetNumberRows(*args
, **kwargs
):
740 """GetNumberRows(self) -> int"""
741 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
743 def GetNumberCols(*args
, **kwargs
):
744 """GetNumberCols(self) -> int"""
745 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
747 def IsEmptyCell(*args
, **kwargs
):
748 """IsEmptyCell(self, int row, int col) -> bool"""
749 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
751 def GetValue(*args
, **kwargs
):
752 """GetValue(self, int row, int col) -> String"""
753 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
755 def SetValue(*args
, **kwargs
):
756 """SetValue(self, int row, int col, String value)"""
757 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
759 def GetTypeName(*args
, **kwargs
):
760 """GetTypeName(self, int row, int col) -> String"""
761 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
763 def CanGetValueAs(*args
, **kwargs
):
764 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
765 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
767 def CanSetValueAs(*args
, **kwargs
):
768 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
769 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
771 def GetValueAsLong(*args
, **kwargs
):
772 """GetValueAsLong(self, int row, int col) -> long"""
773 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
775 def GetValueAsDouble(*args
, **kwargs
):
776 """GetValueAsDouble(self, int row, int col) -> double"""
777 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
779 def GetValueAsBool(*args
, **kwargs
):
780 """GetValueAsBool(self, int row, int col) -> bool"""
781 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
783 def SetValueAsLong(*args
, **kwargs
):
784 """SetValueAsLong(self, int row, int col, long value)"""
785 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
787 def SetValueAsDouble(*args
, **kwargs
):
788 """SetValueAsDouble(self, int row, int col, double value)"""
789 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
791 def SetValueAsBool(*args
, **kwargs
):
792 """SetValueAsBool(self, int row, int col, bool value)"""
793 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
795 def Clear(*args
, **kwargs
):
797 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
799 def InsertRows(*args
, **kwargs
):
800 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
801 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
803 def AppendRows(*args
, **kwargs
):
804 """AppendRows(self, size_t numRows=1) -> bool"""
805 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
807 def DeleteRows(*args
, **kwargs
):
808 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
809 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
811 def InsertCols(*args
, **kwargs
):
812 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
813 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
815 def AppendCols(*args
, **kwargs
):
816 """AppendCols(self, size_t numCols=1) -> bool"""
817 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
819 def DeleteCols(*args
, **kwargs
):
820 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
821 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
823 def GetRowLabelValue(*args
, **kwargs
):
824 """GetRowLabelValue(self, int row) -> String"""
825 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
827 def GetColLabelValue(*args
, **kwargs
):
828 """GetColLabelValue(self, int col) -> String"""
829 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
831 def SetRowLabelValue(*args
, **kwargs
):
832 """SetRowLabelValue(self, int row, String value)"""
833 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
835 def SetColLabelValue(*args
, **kwargs
):
836 """SetColLabelValue(self, int col, String value)"""
837 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
839 def CanHaveAttributes(*args
, **kwargs
):
840 """CanHaveAttributes(self) -> bool"""
841 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
843 def GetAttr(*args
, **kwargs
):
844 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
845 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
847 def SetAttr(*args
, **kwargs
):
848 """SetAttr(self, GridCellAttr attr, int row, int col)"""
849 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
851 def SetRowAttr(*args
, **kwargs
):
852 """SetRowAttr(self, GridCellAttr attr, int row)"""
853 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
855 def SetColAttr(*args
, **kwargs
):
856 """SetColAttr(self, GridCellAttr attr, int col)"""
857 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
859 _grid
.GridTableBase_swigregister(GridTableBase
)
861 class PyGridTableBase(GridTableBase
):
862 """Proxy of C++ PyGridTableBase class"""
863 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
864 __repr__
= _swig_repr
865 def __init__(self
, *args
, **kwargs
):
866 """__init__(self) -> PyGridTableBase"""
867 _grid
.PyGridTableBase_swiginit(self
,_grid
.new_PyGridTableBase(*args
, **kwargs
))
868 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
870 def _setCallbackInfo(*args
, **kwargs
):
871 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
872 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
874 def Destroy(*args
, **kwargs
):
878 Deletes the C++ object this Python object is a proxy for.
880 val
= _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
884 def base_GetTypeName(*args
, **kw
):
885 return PyGridTableBase
.GetTypeName(*args
, **kw
)
886 base_GetTypeName
= wx
._deprecated
(base_GetTypeName
,
887 "Please use PyGridTableBase.GetTypeName instead.")
889 def base_CanGetValueAs(*args
, **kw
):
890 return PyGridTableBase
.CanGetValueAs(*args
, **kw
)
891 base_CanGetValueAs
= wx
._deprecated
(base_CanGetValueAs
,
892 "Please use PyGridTableBase.CanGetValueAs instead.")
894 def base_CanSetValueAs(*args
, **kw
):
895 return PyGridTableBase
.CanSetValueAs(*args
, **kw
)
896 base_CanSetValueAs
= wx
._deprecated
(base_CanSetValueAs
,
897 "Please use PyGridTableBase.CanSetValueAs instead.")
899 def base_Clear(*args
, **kw
):
900 return PyGridTableBase
.Clear(*args
, **kw
)
901 base_Clear
= wx
._deprecated
(base_Clear
,
902 "Please use PyGridTableBase.Clear instead.")
904 def base_InsertRows(*args
, **kw
):
905 return PyGridTableBase
.InsertRows(*args
, **kw
)
906 base_InsertRows
= wx
._deprecated
(base_InsertRows
,
907 "Please use PyGridTableBase.InsertRows instead.")
909 def base_AppendRows(*args
, **kw
):
910 return PyGridTableBase
.AppendRows(*args
, **kw
)
911 base_AppendRows
= wx
._deprecated
(base_AppendRows
,
912 "Please use PyGridTableBase.AppendRows instead.")
914 def base_DeleteRows(*args
, **kw
):
915 return PyGridTableBase
.DeleteRows(*args
, **kw
)
916 base_DeleteRows
= wx
._deprecated
(base_DeleteRows
,
917 "Please use PyGridTableBase.DeleteRows instead.")
919 def base_InsertCols(*args
, **kw
):
920 return PyGridTableBase
.InsertCols(*args
, **kw
)
921 base_InsertCols
= wx
._deprecated
(base_InsertCols
,
922 "Please use PyGridTableBase.InsertCols instead.")
924 def base_AppendCols(*args
, **kw
):
925 return PyGridTableBase
.AppendCols(*args
, **kw
)
926 base_AppendCols
= wx
._deprecated
(base_AppendCols
,
927 "Please use PyGridTableBase.AppendCols instead.")
929 def base_DeleteCols(*args
, **kw
):
930 return PyGridTableBase
.DeleteCols(*args
, **kw
)
931 base_DeleteCols
= wx
._deprecated
(base_DeleteCols
,
932 "Please use PyGridTableBase.DeleteCols instead.")
934 def base_GetRowLabelValue(*args
, **kw
):
935 return PyGridTableBase
.GetRowLabelValue(*args
, **kw
)
936 base_GetRowLabelValue
= wx
._deprecated
(base_GetRowLabelValue
,
937 "Please use PyGridTableBase.GetRowLabelValue instead.")
939 def base_GetColLabelValue(*args
, **kw
):
940 return PyGridTableBase
.GetColLabelValue(*args
, **kw
)
941 base_GetColLabelValue
= wx
._deprecated
(base_GetColLabelValue
,
942 "Please use PyGridTableBase.GetColLabelValue instead.")
944 def base_SetRowLabelValue(*args
, **kw
):
945 return PyGridTableBase
.SetRowLabelValue(*args
, **kw
)
946 base_SetRowLabelValue
= wx
._deprecated
(base_SetRowLabelValue
,
947 "Please use PyGridTableBase.SetRowLabelValue instead.")
949 def base_SetColLabelValue(*args
, **kw
):
950 return PyGridTableBase
.SetColLabelValue(*args
, **kw
)
951 base_SetColLabelValue
= wx
._deprecated
(base_SetColLabelValue
,
952 "Please use PyGridTableBase.SetColLabelValue instead.")
954 def base_CanHaveAttributes(*args
, **kw
):
955 return PyGridTableBase
.CanHaveAttributes(*args
, **kw
)
956 base_CanHaveAttributes
= wx
._deprecated
(base_CanHaveAttributes
,
957 "Please use PyGridTableBase.CanHaveAttributes instead.")
959 def base_GetAttr(*args
, **kw
):
960 return PyGridTableBase
.GetAttr(*args
, **kw
)
961 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
962 "Please use PyGridTableBase.GetAttr instead.")
964 def base_SetAttr(*args
, **kw
):
965 return PyGridTableBase
.SetAttr(*args
, **kw
)
966 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
967 "Please use PyGridTableBase.SetAttr instead.")
969 def base_SetRowAttr(*args
, **kw
):
970 return PyGridTableBase
.SetRowAttr(*args
, **kw
)
971 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
972 "Please use PyGridTableBase.SetRowAttr instead.")
974 def base_SetColAttr(*args
, **kw
):
975 return PyGridTableBase
.SetColAttr(*args
, **kw
)
976 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
977 "Please use PyGridTableBase.SetColAttr instead.")
979 _grid
.PyGridTableBase_swigregister(PyGridTableBase
)
981 class GridStringTable(GridTableBase
):
982 """Proxy of C++ GridStringTable class"""
983 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
984 __repr__
= _swig_repr
985 def __init__(self
, *args
, **kwargs
):
986 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
987 _grid
.GridStringTable_swiginit(self
,_grid
.new_GridStringTable(*args
, **kwargs
))
988 self
._setOORInfo
(self
)
990 _grid
.GridStringTable_swigregister(GridStringTable
)
992 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
993 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
994 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
995 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
996 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
997 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
998 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
999 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1000 class GridTableMessage(object):
1001 """Proxy of C++ GridTableMessage class"""
1002 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1003 __repr__
= _swig_repr
1004 def __init__(self
, *args
, **kwargs
):
1005 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1006 _grid
.GridTableMessage_swiginit(self
,_grid
.new_GridTableMessage(*args
, **kwargs
))
1007 __swig_destroy__
= _grid
.delete_GridTableMessage
1008 __del__
= lambda self
: None;
1009 def SetTableObject(*args
, **kwargs
):
1010 """SetTableObject(self, GridTableBase table)"""
1011 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1013 def GetTableObject(*args
, **kwargs
):
1014 """GetTableObject(self) -> GridTableBase"""
1015 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1017 def SetId(*args
, **kwargs
):
1018 """SetId(self, int id)"""
1019 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1021 def GetId(*args
, **kwargs
):
1022 """GetId(self) -> int"""
1023 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1025 def SetCommandInt(*args
, **kwargs
):
1026 """SetCommandInt(self, int comInt1)"""
1027 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1029 def GetCommandInt(*args
, **kwargs
):
1030 """GetCommandInt(self) -> int"""
1031 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1033 def SetCommandInt2(*args
, **kwargs
):
1034 """SetCommandInt2(self, int comInt2)"""
1035 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1037 def GetCommandInt2(*args
, **kwargs
):
1038 """GetCommandInt2(self) -> int"""
1039 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1041 _grid
.GridTableMessage_swigregister(GridTableMessage
)
1043 class GridCellCoords(object):
1044 """Proxy of C++ GridCellCoords class"""
1045 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1046 __repr__
= _swig_repr
1047 def __init__(self
, *args
, **kwargs
):
1048 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1049 _grid
.GridCellCoords_swiginit(self
,_grid
.new_GridCellCoords(*args
, **kwargs
))
1050 __swig_destroy__
= _grid
.delete_GridCellCoords
1051 __del__
= lambda self
: None;
1052 def GetRow(*args
, **kwargs
):
1053 """GetRow(self) -> int"""
1054 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1056 def SetRow(*args
, **kwargs
):
1057 """SetRow(self, int n)"""
1058 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1060 def GetCol(*args
, **kwargs
):
1061 """GetCol(self) -> int"""
1062 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1064 def SetCol(*args
, **kwargs
):
1065 """SetCol(self, int n)"""
1066 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1068 def Set(*args
, **kwargs
):
1069 """Set(self, int row, int col)"""
1070 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1072 def __eq__(*args
, **kwargs
):
1074 __eq__(self, PyObject other) -> bool
1076 Test for equality of GridCellCoords objects.
1078 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1080 def __ne__(*args
, **kwargs
):
1082 __ne__(self, PyObject other) -> bool
1084 Test for inequality of GridCellCoords objects.
1086 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1088 def Get(*args
, **kwargs
):
1089 """Get(self) -> PyObject"""
1090 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1092 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1093 def __str__(self
): return str(self
.Get())
1094 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1095 def __len__(self
): return len(self
.Get())
1096 def __getitem__(self
, index
): return self
.asTuple()[index
]
1097 def __setitem__(self
, index
, val
):
1098 if index
== 0: self
.SetRow(val
)
1099 elif index
== 1: self
.SetCol(val
)
1100 else: raise IndexError
1102 _grid
.GridCellCoords_swigregister(GridCellCoords
)
1104 class Grid(_windows
.ScrolledWindow
):
1105 """Proxy of C++ Grid class"""
1106 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1107 __repr__
= _swig_repr
1108 def __init__(self
, *args
, **kwargs
):
1110 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1111 Size size=DefaultSize, long style=WANTS_CHARS,
1112 String name=PanelNameStr) -> Grid
1114 _grid
.Grid_swiginit(self
,_grid
.new_Grid(*args
, **kwargs
))
1115 self
._setOORInfo
(self
)
1117 def Create(*args
, **kwargs
):
1119 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1120 Size size=DefaultSize, long style=WANTS_CHARS,
1121 String name=PanelNameStr) -> bool
1123 return _grid
.Grid_Create(*args
, **kwargs
)
1125 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1126 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1127 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1128 SelectCells
= wxGridSelectCells
1129 SelectRows
= wxGridSelectRows
1130 SelectColumns
= wxGridSelectColumns
1132 def CreateGrid(*args
, **kwargs
):
1133 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1134 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1136 def SetSelectionMode(*args
, **kwargs
):
1137 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1138 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1140 def GetSelectionMode(*args
, **kwargs
):
1141 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1142 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1144 def GetNumberRows(*args
, **kwargs
):
1145 """GetNumberRows(self) -> int"""
1146 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1148 def GetNumberCols(*args
, **kwargs
):
1149 """GetNumberCols(self) -> int"""
1150 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1152 def ProcessTableMessage(*args
, **kwargs
):
1153 """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
1154 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1156 def GetTable(*args
, **kwargs
):
1157 """GetTable(self) -> GridTableBase"""
1158 return _grid
.Grid_GetTable(*args
, **kwargs
)
1160 def SetTable(*args
, **kwargs
):
1161 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1162 return _grid
.Grid_SetTable(*args
, **kwargs
)
1164 def ClearGrid(*args
, **kwargs
):
1165 """ClearGrid(self)"""
1166 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1168 def InsertRows(*args
, **kwargs
):
1169 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1170 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1172 def AppendRows(*args
, **kwargs
):
1173 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1174 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1176 def DeleteRows(*args
, **kwargs
):
1177 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1178 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1180 def InsertCols(*args
, **kwargs
):
1181 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1182 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1184 def AppendCols(*args
, **kwargs
):
1185 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1186 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1188 def DeleteCols(*args
, **kwargs
):
1189 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1190 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1192 def DrawCellHighlight(*args
, **kwargs
):
1193 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1194 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1196 def DrawTextRectangle(*args
, **kwargs
):
1198 DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
1199 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1201 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1203 def GetTextBoxSize(*args
, **kwargs
):
1204 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1205 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1207 def BeginBatch(*args
, **kwargs
):
1208 """BeginBatch(self)"""
1209 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1211 def EndBatch(*args
, **kwargs
):
1212 """EndBatch(self)"""
1213 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1215 def GetBatchCount(*args
, **kwargs
):
1216 """GetBatchCount(self) -> int"""
1217 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1219 def ForceRefresh(*args
, **kwargs
):
1220 """ForceRefresh(self)"""
1221 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1223 def IsEditable(*args
, **kwargs
):
1224 """IsEditable(self) -> bool"""
1225 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1227 def EnableEditing(*args
, **kwargs
):
1228 """EnableEditing(self, bool edit)"""
1229 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1231 def EnableCellEditControl(*args
, **kwargs
):
1232 """EnableCellEditControl(self, bool enable=True)"""
1233 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1235 def DisableCellEditControl(*args
, **kwargs
):
1236 """DisableCellEditControl(self)"""
1237 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1239 def CanEnableCellControl(*args
, **kwargs
):
1240 """CanEnableCellControl(self) -> bool"""
1241 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1243 def IsCellEditControlEnabled(*args
, **kwargs
):
1244 """IsCellEditControlEnabled(self) -> bool"""
1245 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1247 def IsCellEditControlShown(*args
, **kwargs
):
1248 """IsCellEditControlShown(self) -> bool"""
1249 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1251 def IsCurrentCellReadOnly(*args
, **kwargs
):
1252 """IsCurrentCellReadOnly(self) -> bool"""
1253 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1255 def ShowCellEditControl(*args
, **kwargs
):
1256 """ShowCellEditControl(self)"""
1257 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1259 def HideCellEditControl(*args
, **kwargs
):
1260 """HideCellEditControl(self)"""
1261 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1263 def SaveEditControlValue(*args
, **kwargs
):
1264 """SaveEditControlValue(self)"""
1265 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1267 def XYToCell(*args
, **kwargs
):
1268 """XYToCell(self, int x, int y) -> GridCellCoords"""
1269 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1271 def YToRow(*args
, **kwargs
):
1272 """YToRow(self, int y) -> int"""
1273 return _grid
.Grid_YToRow(*args
, **kwargs
)
1275 def XToCol(*args
, **kwargs
):
1276 """XToCol(self, int x, bool clipToMinMax=False) -> int"""
1277 return _grid
.Grid_XToCol(*args
, **kwargs
)
1279 def YToEdgeOfRow(*args
, **kwargs
):
1280 """YToEdgeOfRow(self, int y) -> int"""
1281 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1283 def XToEdgeOfCol(*args
, **kwargs
):
1284 """XToEdgeOfCol(self, int x) -> int"""
1285 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1287 def CellToRect(*args
, **kwargs
):
1288 """CellToRect(self, int row, int col) -> Rect"""
1289 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1291 def GetGridCursorRow(*args
, **kwargs
):
1292 """GetGridCursorRow(self) -> int"""
1293 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1295 def GetGridCursorCol(*args
, **kwargs
):
1296 """GetGridCursorCol(self) -> int"""
1297 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1299 def IsVisible(*args
, **kwargs
):
1300 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1301 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1303 def MakeCellVisible(*args
, **kwargs
):
1304 """MakeCellVisible(self, int row, int col)"""
1305 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1307 def SetGridCursor(*args
, **kwargs
):
1308 """SetGridCursor(self, int row, int col)"""
1309 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1311 def MoveCursorUp(*args
, **kwargs
):
1312 """MoveCursorUp(self, bool expandSelection) -> bool"""
1313 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1315 def MoveCursorDown(*args
, **kwargs
):
1316 """MoveCursorDown(self, bool expandSelection) -> bool"""
1317 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1319 def MoveCursorLeft(*args
, **kwargs
):
1320 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1321 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1323 def MoveCursorRight(*args
, **kwargs
):
1324 """MoveCursorRight(self, bool expandSelection) -> bool"""
1325 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1327 def MovePageDown(*args
, **kwargs
):
1328 """MovePageDown(self) -> bool"""
1329 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1331 def MovePageUp(*args
, **kwargs
):
1332 """MovePageUp(self) -> bool"""
1333 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1335 def MoveCursorUpBlock(*args
, **kwargs
):
1336 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1337 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1339 def MoveCursorDownBlock(*args
, **kwargs
):
1340 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1341 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1343 def MoveCursorLeftBlock(*args
, **kwargs
):
1344 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1345 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1347 def MoveCursorRightBlock(*args
, **kwargs
):
1348 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1349 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1351 def GetDefaultRowLabelSize(*args
, **kwargs
):
1352 """GetDefaultRowLabelSize(self) -> int"""
1353 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1355 def GetRowLabelSize(*args
, **kwargs
):
1356 """GetRowLabelSize(self) -> int"""
1357 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1359 def GetDefaultColLabelSize(*args
, **kwargs
):
1360 """GetDefaultColLabelSize(self) -> int"""
1361 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1363 def GetColLabelSize(*args
, **kwargs
):
1364 """GetColLabelSize(self) -> int"""
1365 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1367 def GetLabelBackgroundColour(*args
, **kwargs
):
1368 """GetLabelBackgroundColour(self) -> Colour"""
1369 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1371 def GetLabelTextColour(*args
, **kwargs
):
1372 """GetLabelTextColour(self) -> Colour"""
1373 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1375 def GetLabelFont(*args
, **kwargs
):
1376 """GetLabelFont(self) -> Font"""
1377 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1379 def GetRowLabelAlignment(*args
, **kwargs
):
1380 """GetRowLabelAlignment() -> (horiz, vert)"""
1381 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1383 def GetColLabelAlignment(*args
, **kwargs
):
1384 """GetColLabelAlignment() -> (horiz, vert)"""
1385 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1387 def GetColLabelTextOrientation(*args
, **kwargs
):
1388 """GetColLabelTextOrientation(self) -> int"""
1389 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1391 def GetRowLabelValue(*args
, **kwargs
):
1392 """GetRowLabelValue(self, int row) -> String"""
1393 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1395 def GetColLabelValue(*args
, **kwargs
):
1396 """GetColLabelValue(self, int col) -> String"""
1397 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1399 def GetGridLineColour(*args
, **kwargs
):
1400 """GetGridLineColour(self) -> Colour"""
1401 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1403 def GetCellHighlightColour(*args
, **kwargs
):
1404 """GetCellHighlightColour(self) -> Colour"""
1405 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1407 def GetCellHighlightPenWidth(*args
, **kwargs
):
1408 """GetCellHighlightPenWidth(self) -> int"""
1409 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1411 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1412 """GetCellHighlightROPenWidth(self) -> int"""
1413 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1415 def SetRowLabelSize(*args
, **kwargs
):
1416 """SetRowLabelSize(self, int width)"""
1417 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1419 def SetColLabelSize(*args
, **kwargs
):
1420 """SetColLabelSize(self, int height)"""
1421 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1423 def SetLabelBackgroundColour(*args
, **kwargs
):
1424 """SetLabelBackgroundColour(self, Colour ?)"""
1425 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1427 def SetLabelTextColour(*args
, **kwargs
):
1428 """SetLabelTextColour(self, Colour ?)"""
1429 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1431 def SetLabelFont(*args
, **kwargs
):
1432 """SetLabelFont(self, Font ?)"""
1433 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1435 def SetRowLabelAlignment(*args
, **kwargs
):
1436 """SetRowLabelAlignment(self, int horiz, int vert)"""
1437 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1439 def SetColLabelAlignment(*args
, **kwargs
):
1440 """SetColLabelAlignment(self, int horiz, int vert)"""
1441 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1443 def SetColLabelTextOrientation(*args
, **kwargs
):
1444 """SetColLabelTextOrientation(self, int textOrientation)"""
1445 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1447 def SetRowLabelValue(*args
, **kwargs
):
1448 """SetRowLabelValue(self, int row, String ?)"""
1449 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1451 def SetColLabelValue(*args
, **kwargs
):
1452 """SetColLabelValue(self, int col, String ?)"""
1453 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1455 def SetGridLineColour(*args
, **kwargs
):
1456 """SetGridLineColour(self, Colour ?)"""
1457 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1459 def SetCellHighlightColour(*args
, **kwargs
):
1460 """SetCellHighlightColour(self, Colour ?)"""
1461 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1463 def SetCellHighlightPenWidth(*args
, **kwargs
):
1464 """SetCellHighlightPenWidth(self, int width)"""
1465 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1467 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1468 """SetCellHighlightROPenWidth(self, int width)"""
1469 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1471 def EnableDragRowSize(*args
, **kwargs
):
1472 """EnableDragRowSize(self, bool enable=True)"""
1473 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1475 def DisableDragRowSize(*args
, **kwargs
):
1476 """DisableDragRowSize(self)"""
1477 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1479 def CanDragRowSize(*args
, **kwargs
):
1480 """CanDragRowSize(self) -> bool"""
1481 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1483 def EnableDragColSize(*args
, **kwargs
):
1484 """EnableDragColSize(self, bool enable=True)"""
1485 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1487 def DisableDragColSize(*args
, **kwargs
):
1488 """DisableDragColSize(self)"""
1489 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1491 def CanDragColSize(*args
, **kwargs
):
1492 """CanDragColSize(self) -> bool"""
1493 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1495 def EnableDragColMove(*args
, **kwargs
):
1496 """EnableDragColMove(self, bool enable=True)"""
1497 return _grid
.Grid_EnableDragColMove(*args
, **kwargs
)
1499 def DisableDragColMove(*args
, **kwargs
):
1500 """DisableDragColMove(self)"""
1501 return _grid
.Grid_DisableDragColMove(*args
, **kwargs
)
1503 def CanDragColMove(*args
, **kwargs
):
1504 """CanDragColMove(self) -> bool"""
1505 return _grid
.Grid_CanDragColMove(*args
, **kwargs
)
1507 def EnableDragGridSize(*args
, **kwargs
):
1508 """EnableDragGridSize(self, bool enable=True)"""
1509 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1511 def DisableDragGridSize(*args
, **kwargs
):
1512 """DisableDragGridSize(self)"""
1513 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1515 def CanDragGridSize(*args
, **kwargs
):
1516 """CanDragGridSize(self) -> bool"""
1517 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1519 def EnableDragCell(*args
, **kwargs
):
1520 """EnableDragCell(self, bool enable=True)"""
1521 return _grid
.Grid_EnableDragCell(*args
, **kwargs
)
1523 def DisableDragCell(*args
, **kwargs
):
1524 """DisableDragCell(self)"""
1525 return _grid
.Grid_DisableDragCell(*args
, **kwargs
)
1527 def CanDragCell(*args
, **kwargs
):
1528 """CanDragCell(self) -> bool"""
1529 return _grid
.Grid_CanDragCell(*args
, **kwargs
)
1531 def SetAttr(*args
, **kwargs
):
1532 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1533 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1535 def SetRowAttr(*args
, **kwargs
):
1536 """SetRowAttr(self, int row, GridCellAttr attr)"""
1537 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1539 def SetColAttr(*args
, **kwargs
):
1540 """SetColAttr(self, int col, GridCellAttr attr)"""
1541 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1543 def GetOrCreateCellAttr(*args
, **kwargs
):
1544 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1545 return _grid
.Grid_GetOrCreateCellAttr(*args
, **kwargs
)
1547 def SetColFormatBool(*args
, **kwargs
):
1548 """SetColFormatBool(self, int col)"""
1549 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1551 def SetColFormatNumber(*args
, **kwargs
):
1552 """SetColFormatNumber(self, int col)"""
1553 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1555 def SetColFormatFloat(*args
, **kwargs
):
1556 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1557 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1559 def SetColFormatCustom(*args
, **kwargs
):
1560 """SetColFormatCustom(self, int col, String typeName)"""
1561 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1563 def EnableGridLines(*args
, **kwargs
):
1564 """EnableGridLines(self, bool enable=True)"""
1565 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1567 def GridLinesEnabled(*args
, **kwargs
):
1568 """GridLinesEnabled(self) -> bool"""
1569 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1571 def GetDefaultRowSize(*args
, **kwargs
):
1572 """GetDefaultRowSize(self) -> int"""
1573 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1575 def GetRowSize(*args
, **kwargs
):
1576 """GetRowSize(self, int row) -> int"""
1577 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1579 def GetDefaultColSize(*args
, **kwargs
):
1580 """GetDefaultColSize(self) -> int"""
1581 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1583 def GetColSize(*args
, **kwargs
):
1584 """GetColSize(self, int col) -> int"""
1585 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1587 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1588 """GetDefaultCellBackgroundColour(self) -> Colour"""
1589 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1591 def GetCellBackgroundColour(*args
, **kwargs
):
1592 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1593 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1595 def GetDefaultCellTextColour(*args
, **kwargs
):
1596 """GetDefaultCellTextColour(self) -> Colour"""
1597 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1599 def GetCellTextColour(*args
, **kwargs
):
1600 """GetCellTextColour(self, int row, int col) -> Colour"""
1601 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1603 def GetDefaultCellFont(*args
, **kwargs
):
1604 """GetDefaultCellFont(self) -> Font"""
1605 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1607 def GetCellFont(*args
, **kwargs
):
1608 """GetCellFont(self, int row, int col) -> Font"""
1609 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1611 def GetDefaultCellAlignment(*args
, **kwargs
):
1612 """GetDefaultCellAlignment() -> (horiz, vert)"""
1613 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1615 def GetCellAlignment(*args
, **kwargs
):
1616 """GetCellAlignment() -> (horiz, vert)"""
1617 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1619 def GetDefaultCellOverflow(*args
, **kwargs
):
1620 """GetDefaultCellOverflow(self) -> bool"""
1621 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1623 def GetCellOverflow(*args
, **kwargs
):
1624 """GetCellOverflow(self, int row, int col) -> bool"""
1625 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1627 def GetCellSize(*args
, **kwargs
):
1628 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1629 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1631 def SetDefaultRowSize(*args
, **kwargs
):
1632 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1633 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1635 def SetRowSize(*args
, **kwargs
):
1636 """SetRowSize(self, int row, int height)"""
1637 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1639 def SetDefaultColSize(*args
, **kwargs
):
1640 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1641 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1643 def SetColSize(*args
, **kwargs
):
1644 """SetColSize(self, int col, int width)"""
1645 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1647 def GetColAt(*args
, **kwargs
):
1648 """GetColAt(self, int colPos) -> int"""
1649 return _grid
.Grid_GetColAt(*args
, **kwargs
)
1651 def SetColPos(*args
, **kwargs
):
1652 """SetColPos(self, int colID, int newPos)"""
1653 return _grid
.Grid_SetColPos(*args
, **kwargs
)
1655 def GetColPos(*args
, **kwargs
):
1656 """GetColPos(self, int colID) -> int"""
1657 return _grid
.Grid_GetColPos(*args
, **kwargs
)
1659 def AutoSizeColumn(*args
, **kwargs
):
1660 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1661 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1663 def AutoSizeRow(*args
, **kwargs
):
1664 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1665 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1667 def AutoSizeColumns(*args
, **kwargs
):
1668 """AutoSizeColumns(self, bool setAsMin=True)"""
1669 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1671 def AutoSizeRows(*args
, **kwargs
):
1672 """AutoSizeRows(self, bool setAsMin=True)"""
1673 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1675 def AutoSize(*args
, **kwargs
):
1676 """AutoSize(self)"""
1677 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1679 def AutoSizeRowLabelSize(*args
, **kwargs
):
1680 """AutoSizeRowLabelSize(self, int row)"""
1681 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1683 def AutoSizeColLabelSize(*args
, **kwargs
):
1684 """AutoSizeColLabelSize(self, int col)"""
1685 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1687 def SetColMinimalWidth(*args
, **kwargs
):
1688 """SetColMinimalWidth(self, int col, int width)"""
1689 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1691 def SetRowMinimalHeight(*args
, **kwargs
):
1692 """SetRowMinimalHeight(self, int row, int width)"""
1693 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1695 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1696 """SetColMinimalAcceptableWidth(self, int width)"""
1697 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1699 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1700 """SetRowMinimalAcceptableHeight(self, int width)"""
1701 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1703 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1704 """GetColMinimalAcceptableWidth(self) -> int"""
1705 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1707 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1708 """GetRowMinimalAcceptableHeight(self) -> int"""
1709 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1711 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1712 """SetDefaultCellBackgroundColour(self, Colour ?)"""
1713 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1715 def SetCellBackgroundColour(*args
, **kwargs
):
1716 """SetCellBackgroundColour(self, int row, int col, Colour ?)"""
1717 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1719 def SetDefaultCellTextColour(*args
, **kwargs
):
1720 """SetDefaultCellTextColour(self, Colour ?)"""
1721 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1723 def SetCellTextColour(*args
, **kwargs
):
1724 """SetCellTextColour(self, int row, int col, Colour ?)"""
1725 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1727 def SetDefaultCellFont(*args
, **kwargs
):
1728 """SetDefaultCellFont(self, Font ?)"""
1729 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1731 def SetCellFont(*args
, **kwargs
):
1732 """SetCellFont(self, int row, int col, Font ?)"""
1733 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1735 def SetDefaultCellAlignment(*args
, **kwargs
):
1736 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1737 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1739 def SetCellAlignment(*args
, **kwargs
):
1740 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1741 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1743 def SetDefaultCellOverflow(*args
, **kwargs
):
1744 """SetDefaultCellOverflow(self, bool allow)"""
1745 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1747 def SetCellOverflow(*args
, **kwargs
):
1748 """SetCellOverflow(self, int row, int col, bool allow)"""
1749 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1751 def SetCellSize(*args
, **kwargs
):
1752 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1753 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1755 def SetDefaultRenderer(*args
, **kwargs
):
1756 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1757 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1759 def SetCellRenderer(*args
, **kwargs
):
1760 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1761 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1763 def GetDefaultRenderer(*args
, **kwargs
):
1764 """GetDefaultRenderer(self) -> GridCellRenderer"""
1765 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1767 def GetCellRenderer(*args
, **kwargs
):
1768 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1769 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1771 def SetDefaultEditor(*args
, **kwargs
):
1772 """SetDefaultEditor(self, GridCellEditor editor)"""
1773 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1775 def SetCellEditor(*args
, **kwargs
):
1776 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1777 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1779 def GetDefaultEditor(*args
, **kwargs
):
1780 """GetDefaultEditor(self) -> GridCellEditor"""
1781 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1783 def GetCellEditor(*args
, **kwargs
):
1784 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1785 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1787 def GetCellValue(*args
, **kwargs
):
1788 """GetCellValue(self, int row, int col) -> String"""
1789 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1791 def SetCellValue(*args
, **kwargs
):
1792 """SetCellValue(self, int row, int col, String s)"""
1793 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1795 def IsReadOnly(*args
, **kwargs
):
1796 """IsReadOnly(self, int row, int col) -> bool"""
1797 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1799 def SetReadOnly(*args
, **kwargs
):
1800 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1801 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1803 def SelectRow(*args
, **kwargs
):
1804 """SelectRow(self, int row, bool addToSelected=False)"""
1805 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1807 def SelectCol(*args
, **kwargs
):
1808 """SelectCol(self, int col, bool addToSelected=False)"""
1809 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1811 def SelectBlock(*args
, **kwargs
):
1813 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1814 bool addToSelected=False)
1816 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1818 def SelectAll(*args
, **kwargs
):
1819 """SelectAll(self)"""
1820 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1822 def IsSelection(*args
, **kwargs
):
1823 """IsSelection(self) -> bool"""
1824 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1826 def ClearSelection(*args
, **kwargs
):
1827 """ClearSelection(self)"""
1828 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1830 def IsInSelection(*args
, **kwargs
):
1831 """IsInSelection(self, int row, int col) -> bool"""
1832 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1834 def GetSelectedCells(*args
, **kwargs
):
1835 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1836 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1838 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1839 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1840 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1842 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1843 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1844 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1846 def GetSelectedRows(*args
, **kwargs
):
1847 """GetSelectedRows(self) -> wxArrayInt"""
1848 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1850 def GetSelectedCols(*args
, **kwargs
):
1851 """GetSelectedCols(self) -> wxArrayInt"""
1852 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1854 def DeselectRow(*args
, **kwargs
):
1855 """DeselectRow(self, int row)"""
1856 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1858 def DeselectCol(*args
, **kwargs
):
1859 """DeselectCol(self, int col)"""
1860 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1862 def DeselectCell(*args
, **kwargs
):
1863 """DeselectCell(self, int row, int col)"""
1864 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1866 def BlockToDeviceRect(*args
, **kwargs
):
1867 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1868 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1870 def GetSelectionBackground(*args
, **kwargs
):
1871 """GetSelectionBackground(self) -> Colour"""
1872 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1874 def GetSelectionForeground(*args
, **kwargs
):
1875 """GetSelectionForeground(self) -> Colour"""
1876 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1878 def SetSelectionBackground(*args
, **kwargs
):
1879 """SetSelectionBackground(self, Colour c)"""
1880 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1882 def SetSelectionForeground(*args
, **kwargs
):
1883 """SetSelectionForeground(self, Colour c)"""
1884 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1886 def RegisterDataType(*args
, **kwargs
):
1887 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1888 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1890 def GetDefaultEditorForCell(*args
, **kwargs
):
1891 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1892 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1894 def GetDefaultRendererForCell(*args
, **kwargs
):
1895 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1896 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1898 def GetDefaultEditorForType(*args
, **kwargs
):
1899 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
1900 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1902 def GetDefaultRendererForType(*args
, **kwargs
):
1903 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
1904 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1906 def SetMargins(*args
, **kwargs
):
1907 """SetMargins(self, int extraWidth, int extraHeight)"""
1908 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1910 def GetGridWindow(*args
, **kwargs
):
1911 """GetGridWindow(self) -> Window"""
1912 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1914 def GetGridRowLabelWindow(*args
, **kwargs
):
1915 """GetGridRowLabelWindow(self) -> Window"""
1916 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1918 def GetGridColLabelWindow(*args
, **kwargs
):
1919 """GetGridColLabelWindow(self) -> Window"""
1920 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1922 def GetGridCornerLabelWindow(*args
, **kwargs
):
1923 """GetGridCornerLabelWindow(self) -> Window"""
1924 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1926 def SetScrollLineX(*args
, **kwargs
):
1927 """SetScrollLineX(self, int x)"""
1928 return _grid
.Grid_SetScrollLineX(*args
, **kwargs
)
1930 def SetScrollLineY(*args
, **kwargs
):
1931 """SetScrollLineY(self, int y)"""
1932 return _grid
.Grid_SetScrollLineY(*args
, **kwargs
)
1934 def GetScrollLineX(*args
, **kwargs
):
1935 """GetScrollLineX(self) -> int"""
1936 return _grid
.Grid_GetScrollLineX(*args
, **kwargs
)
1938 def GetScrollLineY(*args
, **kwargs
):
1939 """GetScrollLineY(self) -> int"""
1940 return _grid
.Grid_GetScrollLineY(*args
, **kwargs
)
1942 def GetScrollX(*args
, **kwargs
):
1943 """GetScrollX(self, int x) -> int"""
1944 return _grid
.Grid_GetScrollX(*args
, **kwargs
)
1946 def GetScrollY(*args
, **kwargs
):
1947 """GetScrollY(self, int y) -> int"""
1948 return _grid
.Grid_GetScrollY(*args
, **kwargs
)
1950 def GetClassDefaultAttributes(*args
, **kwargs
):
1952 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1954 Get the default attributes for this class. This is useful if you want
1955 to use the same font or colour in your own control as in a standard
1956 control -- which is a much better idea than hard coding specific
1957 colours or fonts which might look completely out of place on the
1958 user's system, especially if it uses themes.
1960 The variant parameter is only relevant under Mac currently and is
1961 ignore under other platforms. Under Mac, it will change the size of
1962 the returned font. See `wx.Window.SetWindowVariant` for more about
1965 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
1967 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1968 _grid
.Grid_swigregister(Grid
)
1970 def PreGrid(*args
, **kwargs
):
1971 """PreGrid() -> Grid"""
1972 val
= _grid
.new_PreGrid(*args
, **kwargs
)
1975 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
1977 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1979 Get the default attributes for this class. This is useful if you want
1980 to use the same font or colour in your own control as in a standard
1981 control -- which is a much better idea than hard coding specific
1982 colours or fonts which might look completely out of place on the
1983 user's system, especially if it uses themes.
1985 The variant parameter is only relevant under Mac currently and is
1986 ignore under other platforms. Under Mac, it will change the size of
1987 the returned font. See `wx.Window.SetWindowVariant` for more about
1990 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
1992 class GridEvent(_core
.NotifyEvent
):
1993 """Proxy of C++ GridEvent class"""
1994 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1995 __repr__
= _swig_repr
1996 def __init__(self
, *args
, **kwargs
):
1998 __init__(self, int id, EventType type, Grid obj, int row=-1, int col=-1,
1999 int x=-1, int y=-1, bool sel=True, bool control=False,
2000 bool shift=False, bool alt=False,
2001 bool meta=False) -> GridEvent
2003 _grid
.GridEvent_swiginit(self
,_grid
.new_GridEvent(*args
, **kwargs
))
2004 def GetRow(*args
, **kwargs
):
2005 """GetRow(self) -> int"""
2006 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2008 def GetCol(*args
, **kwargs
):
2009 """GetCol(self) -> int"""
2010 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2012 def GetPosition(*args
, **kwargs
):
2013 """GetPosition(self) -> Point"""
2014 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2016 def Selecting(*args
, **kwargs
):
2017 """Selecting(self) -> bool"""
2018 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2020 def ControlDown(*args
, **kwargs
):
2021 """ControlDown(self) -> bool"""
2022 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2024 def MetaDown(*args
, **kwargs
):
2025 """MetaDown(self) -> bool"""
2026 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2028 def ShiftDown(*args
, **kwargs
):
2029 """ShiftDown(self) -> bool"""
2030 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2032 def AltDown(*args
, **kwargs
):
2033 """AltDown(self) -> bool"""
2034 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2036 def CmdDown(*args
, **kwargs
):
2037 """CmdDown(self) -> bool"""
2038 return _grid
.GridEvent_CmdDown(*args
, **kwargs
)
2040 _grid
.GridEvent_swigregister(GridEvent
)
2042 class GridSizeEvent(_core
.NotifyEvent
):
2043 """Proxy of C++ GridSizeEvent class"""
2044 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2045 __repr__
= _swig_repr
2046 def __init__(self
, *args
, **kwargs
):
2048 __init__(self, int id, EventType type, Grid obj, int rowOrCol=-1,
2049 int x=-1, int y=-1, bool control=False, bool shift=False,
2050 bool alt=False, bool meta=False) -> GridSizeEvent
2052 _grid
.GridSizeEvent_swiginit(self
,_grid
.new_GridSizeEvent(*args
, **kwargs
))
2053 def GetRowOrCol(*args
, **kwargs
):
2054 """GetRowOrCol(self) -> int"""
2055 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2057 def GetPosition(*args
, **kwargs
):
2058 """GetPosition(self) -> Point"""
2059 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2061 def ControlDown(*args
, **kwargs
):
2062 """ControlDown(self) -> bool"""
2063 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2065 def MetaDown(*args
, **kwargs
):
2066 """MetaDown(self) -> bool"""
2067 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2069 def ShiftDown(*args
, **kwargs
):
2070 """ShiftDown(self) -> bool"""
2071 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2073 def AltDown(*args
, **kwargs
):
2074 """AltDown(self) -> bool"""
2075 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2077 def CmdDown(*args
, **kwargs
):
2078 """CmdDown(self) -> bool"""
2079 return _grid
.GridSizeEvent_CmdDown(*args
, **kwargs
)
2081 _grid
.GridSizeEvent_swigregister(GridSizeEvent
)
2083 class GridRangeSelectEvent(_core
.NotifyEvent
):
2084 """Proxy of C++ GridRangeSelectEvent class"""
2085 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2086 __repr__
= _swig_repr
2087 def __init__(self
, *args
, **kwargs
):
2089 __init__(self, int id, EventType type, Grid obj, GridCellCoords topLeft,
2090 GridCellCoords bottomRight, bool sel=True,
2091 bool control=False, bool shift=False, bool alt=False,
2092 bool meta=False) -> GridRangeSelectEvent
2094 _grid
.GridRangeSelectEvent_swiginit(self
,_grid
.new_GridRangeSelectEvent(*args
, **kwargs
))
2095 def GetTopLeftCoords(*args
, **kwargs
):
2096 """GetTopLeftCoords(self) -> GridCellCoords"""
2097 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2099 def GetBottomRightCoords(*args
, **kwargs
):
2100 """GetBottomRightCoords(self) -> GridCellCoords"""
2101 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2103 def GetTopRow(*args
, **kwargs
):
2104 """GetTopRow(self) -> int"""
2105 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2107 def GetBottomRow(*args
, **kwargs
):
2108 """GetBottomRow(self) -> int"""
2109 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2111 def GetLeftCol(*args
, **kwargs
):
2112 """GetLeftCol(self) -> int"""
2113 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2115 def GetRightCol(*args
, **kwargs
):
2116 """GetRightCol(self) -> int"""
2117 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2119 def Selecting(*args
, **kwargs
):
2120 """Selecting(self) -> bool"""
2121 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2123 def ControlDown(*args
, **kwargs
):
2124 """ControlDown(self) -> bool"""
2125 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2127 def MetaDown(*args
, **kwargs
):
2128 """MetaDown(self) -> bool"""
2129 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2131 def ShiftDown(*args
, **kwargs
):
2132 """ShiftDown(self) -> bool"""
2133 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2135 def AltDown(*args
, **kwargs
):
2136 """AltDown(self) -> bool"""
2137 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2139 def CmdDown(*args
, **kwargs
):
2140 """CmdDown(self) -> bool"""
2141 return _grid
.GridRangeSelectEvent_CmdDown(*args
, **kwargs
)
2143 _grid
.GridRangeSelectEvent_swigregister(GridRangeSelectEvent
)
2145 class GridEditorCreatedEvent(_core
.CommandEvent
):
2146 """Proxy of C++ GridEditorCreatedEvent class"""
2147 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2148 __repr__
= _swig_repr
2149 def __init__(self
, *args
, **kwargs
):
2151 __init__(self, int id, EventType type, Object obj, int row, int col,
2152 Control ctrl) -> GridEditorCreatedEvent
2154 _grid
.GridEditorCreatedEvent_swiginit(self
,_grid
.new_GridEditorCreatedEvent(*args
, **kwargs
))
2155 def GetRow(*args
, **kwargs
):
2156 """GetRow(self) -> int"""
2157 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2159 def GetCol(*args
, **kwargs
):
2160 """GetCol(self) -> int"""
2161 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2163 def GetControl(*args
, **kwargs
):
2164 """GetControl(self) -> Control"""
2165 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2167 def SetRow(*args
, **kwargs
):
2168 """SetRow(self, int row)"""
2169 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2171 def SetCol(*args
, **kwargs
):
2172 """SetCol(self, int col)"""
2173 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2175 def SetControl(*args
, **kwargs
):
2176 """SetControl(self, Control ctrl)"""
2177 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2179 _grid
.GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent
)
2181 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2182 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2183 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2184 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2185 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2186 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2187 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2188 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2189 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2190 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2191 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2192 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2193 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2194 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2195 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2196 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2197 wxEVT_GRID_CELL_BEGIN_DRAG
= _grid
.wxEVT_GRID_CELL_BEGIN_DRAG
2198 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2199 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2200 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2201 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2202 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2203 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2204 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2205 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2206 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2207 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2208 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2209 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2210 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2211 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2212 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2213 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)
2214 EVT_GRID_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
)
2217 # The same as above but with the ability to specify an identifier
2218 EVT_GRID_CMD_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
, 1 )
2219 EVT_GRID_CMD_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
, 1 )
2220 EVT_GRID_CMD_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
, 1 )
2221 EVT_GRID_CMD_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
, 1 )
2222 EVT_GRID_CMD_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
, 1 )
2223 EVT_GRID_CMD_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
, 1 )
2224 EVT_GRID_CMD_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
, 1 )
2225 EVT_GRID_CMD_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
, 1 )
2226 EVT_GRID_CMD_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
, 1 )
2227 EVT_GRID_CMD_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
, 1 )
2228 EVT_GRID_CMD_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
, 1 )
2229 EVT_GRID_CMD_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
, 1 )
2230 EVT_GRID_CMD_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
, 1 )
2231 EVT_GRID_CMD_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
, 1 )
2232 EVT_GRID_CMD_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
, 1 )
2233 EVT_GRID_CMD_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
, 1 )
2234 EVT_GRID_CMD_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
, 1 )