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