]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/grid.py
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / grid.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 """
5 Classes for implementing a spreadsheet-like control.
6 """
7
8 import _grid
9 import new
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)
13 if (name == "this"):
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
16 return
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
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24 def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
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
32
33 def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
38 import types
39 try:
40 _object = types.ObjectType
41 _newclass = 1
42 except AttributeError:
43 class _object : pass
44 _newclass = 0
45 del types
46
47
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"):
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
58 import _windows
59 import _core
60 wx = _core
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"
85 __repr__ = _swig_repr
86 def _setOORInfo(*args, **kwargs):
87 """_setOORInfo(self, PyObject _self)"""
88 return _grid.GridCellWorker__setOORInfo(*args, **kwargs)
89
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)
95
96 def IncRef(*args, **kwargs):
97 """IncRef(self)"""
98 return _grid.GridCellWorker_IncRef(*args, **kwargs)
99
100 def DecRef(*args, **kwargs):
101 """DecRef(self)"""
102 return _grid.GridCellWorker_DecRef(*args, **kwargs)
103
104 GridCellWorker_swigregister = _grid.GridCellWorker_swigregister
105 GridCellWorker_swigregister(GridCellWorker)
106 cvar = _grid.cvar
107 GridNoCellCoords = cvar.GridNoCellCoords
108 GridNoCellRect = cvar.GridNoCellRect
109
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)
117
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)
126
127 def _setCallbackInfo(*args, **kwargs):
128 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
129 return _grid.PyGridCellRenderer__setCallbackInfo(*args, **kwargs)
130
131 def SetParameters(*args, **kwargs):
132 """SetParameters(self, String params)"""
133 return _grid.PyGridCellRenderer_SetParameters(*args, **kwargs)
134
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.")
139
140 PyGridCellRenderer_swigregister = _grid.PyGridCellRenderer_swigregister
141 PyGridCellRenderer_swigregister(PyGridCellRenderer)
142
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)
151
152 GridCellStringRenderer_swigregister = _grid.GridCellStringRenderer_swigregister
153 GridCellStringRenderer_swigregister(GridCellStringRenderer)
154
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)
163
164 GridCellNumberRenderer_swigregister = _grid.GridCellNumberRenderer_swigregister
165 GridCellNumberRenderer_swigregister(GridCellNumberRenderer)
166
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)
175
176 def GetWidth(*args, **kwargs):
177 """GetWidth(self) -> int"""
178 return _grid.GridCellFloatRenderer_GetWidth(*args, **kwargs)
179
180 def SetWidth(*args, **kwargs):
181 """SetWidth(self, int width)"""
182 return _grid.GridCellFloatRenderer_SetWidth(*args, **kwargs)
183
184 def GetPrecision(*args, **kwargs):
185 """GetPrecision(self) -> int"""
186 return _grid.GridCellFloatRenderer_GetPrecision(*args, **kwargs)
187
188 def SetPrecision(*args, **kwargs):
189 """SetPrecision(self, int precision)"""
190 return _grid.GridCellFloatRenderer_SetPrecision(*args, **kwargs)
191
192 GridCellFloatRenderer_swigregister = _grid.GridCellFloatRenderer_swigregister
193 GridCellFloatRenderer_swigregister(GridCellFloatRenderer)
194
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)
203
204 GridCellBoolRenderer_swigregister = _grid.GridCellBoolRenderer_swigregister
205 GridCellBoolRenderer_swigregister(GridCellBoolRenderer)
206
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)
215
216 GridCellDateTimeRenderer_swigregister = _grid.GridCellDateTimeRenderer_swigregister
217 GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer)
218
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)
227
228 GridCellEnumRenderer_swigregister = _grid.GridCellEnumRenderer_swigregister
229 GridCellEnumRenderer_swigregister(GridCellEnumRenderer)
230
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)
239
240 GridCellAutoWrapStringRenderer_swigregister = _grid.GridCellAutoWrapStringRenderer_swigregister
241 GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer)
242
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)
251
252 def GetControl(*args, **kwargs):
253 """GetControl(self) -> Control"""
254 return _grid.GridCellEditor_GetControl(*args, **kwargs)
255
256 def SetControl(*args, **kwargs):
257 """SetControl(self, Control control)"""
258 return _grid.GridCellEditor_SetControl(*args, **kwargs)
259
260 def GetCellAttr(*args, **kwargs):
261 """GetCellAttr(self) -> GridCellAttr"""
262 return _grid.GridCellEditor_GetCellAttr(*args, **kwargs)
263
264 def SetCellAttr(*args, **kwargs):
265 """SetCellAttr(self, GridCellAttr attr)"""
266 return _grid.GridCellEditor_SetCellAttr(*args, **kwargs)
267
268 def Create(*args, **kwargs):
269 """Create(self, Window parent, int id, EvtHandler evtHandler)"""
270 return _grid.GridCellEditor_Create(*args, **kwargs)
271
272 def BeginEdit(*args, **kwargs):
273 """BeginEdit(self, int row, int col, Grid grid)"""
274 return _grid.GridCellEditor_BeginEdit(*args, **kwargs)
275
276 def EndEdit(*args, **kwargs):
277 """EndEdit(self, int row, int col, Grid grid) -> bool"""
278 return _grid.GridCellEditor_EndEdit(*args, **kwargs)
279
280 def Reset(*args, **kwargs):
281 """Reset(self)"""
282 return _grid.GridCellEditor_Reset(*args, **kwargs)
283
284 def Clone(*args, **kwargs):
285 """Clone(self) -> GridCellEditor"""
286 return _grid.GridCellEditor_Clone(*args, **kwargs)
287
288 def SetSize(*args, **kwargs):
289 """SetSize(self, Rect rect)"""
290 return _grid.GridCellEditor_SetSize(*args, **kwargs)
291
292 def Show(*args, **kwargs):
293 """Show(self, bool show, GridCellAttr attr=None)"""
294 return _grid.GridCellEditor_Show(*args, **kwargs)
295
296 def PaintBackground(*args, **kwargs):
297 """PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
298 return _grid.GridCellEditor_PaintBackground(*args, **kwargs)
299
300 def IsAcceptedKey(*args, **kwargs):
301 """IsAcceptedKey(self, KeyEvent event) -> bool"""
302 return _grid.GridCellEditor_IsAcceptedKey(*args, **kwargs)
303
304 def StartingKey(*args, **kwargs):
305 """StartingKey(self, KeyEvent event)"""
306 return _grid.GridCellEditor_StartingKey(*args, **kwargs)
307
308 def StartingClick(*args, **kwargs):
309 """StartingClick(self)"""
310 return _grid.GridCellEditor_StartingClick(*args, **kwargs)
311
312 def HandleReturn(*args, **kwargs):
313 """HandleReturn(self, KeyEvent event)"""
314 return _grid.GridCellEditor_HandleReturn(*args, **kwargs)
315
316 def Destroy(*args, **kwargs):
317 """Destroy(self)"""
318 val = _grid.GridCellEditor_Destroy(*args, **kwargs)
319 args[0].thisown = 0
320 return val
321
322 GridCellEditor_swigregister = _grid.GridCellEditor_swigregister
323 GridCellEditor_swigregister(GridCellEditor)
324
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)
333
334 def _setCallbackInfo(*args, **kwargs):
335 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
336 return _grid.PyGridCellEditor__setCallbackInfo(*args, **kwargs)
337
338 def SetParameters(*args, **kwargs):
339 """SetParameters(self, String params)"""
340 return _grid.PyGridCellEditor_SetParameters(*args, **kwargs)
341
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.")
346
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.")
351
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.")
356
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.")
361
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.")
366
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.")
371
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.")
376
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.")
381
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.")
386
387 PyGridCellEditor_swigregister = _grid.PyGridCellEditor_swigregister
388 PyGridCellEditor_swigregister(PyGridCellEditor)
389
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)
398
399 def GetValue(*args, **kwargs):
400 """GetValue(self) -> String"""
401 return _grid.GridCellTextEditor_GetValue(*args, **kwargs)
402
403 GridCellTextEditor_swigregister = _grid.GridCellTextEditor_swigregister
404 GridCellTextEditor_swigregister(GridCellTextEditor)
405
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)
414
415 GridCellNumberEditor_swigregister = _grid.GridCellNumberEditor_swigregister
416 GridCellNumberEditor_swigregister(GridCellNumberEditor)
417
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)
426
427 GridCellFloatEditor_swigregister = _grid.GridCellFloatEditor_swigregister
428 GridCellFloatEditor_swigregister(GridCellFloatEditor)
429
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)
438
439 def GetValue(*args, **kwargs):
440 """GetValue(self) -> String"""
441 return _grid.GridCellBoolEditor_GetValue(*args, **kwargs)
442
443 GridCellBoolEditor_swigregister = _grid.GridCellBoolEditor_swigregister
444 GridCellBoolEditor_swigregister(GridCellBoolEditor)
445
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)
454
455 def GetValue(*args, **kwargs):
456 """GetValue(self) -> String"""
457 return _grid.GridCellChoiceEditor_GetValue(*args, **kwargs)
458
459 GridCellChoiceEditor_swigregister = _grid.GridCellChoiceEditor_swigregister
460 GridCellChoiceEditor_swigregister(GridCellChoiceEditor)
461
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)
470
471 GridCellEnumEditor_swigregister = _grid.GridCellEnumEditor_swigregister
472 GridCellEnumEditor_swigregister(GridCellEnumEditor)
473
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)
482
483 GridCellAutoWrapStringEditor_swigregister = _grid.GridCellAutoWrapStringEditor_swigregister
484 GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor)
485
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)
499
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)
504
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)
510
511 def MergeWith(*args, **kwargs):
512 """MergeWith(self, GridCellAttr mergefrom)"""
513 return _grid.GridCellAttr_MergeWith(*args, **kwargs)
514
515 def IncRef(*args, **kwargs):
516 """IncRef(self)"""
517 return _grid.GridCellAttr_IncRef(*args, **kwargs)
518
519 def DecRef(*args, **kwargs):
520 """DecRef(self)"""
521 return _grid.GridCellAttr_DecRef(*args, **kwargs)
522
523 def SetTextColour(*args, **kwargs):
524 """SetTextColour(self, Colour colText)"""
525 return _grid.GridCellAttr_SetTextColour(*args, **kwargs)
526
527 def SetBackgroundColour(*args, **kwargs):
528 """SetBackgroundColour(self, Colour colBack)"""
529 return _grid.GridCellAttr_SetBackgroundColour(*args, **kwargs)
530
531 def SetFont(*args, **kwargs):
532 """SetFont(self, Font font)"""
533 return _grid.GridCellAttr_SetFont(*args, **kwargs)
534
535 def SetAlignment(*args, **kwargs):
536 """SetAlignment(self, int hAlign, int vAlign)"""
537 return _grid.GridCellAttr_SetAlignment(*args, **kwargs)
538
539 def SetSize(*args, **kwargs):
540 """SetSize(self, int num_rows, int num_cols)"""
541 return _grid.GridCellAttr_SetSize(*args, **kwargs)
542
543 def SetOverflow(*args, **kwargs):
544 """SetOverflow(self, bool allow=True)"""
545 return _grid.GridCellAttr_SetOverflow(*args, **kwargs)
546
547 def SetReadOnly(*args, **kwargs):
548 """SetReadOnly(self, bool isReadOnly=True)"""
549 return _grid.GridCellAttr_SetReadOnly(*args, **kwargs)
550
551 def SetRenderer(*args, **kwargs):
552 """SetRenderer(self, GridCellRenderer renderer)"""
553 return _grid.GridCellAttr_SetRenderer(*args, **kwargs)
554
555 def SetEditor(*args, **kwargs):
556 """SetEditor(self, GridCellEditor editor)"""
557 return _grid.GridCellAttr_SetEditor(*args, **kwargs)
558
559 def SetKind(*args, **kwargs):
560 """SetKind(self, int kind)"""
561 return _grid.GridCellAttr_SetKind(*args, **kwargs)
562
563 def HasTextColour(*args, **kwargs):
564 """HasTextColour(self) -> bool"""
565 return _grid.GridCellAttr_HasTextColour(*args, **kwargs)
566
567 def HasBackgroundColour(*args, **kwargs):
568 """HasBackgroundColour(self) -> bool"""
569 return _grid.GridCellAttr_HasBackgroundColour(*args, **kwargs)
570
571 def HasFont(*args, **kwargs):
572 """HasFont(self) -> bool"""
573 return _grid.GridCellAttr_HasFont(*args, **kwargs)
574
575 def HasAlignment(*args, **kwargs):
576 """HasAlignment(self) -> bool"""
577 return _grid.GridCellAttr_HasAlignment(*args, **kwargs)
578
579 def HasRenderer(*args, **kwargs):
580 """HasRenderer(self) -> bool"""
581 return _grid.GridCellAttr_HasRenderer(*args, **kwargs)
582
583 def HasEditor(*args, **kwargs):
584 """HasEditor(self) -> bool"""
585 return _grid.GridCellAttr_HasEditor(*args, **kwargs)
586
587 def HasReadWriteMode(*args, **kwargs):
588 """HasReadWriteMode(self) -> bool"""
589 return _grid.GridCellAttr_HasReadWriteMode(*args, **kwargs)
590
591 def HasOverflowMode(*args, **kwargs):
592 """HasOverflowMode(self) -> bool"""
593 return _grid.GridCellAttr_HasOverflowMode(*args, **kwargs)
594
595 def GetTextColour(*args, **kwargs):
596 """GetTextColour(self) -> Colour"""
597 return _grid.GridCellAttr_GetTextColour(*args, **kwargs)
598
599 def GetBackgroundColour(*args, **kwargs):
600 """GetBackgroundColour(self) -> Colour"""
601 return _grid.GridCellAttr_GetBackgroundColour(*args, **kwargs)
602
603 def GetFont(*args, **kwargs):
604 """GetFont(self) -> Font"""
605 return _grid.GridCellAttr_GetFont(*args, **kwargs)
606
607 def GetAlignment(*args, **kwargs):
608 """GetAlignment() -> (hAlign, vAlign)"""
609 return _grid.GridCellAttr_GetAlignment(*args, **kwargs)
610
611 def GetSize(*args, **kwargs):
612 """GetSize() -> (num_rows, num_cols)"""
613 return _grid.GridCellAttr_GetSize(*args, **kwargs)
614
615 def GetOverflow(*args, **kwargs):
616 """GetOverflow(self) -> bool"""
617 return _grid.GridCellAttr_GetOverflow(*args, **kwargs)
618
619 def GetRenderer(*args, **kwargs):
620 """GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
621 return _grid.GridCellAttr_GetRenderer(*args, **kwargs)
622
623 def GetEditor(*args, **kwargs):
624 """GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
625 return _grid.GridCellAttr_GetEditor(*args, **kwargs)
626
627 def IsReadOnly(*args, **kwargs):
628 """IsReadOnly(self) -> bool"""
629 return _grid.GridCellAttr_IsReadOnly(*args, **kwargs)
630
631 def GetKind(*args, **kwargs):
632 """GetKind(self) -> int"""
633 return _grid.GridCellAttr_GetKind(*args, **kwargs)
634
635 def SetDefAttr(*args, **kwargs):
636 """SetDefAttr(self, GridCellAttr defAttr)"""
637 return _grid.GridCellAttr_SetDefAttr(*args, **kwargs)
638
639 GridCellAttr_swigregister = _grid.GridCellAttr_swigregister
640 GridCellAttr_swigregister(GridCellAttr)
641
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)
650
651 def _setOORInfo(*args, **kwargs):
652 """_setOORInfo(self, PyObject _self)"""
653 return _grid.GridCellAttrProvider__setOORInfo(*args, **kwargs)
654
655 def GetAttr(*args, **kwargs):
656 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
657 return _grid.GridCellAttrProvider_GetAttr(*args, **kwargs)
658
659 def SetAttr(*args, **kwargs):
660 """SetAttr(self, GridCellAttr attr, int row, int col)"""
661 return _grid.GridCellAttrProvider_SetAttr(*args, **kwargs)
662
663 def SetRowAttr(*args, **kwargs):
664 """SetRowAttr(self, GridCellAttr attr, int row)"""
665 return _grid.GridCellAttrProvider_SetRowAttr(*args, **kwargs)
666
667 def SetColAttr(*args, **kwargs):
668 """SetColAttr(self, GridCellAttr attr, int col)"""
669 return _grid.GridCellAttrProvider_SetColAttr(*args, **kwargs)
670
671 def UpdateAttrRows(*args, **kwargs):
672 """UpdateAttrRows(self, size_t pos, int numRows)"""
673 return _grid.GridCellAttrProvider_UpdateAttrRows(*args, **kwargs)
674
675 def UpdateAttrCols(*args, **kwargs):
676 """UpdateAttrCols(self, size_t pos, int numCols)"""
677 return _grid.GridCellAttrProvider_UpdateAttrCols(*args, **kwargs)
678
679 GridCellAttrProvider_swigregister = _grid.GridCellAttrProvider_swigregister
680 GridCellAttrProvider_swigregister(GridCellAttrProvider)
681
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)
690
691 def _setCallbackInfo(*args, **kwargs):
692 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
693 return _grid.PyGridCellAttrProvider__setCallbackInfo(*args, **kwargs)
694
695 def GetAttr(*args, **kwargs):
696 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
697 return _grid.PyGridCellAttrProvider_GetAttr(*args, **kwargs)
698
699 def SetAttr(*args, **kwargs):
700 """SetAttr(self, GridCellAttr attr, int row, int col)"""
701 return _grid.PyGridCellAttrProvider_SetAttr(*args, **kwargs)
702
703 def SetRowAttr(*args, **kwargs):
704 """SetRowAttr(self, GridCellAttr attr, int row)"""
705 return _grid.PyGridCellAttrProvider_SetRowAttr(*args, **kwargs)
706
707 def SetColAttr(*args, **kwargs):
708 """SetColAttr(self, GridCellAttr attr, int col)"""
709 return _grid.PyGridCellAttrProvider_SetColAttr(*args, **kwargs)
710
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.")
715
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.")
720
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.")
725
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.")
730
731 PyGridCellAttrProvider_swigregister = _grid.PyGridCellAttrProvider_swigregister
732 PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider)
733
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 __swig_destroy__ = _grid.delete_GridTableBase
740 __del__ = lambda self : None;
741 def _setOORInfo(*args, **kwargs):
742 """_setOORInfo(self, PyObject _self)"""
743 return _grid.GridTableBase__setOORInfo(*args, **kwargs)
744
745 def SetAttrProvider(*args, **kwargs):
746 """SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
747 return _grid.GridTableBase_SetAttrProvider(*args, **kwargs)
748
749 def GetAttrProvider(*args, **kwargs):
750 """GetAttrProvider(self) -> GridCellAttrProvider"""
751 return _grid.GridTableBase_GetAttrProvider(*args, **kwargs)
752
753 def SetView(*args, **kwargs):
754 """SetView(self, Grid grid)"""
755 return _grid.GridTableBase_SetView(*args, **kwargs)
756
757 def GetView(*args, **kwargs):
758 """GetView(self) -> Grid"""
759 return _grid.GridTableBase_GetView(*args, **kwargs)
760
761 def GetNumberRows(*args, **kwargs):
762 """GetNumberRows(self) -> int"""
763 return _grid.GridTableBase_GetNumberRows(*args, **kwargs)
764
765 def GetNumberCols(*args, **kwargs):
766 """GetNumberCols(self) -> int"""
767 return _grid.GridTableBase_GetNumberCols(*args, **kwargs)
768
769 def IsEmptyCell(*args, **kwargs):
770 """IsEmptyCell(self, int row, int col) -> bool"""
771 return _grid.GridTableBase_IsEmptyCell(*args, **kwargs)
772
773 def GetValue(*args, **kwargs):
774 """GetValue(self, int row, int col) -> String"""
775 return _grid.GridTableBase_GetValue(*args, **kwargs)
776
777 def SetValue(*args, **kwargs):
778 """SetValue(self, int row, int col, String value)"""
779 return _grid.GridTableBase_SetValue(*args, **kwargs)
780
781 def GetTypeName(*args, **kwargs):
782 """GetTypeName(self, int row, int col) -> String"""
783 return _grid.GridTableBase_GetTypeName(*args, **kwargs)
784
785 def CanGetValueAs(*args, **kwargs):
786 """CanGetValueAs(self, int row, int col, String typeName) -> bool"""
787 return _grid.GridTableBase_CanGetValueAs(*args, **kwargs)
788
789 def CanSetValueAs(*args, **kwargs):
790 """CanSetValueAs(self, int row, int col, String typeName) -> bool"""
791 return _grid.GridTableBase_CanSetValueAs(*args, **kwargs)
792
793 def GetValueAsLong(*args, **kwargs):
794 """GetValueAsLong(self, int row, int col) -> long"""
795 return _grid.GridTableBase_GetValueAsLong(*args, **kwargs)
796
797 def GetValueAsDouble(*args, **kwargs):
798 """GetValueAsDouble(self, int row, int col) -> double"""
799 return _grid.GridTableBase_GetValueAsDouble(*args, **kwargs)
800
801 def GetValueAsBool(*args, **kwargs):
802 """GetValueAsBool(self, int row, int col) -> bool"""
803 return _grid.GridTableBase_GetValueAsBool(*args, **kwargs)
804
805 def SetValueAsLong(*args, **kwargs):
806 """SetValueAsLong(self, int row, int col, long value)"""
807 return _grid.GridTableBase_SetValueAsLong(*args, **kwargs)
808
809 def SetValueAsDouble(*args, **kwargs):
810 """SetValueAsDouble(self, int row, int col, double value)"""
811 return _grid.GridTableBase_SetValueAsDouble(*args, **kwargs)
812
813 def SetValueAsBool(*args, **kwargs):
814 """SetValueAsBool(self, int row, int col, bool value)"""
815 return _grid.GridTableBase_SetValueAsBool(*args, **kwargs)
816
817 def Clear(*args, **kwargs):
818 """Clear(self)"""
819 return _grid.GridTableBase_Clear(*args, **kwargs)
820
821 def InsertRows(*args, **kwargs):
822 """InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
823 return _grid.GridTableBase_InsertRows(*args, **kwargs)
824
825 def AppendRows(*args, **kwargs):
826 """AppendRows(self, size_t numRows=1) -> bool"""
827 return _grid.GridTableBase_AppendRows(*args, **kwargs)
828
829 def DeleteRows(*args, **kwargs):
830 """DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
831 return _grid.GridTableBase_DeleteRows(*args, **kwargs)
832
833 def InsertCols(*args, **kwargs):
834 """InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
835 return _grid.GridTableBase_InsertCols(*args, **kwargs)
836
837 def AppendCols(*args, **kwargs):
838 """AppendCols(self, size_t numCols=1) -> bool"""
839 return _grid.GridTableBase_AppendCols(*args, **kwargs)
840
841 def DeleteCols(*args, **kwargs):
842 """DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
843 return _grid.GridTableBase_DeleteCols(*args, **kwargs)
844
845 def GetRowLabelValue(*args, **kwargs):
846 """GetRowLabelValue(self, int row) -> String"""
847 return _grid.GridTableBase_GetRowLabelValue(*args, **kwargs)
848
849 def GetColLabelValue(*args, **kwargs):
850 """GetColLabelValue(self, int col) -> String"""
851 return _grid.GridTableBase_GetColLabelValue(*args, **kwargs)
852
853 def SetRowLabelValue(*args, **kwargs):
854 """SetRowLabelValue(self, int row, String value)"""
855 return _grid.GridTableBase_SetRowLabelValue(*args, **kwargs)
856
857 def SetColLabelValue(*args, **kwargs):
858 """SetColLabelValue(self, int col, String value)"""
859 return _grid.GridTableBase_SetColLabelValue(*args, **kwargs)
860
861 def CanHaveAttributes(*args, **kwargs):
862 """CanHaveAttributes(self) -> bool"""
863 return _grid.GridTableBase_CanHaveAttributes(*args, **kwargs)
864
865 def GetAttr(*args, **kwargs):
866 """GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
867 return _grid.GridTableBase_GetAttr(*args, **kwargs)
868
869 def SetAttr(*args, **kwargs):
870 """SetAttr(self, GridCellAttr attr, int row, int col)"""
871 return _grid.GridTableBase_SetAttr(*args, **kwargs)
872
873 def SetRowAttr(*args, **kwargs):
874 """SetRowAttr(self, GridCellAttr attr, int row)"""
875 return _grid.GridTableBase_SetRowAttr(*args, **kwargs)
876
877 def SetColAttr(*args, **kwargs):
878 """SetColAttr(self, GridCellAttr attr, int col)"""
879 return _grid.GridTableBase_SetColAttr(*args, **kwargs)
880
881 GridTableBase_swigregister = _grid.GridTableBase_swigregister
882 GridTableBase_swigregister(GridTableBase)
883
884 class PyGridTableBase(GridTableBase):
885 """Proxy of C++ PyGridTableBase class"""
886 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
887 __repr__ = _swig_repr
888 def __init__(self, *args, **kwargs):
889 """__init__(self) -> PyGridTableBase"""
890 _grid.PyGridTableBase_swiginit(self,_grid.new_PyGridTableBase(*args, **kwargs))
891 self._setCallbackInfo(self, PyGridTableBase);self._setOORInfo(self)
892
893 def _setCallbackInfo(*args, **kwargs):
894 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
895 return _grid.PyGridTableBase__setCallbackInfo(*args, **kwargs)
896
897 def Destroy(*args, **kwargs):
898 """
899 Destroy(self)
900
901 Deletes the C++ object this Python object is a proxy for.
902 """
903 val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
904 args[0].thisown = 0
905 return val
906
907 def base_GetTypeName(*args, **kw):
908 return PyGridTableBase.GetTypeName(*args, **kw)
909 base_GetTypeName = wx._deprecated(base_GetTypeName,
910 "Please use PyGridTableBase.GetTypeName instead.")
911
912 def base_CanGetValueAs(*args, **kw):
913 return PyGridTableBase.CanGetValueAs(*args, **kw)
914 base_CanGetValueAs = wx._deprecated(base_CanGetValueAs,
915 "Please use PyGridTableBase.CanGetValueAs instead.")
916
917 def base_CanSetValueAs(*args, **kw):
918 return PyGridTableBase.CanSetValueAs(*args, **kw)
919 base_CanSetValueAs = wx._deprecated(base_CanSetValueAs,
920 "Please use PyGridTableBase.CanSetValueAs instead.")
921
922 def base_Clear(*args, **kw):
923 return PyGridTableBase.Clear(*args, **kw)
924 base_Clear = wx._deprecated(base_Clear,
925 "Please use PyGridTableBase.Clear instead.")
926
927 def base_InsertRows(*args, **kw):
928 return PyGridTableBase.InsertRows(*args, **kw)
929 base_InsertRows = wx._deprecated(base_InsertRows,
930 "Please use PyGridTableBase.InsertRows instead.")
931
932 def base_AppendRows(*args, **kw):
933 return PyGridTableBase.AppendRows(*args, **kw)
934 base_AppendRows = wx._deprecated(base_AppendRows,
935 "Please use PyGridTableBase.AppendRows instead.")
936
937 def base_DeleteRows(*args, **kw):
938 return PyGridTableBase.DeleteRows(*args, **kw)
939 base_DeleteRows = wx._deprecated(base_DeleteRows,
940 "Please use PyGridTableBase.DeleteRows instead.")
941
942 def base_InsertCols(*args, **kw):
943 return PyGridTableBase.InsertCols(*args, **kw)
944 base_InsertCols = wx._deprecated(base_InsertCols,
945 "Please use PyGridTableBase.InsertCols instead.")
946
947 def base_AppendCols(*args, **kw):
948 return PyGridTableBase.AppendCols(*args, **kw)
949 base_AppendCols = wx._deprecated(base_AppendCols,
950 "Please use PyGridTableBase.AppendCols instead.")
951
952 def base_DeleteCols(*args, **kw):
953 return PyGridTableBase.DeleteCols(*args, **kw)
954 base_DeleteCols = wx._deprecated(base_DeleteCols,
955 "Please use PyGridTableBase.DeleteCols instead.")
956
957 def base_GetRowLabelValue(*args, **kw):
958 return PyGridTableBase.GetRowLabelValue(*args, **kw)
959 base_GetRowLabelValue = wx._deprecated(base_GetRowLabelValue,
960 "Please use PyGridTableBase.GetRowLabelValue instead.")
961
962 def base_GetColLabelValue(*args, **kw):
963 return PyGridTableBase.GetColLabelValue(*args, **kw)
964 base_GetColLabelValue = wx._deprecated(base_GetColLabelValue,
965 "Please use PyGridTableBase.GetColLabelValue instead.")
966
967 def base_SetRowLabelValue(*args, **kw):
968 return PyGridTableBase.SetRowLabelValue(*args, **kw)
969 base_SetRowLabelValue = wx._deprecated(base_SetRowLabelValue,
970 "Please use PyGridTableBase.SetRowLabelValue instead.")
971
972 def base_SetColLabelValue(*args, **kw):
973 return PyGridTableBase.SetColLabelValue(*args, **kw)
974 base_SetColLabelValue = wx._deprecated(base_SetColLabelValue,
975 "Please use PyGridTableBase.SetColLabelValue instead.")
976
977 def base_CanHaveAttributes(*args, **kw):
978 return PyGridTableBase.CanHaveAttributes(*args, **kw)
979 base_CanHaveAttributes = wx._deprecated(base_CanHaveAttributes,
980 "Please use PyGridTableBase.CanHaveAttributes instead.")
981
982 def base_GetAttr(*args, **kw):
983 return PyGridTableBase.GetAttr(*args, **kw)
984 base_GetAttr = wx._deprecated(base_GetAttr,
985 "Please use PyGridTableBase.GetAttr instead.")
986
987 def base_SetAttr(*args, **kw):
988 return PyGridTableBase.SetAttr(*args, **kw)
989 base_SetAttr = wx._deprecated(base_SetAttr,
990 "Please use PyGridTableBase.SetAttr instead.")
991
992 def base_SetRowAttr(*args, **kw):
993 return PyGridTableBase.SetRowAttr(*args, **kw)
994 base_SetRowAttr = wx._deprecated(base_SetRowAttr,
995 "Please use PyGridTableBase.SetRowAttr instead.")
996
997 def base_SetColAttr(*args, **kw):
998 return PyGridTableBase.SetColAttr(*args, **kw)
999 base_SetColAttr = wx._deprecated(base_SetColAttr,
1000 "Please use PyGridTableBase.SetColAttr instead.")
1001
1002 PyGridTableBase_swigregister = _grid.PyGridTableBase_swigregister
1003 PyGridTableBase_swigregister(PyGridTableBase)
1004
1005 class GridStringTable(GridTableBase):
1006 """Proxy of C++ GridStringTable class"""
1007 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1008 __repr__ = _swig_repr
1009 def __init__(self, *args, **kwargs):
1010 """__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1011 _grid.GridStringTable_swiginit(self,_grid.new_GridStringTable(*args, **kwargs))
1012 self._setOORInfo(self)
1013
1014 GridStringTable_swigregister = _grid.GridStringTable_swigregister
1015 GridStringTable_swigregister(GridStringTable)
1016
1017 GRIDTABLE_REQUEST_VIEW_GET_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1018 GRIDTABLE_REQUEST_VIEW_SEND_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1019 GRIDTABLE_NOTIFY_ROWS_INSERTED = _grid.GRIDTABLE_NOTIFY_ROWS_INSERTED
1020 GRIDTABLE_NOTIFY_ROWS_APPENDED = _grid.GRIDTABLE_NOTIFY_ROWS_APPENDED
1021 GRIDTABLE_NOTIFY_ROWS_DELETED = _grid.GRIDTABLE_NOTIFY_ROWS_DELETED
1022 GRIDTABLE_NOTIFY_COLS_INSERTED = _grid.GRIDTABLE_NOTIFY_COLS_INSERTED
1023 GRIDTABLE_NOTIFY_COLS_APPENDED = _grid.GRIDTABLE_NOTIFY_COLS_APPENDED
1024 GRIDTABLE_NOTIFY_COLS_DELETED = _grid.GRIDTABLE_NOTIFY_COLS_DELETED
1025 class GridTableMessage(object):
1026 """Proxy of C++ GridTableMessage class"""
1027 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1028 __repr__ = _swig_repr
1029 def __init__(self, *args, **kwargs):
1030 """__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1031 _grid.GridTableMessage_swiginit(self,_grid.new_GridTableMessage(*args, **kwargs))
1032 __swig_destroy__ = _grid.delete_GridTableMessage
1033 __del__ = lambda self : None;
1034 def SetTableObject(*args, **kwargs):
1035 """SetTableObject(self, GridTableBase table)"""
1036 return _grid.GridTableMessage_SetTableObject(*args, **kwargs)
1037
1038 def GetTableObject(*args, **kwargs):
1039 """GetTableObject(self) -> GridTableBase"""
1040 return _grid.GridTableMessage_GetTableObject(*args, **kwargs)
1041
1042 def SetId(*args, **kwargs):
1043 """SetId(self, int id)"""
1044 return _grid.GridTableMessage_SetId(*args, **kwargs)
1045
1046 def GetId(*args, **kwargs):
1047 """GetId(self) -> int"""
1048 return _grid.GridTableMessage_GetId(*args, **kwargs)
1049
1050 def SetCommandInt(*args, **kwargs):
1051 """SetCommandInt(self, int comInt1)"""
1052 return _grid.GridTableMessage_SetCommandInt(*args, **kwargs)
1053
1054 def GetCommandInt(*args, **kwargs):
1055 """GetCommandInt(self) -> int"""
1056 return _grid.GridTableMessage_GetCommandInt(*args, **kwargs)
1057
1058 def SetCommandInt2(*args, **kwargs):
1059 """SetCommandInt2(self, int comInt2)"""
1060 return _grid.GridTableMessage_SetCommandInt2(*args, **kwargs)
1061
1062 def GetCommandInt2(*args, **kwargs):
1063 """GetCommandInt2(self) -> int"""
1064 return _grid.GridTableMessage_GetCommandInt2(*args, **kwargs)
1065
1066 GridTableMessage_swigregister = _grid.GridTableMessage_swigregister
1067 GridTableMessage_swigregister(GridTableMessage)
1068
1069 class GridCellCoords(object):
1070 """Proxy of C++ GridCellCoords class"""
1071 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1072 __repr__ = _swig_repr
1073 def __init__(self, *args, **kwargs):
1074 """__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1075 _grid.GridCellCoords_swiginit(self,_grid.new_GridCellCoords(*args, **kwargs))
1076 __swig_destroy__ = _grid.delete_GridCellCoords
1077 __del__ = lambda self : None;
1078 def GetRow(*args, **kwargs):
1079 """GetRow(self) -> int"""
1080 return _grid.GridCellCoords_GetRow(*args, **kwargs)
1081
1082 def SetRow(*args, **kwargs):
1083 """SetRow(self, int n)"""
1084 return _grid.GridCellCoords_SetRow(*args, **kwargs)
1085
1086 def GetCol(*args, **kwargs):
1087 """GetCol(self) -> int"""
1088 return _grid.GridCellCoords_GetCol(*args, **kwargs)
1089
1090 def SetCol(*args, **kwargs):
1091 """SetCol(self, int n)"""
1092 return _grid.GridCellCoords_SetCol(*args, **kwargs)
1093
1094 def Set(*args, **kwargs):
1095 """Set(self, int row, int col)"""
1096 return _grid.GridCellCoords_Set(*args, **kwargs)
1097
1098 def __eq__(*args, **kwargs):
1099 """
1100 __eq__(self, PyObject other) -> bool
1101
1102 Test for equality of GridCellCoords objects.
1103 """
1104 return _grid.GridCellCoords___eq__(*args, **kwargs)
1105
1106 def __ne__(*args, **kwargs):
1107 """
1108 __ne__(self, PyObject other) -> bool
1109
1110 Test for inequality of GridCellCoords objects.
1111 """
1112 return _grid.GridCellCoords___ne__(*args, **kwargs)
1113
1114 def Get(*args, **kwargs):
1115 """Get(self) -> PyObject"""
1116 return _grid.GridCellCoords_Get(*args, **kwargs)
1117
1118 asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
1119 def __str__(self): return str(self.Get())
1120 def __repr__(self): return 'wxGridCellCoords'+str(self.Get())
1121 def __len__(self): return len(self.Get())
1122 def __getitem__(self, index): return self.asTuple()[index]
1123 def __setitem__(self, index, val):
1124 if index == 0: self.SetRow(val)
1125 elif index == 1: self.SetCol(val)
1126 else: raise IndexError
1127
1128 GridCellCoords_swigregister = _grid.GridCellCoords_swigregister
1129 GridCellCoords_swigregister(GridCellCoords)
1130
1131 class Grid(_windows.ScrolledWindow):
1132 """Proxy of C++ Grid class"""
1133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1134 __repr__ = _swig_repr
1135 def __init__(self, *args, **kwargs):
1136 """
1137 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1138 Size size=DefaultSize, long style=WANTS_CHARS,
1139 String name=PanelNameStr) -> Grid
1140 """
1141 _grid.Grid_swiginit(self,_grid.new_Grid(*args, **kwargs))
1142 self._setOORInfo(self)
1143
1144 def Create(*args, **kwargs):
1145 """
1146 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1147 Size size=DefaultSize, long style=WANTS_CHARS,
1148 String name=PanelNameStr) -> bool
1149 """
1150 return _grid.Grid_Create(*args, **kwargs)
1151
1152 wxGridSelectCells = _grid.Grid_wxGridSelectCells
1153 wxGridSelectRows = _grid.Grid_wxGridSelectRows
1154 wxGridSelectColumns = _grid.Grid_wxGridSelectColumns
1155 SelectCells = wxGridSelectCells
1156 SelectRows = wxGridSelectRows
1157 SelectColumns = wxGridSelectColumns
1158
1159 def CreateGrid(*args, **kwargs):
1160 """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1161 return _grid.Grid_CreateGrid(*args, **kwargs)
1162
1163 def SetSelectionMode(*args, **kwargs):
1164 """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1165 return _grid.Grid_SetSelectionMode(*args, **kwargs)
1166
1167 def GetSelectionMode(*args, **kwargs):
1168 """GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1169 return _grid.Grid_GetSelectionMode(*args, **kwargs)
1170
1171 def GetNumberRows(*args, **kwargs):
1172 """GetNumberRows(self) -> int"""
1173 return _grid.Grid_GetNumberRows(*args, **kwargs)
1174
1175 def GetNumberCols(*args, **kwargs):
1176 """GetNumberCols(self) -> int"""
1177 return _grid.Grid_GetNumberCols(*args, **kwargs)
1178
1179 def ProcessTableMessage(*args, **kwargs):
1180 """ProcessTableMessage(self, GridTableMessage ?) -> bool"""
1181 return _grid.Grid_ProcessTableMessage(*args, **kwargs)
1182
1183 def GetTable(*args, **kwargs):
1184 """GetTable(self) -> GridTableBase"""
1185 return _grid.Grid_GetTable(*args, **kwargs)
1186
1187 def SetTable(*args, **kwargs):
1188 """SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1189 return _grid.Grid_SetTable(*args, **kwargs)
1190
1191 def ClearGrid(*args, **kwargs):
1192 """ClearGrid(self)"""
1193 return _grid.Grid_ClearGrid(*args, **kwargs)
1194
1195 def InsertRows(*args, **kwargs):
1196 """InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1197 return _grid.Grid_InsertRows(*args, **kwargs)
1198
1199 def AppendRows(*args, **kwargs):
1200 """AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1201 return _grid.Grid_AppendRows(*args, **kwargs)
1202
1203 def DeleteRows(*args, **kwargs):
1204 """DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1205 return _grid.Grid_DeleteRows(*args, **kwargs)
1206
1207 def InsertCols(*args, **kwargs):
1208 """InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1209 return _grid.Grid_InsertCols(*args, **kwargs)
1210
1211 def AppendCols(*args, **kwargs):
1212 """AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1213 return _grid.Grid_AppendCols(*args, **kwargs)
1214
1215 def DeleteCols(*args, **kwargs):
1216 """DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1217 return _grid.Grid_DeleteCols(*args, **kwargs)
1218
1219 def DrawCellHighlight(*args, **kwargs):
1220 """DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1221 return _grid.Grid_DrawCellHighlight(*args, **kwargs)
1222
1223 def DrawTextRectangle(*args, **kwargs):
1224 """
1225 DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
1226 int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1227 """
1228 return _grid.Grid_DrawTextRectangle(*args, **kwargs)
1229
1230 def GetTextBoxSize(*args, **kwargs):
1231 """GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1232 return _grid.Grid_GetTextBoxSize(*args, **kwargs)
1233
1234 def BeginBatch(*args, **kwargs):
1235 """BeginBatch(self)"""
1236 return _grid.Grid_BeginBatch(*args, **kwargs)
1237
1238 def EndBatch(*args, **kwargs):
1239 """EndBatch(self)"""
1240 return _grid.Grid_EndBatch(*args, **kwargs)
1241
1242 def GetBatchCount(*args, **kwargs):
1243 """GetBatchCount(self) -> int"""
1244 return _grid.Grid_GetBatchCount(*args, **kwargs)
1245
1246 def ForceRefresh(*args, **kwargs):
1247 """ForceRefresh(self)"""
1248 return _grid.Grid_ForceRefresh(*args, **kwargs)
1249
1250 def IsEditable(*args, **kwargs):
1251 """IsEditable(self) -> bool"""
1252 return _grid.Grid_IsEditable(*args, **kwargs)
1253
1254 def EnableEditing(*args, **kwargs):
1255 """EnableEditing(self, bool edit)"""
1256 return _grid.Grid_EnableEditing(*args, **kwargs)
1257
1258 def EnableCellEditControl(*args, **kwargs):
1259 """EnableCellEditControl(self, bool enable=True)"""
1260 return _grid.Grid_EnableCellEditControl(*args, **kwargs)
1261
1262 def DisableCellEditControl(*args, **kwargs):
1263 """DisableCellEditControl(self)"""
1264 return _grid.Grid_DisableCellEditControl(*args, **kwargs)
1265
1266 def CanEnableCellControl(*args, **kwargs):
1267 """CanEnableCellControl(self) -> bool"""
1268 return _grid.Grid_CanEnableCellControl(*args, **kwargs)
1269
1270 def IsCellEditControlEnabled(*args, **kwargs):
1271 """IsCellEditControlEnabled(self) -> bool"""
1272 return _grid.Grid_IsCellEditControlEnabled(*args, **kwargs)
1273
1274 def IsCellEditControlShown(*args, **kwargs):
1275 """IsCellEditControlShown(self) -> bool"""
1276 return _grid.Grid_IsCellEditControlShown(*args, **kwargs)
1277
1278 def IsCurrentCellReadOnly(*args, **kwargs):
1279 """IsCurrentCellReadOnly(self) -> bool"""
1280 return _grid.Grid_IsCurrentCellReadOnly(*args, **kwargs)
1281
1282 def ShowCellEditControl(*args, **kwargs):
1283 """ShowCellEditControl(self)"""
1284 return _grid.Grid_ShowCellEditControl(*args, **kwargs)
1285
1286 def HideCellEditControl(*args, **kwargs):
1287 """HideCellEditControl(self)"""
1288 return _grid.Grid_HideCellEditControl(*args, **kwargs)
1289
1290 def SaveEditControlValue(*args, **kwargs):
1291 """SaveEditControlValue(self)"""
1292 return _grid.Grid_SaveEditControlValue(*args, **kwargs)
1293
1294 def XYToCell(*args, **kwargs):
1295 """XYToCell(self, int x, int y) -> GridCellCoords"""
1296 return _grid.Grid_XYToCell(*args, **kwargs)
1297
1298 def YToRow(*args, **kwargs):
1299 """YToRow(self, int y) -> int"""
1300 return _grid.Grid_YToRow(*args, **kwargs)
1301
1302 def XToCol(*args, **kwargs):
1303 """XToCol(self, int x) -> int"""
1304 return _grid.Grid_XToCol(*args, **kwargs)
1305
1306 def YToEdgeOfRow(*args, **kwargs):
1307 """YToEdgeOfRow(self, int y) -> int"""
1308 return _grid.Grid_YToEdgeOfRow(*args, **kwargs)
1309
1310 def XToEdgeOfCol(*args, **kwargs):
1311 """XToEdgeOfCol(self, int x) -> int"""
1312 return _grid.Grid_XToEdgeOfCol(*args, **kwargs)
1313
1314 def CellToRect(*args, **kwargs):
1315 """CellToRect(self, int row, int col) -> Rect"""
1316 return _grid.Grid_CellToRect(*args, **kwargs)
1317
1318 def GetGridCursorRow(*args, **kwargs):
1319 """GetGridCursorRow(self) -> int"""
1320 return _grid.Grid_GetGridCursorRow(*args, **kwargs)
1321
1322 def GetGridCursorCol(*args, **kwargs):
1323 """GetGridCursorCol(self) -> int"""
1324 return _grid.Grid_GetGridCursorCol(*args, **kwargs)
1325
1326 def IsVisible(*args, **kwargs):
1327 """IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1328 return _grid.Grid_IsVisible(*args, **kwargs)
1329
1330 def MakeCellVisible(*args, **kwargs):
1331 """MakeCellVisible(self, int row, int col)"""
1332 return _grid.Grid_MakeCellVisible(*args, **kwargs)
1333
1334 def SetGridCursor(*args, **kwargs):
1335 """SetGridCursor(self, int row, int col)"""
1336 return _grid.Grid_SetGridCursor(*args, **kwargs)
1337
1338 def MoveCursorUp(*args, **kwargs):
1339 """MoveCursorUp(self, bool expandSelection) -> bool"""
1340 return _grid.Grid_MoveCursorUp(*args, **kwargs)
1341
1342 def MoveCursorDown(*args, **kwargs):
1343 """MoveCursorDown(self, bool expandSelection) -> bool"""
1344 return _grid.Grid_MoveCursorDown(*args, **kwargs)
1345
1346 def MoveCursorLeft(*args, **kwargs):
1347 """MoveCursorLeft(self, bool expandSelection) -> bool"""
1348 return _grid.Grid_MoveCursorLeft(*args, **kwargs)
1349
1350 def MoveCursorRight(*args, **kwargs):
1351 """MoveCursorRight(self, bool expandSelection) -> bool"""
1352 return _grid.Grid_MoveCursorRight(*args, **kwargs)
1353
1354 def MovePageDown(*args, **kwargs):
1355 """MovePageDown(self) -> bool"""
1356 return _grid.Grid_MovePageDown(*args, **kwargs)
1357
1358 def MovePageUp(*args, **kwargs):
1359 """MovePageUp(self) -> bool"""
1360 return _grid.Grid_MovePageUp(*args, **kwargs)
1361
1362 def MoveCursorUpBlock(*args, **kwargs):
1363 """MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1364 return _grid.Grid_MoveCursorUpBlock(*args, **kwargs)
1365
1366 def MoveCursorDownBlock(*args, **kwargs):
1367 """MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1368 return _grid.Grid_MoveCursorDownBlock(*args, **kwargs)
1369
1370 def MoveCursorLeftBlock(*args, **kwargs):
1371 """MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1372 return _grid.Grid_MoveCursorLeftBlock(*args, **kwargs)
1373
1374 def MoveCursorRightBlock(*args, **kwargs):
1375 """MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1376 return _grid.Grid_MoveCursorRightBlock(*args, **kwargs)
1377
1378 def GetDefaultRowLabelSize(*args, **kwargs):
1379 """GetDefaultRowLabelSize(self) -> int"""
1380 return _grid.Grid_GetDefaultRowLabelSize(*args, **kwargs)
1381
1382 def GetRowLabelSize(*args, **kwargs):
1383 """GetRowLabelSize(self) -> int"""
1384 return _grid.Grid_GetRowLabelSize(*args, **kwargs)
1385
1386 def GetDefaultColLabelSize(*args, **kwargs):
1387 """GetDefaultColLabelSize(self) -> int"""
1388 return _grid.Grid_GetDefaultColLabelSize(*args, **kwargs)
1389
1390 def GetColLabelSize(*args, **kwargs):
1391 """GetColLabelSize(self) -> int"""
1392 return _grid.Grid_GetColLabelSize(*args, **kwargs)
1393
1394 def GetLabelBackgroundColour(*args, **kwargs):
1395 """GetLabelBackgroundColour(self) -> Colour"""
1396 return _grid.Grid_GetLabelBackgroundColour(*args, **kwargs)
1397
1398 def GetLabelTextColour(*args, **kwargs):
1399 """GetLabelTextColour(self) -> Colour"""
1400 return _grid.Grid_GetLabelTextColour(*args, **kwargs)
1401
1402 def GetLabelFont(*args, **kwargs):
1403 """GetLabelFont(self) -> Font"""
1404 return _grid.Grid_GetLabelFont(*args, **kwargs)
1405
1406 def GetRowLabelAlignment(*args, **kwargs):
1407 """GetRowLabelAlignment() -> (horiz, vert)"""
1408 return _grid.Grid_GetRowLabelAlignment(*args, **kwargs)
1409
1410 def GetColLabelAlignment(*args, **kwargs):
1411 """GetColLabelAlignment() -> (horiz, vert)"""
1412 return _grid.Grid_GetColLabelAlignment(*args, **kwargs)
1413
1414 def GetColLabelTextOrientation(*args, **kwargs):
1415 """GetColLabelTextOrientation(self) -> int"""
1416 return _grid.Grid_GetColLabelTextOrientation(*args, **kwargs)
1417
1418 def GetRowLabelValue(*args, **kwargs):
1419 """GetRowLabelValue(self, int row) -> String"""
1420 return _grid.Grid_GetRowLabelValue(*args, **kwargs)
1421
1422 def GetColLabelValue(*args, **kwargs):
1423 """GetColLabelValue(self, int col) -> String"""
1424 return _grid.Grid_GetColLabelValue(*args, **kwargs)
1425
1426 def GetGridLineColour(*args, **kwargs):
1427 """GetGridLineColour(self) -> Colour"""
1428 return _grid.Grid_GetGridLineColour(*args, **kwargs)
1429
1430 def GetCellHighlightColour(*args, **kwargs):
1431 """GetCellHighlightColour(self) -> Colour"""
1432 return _grid.Grid_GetCellHighlightColour(*args, **kwargs)
1433
1434 def GetCellHighlightPenWidth(*args, **kwargs):
1435 """GetCellHighlightPenWidth(self) -> int"""
1436 return _grid.Grid_GetCellHighlightPenWidth(*args, **kwargs)
1437
1438 def GetCellHighlightROPenWidth(*args, **kwargs):
1439 """GetCellHighlightROPenWidth(self) -> int"""
1440 return _grid.Grid_GetCellHighlightROPenWidth(*args, **kwargs)
1441
1442 def SetRowLabelSize(*args, **kwargs):
1443 """SetRowLabelSize(self, int width)"""
1444 return _grid.Grid_SetRowLabelSize(*args, **kwargs)
1445
1446 def SetColLabelSize(*args, **kwargs):
1447 """SetColLabelSize(self, int height)"""
1448 return _grid.Grid_SetColLabelSize(*args, **kwargs)
1449
1450 def SetLabelBackgroundColour(*args, **kwargs):
1451 """SetLabelBackgroundColour(self, Colour ?)"""
1452 return _grid.Grid_SetLabelBackgroundColour(*args, **kwargs)
1453
1454 def SetLabelTextColour(*args, **kwargs):
1455 """SetLabelTextColour(self, Colour ?)"""
1456 return _grid.Grid_SetLabelTextColour(*args, **kwargs)
1457
1458 def SetLabelFont(*args, **kwargs):
1459 """SetLabelFont(self, Font ?)"""
1460 return _grid.Grid_SetLabelFont(*args, **kwargs)
1461
1462 def SetRowLabelAlignment(*args, **kwargs):
1463 """SetRowLabelAlignment(self, int horiz, int vert)"""
1464 return _grid.Grid_SetRowLabelAlignment(*args, **kwargs)
1465
1466 def SetColLabelAlignment(*args, **kwargs):
1467 """SetColLabelAlignment(self, int horiz, int vert)"""
1468 return _grid.Grid_SetColLabelAlignment(*args, **kwargs)
1469
1470 def SetColLabelTextOrientation(*args, **kwargs):
1471 """SetColLabelTextOrientation(self, int textOrientation)"""
1472 return _grid.Grid_SetColLabelTextOrientation(*args, **kwargs)
1473
1474 def SetRowLabelValue(*args, **kwargs):
1475 """SetRowLabelValue(self, int row, String ?)"""
1476 return _grid.Grid_SetRowLabelValue(*args, **kwargs)
1477
1478 def SetColLabelValue(*args, **kwargs):
1479 """SetColLabelValue(self, int col, String ?)"""
1480 return _grid.Grid_SetColLabelValue(*args, **kwargs)
1481
1482 def SetGridLineColour(*args, **kwargs):
1483 """SetGridLineColour(self, Colour ?)"""
1484 return _grid.Grid_SetGridLineColour(*args, **kwargs)
1485
1486 def SetCellHighlightColour(*args, **kwargs):
1487 """SetCellHighlightColour(self, Colour ?)"""
1488 return _grid.Grid_SetCellHighlightColour(*args, **kwargs)
1489
1490 def SetCellHighlightPenWidth(*args, **kwargs):
1491 """SetCellHighlightPenWidth(self, int width)"""
1492 return _grid.Grid_SetCellHighlightPenWidth(*args, **kwargs)
1493
1494 def SetCellHighlightROPenWidth(*args, **kwargs):
1495 """SetCellHighlightROPenWidth(self, int width)"""
1496 return _grid.Grid_SetCellHighlightROPenWidth(*args, **kwargs)
1497
1498 def EnableDragRowSize(*args, **kwargs):
1499 """EnableDragRowSize(self, bool enable=True)"""
1500 return _grid.Grid_EnableDragRowSize(*args, **kwargs)
1501
1502 def DisableDragRowSize(*args, **kwargs):
1503 """DisableDragRowSize(self)"""
1504 return _grid.Grid_DisableDragRowSize(*args, **kwargs)
1505
1506 def CanDragRowSize(*args, **kwargs):
1507 """CanDragRowSize(self) -> bool"""
1508 return _grid.Grid_CanDragRowSize(*args, **kwargs)
1509
1510 def EnableDragColSize(*args, **kwargs):
1511 """EnableDragColSize(self, bool enable=True)"""
1512 return _grid.Grid_EnableDragColSize(*args, **kwargs)
1513
1514 def DisableDragColSize(*args, **kwargs):
1515 """DisableDragColSize(self)"""
1516 return _grid.Grid_DisableDragColSize(*args, **kwargs)
1517
1518 def CanDragColSize(*args, **kwargs):
1519 """CanDragColSize(self) -> bool"""
1520 return _grid.Grid_CanDragColSize(*args, **kwargs)
1521
1522 def EnableDragGridSize(*args, **kwargs):
1523 """EnableDragGridSize(self, bool enable=True)"""
1524 return _grid.Grid_EnableDragGridSize(*args, **kwargs)
1525
1526 def DisableDragGridSize(*args, **kwargs):
1527 """DisableDragGridSize(self)"""
1528 return _grid.Grid_DisableDragGridSize(*args, **kwargs)
1529
1530 def CanDragGridSize(*args, **kwargs):
1531 """CanDragGridSize(self) -> bool"""
1532 return _grid.Grid_CanDragGridSize(*args, **kwargs)
1533
1534 def EnableDragCell(*args, **kwargs):
1535 """EnableDragCell(self, bool enable=True)"""
1536 return _grid.Grid_EnableDragCell(*args, **kwargs)
1537
1538 def DisableDragCell(*args, **kwargs):
1539 """DisableDragCell(self)"""
1540 return _grid.Grid_DisableDragCell(*args, **kwargs)
1541
1542 def CanDragCell(*args, **kwargs):
1543 """CanDragCell(self) -> bool"""
1544 return _grid.Grid_CanDragCell(*args, **kwargs)
1545
1546 def SetAttr(*args, **kwargs):
1547 """SetAttr(self, int row, int col, GridCellAttr attr)"""
1548 return _grid.Grid_SetAttr(*args, **kwargs)
1549
1550 def SetRowAttr(*args, **kwargs):
1551 """SetRowAttr(self, int row, GridCellAttr attr)"""
1552 return _grid.Grid_SetRowAttr(*args, **kwargs)
1553
1554 def SetColAttr(*args, **kwargs):
1555 """SetColAttr(self, int col, GridCellAttr attr)"""
1556 return _grid.Grid_SetColAttr(*args, **kwargs)
1557
1558 def GetOrCreateCellAttr(*args, **kwargs):
1559 """GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1560 return _grid.Grid_GetOrCreateCellAttr(*args, **kwargs)
1561
1562 def SetColFormatBool(*args, **kwargs):
1563 """SetColFormatBool(self, int col)"""
1564 return _grid.Grid_SetColFormatBool(*args, **kwargs)
1565
1566 def SetColFormatNumber(*args, **kwargs):
1567 """SetColFormatNumber(self, int col)"""
1568 return _grid.Grid_SetColFormatNumber(*args, **kwargs)
1569
1570 def SetColFormatFloat(*args, **kwargs):
1571 """SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1572 return _grid.Grid_SetColFormatFloat(*args, **kwargs)
1573
1574 def SetColFormatCustom(*args, **kwargs):
1575 """SetColFormatCustom(self, int col, String typeName)"""
1576 return _grid.Grid_SetColFormatCustom(*args, **kwargs)
1577
1578 def EnableGridLines(*args, **kwargs):
1579 """EnableGridLines(self, bool enable=True)"""
1580 return _grid.Grid_EnableGridLines(*args, **kwargs)
1581
1582 def GridLinesEnabled(*args, **kwargs):
1583 """GridLinesEnabled(self) -> bool"""
1584 return _grid.Grid_GridLinesEnabled(*args, **kwargs)
1585
1586 def GetDefaultRowSize(*args, **kwargs):
1587 """GetDefaultRowSize(self) -> int"""
1588 return _grid.Grid_GetDefaultRowSize(*args, **kwargs)
1589
1590 def GetRowSize(*args, **kwargs):
1591 """GetRowSize(self, int row) -> int"""
1592 return _grid.Grid_GetRowSize(*args, **kwargs)
1593
1594 def GetDefaultColSize(*args, **kwargs):
1595 """GetDefaultColSize(self) -> int"""
1596 return _grid.Grid_GetDefaultColSize(*args, **kwargs)
1597
1598 def GetColSize(*args, **kwargs):
1599 """GetColSize(self, int col) -> int"""
1600 return _grid.Grid_GetColSize(*args, **kwargs)
1601
1602 def GetDefaultCellBackgroundColour(*args, **kwargs):
1603 """GetDefaultCellBackgroundColour(self) -> Colour"""
1604 return _grid.Grid_GetDefaultCellBackgroundColour(*args, **kwargs)
1605
1606 def GetCellBackgroundColour(*args, **kwargs):
1607 """GetCellBackgroundColour(self, int row, int col) -> Colour"""
1608 return _grid.Grid_GetCellBackgroundColour(*args, **kwargs)
1609
1610 def GetDefaultCellTextColour(*args, **kwargs):
1611 """GetDefaultCellTextColour(self) -> Colour"""
1612 return _grid.Grid_GetDefaultCellTextColour(*args, **kwargs)
1613
1614 def GetCellTextColour(*args, **kwargs):
1615 """GetCellTextColour(self, int row, int col) -> Colour"""
1616 return _grid.Grid_GetCellTextColour(*args, **kwargs)
1617
1618 def GetDefaultCellFont(*args, **kwargs):
1619 """GetDefaultCellFont(self) -> Font"""
1620 return _grid.Grid_GetDefaultCellFont(*args, **kwargs)
1621
1622 def GetCellFont(*args, **kwargs):
1623 """GetCellFont(self, int row, int col) -> Font"""
1624 return _grid.Grid_GetCellFont(*args, **kwargs)
1625
1626 def GetDefaultCellAlignment(*args, **kwargs):
1627 """GetDefaultCellAlignment() -> (horiz, vert)"""
1628 return _grid.Grid_GetDefaultCellAlignment(*args, **kwargs)
1629
1630 def GetCellAlignment(*args, **kwargs):
1631 """GetCellAlignment() -> (horiz, vert)"""
1632 return _grid.Grid_GetCellAlignment(*args, **kwargs)
1633
1634 def GetDefaultCellOverflow(*args, **kwargs):
1635 """GetDefaultCellOverflow(self) -> bool"""
1636 return _grid.Grid_GetDefaultCellOverflow(*args, **kwargs)
1637
1638 def GetCellOverflow(*args, **kwargs):
1639 """GetCellOverflow(self, int row, int col) -> bool"""
1640 return _grid.Grid_GetCellOverflow(*args, **kwargs)
1641
1642 def GetCellSize(*args, **kwargs):
1643 """GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1644 return _grid.Grid_GetCellSize(*args, **kwargs)
1645
1646 def SetDefaultRowSize(*args, **kwargs):
1647 """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1648 return _grid.Grid_SetDefaultRowSize(*args, **kwargs)
1649
1650 def SetRowSize(*args, **kwargs):
1651 """SetRowSize(self, int row, int height)"""
1652 return _grid.Grid_SetRowSize(*args, **kwargs)
1653
1654 def SetDefaultColSize(*args, **kwargs):
1655 """SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1656 return _grid.Grid_SetDefaultColSize(*args, **kwargs)
1657
1658 def SetColSize(*args, **kwargs):
1659 """SetColSize(self, int col, int width)"""
1660 return _grid.Grid_SetColSize(*args, **kwargs)
1661
1662 def AutoSizeColumn(*args, **kwargs):
1663 """AutoSizeColumn(self, int col, bool setAsMin=True)"""
1664 return _grid.Grid_AutoSizeColumn(*args, **kwargs)
1665
1666 def AutoSizeRow(*args, **kwargs):
1667 """AutoSizeRow(self, int row, bool setAsMin=True)"""
1668 return _grid.Grid_AutoSizeRow(*args, **kwargs)
1669
1670 def AutoSizeColumns(*args, **kwargs):
1671 """AutoSizeColumns(self, bool setAsMin=True)"""
1672 return _grid.Grid_AutoSizeColumns(*args, **kwargs)
1673
1674 def AutoSizeRows(*args, **kwargs):
1675 """AutoSizeRows(self, bool setAsMin=True)"""
1676 return _grid.Grid_AutoSizeRows(*args, **kwargs)
1677
1678 def AutoSize(*args, **kwargs):
1679 """AutoSize(self)"""
1680 return _grid.Grid_AutoSize(*args, **kwargs)
1681
1682 def AutoSizeRowLabelSize(*args, **kwargs):
1683 """AutoSizeRowLabelSize(self, int row)"""
1684 return _grid.Grid_AutoSizeRowLabelSize(*args, **kwargs)
1685
1686 def AutoSizeColLabelSize(*args, **kwargs):
1687 """AutoSizeColLabelSize(self, int col)"""
1688 return _grid.Grid_AutoSizeColLabelSize(*args, **kwargs)
1689
1690 def SetColMinimalWidth(*args, **kwargs):
1691 """SetColMinimalWidth(self, int col, int width)"""
1692 return _grid.Grid_SetColMinimalWidth(*args, **kwargs)
1693
1694 def SetRowMinimalHeight(*args, **kwargs):
1695 """SetRowMinimalHeight(self, int row, int width)"""
1696 return _grid.Grid_SetRowMinimalHeight(*args, **kwargs)
1697
1698 def SetColMinimalAcceptableWidth(*args, **kwargs):
1699 """SetColMinimalAcceptableWidth(self, int width)"""
1700 return _grid.Grid_SetColMinimalAcceptableWidth(*args, **kwargs)
1701
1702 def SetRowMinimalAcceptableHeight(*args, **kwargs):
1703 """SetRowMinimalAcceptableHeight(self, int width)"""
1704 return _grid.Grid_SetRowMinimalAcceptableHeight(*args, **kwargs)
1705
1706 def GetColMinimalAcceptableWidth(*args, **kwargs):
1707 """GetColMinimalAcceptableWidth(self) -> int"""
1708 return _grid.Grid_GetColMinimalAcceptableWidth(*args, **kwargs)
1709
1710 def GetRowMinimalAcceptableHeight(*args, **kwargs):
1711 """GetRowMinimalAcceptableHeight(self) -> int"""
1712 return _grid.Grid_GetRowMinimalAcceptableHeight(*args, **kwargs)
1713
1714 def SetDefaultCellBackgroundColour(*args, **kwargs):
1715 """SetDefaultCellBackgroundColour(self, Colour ?)"""
1716 return _grid.Grid_SetDefaultCellBackgroundColour(*args, **kwargs)
1717
1718 def SetCellBackgroundColour(*args, **kwargs):
1719 """SetCellBackgroundColour(self, int row, int col, Colour ?)"""
1720 return _grid.Grid_SetCellBackgroundColour(*args, **kwargs)
1721
1722 def SetDefaultCellTextColour(*args, **kwargs):
1723 """SetDefaultCellTextColour(self, Colour ?)"""
1724 return _grid.Grid_SetDefaultCellTextColour(*args, **kwargs)
1725
1726 def SetCellTextColour(*args, **kwargs):
1727 """SetCellTextColour(self, int row, int col, Colour ?)"""
1728 return _grid.Grid_SetCellTextColour(*args, **kwargs)
1729
1730 def SetDefaultCellFont(*args, **kwargs):
1731 """SetDefaultCellFont(self, Font ?)"""
1732 return _grid.Grid_SetDefaultCellFont(*args, **kwargs)
1733
1734 def SetCellFont(*args, **kwargs):
1735 """SetCellFont(self, int row, int col, Font ?)"""
1736 return _grid.Grid_SetCellFont(*args, **kwargs)
1737
1738 def SetDefaultCellAlignment(*args, **kwargs):
1739 """SetDefaultCellAlignment(self, int horiz, int vert)"""
1740 return _grid.Grid_SetDefaultCellAlignment(*args, **kwargs)
1741
1742 def SetCellAlignment(*args, **kwargs):
1743 """SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1744 return _grid.Grid_SetCellAlignment(*args, **kwargs)
1745
1746 def SetDefaultCellOverflow(*args, **kwargs):
1747 """SetDefaultCellOverflow(self, bool allow)"""
1748 return _grid.Grid_SetDefaultCellOverflow(*args, **kwargs)
1749
1750 def SetCellOverflow(*args, **kwargs):
1751 """SetCellOverflow(self, int row, int col, bool allow)"""
1752 return _grid.Grid_SetCellOverflow(*args, **kwargs)
1753
1754 def SetCellSize(*args, **kwargs):
1755 """SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1756 return _grid.Grid_SetCellSize(*args, **kwargs)
1757
1758 def SetDefaultRenderer(*args, **kwargs):
1759 """SetDefaultRenderer(self, GridCellRenderer renderer)"""
1760 return _grid.Grid_SetDefaultRenderer(*args, **kwargs)
1761
1762 def SetCellRenderer(*args, **kwargs):
1763 """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1764 return _grid.Grid_SetCellRenderer(*args, **kwargs)
1765
1766 def GetDefaultRenderer(*args, **kwargs):
1767 """GetDefaultRenderer(self) -> GridCellRenderer"""
1768 return _grid.Grid_GetDefaultRenderer(*args, **kwargs)
1769
1770 def GetCellRenderer(*args, **kwargs):
1771 """GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1772 return _grid.Grid_GetCellRenderer(*args, **kwargs)
1773
1774 def SetDefaultEditor(*args, **kwargs):
1775 """SetDefaultEditor(self, GridCellEditor editor)"""
1776 return _grid.Grid_SetDefaultEditor(*args, **kwargs)
1777
1778 def SetCellEditor(*args, **kwargs):
1779 """SetCellEditor(self, int row, int col, GridCellEditor editor)"""
1780 return _grid.Grid_SetCellEditor(*args, **kwargs)
1781
1782 def GetDefaultEditor(*args, **kwargs):
1783 """GetDefaultEditor(self) -> GridCellEditor"""
1784 return _grid.Grid_GetDefaultEditor(*args, **kwargs)
1785
1786 def GetCellEditor(*args, **kwargs):
1787 """GetCellEditor(self, int row, int col) -> GridCellEditor"""
1788 return _grid.Grid_GetCellEditor(*args, **kwargs)
1789
1790 def GetCellValue(*args, **kwargs):
1791 """GetCellValue(self, int row, int col) -> String"""
1792 return _grid.Grid_GetCellValue(*args, **kwargs)
1793
1794 def SetCellValue(*args, **kwargs):
1795 """SetCellValue(self, int row, int col, String s)"""
1796 return _grid.Grid_SetCellValue(*args, **kwargs)
1797
1798 def IsReadOnly(*args, **kwargs):
1799 """IsReadOnly(self, int row, int col) -> bool"""
1800 return _grid.Grid_IsReadOnly(*args, **kwargs)
1801
1802 def SetReadOnly(*args, **kwargs):
1803 """SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
1804 return _grid.Grid_SetReadOnly(*args, **kwargs)
1805
1806 def SelectRow(*args, **kwargs):
1807 """SelectRow(self, int row, bool addToSelected=False)"""
1808 return _grid.Grid_SelectRow(*args, **kwargs)
1809
1810 def SelectCol(*args, **kwargs):
1811 """SelectCol(self, int col, bool addToSelected=False)"""
1812 return _grid.Grid_SelectCol(*args, **kwargs)
1813
1814 def SelectBlock(*args, **kwargs):
1815 """
1816 SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
1817 bool addToSelected=False)
1818 """
1819 return _grid.Grid_SelectBlock(*args, **kwargs)
1820
1821 def SelectAll(*args, **kwargs):
1822 """SelectAll(self)"""
1823 return _grid.Grid_SelectAll(*args, **kwargs)
1824
1825 def IsSelection(*args, **kwargs):
1826 """IsSelection(self) -> bool"""
1827 return _grid.Grid_IsSelection(*args, **kwargs)
1828
1829 def ClearSelection(*args, **kwargs):
1830 """ClearSelection(self)"""
1831 return _grid.Grid_ClearSelection(*args, **kwargs)
1832
1833 def IsInSelection(*args, **kwargs):
1834 """IsInSelection(self, int row, int col) -> bool"""
1835 return _grid.Grid_IsInSelection(*args, **kwargs)
1836
1837 def GetSelectedCells(*args, **kwargs):
1838 """GetSelectedCells(self) -> wxGridCellCoordsArray"""
1839 return _grid.Grid_GetSelectedCells(*args, **kwargs)
1840
1841 def GetSelectionBlockTopLeft(*args, **kwargs):
1842 """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
1843 return _grid.Grid_GetSelectionBlockTopLeft(*args, **kwargs)
1844
1845 def GetSelectionBlockBottomRight(*args, **kwargs):
1846 """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
1847 return _grid.Grid_GetSelectionBlockBottomRight(*args, **kwargs)
1848
1849 def GetSelectedRows(*args, **kwargs):
1850 """GetSelectedRows(self) -> wxArrayInt"""
1851 return _grid.Grid_GetSelectedRows(*args, **kwargs)
1852
1853 def GetSelectedCols(*args, **kwargs):
1854 """GetSelectedCols(self) -> wxArrayInt"""
1855 return _grid.Grid_GetSelectedCols(*args, **kwargs)
1856
1857 def DeselectRow(*args, **kwargs):
1858 """DeselectRow(self, int row)"""
1859 return _grid.Grid_DeselectRow(*args, **kwargs)
1860
1861 def DeselectCol(*args, **kwargs):
1862 """DeselectCol(self, int col)"""
1863 return _grid.Grid_DeselectCol(*args, **kwargs)
1864
1865 def DeselectCell(*args, **kwargs):
1866 """DeselectCell(self, int row, int col)"""
1867 return _grid.Grid_DeselectCell(*args, **kwargs)
1868
1869 def BlockToDeviceRect(*args, **kwargs):
1870 """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
1871 return _grid.Grid_BlockToDeviceRect(*args, **kwargs)
1872
1873 def GetSelectionBackground(*args, **kwargs):
1874 """GetSelectionBackground(self) -> Colour"""
1875 return _grid.Grid_GetSelectionBackground(*args, **kwargs)
1876
1877 def GetSelectionForeground(*args, **kwargs):
1878 """GetSelectionForeground(self) -> Colour"""
1879 return _grid.Grid_GetSelectionForeground(*args, **kwargs)
1880
1881 def SetSelectionBackground(*args, **kwargs):
1882 """SetSelectionBackground(self, Colour c)"""
1883 return _grid.Grid_SetSelectionBackground(*args, **kwargs)
1884
1885 def SetSelectionForeground(*args, **kwargs):
1886 """SetSelectionForeground(self, Colour c)"""
1887 return _grid.Grid_SetSelectionForeground(*args, **kwargs)
1888
1889 def RegisterDataType(*args, **kwargs):
1890 """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
1891 return _grid.Grid_RegisterDataType(*args, **kwargs)
1892
1893 def GetDefaultEditorForCell(*args, **kwargs):
1894 """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
1895 return _grid.Grid_GetDefaultEditorForCell(*args, **kwargs)
1896
1897 def GetDefaultRendererForCell(*args, **kwargs):
1898 """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
1899 return _grid.Grid_GetDefaultRendererForCell(*args, **kwargs)
1900
1901 def GetDefaultEditorForType(*args, **kwargs):
1902 """GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
1903 return _grid.Grid_GetDefaultEditorForType(*args, **kwargs)
1904
1905 def GetDefaultRendererForType(*args, **kwargs):
1906 """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
1907 return _grid.Grid_GetDefaultRendererForType(*args, **kwargs)
1908
1909 def SetMargins(*args, **kwargs):
1910 """SetMargins(self, int extraWidth, int extraHeight)"""
1911 return _grid.Grid_SetMargins(*args, **kwargs)
1912
1913 def GetGridWindow(*args, **kwargs):
1914 """GetGridWindow(self) -> Window"""
1915 return _grid.Grid_GetGridWindow(*args, **kwargs)
1916
1917 def GetGridRowLabelWindow(*args, **kwargs):
1918 """GetGridRowLabelWindow(self) -> Window"""
1919 return _grid.Grid_GetGridRowLabelWindow(*args, **kwargs)
1920
1921 def GetGridColLabelWindow(*args, **kwargs):
1922 """GetGridColLabelWindow(self) -> Window"""
1923 return _grid.Grid_GetGridColLabelWindow(*args, **kwargs)
1924
1925 def GetGridCornerLabelWindow(*args, **kwargs):
1926 """GetGridCornerLabelWindow(self) -> Window"""
1927 return _grid.Grid_GetGridCornerLabelWindow(*args, **kwargs)
1928
1929 def SetScrollLineX(*args, **kwargs):
1930 """SetScrollLineX(self, int x)"""
1931 return _grid.Grid_SetScrollLineX(*args, **kwargs)
1932
1933 def SetScrollLineY(*args, **kwargs):
1934 """SetScrollLineY(self, int y)"""
1935 return _grid.Grid_SetScrollLineY(*args, **kwargs)
1936
1937 def GetScrollLineX(*args, **kwargs):
1938 """GetScrollLineX(self) -> int"""
1939 return _grid.Grid_GetScrollLineX(*args, **kwargs)
1940
1941 def GetScrollLineY(*args, **kwargs):
1942 """GetScrollLineY(self) -> int"""
1943 return _grid.Grid_GetScrollLineY(*args, **kwargs)
1944
1945 def GetScrollX(*args, **kwargs):
1946 """GetScrollX(self, int x) -> int"""
1947 return _grid.Grid_GetScrollX(*args, **kwargs)
1948
1949 def GetScrollY(*args, **kwargs):
1950 """GetScrollY(self, int y) -> int"""
1951 return _grid.Grid_GetScrollY(*args, **kwargs)
1952
1953 def GetClassDefaultAttributes(*args, **kwargs):
1954 """
1955 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1956
1957 Get the default attributes for this class. This is useful if you want
1958 to use the same font or colour in your own control as in a standard
1959 control -- which is a much better idea than hard coding specific
1960 colours or fonts which might look completely out of place on the
1961 user's system, especially if it uses themes.
1962
1963 The variant parameter is only relevant under Mac currently and is
1964 ignore under other platforms. Under Mac, it will change the size of
1965 the returned font. See `wx.Window.SetWindowVariant` for more about
1966 this.
1967 """
1968 return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
1969
1970 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
1971 Grid_swigregister = _grid.Grid_swigregister
1972 Grid_swigregister(Grid)
1973
1974 def PreGrid(*args, **kwargs):
1975 """PreGrid() -> Grid"""
1976 val = _grid.new_PreGrid(*args, **kwargs)
1977 return val
1978
1979 def Grid_GetClassDefaultAttributes(*args, **kwargs):
1980 """
1981 Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1982
1983 Get the default attributes for this class. This is useful if you want
1984 to use the same font or colour in your own control as in a standard
1985 control -- which is a much better idea than hard coding specific
1986 colours or fonts which might look completely out of place on the
1987 user's system, especially if it uses themes.
1988
1989 The variant parameter is only relevant under Mac currently and is
1990 ignore under other platforms. Under Mac, it will change the size of
1991 the returned font. See `wx.Window.SetWindowVariant` for more about
1992 this.
1993 """
1994 return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
1995
1996 class GridEvent(_core.NotifyEvent):
1997 """Proxy of C++ GridEvent class"""
1998 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1999 __repr__ = _swig_repr
2000 def __init__(self, *args, **kwargs):
2001 """
2002 __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1,
2003 int x=-1, int y=-1, bool sel=True, bool control=False,
2004 bool shift=False, bool alt=False,
2005 bool meta=False) -> GridEvent
2006 """
2007 _grid.GridEvent_swiginit(self,_grid.new_GridEvent(*args, **kwargs))
2008 def GetRow(*args, **kwargs):
2009 """GetRow(self) -> int"""
2010 return _grid.GridEvent_GetRow(*args, **kwargs)
2011
2012 def GetCol(*args, **kwargs):
2013 """GetCol(self) -> int"""
2014 return _grid.GridEvent_GetCol(*args, **kwargs)
2015
2016 def GetPosition(*args, **kwargs):
2017 """GetPosition(self) -> Point"""
2018 return _grid.GridEvent_GetPosition(*args, **kwargs)
2019
2020 def Selecting(*args, **kwargs):
2021 """Selecting(self) -> bool"""
2022 return _grid.GridEvent_Selecting(*args, **kwargs)
2023
2024 def ControlDown(*args, **kwargs):
2025 """ControlDown(self) -> bool"""
2026 return _grid.GridEvent_ControlDown(*args, **kwargs)
2027
2028 def MetaDown(*args, **kwargs):
2029 """MetaDown(self) -> bool"""
2030 return _grid.GridEvent_MetaDown(*args, **kwargs)
2031
2032 def ShiftDown(*args, **kwargs):
2033 """ShiftDown(self) -> bool"""
2034 return _grid.GridEvent_ShiftDown(*args, **kwargs)
2035
2036 def AltDown(*args, **kwargs):
2037 """AltDown(self) -> bool"""
2038 return _grid.GridEvent_AltDown(*args, **kwargs)
2039
2040 def CmdDown(*args, **kwargs):
2041 """CmdDown(self) -> bool"""
2042 return _grid.GridEvent_CmdDown(*args, **kwargs)
2043
2044 GridEvent_swigregister = _grid.GridEvent_swigregister
2045 GridEvent_swigregister(GridEvent)
2046
2047 class GridSizeEvent(_core.NotifyEvent):
2048 """Proxy of C++ GridSizeEvent class"""
2049 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2050 __repr__ = _swig_repr
2051 def __init__(self, *args, **kwargs):
2052 """
2053 __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1,
2054 int x=-1, int y=-1, bool control=False, bool shift=False,
2055 bool alt=False, bool meta=False) -> GridSizeEvent
2056 """
2057 _grid.GridSizeEvent_swiginit(self,_grid.new_GridSizeEvent(*args, **kwargs))
2058 def GetRowOrCol(*args, **kwargs):
2059 """GetRowOrCol(self) -> int"""
2060 return _grid.GridSizeEvent_GetRowOrCol(*args, **kwargs)
2061
2062 def GetPosition(*args, **kwargs):
2063 """GetPosition(self) -> Point"""
2064 return _grid.GridSizeEvent_GetPosition(*args, **kwargs)
2065
2066 def ControlDown(*args, **kwargs):
2067 """ControlDown(self) -> bool"""
2068 return _grid.GridSizeEvent_ControlDown(*args, **kwargs)
2069
2070 def MetaDown(*args, **kwargs):
2071 """MetaDown(self) -> bool"""
2072 return _grid.GridSizeEvent_MetaDown(*args, **kwargs)
2073
2074 def ShiftDown(*args, **kwargs):
2075 """ShiftDown(self) -> bool"""
2076 return _grid.GridSizeEvent_ShiftDown(*args, **kwargs)
2077
2078 def AltDown(*args, **kwargs):
2079 """AltDown(self) -> bool"""
2080 return _grid.GridSizeEvent_AltDown(*args, **kwargs)
2081
2082 def CmdDown(*args, **kwargs):
2083 """CmdDown(self) -> bool"""
2084 return _grid.GridSizeEvent_CmdDown(*args, **kwargs)
2085
2086 GridSizeEvent_swigregister = _grid.GridSizeEvent_swigregister
2087 GridSizeEvent_swigregister(GridSizeEvent)
2088
2089 class GridRangeSelectEvent(_core.NotifyEvent):
2090 """Proxy of C++ GridRangeSelectEvent class"""
2091 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2092 __repr__ = _swig_repr
2093 def __init__(self, *args, **kwargs):
2094 """
2095 __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft,
2096 GridCellCoords bottomRight, bool sel=True,
2097 bool control=False, bool shift=False,
2098 bool alt=False, bool meta=False) -> GridRangeSelectEvent
2099 """
2100 _grid.GridRangeSelectEvent_swiginit(self,_grid.new_GridRangeSelectEvent(*args, **kwargs))
2101 def GetTopLeftCoords(*args, **kwargs):
2102 """GetTopLeftCoords(self) -> GridCellCoords"""
2103 return _grid.GridRangeSelectEvent_GetTopLeftCoords(*args, **kwargs)
2104
2105 def GetBottomRightCoords(*args, **kwargs):
2106 """GetBottomRightCoords(self) -> GridCellCoords"""
2107 return _grid.GridRangeSelectEvent_GetBottomRightCoords(*args, **kwargs)
2108
2109 def GetTopRow(*args, **kwargs):
2110 """GetTopRow(self) -> int"""
2111 return _grid.GridRangeSelectEvent_GetTopRow(*args, **kwargs)
2112
2113 def GetBottomRow(*args, **kwargs):
2114 """GetBottomRow(self) -> int"""
2115 return _grid.GridRangeSelectEvent_GetBottomRow(*args, **kwargs)
2116
2117 def GetLeftCol(*args, **kwargs):
2118 """GetLeftCol(self) -> int"""
2119 return _grid.GridRangeSelectEvent_GetLeftCol(*args, **kwargs)
2120
2121 def GetRightCol(*args, **kwargs):
2122 """GetRightCol(self) -> int"""
2123 return _grid.GridRangeSelectEvent_GetRightCol(*args, **kwargs)
2124
2125 def Selecting(*args, **kwargs):
2126 """Selecting(self) -> bool"""
2127 return _grid.GridRangeSelectEvent_Selecting(*args, **kwargs)
2128
2129 def ControlDown(*args, **kwargs):
2130 """ControlDown(self) -> bool"""
2131 return _grid.GridRangeSelectEvent_ControlDown(*args, **kwargs)
2132
2133 def MetaDown(*args, **kwargs):
2134 """MetaDown(self) -> bool"""
2135 return _grid.GridRangeSelectEvent_MetaDown(*args, **kwargs)
2136
2137 def ShiftDown(*args, **kwargs):
2138 """ShiftDown(self) -> bool"""
2139 return _grid.GridRangeSelectEvent_ShiftDown(*args, **kwargs)
2140
2141 def AltDown(*args, **kwargs):
2142 """AltDown(self) -> bool"""
2143 return _grid.GridRangeSelectEvent_AltDown(*args, **kwargs)
2144
2145 def CmdDown(*args, **kwargs):
2146 """CmdDown(self) -> bool"""
2147 return _grid.GridRangeSelectEvent_CmdDown(*args, **kwargs)
2148
2149 GridRangeSelectEvent_swigregister = _grid.GridRangeSelectEvent_swigregister
2150 GridRangeSelectEvent_swigregister(GridRangeSelectEvent)
2151
2152 class GridEditorCreatedEvent(_core.CommandEvent):
2153 """Proxy of C++ GridEditorCreatedEvent class"""
2154 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2155 __repr__ = _swig_repr
2156 def __init__(self, *args, **kwargs):
2157 """
2158 __init__(self, int id, wxEventType type, Object obj, int row, int col,
2159 Control ctrl) -> GridEditorCreatedEvent
2160 """
2161 _grid.GridEditorCreatedEvent_swiginit(self,_grid.new_GridEditorCreatedEvent(*args, **kwargs))
2162 def GetRow(*args, **kwargs):
2163 """GetRow(self) -> int"""
2164 return _grid.GridEditorCreatedEvent_GetRow(*args, **kwargs)
2165
2166 def GetCol(*args, **kwargs):
2167 """GetCol(self) -> int"""
2168 return _grid.GridEditorCreatedEvent_GetCol(*args, **kwargs)
2169
2170 def GetControl(*args, **kwargs):
2171 """GetControl(self) -> Control"""
2172 return _grid.GridEditorCreatedEvent_GetControl(*args, **kwargs)
2173
2174 def SetRow(*args, **kwargs):
2175 """SetRow(self, int row)"""
2176 return _grid.GridEditorCreatedEvent_SetRow(*args, **kwargs)
2177
2178 def SetCol(*args, **kwargs):
2179 """SetCol(self, int col)"""
2180 return _grid.GridEditorCreatedEvent_SetCol(*args, **kwargs)
2181
2182 def SetControl(*args, **kwargs):
2183 """SetControl(self, Control ctrl)"""
2184 return _grid.GridEditorCreatedEvent_SetControl(*args, **kwargs)
2185
2186 GridEditorCreatedEvent_swigregister = _grid.GridEditorCreatedEvent_swigregister
2187 GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent)
2188
2189 wxEVT_GRID_CELL_LEFT_CLICK = _grid.wxEVT_GRID_CELL_LEFT_CLICK
2190 wxEVT_GRID_CELL_RIGHT_CLICK = _grid.wxEVT_GRID_CELL_RIGHT_CLICK
2191 wxEVT_GRID_CELL_LEFT_DCLICK = _grid.wxEVT_GRID_CELL_LEFT_DCLICK
2192 wxEVT_GRID_CELL_RIGHT_DCLICK = _grid.wxEVT_GRID_CELL_RIGHT_DCLICK
2193 wxEVT_GRID_LABEL_LEFT_CLICK = _grid.wxEVT_GRID_LABEL_LEFT_CLICK
2194 wxEVT_GRID_LABEL_RIGHT_CLICK = _grid.wxEVT_GRID_LABEL_RIGHT_CLICK
2195 wxEVT_GRID_LABEL_LEFT_DCLICK = _grid.wxEVT_GRID_LABEL_LEFT_DCLICK
2196 wxEVT_GRID_LABEL_RIGHT_DCLICK = _grid.wxEVT_GRID_LABEL_RIGHT_DCLICK
2197 wxEVT_GRID_ROW_SIZE = _grid.wxEVT_GRID_ROW_SIZE
2198 wxEVT_GRID_COL_SIZE = _grid.wxEVT_GRID_COL_SIZE
2199 wxEVT_GRID_RANGE_SELECT = _grid.wxEVT_GRID_RANGE_SELECT
2200 wxEVT_GRID_CELL_CHANGE = _grid.wxEVT_GRID_CELL_CHANGE
2201 wxEVT_GRID_SELECT_CELL = _grid.wxEVT_GRID_SELECT_CELL
2202 wxEVT_GRID_EDITOR_SHOWN = _grid.wxEVT_GRID_EDITOR_SHOWN
2203 wxEVT_GRID_EDITOR_HIDDEN = _grid.wxEVT_GRID_EDITOR_HIDDEN
2204 wxEVT_GRID_EDITOR_CREATED = _grid.wxEVT_GRID_EDITOR_CREATED
2205 wxEVT_GRID_CELL_BEGIN_DRAG = _grid.wxEVT_GRID_CELL_BEGIN_DRAG
2206 EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK )
2207 EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK )
2208 EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK )
2209 EVT_GRID_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK )
2210 EVT_GRID_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK )
2211 EVT_GRID_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK )
2212 EVT_GRID_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK )
2213 EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK )
2214 EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE )
2215 EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE )
2216 EVT_GRID_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT )
2217 EVT_GRID_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE )
2218 EVT_GRID_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL )
2219 EVT_GRID_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN )
2220 EVT_GRID_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN )
2221 EVT_GRID_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED )
2222 EVT_GRID_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG )
2223
2224
2225 # The same as above but with the ability to specify an identifier
2226 EVT_GRID_CMD_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK, 1 )
2227 EVT_GRID_CMD_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK, 1 )
2228 EVT_GRID_CMD_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK, 1 )
2229 EVT_GRID_CMD_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK, 1 )
2230 EVT_GRID_CMD_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK, 1 )
2231 EVT_GRID_CMD_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK, 1 )
2232 EVT_GRID_CMD_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK, 1 )
2233 EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 )
2234 EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 )
2235 EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 )
2236 EVT_GRID_CMD_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT, 1 )
2237 EVT_GRID_CMD_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE, 1 )
2238 EVT_GRID_CMD_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL, 1 )
2239 EVT_GRID_CMD_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN, 1 )
2240 EVT_GRID_CMD_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN, 1 )
2241 EVT_GRID_CMD_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED, 1 )
2242 EVT_GRID_CMD_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG, 1 )
2243
2244
2245
2246