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