1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for implementing a spreadsheet-like control.
10 new_instancemethod
= new
.instancemethod
11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if (name
== "thisown"): return self
.this
.own(value
)
14 if type(value
).__name
__ == 'PySwigObject':
15 self
.__dict
__[name
] = value
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
):
20 self
.__dict
__[name
] = value
22 raise AttributeError("You cannot add attributes to %s" % self
)
24 def _swig_setattr(self
,class_type
,name
,value
):
25 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
27 def _swig_getattr(self
,class_type
,name
):
28 if (name
== "thisown"): return self
.this
.own()
29 method
= class_type
.__swig
_getmethods
__.get(name
,None)
30 if method
: return method(self
)
31 raise AttributeError,name
34 try: strthis
= "proxy of " + self
.this
.__repr
__()
36 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
40 _object
= types
.ObjectType
42 except AttributeError:
48 def _swig_setattr_nondynamic_method(set):
49 def set_attr(self
,name
,value
):
50 if (name
== "thisown"): return self
.this
.own(value
)
51 if hasattr(self
,name
) or (name
== "this"):
54 raise AttributeError("You cannot add attributes to %s" % self
)
61 __docfilter__
= wx
.__DocFilter
(globals())
62 GRID_VALUE_STRING
= _grid
.GRID_VALUE_STRING
63 GRID_VALUE_BOOL
= _grid
.GRID_VALUE_BOOL
64 GRID_VALUE_NUMBER
= _grid
.GRID_VALUE_NUMBER
65 GRID_VALUE_FLOAT
= _grid
.GRID_VALUE_FLOAT
66 GRID_VALUE_CHOICE
= _grid
.GRID_VALUE_CHOICE
67 GRID_VALUE_TEXT
= _grid
.GRID_VALUE_TEXT
68 GRID_VALUE_LONG
= _grid
.GRID_VALUE_LONG
69 GRID_VALUE_CHOICEINT
= _grid
.GRID_VALUE_CHOICEINT
70 GRID_VALUE_DATETIME
= _grid
.GRID_VALUE_DATETIME
71 GRID_DEFAULT_NUMBER_ROWS
= _grid
.GRID_DEFAULT_NUMBER_ROWS
72 GRID_DEFAULT_NUMBER_COLS
= _grid
.GRID_DEFAULT_NUMBER_COLS
73 GRID_DEFAULT_ROW_HEIGHT
= _grid
.GRID_DEFAULT_ROW_HEIGHT
74 GRID_DEFAULT_COL_WIDTH
= _grid
.GRID_DEFAULT_COL_WIDTH
75 GRID_DEFAULT_COL_LABEL_HEIGHT
= _grid
.GRID_DEFAULT_COL_LABEL_HEIGHT
76 GRID_DEFAULT_ROW_LABEL_WIDTH
= _grid
.GRID_DEFAULT_ROW_LABEL_WIDTH
77 GRID_LABEL_EDGE_ZONE
= _grid
.GRID_LABEL_EDGE_ZONE
78 GRID_MIN_ROW_HEIGHT
= _grid
.GRID_MIN_ROW_HEIGHT
79 GRID_MIN_COL_WIDTH
= _grid
.GRID_MIN_COL_WIDTH
80 GRID_DEFAULT_SCROLLBAR_WIDTH
= _grid
.GRID_DEFAULT_SCROLLBAR_WIDTH
81 class GridCellWorker(object):
82 """Proxy of C++ GridCellWorker class"""
83 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
84 def __init__(self
): raise AttributeError, "No constructor defined"
86 def _setOORInfo(*args
, **kwargs
):
87 """_setOORInfo(self, PyObject _self)"""
88 return _grid
.GridCellWorker__setOORInfo(*args
, **kwargs
)
90 __swig_destroy__
= _grid
.delete_GridCellWorker
91 __del__
= lambda self
: None;
92 def SetParameters(*args
, **kwargs
):
93 """SetParameters(self, String params)"""
94 return _grid
.GridCellWorker_SetParameters(*args
, **kwargs
)
96 def IncRef(*args
, **kwargs
):
98 return _grid
.GridCellWorker_IncRef(*args
, **kwargs
)
100 def DecRef(*args
, **kwargs
):
102 return _grid
.GridCellWorker_DecRef(*args
, **kwargs
)
104 GridCellWorker_swigregister
= _grid
.GridCellWorker_swigregister
105 GridCellWorker_swigregister(GridCellWorker
)
107 GridNoCellCoords
= cvar
.GridNoCellCoords
108 GridNoCellRect
= cvar
.GridNoCellRect
110 class GridCellRenderer(GridCellWorker
):
111 """Proxy of C++ GridCellRenderer class"""
112 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
113 def __init__(self
): raise AttributeError, "No constructor defined"
114 __repr__
= _swig_repr
115 GridCellRenderer_swigregister
= _grid
.GridCellRenderer_swigregister
116 GridCellRenderer_swigregister(GridCellRenderer
)
118 class PyGridCellRenderer(GridCellRenderer
):
119 """Proxy of C++ PyGridCellRenderer class"""
120 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
121 __repr__
= _swig_repr
122 def __init__(self
, *args
, **kwargs
):
123 """__init__(self) -> PyGridCellRenderer"""
124 _grid
.PyGridCellRenderer_swiginit(self
,_grid
.new_PyGridCellRenderer(*args
, **kwargs
))
125 self
._setCallbackInfo
(self
, PyGridCellRenderer
);self
._setOORInfo
(self
)
127 def _setCallbackInfo(*args
, **kwargs
):
128 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
129 return _grid
.PyGridCellRenderer__setCallbackInfo(*args
, **kwargs
)
131 def SetParameters(*args
, **kwargs
):
132 """SetParameters(self, String params)"""
133 return _grid
.PyGridCellRenderer_SetParameters(*args
, **kwargs
)
135 def base_SetParameters(*args
, **kw
):
136 return PyGridCellRenderer
.SetParameters(*args
, **kw
)
137 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
138 "Please use PyGridCellRenderer.SetParameters instead.")
140 PyGridCellRenderer_swigregister
= _grid
.PyGridCellRenderer_swigregister
141 PyGridCellRenderer_swigregister(PyGridCellRenderer
)
143 class GridCellStringRenderer(GridCellRenderer
):
144 """Proxy of C++ GridCellStringRenderer class"""
145 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
146 __repr__
= _swig_repr
147 def __init__(self
, *args
, **kwargs
):
148 """__init__(self) -> GridCellStringRenderer"""
149 _grid
.GridCellStringRenderer_swiginit(self
,_grid
.new_GridCellStringRenderer(*args
, **kwargs
))
150 self
._setOORInfo
(self
)
152 GridCellStringRenderer_swigregister
= _grid
.GridCellStringRenderer_swigregister
153 GridCellStringRenderer_swigregister(GridCellStringRenderer
)
155 class GridCellNumberRenderer(GridCellStringRenderer
):
156 """Proxy of C++ GridCellNumberRenderer class"""
157 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
158 __repr__
= _swig_repr
159 def __init__(self
, *args
, **kwargs
):
160 """__init__(self) -> GridCellNumberRenderer"""
161 _grid
.GridCellNumberRenderer_swiginit(self
,_grid
.new_GridCellNumberRenderer(*args
, **kwargs
))
162 self
._setOORInfo
(self
)
164 GridCellNumberRenderer_swigregister
= _grid
.GridCellNumberRenderer_swigregister
165 GridCellNumberRenderer_swigregister(GridCellNumberRenderer
)
167 class GridCellFloatRenderer(GridCellStringRenderer
):
168 """Proxy of C++ GridCellFloatRenderer class"""
169 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
170 __repr__
= _swig_repr
171 def __init__(self
, *args
, **kwargs
):
172 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatRenderer"""
173 _grid
.GridCellFloatRenderer_swiginit(self
,_grid
.new_GridCellFloatRenderer(*args
, **kwargs
))
174 self
._setOORInfo
(self
)
176 def GetWidth(*args
, **kwargs
):
177 """GetWidth(self) -> int"""
178 return _grid
.GridCellFloatRenderer_GetWidth(*args
, **kwargs
)
180 def SetWidth(*args
, **kwargs
):
181 """SetWidth(self, int width)"""
182 return _grid
.GridCellFloatRenderer_SetWidth(*args
, **kwargs
)
184 def GetPrecision(*args
, **kwargs
):
185 """GetPrecision(self) -> int"""
186 return _grid
.GridCellFloatRenderer_GetPrecision(*args
, **kwargs
)
188 def SetPrecision(*args
, **kwargs
):
189 """SetPrecision(self, int precision)"""
190 return _grid
.GridCellFloatRenderer_SetPrecision(*args
, **kwargs
)
192 GridCellFloatRenderer_swigregister
= _grid
.GridCellFloatRenderer_swigregister
193 GridCellFloatRenderer_swigregister(GridCellFloatRenderer
)
195 class GridCellBoolRenderer(GridCellRenderer
):
196 """Proxy of C++ GridCellBoolRenderer class"""
197 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
198 __repr__
= _swig_repr
199 def __init__(self
, *args
, **kwargs
):
200 """__init__(self) -> GridCellBoolRenderer"""
201 _grid
.GridCellBoolRenderer_swiginit(self
,_grid
.new_GridCellBoolRenderer(*args
, **kwargs
))
202 self
._setOORInfo
(self
)
204 GridCellBoolRenderer_swigregister
= _grid
.GridCellBoolRenderer_swigregister
205 GridCellBoolRenderer_swigregister(GridCellBoolRenderer
)
207 class GridCellDateTimeRenderer(GridCellStringRenderer
):
208 """Proxy of C++ GridCellDateTimeRenderer class"""
209 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
210 __repr__
= _swig_repr
211 def __init__(self
, *args
, **kwargs
):
212 """__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
213 _grid
.GridCellDateTimeRenderer_swiginit(self
,_grid
.new_GridCellDateTimeRenderer(*args
, **kwargs
))
214 self
._setOORInfo
(self
)
216 GridCellDateTimeRenderer_swigregister
= _grid
.GridCellDateTimeRenderer_swigregister
217 GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer
)
219 class GridCellEnumRenderer(GridCellStringRenderer
):
220 """Proxy of C++ GridCellEnumRenderer class"""
221 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
222 __repr__
= _swig_repr
223 def __init__(self
, *args
, **kwargs
):
224 """__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
225 _grid
.GridCellEnumRenderer_swiginit(self
,_grid
.new_GridCellEnumRenderer(*args
, **kwargs
))
226 self
._setOORInfo
(self
)
228 GridCellEnumRenderer_swigregister
= _grid
.GridCellEnumRenderer_swigregister
229 GridCellEnumRenderer_swigregister(GridCellEnumRenderer
)
231 class GridCellAutoWrapStringRenderer(GridCellStringRenderer
):
232 """Proxy of C++ GridCellAutoWrapStringRenderer class"""
233 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
234 __repr__
= _swig_repr
235 def __init__(self
, *args
, **kwargs
):
236 """__init__(self) -> GridCellAutoWrapStringRenderer"""
237 _grid
.GridCellAutoWrapStringRenderer_swiginit(self
,_grid
.new_GridCellAutoWrapStringRenderer(*args
, **kwargs
))
238 self
._setOORInfo
(self
)
240 GridCellAutoWrapStringRenderer_swigregister
= _grid
.GridCellAutoWrapStringRenderer_swigregister
241 GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer
)
243 class GridCellEditor(GridCellWorker
):
244 """Proxy of C++ GridCellEditor class"""
245 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
246 def __init__(self
): raise AttributeError, "No constructor defined"
247 __repr__
= _swig_repr
248 def IsCreated(*args
, **kwargs
):
249 """IsCreated(self) -> bool"""
250 return _grid
.GridCellEditor_IsCreated(*args
, **kwargs
)
252 def GetControl(*args
, **kwargs
):
253 """GetControl(self) -> Control"""
254 return _grid
.GridCellEditor_GetControl(*args
, **kwargs
)
256 def SetControl(*args
, **kwargs
):
257 """SetControl(self, Control control)"""
258 return _grid
.GridCellEditor_SetControl(*args
, **kwargs
)
260 def GetCellAttr(*args
, **kwargs
):
261 """GetCellAttr(self) -> GridCellAttr"""
262 return _grid
.GridCellEditor_GetCellAttr(*args
, **kwargs
)
264 def SetCellAttr(*args
, **kwargs
):
265 """SetCellAttr(self, GridCellAttr attr)"""
266 return _grid
.GridCellEditor_SetCellAttr(*args
, **kwargs
)
268 def Create(*args
, **kwargs
):
269 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
270 return _grid
.GridCellEditor_Create(*args
, **kwargs
)
272 def BeginEdit(*args
, **kwargs
):
273 """BeginEdit(self, int row, int col, Grid grid)"""
274 return _grid
.GridCellEditor_BeginEdit(*args
, **kwargs
)
276 def EndEdit(*args
, **kwargs
):
277 """EndEdit(self, int row, int col, Grid grid) -> bool"""
278 return _grid
.GridCellEditor_EndEdit(*args
, **kwargs
)
280 def Reset(*args
, **kwargs
):
282 return _grid
.GridCellEditor_Reset(*args
, **kwargs
)
284 def Clone(*args
, **kwargs
):
285 """Clone(self) -> GridCellEditor"""
286 return _grid
.GridCellEditor_Clone(*args
, **kwargs
)
288 def SetSize(*args
, **kwargs
):
289 """SetSize(self, Rect rect)"""
290 return _grid
.GridCellEditor_SetSize(*args
, **kwargs
)
292 def Show(*args
, **kwargs
):
293 """Show(self, bool show, GridCellAttr attr=None)"""
294 return _grid
.GridCellEditor_Show(*args
, **kwargs
)
296 def PaintBackground(*args
, **kwargs
):
297 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
298 return _grid
.GridCellEditor_PaintBackground(*args
, **kwargs
)
300 def IsAcceptedKey(*args
, **kwargs
):
301 """IsAcceptedKey(self, KeyEvent event) -> bool"""
302 return _grid
.GridCellEditor_IsAcceptedKey(*args
, **kwargs
)
304 def StartingKey(*args
, **kwargs
):
305 """StartingKey(self, KeyEvent event)"""
306 return _grid
.GridCellEditor_StartingKey(*args
, **kwargs
)
308 def StartingClick(*args
, **kwargs
):
309 """StartingClick(self)"""
310 return _grid
.GridCellEditor_StartingClick(*args
, **kwargs
)
312 def HandleReturn(*args
, **kwargs
):
313 """HandleReturn(self, KeyEvent event)"""
314 return _grid
.GridCellEditor_HandleReturn(*args
, **kwargs
)
316 def Destroy(*args
, **kwargs
):
318 val
= _grid
.GridCellEditor_Destroy(*args
, **kwargs
)
322 GridCellEditor_swigregister
= _grid
.GridCellEditor_swigregister
323 GridCellEditor_swigregister(GridCellEditor
)
325 class PyGridCellEditor(GridCellEditor
):
326 """Proxy of C++ PyGridCellEditor class"""
327 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
328 __repr__
= _swig_repr
329 def __init__(self
, *args
, **kwargs
):
330 """__init__(self) -> PyGridCellEditor"""
331 _grid
.PyGridCellEditor_swiginit(self
,_grid
.new_PyGridCellEditor(*args
, **kwargs
))
332 self
._setCallbackInfo
(self
, PyGridCellEditor
);self
._setOORInfo
(self
)
334 def _setCallbackInfo(*args
, **kwargs
):
335 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
336 return _grid
.PyGridCellEditor__setCallbackInfo(*args
, **kwargs
)
338 def SetParameters(*args
, **kwargs
):
339 """SetParameters(self, String params)"""
340 return _grid
.PyGridCellEditor_SetParameters(*args
, **kwargs
)
342 def base_SetSize(*args
, **kw
):
343 return PyGridCellEditor
.SetSize(*args
, **kw
)
344 base_SetSize
= wx
._deprecated
(base_SetSize
,
345 "Please use PyGridCellEditor.SetSize instead.")
347 def base_Show(*args
, **kw
):
348 return PyGridCellEditor
.Show(*args
, **kw
)
349 base_Show
= wx
._deprecated
(base_Show
,
350 "Please use PyGridCellEditor.Show instead.")
352 def base_PaintBackground(*args
, **kw
):
353 return PyGridCellEditor
.PaintBackground(*args
, **kw
)
354 base_PaintBackground
= wx
._deprecated
(base_PaintBackground
,
355 "Please use PyGridCellEditor.PaintBackground instead.")
357 def base_IsAcceptedKey(*args
, **kw
):
358 return PyGridCellEditor
.IsAcceptedKey(*args
, **kw
)
359 base_IsAcceptedKey
= wx
._deprecated
(base_IsAcceptedKey
,
360 "Please use PyGridCellEditor.IsAcceptedKey instead.")
362 def base_StartingKey(*args
, **kw
):
363 return PyGridCellEditor
.StartingKey(*args
, **kw
)
364 base_StartingKey
= wx
._deprecated
(base_StartingKey
,
365 "Please use PyGridCellEditor.StartingKey instead.")
367 def base_StartingClick(*args
, **kw
):
368 return PyGridCellEditor
.StartingClick(*args
, **kw
)
369 base_StartingClick
= wx
._deprecated
(base_StartingClick
,
370 "Please use PyGridCellEditor.StartingClick instead.")
372 def base_HandleReturn(*args
, **kw
):
373 return PyGridCellEditor
.HandleReturn(*args
, **kw
)
374 base_HandleReturn
= wx
._deprecated
(base_HandleReturn
,
375 "Please use PyGridCellEditor.HandleReturn instead.")
377 def base_Destroy(*args
, **kw
):
378 return PyGridCellEditor
.Destroy(*args
, **kw
)
379 base_Destroy
= wx
._deprecated
(base_Destroy
,
380 "Please use PyGridCellEditor.Destroy instead.")
382 def base_SetParameters(*args
, **kw
):
383 return PyGridCellEditor
.SetParameters(*args
, **kw
)
384 base_SetParameters
= wx
._deprecated
(base_SetParameters
,
385 "Please use PyGridCellEditor.SetParameters instead.")
387 PyGridCellEditor_swigregister
= _grid
.PyGridCellEditor_swigregister
388 PyGridCellEditor_swigregister(PyGridCellEditor
)
390 class GridCellTextEditor(GridCellEditor
):
391 """Proxy of C++ GridCellTextEditor class"""
392 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
393 __repr__
= _swig_repr
394 def __init__(self
, *args
, **kwargs
):
395 """__init__(self) -> GridCellTextEditor"""
396 _grid
.GridCellTextEditor_swiginit(self
,_grid
.new_GridCellTextEditor(*args
, **kwargs
))
397 self
._setOORInfo
(self
)
399 def GetValue(*args
, **kwargs
):
400 """GetValue(self) -> String"""
401 return _grid
.GridCellTextEditor_GetValue(*args
, **kwargs
)
403 GridCellTextEditor_swigregister
= _grid
.GridCellTextEditor_swigregister
404 GridCellTextEditor_swigregister(GridCellTextEditor
)
406 class GridCellNumberEditor(GridCellTextEditor
):
407 """Proxy of C++ GridCellNumberEditor class"""
408 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
409 __repr__
= _swig_repr
410 def __init__(self
, *args
, **kwargs
):
411 """__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
412 _grid
.GridCellNumberEditor_swiginit(self
,_grid
.new_GridCellNumberEditor(*args
, **kwargs
))
413 self
._setOORInfo
(self
)
415 GridCellNumberEditor_swigregister
= _grid
.GridCellNumberEditor_swigregister
416 GridCellNumberEditor_swigregister(GridCellNumberEditor
)
418 class GridCellFloatEditor(GridCellTextEditor
):
419 """Proxy of C++ GridCellFloatEditor class"""
420 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
421 __repr__
= _swig_repr
422 def __init__(self
, *args
, **kwargs
):
423 """__init__(self, int width=-1, int precision=-1) -> GridCellFloatEditor"""
424 _grid
.GridCellFloatEditor_swiginit(self
,_grid
.new_GridCellFloatEditor(*args
, **kwargs
))
425 self
._setOORInfo
(self
)
427 GridCellFloatEditor_swigregister
= _grid
.GridCellFloatEditor_swigregister
428 GridCellFloatEditor_swigregister(GridCellFloatEditor
)
430 class GridCellBoolEditor(GridCellEditor
):
431 """Proxy of C++ GridCellBoolEditor class"""
432 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
433 __repr__
= _swig_repr
434 def __init__(self
, *args
, **kwargs
):
435 """__init__(self) -> GridCellBoolEditor"""
436 _grid
.GridCellBoolEditor_swiginit(self
,_grid
.new_GridCellBoolEditor(*args
, **kwargs
))
437 self
._setOORInfo
(self
)
439 def GetValue(*args
, **kwargs
):
440 """GetValue(self) -> String"""
441 return _grid
.GridCellBoolEditor_GetValue(*args
, **kwargs
)
443 GridCellBoolEditor_swigregister
= _grid
.GridCellBoolEditor_swigregister
444 GridCellBoolEditor_swigregister(GridCellBoolEditor
)
446 class GridCellChoiceEditor(GridCellEditor
):
447 """Proxy of C++ GridCellChoiceEditor class"""
448 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
449 __repr__
= _swig_repr
450 def __init__(self
, *args
, **kwargs
):
451 """__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
452 _grid
.GridCellChoiceEditor_swiginit(self
,_grid
.new_GridCellChoiceEditor(*args
, **kwargs
))
453 self
._setOORInfo
(self
)
455 def GetValue(*args
, **kwargs
):
456 """GetValue(self) -> String"""
457 return _grid
.GridCellChoiceEditor_GetValue(*args
, **kwargs
)
459 GridCellChoiceEditor_swigregister
= _grid
.GridCellChoiceEditor_swigregister
460 GridCellChoiceEditor_swigregister(GridCellChoiceEditor
)
462 class GridCellEnumEditor(GridCellChoiceEditor
):
463 """Proxy of C++ GridCellEnumEditor class"""
464 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
465 __repr__
= _swig_repr
466 def __init__(self
, *args
, **kwargs
):
467 """__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
468 _grid
.GridCellEnumEditor_swiginit(self
,_grid
.new_GridCellEnumEditor(*args
, **kwargs
))
469 self
._setOORInfo
(self
)
471 GridCellEnumEditor_swigregister
= _grid
.GridCellEnumEditor_swigregister
472 GridCellEnumEditor_swigregister(GridCellEnumEditor
)
474 class GridCellAutoWrapStringEditor(GridCellTextEditor
):
475 """Proxy of C++ GridCellAutoWrapStringEditor class"""
476 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
477 __repr__
= _swig_repr
478 def __init__(self
, *args
, **kwargs
):
479 """__init__(self) -> GridCellAutoWrapStringEditor"""
480 _grid
.GridCellAutoWrapStringEditor_swiginit(self
,_grid
.new_GridCellAutoWrapStringEditor(*args
, **kwargs
))
481 self
._setOORInfo
(self
)
483 GridCellAutoWrapStringEditor_swigregister
= _grid
.GridCellAutoWrapStringEditor_swigregister
484 GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor
)
486 class GridCellAttr(object):
487 """Proxy of C++ GridCellAttr class"""
488 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
489 __repr__
= _swig_repr
490 Any
= _grid
.GridCellAttr_Any
491 Default
= _grid
.GridCellAttr_Default
492 Cell
= _grid
.GridCellAttr_Cell
493 Row
= _grid
.GridCellAttr_Row
494 Col
= _grid
.GridCellAttr_Col
495 Merged
= _grid
.GridCellAttr_Merged
496 def _setOORInfo(*args
, **kwargs
):
497 """_setOORInfo(self, PyObject _self)"""
498 return _grid
.GridCellAttr__setOORInfo(*args
, **kwargs
)
500 def __init__(self
, *args
, **kwargs
):
501 """__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
502 _grid
.GridCellAttr_swiginit(self
,_grid
.new_GridCellAttr(*args
, **kwargs
))
503 self
._setOORInfo
(self
)
505 __swig_destroy__
= _grid
.delete_GridCellAttr
506 __del__
= lambda self
: None;
507 def Clone(*args
, **kwargs
):
508 """Clone(self) -> GridCellAttr"""
509 return _grid
.GridCellAttr_Clone(*args
, **kwargs
)
511 def MergeWith(*args
, **kwargs
):
512 """MergeWith(self, GridCellAttr mergefrom)"""
513 return _grid
.GridCellAttr_MergeWith(*args
, **kwargs
)
515 def IncRef(*args
, **kwargs
):
517 return _grid
.GridCellAttr_IncRef(*args
, **kwargs
)
519 def DecRef(*args
, **kwargs
):
521 return _grid
.GridCellAttr_DecRef(*args
, **kwargs
)
523 def SetTextColour(*args
, **kwargs
):
524 """SetTextColour(self, Colour colText)"""
525 return _grid
.GridCellAttr_SetTextColour(*args
, **kwargs
)
527 def SetBackgroundColour(*args
, **kwargs
):
528 """SetBackgroundColour(self, Colour colBack)"""
529 return _grid
.GridCellAttr_SetBackgroundColour(*args
, **kwargs
)
531 def SetFont(*args
, **kwargs
):
532 """SetFont(self, Font font)"""
533 return _grid
.GridCellAttr_SetFont(*args
, **kwargs
)
535 def SetAlignment(*args
, **kwargs
):
536 """SetAlignment(self, int hAlign, int vAlign)"""
537 return _grid
.GridCellAttr_SetAlignment(*args
, **kwargs
)
539 def SetSize(*args
, **kwargs
):
540 """SetSize(self, int num_rows, int num_cols)"""
541 return _grid
.GridCellAttr_SetSize(*args
, **kwargs
)
543 def SetOverflow(*args
, **kwargs
):
544 """SetOverflow(self, bool allow=True)"""
545 return _grid
.GridCellAttr_SetOverflow(*args
, **kwargs
)
547 def SetReadOnly(*args
, **kwargs
):
548 """SetReadOnly(self, bool isReadOnly=True)"""
549 return _grid
.GridCellAttr_SetReadOnly(*args
, **kwargs
)
551 def SetRenderer(*args
, **kwargs
):
552 """SetRenderer(self, GridCellRenderer renderer)"""
553 return _grid
.GridCellAttr_SetRenderer(*args
, **kwargs
)
555 def SetEditor(*args
, **kwargs
):
556 """SetEditor(self, GridCellEditor editor)"""
557 return _grid
.GridCellAttr_SetEditor(*args
, **kwargs
)
559 def SetKind(*args
, **kwargs
):
560 """SetKind(self, int kind)"""
561 return _grid
.GridCellAttr_SetKind(*args
, **kwargs
)
563 def HasTextColour(*args
, **kwargs
):
564 """HasTextColour(self) -> bool"""
565 return _grid
.GridCellAttr_HasTextColour(*args
, **kwargs
)
567 def HasBackgroundColour(*args
, **kwargs
):
568 """HasBackgroundColour(self) -> bool"""
569 return _grid
.GridCellAttr_HasBackgroundColour(*args
, **kwargs
)
571 def HasFont(*args
, **kwargs
):
572 """HasFont(self) -> bool"""
573 return _grid
.GridCellAttr_HasFont(*args
, **kwargs
)
575 def HasAlignment(*args
, **kwargs
):
576 """HasAlignment(self) -> bool"""
577 return _grid
.GridCellAttr_HasAlignment(*args
, **kwargs
)
579 def HasRenderer(*args
, **kwargs
):
580 """HasRenderer(self) -> bool"""
581 return _grid
.GridCellAttr_HasRenderer(*args
, **kwargs
)
583 def HasEditor(*args
, **kwargs
):
584 """HasEditor(self) -> bool"""
585 return _grid
.GridCellAttr_HasEditor(*args
, **kwargs
)
587 def HasReadWriteMode(*args
, **kwargs
):
588 """HasReadWriteMode(self) -> bool"""
589 return _grid
.GridCellAttr_HasReadWriteMode(*args
, **kwargs
)
591 def HasOverflowMode(*args
, **kwargs
):
592 """HasOverflowMode(self) -> bool"""
593 return _grid
.GridCellAttr_HasOverflowMode(*args
, **kwargs
)
595 def GetTextColour(*args
, **kwargs
):
596 """GetTextColour(self) -> Colour"""
597 return _grid
.GridCellAttr_GetTextColour(*args
, **kwargs
)
599 def GetBackgroundColour(*args
, **kwargs
):
600 """GetBackgroundColour(self) -> Colour"""
601 return _grid
.GridCellAttr_GetBackgroundColour(*args
, **kwargs
)
603 def GetFont(*args
, **kwargs
):
604 """GetFont(self) -> Font"""
605 return _grid
.GridCellAttr_GetFont(*args
, **kwargs
)
607 def GetAlignment(*args
, **kwargs
):
608 """GetAlignment() -> (hAlign, vAlign)"""
609 return _grid
.GridCellAttr_GetAlignment(*args
, **kwargs
)
611 def GetSize(*args
, **kwargs
):
612 """GetSize() -> (num_rows, num_cols)"""
613 return _grid
.GridCellAttr_GetSize(*args
, **kwargs
)
615 def GetOverflow(*args
, **kwargs
):
616 """GetOverflow(self) -> bool"""
617 return _grid
.GridCellAttr_GetOverflow(*args
, **kwargs
)
619 def GetRenderer(*args
, **kwargs
):
620 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
621 return _grid
.GridCellAttr_GetRenderer(*args
, **kwargs
)
623 def GetEditor(*args
, **kwargs
):
624 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
625 return _grid
.GridCellAttr_GetEditor(*args
, **kwargs
)
627 def IsReadOnly(*args
, **kwargs
):
628 """IsReadOnly(self) -> bool"""
629 return _grid
.GridCellAttr_IsReadOnly(*args
, **kwargs
)
631 def GetKind(*args
, **kwargs
):
632 """GetKind(self) -> int"""
633 return _grid
.GridCellAttr_GetKind(*args
, **kwargs
)
635 def SetDefAttr(*args
, **kwargs
):
636 """SetDefAttr(self, GridCellAttr defAttr)"""
637 return _grid
.GridCellAttr_SetDefAttr(*args
, **kwargs
)
639 GridCellAttr_swigregister
= _grid
.GridCellAttr_swigregister
640 GridCellAttr_swigregister(GridCellAttr
)
642 class GridCellAttrProvider(object):
643 """Proxy of C++ GridCellAttrProvider class"""
644 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
645 __repr__
= _swig_repr
646 def __init__(self
, *args
, **kwargs
):
647 """__init__(self) -> GridCellAttrProvider"""
648 _grid
.GridCellAttrProvider_swiginit(self
,_grid
.new_GridCellAttrProvider(*args
, **kwargs
))
649 self
._setOORInfo
(self
)
651 def _setOORInfo(*args
, **kwargs
):
652 """_setOORInfo(self, PyObject _self)"""
653 return _grid
.GridCellAttrProvider__setOORInfo(*args
, **kwargs
)
655 def GetAttr(*args
, **kwargs
):
656 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
657 return _grid
.GridCellAttrProvider_GetAttr(*args
, **kwargs
)
659 def SetAttr(*args
, **kwargs
):
660 """SetAttr(self, GridCellAttr attr, int row, int col)"""
661 return _grid
.GridCellAttrProvider_SetAttr(*args
, **kwargs
)
663 def SetRowAttr(*args
, **kwargs
):
664 """SetRowAttr(self, GridCellAttr attr, int row)"""
665 return _grid
.GridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
667 def SetColAttr(*args
, **kwargs
):
668 """SetColAttr(self, GridCellAttr attr, int col)"""
669 return _grid
.GridCellAttrProvider_SetColAttr(*args
, **kwargs
)
671 def UpdateAttrRows(*args
, **kwargs
):
672 """UpdateAttrRows(self, size_t pos, int numRows)"""
673 return _grid
.GridCellAttrProvider_UpdateAttrRows(*args
, **kwargs
)
675 def UpdateAttrCols(*args
, **kwargs
):
676 """UpdateAttrCols(self, size_t pos, int numCols)"""
677 return _grid
.GridCellAttrProvider_UpdateAttrCols(*args
, **kwargs
)
679 GridCellAttrProvider_swigregister
= _grid
.GridCellAttrProvider_swigregister
680 GridCellAttrProvider_swigregister(GridCellAttrProvider
)
682 class PyGridCellAttrProvider(GridCellAttrProvider
):
683 """Proxy of C++ PyGridCellAttrProvider class"""
684 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
685 __repr__
= _swig_repr
686 def __init__(self
, *args
, **kwargs
):
687 """__init__(self) -> PyGridCellAttrProvider"""
688 _grid
.PyGridCellAttrProvider_swiginit(self
,_grid
.new_PyGridCellAttrProvider(*args
, **kwargs
))
689 self
._setCallbackInfo
(self
, PyGridCellAttrProvider
)
691 def _setCallbackInfo(*args
, **kwargs
):
692 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
693 return _grid
.PyGridCellAttrProvider__setCallbackInfo(*args
, **kwargs
)
695 def GetAttr(*args
, **kwargs
):
696 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
697 return _grid
.PyGridCellAttrProvider_GetAttr(*args
, **kwargs
)
699 def SetAttr(*args
, **kwargs
):
700 """SetAttr(self, GridCellAttr attr, int row, int col)"""
701 return _grid
.PyGridCellAttrProvider_SetAttr(*args
, **kwargs
)
703 def SetRowAttr(*args
, **kwargs
):
704 """SetRowAttr(self, GridCellAttr attr, int row)"""
705 return _grid
.PyGridCellAttrProvider_SetRowAttr(*args
, **kwargs
)
707 def SetColAttr(*args
, **kwargs
):
708 """SetColAttr(self, GridCellAttr attr, int col)"""
709 return _grid
.PyGridCellAttrProvider_SetColAttr(*args
, **kwargs
)
711 def base_GetAttr(*args
, **kw
):
712 return PyGridCellAttrProvider
.GetAttr(*args
, **kw
)
713 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
714 "Please use PyGridCellAttrProvider.GetAttr instead.")
716 def base_SetAttr(*args
, **kw
):
717 return PyGridCellAttrProvider
.SetAttr(*args
, **kw
)
718 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
719 "Please use PyGridCellAttrProvider.SetAttr instead.")
721 def base_SetRowAttr(*args
, **kw
):
722 return PyGridCellAttrProvider
.SetRowAttr(*args
, **kw
)
723 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
724 "Please use PyGridCellAttrProvider.SetRowAttr instead.")
726 def base_SetColAttr(*args
, **kw
):
727 return PyGridCellAttrProvider
.SetColAttr(*args
, **kw
)
728 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
729 "Please use PyGridCellAttrProvider.SetColAttr instead.")
731 PyGridCellAttrProvider_swigregister
= _grid
.PyGridCellAttrProvider_swigregister
732 PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider
)
734 class GridTableBase(_core
.Object
):
735 """Proxy of C++ GridTableBase class"""
736 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
737 def __init__(self
): raise AttributeError, "No constructor defined"
738 __repr__
= _swig_repr
739 def _setOORInfo(*args
, **kwargs
):
740 """_setOORInfo(self, PyObject _self)"""
741 return _grid
.GridTableBase__setOORInfo(*args
, **kwargs
)
743 def SetAttrProvider(*args
, **kwargs
):
744 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
745 return _grid
.GridTableBase_SetAttrProvider(*args
, **kwargs
)
747 def GetAttrProvider(*args
, **kwargs
):
748 """GetAttrProvider(self) -> GridCellAttrProvider"""
749 return _grid
.GridTableBase_GetAttrProvider(*args
, **kwargs
)
751 def SetView(*args
, **kwargs
):
752 """SetView(self, Grid grid)"""
753 return _grid
.GridTableBase_SetView(*args
, **kwargs
)
755 def GetView(*args
, **kwargs
):
756 """GetView(self) -> Grid"""
757 return _grid
.GridTableBase_GetView(*args
, **kwargs
)
759 def GetNumberRows(*args
, **kwargs
):
760 """GetNumberRows(self) -> int"""
761 return _grid
.GridTableBase_GetNumberRows(*args
, **kwargs
)
763 def GetNumberCols(*args
, **kwargs
):
764 """GetNumberCols(self) -> int"""
765 return _grid
.GridTableBase_GetNumberCols(*args
, **kwargs
)
767 def IsEmptyCell(*args
, **kwargs
):
768 """IsEmptyCell(self, int row, int col) -> bool"""
769 return _grid
.GridTableBase_IsEmptyCell(*args
, **kwargs
)
771 def GetValue(*args
, **kwargs
):
772 """GetValue(self, int row, int col) -> String"""
773 return _grid
.GridTableBase_GetValue(*args
, **kwargs
)
775 def SetValue(*args
, **kwargs
):
776 """SetValue(self, int row, int col, String value)"""
777 return _grid
.GridTableBase_SetValue(*args
, **kwargs
)
779 def GetTypeName(*args
, **kwargs
):
780 """GetTypeName(self, int row, int col) -> String"""
781 return _grid
.GridTableBase_GetTypeName(*args
, **kwargs
)
783 def CanGetValueAs(*args
, **kwargs
):
784 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
785 return _grid
.GridTableBase_CanGetValueAs(*args
, **kwargs
)
787 def CanSetValueAs(*args
, **kwargs
):
788 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
789 return _grid
.GridTableBase_CanSetValueAs(*args
, **kwargs
)
791 def GetValueAsLong(*args
, **kwargs
):
792 """GetValueAsLong(self, int row, int col) -> long"""
793 return _grid
.GridTableBase_GetValueAsLong(*args
, **kwargs
)
795 def GetValueAsDouble(*args
, **kwargs
):
796 """GetValueAsDouble(self, int row, int col) -> double"""
797 return _grid
.GridTableBase_GetValueAsDouble(*args
, **kwargs
)
799 def GetValueAsBool(*args
, **kwargs
):
800 """GetValueAsBool(self, int row, int col) -> bool"""
801 return _grid
.GridTableBase_GetValueAsBool(*args
, **kwargs
)
803 def SetValueAsLong(*args
, **kwargs
):
804 """SetValueAsLong(self, int row, int col, long value)"""
805 return _grid
.GridTableBase_SetValueAsLong(*args
, **kwargs
)
807 def SetValueAsDouble(*args
, **kwargs
):
808 """SetValueAsDouble(self, int row, int col, double value)"""
809 return _grid
.GridTableBase_SetValueAsDouble(*args
, **kwargs
)
811 def SetValueAsBool(*args
, **kwargs
):
812 """SetValueAsBool(self, int row, int col, bool value)"""
813 return _grid
.GridTableBase_SetValueAsBool(*args
, **kwargs
)
815 def Clear(*args
, **kwargs
):
817 return _grid
.GridTableBase_Clear(*args
, **kwargs
)
819 def InsertRows(*args
, **kwargs
):
820 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
821 return _grid
.GridTableBase_InsertRows(*args
, **kwargs
)
823 def AppendRows(*args
, **kwargs
):
824 """AppendRows(self, size_t numRows=1) -> bool"""
825 return _grid
.GridTableBase_AppendRows(*args
, **kwargs
)
827 def DeleteRows(*args
, **kwargs
):
828 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
829 return _grid
.GridTableBase_DeleteRows(*args
, **kwargs
)
831 def InsertCols(*args
, **kwargs
):
832 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
833 return _grid
.GridTableBase_InsertCols(*args
, **kwargs
)
835 def AppendCols(*args
, **kwargs
):
836 """AppendCols(self, size_t numCols=1) -> bool"""
837 return _grid
.GridTableBase_AppendCols(*args
, **kwargs
)
839 def DeleteCols(*args
, **kwargs
):
840 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
841 return _grid
.GridTableBase_DeleteCols(*args
, **kwargs
)
843 def GetRowLabelValue(*args
, **kwargs
):
844 """GetRowLabelValue(self, int row) -> String"""
845 return _grid
.GridTableBase_GetRowLabelValue(*args
, **kwargs
)
847 def GetColLabelValue(*args
, **kwargs
):
848 """GetColLabelValue(self, int col) -> String"""
849 return _grid
.GridTableBase_GetColLabelValue(*args
, **kwargs
)
851 def SetRowLabelValue(*args
, **kwargs
):
852 """SetRowLabelValue(self, int row, String value)"""
853 return _grid
.GridTableBase_SetRowLabelValue(*args
, **kwargs
)
855 def SetColLabelValue(*args
, **kwargs
):
856 """SetColLabelValue(self, int col, String value)"""
857 return _grid
.GridTableBase_SetColLabelValue(*args
, **kwargs
)
859 def CanHaveAttributes(*args
, **kwargs
):
860 """CanHaveAttributes(self) -> bool"""
861 return _grid
.GridTableBase_CanHaveAttributes(*args
, **kwargs
)
863 def GetAttr(*args
, **kwargs
):
864 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
865 return _grid
.GridTableBase_GetAttr(*args
, **kwargs
)
867 def SetAttr(*args
, **kwargs
):
868 """SetAttr(self, GridCellAttr attr, int row, int col)"""
869 return _grid
.GridTableBase_SetAttr(*args
, **kwargs
)
871 def SetRowAttr(*args
, **kwargs
):
872 """SetRowAttr(self, GridCellAttr attr, int row)"""
873 return _grid
.GridTableBase_SetRowAttr(*args
, **kwargs
)
875 def SetColAttr(*args
, **kwargs
):
876 """SetColAttr(self, GridCellAttr attr, int col)"""
877 return _grid
.GridTableBase_SetColAttr(*args
, **kwargs
)
879 GridTableBase_swigregister
= _grid
.GridTableBase_swigregister
880 GridTableBase_swigregister(GridTableBase
)
882 class PyGridTableBase(GridTableBase
):
883 """Proxy of C++ PyGridTableBase class"""
884 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
885 __repr__
= _swig_repr
886 def __init__(self
, *args
, **kwargs
):
887 """__init__(self) -> PyGridTableBase"""
888 _grid
.PyGridTableBase_swiginit(self
,_grid
.new_PyGridTableBase(*args
, **kwargs
))
889 self
._setCallbackInfo
(self
, PyGridTableBase
);self
._setOORInfo
(self
)
891 def _setCallbackInfo(*args
, **kwargs
):
892 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
893 return _grid
.PyGridTableBase__setCallbackInfo(*args
, **kwargs
)
895 def Destroy(*args
, **kwargs
):
899 Deletes the C++ object this Python object is a proxy for.
901 val
= _grid
.PyGridTableBase_Destroy(*args
, **kwargs
)
905 def base_GetTypeName(*args
, **kw
):
906 return PyGridTableBase
.GetTypeName(*args
, **kw
)
907 base_GetTypeName
= wx
._deprecated
(base_GetTypeName
,
908 "Please use PyGridTableBase.GetTypeName instead.")
910 def base_CanGetValueAs(*args
, **kw
):
911 return PyGridTableBase
.CanGetValueAs(*args
, **kw
)
912 base_CanGetValueAs
= wx
._deprecated
(base_CanGetValueAs
,
913 "Please use PyGridTableBase.CanGetValueAs instead.")
915 def base_CanSetValueAs(*args
, **kw
):
916 return PyGridTableBase
.CanSetValueAs(*args
, **kw
)
917 base_CanSetValueAs
= wx
._deprecated
(base_CanSetValueAs
,
918 "Please use PyGridTableBase.CanSetValueAs instead.")
920 def base_Clear(*args
, **kw
):
921 return PyGridTableBase
.Clear(*args
, **kw
)
922 base_Clear
= wx
._deprecated
(base_Clear
,
923 "Please use PyGridTableBase.Clear instead.")
925 def base_InsertRows(*args
, **kw
):
926 return PyGridTableBase
.InsertRows(*args
, **kw
)
927 base_InsertRows
= wx
._deprecated
(base_InsertRows
,
928 "Please use PyGridTableBase.InsertRows instead.")
930 def base_AppendRows(*args
, **kw
):
931 return PyGridTableBase
.AppendRows(*args
, **kw
)
932 base_AppendRows
= wx
._deprecated
(base_AppendRows
,
933 "Please use PyGridTableBase.AppendRows instead.")
935 def base_DeleteRows(*args
, **kw
):
936 return PyGridTableBase
.DeleteRows(*args
, **kw
)
937 base_DeleteRows
= wx
._deprecated
(base_DeleteRows
,
938 "Please use PyGridTableBase.DeleteRows instead.")
940 def base_InsertCols(*args
, **kw
):
941 return PyGridTableBase
.InsertCols(*args
, **kw
)
942 base_InsertCols
= wx
._deprecated
(base_InsertCols
,
943 "Please use PyGridTableBase.InsertCols instead.")
945 def base_AppendCols(*args
, **kw
):
946 return PyGridTableBase
.AppendCols(*args
, **kw
)
947 base_AppendCols
= wx
._deprecated
(base_AppendCols
,
948 "Please use PyGridTableBase.AppendCols instead.")
950 def base_DeleteCols(*args
, **kw
):
951 return PyGridTableBase
.DeleteCols(*args
, **kw
)
952 base_DeleteCols
= wx
._deprecated
(base_DeleteCols
,
953 "Please use PyGridTableBase.DeleteCols instead.")
955 def base_GetRowLabelValue(*args
, **kw
):
956 return PyGridTableBase
.GetRowLabelValue(*args
, **kw
)
957 base_GetRowLabelValue
= wx
._deprecated
(base_GetRowLabelValue
,
958 "Please use PyGridTableBase.GetRowLabelValue instead.")
960 def base_GetColLabelValue(*args
, **kw
):
961 return PyGridTableBase
.GetColLabelValue(*args
, **kw
)
962 base_GetColLabelValue
= wx
._deprecated
(base_GetColLabelValue
,
963 "Please use PyGridTableBase.GetColLabelValue instead.")
965 def base_SetRowLabelValue(*args
, **kw
):
966 return PyGridTableBase
.SetRowLabelValue(*args
, **kw
)
967 base_SetRowLabelValue
= wx
._deprecated
(base_SetRowLabelValue
,
968 "Please use PyGridTableBase.SetRowLabelValue instead.")
970 def base_SetColLabelValue(*args
, **kw
):
971 return PyGridTableBase
.SetColLabelValue(*args
, **kw
)
972 base_SetColLabelValue
= wx
._deprecated
(base_SetColLabelValue
,
973 "Please use PyGridTableBase.SetColLabelValue instead.")
975 def base_CanHaveAttributes(*args
, **kw
):
976 return PyGridTableBase
.CanHaveAttributes(*args
, **kw
)
977 base_CanHaveAttributes
= wx
._deprecated
(base_CanHaveAttributes
,
978 "Please use PyGridTableBase.CanHaveAttributes instead.")
980 def base_GetAttr(*args
, **kw
):
981 return PyGridTableBase
.GetAttr(*args
, **kw
)
982 base_GetAttr
= wx
._deprecated
(base_GetAttr
,
983 "Please use PyGridTableBase.GetAttr instead.")
985 def base_SetAttr(*args
, **kw
):
986 return PyGridTableBase
.SetAttr(*args
, **kw
)
987 base_SetAttr
= wx
._deprecated
(base_SetAttr
,
988 "Please use PyGridTableBase.SetAttr instead.")
990 def base_SetRowAttr(*args
, **kw
):
991 return PyGridTableBase
.SetRowAttr(*args
, **kw
)
992 base_SetRowAttr
= wx
._deprecated
(base_SetRowAttr
,
993 "Please use PyGridTableBase.SetRowAttr instead.")
995 def base_SetColAttr(*args
, **kw
):
996 return PyGridTableBase
.SetColAttr(*args
, **kw
)
997 base_SetColAttr
= wx
._deprecated
(base_SetColAttr
,
998 "Please use PyGridTableBase.SetColAttr instead.")
1000 PyGridTableBase_swigregister
= _grid
.PyGridTableBase_swigregister
1001 PyGridTableBase_swigregister(PyGridTableBase
)
1003 class GridStringTable(GridTableBase
):
1004 """Proxy of C++ GridStringTable class"""
1005 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1006 __repr__
= _swig_repr
1007 def __init__(self
, *args
, **kwargs
):
1008 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1009 _grid
.GridStringTable_swiginit(self
,_grid
.new_GridStringTable(*args
, **kwargs
))
1010 self
._setOORInfo
(self
)
1012 GridStringTable_swigregister
= _grid
.GridStringTable_swigregister
1013 GridStringTable_swigregister(GridStringTable
)
1015 GRIDTABLE_REQUEST_VIEW_GET_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1016 GRIDTABLE_REQUEST_VIEW_SEND_VALUES
= _grid
.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1017 GRIDTABLE_NOTIFY_ROWS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_ROWS_INSERTED
1018 GRIDTABLE_NOTIFY_ROWS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_ROWS_APPENDED
1019 GRIDTABLE_NOTIFY_ROWS_DELETED
= _grid
.GRIDTABLE_NOTIFY_ROWS_DELETED
1020 GRIDTABLE_NOTIFY_COLS_INSERTED
= _grid
.GRIDTABLE_NOTIFY_COLS_INSERTED
1021 GRIDTABLE_NOTIFY_COLS_APPENDED
= _grid
.GRIDTABLE_NOTIFY_COLS_APPENDED
1022 GRIDTABLE_NOTIFY_COLS_DELETED
= _grid
.GRIDTABLE_NOTIFY_COLS_DELETED
1023 class GridTableMessage(object):
1024 """Proxy of C++ GridTableMessage class"""
1025 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1026 __repr__
= _swig_repr
1027 def __init__(self
, *args
, **kwargs
):
1028 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1029 _grid
.GridTableMessage_swiginit(self
,_grid
.new_GridTableMessage(*args
, **kwargs
))
1030 __swig_destroy__
= _grid
.delete_GridTableMessage
1031 __del__
= lambda self
: None;
1032 def SetTableObject(*args
, **kwargs
):
1033 """SetTableObject(self, GridTableBase table)"""
1034 return _grid
.GridTableMessage_SetTableObject(*args
, **kwargs
)
1036 def GetTableObject(*args
, **kwargs
):
1037 """GetTableObject(self) -> GridTableBase"""
1038 return _grid
.GridTableMessage_GetTableObject(*args
, **kwargs
)
1040 def SetId(*args
, **kwargs
):
1041 """SetId(self, int id)"""
1042 return _grid
.GridTableMessage_SetId(*args
, **kwargs
)
1044 def GetId(*args
, **kwargs
):
1045 """GetId(self) -> int"""
1046 return _grid
.GridTableMessage_GetId(*args
, **kwargs
)
1048 def SetCommandInt(*args
, **kwargs
):
1049 """SetCommandInt(self, int comInt1)"""
1050 return _grid
.GridTableMessage_SetCommandInt(*args
, **kwargs
)
1052 def GetCommandInt(*args
, **kwargs
):
1053 """GetCommandInt(self) -> int"""
1054 return _grid
.GridTableMessage_GetCommandInt(*args
, **kwargs
)
1056 def SetCommandInt2(*args
, **kwargs
):
1057 """SetCommandInt2(self, int comInt2)"""
1058 return _grid
.GridTableMessage_SetCommandInt2(*args
, **kwargs
)
1060 def GetCommandInt2(*args
, **kwargs
):
1061 """GetCommandInt2(self) -> int"""
1062 return _grid
.GridTableMessage_GetCommandInt2(*args
, **kwargs
)
1064 GridTableMessage_swigregister
= _grid
.GridTableMessage_swigregister
1065 GridTableMessage_swigregister(GridTableMessage
)
1067 class GridCellCoords(object):
1068 """Proxy of C++ GridCellCoords class"""
1069 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1070 __repr__
= _swig_repr
1071 def __init__(self
, *args
, **kwargs
):
1072 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1073 _grid
.GridCellCoords_swiginit(self
,_grid
.new_GridCellCoords(*args
, **kwargs
))
1074 __swig_destroy__
= _grid
.delete_GridCellCoords
1075 __del__
= lambda self
: None;
1076 def GetRow(*args
, **kwargs
):
1077 """GetRow(self) -> int"""
1078 return _grid
.GridCellCoords_GetRow(*args
, **kwargs
)
1080 def SetRow(*args
, **kwargs
):
1081 """SetRow(self, int n)"""
1082 return _grid
.GridCellCoords_SetRow(*args
, **kwargs
)
1084 def GetCol(*args
, **kwargs
):
1085 """GetCol(self) -> int"""
1086 return _grid
.GridCellCoords_GetCol(*args
, **kwargs
)
1088 def SetCol(*args
, **kwargs
):
1089 """SetCol(self, int n)"""
1090 return _grid
.GridCellCoords_SetCol(*args
, **kwargs
)
1092 def Set(*args
, **kwargs
):
1093 """Set(self, int row, int col)"""
1094 return _grid
.GridCellCoords_Set(*args
, **kwargs
)
1096 def __eq__(*args
, **kwargs
):
1097 """__eq__(self, GridCellCoords other) -> bool"""
1098 return _grid
.GridCellCoords___eq__(*args
, **kwargs
)
1100 def __ne__(*args
, **kwargs
):
1101 """__ne__(self, GridCellCoords other) -> bool"""
1102 return _grid
.GridCellCoords___ne__(*args
, **kwargs
)
1104 def Get(*args
, **kwargs
):
1105 """Get(self) -> PyObject"""
1106 return _grid
.GridCellCoords_Get(*args
, **kwargs
)
1108 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
1109 def __str__(self
): return str(self
.Get())
1110 def __repr__(self
): return 'wxGridCellCoords'+str(self
.Get())
1111 def __len__(self
): return len(self
.Get())
1112 def __getitem__(self
, index
): return self
.asTuple()[index
]
1113 def __setitem__(self
, index
, val
):
1114 if index
== 0: self
.SetRow(val
)
1115 elif index
== 1: self
.SetCol(val
)
1116 else: raise IndexError
1118 GridCellCoords_swigregister
= _grid
.GridCellCoords_swigregister
1119 GridCellCoords_swigregister(GridCellCoords
)
1121 class Grid(_windows
.ScrolledWindow
):
1122 """Proxy of C++ Grid class"""
1123 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1124 __repr__
= _swig_repr
1125 def __init__(self
, *args
, **kwargs
):
1127 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1128 Size size=DefaultSize, long style=WANTS_CHARS,
1129 String name=PanelNameStr) -> Grid
1131 _grid
.Grid_swiginit(self
,_grid
.new_Grid(*args
, **kwargs
))
1132 self
._setOORInfo
(self
)
1134 def Create(*args
, **kwargs
):
1136 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1137 Size size=DefaultSize, long style=WANTS_CHARS,
1138 String name=PanelNameStr) -> bool
1140 return _grid
.Grid_Create(*args
, **kwargs
)
1142 wxGridSelectCells
= _grid
.Grid_wxGridSelectCells
1143 wxGridSelectRows
= _grid
.Grid_wxGridSelectRows
1144 wxGridSelectColumns
= _grid
.Grid_wxGridSelectColumns
1145 SelectCells
= wxGridSelectCells
1146 SelectRows
= wxGridSelectRows
1147 SelectColumns
= wxGridSelectColumns
1149 def CreateGrid(*args
, **kwargs
):
1150 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1151 return _grid
.Grid_CreateGrid(*args
, **kwargs
)
1153 def SetSelectionMode(*args
, **kwargs
):
1154 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1155 return _grid
.Grid_SetSelectionMode(*args
, **kwargs
)
1157 def GetSelectionMode(*args
, **kwargs
):
1158 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1159 return _grid
.Grid_GetSelectionMode(*args
, **kwargs
)
1161 def GetNumberRows(*args
, **kwargs
):
1162 """GetNumberRows(self) -> int"""
1163 return _grid
.Grid_GetNumberRows(*args
, **kwargs
)
1165 def GetNumberCols(*args
, **kwargs
):
1166 """GetNumberCols(self) -> int"""
1167 return _grid
.Grid_GetNumberCols(*args
, **kwargs
)
1169 def ProcessTableMessage(*args
, **kwargs
):
1170 """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
1171 return _grid
.Grid_ProcessTableMessage(*args
, **kwargs
)
1173 def GetTable(*args
, **kwargs
):
1174 """GetTable(self) -> GridTableBase"""
1175 return _grid
.Grid_GetTable(*args
, **kwargs
)
1177 def SetTable(*args
, **kwargs
):
1178 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1179 return _grid
.Grid_SetTable(*args
, **kwargs
)
1181 def ClearGrid(*args
, **kwargs
):
1182 """ClearGrid(self)"""
1183 return _grid
.Grid_ClearGrid(*args
, **kwargs
)
1185 def InsertRows(*args
, **kwargs
):
1186 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1187 return _grid
.Grid_InsertRows(*args
, **kwargs
)
1189 def AppendRows(*args
, **kwargs
):
1190 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1191 return _grid
.Grid_AppendRows(*args
, **kwargs
)
1193 def DeleteRows(*args
, **kwargs
):
1194 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1195 return _grid
.Grid_DeleteRows(*args
, **kwargs
)
1197 def InsertCols(*args
, **kwargs
):
1198 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1199 return _grid
.Grid_InsertCols(*args
, **kwargs
)
1201 def AppendCols(*args
, **kwargs
):
1202 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1203 return _grid
.Grid_AppendCols(*args
, **kwargs
)
1205 def DeleteCols(*args
, **kwargs
):
1206 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1207 return _grid
.Grid_DeleteCols(*args
, **kwargs
)
1209 def DrawCellHighlight(*args
, **kwargs
):
1210 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1211 return _grid
.Grid_DrawCellHighlight(*args
, **kwargs
)
1213 def DrawTextRectangle(*args
, **kwargs
):
1215 DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
1216 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1218 return _grid
.Grid_DrawTextRectangle(*args
, **kwargs
)
1220 def GetTextBoxSize(*args
, **kwargs
):
1221 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1222 return _grid
.Grid_GetTextBoxSize(*args
, **kwargs
)
1224 def BeginBatch(*args
, **kwargs
):
1225 """BeginBatch(self)"""
1226 return _grid
.Grid_BeginBatch(*args
, **kwargs
)
1228 def EndBatch(*args
, **kwargs
):
1229 """EndBatch(self)"""
1230 return _grid
.Grid_EndBatch(*args
, **kwargs
)
1232 def GetBatchCount(*args
, **kwargs
):
1233 """GetBatchCount(self) -> int"""
1234 return _grid
.Grid_GetBatchCount(*args
, **kwargs
)
1236 def ForceRefresh(*args
, **kwargs
):
1237 """ForceRefresh(self)"""
1238 return _grid
.Grid_ForceRefresh(*args
, **kwargs
)
1240 def IsEditable(*args
, **kwargs
):
1241 """IsEditable(self) -> bool"""
1242 return _grid
.Grid_IsEditable(*args
, **kwargs
)
1244 def EnableEditing(*args
, **kwargs
):
1245 """EnableEditing(self, bool edit)"""
1246 return _grid
.Grid_EnableEditing(*args
, **kwargs
)
1248 def EnableCellEditControl(*args
, **kwargs
):
1249 """EnableCellEditControl(self, bool enable=True)"""
1250 return _grid
.Grid_EnableCellEditControl(*args
, **kwargs
)
1252 def DisableCellEditControl(*args
, **kwargs
):
1253 """DisableCellEditControl(self)"""
1254 return _grid
.Grid_DisableCellEditControl(*args
, **kwargs
)
1256 def CanEnableCellControl(*args
, **kwargs
):
1257 """CanEnableCellControl(self) -> bool"""
1258 return _grid
.Grid_CanEnableCellControl(*args
, **kwargs
)
1260 def IsCellEditControlEnabled(*args
, **kwargs
):
1261 """IsCellEditControlEnabled(self) -> bool"""
1262 return _grid
.Grid_IsCellEditControlEnabled(*args
, **kwargs
)
1264 def IsCellEditControlShown(*args
, **kwargs
):
1265 """IsCellEditControlShown(self) -> bool"""
1266 return _grid
.Grid_IsCellEditControlShown(*args
, **kwargs
)
1268 def IsCurrentCellReadOnly(*args
, **kwargs
):
1269 """IsCurrentCellReadOnly(self) -> bool"""
1270 return _grid
.Grid_IsCurrentCellReadOnly(*args
, **kwargs
)
1272 def ShowCellEditControl(*args
, **kwargs
):
1273 """ShowCellEditControl(self)"""
1274 return _grid
.Grid_ShowCellEditControl(*args
, **kwargs
)
1276 def HideCellEditControl(*args
, **kwargs
):
1277 """HideCellEditControl(self)"""
1278 return _grid
.Grid_HideCellEditControl(*args
, **kwargs
)
1280 def SaveEditControlValue(*args
, **kwargs
):
1281 """SaveEditControlValue(self)"""
1282 return _grid
.Grid_SaveEditControlValue(*args
, **kwargs
)
1284 def XYToCell(*args
, **kwargs
):
1285 """XYToCell(self, int x, int y) -> GridCellCoords"""
1286 return _grid
.Grid_XYToCell(*args
, **kwargs
)
1288 def YToRow(*args
, **kwargs
):
1289 """YToRow(self, int y) -> int"""
1290 return _grid
.Grid_YToRow(*args
, **kwargs
)
1292 def XToCol(*args
, **kwargs
):
1293 """XToCol(self, int x) -> int"""
1294 return _grid
.Grid_XToCol(*args
, **kwargs
)
1296 def YToEdgeOfRow(*args
, **kwargs
):
1297 """YToEdgeOfRow(self, int y) -> int"""
1298 return _grid
.Grid_YToEdgeOfRow(*args
, **kwargs
)
1300 def XToEdgeOfCol(*args
, **kwargs
):
1301 """XToEdgeOfCol(self, int x) -> int"""
1302 return _grid
.Grid_XToEdgeOfCol(*args
, **kwargs
)
1304 def CellToRect(*args
, **kwargs
):
1305 """CellToRect(self, int row, int col) -> Rect"""
1306 return _grid
.Grid_CellToRect(*args
, **kwargs
)
1308 def GetGridCursorRow(*args
, **kwargs
):
1309 """GetGridCursorRow(self) -> int"""
1310 return _grid
.Grid_GetGridCursorRow(*args
, **kwargs
)
1312 def GetGridCursorCol(*args
, **kwargs
):
1313 """GetGridCursorCol(self) -> int"""
1314 return _grid
.Grid_GetGridCursorCol(*args
, **kwargs
)
1316 def IsVisible(*args
, **kwargs
):
1317 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1318 return _grid
.Grid_IsVisible(*args
, **kwargs
)
1320 def MakeCellVisible(*args
, **kwargs
):
1321 """MakeCellVisible(self, int row, int col)"""
1322 return _grid
.Grid_MakeCellVisible(*args
, **kwargs
)
1324 def SetGridCursor(*args
, **kwargs
):
1325 """SetGridCursor(self, int row, int col)"""
1326 return _grid
.Grid_SetGridCursor(*args
, **kwargs
)
1328 def MoveCursorUp(*args
, **kwargs
):
1329 """MoveCursorUp(self, bool expandSelection) -> bool"""
1330 return _grid
.Grid_MoveCursorUp(*args
, **kwargs
)
1332 def MoveCursorDown(*args
, **kwargs
):
1333 """MoveCursorDown(self, bool expandSelection) -> bool"""
1334 return _grid
.Grid_MoveCursorDown(*args
, **kwargs
)
1336 def MoveCursorLeft(*args
, **kwargs
):
1337 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1338 return _grid
.Grid_MoveCursorLeft(*args
, **kwargs
)
1340 def MoveCursorRight(*args
, **kwargs
):
1341 """MoveCursorRight(self, bool expandSelection) -> bool"""
1342 return _grid
.Grid_MoveCursorRight(*args
, **kwargs
)
1344 def MovePageDown(*args
, **kwargs
):
1345 """MovePageDown(self) -> bool"""
1346 return _grid
.Grid_MovePageDown(*args
, **kwargs
)
1348 def MovePageUp(*args
, **kwargs
):
1349 """MovePageUp(self) -> bool"""
1350 return _grid
.Grid_MovePageUp(*args
, **kwargs
)
1352 def MoveCursorUpBlock(*args
, **kwargs
):
1353 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1354 return _grid
.Grid_MoveCursorUpBlock(*args
, **kwargs
)
1356 def MoveCursorDownBlock(*args
, **kwargs
):
1357 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1358 return _grid
.Grid_MoveCursorDownBlock(*args
, **kwargs
)
1360 def MoveCursorLeftBlock(*args
, **kwargs
):
1361 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1362 return _grid
.Grid_MoveCursorLeftBlock(*args
, **kwargs
)
1364 def MoveCursorRightBlock(*args
, **kwargs
):
1365 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1366 return _grid
.Grid_MoveCursorRightBlock(*args
, **kwargs
)
1368 def GetDefaultRowLabelSize(*args
, **kwargs
):
1369 """GetDefaultRowLabelSize(self) -> int"""
1370 return _grid
.Grid_GetDefaultRowLabelSize(*args
, **kwargs
)
1372 def GetRowLabelSize(*args
, **kwargs
):
1373 """GetRowLabelSize(self) -> int"""
1374 return _grid
.Grid_GetRowLabelSize(*args
, **kwargs
)
1376 def GetDefaultColLabelSize(*args
, **kwargs
):
1377 """GetDefaultColLabelSize(self) -> int"""
1378 return _grid
.Grid_GetDefaultColLabelSize(*args
, **kwargs
)
1380 def GetColLabelSize(*args
, **kwargs
):
1381 """GetColLabelSize(self) -> int"""
1382 return _grid
.Grid_GetColLabelSize(*args
, **kwargs
)
1384 def GetLabelBackgroundColour(*args
, **kwargs
):
1385 """GetLabelBackgroundColour(self) -> Colour"""
1386 return _grid
.Grid_GetLabelBackgroundColour(*args
, **kwargs
)
1388 def GetLabelTextColour(*args
, **kwargs
):
1389 """GetLabelTextColour(self) -> Colour"""
1390 return _grid
.Grid_GetLabelTextColour(*args
, **kwargs
)
1392 def GetLabelFont(*args
, **kwargs
):
1393 """GetLabelFont(self) -> Font"""
1394 return _grid
.Grid_GetLabelFont(*args
, **kwargs
)
1396 def GetRowLabelAlignment(*args
, **kwargs
):
1397 """GetRowLabelAlignment() -> (horiz, vert)"""
1398 return _grid
.Grid_GetRowLabelAlignment(*args
, **kwargs
)
1400 def GetColLabelAlignment(*args
, **kwargs
):
1401 """GetColLabelAlignment() -> (horiz, vert)"""
1402 return _grid
.Grid_GetColLabelAlignment(*args
, **kwargs
)
1404 def GetColLabelTextOrientation(*args
, **kwargs
):
1405 """GetColLabelTextOrientation(self) -> int"""
1406 return _grid
.Grid_GetColLabelTextOrientation(*args
, **kwargs
)
1408 def GetRowLabelValue(*args
, **kwargs
):
1409 """GetRowLabelValue(self, int row) -> String"""
1410 return _grid
.Grid_GetRowLabelValue(*args
, **kwargs
)
1412 def GetColLabelValue(*args
, **kwargs
):
1413 """GetColLabelValue(self, int col) -> String"""
1414 return _grid
.Grid_GetColLabelValue(*args
, **kwargs
)
1416 def GetGridLineColour(*args
, **kwargs
):
1417 """GetGridLineColour(self) -> Colour"""
1418 return _grid
.Grid_GetGridLineColour(*args
, **kwargs
)
1420 def GetCellHighlightColour(*args
, **kwargs
):
1421 """GetCellHighlightColour(self) -> Colour"""
1422 return _grid
.Grid_GetCellHighlightColour(*args
, **kwargs
)
1424 def GetCellHighlightPenWidth(*args
, **kwargs
):
1425 """GetCellHighlightPenWidth(self) -> int"""
1426 return _grid
.Grid_GetCellHighlightPenWidth(*args
, **kwargs
)
1428 def GetCellHighlightROPenWidth(*args
, **kwargs
):
1429 """GetCellHighlightROPenWidth(self) -> int"""
1430 return _grid
.Grid_GetCellHighlightROPenWidth(*args
, **kwargs
)
1432 def SetRowLabelSize(*args
, **kwargs
):
1433 """SetRowLabelSize(self, int width)"""
1434 return _grid
.Grid_SetRowLabelSize(*args
, **kwargs
)
1436 def SetColLabelSize(*args
, **kwargs
):
1437 """SetColLabelSize(self, int height)"""
1438 return _grid
.Grid_SetColLabelSize(*args
, **kwargs
)
1440 def SetLabelBackgroundColour(*args
, **kwargs
):
1441 """SetLabelBackgroundColour(self, Colour ?)"""
1442 return _grid
.Grid_SetLabelBackgroundColour(*args
, **kwargs
)
1444 def SetLabelTextColour(*args
, **kwargs
):
1445 """SetLabelTextColour(self, Colour ?)"""
1446 return _grid
.Grid_SetLabelTextColour(*args
, **kwargs
)
1448 def SetLabelFont(*args
, **kwargs
):
1449 """SetLabelFont(self, Font ?)"""
1450 return _grid
.Grid_SetLabelFont(*args
, **kwargs
)
1452 def SetRowLabelAlignment(*args
, **kwargs
):
1453 """SetRowLabelAlignment(self, int horiz, int vert)"""
1454 return _grid
.Grid_SetRowLabelAlignment(*args
, **kwargs
)
1456 def SetColLabelAlignment(*args
, **kwargs
):
1457 """SetColLabelAlignment(self, int horiz, int vert)"""
1458 return _grid
.Grid_SetColLabelAlignment(*args
, **kwargs
)
1460 def SetColLabelTextOrientation(*args
, **kwargs
):
1461 """SetColLabelTextOrientation(self, int textOrientation)"""
1462 return _grid
.Grid_SetColLabelTextOrientation(*args
, **kwargs
)
1464 def SetRowLabelValue(*args
, **kwargs
):
1465 """SetRowLabelValue(self, int row, String ?)"""
1466 return _grid
.Grid_SetRowLabelValue(*args
, **kwargs
)
1468 def SetColLabelValue(*args
, **kwargs
):
1469 """SetColLabelValue(self, int col, String ?)"""
1470 return _grid
.Grid_SetColLabelValue(*args
, **kwargs
)
1472 def SetGridLineColour(*args
, **kwargs
):
1473 """SetGridLineColour(self, Colour ?)"""
1474 return _grid
.Grid_SetGridLineColour(*args
, **kwargs
)
1476 def SetCellHighlightColour(*args
, **kwargs
):
1477 """SetCellHighlightColour(self, Colour ?)"""
1478 return _grid
.Grid_SetCellHighlightColour(*args
, **kwargs
)
1480 def SetCellHighlightPenWidth(*args
, **kwargs
):
1481 """SetCellHighlightPenWidth(self, int width)"""
1482 return _grid
.Grid_SetCellHighlightPenWidth(*args
, **kwargs
)
1484 def SetCellHighlightROPenWidth(*args
, **kwargs
):
1485 """SetCellHighlightROPenWidth(self, int width)"""
1486 return _grid
.Grid_SetCellHighlightROPenWidth(*args
, **kwargs
)
1488 def EnableDragRowSize(*args
, **kwargs
):
1489 """EnableDragRowSize(self, bool enable=True)"""
1490 return _grid
.Grid_EnableDragRowSize(*args
, **kwargs
)
1492 def DisableDragRowSize(*args
, **kwargs
):
1493 """DisableDragRowSize(self)"""
1494 return _grid
.Grid_DisableDragRowSize(*args
, **kwargs
)
1496 def CanDragRowSize(*args
, **kwargs
):
1497 """CanDragRowSize(self) -> bool"""
1498 return _grid
.Grid_CanDragRowSize(*args
, **kwargs
)
1500 def EnableDragColSize(*args
, **kwargs
):
1501 """EnableDragColSize(self, bool enable=True)"""
1502 return _grid
.Grid_EnableDragColSize(*args
, **kwargs
)
1504 def DisableDragColSize(*args
, **kwargs
):
1505 """DisableDragColSize(self)"""
1506 return _grid
.Grid_DisableDragColSize(*args
, **kwargs
)
1508 def CanDragColSize(*args
, **kwargs
):
1509 """CanDragColSize(self) -> bool"""
1510 return _grid
.Grid_CanDragColSize(*args
, **kwargs
)
1512 def EnableDragGridSize(*args
, **kwargs
):
1513 """EnableDragGridSize(self, bool enable=True)"""
1514 return _grid
.Grid_EnableDragGridSize(*args
, **kwargs
)
1516 def DisableDragGridSize(*args
, **kwargs
):
1517 """DisableDragGridSize(self)"""
1518 return _grid
.Grid_DisableDragGridSize(*args
, **kwargs
)
1520 def CanDragGridSize(*args
, **kwargs
):
1521 """CanDragGridSize(self) -> bool"""
1522 return _grid
.Grid_CanDragGridSize(*args
, **kwargs
)
1524 def EnableDragCell(*args
, **kwargs
):
1525 """EnableDragCell(self, bool enable=True)"""
1526 return _grid
.Grid_EnableDragCell(*args
, **kwargs
)
1528 def DisableDragCell(*args
, **kwargs
):
1529 """DisableDragCell(self)"""
1530 return _grid
.Grid_DisableDragCell(*args
, **kwargs
)
1532 def CanDragCell(*args
, **kwargs
):
1533 """CanDragCell(self) -> bool"""
1534 return _grid
.Grid_CanDragCell(*args
, **kwargs
)
1536 def SetAttr(*args
, **kwargs
):
1537 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1538 return _grid
.Grid_SetAttr(*args
, **kwargs
)
1540 def SetRowAttr(*args
, **kwargs
):
1541 """SetRowAttr(self, int row, GridCellAttr attr)"""
1542 return _grid
.Grid_SetRowAttr(*args
, **kwargs
)
1544 def SetColAttr(*args
, **kwargs
):
1545 """SetColAttr(self, int col, GridCellAttr attr)"""
1546 return _grid
.Grid_SetColAttr(*args
, **kwargs
)
1548 def GetOrCreateCellAttr(*args
, **kwargs
):
1549 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1550 return _grid
.Grid_GetOrCreateCellAttr(*args
, **kwargs
)
1552 def SetColFormatBool(*args
, **kwargs
):
1553 """SetColFormatBool(self, int col)"""
1554 return _grid
.Grid_SetColFormatBool(*args
, **kwargs
)
1556 def SetColFormatNumber(*args
, **kwargs
):
1557 """SetColFormatNumber(self, int col)"""
1558 return _grid
.Grid_SetColFormatNumber(*args
, **kwargs
)
1560 def SetColFormatFloat(*args
, **kwargs
):
1561 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1562 return _grid
.Grid_SetColFormatFloat(*args
, **kwargs
)
1564 def SetColFormatCustom(*args
, **kwargs
):
1565 """SetColFormatCustom(self, int col, String typeName)"""
1566 return _grid
.Grid_SetColFormatCustom(*args
, **kwargs
)
1568 def EnableGridLines(*args
, **kwargs
):
1569 """EnableGridLines(self, bool enable=True)"""
1570 return _grid
.Grid_EnableGridLines(*args
, **kwargs
)
1572 def GridLinesEnabled(*args
, **kwargs
):
1573 """GridLinesEnabled(self) -> bool"""
1574 return _grid
.Grid_GridLinesEnabled(*args
, **kwargs
)
1576 def GetDefaultRowSize(*args
, **kwargs
):
1577 """GetDefaultRowSize(self) -> int"""
1578 return _grid
.Grid_GetDefaultRowSize(*args
, **kwargs
)
1580 def GetRowSize(*args
, **kwargs
):
1581 """GetRowSize(self, int row) -> int"""
1582 return _grid
.Grid_GetRowSize(*args
, **kwargs
)
1584 def GetDefaultColSize(*args
, **kwargs
):
1585 """GetDefaultColSize(self) -> int"""
1586 return _grid
.Grid_GetDefaultColSize(*args
, **kwargs
)
1588 def GetColSize(*args
, **kwargs
):
1589 """GetColSize(self, int col) -> int"""
1590 return _grid
.Grid_GetColSize(*args
, **kwargs
)
1592 def GetDefaultCellBackgroundColour(*args
, **kwargs
):
1593 """GetDefaultCellBackgroundColour(self) -> Colour"""
1594 return _grid
.Grid_GetDefaultCellBackgroundColour(*args
, **kwargs
)
1596 def GetCellBackgroundColour(*args
, **kwargs
):
1597 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1598 return _grid
.Grid_GetCellBackgroundColour(*args
, **kwargs
)
1600 def GetDefaultCellTextColour(*args
, **kwargs
):
1601 """GetDefaultCellTextColour(self) -> Colour"""
1602 return _grid
.Grid_GetDefaultCellTextColour(*args
, **kwargs
)
1604 def GetCellTextColour(*args
, **kwargs
):
1605 """GetCellTextColour(self, int row, int col) -> Colour"""
1606 return _grid
.Grid_GetCellTextColour(*args
, **kwargs
)
1608 def GetDefaultCellFont(*args
, **kwargs
):
1609 """GetDefaultCellFont(self) -> Font"""
1610 return _grid
.Grid_GetDefaultCellFont(*args
, **kwargs
)
1612 def GetCellFont(*args
, **kwargs
):
1613 """GetCellFont(self, int row, int col) -> Font"""
1614 return _grid
.Grid_GetCellFont(*args
, **kwargs
)
1616 def GetDefaultCellAlignment(*args
, **kwargs
):
1617 """GetDefaultCellAlignment() -> (horiz, vert)"""
1618 return _grid
.Grid_GetDefaultCellAlignment(*args
, **kwargs
)
1620 def GetCellAlignment(*args
, **kwargs
):
1621 """GetCellAlignment() -> (horiz, vert)"""
1622 return _grid
.Grid_GetCellAlignment(*args
, **kwargs
)
1624 def GetDefaultCellOverflow(*args
, **kwargs
):
1625 """GetDefaultCellOverflow(self) -> bool"""
1626 return _grid
.Grid_GetDefaultCellOverflow(*args
, **kwargs
)
1628 def GetCellOverflow(*args
, **kwargs
):
1629 """GetCellOverflow(self, int row, int col) -> bool"""
1630 return _grid
.Grid_GetCellOverflow(*args
, **kwargs
)
1632 def GetCellSize(*args
, **kwargs
):
1633 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1634 return _grid
.Grid_GetCellSize(*args
, **kwargs
)
1636 def SetDefaultRowSize(*args
, **kwargs
):
1637 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1638 return _grid
.Grid_SetDefaultRowSize(*args
, **kwargs
)
1640 def SetRowSize(*args
, **kwargs
):
1641 """SetRowSize(self, int row, int height)"""
1642 return _grid
.Grid_SetRowSize(*args
, **kwargs
)
1644 def SetDefaultColSize(*args
, **kwargs
):
1645 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1646 return _grid
.Grid_SetDefaultColSize(*args
, **kwargs
)
1648 def SetColSize(*args
, **kwargs
):
1649 """SetColSize(self, int col, int width)"""
1650 return _grid
.Grid_SetColSize(*args
, **kwargs
)
1652 def AutoSizeColumn(*args
, **kwargs
):
1653 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1654 return _grid
.Grid_AutoSizeColumn(*args
, **kwargs
)
1656 def AutoSizeRow(*args
, **kwargs
):
1657 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1658 return _grid
.Grid_AutoSizeRow(*args
, **kwargs
)
1660 def AutoSizeColumns(*args
, **kwargs
):
1661 """AutoSizeColumns(self, bool setAsMin=True)"""
1662 return _grid
.Grid_AutoSizeColumns(*args
, **kwargs
)
1664 def AutoSizeRows(*args
, **kwargs
):
1665 """AutoSizeRows(self, bool setAsMin=True)"""
1666 return _grid
.Grid_AutoSizeRows(*args
, **kwargs
)
1668 def AutoSize(*args
, **kwargs
):
1669 """AutoSize(self)"""
1670 return _grid
.Grid_AutoSize(*args
, **kwargs
)
1672 def AutoSizeRowLabelSize(*args
, **kwargs
):
1673 """AutoSizeRowLabelSize(self, int row)"""
1674 return _grid
.Grid_AutoSizeRowLabelSize(*args
, **kwargs
)
1676 def AutoSizeColLabelSize(*args
, **kwargs
):
1677 """AutoSizeColLabelSize(self, int col)"""
1678 return _grid
.Grid_AutoSizeColLabelSize(*args
, **kwargs
)
1680 def SetColMinimalWidth(*args
, **kwargs
):
1681 """SetColMinimalWidth(self, int col, int width)"""
1682 return _grid
.Grid_SetColMinimalWidth(*args
, **kwargs
)
1684 def SetRowMinimalHeight(*args
, **kwargs
):
1685 """SetRowMinimalHeight(self, int row, int width)"""
1686 return _grid
.Grid_SetRowMinimalHeight(*args
, **kwargs
)
1688 def SetColMinimalAcceptableWidth(*args
, **kwargs
):
1689 """SetColMinimalAcceptableWidth(self, int width)"""
1690 return _grid
.Grid_SetColMinimalAcceptableWidth(*args
, **kwargs
)
1692 def SetRowMinimalAcceptableHeight(*args
, **kwargs
):
1693 """SetRowMinimalAcceptableHeight(self, int width)"""
1694 return _grid
.Grid_SetRowMinimalAcceptableHeight(*args
, **kwargs
)
1696 def GetColMinimalAcceptableWidth(*args
, **kwargs
):
1697 """GetColMinimalAcceptableWidth(self) -> int"""
1698 return _grid
.Grid_GetColMinimalAcceptableWidth(*args
, **kwargs
)
1700 def GetRowMinimalAcceptableHeight(*args
, **kwargs
):
1701 """GetRowMinimalAcceptableHeight(self) -> int"""
1702 return _grid
.Grid_GetRowMinimalAcceptableHeight(*args
, **kwargs
)
1704 def SetDefaultCellBackgroundColour(*args
, **kwargs
):
1705 """SetDefaultCellBackgroundColour(self, Colour ?)"""
1706 return _grid
.Grid_SetDefaultCellBackgroundColour(*args
, **kwargs
)
1708 def SetCellBackgroundColour(*args
, **kwargs
):
1709 """SetCellBackgroundColour(self, int row, int col, Colour ?)"""
1710 return _grid
.Grid_SetCellBackgroundColour(*args
, **kwargs
)
1712 def SetDefaultCellTextColour(*args
, **kwargs
):
1713 """SetDefaultCellTextColour(self, Colour ?)"""
1714 return _grid
.Grid_SetDefaultCellTextColour(*args
, **kwargs
)
1716 def SetCellTextColour(*args
, **kwargs
):
1717 """SetCellTextColour(self, int row, int col, Colour ?)"""
1718 return _grid
.Grid_SetCellTextColour(*args
, **kwargs
)
1720 def SetDefaultCellFont(*args
, **kwargs
):
1721 """SetDefaultCellFont(self, Font ?)"""
1722 return _grid
.Grid_SetDefaultCellFont(*args
, **kwargs
)
1724 def SetCellFont(*args
, **kwargs
):
1725 """SetCellFont(self, int row, int col, Font ?)"""
1726 return _grid
.Grid_SetCellFont(*args
, **kwargs
)
1728 def SetDefaultCellAlignment(*args
, **kwargs
):
1729 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1730 return _grid
.Grid_SetDefaultCellAlignment(*args
, **kwargs
)
1732 def SetCellAlignment(*args
, **kwargs
):
1733 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1734 return _grid
.Grid_SetCellAlignment(*args
, **kwargs
)
1736 def SetDefaultCellOverflow(*args
, **kwargs
):
1737 """SetDefaultCellOverflow(self, bool allow)"""
1738 return _grid
.Grid_SetDefaultCellOverflow(*args
, **kwargs
)
1740 def SetCellOverflow(*args
, **kwargs
):
1741 """SetCellOverflow(self, int row, int col, bool allow)"""
1742 return _grid
.Grid_SetCellOverflow(*args
, **kwargs
)
1744 def SetCellSize(*args
, **kwargs
):
1745 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1746 return _grid
.Grid_SetCellSize(*args
, **kwargs
)
1748 def SetDefaultRenderer(*args
, **kwargs
):
1749 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1750 return _grid
.Grid_SetDefaultRenderer(*args
, **kwargs
)
1752 def SetCellRenderer(*args
, **kwargs
):
1753 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1754 return _grid
.Grid_SetCellRenderer(*args
, **kwargs
)
1756 def GetDefaultRenderer(*args
, **kwargs
):
1757 """GetDefaultRenderer(self) -> GridCellRenderer"""
1758 return _grid
.Grid_GetDefaultRenderer(*args
, **kwargs
)
1760 def GetCellRenderer(*args
, **kwargs
):
1761 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1762 return _grid
.Grid_GetCellRenderer(*args
, **kwargs
)
1764 def SetDefaultEditor(*args
, **kwargs
):
1765 """SetDefaultEditor(self, GridCellEditor editor)"""
1766 return _grid
.Grid_SetDefaultEditor(*args
, **kwargs
)
1768 def SetCellEditor(*args
, **kwargs
):
1769 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1770 return _grid
.Grid_SetCellEditor(*args
, **kwargs
)
1772 def GetDefaultEditor(*args
, **kwargs
):
1773 """GetDefaultEditor(self) -> GridCellEditor"""
1774 return _grid
.Grid_GetDefaultEditor(*args
, **kwargs
)
1776 def GetCellEditor(*args
, **kwargs
):
1777 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1778 return _grid
.Grid_GetCellEditor(*args
, **kwargs
)
1780 def GetCellValue(*args
, **kwargs
):
1781 """GetCellValue(self, int row, int col) -> String"""
1782 return _grid
.Grid_GetCellValue(*args
, **kwargs
)
1784 def SetCellValue(*args
, **kwargs
):
1785 """SetCellValue(self, int row, int col, String s)"""
1786 return _grid
.Grid_SetCellValue(*args
, **kwargs
)
1788 def IsReadOnly(*args
, **kwargs
):
1789 """IsReadOnly(self, int row, int col) -> bool"""
1790 return _grid
.Grid_IsReadOnly(*args
, **kwargs
)
1792 def SetReadOnly(*args
, **kwargs
):
1793 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1794 return _grid
.Grid_SetReadOnly(*args
, **kwargs
)
1796 def SelectRow(*args
, **kwargs
):
1797 """SelectRow(self, int row, bool addToSelected=False)"""
1798 return _grid
.Grid_SelectRow(*args
, **kwargs
)
1800 def SelectCol(*args
, **kwargs
):
1801 """SelectCol(self, int col, bool addToSelected=False)"""
1802 return _grid
.Grid_SelectCol(*args
, **kwargs
)
1804 def SelectBlock(*args
, **kwargs
):
1806 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1807 bool addToSelected=False)
1809 return _grid
.Grid_SelectBlock(*args
, **kwargs
)
1811 def SelectAll(*args
, **kwargs
):
1812 """SelectAll(self)"""
1813 return _grid
.Grid_SelectAll(*args
, **kwargs
)
1815 def IsSelection(*args
, **kwargs
):
1816 """IsSelection(self) -> bool"""
1817 return _grid
.Grid_IsSelection(*args
, **kwargs
)
1819 def ClearSelection(*args
, **kwargs
):
1820 """ClearSelection(self)"""
1821 return _grid
.Grid_ClearSelection(*args
, **kwargs
)
1823 def IsInSelection(*args
, **kwargs
):
1824 """IsInSelection(self, int row, int col) -> bool"""
1825 return _grid
.Grid_IsInSelection(*args
, **kwargs
)
1827 def GetSelectedCells(*args
, **kwargs
):
1828 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1829 return _grid
.Grid_GetSelectedCells(*args
, **kwargs
)
1831 def GetSelectionBlockTopLeft(*args
, **kwargs
):
1832 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1833 return _grid
.Grid_GetSelectionBlockTopLeft(*args
, **kwargs
)
1835 def GetSelectionBlockBottomRight(*args
, **kwargs
):
1836 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1837 return _grid
.Grid_GetSelectionBlockBottomRight(*args
, **kwargs
)
1839 def GetSelectedRows(*args
, **kwargs
):
1840 """GetSelectedRows(self) -> wxArrayInt"""
1841 return _grid
.Grid_GetSelectedRows(*args
, **kwargs
)
1843 def GetSelectedCols(*args
, **kwargs
):
1844 """GetSelectedCols(self) -> wxArrayInt"""
1845 return _grid
.Grid_GetSelectedCols(*args
, **kwargs
)
1847 def DeselectRow(*args
, **kwargs
):
1848 """DeselectRow(self, int row)"""
1849 return _grid
.Grid_DeselectRow(*args
, **kwargs
)
1851 def DeselectCol(*args
, **kwargs
):
1852 """DeselectCol(self, int col)"""
1853 return _grid
.Grid_DeselectCol(*args
, **kwargs
)
1855 def DeselectCell(*args
, **kwargs
):
1856 """DeselectCell(self, int row, int col)"""
1857 return _grid
.Grid_DeselectCell(*args
, **kwargs
)
1859 def BlockToDeviceRect(*args
, **kwargs
):
1860 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1861 return _grid
.Grid_BlockToDeviceRect(*args
, **kwargs
)
1863 def GetSelectionBackground(*args
, **kwargs
):
1864 """GetSelectionBackground(self) -> Colour"""
1865 return _grid
.Grid_GetSelectionBackground(*args
, **kwargs
)
1867 def GetSelectionForeground(*args
, **kwargs
):
1868 """GetSelectionForeground(self) -> Colour"""
1869 return _grid
.Grid_GetSelectionForeground(*args
, **kwargs
)
1871 def SetSelectionBackground(*args
, **kwargs
):
1872 """SetSelectionBackground(self, Colour c)"""
1873 return _grid
.Grid_SetSelectionBackground(*args
, **kwargs
)
1875 def SetSelectionForeground(*args
, **kwargs
):
1876 """SetSelectionForeground(self, Colour c)"""
1877 return _grid
.Grid_SetSelectionForeground(*args
, **kwargs
)
1879 def RegisterDataType(*args
, **kwargs
):
1880 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1881 return _grid
.Grid_RegisterDataType(*args
, **kwargs
)
1883 def GetDefaultEditorForCell(*args
, **kwargs
):
1884 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1885 return _grid
.Grid_GetDefaultEditorForCell(*args
, **kwargs
)
1887 def GetDefaultRendererForCell(*args
, **kwargs
):
1888 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1889 return _grid
.Grid_GetDefaultRendererForCell(*args
, **kwargs
)
1891 def GetDefaultEditorForType(*args
, **kwargs
):
1892 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
1893 return _grid
.Grid_GetDefaultEditorForType(*args
, **kwargs
)
1895 def GetDefaultRendererForType(*args
, **kwargs
):
1896 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
1897 return _grid
.Grid_GetDefaultRendererForType(*args
, **kwargs
)
1899 def SetMargins(*args
, **kwargs
):
1900 """SetMargins(self, int extraWidth, int extraHeight)"""
1901 return _grid
.Grid_SetMargins(*args
, **kwargs
)
1903 def GetGridWindow(*args
, **kwargs
):
1904 """GetGridWindow(self) -> Window"""
1905 return _grid
.Grid_GetGridWindow(*args
, **kwargs
)
1907 def GetGridRowLabelWindow(*args
, **kwargs
):
1908 """GetGridRowLabelWindow(self) -> Window"""
1909 return _grid
.Grid_GetGridRowLabelWindow(*args
, **kwargs
)
1911 def GetGridColLabelWindow(*args
, **kwargs
):
1912 """GetGridColLabelWindow(self) -> Window"""
1913 return _grid
.Grid_GetGridColLabelWindow(*args
, **kwargs
)
1915 def GetGridCornerLabelWindow(*args
, **kwargs
):
1916 """GetGridCornerLabelWindow(self) -> Window"""
1917 return _grid
.Grid_GetGridCornerLabelWindow(*args
, **kwargs
)
1919 def SetScrollLineX(*args
, **kwargs
):
1920 """SetScrollLineX(self, int x)"""
1921 return _grid
.Grid_SetScrollLineX(*args
, **kwargs
)
1923 def SetScrollLineY(*args
, **kwargs
):
1924 """SetScrollLineY(self, int y)"""
1925 return _grid
.Grid_SetScrollLineY(*args
, **kwargs
)
1927 def GetScrollLineX(*args
, **kwargs
):
1928 """GetScrollLineX(self) -> int"""
1929 return _grid
.Grid_GetScrollLineX(*args
, **kwargs
)
1931 def GetScrollLineY(*args
, **kwargs
):
1932 """GetScrollLineY(self) -> int"""
1933 return _grid
.Grid_GetScrollLineY(*args
, **kwargs
)
1935 def GetScrollX(*args
, **kwargs
):
1936 """GetScrollX(self, int x) -> int"""
1937 return _grid
.Grid_GetScrollX(*args
, **kwargs
)
1939 def GetScrollY(*args
, **kwargs
):
1940 """GetScrollY(self, int y) -> int"""
1941 return _grid
.Grid_GetScrollY(*args
, **kwargs
)
1943 def GetClassDefaultAttributes(*args
, **kwargs
):
1945 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1947 Get the default attributes for this class. This is useful if you want
1948 to use the same font or colour in your own control as in a standard
1949 control -- which is a much better idea than hard coding specific
1950 colours or fonts which might look completely out of place on the
1951 user's system, especially if it uses themes.
1953 The variant parameter is only relevant under Mac currently and is
1954 ignore under other platforms. Under Mac, it will change the size of
1955 the returned font. See `wx.Window.SetWindowVariant` for more about
1958 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
1960 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1961 Grid_swigregister
= _grid
.Grid_swigregister
1962 Grid_swigregister(Grid
)
1964 def PreGrid(*args
, **kwargs
):
1965 """PreGrid() -> Grid"""
1966 val
= _grid
.new_PreGrid(*args
, **kwargs
)
1969 def Grid_GetClassDefaultAttributes(*args
, **kwargs
):
1971 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1973 Get the default attributes for this class. This is useful if you want
1974 to use the same font or colour in your own control as in a standard
1975 control -- which is a much better idea than hard coding specific
1976 colours or fonts which might look completely out of place on the
1977 user's system, especially if it uses themes.
1979 The variant parameter is only relevant under Mac currently and is
1980 ignore under other platforms. Under Mac, it will change the size of
1981 the returned font. See `wx.Window.SetWindowVariant` for more about
1984 return _grid
.Grid_GetClassDefaultAttributes(*args
, **kwargs
)
1986 class GridEvent(_core
.NotifyEvent
):
1987 """Proxy of C++ GridEvent class"""
1988 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1989 __repr__
= _swig_repr
1990 def __init__(self
, *args
, **kwargs
):
1992 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
1993 int x=-1, int y=-1, bool sel=True, bool control=False,
1994 bool shift=False, bool alt=False,
1995 bool meta=False) -> GridEvent
1997 _grid
.GridEvent_swiginit(self
,_grid
.new_GridEvent(*args
, **kwargs
))
1998 def GetRow(*args
, **kwargs
):
1999 """GetRow(self) -> int"""
2000 return _grid
.GridEvent_GetRow(*args
, **kwargs
)
2002 def GetCol(*args
, **kwargs
):
2003 """GetCol(self) -> int"""
2004 return _grid
.GridEvent_GetCol(*args
, **kwargs
)
2006 def GetPosition(*args
, **kwargs
):
2007 """GetPosition(self) -> Point"""
2008 return _grid
.GridEvent_GetPosition(*args
, **kwargs
)
2010 def Selecting(*args
, **kwargs
):
2011 """Selecting(self) -> bool"""
2012 return _grid
.GridEvent_Selecting(*args
, **kwargs
)
2014 def ControlDown(*args
, **kwargs
):
2015 """ControlDown(self) -> bool"""
2016 return _grid
.GridEvent_ControlDown(*args
, **kwargs
)
2018 def MetaDown(*args
, **kwargs
):
2019 """MetaDown(self) -> bool"""
2020 return _grid
.GridEvent_MetaDown(*args
, **kwargs
)
2022 def ShiftDown(*args
, **kwargs
):
2023 """ShiftDown(self) -> bool"""
2024 return _grid
.GridEvent_ShiftDown(*args
, **kwargs
)
2026 def AltDown(*args
, **kwargs
):
2027 """AltDown(self) -> bool"""
2028 return _grid
.GridEvent_AltDown(*args
, **kwargs
)
2030 GridEvent_swigregister
= _grid
.GridEvent_swigregister
2031 GridEvent_swigregister(GridEvent
)
2033 class GridSizeEvent(_core
.NotifyEvent
):
2034 """Proxy of C++ GridSizeEvent class"""
2035 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2036 __repr__
= _swig_repr
2037 def __init__(self
, *args
, **kwargs
):
2039 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2040 int x=-1, int y=-1, bool control=False, bool shift=False,
2041 bool alt=False, bool meta=False) -> GridSizeEvent
2043 _grid
.GridSizeEvent_swiginit(self
,_grid
.new_GridSizeEvent(*args
, **kwargs
))
2044 def GetRowOrCol(*args
, **kwargs
):
2045 """GetRowOrCol(self) -> int"""
2046 return _grid
.GridSizeEvent_GetRowOrCol(*args
, **kwargs
)
2048 def GetPosition(*args
, **kwargs
):
2049 """GetPosition(self) -> Point"""
2050 return _grid
.GridSizeEvent_GetPosition(*args
, **kwargs
)
2052 def ControlDown(*args
, **kwargs
):
2053 """ControlDown(self) -> bool"""
2054 return _grid
.GridSizeEvent_ControlDown(*args
, **kwargs
)
2056 def MetaDown(*args
, **kwargs
):
2057 """MetaDown(self) -> bool"""
2058 return _grid
.GridSizeEvent_MetaDown(*args
, **kwargs
)
2060 def ShiftDown(*args
, **kwargs
):
2061 """ShiftDown(self) -> bool"""
2062 return _grid
.GridSizeEvent_ShiftDown(*args
, **kwargs
)
2064 def AltDown(*args
, **kwargs
):
2065 """AltDown(self) -> bool"""
2066 return _grid
.GridSizeEvent_AltDown(*args
, **kwargs
)
2068 GridSizeEvent_swigregister
= _grid
.GridSizeEvent_swigregister
2069 GridSizeEvent_swigregister(GridSizeEvent
)
2071 class GridRangeSelectEvent(_core
.NotifyEvent
):
2072 """Proxy of C++ GridRangeSelectEvent class"""
2073 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2074 __repr__
= _swig_repr
2075 def __init__(self
, *args
, **kwargs
):
2077 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2078 GridCellCoords bottomRight, bool sel=True,
2079 bool control=False, bool shift=False,
2080 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2082 _grid
.GridRangeSelectEvent_swiginit(self
,_grid
.new_GridRangeSelectEvent(*args
, **kwargs
))
2083 def GetTopLeftCoords(*args
, **kwargs
):
2084 """GetTopLeftCoords(self) -> GridCellCoords"""
2085 return _grid
.GridRangeSelectEvent_GetTopLeftCoords(*args
, **kwargs
)
2087 def GetBottomRightCoords(*args
, **kwargs
):
2088 """GetBottomRightCoords(self) -> GridCellCoords"""
2089 return _grid
.GridRangeSelectEvent_GetBottomRightCoords(*args
, **kwargs
)
2091 def GetTopRow(*args
, **kwargs
):
2092 """GetTopRow(self) -> int"""
2093 return _grid
.GridRangeSelectEvent_GetTopRow(*args
, **kwargs
)
2095 def GetBottomRow(*args
, **kwargs
):
2096 """GetBottomRow(self) -> int"""
2097 return _grid
.GridRangeSelectEvent_GetBottomRow(*args
, **kwargs
)
2099 def GetLeftCol(*args
, **kwargs
):
2100 """GetLeftCol(self) -> int"""
2101 return _grid
.GridRangeSelectEvent_GetLeftCol(*args
, **kwargs
)
2103 def GetRightCol(*args
, **kwargs
):
2104 """GetRightCol(self) -> int"""
2105 return _grid
.GridRangeSelectEvent_GetRightCol(*args
, **kwargs
)
2107 def Selecting(*args
, **kwargs
):
2108 """Selecting(self) -> bool"""
2109 return _grid
.GridRangeSelectEvent_Selecting(*args
, **kwargs
)
2111 def ControlDown(*args
, **kwargs
):
2112 """ControlDown(self) -> bool"""
2113 return _grid
.GridRangeSelectEvent_ControlDown(*args
, **kwargs
)
2115 def MetaDown(*args
, **kwargs
):
2116 """MetaDown(self) -> bool"""
2117 return _grid
.GridRangeSelectEvent_MetaDown(*args
, **kwargs
)
2119 def ShiftDown(*args
, **kwargs
):
2120 """ShiftDown(self) -> bool"""
2121 return _grid
.GridRangeSelectEvent_ShiftDown(*args
, **kwargs
)
2123 def AltDown(*args
, **kwargs
):
2124 """AltDown(self) -> bool"""
2125 return _grid
.GridRangeSelectEvent_AltDown(*args
, **kwargs
)
2127 GridRangeSelectEvent_swigregister
= _grid
.GridRangeSelectEvent_swigregister
2128 GridRangeSelectEvent_swigregister(GridRangeSelectEvent
)
2130 class GridEditorCreatedEvent(_core
.CommandEvent
):
2131 """Proxy of C++ GridEditorCreatedEvent class"""
2132 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2133 __repr__
= _swig_repr
2134 def __init__(self
, *args
, **kwargs
):
2136 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2137 Control ctrl) -> GridEditorCreatedEvent
2139 _grid
.GridEditorCreatedEvent_swiginit(self
,_grid
.new_GridEditorCreatedEvent(*args
, **kwargs
))
2140 def GetRow(*args
, **kwargs
):
2141 """GetRow(self) -> int"""
2142 return _grid
.GridEditorCreatedEvent_GetRow(*args
, **kwargs
)
2144 def GetCol(*args
, **kwargs
):
2145 """GetCol(self) -> int"""
2146 return _grid
.GridEditorCreatedEvent_GetCol(*args
, **kwargs
)
2148 def GetControl(*args
, **kwargs
):
2149 """GetControl(self) -> Control"""
2150 return _grid
.GridEditorCreatedEvent_GetControl(*args
, **kwargs
)
2152 def SetRow(*args
, **kwargs
):
2153 """SetRow(self, int row)"""
2154 return _grid
.GridEditorCreatedEvent_SetRow(*args
, **kwargs
)
2156 def SetCol(*args
, **kwargs
):
2157 """SetCol(self, int col)"""
2158 return _grid
.GridEditorCreatedEvent_SetCol(*args
, **kwargs
)
2160 def SetControl(*args
, **kwargs
):
2161 """SetControl(self, Control ctrl)"""
2162 return _grid
.GridEditorCreatedEvent_SetControl(*args
, **kwargs
)
2164 GridEditorCreatedEvent_swigregister
= _grid
.GridEditorCreatedEvent_swigregister
2165 GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent
)
2167 wxEVT_GRID_CELL_LEFT_CLICK
= _grid
.wxEVT_GRID_CELL_LEFT_CLICK
2168 wxEVT_GRID_CELL_RIGHT_CLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_CLICK
2169 wxEVT_GRID_CELL_LEFT_DCLICK
= _grid
.wxEVT_GRID_CELL_LEFT_DCLICK
2170 wxEVT_GRID_CELL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_CELL_RIGHT_DCLICK
2171 wxEVT_GRID_LABEL_LEFT_CLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_CLICK
2172 wxEVT_GRID_LABEL_RIGHT_CLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_CLICK
2173 wxEVT_GRID_LABEL_LEFT_DCLICK
= _grid
.wxEVT_GRID_LABEL_LEFT_DCLICK
2174 wxEVT_GRID_LABEL_RIGHT_DCLICK
= _grid
.wxEVT_GRID_LABEL_RIGHT_DCLICK
2175 wxEVT_GRID_ROW_SIZE
= _grid
.wxEVT_GRID_ROW_SIZE
2176 wxEVT_GRID_COL_SIZE
= _grid
.wxEVT_GRID_COL_SIZE
2177 wxEVT_GRID_RANGE_SELECT
= _grid
.wxEVT_GRID_RANGE_SELECT
2178 wxEVT_GRID_CELL_CHANGE
= _grid
.wxEVT_GRID_CELL_CHANGE
2179 wxEVT_GRID_SELECT_CELL
= _grid
.wxEVT_GRID_SELECT_CELL
2180 wxEVT_GRID_EDITOR_SHOWN
= _grid
.wxEVT_GRID_EDITOR_SHOWN
2181 wxEVT_GRID_EDITOR_HIDDEN
= _grid
.wxEVT_GRID_EDITOR_HIDDEN
2182 wxEVT_GRID_EDITOR_CREATED
= _grid
.wxEVT_GRID_EDITOR_CREATED
2183 wxEVT_GRID_CELL_BEGIN_DRAG
= _grid
.wxEVT_GRID_CELL_BEGIN_DRAG
2184 EVT_GRID_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
)
2185 EVT_GRID_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
)
2186 EVT_GRID_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
)
2187 EVT_GRID_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
)
2188 EVT_GRID_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
)
2189 EVT_GRID_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
)
2190 EVT_GRID_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
)
2191 EVT_GRID_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
)
2192 EVT_GRID_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
)
2193 EVT_GRID_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
)
2194 EVT_GRID_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
)
2195 EVT_GRID_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
)
2196 EVT_GRID_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
)
2197 EVT_GRID_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
)
2198 EVT_GRID_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
)
2199 EVT_GRID_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
)
2200 EVT_GRID_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
)
2203 # The same as above but with the ability to specify an identifier
2204 EVT_GRID_CMD_CELL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK
, 1 )
2205 EVT_GRID_CMD_CELL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK
, 1 )
2206 EVT_GRID_CMD_CELL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK
, 1 )
2207 EVT_GRID_CMD_CELL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK
, 1 )
2208 EVT_GRID_CMD_LABEL_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK
, 1 )
2209 EVT_GRID_CMD_LABEL_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK
, 1 )
2210 EVT_GRID_CMD_LABEL_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK
, 1 )
2211 EVT_GRID_CMD_LABEL_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK
, 1 )
2212 EVT_GRID_CMD_ROW_SIZE
= wx
.PyEventBinder( wxEVT_GRID_ROW_SIZE
, 1 )
2213 EVT_GRID_CMD_COL_SIZE
= wx
.PyEventBinder( wxEVT_GRID_COL_SIZE
, 1 )
2214 EVT_GRID_CMD_RANGE_SELECT
= wx
.PyEventBinder( wxEVT_GRID_RANGE_SELECT
, 1 )
2215 EVT_GRID_CMD_CELL_CHANGE
= wx
.PyEventBinder( wxEVT_GRID_CELL_CHANGE
, 1 )
2216 EVT_GRID_CMD_SELECT_CELL
= wx
.PyEventBinder( wxEVT_GRID_SELECT_CELL
, 1 )
2217 EVT_GRID_CMD_EDITOR_SHOWN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN
, 1 )
2218 EVT_GRID_CMD_EDITOR_HIDDEN
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN
, 1 )
2219 EVT_GRID_CMD_EDITOR_CREATED
= wx
.PyEventBinder( wxEVT_GRID_EDITOR_CREATED
, 1 )
2220 EVT_GRID_CMD_CELL_BEGIN_DRAG
= wx
.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG
, 1 )