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