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