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