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