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