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 GridCellRenderer(object):
82 """Proxy of C++ GridCellRenderer 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
.GridCellRenderer__setOORInfo(*args
, **kwargs
)
90 def SetParameters(*args
, **kwargs
):
91 """SetParameters(self, String params)"""
92 return _grid
.GridCellRenderer_SetParameters(*args
, **kwargs
)
94 def IncRef(*args
, **kwargs
):
96 return _grid
.GridCellRenderer_IncRef(*args
, **kwargs
)
98 def DecRef(*args
, **kwargs
):
100 return _grid
.GridCellRenderer_DecRef(*args
, **kwargs
)
102 def Draw(*args
, **kwargs
):
104 Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
105 int col, bool isSelected)
107 return _grid
.GridCellRenderer_Draw(*args
, **kwargs
)
109 def GetBestSize(*args
, **kwargs
):
110 """GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
111 return _grid
.GridCellRenderer_GetBestSize(*args
, **kwargs
)
113 def Clone(*args
, **kwargs
):
114 """Clone(self) -> GridCellRenderer"""
115 return _grid
.GridCellRenderer_Clone(*args
, **kwargs
)
117 GridCellRenderer_swigregister
= _grid
.GridCellRenderer_swigregister
118 GridCellRenderer_swigregister(GridCellRenderer
)
120 GridNoCellCoords
= cvar
.GridNoCellCoords
121 GridNoCellRect
= cvar
.GridNoCellRect
123 class PyGridCellRenderer(GridCellRenderer
):
124 """Proxy of C++ PyGridCellRenderer class"""
125 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
126 __repr__
= _swig_repr
127 def __init__(self
, *args
, **kwargs
):
128 """__init__(self) -> PyGridCellRenderer"""
129 _grid
.PyGridCellRenderer_swiginit(self
,_grid
.new_PyGridCellRenderer(*args
, **kwargs
))
130 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
132 def _setCallbackInfo(*args
, **kwargs
):
133 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
134 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
136 def SetParameters(*args
, **kwargs
):
137 """SetParameters(self, String params)"""
138 return _grid
.PyGridCellRenderer_SetParameters(*args
, **kwargs
)
140 def base_SetParameters(*args
, **kw
):
141 return PyGridCellRenderer
.SetParameters(*args
, **kw
)
142 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
143 "Please use PyGridCellRenderer.SetParameters instead.")
145 PyGridCellRenderer_swigregister
= _grid
.PyGridCellRenderer_swigregister
146 PyGridCellRenderer_swigregister(PyGridCellRenderer
)
148 class GridCellStringRenderer(GridCellRenderer
):
149 """Proxy of C++ GridCellStringRenderer class"""
150 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
151 __repr__
= _swig_repr
152 def __init__(self
, *args
, **kwargs
):
153 """__init__(self) -> GridCellStringRenderer"""
154 _grid
.GridCellStringRenderer_swiginit(self
,_grid
.new_GridCellStringRenderer(*args
, **kwargs
))
155 self
._setOORInfo
(self
)
157 GridCellStringRenderer_swigregister
= _grid
.GridCellStringRenderer_swigregister
158 GridCellStringRenderer_swigregister(GridCellStringRenderer
)
160 class GridCellNumberRenderer(GridCellStringRenderer
):
161 """Proxy of C++ GridCellNumberRenderer class"""
162 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
163 __repr__
= _swig_repr
164 def __init__(self
, *args
, **kwargs
):
165 """__init__(self) -> GridCellNumberRenderer"""
166 _grid
.GridCellNumberRenderer_swiginit(self
,_grid
.new_GridCellNumberRenderer(*args
, **kwargs
))
167 self
._setOORInfo
(self
)
169 GridCellNumberRenderer_swigregister
= _grid
.GridCellNumberRenderer_swigregister
170 GridCellNumberRenderer_swigregister(GridCellNumberRenderer
)
172 class GridCellFloatRenderer(GridCellStringRenderer
):
173 """Proxy of C++ GridCellFloatRenderer class"""
174 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
175 __repr__
= _swig_repr
176 def __init__(self
, *args
, **kwargs
):
177 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
178 _grid
.GridCellFloatRenderer_swiginit(self
,_grid
.new_GridCellFloatRenderer(*args
, **kwargs
))
179 self
._setOORInfo
(self
)
181 def GetWidth(*args
, **kwargs
):
182 """GetWidth(self) -> int"""
183 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
185 def SetWidth(*args
, **kwargs
):
186 """SetWidth(self, int width)"""
187 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
189 def GetPrecision(*args
, **kwargs
):
190 """GetPrecision(self) -> int"""
191 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
193 def SetPrecision(*args
, **kwargs
):
194 """SetPrecision(self, int precision)"""
195 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
197 GridCellFloatRenderer_swigregister
= _grid
.GridCellFloatRenderer_swigregister
198 GridCellFloatRenderer_swigregister(GridCellFloatRenderer
)
200 class GridCellBoolRenderer(GridCellRenderer
):
201 """Proxy of C++ GridCellBoolRenderer 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) -> GridCellBoolRenderer"""
206 _grid
.GridCellBoolRenderer_swiginit(self
,_grid
.new_GridCellBoolRenderer(*args
, **kwargs
))
207 self
._setOORInfo
(self
)
209 GridCellBoolRenderer_swigregister
= _grid
.GridCellBoolRenderer_swigregister
210 GridCellBoolRenderer_swigregister(GridCellBoolRenderer
)
212 class GridCellDateTimeRenderer(GridCellStringRenderer
):
213 """Proxy of C++ GridCellDateTimeRenderer class"""
214 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
215 __repr__
= _swig_repr
216 def __init__(self
, *args
, **kwargs
):
217 """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
218 _grid
.GridCellDateTimeRenderer_swiginit(self
,_grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
))
219 self
._setOORInfo
(self
)
221 GridCellDateTimeRenderer_swigregister
= _grid
.GridCellDateTimeRenderer_swigregister
222 GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer
)
224 class GridCellEnumRenderer(GridCellStringRenderer
):
225 """Proxy of C++ GridCellEnumRenderer class"""
226 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
227 __repr__
= _swig_repr
228 def __init__(self
, *args
, **kwargs
):
229 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
230 _grid
.GridCellEnumRenderer_swiginit(self
,_grid
.new_GridCellEnumRenderer(*args
, **kwargs
))
231 self
._setOORInfo
(self
)
233 GridCellEnumRenderer_swigregister
= _grid
.GridCellEnumRenderer_swigregister
234 GridCellEnumRenderer_swigregister(GridCellEnumRenderer
)
236 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
237 """Proxy of C++ GridCellAutoWrapStringRenderer class"""
238 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
239 __repr__
= _swig_repr
240 def __init__(self
, *args
, **kwargs
):
241 """__init__(self) -> GridCellAutoWrapStringRenderer"""
242 _grid
.GridCellAutoWrapStringRenderer_swiginit(self
,_grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
))
243 self
._setOORInfo
(self
)
245 GridCellAutoWrapStringRenderer_swigregister
= _grid
.GridCellAutoWrapStringRenderer_swigregister
246 GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer
)
248 class GridCellEditor(object):
249 """Proxy of C++ GridCellEditor class"""
250 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
251 def __init__(self
): raise AttributeError, "No constructor defined"
252 __repr__
= _swig_repr
253 def _setOORInfo(*args
, **kwargs
):
254 """_setOORInfo(self, PyObject _self)"""
255 return _grid
.GridCellEditor__setOORInfo(*args
, **kwargs
)
257 def IsCreated(*args
, **kwargs
):
258 """IsCreated(self) -> bool"""
259 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
261 def GetControl(*args
, **kwargs
):
262 """GetControl(self) -> Control"""
263 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
265 def SetControl(*args
, **kwargs
):
266 """SetControl(self, Control control)"""
267 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
269 def GetCellAttr(*args
, **kwargs
):
270 """GetCellAttr(self) -> GridCellAttr"""
271 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
273 def SetCellAttr(*args
, **kwargs
):
274 """SetCellAttr(self, GridCellAttr attr)"""
275 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
277 def SetParameters(*args
, **kwargs
):
278 """SetParameters(self, String params)"""
279 return _grid
.GridCellEditor_SetParameters(*args
, **kwargs
)
281 def IncRef(*args
, **kwargs
):
283 return _grid
.GridCellEditor_IncRef(*args
, **kwargs
)
285 def DecRef(*args
, **kwargs
):
287 return _grid
.GridCellEditor_DecRef(*args
, **kwargs
)
289 def Create(*args
, **kwargs
):
290 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
291 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
293 def BeginEdit(*args
, **kwargs
):
294 """BeginEdit(self, int row, int col, Grid grid)"""
295 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
297 def EndEdit(*args
, **kwargs
):
298 """EndEdit(self, int row, int col, Grid grid) -> bool"""
299 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
301 def Reset(*args
, **kwargs
):
303 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
305 def Clone(*args
, **kwargs
):
306 """Clone(self) -> GridCellEditor"""
307 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
309 def SetSize(*args
, **kwargs
):
310 """SetSize(self, Rect rect)"""
311 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
313 def Show(*args
, **kwargs
):
314 """Show(self, bool show, GridCellAttr attr=None)"""
315 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
317 def PaintBackground(*args
, **kwargs
):
318 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
319 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
321 def IsAcceptedKey(*args
, **kwargs
):
322 """IsAcceptedKey(self, KeyEvent event) -> bool"""
323 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
325 def StartingKey(*args
, **kwargs
):
326 """StartingKey(self, KeyEvent event)"""
327 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
329 def StartingClick(*args
, **kwargs
):
330 """StartingClick(self)"""
331 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
333 def HandleReturn(*args
, **kwargs
):
334 """HandleReturn(self, KeyEvent event)"""
335 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
337 def Destroy(*args
, **kwargs
):
339 val
= _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
343 GridCellEditor_swigregister
= _grid
.GridCellEditor_swigregister
344 GridCellEditor_swigregister(GridCellEditor
)
346 class PyGridCellEditor(GridCellEditor
):
347 """Proxy of C++ PyGridCellEditor class"""
348 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
349 __repr__
= _swig_repr
350 def __init__(self
, *args
, **kwargs
):
351 """__init__(self) -> PyGridCellEditor"""
352 _grid
.PyGridCellEditor_swiginit(self
,_grid
.new_PyGridCellEditor(*args
, **kwargs
))
353 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
355 def _setCallbackInfo(*args
, **kwargs
):
356 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
357 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
359 def SetParameters(*args
, **kwargs
):
360 """SetParameters(self, String params)"""
361 return _grid
.PyGridCellEditor_SetParameters(*args
, **kwargs
)
363 def base_SetSize(*args
, **kw
):
364 return PyGridCellEditor
.SetSize(*args
, **kw
)
365 base_SetSize
= wx
._deprecated
(base_SetSize
,
366 "Please use PyGridCellEditor.SetSize instead.")
368 def base_Show(*args
, **kw
):
369 return PyGridCellEditor
.Show(*args
, **kw
)
370 base_Show
= wx
._deprecated
(base_Show
,
371 "Please use PyGridCellEditor.Show instead.")
373 def base_PaintBackground(*args
, **kw
):
374 return PyGridCellEditor
.PaintBackground(*args
, **kw
)
375 base_PaintBackground
= wx
._deprecated
(base_PaintBackground
,
376 "Please use PyGridCellEditor.PaintBackground instead.")
378 def base_IsAcceptedKey(*args
, **kw
):
379 return PyGridCellEditor
.IsAcceptedKey(*args
, **kw
)
380 base_IsAcceptedKey
= wx
._deprecated
(base_IsAcceptedKey
,
381 "Please use PyGridCellEditor.IsAcceptedKey instead.")
383 def base_StartingKey(*args
, **kw
):
384 return PyGridCellEditor
.StartingKey(*args
, **kw
)
385 base_StartingKey
= wx
._deprecated
(base_StartingKey
,
386 "Please use PyGridCellEditor.StartingKey instead.")
388 def base_StartingClick(*args
, **kw
):
389 return PyGridCellEditor
.StartingClick(*args
, **kw
)
390 base_StartingClick
= wx
._deprecated
(base_StartingClick
,
391 "Please use PyGridCellEditor.StartingClick instead.")
393 def base_HandleReturn(*args
, **kw
):
394 return PyGridCellEditor
.HandleReturn(*args
, **kw
)
395 base_HandleReturn
= wx
._deprecated
(base_HandleReturn
,
396 "Please use PyGridCellEditor.HandleReturn instead.")
398 def base_Destroy(*args
, **kw
):
399 return PyGridCellEditor
.Destroy(*args
, **kw
)
400 base_Destroy
= wx
._deprecated
(base_Destroy
,
401 "Please use PyGridCellEditor.Destroy instead.")
403 def base_SetParameters(*args
, **kw
):
404 return PyGridCellEditor
.SetParameters(*args
, **kw
)
405 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
406 "Please use PyGridCellEditor.SetParameters instead.")
408 PyGridCellEditor_swigregister
= _grid
.PyGridCellEditor_swigregister
409 PyGridCellEditor_swigregister(PyGridCellEditor
)
411 class GridCellTextEditor(GridCellEditor
):
412 """Proxy of C++ GridCellTextEditor class"""
413 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
414 __repr__
= _swig_repr
415 def __init__(self
, *args
, **kwargs
):
416 """__init__(self) -> GridCellTextEditor"""
417 _grid
.GridCellTextEditor_swiginit(self
,_grid
.new_GridCellTextEditor(*args
, **kwargs
))
418 self
._setOORInfo
(self
)
420 def GetValue(*args
, **kwargs
):
421 """GetValue(self) -> String"""
422 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
424 GridCellTextEditor_swigregister
= _grid
.GridCellTextEditor_swigregister
425 GridCellTextEditor_swigregister(GridCellTextEditor
)
427 class GridCellNumberEditor(GridCellTextEditor
):
428 """Proxy of C++ GridCellNumberEditor class"""
429 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
430 __repr__
= _swig_repr
431 def __init__(self
, *args
, **kwargs
):
432 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
433 _grid
.GridCellNumberEditor_swiginit(self
,_grid
.new_GridCellNumberEditor(*args
, **kwargs
))
434 self
._setOORInfo
(self
)
436 GridCellNumberEditor_swigregister
= _grid
.GridCellNumberEditor_swigregister
437 GridCellNumberEditor_swigregister(GridCellNumberEditor
)
439 class GridCellFloatEditor(GridCellTextEditor
):
440 """Proxy of C++ GridCellFloatEditor class"""
441 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
442 __repr__
= _swig_repr
443 def __init__(self
, *args
, **kwargs
):
444 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
445 _grid
.GridCellFloatEditor_swiginit(self
,_grid
.new_GridCellFloatEditor(*args
, **kwargs
))
446 self
._setOORInfo
(self
)
448 GridCellFloatEditor_swigregister
= _grid
.GridCellFloatEditor_swigregister
449 GridCellFloatEditor_swigregister(GridCellFloatEditor
)
451 class GridCellBoolEditor(GridCellEditor
):
452 """Proxy of C++ GridCellBoolEditor class"""
453 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
454 __repr__
= _swig_repr
455 def __init__(self
, *args
, **kwargs
):
456 """__init__(self) -> GridCellBoolEditor"""
457 _grid
.GridCellBoolEditor_swiginit(self
,_grid
.new_GridCellBoolEditor(*args
, **kwargs
))
458 self
._setOORInfo
(self
)
460 def GetValue(*args
, **kwargs
):
461 """GetValue(self) -> String"""
462 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
464 GridCellBoolEditor_swigregister
= _grid
.GridCellBoolEditor_swigregister
465 GridCellBoolEditor_swigregister(GridCellBoolEditor
)
467 class GridCellChoiceEditor(GridCellEditor
):
468 """Proxy of C++ GridCellChoiceEditor 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 def __init__(self
, *args
, **kwargs
):
472 """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
473 _grid
.GridCellChoiceEditor_swiginit(self
,_grid
.new_GridCellChoiceEditor(*args
, **kwargs
))
474 self
._setOORInfo
(self
)
476 def GetValue(*args
, **kwargs
):
477 """GetValue(self) -> String"""
478 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
480 GridCellChoiceEditor_swigregister
= _grid
.GridCellChoiceEditor_swigregister
481 GridCellChoiceEditor_swigregister(GridCellChoiceEditor
)
483 class GridCellEnumEditor(GridCellChoiceEditor
):
484 """Proxy of C++ GridCellEnumEditor class"""
485 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
486 __repr__
= _swig_repr
487 def __init__(self
, *args
, **kwargs
):
488 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
489 _grid
.GridCellEnumEditor_swiginit(self
,_grid
.new_GridCellEnumEditor(*args
, **kwargs
))
490 self
._setOORInfo
(self
)
492 GridCellEnumEditor_swigregister
= _grid
.GridCellEnumEditor_swigregister
493 GridCellEnumEditor_swigregister(GridCellEnumEditor
)
495 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
496 """Proxy of C++ GridCellAutoWrapStringEditor class"""
497 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
498 __repr__
= _swig_repr
499 def __init__(self
, *args
, **kwargs
):
500 """__init__(self) -> GridCellAutoWrapStringEditor"""
501 _grid
.GridCellAutoWrapStringEditor_swiginit(self
,_grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
))
502 self
._setOORInfo
(self
)
504 GridCellAutoWrapStringEditor_swigregister
= _grid
.GridCellAutoWrapStringEditor_swigregister
505 GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor
)
507 class GridCellAttr(object):
508 """Proxy of C++ GridCellAttr class"""
509 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
510 __repr__
= _swig_repr
511 Any
= _grid
.GridCellAttr_Any
512 Default
= _grid
.GridCellAttr_Default
513 Cell
= _grid
.GridCellAttr_Cell
514 Row
= _grid
.GridCellAttr_Row
515 Col
= _grid
.GridCellAttr_Col
516 Merged
= _grid
.GridCellAttr_Merged
517 def _setOORInfo(*args
, **kwargs
):
518 """_setOORInfo(self, PyObject _self)"""
519 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
521 def __init__(self
, *args
, **kwargs
):
522 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
523 _grid
.GridCellAttr_swiginit(self
,_grid
.new_GridCellAttr(*args
, **kwargs
))
524 self
._setOORInfo
(self
)
526 def Clone(*args
, **kwargs
):
527 """Clone(self) -> GridCellAttr"""
528 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
530 def MergeWith(*args
, **kwargs
):
531 """MergeWith(self, GridCellAttr mergefrom)"""
532 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
534 def IncRef(*args
, **kwargs
):
536 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
538 def DecRef(*args
, **kwargs
):
540 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
542 def SetTextColour(*args
, **kwargs
):
543 """SetTextColour(self, Colour colText)"""
544 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
546 def SetBackgroundColour(*args
, **kwargs
):
547 """SetBackgroundColour(self, Colour colBack)"""
548 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
550 def SetFont(*args
, **kwargs
):
551 """SetFont(self, Font font)"""
552 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
554 def SetAlignment(*args
, **kwargs
):
555 """SetAlignment(self, int hAlign, int vAlign)"""
556 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
558 def SetSize(*args
, **kwargs
):
559 """SetSize(self, int num_rows, int num_cols)"""
560 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
562 def SetOverflow(*args
, **kwargs
):
563 """SetOverflow(self, bool allow=True)"""
564 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
566 def SetReadOnly(*args
, **kwargs
):
567 """SetReadOnly(self, bool isReadOnly=True)"""
568 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
570 def SetRenderer(*args
, **kwargs
):
571 """SetRenderer(self, GridCellRenderer renderer)"""
572 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
574 def SetEditor(*args
, **kwargs
):
575 """SetEditor(self, GridCellEditor editor)"""
576 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
578 def SetKind(*args
, **kwargs
):
579 """SetKind(self, int kind)"""
580 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
582 def HasTextColour(*args
, **kwargs
):
583 """HasTextColour(self) -> bool"""
584 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
586 def HasBackgroundColour(*args
, **kwargs
):
587 """HasBackgroundColour(self) -> bool"""
588 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
590 def HasFont(*args
, **kwargs
):
591 """HasFont(self) -> bool"""
592 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
594 def HasAlignment(*args
, **kwargs
):
595 """HasAlignment(self) -> bool"""
596 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
598 def HasRenderer(*args
, **kwargs
):
599 """HasRenderer(self) -> bool"""
600 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
602 def HasEditor(*args
, **kwargs
):
603 """HasEditor(self) -> bool"""
604 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
606 def HasReadWriteMode(*args
, **kwargs
):
607 """HasReadWriteMode(self) -> bool"""
608 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
610 def HasOverflowMode(*args
, **kwargs
):
611 """HasOverflowMode(self) -> bool"""
612 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
614 def GetTextColour(*args
, **kwargs
):
615 """GetTextColour(self) -> Colour"""
616 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
618 def GetBackgroundColour(*args
, **kwargs
):
619 """GetBackgroundColour(self) -> Colour"""
620 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
622 def GetFont(*args
, **kwargs
):
623 """GetFont(self) -> Font"""
624 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
626 def GetAlignment(*args
, **kwargs
):
627 """GetAlignment() -> (hAlign, vAlign)"""
628 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
630 def GetSize(*args
, **kwargs
):
631 """GetSize() -> (num_rows, num_cols)"""
632 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
634 def GetOverflow(*args
, **kwargs
):
635 """GetOverflow(self) -> bool"""
636 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
638 def GetRenderer(*args
, **kwargs
):
639 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
640 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
642 def GetEditor(*args
, **kwargs
):
643 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
644 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
646 def IsReadOnly(*args
, **kwargs
):
647 """IsReadOnly(self) -> bool"""
648 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
650 def GetKind(*args
, **kwargs
):
651 """GetKind(self) -> int"""
652 return _grid
.GridCellAttr_GetKind(*args
, **kwargs
)
654 def SetDefAttr(*args
, **kwargs
):
655 """SetDefAttr(self, GridCellAttr defAttr)"""
656 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
658 GridCellAttr_swigregister
= _grid
.GridCellAttr_swigregister
659 GridCellAttr_swigregister(GridCellAttr
)
661 class GridCellAttrProvider(object):
662 """Proxy of C++ GridCellAttrProvider 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) -> GridCellAttrProvider"""
667 _grid
.GridCellAttrProvider_swiginit(self
,_grid
.new_GridCellAttrProvider(*args
, **kwargs
))
668 self
._setOORInfo
(self
)
670 def _setOORInfo(*args
, **kwargs
):
671 """_setOORInfo(self, PyObject _self)"""
672 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
674 def GetAttr(*args
, **kwargs
):
675 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
676 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
678 def SetAttr(*args
, **kwargs
):
679 """SetAttr(self, GridCellAttr attr, int row, int col)"""
680 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
682 def SetRowAttr(*args
, **kwargs
):
683 """SetRowAttr(self, GridCellAttr attr, int row)"""
684 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
686 def SetColAttr(*args
, **kwargs
):
687 """SetColAttr(self, GridCellAttr attr, int col)"""
688 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
690 def UpdateAttrRows(*args
, **kwargs
):
691 """UpdateAttrRows(self, size_t pos, int numRows)"""
692 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
694 def UpdateAttrCols(*args
, **kwargs
):
695 """UpdateAttrCols(self, size_t pos, int numCols)"""
696 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
698 GridCellAttrProvider_swigregister
= _grid
.GridCellAttrProvider_swigregister
699 GridCellAttrProvider_swigregister(GridCellAttrProvider
)
701 class PyGridCellAttrProvider(GridCellAttrProvider
):
702 """Proxy of C++ PyGridCellAttrProvider class"""
703 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
704 __repr__
= _swig_repr
705 def __init__(self
, *args
, **kwargs
):
706 """__init__(self) -> PyGridCellAttrProvider"""
707 _grid
.PyGridCellAttrProvider_swiginit(self
,_grid
.new_PyGridCellAttrProvider(*args
, **kwargs
))
708 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
710 def _setCallbackInfo(*args
, **kwargs
):
711 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
712 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
714 def GetAttr(*args
, **kwargs
):
715 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
716 return _grid
.PyGridCellAttrProvider_GetAttr(*args
, **kwargs
)
718 def SetAttr(*args
, **kwargs
):
719 """SetAttr(self, GridCellAttr attr, int row, int col)"""
720 return _grid
.PyGridCellAttrProvider_SetAttr(*args
, **kwargs
)
722 def SetRowAttr(*args
, **kwargs
):
723 """SetRowAttr(self, GridCellAttr attr, int row)"""
724 return _grid
.PyGridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
726 def SetColAttr(*args
, **kwargs
):
727 """SetColAttr(self, GridCellAttr attr, int col)"""
728 return _grid
.PyGridCellAttrProvider_SetColAttr(*args
, **kwargs
)
730 def base_GetAttr(*args
, **kw
):
731 return PyGridCellAttrProvider
.GetAttr(*args
, **kw
)
732 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
733 "Please use PyGridCellAttrProvider.GetAttr instead.")
735 def base_SetAttr(*args
, **kw
):
736 return PyGridCellAttrProvider
.SetAttr(*args
, **kw
)
737 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
738 "Please use PyGridCellAttrProvider.SetAttr instead.")
740 def base_SetRowAttr(*args
, **kw
):
741 return PyGridCellAttrProvider
.SetRowAttr(*args
, **kw
)
742 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
743 "Please use PyGridCellAttrProvider.SetRowAttr instead.")
745 def base_SetColAttr(*args
, **kw
):
746 return PyGridCellAttrProvider
.SetColAttr(*args
, **kw
)
747 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
748 "Please use PyGridCellAttrProvider.SetColAttr instead.")
750 PyGridCellAttrProvider_swigregister
= _grid
.PyGridCellAttrProvider_swigregister
751 PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider
)
753 class GridTableBase(_core
.Object
):
754 """Proxy of C++ GridTableBase class"""
755 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
756 def __init__(self
): raise AttributeError, "No constructor defined"
757 __repr__
= _swig_repr
758 def _setOORInfo(*args
, **kwargs
):
759 """_setOORInfo(self, PyObject _self)"""
760 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
762 def SetAttrProvider(*args
, **kwargs
):
763 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
764 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
766 def GetAttrProvider(*args
, **kwargs
):
767 """GetAttrProvider(self) -> GridCellAttrProvider"""
768 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
770 def SetView(*args
, **kwargs
):
771 """SetView(self, Grid grid)"""
772 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
774 def GetView(*args
, **kwargs
):
775 """GetView(self) -> Grid"""
776 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
778 def GetNumberRows(*args
, **kwargs
):
779 """GetNumberRows(self) -> int"""
780 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
782 def GetNumberCols(*args
, **kwargs
):
783 """GetNumberCols(self) -> int"""
784 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
786 def IsEmptyCell(*args
, **kwargs
):
787 """IsEmptyCell(self, int row, int col) -> bool"""
788 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
790 def GetValue(*args
, **kwargs
):
791 """GetValue(self, int row, int col) -> String"""
792 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
794 def SetValue(*args
, **kwargs
):
795 """SetValue(self, int row, int col, String value)"""
796 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
798 def GetTypeName(*args
, **kwargs
):
799 """GetTypeName(self, int row, int col) -> String"""
800 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
802 def CanGetValueAs(*args
, **kwargs
):
803 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
804 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
806 def CanSetValueAs(*args
, **kwargs
):
807 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
808 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
810 def GetValueAsLong(*args
, **kwargs
):
811 """GetValueAsLong(self, int row, int col) -> long"""
812 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
814 def GetValueAsDouble(*args
, **kwargs
):
815 """GetValueAsDouble(self, int row, int col) -> double"""
816 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
818 def GetValueAsBool(*args
, **kwargs
):
819 """GetValueAsBool(self, int row, int col) -> bool"""
820 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
822 def SetValueAsLong(*args
, **kwargs
):
823 """SetValueAsLong(self, int row, int col, long value)"""
824 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
826 def SetValueAsDouble(*args
, **kwargs
):
827 """SetValueAsDouble(self, int row, int col, double value)"""
828 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
830 def SetValueAsBool(*args
, **kwargs
):
831 """SetValueAsBool(self, int row, int col, bool value)"""
832 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
834 def Clear(*args
, **kwargs
):
836 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
838 def InsertRows(*args
, **kwargs
):
839 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
840 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
842 def AppendRows(*args
, **kwargs
):
843 """AppendRows(self, size_t numRows=1) -> bool"""
844 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
846 def DeleteRows(*args
, **kwargs
):
847 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
848 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
850 def InsertCols(*args
, **kwargs
):
851 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
852 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
854 def AppendCols(*args
, **kwargs
):
855 """AppendCols(self, size_t numCols=1) -> bool"""
856 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
858 def DeleteCols(*args
, **kwargs
):
859 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
860 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
862 def GetRowLabelValue(*args
, **kwargs
):
863 """GetRowLabelValue(self, int row) -> String"""
864 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
866 def GetColLabelValue(*args
, **kwargs
):
867 """GetColLabelValue(self, int col) -> String"""
868 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
870 def SetRowLabelValue(*args
, **kwargs
):
871 """SetRowLabelValue(self, int row, String value)"""
872 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
874 def SetColLabelValue(*args
, **kwargs
):
875 """SetColLabelValue(self, int col, String value)"""
876 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
878 def CanHaveAttributes(*args
, **kwargs
):
879 """CanHaveAttributes(self) -> bool"""
880 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
882 def GetAttr(*args
, **kwargs
):
883 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
884 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
886 def SetAttr(*args
, **kwargs
):
887 """SetAttr(self, GridCellAttr attr, int row, int col)"""
888 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
890 def SetRowAttr(*args
, **kwargs
):
891 """SetRowAttr(self, GridCellAttr attr, int row)"""
892 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
894 def SetColAttr(*args
, **kwargs
):
895 """SetColAttr(self, GridCellAttr attr, int col)"""
896 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
898 GridTableBase_swigregister
= _grid
.GridTableBase_swigregister
899 GridTableBase_swigregister(GridTableBase
)
901 class PyGridTableBase(GridTableBase
):
902 """Proxy of C++ PyGridTableBase class"""
903 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
904 __repr__
= _swig_repr
905 def __init__(self
, *args
, **kwargs
):
906 """__init__(self) -> PyGridTableBase"""
907 _grid
.PyGridTableBase_swiginit(self
,_grid
.new_PyGridTableBase(*args
, **kwargs
))
908 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
910 def _setCallbackInfo(*args
, **kwargs
):
911 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
912 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
914 def Destroy(*args
, **kwargs
):
918 Deletes the C++ object this Python object is a proxy for.
920 val
= _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
924 def base_GetTypeName(*args
, **kw
):
925 return PyGridTableBase
.GetTypeName(*args
, **kw
)
926 base_GetTypeName
= wx
._deprecated
(base_GetTypeName
,
927 "Please use PyGridTableBase.GetTypeName instead.")
929 def base_CanGetValueAs(*args
, **kw
):
930 return PyGridTableBase
.CanGetValueAs(*args
, **kw
)
931 base_CanGetValueAs
= wx
._deprecated
(base_CanGetValueAs
,
932 "Please use PyGridTableBase.CanGetValueAs instead.")
934 def base_CanSetValueAs(*args
, **kw
):
935 return PyGridTableBase
.CanSetValueAs(*args
, **kw
)
936 base_CanSetValueAs
= wx
._deprecated
(base_CanSetValueAs
,
937 "Please use PyGridTableBase.CanSetValueAs instead.")
939 def base_Clear(*args
, **kw
):
940 return PyGridTableBase
.Clear(*args
, **kw
)
941 base_Clear
= wx
._deprecated
(base_Clear
,
942 "Please use PyGridTableBase.Clear instead.")
944 def base_InsertRows(*args
, **kw
):
945 return PyGridTableBase
.InsertRows(*args
, **kw
)
946 base_InsertRows
= wx
._deprecated
(base_InsertRows
,
947 "Please use PyGridTableBase.InsertRows instead.")
949 def base_AppendRows(*args
, **kw
):
950 return PyGridTableBase
.AppendRows(*args
, **kw
)
951 base_AppendRows
= wx
._deprecated
(base_AppendRows
,
952 "Please use PyGridTableBase.AppendRows instead.")
954 def base_DeleteRows(*args
, **kw
):
955 return PyGridTableBase
.DeleteRows(*args
, **kw
)
956 base_DeleteRows
= wx
._deprecated
(base_DeleteRows
,
957 "Please use PyGridTableBase.DeleteRows instead.")
959 def base_InsertCols(*args
, **kw
):
960 return PyGridTableBase
.InsertCols(*args
, **kw
)
961 base_InsertCols
= wx
._deprecated
(base_InsertCols
,
962 "Please use PyGridTableBase.InsertCols instead.")
964 def base_AppendCols(*args
, **kw
):
965 return PyGridTableBase
.AppendCols(*args
, **kw
)
966 base_AppendCols
= wx
._deprecated
(base_AppendCols
,
967 "Please use PyGridTableBase.AppendCols instead.")
969 def base_DeleteCols(*args
, **kw
):
970 return PyGridTableBase
.DeleteCols(*args
, **kw
)
971 base_DeleteCols
= wx
._deprecated
(base_DeleteCols
,
972 "Please use PyGridTableBase.DeleteCols instead.")
974 def base_GetRowLabelValue(*args
, **kw
):
975 return PyGridTableBase
.GetRowLabelValue(*args
, **kw
)
976 base_GetRowLabelValue
= wx
._deprecated
(base_GetRowLabelValue
,
977 "Please use PyGridTableBase.GetRowLabelValue instead.")
979 def base_GetColLabelValue(*args
, **kw
):
980 return PyGridTableBase
.GetColLabelValue(*args
, **kw
)
981 base_GetColLabelValue
= wx
._deprecated
(base_GetColLabelValue
,
982 "Please use PyGridTableBase.GetColLabelValue instead.")
984 def base_SetRowLabelValue(*args
, **kw
):
985 return PyGridTableBase
.SetRowLabelValue(*args
, **kw
)
986 base_SetRowLabelValue
= wx
._deprecated
(base_SetRowLabelValue
,
987 "Please use PyGridTableBase.SetRowLabelValue instead.")
989 def base_SetColLabelValue(*args
, **kw
):
990 return PyGridTableBase
.SetColLabelValue(*args
, **kw
)
991 base_SetColLabelValue
= wx
._deprecated
(base_SetColLabelValue
,
992 "Please use PyGridTableBase.SetColLabelValue instead.")
994 def base_CanHaveAttributes(*args
, **kw
):
995 return PyGridTableBase
.CanHaveAttributes(*args
, **kw
)
996 base_CanHaveAttributes
= wx
._deprecated
(base_CanHaveAttributes
,
997 "Please use PyGridTableBase.CanHaveAttributes instead.")
999 def base_GetAttr(*args
, **kw
):
1000 return PyGridTableBase
.GetAttr(*args
, **kw
)
1001 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
1002 "Please use PyGridTableBase.GetAttr instead.")
1004 def base_SetAttr(*args
, **kw
):
1005 return PyGridTableBase
.SetAttr(*args
, **kw
)
1006 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
1007 "Please use PyGridTableBase.SetAttr instead.")
1009 def base_SetRowAttr(*args
, **kw
):
1010 return PyGridTableBase
.SetRowAttr(*args
, **kw
)
1011 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
1012 "Please use PyGridTableBase.SetRowAttr instead.")
1014 def base_SetColAttr(*args
, **kw
):
1015 return PyGridTableBase
.SetColAttr(*args
, **kw
)
1016 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
1017 "Please use PyGridTableBase.SetColAttr instead.")
1019 PyGridTableBase_swigregister
= _grid
.PyGridTableBase_swigregister
1020 PyGridTableBase_swigregister(PyGridTableBase
)
1022 class GridStringTable(GridTableBase
):
1023 """Proxy of C++ GridStringTable class"""
1024 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1025 __repr__
= _swig_repr
1026 def __init__(self
, *args
, **kwargs
):
1027 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1028 _grid
.GridStringTable_swiginit(self
,_grid
.new_GridStringTable(*args
, **kwargs
))
1029 self
._setOORInfo
(self
)
1031 GridStringTable_swigregister
= _grid
.GridStringTable_swigregister
1032 GridStringTable_swigregister(GridStringTable
)
1034 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1035 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1036 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1037 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1038 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1039 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1040 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1041 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1042 class GridTableMessage(object):
1043 """Proxy of C++ GridTableMessage class"""
1044 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1045 __repr__
= _swig_repr
1046 def __init__(self
, *args
, **kwargs
):
1047 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1048 _grid
.GridTableMessage_swiginit(self
,_grid
.new_GridTableMessage(*args
, **kwargs
))
1049 __swig_destroy__
= _grid
.delete_GridTableMessage
1050 __del__
= lambda self
: None;
1051 def SetTableObject(*args
, **kwargs
):
1052 """SetTableObject(self, GridTableBase table)"""
1053 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1055 def GetTableObject(*args
, **kwargs
):
1056 """GetTableObject(self) -> GridTableBase"""
1057 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1059 def SetId(*args
, **kwargs
):
1060 """SetId(self, int id)"""
1061 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1063 def GetId(*args
, **kwargs
):
1064 """GetId(self) -> int"""
1065 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1067 def SetCommandInt(*args
, **kwargs
):
1068 """SetCommandInt(self, int comInt1)"""
1069 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1071 def GetCommandInt(*args
, **kwargs
):
1072 """GetCommandInt(self) -> int"""
1073 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1075 def SetCommandInt2(*args
, **kwargs
):
1076 """SetCommandInt2(self, int comInt2)"""
1077 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1079 def GetCommandInt2(*args
, **kwargs
):
1080 """GetCommandInt2(self) -> int"""
1081 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1083 GridTableMessage_swigregister
= _grid
.GridTableMessage_swigregister
1084 GridTableMessage_swigregister(GridTableMessage
)
1086 class GridCellCoords(object):
1087 """Proxy of C++ GridCellCoords class"""
1088 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1089 __repr__
= _swig_repr
1090 def __init__(self
, *args
, **kwargs
):
1091 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1092 _grid
.GridCellCoords_swiginit(self
,_grid
.new_GridCellCoords(*args
, **kwargs
))
1093 __swig_destroy__
= _grid
.delete_GridCellCoords
1094 __del__
= lambda self
: None;
1095 def GetRow(*args
, **kwargs
):
1096 """GetRow(self) -> int"""
1097 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1099 def SetRow(*args
, **kwargs
):
1100 """SetRow(self, int n)"""
1101 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1103 def GetCol(*args
, **kwargs
):
1104 """GetCol(self) -> int"""
1105 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1107 def SetCol(*args
, **kwargs
):
1108 """SetCol(self, int n)"""
1109 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1111 def Set(*args
, **kwargs
):
1112 """Set(self, int row, int col)"""
1113 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1115 def __eq__(*args
, **kwargs
):
1116 """__eq__(self, GridCellCoords other) -> bool"""
1117 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1119 def __ne__(*args
, **kwargs
):
1120 """__ne__(self, GridCellCoords other) -> bool"""
1121 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1123 def Get(*args
, **kwargs
):
1124 """Get(self) -> PyObject"""
1125 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1127 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1128 def __str__(self
): return str(self
.Get())
1129 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1130 def __len__(self
): return len(self
.Get())
1131 def __getitem__(self
, index
): return self
.asTuple()[index
]
1132 def __setitem__(self
, index
, val
):
1133 if index
== 0: self
.SetRow(val
)
1134 elif index
== 1: self
.SetCol(val
)
1135 else: raise IndexError
1137 GridCellCoords_swigregister
= _grid
.GridCellCoords_swigregister
1138 GridCellCoords_swigregister(GridCellCoords
)
1140 class Grid(_windows
.ScrolledWindow
):
1141 """Proxy of C++ Grid class"""
1142 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1143 __repr__
= _swig_repr
1144 def __init__(self
, *args
, **kwargs
):
1146 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1147 Size size=DefaultSize, long style=WANTS_CHARS,
1148 String name=PanelNameStr) -> Grid
1150 _grid
.Grid_swiginit(self
,_grid
.new_Grid(*args
, **kwargs
))
1151 self
._setOORInfo
(self
)
1153 def Create(*args
, **kwargs
):
1155 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1156 Size size=DefaultSize, long style=WANTS_CHARS,
1157 String name=PanelNameStr) -> bool
1159 return _grid
.Grid_Create(*args
, **kwargs
)
1161 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1162 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1163 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1164 SelectCells
= wxGridSelectCells
1165 SelectRows
= wxGridSelectRows
1166 SelectColumns
= wxGridSelectColumns
1168 def CreateGrid(*args
, **kwargs
):
1169 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1170 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1172 def SetSelectionMode(*args
, **kwargs
):
1173 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1174 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1176 def GetSelectionMode(*args
, **kwargs
):
1177 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1178 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1180 def GetNumberRows(*args
, **kwargs
):
1181 """GetNumberRows(self) -> int"""
1182 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1184 def GetNumberCols(*args
, **kwargs
):
1185 """GetNumberCols(self) -> int"""
1186 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1188 def ProcessTableMessage(*args
, **kwargs
):
1189 """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
1190 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1192 def GetTable(*args
, **kwargs
):
1193 """GetTable(self) -> GridTableBase"""
1194 return _grid
.Grid_GetTable(*args
, **kwargs
)
1196 def SetTable(*args
, **kwargs
):
1197 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1198 return _grid
.Grid_SetTable(*args
, **kwargs
)
1200 def ClearGrid(*args
, **kwargs
):
1201 """ClearGrid(self)"""
1202 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1204 def InsertRows(*args
, **kwargs
):
1205 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1206 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1208 def AppendRows(*args
, **kwargs
):
1209 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1210 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1212 def DeleteRows(*args
, **kwargs
):
1213 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1214 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1216 def InsertCols(*args
, **kwargs
):
1217 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1218 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1220 def AppendCols(*args
, **kwargs
):
1221 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1222 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1224 def DeleteCols(*args
, **kwargs
):
1225 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1226 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1228 def DrawCellHighlight(*args
, **kwargs
):
1229 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1230 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1232 def DrawTextRectangle(*args
, **kwargs
):
1234 DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
1235 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1237 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1239 def GetTextBoxSize(*args
, **kwargs
):
1240 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1241 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1243 def BeginBatch(*args
, **kwargs
):
1244 """BeginBatch(self)"""
1245 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1247 def EndBatch(*args
, **kwargs
):
1248 """EndBatch(self)"""
1249 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1251 def GetBatchCount(*args
, **kwargs
):
1252 """GetBatchCount(self) -> int"""
1253 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1255 def ForceRefresh(*args
, **kwargs
):
1256 """ForceRefresh(self)"""
1257 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1259 def IsEditable(*args
, **kwargs
):
1260 """IsEditable(self) -> bool"""
1261 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1263 def EnableEditing(*args
, **kwargs
):
1264 """EnableEditing(self, bool edit)"""
1265 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1267 def EnableCellEditControl(*args
, **kwargs
):
1268 """EnableCellEditControl(self, bool enable=True)"""
1269 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1271 def DisableCellEditControl(*args
, **kwargs
):
1272 """DisableCellEditControl(self)"""
1273 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1275 def CanEnableCellControl(*args
, **kwargs
):
1276 """CanEnableCellControl(self) -> bool"""
1277 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1279 def IsCellEditControlEnabled(*args
, **kwargs
):
1280 """IsCellEditControlEnabled(self) -> bool"""
1281 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1283 def IsCellEditControlShown(*args
, **kwargs
):
1284 """IsCellEditControlShown(self) -> bool"""
1285 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1287 def IsCurrentCellReadOnly(*args
, **kwargs
):
1288 """IsCurrentCellReadOnly(self) -> bool"""
1289 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1291 def ShowCellEditControl(*args
, **kwargs
):
1292 """ShowCellEditControl(self)"""
1293 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1295 def HideCellEditControl(*args
, **kwargs
):
1296 """HideCellEditControl(self)"""
1297 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1299 def SaveEditControlValue(*args
, **kwargs
):
1300 """SaveEditControlValue(self)"""
1301 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1303 def XYToCell(*args
, **kwargs
):
1304 """XYToCell(self, int x, int y) -> GridCellCoords"""
1305 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1307 def YToRow(*args
, **kwargs
):
1308 """YToRow(self, int y) -> int"""
1309 return _grid
.Grid_YToRow(*args
, **kwargs
)
1311 def XToCol(*args
, **kwargs
):
1312 """XToCol(self, int x) -> int"""
1313 return _grid
.Grid_XToCol(*args
, **kwargs
)
1315 def YToEdgeOfRow(*args
, **kwargs
):
1316 """YToEdgeOfRow(self, int y) -> int"""
1317 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1319 def XToEdgeOfCol(*args
, **kwargs
):
1320 """XToEdgeOfCol(self, int x) -> int"""
1321 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1323 def CellToRect(*args
, **kwargs
):
1324 """CellToRect(self, int row, int col) -> Rect"""
1325 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1327 def GetGridCursorRow(*args
, **kwargs
):
1328 """GetGridCursorRow(self) -> int"""
1329 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1331 def GetGridCursorCol(*args
, **kwargs
):
1332 """GetGridCursorCol(self) -> int"""
1333 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1335 def IsVisible(*args
, **kwargs
):
1336 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1337 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1339 def MakeCellVisible(*args
, **kwargs
):
1340 """MakeCellVisible(self, int row, int col)"""
1341 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1343 def SetGridCursor(*args
, **kwargs
):
1344 """SetGridCursor(self, int row, int col)"""
1345 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1347 def MoveCursorUp(*args
, **kwargs
):
1348 """MoveCursorUp(self, bool expandSelection) -> bool"""
1349 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1351 def MoveCursorDown(*args
, **kwargs
):
1352 """MoveCursorDown(self, bool expandSelection) -> bool"""
1353 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1355 def MoveCursorLeft(*args
, **kwargs
):
1356 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1357 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1359 def MoveCursorRight(*args
, **kwargs
):
1360 """MoveCursorRight(self, bool expandSelection) -> bool"""
1361 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1363 def MovePageDown(*args
, **kwargs
):
1364 """MovePageDown(self) -> bool"""
1365 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1367 def MovePageUp(*args
, **kwargs
):
1368 """MovePageUp(self) -> bool"""
1369 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1371 def MoveCursorUpBlock(*args
, **kwargs
):
1372 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1373 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1375 def MoveCursorDownBlock(*args
, **kwargs
):
1376 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1377 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1379 def MoveCursorLeftBlock(*args
, **kwargs
):
1380 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1381 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1383 def MoveCursorRightBlock(*args
, **kwargs
):
1384 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1385 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1387 def GetDefaultRowLabelSize(*args
, **kwargs
):
1388 """GetDefaultRowLabelSize(self) -> int"""
1389 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1391 def GetRowLabelSize(*args
, **kwargs
):
1392 """GetRowLabelSize(self) -> int"""
1393 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1395 def GetDefaultColLabelSize(*args
, **kwargs
):
1396 """GetDefaultColLabelSize(self) -> int"""
1397 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1399 def GetColLabelSize(*args
, **kwargs
):
1400 """GetColLabelSize(self) -> int"""
1401 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1403 def GetLabelBackgroundColour(*args
, **kwargs
):
1404 """GetLabelBackgroundColour(self) -> Colour"""
1405 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1407 def GetLabelTextColour(*args
, **kwargs
):
1408 """GetLabelTextColour(self) -> Colour"""
1409 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1411 def GetLabelFont(*args
, **kwargs
):
1412 """GetLabelFont(self) -> Font"""
1413 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1415 def GetRowLabelAlignment(*args
, **kwargs
):
1416 """GetRowLabelAlignment() -> (horiz, vert)"""
1417 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1419 def GetColLabelAlignment(*args
, **kwargs
):
1420 """GetColLabelAlignment() -> (horiz, vert)"""
1421 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1423 def GetColLabelTextOrientation(*args
, **kwargs
):
1424 """GetColLabelTextOrientation(self) -> int"""
1425 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1427 def GetRowLabelValue(*args
, **kwargs
):
1428 """GetRowLabelValue(self, int row) -> String"""
1429 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1431 def GetColLabelValue(*args
, **kwargs
):
1432 """GetColLabelValue(self, int col) -> String"""
1433 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1435 def GetGridLineColour(*args
, **kwargs
):
1436 """GetGridLineColour(self) -> Colour"""
1437 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1439 def GetCellHighlightColour(*args
, **kwargs
):
1440 """GetCellHighlightColour(self) -> Colour"""
1441 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1443 def GetCellHighlightPenWidth(*args
, **kwargs
):
1444 """GetCellHighlightPenWidth(self) -> int"""
1445 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1447 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1448 """GetCellHighlightROPenWidth(self) -> int"""
1449 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1451 def SetRowLabelSize(*args
, **kwargs
):
1452 """SetRowLabelSize(self, int width)"""
1453 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1455 def SetColLabelSize(*args
, **kwargs
):
1456 """SetColLabelSize(self, int height)"""
1457 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1459 def SetLabelBackgroundColour(*args
, **kwargs
):
1460 """SetLabelBackgroundColour(self, Colour ?)"""
1461 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1463 def SetLabelTextColour(*args
, **kwargs
):
1464 """SetLabelTextColour(self, Colour ?)"""
1465 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1467 def SetLabelFont(*args
, **kwargs
):
1468 """SetLabelFont(self, Font ?)"""
1469 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1471 def SetRowLabelAlignment(*args
, **kwargs
):
1472 """SetRowLabelAlignment(self, int horiz, int vert)"""
1473 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1475 def SetColLabelAlignment(*args
, **kwargs
):
1476 """SetColLabelAlignment(self, int horiz, int vert)"""
1477 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1479 def SetColLabelTextOrientation(*args
, **kwargs
):
1480 """SetColLabelTextOrientation(self, int textOrientation)"""
1481 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1483 def SetRowLabelValue(*args
, **kwargs
):
1484 """SetRowLabelValue(self, int row, String ?)"""
1485 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1487 def SetColLabelValue(*args
, **kwargs
):
1488 """SetColLabelValue(self, int col, String ?)"""
1489 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1491 def SetGridLineColour(*args
, **kwargs
):
1492 """SetGridLineColour(self, Colour ?)"""
1493 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1495 def SetCellHighlightColour(*args
, **kwargs
):
1496 """SetCellHighlightColour(self, Colour ?)"""
1497 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1499 def SetCellHighlightPenWidth(*args
, **kwargs
):
1500 """SetCellHighlightPenWidth(self, int width)"""
1501 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1503 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1504 """SetCellHighlightROPenWidth(self, int width)"""
1505 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1507 def EnableDragRowSize(*args
, **kwargs
):
1508 """EnableDragRowSize(self, bool enable=True)"""
1509 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1511 def DisableDragRowSize(*args
, **kwargs
):
1512 """DisableDragRowSize(self)"""
1513 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1515 def CanDragRowSize(*args
, **kwargs
):
1516 """CanDragRowSize(self) -> bool"""
1517 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1519 def EnableDragColSize(*args
, **kwargs
):
1520 """EnableDragColSize(self, bool enable=True)"""
1521 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1523 def DisableDragColSize(*args
, **kwargs
):
1524 """DisableDragColSize(self)"""
1525 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1527 def CanDragColSize(*args
, **kwargs
):
1528 """CanDragColSize(self) -> bool"""
1529 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1531 def EnableDragGridSize(*args
, **kwargs
):
1532 """EnableDragGridSize(self, bool enable=True)"""
1533 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1535 def DisableDragGridSize(*args
, **kwargs
):
1536 """DisableDragGridSize(self)"""
1537 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1539 def CanDragGridSize(*args
, **kwargs
):
1540 """CanDragGridSize(self) -> bool"""
1541 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1543 def EnableDragCell(*args
, **kwargs
):
1544 """EnableDragCell(self, bool enable=True)"""
1545 return _grid
.Grid_EnableDragCell(*args
, **kwargs
)
1547 def DisableDragCell(*args
, **kwargs
):
1548 """DisableDragCell(self)"""
1549 return _grid
.Grid_DisableDragCell(*args
, **kwargs
)
1551 def CanDragCell(*args
, **kwargs
):
1552 """CanDragCell(self) -> bool"""
1553 return _grid
.Grid_CanDragCell(*args
, **kwargs
)
1555 def SetAttr(*args
, **kwargs
):
1556 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1557 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1559 def SetRowAttr(*args
, **kwargs
):
1560 """SetRowAttr(self, int row, GridCellAttr attr)"""
1561 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1563 def SetColAttr(*args
, **kwargs
):
1564 """SetColAttr(self, int col, GridCellAttr attr)"""
1565 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1567 def GetOrCreateCellAttr(*args
, **kwargs
):
1568 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1569 return _grid
.Grid_GetOrCreateCellAttr(*args
, **kwargs
)
1571 def SetColFormatBool(*args
, **kwargs
):
1572 """SetColFormatBool(self, int col)"""
1573 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1575 def SetColFormatNumber(*args
, **kwargs
):
1576 """SetColFormatNumber(self, int col)"""
1577 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1579 def SetColFormatFloat(*args
, **kwargs
):
1580 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1581 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1583 def SetColFormatCustom(*args
, **kwargs
):
1584 """SetColFormatCustom(self, int col, String typeName)"""
1585 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1587 def EnableGridLines(*args
, **kwargs
):
1588 """EnableGridLines(self, bool enable=True)"""
1589 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1591 def GridLinesEnabled(*args
, **kwargs
):
1592 """GridLinesEnabled(self) -> bool"""
1593 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1595 def GetDefaultRowSize(*args
, **kwargs
):
1596 """GetDefaultRowSize(self) -> int"""
1597 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1599 def GetRowSize(*args
, **kwargs
):
1600 """GetRowSize(self, int row) -> int"""
1601 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1603 def GetDefaultColSize(*args
, **kwargs
):
1604 """GetDefaultColSize(self) -> int"""
1605 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1607 def GetColSize(*args
, **kwargs
):
1608 """GetColSize(self, int col) -> int"""
1609 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1611 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1612 """GetDefaultCellBackgroundColour(self) -> Colour"""
1613 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1615 def GetCellBackgroundColour(*args
, **kwargs
):
1616 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1617 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1619 def GetDefaultCellTextColour(*args
, **kwargs
):
1620 """GetDefaultCellTextColour(self) -> Colour"""
1621 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1623 def GetCellTextColour(*args
, **kwargs
):
1624 """GetCellTextColour(self, int row, int col) -> Colour"""
1625 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1627 def GetDefaultCellFont(*args
, **kwargs
):
1628 """GetDefaultCellFont(self) -> Font"""
1629 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1631 def GetCellFont(*args
, **kwargs
):
1632 """GetCellFont(self, int row, int col) -> Font"""
1633 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1635 def GetDefaultCellAlignment(*args
, **kwargs
):
1636 """GetDefaultCellAlignment() -> (horiz, vert)"""
1637 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1639 def GetCellAlignment(*args
, **kwargs
):
1640 """GetCellAlignment() -> (horiz, vert)"""
1641 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1643 def GetDefaultCellOverflow(*args
, **kwargs
):
1644 """GetDefaultCellOverflow(self) -> bool"""
1645 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1647 def GetCellOverflow(*args
, **kwargs
):
1648 """GetCellOverflow(self, int row, int col) -> bool"""
1649 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1651 def GetCellSize(*args
, **kwargs
):
1652 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1653 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1655 def SetDefaultRowSize(*args
, **kwargs
):
1656 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1657 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1659 def SetRowSize(*args
, **kwargs
):
1660 """SetRowSize(self, int row, int height)"""
1661 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1663 def SetDefaultColSize(*args
, **kwargs
):
1664 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1665 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1667 def SetColSize(*args
, **kwargs
):
1668 """SetColSize(self, int col, int width)"""
1669 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1671 def AutoSizeColumn(*args
, **kwargs
):
1672 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1673 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1675 def AutoSizeRow(*args
, **kwargs
):
1676 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1677 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1679 def AutoSizeColumns(*args
, **kwargs
):
1680 """AutoSizeColumns(self, bool setAsMin=True)"""
1681 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1683 def AutoSizeRows(*args
, **kwargs
):
1684 """AutoSizeRows(self, bool setAsMin=True)"""
1685 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1687 def AutoSize(*args
, **kwargs
):
1688 """AutoSize(self)"""
1689 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1691 def AutoSizeRowLabelSize(*args
, **kwargs
):
1692 """AutoSizeRowLabelSize(self, int row)"""
1693 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1695 def AutoSizeColLabelSize(*args
, **kwargs
):
1696 """AutoSizeColLabelSize(self, int col)"""
1697 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1699 def SetColMinimalWidth(*args
, **kwargs
):
1700 """SetColMinimalWidth(self, int col, int width)"""
1701 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1703 def SetRowMinimalHeight(*args
, **kwargs
):
1704 """SetRowMinimalHeight(self, int row, int width)"""
1705 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1707 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1708 """SetColMinimalAcceptableWidth(self, int width)"""
1709 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1711 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1712 """SetRowMinimalAcceptableHeight(self, int width)"""
1713 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1715 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1716 """GetColMinimalAcceptableWidth(self) -> int"""
1717 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1719 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1720 """GetRowMinimalAcceptableHeight(self) -> int"""
1721 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1723 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1724 """SetDefaultCellBackgroundColour(self, Colour ?)"""
1725 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1727 def SetCellBackgroundColour(*args
, **kwargs
):
1728 """SetCellBackgroundColour(self, int row, int col, Colour ?)"""
1729 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1731 def SetDefaultCellTextColour(*args
, **kwargs
):
1732 """SetDefaultCellTextColour(self, Colour ?)"""
1733 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1735 def SetCellTextColour(*args
, **kwargs
):
1736 """SetCellTextColour(self, int row, int col, Colour ?)"""
1737 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1739 def SetDefaultCellFont(*args
, **kwargs
):
1740 """SetDefaultCellFont(self, Font ?)"""
1741 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1743 def SetCellFont(*args
, **kwargs
):
1744 """SetCellFont(self, int row, int col, Font ?)"""
1745 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1747 def SetDefaultCellAlignment(*args
, **kwargs
):
1748 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1749 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1751 def SetCellAlignment(*args
, **kwargs
):
1752 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1753 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1755 def SetDefaultCellOverflow(*args
, **kwargs
):
1756 """SetDefaultCellOverflow(self, bool allow)"""
1757 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1759 def SetCellOverflow(*args
, **kwargs
):
1760 """SetCellOverflow(self, int row, int col, bool allow)"""
1761 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1763 def SetCellSize(*args
, **kwargs
):
1764 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1765 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1767 def SetDefaultRenderer(*args
, **kwargs
):
1768 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1769 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1771 def SetCellRenderer(*args
, **kwargs
):
1772 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1773 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1775 def GetDefaultRenderer(*args
, **kwargs
):
1776 """GetDefaultRenderer(self) -> GridCellRenderer"""
1777 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1779 def GetCellRenderer(*args
, **kwargs
):
1780 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1781 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1783 def SetDefaultEditor(*args
, **kwargs
):
1784 """SetDefaultEditor(self, GridCellEditor editor)"""
1785 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1787 def SetCellEditor(*args
, **kwargs
):
1788 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1789 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1791 def GetDefaultEditor(*args
, **kwargs
):
1792 """GetDefaultEditor(self) -> GridCellEditor"""
1793 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1795 def GetCellEditor(*args
, **kwargs
):
1796 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1797 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1799 def GetCellValue(*args
, **kwargs
):
1800 """GetCellValue(self, int row, int col) -> String"""
1801 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1803 def SetCellValue(*args
, **kwargs
):
1804 """SetCellValue(self, int row, int col, String s)"""
1805 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1807 def IsReadOnly(*args
, **kwargs
):
1808 """IsReadOnly(self, int row, int col) -> bool"""
1809 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1811 def SetReadOnly(*args
, **kwargs
):
1812 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1813 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1815 def SelectRow(*args
, **kwargs
):
1816 """SelectRow(self, int row, bool addToSelected=False)"""
1817 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1819 def SelectCol(*args
, **kwargs
):
1820 """SelectCol(self, int col, bool addToSelected=False)"""
1821 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1823 def SelectBlock(*args
, **kwargs
):
1825 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1826 bool addToSelected=False)
1828 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1830 def SelectAll(*args
, **kwargs
):
1831 """SelectAll(self)"""
1832 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1834 def IsSelection(*args
, **kwargs
):
1835 """IsSelection(self) -> bool"""
1836 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1838 def ClearSelection(*args
, **kwargs
):
1839 """ClearSelection(self)"""
1840 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1842 def IsInSelection(*args
, **kwargs
):
1843 """IsInSelection(self, int row, int col) -> bool"""
1844 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1846 def GetSelectedCells(*args
, **kwargs
):
1847 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1848 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1850 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1851 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1852 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1854 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1855 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1856 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1858 def GetSelectedRows(*args
, **kwargs
):
1859 """GetSelectedRows(self) -> wxArrayInt"""
1860 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1862 def GetSelectedCols(*args
, **kwargs
):
1863 """GetSelectedCols(self) -> wxArrayInt"""
1864 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1866 def DeselectRow(*args
, **kwargs
):
1867 """DeselectRow(self, int row)"""
1868 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1870 def DeselectCol(*args
, **kwargs
):
1871 """DeselectCol(self, int col)"""
1872 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1874 def DeselectCell(*args
, **kwargs
):
1875 """DeselectCell(self, int row, int col)"""
1876 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1878 def BlockToDeviceRect(*args
, **kwargs
):
1879 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1880 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1882 def GetSelectionBackground(*args
, **kwargs
):
1883 """GetSelectionBackground(self) -> Colour"""
1884 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1886 def GetSelectionForeground(*args
, **kwargs
):
1887 """GetSelectionForeground(self) -> Colour"""
1888 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1890 def SetSelectionBackground(*args
, **kwargs
):
1891 """SetSelectionBackground(self, Colour c)"""
1892 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1894 def SetSelectionForeground(*args
, **kwargs
):
1895 """SetSelectionForeground(self, Colour c)"""
1896 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1898 def RegisterDataType(*args
, **kwargs
):
1899 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1900 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1902 def GetDefaultEditorForCell(*args
, **kwargs
):
1903 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1904 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1906 def GetDefaultRendererForCell(*args
, **kwargs
):
1907 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1908 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1910 def GetDefaultEditorForType(*args
, **kwargs
):
1911 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
1912 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1914 def GetDefaultRendererForType(*args
, **kwargs
):
1915 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
1916 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1918 def SetMargins(*args
, **kwargs
):
1919 """SetMargins(self, int extraWidth, int extraHeight)"""
1920 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1922 def GetGridWindow(*args
, **kwargs
):
1923 """GetGridWindow(self) -> Window"""
1924 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1926 def GetGridRowLabelWindow(*args
, **kwargs
):
1927 """GetGridRowLabelWindow(self) -> Window"""
1928 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1930 def GetGridColLabelWindow(*args
, **kwargs
):
1931 """GetGridColLabelWindow(self) -> Window"""
1932 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1934 def GetGridCornerLabelWindow(*args
, **kwargs
):
1935 """GetGridCornerLabelWindow(self) -> Window"""
1936 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1938 def SetScrollLineX(*args
, **kwargs
):
1939 """SetScrollLineX(self, int x)"""
1940 return _grid
.Grid_SetScrollLineX(*args
, **kwargs
)
1942 def SetScrollLineY(*args
, **kwargs
):
1943 """SetScrollLineY(self, int y)"""
1944 return _grid
.Grid_SetScrollLineY(*args
, **kwargs
)
1946 def GetScrollLineX(*args
, **kwargs
):
1947 """GetScrollLineX(self) -> int"""
1948 return _grid
.Grid_GetScrollLineX(*args
, **kwargs
)
1950 def GetScrollLineY(*args
, **kwargs
):
1951 """GetScrollLineY(self) -> int"""
1952 return _grid
.Grid_GetScrollLineY(*args
, **kwargs
)
1954 def GetScrollX(*args
, **kwargs
):
1955 """GetScrollX(self, int x) -> int"""
1956 return _grid
.Grid_GetScrollX(*args
, **kwargs
)
1958 def GetScrollY(*args
, **kwargs
):
1959 """GetScrollY(self, int y) -> int"""
1960 return _grid
.Grid_GetScrollY(*args
, **kwargs
)
1962 def GetClassDefaultAttributes(*args
, **kwargs
):
1964 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1966 Get the default attributes for this class. This is useful if you want
1967 to use the same font or colour in your own control as in a standard
1968 control -- which is a much better idea than hard coding specific
1969 colours or fonts which might look completely out of place on the
1970 user's system, especially if it uses themes.
1972 The variant parameter is only relevant under Mac currently and is
1973 ignore under other platforms. Under Mac, it will change the size of
1974 the returned font. See `wx.Window.SetWindowVariant` for more about
1977 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
1979 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1980 Grid_swigregister
= _grid
.Grid_swigregister
1981 Grid_swigregister(Grid
)
1983 def PreGrid(*args
, **kwargs
):
1984 """PreGrid() -> Grid"""
1985 val
= _grid
.new_PreGrid(*args
, **kwargs
)
1988 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
1990 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1992 Get the default attributes for this class. This is useful if you want
1993 to use the same font or colour in your own control as in a standard
1994 control -- which is a much better idea than hard coding specific
1995 colours or fonts which might look completely out of place on the
1996 user's system, especially if it uses themes.
1998 The variant parameter is only relevant under Mac currently and is
1999 ignore under other platforms. Under Mac, it will change the size of
2000 the returned font. See `wx.Window.SetWindowVariant` for more about
2003 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
2005 class GridEvent(_core
.NotifyEvent
):
2006 """Proxy of C++ GridEvent class"""
2007 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2008 __repr__
= _swig_repr
2009 def __init__(self
, *args
, **kwargs
):
2011 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2012 int x=-1, int y=-1, bool sel=True, bool control=False,
2013 bool shift=False, bool alt=False,
2014 bool meta=False) -> GridEvent
2016 _grid
.GridEvent_swiginit(self
,_grid
.new_GridEvent(*args
, **kwargs
))
2017 def GetRow(*args
, **kwargs
):
2018 """GetRow(self) -> int"""
2019 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2021 def GetCol(*args
, **kwargs
):
2022 """GetCol(self) -> int"""
2023 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2025 def GetPosition(*args
, **kwargs
):
2026 """GetPosition(self) -> Point"""
2027 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2029 def Selecting(*args
, **kwargs
):
2030 """Selecting(self) -> bool"""
2031 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2033 def ControlDown(*args
, **kwargs
):
2034 """ControlDown(self) -> bool"""
2035 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2037 def MetaDown(*args
, **kwargs
):
2038 """MetaDown(self) -> bool"""
2039 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2041 def ShiftDown(*args
, **kwargs
):
2042 """ShiftDown(self) -> bool"""
2043 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2045 def AltDown(*args
, **kwargs
):
2046 """AltDown(self) -> bool"""
2047 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2049 GridEvent_swigregister
= _grid
.GridEvent_swigregister
2050 GridEvent_swigregister(GridEvent
)
2052 class GridSizeEvent(_core
.NotifyEvent
):
2053 """Proxy of C++ GridSizeEvent class"""
2054 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2055 __repr__
= _swig_repr
2056 def __init__(self
, *args
, **kwargs
):
2058 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2059 int x=-1, int y=-1, bool control=False, bool shift=False,
2060 bool alt=False, bool meta=False) -> GridSizeEvent
2062 _grid
.GridSizeEvent_swiginit(self
,_grid
.new_GridSizeEvent(*args
, **kwargs
))
2063 def GetRowOrCol(*args
, **kwargs
):
2064 """GetRowOrCol(self) -> int"""
2065 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2067 def GetPosition(*args
, **kwargs
):
2068 """GetPosition(self) -> Point"""
2069 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2071 def ControlDown(*args
, **kwargs
):
2072 """ControlDown(self) -> bool"""
2073 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2075 def MetaDown(*args
, **kwargs
):
2076 """MetaDown(self) -> bool"""
2077 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2079 def ShiftDown(*args
, **kwargs
):
2080 """ShiftDown(self) -> bool"""
2081 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2083 def AltDown(*args
, **kwargs
):
2084 """AltDown(self) -> bool"""
2085 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2087 GridSizeEvent_swigregister
= _grid
.GridSizeEvent_swigregister
2088 GridSizeEvent_swigregister(GridSizeEvent
)
2090 class GridRangeSelectEvent(_core
.NotifyEvent
):
2091 """Proxy of C++ GridRangeSelectEvent class"""
2092 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2093 __repr__
= _swig_repr
2094 def __init__(self
, *args
, **kwargs
):
2096 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2097 GridCellCoords bottomRight, bool sel=True,
2098 bool control=False, bool shift=False,
2099 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2101 _grid
.GridRangeSelectEvent_swiginit(self
,_grid
.new_GridRangeSelectEvent(*args
, **kwargs
))
2102 def GetTopLeftCoords(*args
, **kwargs
):
2103 """GetTopLeftCoords(self) -> GridCellCoords"""
2104 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2106 def GetBottomRightCoords(*args
, **kwargs
):
2107 """GetBottomRightCoords(self) -> GridCellCoords"""
2108 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2110 def GetTopRow(*args
, **kwargs
):
2111 """GetTopRow(self) -> int"""
2112 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2114 def GetBottomRow(*args
, **kwargs
):
2115 """GetBottomRow(self) -> int"""
2116 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2118 def GetLeftCol(*args
, **kwargs
):
2119 """GetLeftCol(self) -> int"""
2120 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2122 def GetRightCol(*args
, **kwargs
):
2123 """GetRightCol(self) -> int"""
2124 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2126 def Selecting(*args
, **kwargs
):
2127 """Selecting(self) -> bool"""
2128 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2130 def ControlDown(*args
, **kwargs
):
2131 """ControlDown(self) -> bool"""
2132 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2134 def MetaDown(*args
, **kwargs
):
2135 """MetaDown(self) -> bool"""
2136 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2138 def ShiftDown(*args
, **kwargs
):
2139 """ShiftDown(self) -> bool"""
2140 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2142 def AltDown(*args
, **kwargs
):
2143 """AltDown(self) -> bool"""
2144 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2146 GridRangeSelectEvent_swigregister
= _grid
.GridRangeSelectEvent_swigregister
2147 GridRangeSelectEvent_swigregister(GridRangeSelectEvent
)
2149 class GridEditorCreatedEvent(_core
.CommandEvent
):
2150 """Proxy of C++ GridEditorCreatedEvent class"""
2151 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2152 __repr__
= _swig_repr
2153 def __init__(self
, *args
, **kwargs
):
2155 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2156 Control ctrl) -> GridEditorCreatedEvent
2158 _grid
.GridEditorCreatedEvent_swiginit(self
,_grid
.new_GridEditorCreatedEvent(*args
, **kwargs
))
2159 def GetRow(*args
, **kwargs
):
2160 """GetRow(self) -> int"""
2161 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2163 def GetCol(*args
, **kwargs
):
2164 """GetCol(self) -> int"""
2165 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2167 def GetControl(*args
, **kwargs
):
2168 """GetControl(self) -> Control"""
2169 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2171 def SetRow(*args
, **kwargs
):
2172 """SetRow(self, int row)"""
2173 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2175 def SetCol(*args
, **kwargs
):
2176 """SetCol(self, int col)"""
2177 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2179 def SetControl(*args
, **kwargs
):
2180 """SetControl(self, Control ctrl)"""
2181 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2183 GridEditorCreatedEvent_swigregister
= _grid
.GridEditorCreatedEvent_swigregister
2184 GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent
)
2186 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2187 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2188 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2189 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2190 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2191 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2192 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2193 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2194 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2195 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2196 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2197 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2198 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2199 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2200 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2201 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2202 wxEVT_GRID_CELL_BEGIN_DRAG
= _grid
.wxEVT_GRID_CELL_BEGIN_DRAG
2203 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2204 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2205 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2206 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2207 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2208 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2209 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2210 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2211 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2212 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2213 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2214 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2215 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2216 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2217 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2218 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)
2219 EVT_GRID_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
)
2222 # The same as above but with the ability to specify an identifier
2223 EVT_GRID_CMD_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
, 1 )
2224 EVT_GRID_CMD_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
, 1 )
2225 EVT_GRID_CMD_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
, 1 )
2226 EVT_GRID_CMD_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
, 1 )
2227 EVT_GRID_CMD_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
, 1 )
2228 EVT_GRID_CMD_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
, 1 )
2229 EVT_GRID_CMD_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
, 1 )
2230 EVT_GRID_CMD_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
, 1 )
2231 EVT_GRID_CMD_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
, 1 )
2232 EVT_GRID_CMD_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
, 1 )
2233 EVT_GRID_CMD_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
, 1 )
2234 EVT_GRID_CMD_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
, 1 )
2235 EVT_GRID_CMD_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
, 1 )
2236 EVT_GRID_CMD_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
, 1 )
2237 EVT_GRID_CMD_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
, 1 )
2238 EVT_GRID_CMD_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
, 1 )
2239 EVT_GRID_CMD_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
, 1 )