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