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