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