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