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