]>
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 | ||
db3e571a RD |
4 | """ |
5 | Classes for implementing a spreadsheet-like control. | |
6 | """ | |
7 | ||
d14a1e28 RD |
8 | import _grid |
9 | ||
54f9ee45 RD |
10 | import _windows |
11 | import _core | |
12 | wx = _core | |
66c033b4 | 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 | |
0dcf9a74 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,) |
e811c8ce | 37 | def _setOORInfo(*args, **kwargs): |
a95a7133 | 38 | """_setOORInfo(self, PyObject _self)""" |
e811c8ce RD |
39 | return _grid.GridCellRenderer__setOORInfo(*args, **kwargs) |
40 | ||
41 | def SetParameters(*args, **kwargs): | |
a95a7133 | 42 | """SetParameters(self, String params)""" |
e811c8ce RD |
43 | return _grid.GridCellRenderer_SetParameters(*args, **kwargs) |
44 | ||
45 | def IncRef(*args, **kwargs): | |
a95a7133 | 46 | """IncRef(self)""" |
e811c8ce RD |
47 | return _grid.GridCellRenderer_IncRef(*args, **kwargs) |
48 | ||
49 | def DecRef(*args, **kwargs): | |
a95a7133 | 50 | """DecRef(self)""" |
e811c8ce RD |
51 | return _grid.GridCellRenderer_DecRef(*args, **kwargs) |
52 | ||
53 | def Draw(*args, **kwargs): | |
0df68c9f | 54 | """ |
a95a7133 | 55 | Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row, |
0df68c9f RD |
56 | int col, bool isSelected) |
57 | """ | |
e811c8ce 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""" |
e811c8ce RD |
62 | return _grid.GridCellRenderer_GetBestSize(*args, **kwargs) |
63 | ||
64 | def Clone(*args, **kwargs): | |
a95a7133 | 65 | """Clone(self) -> GridCellRenderer""" |
e811c8ce 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 | |
b2dc1044 | 76 | DateTimeFormatStr = cvar.DateTimeFormatStr |
d14a1e28 RD |
77 | GridNoCellCoords = cvar.GridNoCellCoords |
78 | GridNoCellRect = cvar.GridNoCellRect | |
79 | ||
80 | class PyGridCellRenderer(GridCellRenderer): | |
e811c8ce 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) | |
e811c8ce RD |
90 | |
91 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 92 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
e811c8ce RD |
93 | return _grid.PyGridCellRenderer__setCallbackInfo(*args, **kwargs) |
94 | ||
95 | def base_SetParameters(*args, **kwargs): | |
a95a7133 | 96 | """base_SetParameters(self, String params)""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 116 | self._setOORInfo(self) |
e811c8ce | 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): | |
e811c8ce 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 |
b98a5dfc | 135 | self._setOORInfo(self) |
e811c8ce | 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): | |
e811c8ce 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 |
b98a5dfc | 154 | self._setOORInfo(self) |
e811c8ce RD |
155 | |
156 | def GetWidth(*args, **kwargs): | |
a95a7133 | 157 | """GetWidth(self) -> int""" |
e811c8ce RD |
158 | return _grid.GridCellFloatRenderer_GetWidth(*args, **kwargs) |
159 | ||
160 | def SetWidth(*args, **kwargs): | |
a95a7133 | 161 | """SetWidth(self, int width)""" |
e811c8ce RD |
162 | return _grid.GridCellFloatRenderer_SetWidth(*args, **kwargs) |
163 | ||
164 | def GetPrecision(*args, **kwargs): | |
a95a7133 | 165 | """GetPrecision(self) -> int""" |
e811c8ce RD |
166 | return _grid.GridCellFloatRenderer_GetPrecision(*args, **kwargs) |
167 | ||
168 | def SetPrecision(*args, **kwargs): | |
a95a7133 | 169 | """SetPrecision(self, int precision)""" |
e811c8ce RD |
170 | return _grid.GridCellFloatRenderer_SetPrecision(*args, **kwargs) |
171 | ||
f6bcfd97 | 172 | |
d14a1e28 RD |
173 | class GridCellFloatRendererPtr(GridCellFloatRenderer): |
174 | def __init__(self, this): | |
059a841c | 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): | |
e811c8ce 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 | |
059a841c | 187 | self.thisown = 1 |
d14a1e28 | 188 | del newobj.thisown |
b98a5dfc | 189 | self._setOORInfo(self) |
e811c8ce | 190 | |
059a841c | 191 | |
d14a1e28 RD |
192 | class GridCellBoolRendererPtr(GridCellBoolRenderer): |
193 | def __init__(self, this): | |
059a841c | 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): | |
e811c8ce 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 | |
059a841c | 206 | self.thisown = 1 |
d14a1e28 | 207 | del newobj.thisown |
b98a5dfc | 208 | self._setOORInfo(self) |
e811c8ce | 209 | |
059a841c | 210 | |
d14a1e28 RD |
211 | class GridCellDateTimeRendererPtr(GridCellDateTimeRenderer): |
212 | def __init__(self, this): | |
059a841c | 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): | |
e811c8ce 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 | |
059a841c | 225 | self.thisown = 1 |
d14a1e28 | 226 | del newobj.thisown |
b98a5dfc | 227 | self._setOORInfo(self) |
e811c8ce | 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): | |
e811c8ce 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 |
b98a5dfc | 246 | self._setOORInfo(self) |
e811c8ce | 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,) | |
e811c8ce | 260 | def _setOORInfo(*args, **kwargs): |
a95a7133 | 261 | """_setOORInfo(self, PyObject _self)""" |
e811c8ce RD |
262 | return _grid.GridCellEditor__setOORInfo(*args, **kwargs) |
263 | ||
264 | def IsCreated(*args, **kwargs): | |
a95a7133 | 265 | """IsCreated(self) -> bool""" |
e811c8ce RD |
266 | return _grid.GridCellEditor_IsCreated(*args, **kwargs) |
267 | ||
268 | def GetControl(*args, **kwargs): | |
a95a7133 | 269 | """GetControl(self) -> Control""" |
e811c8ce RD |
270 | return _grid.GridCellEditor_GetControl(*args, **kwargs) |
271 | ||
272 | def SetControl(*args, **kwargs): | |
a95a7133 | 273 | """SetControl(self, Control control)""" |
e811c8ce RD |
274 | return _grid.GridCellEditor_SetControl(*args, **kwargs) |
275 | ||
276 | def GetCellAttr(*args, **kwargs): | |
a95a7133 | 277 | """GetCellAttr(self) -> GridCellAttr""" |
e811c8ce RD |
278 | return _grid.GridCellEditor_GetCellAttr(*args, **kwargs) |
279 | ||
280 | def SetCellAttr(*args, **kwargs): | |
a95a7133 | 281 | """SetCellAttr(self, GridCellAttr attr)""" |
e811c8ce RD |
282 | return _grid.GridCellEditor_SetCellAttr(*args, **kwargs) |
283 | ||
284 | def SetParameters(*args, **kwargs): | |
a95a7133 | 285 | """SetParameters(self, String params)""" |
e811c8ce RD |
286 | return _grid.GridCellEditor_SetParameters(*args, **kwargs) |
287 | ||
288 | def IncRef(*args, **kwargs): | |
a95a7133 | 289 | """IncRef(self)""" |
e811c8ce RD |
290 | return _grid.GridCellEditor_IncRef(*args, **kwargs) |
291 | ||
292 | def DecRef(*args, **kwargs): | |
a95a7133 | 293 | """DecRef(self)""" |
e811c8ce RD |
294 | return _grid.GridCellEditor_DecRef(*args, **kwargs) |
295 | ||
296 | def Create(*args, **kwargs): | |
a95a7133 | 297 | """Create(self, Window parent, int id, EvtHandler evtHandler)""" |
e811c8ce RD |
298 | return _grid.GridCellEditor_Create(*args, **kwargs) |
299 | ||
300 | def BeginEdit(*args, **kwargs): | |
a95a7133 | 301 | """BeginEdit(self, int row, int col, Grid grid)""" |
e811c8ce 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""" |
e811c8ce RD |
306 | return _grid.GridCellEditor_EndEdit(*args, **kwargs) |
307 | ||
308 | def Reset(*args, **kwargs): | |
a95a7133 | 309 | """Reset(self)""" |
e811c8ce RD |
310 | return _grid.GridCellEditor_Reset(*args, **kwargs) |
311 | ||
312 | def Clone(*args, **kwargs): | |
a95a7133 | 313 | """Clone(self) -> GridCellEditor""" |
e811c8ce RD |
314 | return _grid.GridCellEditor_Clone(*args, **kwargs) |
315 | ||
316 | def SetSize(*args, **kwargs): | |
a95a7133 | 317 | """SetSize(self, Rect rect)""" |
e811c8ce RD |
318 | return _grid.GridCellEditor_SetSize(*args, **kwargs) |
319 | ||
320 | def Show(*args, **kwargs): | |
a95a7133 | 321 | """Show(self, bool show, GridCellAttr attr=None)""" |
e811c8ce RD |
322 | return _grid.GridCellEditor_Show(*args, **kwargs) |
323 | ||
324 | def PaintBackground(*args, **kwargs): | |
a95a7133 | 325 | """PaintBackground(self, Rect rectCell, GridCellAttr attr)""" |
e811c8ce RD |
326 | return _grid.GridCellEditor_PaintBackground(*args, **kwargs) |
327 | ||
328 | def IsAcceptedKey(*args, **kwargs): | |
a95a7133 | 329 | """IsAcceptedKey(self, KeyEvent event) -> bool""" |
e811c8ce RD |
330 | return _grid.GridCellEditor_IsAcceptedKey(*args, **kwargs) |
331 | ||
332 | def StartingKey(*args, **kwargs): | |
a95a7133 | 333 | """StartingKey(self, KeyEvent event)""" |
e811c8ce RD |
334 | return _grid.GridCellEditor_StartingKey(*args, **kwargs) |
335 | ||
336 | def StartingClick(*args, **kwargs): | |
a95a7133 | 337 | """StartingClick(self)""" |
e811c8ce RD |
338 | return _grid.GridCellEditor_StartingClick(*args, **kwargs) |
339 | ||
340 | def HandleReturn(*args, **kwargs): | |
a95a7133 | 341 | """HandleReturn(self, KeyEvent event)""" |
e811c8ce RD |
342 | return _grid.GridCellEditor_HandleReturn(*args, **kwargs) |
343 | ||
344 | def Destroy(*args, **kwargs): | |
a95a7133 | 345 | """Destroy(self)""" |
e811c8ce 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): |
e811c8ce 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) | |
e811c8ce RD |
366 | |
367 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 368 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
e811c8ce RD |
369 | return _grid.PyGridCellEditor__setCallbackInfo(*args, **kwargs) |
370 | ||
371 | def base_SetSize(*args, **kwargs): | |
a95a7133 | 372 | """base_SetSize(self, Rect rect)""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce RD |
381 | return _grid.PyGridCellEditor_base_PaintBackground(*args, **kwargs) |
382 | ||
383 | def base_IsAcceptedKey(*args, **kwargs): | |
a95a7133 | 384 | """base_IsAcceptedKey(self, KeyEvent event) -> bool""" |
e811c8ce RD |
385 | return _grid.PyGridCellEditor_base_IsAcceptedKey(*args, **kwargs) |
386 | ||
387 | def base_StartingKey(*args, **kwargs): | |
a95a7133 | 388 | """base_StartingKey(self, KeyEvent event)""" |
e811c8ce RD |
389 | return _grid.PyGridCellEditor_base_StartingKey(*args, **kwargs) |
390 | ||
391 | def base_StartingClick(*args, **kwargs): | |
a95a7133 | 392 | """base_StartingClick(self)""" |
e811c8ce RD |
393 | return _grid.PyGridCellEditor_base_StartingClick(*args, **kwargs) |
394 | ||
395 | def base_HandleReturn(*args, **kwargs): | |
a95a7133 | 396 | """base_HandleReturn(self, KeyEvent event)""" |
e811c8ce RD |
397 | return _grid.PyGridCellEditor_base_HandleReturn(*args, **kwargs) |
398 | ||
399 | def base_Destroy(*args, **kwargs): | |
a95a7133 | 400 | """base_Destroy(self)""" |
e811c8ce RD |
401 | return _grid.PyGridCellEditor_base_Destroy(*args, **kwargs) |
402 | ||
403 | def base_SetParameters(*args, **kwargs): | |
a95a7133 | 404 | """base_SetParameters(self, String params)""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 424 | self._setOORInfo(self) |
e811c8ce RD |
425 | |
426 | def GetValue(*args, **kwargs): | |
a95a7133 | 427 | """GetValue(self) -> String""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 447 | self._setOORInfo(self) |
e811c8ce RD |
448 | |
449 | def GetValue(*args, **kwargs): | |
a95a7133 | 450 | """GetValue(self) -> String""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 470 | self._setOORInfo(self) |
e811c8ce RD |
471 | |
472 | def GetValue(*args, **kwargs): | |
a95a7133 | 473 | """GetValue(self) -> String""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 493 | self._setOORInfo(self) |
e811c8ce RD |
494 | |
495 | def GetValue(*args, **kwargs): | |
a95a7133 | 496 | """GetValue(self) -> String""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 516 | self._setOORInfo(self) |
e811c8ce RD |
517 | |
518 | def GetValue(*args, **kwargs): | |
a95a7133 | 519 | """GetValue(self) -> String""" |
e811c8ce RD |
520 | return _grid.GridCellChoiceEditor_GetValue(*args, **kwargs) |
521 | ||
f6bcfd97 | 522 | |
d14a1e28 RD |
523 | class GridCellChoiceEditorPtr(GridCellChoiceEditor): |
524 | def __init__(self, this): | |
059a841c | 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): | |
e811c8ce 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 | |
059a841c | 537 | self.thisown = 1 |
d14a1e28 | 538 | del newobj.thisown |
b98a5dfc | 539 | self._setOORInfo(self) |
e811c8ce RD |
540 | |
541 | def GetValue(*args, **kwargs): | |
a95a7133 | 542 | """GetValue(self) -> String""" |
e811c8ce RD |
543 | return _grid.GridCellEnumEditor_GetValue(*args, **kwargs) |
544 | ||
059a841c | 545 | |
d14a1e28 RD |
546 | class GridCellEnumEditorPtr(GridCellEnumEditor): |
547 | def __init__(self, this): | |
059a841c | 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): | |
e811c8ce 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 | |
059a841c | 560 | self.thisown = 1 |
d14a1e28 | 561 | del newobj.thisown |
b98a5dfc | 562 | self._setOORInfo(self) |
e811c8ce RD |
563 | |
564 | def GetValue(*args, **kwargs): | |
a95a7133 | 565 | """GetValue(self) -> String""" |
e811c8ce 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): | |
e811c8ce 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 | |
e811c8ce | 585 | def _setOORInfo(*args, **kwargs): |
a95a7133 | 586 | """_setOORInfo(self, PyObject _self)""" |
e811c8ce 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 |
b98a5dfc | 595 | self._setOORInfo(self) |
e811c8ce RD |
596 | |
597 | def Clone(*args, **kwargs): | |
a95a7133 | 598 | """Clone(self) -> GridCellAttr""" |
e811c8ce RD |
599 | return _grid.GridCellAttr_Clone(*args, **kwargs) |
600 | ||
601 | def MergeWith(*args, **kwargs): | |
a95a7133 | 602 | """MergeWith(self, GridCellAttr mergefrom)""" |
e811c8ce RD |
603 | return _grid.GridCellAttr_MergeWith(*args, **kwargs) |
604 | ||
605 | def IncRef(*args, **kwargs): | |
a95a7133 | 606 | """IncRef(self)""" |
e811c8ce RD |
607 | return _grid.GridCellAttr_IncRef(*args, **kwargs) |
608 | ||
609 | def DecRef(*args, **kwargs): | |
a95a7133 | 610 | """DecRef(self)""" |
e811c8ce RD |
611 | return _grid.GridCellAttr_DecRef(*args, **kwargs) |
612 | ||
613 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 614 | """SetTextColour(self, Colour colText)""" |
e811c8ce RD |
615 | return _grid.GridCellAttr_SetTextColour(*args, **kwargs) |
616 | ||
617 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 618 | """SetBackgroundColour(self, Colour colBack)""" |
e811c8ce RD |
619 | return _grid.GridCellAttr_SetBackgroundColour(*args, **kwargs) |
620 | ||
621 | def SetFont(*args, **kwargs): | |
a95a7133 | 622 | """SetFont(self, Font font)""" |
e811c8ce RD |
623 | return _grid.GridCellAttr_SetFont(*args, **kwargs) |
624 | ||
625 | def SetAlignment(*args, **kwargs): | |
a95a7133 | 626 | """SetAlignment(self, int hAlign, int vAlign)""" |
e811c8ce RD |
627 | return _grid.GridCellAttr_SetAlignment(*args, **kwargs) |
628 | ||
629 | def SetSize(*args, **kwargs): | |
a95a7133 | 630 | """SetSize(self, int num_rows, int num_cols)""" |
e811c8ce RD |
631 | return _grid.GridCellAttr_SetSize(*args, **kwargs) |
632 | ||
633 | def SetOverflow(*args, **kwargs): | |
a95a7133 | 634 | """SetOverflow(self, bool allow=True)""" |
e811c8ce RD |
635 | return _grid.GridCellAttr_SetOverflow(*args, **kwargs) |
636 | ||
637 | def SetReadOnly(*args, **kwargs): | |
a95a7133 | 638 | """SetReadOnly(self, bool isReadOnly=True)""" |
e811c8ce RD |
639 | return _grid.GridCellAttr_SetReadOnly(*args, **kwargs) |
640 | ||
641 | def SetRenderer(*args, **kwargs): | |
a95a7133 | 642 | """SetRenderer(self, GridCellRenderer renderer)""" |
e811c8ce RD |
643 | return _grid.GridCellAttr_SetRenderer(*args, **kwargs) |
644 | ||
645 | def SetEditor(*args, **kwargs): | |
a95a7133 | 646 | """SetEditor(self, GridCellEditor editor)""" |
e811c8ce RD |
647 | return _grid.GridCellAttr_SetEditor(*args, **kwargs) |
648 | ||
649 | def SetKind(*args, **kwargs): | |
a95a7133 | 650 | """SetKind(self, int kind)""" |
e811c8ce RD |
651 | return _grid.GridCellAttr_SetKind(*args, **kwargs) |
652 | ||
653 | def HasTextColour(*args, **kwargs): | |
a95a7133 | 654 | """HasTextColour(self) -> bool""" |
e811c8ce RD |
655 | return _grid.GridCellAttr_HasTextColour(*args, **kwargs) |
656 | ||
657 | def HasBackgroundColour(*args, **kwargs): | |
a95a7133 | 658 | """HasBackgroundColour(self) -> bool""" |
e811c8ce RD |
659 | return _grid.GridCellAttr_HasBackgroundColour(*args, **kwargs) |
660 | ||
661 | def HasFont(*args, **kwargs): | |
a95a7133 | 662 | """HasFont(self) -> bool""" |
e811c8ce RD |
663 | return _grid.GridCellAttr_HasFont(*args, **kwargs) |
664 | ||
665 | def HasAlignment(*args, **kwargs): | |
a95a7133 | 666 | """HasAlignment(self) -> bool""" |
e811c8ce RD |
667 | return _grid.GridCellAttr_HasAlignment(*args, **kwargs) |
668 | ||
669 | def HasRenderer(*args, **kwargs): | |
a95a7133 | 670 | """HasRenderer(self) -> bool""" |
e811c8ce RD |
671 | return _grid.GridCellAttr_HasRenderer(*args, **kwargs) |
672 | ||
673 | def HasEditor(*args, **kwargs): | |
a95a7133 | 674 | """HasEditor(self) -> bool""" |
e811c8ce RD |
675 | return _grid.GridCellAttr_HasEditor(*args, **kwargs) |
676 | ||
677 | def HasReadWriteMode(*args, **kwargs): | |
a95a7133 | 678 | """HasReadWriteMode(self) -> bool""" |
e811c8ce RD |
679 | return _grid.GridCellAttr_HasReadWriteMode(*args, **kwargs) |
680 | ||
681 | def HasOverflowMode(*args, **kwargs): | |
a95a7133 | 682 | """HasOverflowMode(self) -> bool""" |
e811c8ce RD |
683 | return _grid.GridCellAttr_HasOverflowMode(*args, **kwargs) |
684 | ||
685 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 686 | """GetTextColour(self) -> Colour""" |
e811c8ce RD |
687 | return _grid.GridCellAttr_GetTextColour(*args, **kwargs) |
688 | ||
689 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 690 | """GetBackgroundColour(self) -> Colour""" |
e811c8ce RD |
691 | return _grid.GridCellAttr_GetBackgroundColour(*args, **kwargs) |
692 | ||
693 | def GetFont(*args, **kwargs): | |
a95a7133 | 694 | """GetFont(self) -> Font""" |
e811c8ce RD |
695 | return _grid.GridCellAttr_GetFont(*args, **kwargs) |
696 | ||
697 | def GetAlignment(*args, **kwargs): | |
322913ce | 698 | """GetAlignment() -> (hAlign, vAlign)""" |
e811c8ce RD |
699 | return _grid.GridCellAttr_GetAlignment(*args, **kwargs) |
700 | ||
701 | def GetSize(*args, **kwargs): | |
322913ce | 702 | """GetSize() -> (num_rows, num_cols)""" |
e811c8ce RD |
703 | return _grid.GridCellAttr_GetSize(*args, **kwargs) |
704 | ||
705 | def GetOverflow(*args, **kwargs): | |
a95a7133 | 706 | """GetOverflow(self) -> bool""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
715 | return _grid.GridCellAttr_GetEditor(*args, **kwargs) |
716 | ||
717 | def IsReadOnly(*args, **kwargs): | |
a95a7133 | 718 | """IsReadOnly(self) -> bool""" |
e811c8ce RD |
719 | return _grid.GridCellAttr_IsReadOnly(*args, **kwargs) |
720 | ||
fd2dc343 RD |
721 | def GetKind(*args, **kwargs): |
722 | """GetKind(self) -> int""" | |
723 | return _grid.GridCellAttr_GetKind(*args, **kwargs) | |
724 | ||
e811c8ce | 725 | def SetDefAttr(*args, **kwargs): |
a95a7133 | 726 | """SetDefAttr(self, GridCellAttr defAttr)""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 746 | self._setOORInfo(self) |
e811c8ce RD |
747 | |
748 | def _setOORInfo(*args, **kwargs): | |
a95a7133 | 749 | """_setOORInfo(self, PyObject _self)""" |
e811c8ce 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""" |
e811c8ce RD |
754 | return _grid.GridCellAttrProvider_GetAttr(*args, **kwargs) |
755 | ||
756 | def SetAttr(*args, **kwargs): | |
a95a7133 | 757 | """SetAttr(self, GridCellAttr attr, int row, int col)""" |
e811c8ce RD |
758 | return _grid.GridCellAttrProvider_SetAttr(*args, **kwargs) |
759 | ||
760 | def SetRowAttr(*args, **kwargs): | |
a95a7133 | 761 | """SetRowAttr(self, GridCellAttr attr, int row)""" |
e811c8ce RD |
762 | return _grid.GridCellAttrProvider_SetRowAttr(*args, **kwargs) |
763 | ||
764 | def SetColAttr(*args, **kwargs): | |
a95a7133 | 765 | """SetColAttr(self, GridCellAttr attr, int col)""" |
e811c8ce RD |
766 | return _grid.GridCellAttrProvider_SetColAttr(*args, **kwargs) |
767 | ||
768 | def UpdateAttrRows(*args, **kwargs): | |
a95a7133 | 769 | """UpdateAttrRows(self, size_t pos, int numRows)""" |
e811c8ce RD |
770 | return _grid.GridCellAttrProvider_UpdateAttrRows(*args, **kwargs) |
771 | ||
772 | def UpdateAttrCols(*args, **kwargs): | |
a95a7133 | 773 | """UpdateAttrCols(self, size_t pos, int numCols)""" |
e811c8ce 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): |
e811c8ce 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) | |
e811c8ce RD |
794 | |
795 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 796 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
e811c8ce 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""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce 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 | ||
54f9ee45 | 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,) | |
e811c8ce | 827 | def _setOORInfo(*args, **kwargs): |
a95a7133 | 828 | """_setOORInfo(self, PyObject _self)""" |
e811c8ce RD |
829 | return _grid.GridTableBase__setOORInfo(*args, **kwargs) |
830 | ||
831 | def SetAttrProvider(*args, **kwargs): | |
a95a7133 | 832 | """SetAttrProvider(self, GridCellAttrProvider attrProvider)""" |
e811c8ce RD |
833 | return _grid.GridTableBase_SetAttrProvider(*args, **kwargs) |
834 | ||
835 | def GetAttrProvider(*args, **kwargs): | |
a95a7133 | 836 | """GetAttrProvider(self) -> GridCellAttrProvider""" |
e811c8ce RD |
837 | return _grid.GridTableBase_GetAttrProvider(*args, **kwargs) |
838 | ||
839 | def SetView(*args, **kwargs): | |
a95a7133 | 840 | """SetView(self, Grid grid)""" |
e811c8ce RD |
841 | return _grid.GridTableBase_SetView(*args, **kwargs) |
842 | ||
843 | def GetView(*args, **kwargs): | |
a95a7133 | 844 | """GetView(self) -> Grid""" |
e811c8ce RD |
845 | return _grid.GridTableBase_GetView(*args, **kwargs) |
846 | ||
847 | def GetNumberRows(*args, **kwargs): | |
a95a7133 | 848 | """GetNumberRows(self) -> int""" |
e811c8ce RD |
849 | return _grid.GridTableBase_GetNumberRows(*args, **kwargs) |
850 | ||
851 | def GetNumberCols(*args, **kwargs): | |
a95a7133 | 852 | """GetNumberCols(self) -> int""" |
e811c8ce RD |
853 | return _grid.GridTableBase_GetNumberCols(*args, **kwargs) |
854 | ||
855 | def IsEmptyCell(*args, **kwargs): | |
a95a7133 | 856 | """IsEmptyCell(self, int row, int col) -> bool""" |
e811c8ce RD |
857 | return _grid.GridTableBase_IsEmptyCell(*args, **kwargs) |
858 | ||
859 | def GetValue(*args, **kwargs): | |
a95a7133 | 860 | """GetValue(self, int row, int col) -> String""" |
e811c8ce RD |
861 | return _grid.GridTableBase_GetValue(*args, **kwargs) |
862 | ||
863 | def SetValue(*args, **kwargs): | |
a95a7133 | 864 | """SetValue(self, int row, int col, String value)""" |
e811c8ce RD |
865 | return _grid.GridTableBase_SetValue(*args, **kwargs) |
866 | ||
867 | def GetTypeName(*args, **kwargs): | |
a95a7133 | 868 | """GetTypeName(self, int row, int col) -> String""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
877 | return _grid.GridTableBase_CanSetValueAs(*args, **kwargs) |
878 | ||
879 | def GetValueAsLong(*args, **kwargs): | |
a95a7133 | 880 | """GetValueAsLong(self, int row, int col) -> long""" |
e811c8ce RD |
881 | return _grid.GridTableBase_GetValueAsLong(*args, **kwargs) |
882 | ||
883 | def GetValueAsDouble(*args, **kwargs): | |
a95a7133 | 884 | """GetValueAsDouble(self, int row, int col) -> double""" |
e811c8ce RD |
885 | return _grid.GridTableBase_GetValueAsDouble(*args, **kwargs) |
886 | ||
887 | def GetValueAsBool(*args, **kwargs): | |
a95a7133 | 888 | """GetValueAsBool(self, int row, int col) -> bool""" |
e811c8ce RD |
889 | return _grid.GridTableBase_GetValueAsBool(*args, **kwargs) |
890 | ||
891 | def SetValueAsLong(*args, **kwargs): | |
a95a7133 | 892 | """SetValueAsLong(self, int row, int col, long value)""" |
e811c8ce RD |
893 | return _grid.GridTableBase_SetValueAsLong(*args, **kwargs) |
894 | ||
895 | def SetValueAsDouble(*args, **kwargs): | |
a95a7133 | 896 | """SetValueAsDouble(self, int row, int col, double value)""" |
e811c8ce RD |
897 | return _grid.GridTableBase_SetValueAsDouble(*args, **kwargs) |
898 | ||
899 | def SetValueAsBool(*args, **kwargs): | |
a95a7133 | 900 | """SetValueAsBool(self, int row, int col, bool value)""" |
e811c8ce RD |
901 | return _grid.GridTableBase_SetValueAsBool(*args, **kwargs) |
902 | ||
903 | def Clear(*args, **kwargs): | |
a95a7133 | 904 | """Clear(self)""" |
e811c8ce 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""" |
e811c8ce RD |
909 | return _grid.GridTableBase_InsertRows(*args, **kwargs) |
910 | ||
911 | def AppendRows(*args, **kwargs): | |
a95a7133 | 912 | """AppendRows(self, size_t numRows=1) -> bool""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
921 | return _grid.GridTableBase_InsertCols(*args, **kwargs) |
922 | ||
923 | def AppendCols(*args, **kwargs): | |
a95a7133 | 924 | """AppendCols(self, size_t numCols=1) -> bool""" |
e811c8ce 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""" |
e811c8ce RD |
929 | return _grid.GridTableBase_DeleteCols(*args, **kwargs) |
930 | ||
931 | def GetRowLabelValue(*args, **kwargs): | |
a95a7133 | 932 | """GetRowLabelValue(self, int row) -> String""" |
e811c8ce RD |
933 | return _grid.GridTableBase_GetRowLabelValue(*args, **kwargs) |
934 | ||
935 | def GetColLabelValue(*args, **kwargs): | |
a95a7133 | 936 | """GetColLabelValue(self, int col) -> String""" |
e811c8ce RD |
937 | return _grid.GridTableBase_GetColLabelValue(*args, **kwargs) |
938 | ||
939 | def SetRowLabelValue(*args, **kwargs): | |
a95a7133 | 940 | """SetRowLabelValue(self, int row, String value)""" |
e811c8ce RD |
941 | return _grid.GridTableBase_SetRowLabelValue(*args, **kwargs) |
942 | ||
943 | def SetColLabelValue(*args, **kwargs): | |
a95a7133 | 944 | """SetColLabelValue(self, int col, String value)""" |
e811c8ce RD |
945 | return _grid.GridTableBase_SetColLabelValue(*args, **kwargs) |
946 | ||
947 | def CanHaveAttributes(*args, **kwargs): | |
a95a7133 | 948 | """CanHaveAttributes(self) -> bool""" |
e811c8ce 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""" |
e811c8ce RD |
953 | return _grid.GridTableBase_GetAttr(*args, **kwargs) |
954 | ||
955 | def SetAttr(*args, **kwargs): | |
a95a7133 | 956 | """SetAttr(self, GridCellAttr attr, int row, int col)""" |
e811c8ce RD |
957 | return _grid.GridTableBase_SetAttr(*args, **kwargs) |
958 | ||
959 | def SetRowAttr(*args, **kwargs): | |
a95a7133 | 960 | """SetRowAttr(self, GridCellAttr attr, int row)""" |
e811c8ce RD |
961 | return _grid.GridTableBase_SetRowAttr(*args, **kwargs) |
962 | ||
963 | def SetColAttr(*args, **kwargs): | |
a95a7133 | 964 | """SetColAttr(self, GridCellAttr attr, int col)""" |
e811c8ce 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): |
e811c8ce 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) | |
e811c8ce RD |
985 | |
986 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 987 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
e811c8ce RD |
988 | return _grid.PyGridTableBase__setCallbackInfo(*args, **kwargs) |
989 | ||
990 | def Destroy(*args, **kwargs): | |
0df68c9f | 991 | """ |
a95a7133 | 992 | Destroy(self) |
e811c8ce | 993 | |
0df68c9f RD |
994 | Deletes the C++ object this Python object is a proxy for. |
995 | """ | |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
1008 | return _grid.PyGridTableBase_base_CanSetValueAs(*args, **kwargs) |
1009 | ||
1010 | def base_Clear(*args, **kwargs): | |
a95a7133 | 1011 | """base_Clear(self)""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
1036 | return _grid.PyGridTableBase_base_DeleteCols(*args, **kwargs) |
1037 | ||
1038 | def base_GetRowLabelValue(*args, **kwargs): | |
a95a7133 | 1039 | """base_GetRowLabelValue(self, int row) -> String""" |
e811c8ce RD |
1040 | return _grid.PyGridTableBase_base_GetRowLabelValue(*args, **kwargs) |
1041 | ||
1042 | def base_GetColLabelValue(*args, **kwargs): | |
a95a7133 | 1043 | """base_GetColLabelValue(self, int col) -> String""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce RD |
1052 | return _grid.PyGridTableBase_base_SetColLabelValue(*args, **kwargs) |
1053 | ||
1054 | def base_CanHaveAttributes(*args, **kwargs): | |
a95a7133 | 1055 | """base_CanHaveAttributes(self) -> bool""" |
e811c8ce 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""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce 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)""" |
e811c8ce 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): | |
e811c8ce 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 |
b98a5dfc | 1091 | self._setOORInfo(self) |
e811c8ce | 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): | |
e811c8ce 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 | |
e811c8ce RD |
1123 | |
1124 | def SetTableObject(*args, **kwargs): | |
a95a7133 | 1125 | """SetTableObject(self, GridTableBase table)""" |
e811c8ce RD |
1126 | return _grid.GridTableMessage_SetTableObject(*args, **kwargs) |
1127 | ||
1128 | def GetTableObject(*args, **kwargs): | |
a95a7133 | 1129 | """GetTableObject(self) -> GridTableBase""" |
e811c8ce RD |
1130 | return _grid.GridTableMessage_GetTableObject(*args, **kwargs) |
1131 | ||
1132 | def SetId(*args, **kwargs): | |
a95a7133 | 1133 | """SetId(self, int id)""" |
e811c8ce RD |
1134 | return _grid.GridTableMessage_SetId(*args, **kwargs) |
1135 | ||
1136 | def GetId(*args, **kwargs): | |
a95a7133 | 1137 | """GetId(self) -> int""" |
e811c8ce RD |
1138 | return _grid.GridTableMessage_GetId(*args, **kwargs) |
1139 | ||
1140 | def SetCommandInt(*args, **kwargs): | |
a95a7133 | 1141 | """SetCommandInt(self, int comInt1)""" |
e811c8ce RD |
1142 | return _grid.GridTableMessage_SetCommandInt(*args, **kwargs) |
1143 | ||
1144 | def GetCommandInt(*args, **kwargs): | |
a95a7133 | 1145 | """GetCommandInt(self) -> int""" |
e811c8ce RD |
1146 | return _grid.GridTableMessage_GetCommandInt(*args, **kwargs) |
1147 | ||
1148 | def SetCommandInt2(*args, **kwargs): | |
a95a7133 | 1149 | """SetCommandInt2(self, int comInt2)""" |
e811c8ce RD |
1150 | return _grid.GridTableMessage_SetCommandInt2(*args, **kwargs) |
1151 | ||
1152 | def GetCommandInt2(*args, **kwargs): | |
a95a7133 | 1153 | """GetCommandInt2(self) -> int""" |
e811c8ce 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): | |
e811c8ce 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 | |
e811c8ce RD |
1178 | |
1179 | def GetRow(*args, **kwargs): | |
a95a7133 | 1180 | """GetRow(self) -> int""" |
e811c8ce RD |
1181 | return _grid.GridCellCoords_GetRow(*args, **kwargs) |
1182 | ||
1183 | def SetRow(*args, **kwargs): | |
a95a7133 | 1184 | """SetRow(self, int n)""" |
e811c8ce RD |
1185 | return _grid.GridCellCoords_SetRow(*args, **kwargs) |
1186 | ||
1187 | def GetCol(*args, **kwargs): | |
a95a7133 | 1188 | """GetCol(self) -> int""" |
e811c8ce RD |
1189 | return _grid.GridCellCoords_GetCol(*args, **kwargs) |
1190 | ||
1191 | def SetCol(*args, **kwargs): | |
a95a7133 | 1192 | """SetCol(self, int n)""" |
e811c8ce RD |
1193 | return _grid.GridCellCoords_SetCol(*args, **kwargs) |
1194 | ||
1195 | def Set(*args, **kwargs): | |
a95a7133 | 1196 | """Set(self, int row, int col)""" |
e811c8ce RD |
1197 | return _grid.GridCellCoords_Set(*args, **kwargs) |
1198 | ||
1199 | def __eq__(*args, **kwargs): | |
a95a7133 | 1200 | """__eq__(self, GridCellCoords other) -> bool""" |
e811c8ce RD |
1201 | return _grid.GridCellCoords___eq__(*args, **kwargs) |
1202 | ||
1203 | def __ne__(*args, **kwargs): | |
a95a7133 | 1204 | """__ne__(self, GridCellCoords other) -> bool""" |
e811c8ce RD |
1205 | return _grid.GridCellCoords___ne__(*args, **kwargs) |
1206 | ||
41e2b43e 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()) | |
b67a9327 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 | ||
54f9ee45 | 1229 | class Grid(_windows.ScrolledWindow): |
e811c8ce 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): |
0df68c9f | 1233 | """ |
248ed943 RD |
1234 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1235 | Size size=DefaultSize, long style=WANTS_CHARS, | |
196addbf | 1236 | String name=PanelNameStr) -> Grid |
0df68c9f | 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 |
0220cbc1 | 1242 | self._setOORInfo(self) |
e811c8ce | 1243 | |
1a10c483 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, | |
1a10c483 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 | |
33b885b9 RD |
1255 | SelectCells = wxGridSelectCells |
1256 | SelectRows = wxGridSelectRows | |
4276dc52 | 1257 | SelectColumns = wxGridSelectColumns |
33b885b9 | 1258 | |
e811c8ce | 1259 | def CreateGrid(*args, **kwargs): |
a95a7133 | 1260 | """CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool""" |
e811c8ce RD |
1261 | return _grid.Grid_CreateGrid(*args, **kwargs) |
1262 | ||
1263 | def SetSelectionMode(*args, **kwargs): | |
a95a7133 | 1264 | """SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)""" |
e811c8ce RD |
1265 | return _grid.Grid_SetSelectionMode(*args, **kwargs) |
1266 | ||
1267 | def GetSelectionMode(*args, **kwargs): | |
a95a7133 | 1268 | """GetSelectionMode(self) -> WXGRIDSELECTIONMODES""" |
e811c8ce RD |
1269 | return _grid.Grid_GetSelectionMode(*args, **kwargs) |
1270 | ||
1271 | def GetNumberRows(*args, **kwargs): | |
a95a7133 | 1272 | """GetNumberRows(self) -> int""" |
e811c8ce RD |
1273 | return _grid.Grid_GetNumberRows(*args, **kwargs) |
1274 | ||
1275 | def GetNumberCols(*args, **kwargs): | |
a95a7133 | 1276 | """GetNumberCols(self) -> int""" |
e811c8ce RD |
1277 | return _grid.Grid_GetNumberCols(*args, **kwargs) |
1278 | ||
1279 | def ProcessTableMessage(*args, **kwargs): | |
a95a7133 | 1280 | """ProcessTableMessage(self, GridTableMessage ??) -> bool""" |
e811c8ce RD |
1281 | return _grid.Grid_ProcessTableMessage(*args, **kwargs) |
1282 | ||
1283 | def GetTable(*args, **kwargs): | |
a95a7133 | 1284 | """GetTable(self) -> GridTableBase""" |
e811c8ce 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""" |
e811c8ce RD |
1289 | return _grid.Grid_SetTable(*args, **kwargs) |
1290 | ||
1291 | def ClearGrid(*args, **kwargs): | |
a95a7133 | 1292 | """ClearGrid(self)""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce 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""" |
e811c8ce RD |
1317 | return _grid.Grid_DeleteCols(*args, **kwargs) |
1318 | ||
1319 | def DrawCellHighlight(*args, **kwargs): | |
a95a7133 | 1320 | """DrawCellHighlight(self, DC dc, GridCellAttr attr)""" |
e811c8ce RD |
1321 | return _grid.Grid_DrawCellHighlight(*args, **kwargs) |
1322 | ||
1323 | def DrawTextRectangle(*args, **kwargs): | |
0df68c9f | 1324 | """ |
a95a7133 | 1325 | DrawTextRectangle(self, DC dc, String ??, Rect ??, int horizontalAlignment=LEFT, |
0df68c9f RD |
1326 | int verticalAlignment=TOP, int textOrientation=HORIZONTAL) |
1327 | """ | |
e811c8ce RD |
1328 | return _grid.Grid_DrawTextRectangle(*args, **kwargs) |
1329 | ||
1330 | def GetTextBoxSize(*args, **kwargs): | |
322913ce | 1331 | """GetTextBoxSize(DC dc, list lines) -> (width, height)""" |
e811c8ce RD |
1332 | return _grid.Grid_GetTextBoxSize(*args, **kwargs) |
1333 | ||
1334 | def BeginBatch(*args, **kwargs): | |
a95a7133 | 1335 | """BeginBatch(self)""" |
e811c8ce RD |
1336 | return _grid.Grid_BeginBatch(*args, **kwargs) |
1337 | ||
1338 | def EndBatch(*args, **kwargs): | |
a95a7133 | 1339 | """EndBatch(self)""" |
e811c8ce RD |
1340 | return _grid.Grid_EndBatch(*args, **kwargs) |
1341 | ||
1342 | def GetBatchCount(*args, **kwargs): | |
a95a7133 | 1343 | """GetBatchCount(self) -> int""" |
e811c8ce RD |
1344 | return _grid.Grid_GetBatchCount(*args, **kwargs) |
1345 | ||
1346 | def ForceRefresh(*args, **kwargs): | |
a95a7133 | 1347 | """ForceRefresh(self)""" |
e811c8ce RD |
1348 | return _grid.Grid_ForceRefresh(*args, **kwargs) |
1349 | ||
e811c8ce | 1350 | def IsEditable(*args, **kwargs): |
a95a7133 | 1351 | """IsEditable(self) -> bool""" |
e811c8ce RD |
1352 | return _grid.Grid_IsEditable(*args, **kwargs) |
1353 | ||
1354 | def EnableEditing(*args, **kwargs): | |
a95a7133 | 1355 | """EnableEditing(self, bool edit)""" |
e811c8ce RD |
1356 | return _grid.Grid_EnableEditing(*args, **kwargs) |
1357 | ||
1358 | def EnableCellEditControl(*args, **kwargs): | |
a95a7133 | 1359 | """EnableCellEditControl(self, bool enable=True)""" |
e811c8ce RD |
1360 | return _grid.Grid_EnableCellEditControl(*args, **kwargs) |
1361 | ||
1362 | def DisableCellEditControl(*args, **kwargs): | |
a95a7133 | 1363 | """DisableCellEditControl(self)""" |
e811c8ce RD |
1364 | return _grid.Grid_DisableCellEditControl(*args, **kwargs) |
1365 | ||
1366 | def CanEnableCellControl(*args, **kwargs): | |
a95a7133 | 1367 | """CanEnableCellControl(self) -> bool""" |
e811c8ce RD |
1368 | return _grid.Grid_CanEnableCellControl(*args, **kwargs) |
1369 | ||
1370 | def IsCellEditControlEnabled(*args, **kwargs): | |
a95a7133 | 1371 | """IsCellEditControlEnabled(self) -> bool""" |
e811c8ce RD |
1372 | return _grid.Grid_IsCellEditControlEnabled(*args, **kwargs) |
1373 | ||
1374 | def IsCellEditControlShown(*args, **kwargs): | |
a95a7133 | 1375 | """IsCellEditControlShown(self) -> bool""" |
e811c8ce RD |
1376 | return _grid.Grid_IsCellEditControlShown(*args, **kwargs) |
1377 | ||
1378 | def IsCurrentCellReadOnly(*args, **kwargs): | |
a95a7133 | 1379 | """IsCurrentCellReadOnly(self) -> bool""" |
e811c8ce RD |
1380 | return _grid.Grid_IsCurrentCellReadOnly(*args, **kwargs) |
1381 | ||
1382 | def ShowCellEditControl(*args, **kwargs): | |
a95a7133 | 1383 | """ShowCellEditControl(self)""" |
e811c8ce RD |
1384 | return _grid.Grid_ShowCellEditControl(*args, **kwargs) |
1385 | ||
1386 | def HideCellEditControl(*args, **kwargs): | |
a95a7133 | 1387 | """HideCellEditControl(self)""" |
e811c8ce RD |
1388 | return _grid.Grid_HideCellEditControl(*args, **kwargs) |
1389 | ||
1390 | def SaveEditControlValue(*args, **kwargs): | |
a95a7133 | 1391 | """SaveEditControlValue(self)""" |
e811c8ce RD |
1392 | return _grid.Grid_SaveEditControlValue(*args, **kwargs) |
1393 | ||
1394 | def XYToCell(*args, **kwargs): | |
a95a7133 | 1395 | """XYToCell(self, int x, int y) -> GridCellCoords""" |
e811c8ce RD |
1396 | return _grid.Grid_XYToCell(*args, **kwargs) |
1397 | ||
1398 | def YToRow(*args, **kwargs): | |
a95a7133 | 1399 | """YToRow(self, int y) -> int""" |
e811c8ce RD |
1400 | return _grid.Grid_YToRow(*args, **kwargs) |
1401 | ||
1402 | def XToCol(*args, **kwargs): | |
a95a7133 | 1403 | """XToCol(self, int x) -> int""" |
e811c8ce RD |
1404 | return _grid.Grid_XToCol(*args, **kwargs) |
1405 | ||
1406 | def YToEdgeOfRow(*args, **kwargs): | |
a95a7133 | 1407 | """YToEdgeOfRow(self, int y) -> int""" |
e811c8ce RD |
1408 | return _grid.Grid_YToEdgeOfRow(*args, **kwargs) |
1409 | ||
1410 | def XToEdgeOfCol(*args, **kwargs): | |
a95a7133 | 1411 | """XToEdgeOfCol(self, int x) -> int""" |
e811c8ce RD |
1412 | return _grid.Grid_XToEdgeOfCol(*args, **kwargs) |
1413 | ||
1414 | def CellToRect(*args, **kwargs): | |
a95a7133 | 1415 | """CellToRect(self, int row, int col) -> Rect""" |
e811c8ce RD |
1416 | return _grid.Grid_CellToRect(*args, **kwargs) |
1417 | ||
1418 | def GetGridCursorRow(*args, **kwargs): | |
a95a7133 | 1419 | """GetGridCursorRow(self) -> int""" |
e811c8ce RD |
1420 | return _grid.Grid_GetGridCursorRow(*args, **kwargs) |
1421 | ||
1422 | def GetGridCursorCol(*args, **kwargs): | |
a95a7133 | 1423 | """GetGridCursorCol(self) -> int""" |
e811c8ce 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""" |
e811c8ce RD |
1428 | return _grid.Grid_IsVisible(*args, **kwargs) |
1429 | ||
1430 | def MakeCellVisible(*args, **kwargs): | |
a95a7133 | 1431 | """MakeCellVisible(self, int row, int col)""" |
e811c8ce RD |
1432 | return _grid.Grid_MakeCellVisible(*args, **kwargs) |
1433 | ||
1434 | def SetGridCursor(*args, **kwargs): | |
a95a7133 | 1435 | """SetGridCursor(self, int row, int col)""" |
e811c8ce RD |
1436 | return _grid.Grid_SetGridCursor(*args, **kwargs) |
1437 | ||
1438 | def MoveCursorUp(*args, **kwargs): | |
a95a7133 | 1439 | """MoveCursorUp(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1440 | return _grid.Grid_MoveCursorUp(*args, **kwargs) |
1441 | ||
1442 | def MoveCursorDown(*args, **kwargs): | |
a95a7133 | 1443 | """MoveCursorDown(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1444 | return _grid.Grid_MoveCursorDown(*args, **kwargs) |
1445 | ||
1446 | def MoveCursorLeft(*args, **kwargs): | |
a95a7133 | 1447 | """MoveCursorLeft(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1448 | return _grid.Grid_MoveCursorLeft(*args, **kwargs) |
1449 | ||
1450 | def MoveCursorRight(*args, **kwargs): | |
a95a7133 | 1451 | """MoveCursorRight(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1452 | return _grid.Grid_MoveCursorRight(*args, **kwargs) |
1453 | ||
1454 | def MovePageDown(*args, **kwargs): | |
a95a7133 | 1455 | """MovePageDown(self) -> bool""" |
e811c8ce RD |
1456 | return _grid.Grid_MovePageDown(*args, **kwargs) |
1457 | ||
1458 | def MovePageUp(*args, **kwargs): | |
a95a7133 | 1459 | """MovePageUp(self) -> bool""" |
e811c8ce RD |
1460 | return _grid.Grid_MovePageUp(*args, **kwargs) |
1461 | ||
1462 | def MoveCursorUpBlock(*args, **kwargs): | |
a95a7133 | 1463 | """MoveCursorUpBlock(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1464 | return _grid.Grid_MoveCursorUpBlock(*args, **kwargs) |
1465 | ||
1466 | def MoveCursorDownBlock(*args, **kwargs): | |
a95a7133 | 1467 | """MoveCursorDownBlock(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1468 | return _grid.Grid_MoveCursorDownBlock(*args, **kwargs) |
1469 | ||
1470 | def MoveCursorLeftBlock(*args, **kwargs): | |
a95a7133 | 1471 | """MoveCursorLeftBlock(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1472 | return _grid.Grid_MoveCursorLeftBlock(*args, **kwargs) |
1473 | ||
1474 | def MoveCursorRightBlock(*args, **kwargs): | |
a95a7133 | 1475 | """MoveCursorRightBlock(self, bool expandSelection) -> bool""" |
e811c8ce RD |
1476 | return _grid.Grid_MoveCursorRightBlock(*args, **kwargs) |
1477 | ||
1478 | def GetDefaultRowLabelSize(*args, **kwargs): | |
a95a7133 | 1479 | """GetDefaultRowLabelSize(self) -> int""" |
e811c8ce RD |
1480 | return _grid.Grid_GetDefaultRowLabelSize(*args, **kwargs) |
1481 | ||
1482 | def GetRowLabelSize(*args, **kwargs): | |
a95a7133 | 1483 | """GetRowLabelSize(self) -> int""" |
e811c8ce RD |
1484 | return _grid.Grid_GetRowLabelSize(*args, **kwargs) |
1485 | ||
1486 | def GetDefaultColLabelSize(*args, **kwargs): | |
a95a7133 | 1487 | """GetDefaultColLabelSize(self) -> int""" |
e811c8ce RD |
1488 | return _grid.Grid_GetDefaultColLabelSize(*args, **kwargs) |
1489 | ||
1490 | def GetColLabelSize(*args, **kwargs): | |
a95a7133 | 1491 | """GetColLabelSize(self) -> int""" |
e811c8ce RD |
1492 | return _grid.Grid_GetColLabelSize(*args, **kwargs) |
1493 | ||
1494 | def GetLabelBackgroundColour(*args, **kwargs): | |
a95a7133 | 1495 | """GetLabelBackgroundColour(self) -> Colour""" |
e811c8ce RD |
1496 | return _grid.Grid_GetLabelBackgroundColour(*args, **kwargs) |
1497 | ||
1498 | def GetLabelTextColour(*args, **kwargs): | |
a95a7133 | 1499 | """GetLabelTextColour(self) -> Colour""" |
e811c8ce RD |
1500 | return _grid.Grid_GetLabelTextColour(*args, **kwargs) |
1501 | ||
1502 | def GetLabelFont(*args, **kwargs): | |
a95a7133 | 1503 | """GetLabelFont(self) -> Font""" |
e811c8ce RD |
1504 | return _grid.Grid_GetLabelFont(*args, **kwargs) |
1505 | ||
1506 | def GetRowLabelAlignment(*args, **kwargs): | |
322913ce | 1507 | """GetRowLabelAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1508 | return _grid.Grid_GetRowLabelAlignment(*args, **kwargs) |
1509 | ||
1510 | def GetColLabelAlignment(*args, **kwargs): | |
322913ce | 1511 | """GetColLabelAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1512 | return _grid.Grid_GetColLabelAlignment(*args, **kwargs) |
1513 | ||
1514 | def GetColLabelTextOrientation(*args, **kwargs): | |
a95a7133 | 1515 | """GetColLabelTextOrientation(self) -> int""" |
e811c8ce RD |
1516 | return _grid.Grid_GetColLabelTextOrientation(*args, **kwargs) |
1517 | ||
1518 | def GetRowLabelValue(*args, **kwargs): | |
a95a7133 | 1519 | """GetRowLabelValue(self, int row) -> String""" |
e811c8ce RD |
1520 | return _grid.Grid_GetRowLabelValue(*args, **kwargs) |
1521 | ||
1522 | def GetColLabelValue(*args, **kwargs): | |
a95a7133 | 1523 | """GetColLabelValue(self, int col) -> String""" |
e811c8ce RD |
1524 | return _grid.Grid_GetColLabelValue(*args, **kwargs) |
1525 | ||
1526 | def GetGridLineColour(*args, **kwargs): | |
a95a7133 | 1527 | """GetGridLineColour(self) -> Colour""" |
e811c8ce RD |
1528 | return _grid.Grid_GetGridLineColour(*args, **kwargs) |
1529 | ||
1530 | def GetCellHighlightColour(*args, **kwargs): | |
a95a7133 | 1531 | """GetCellHighlightColour(self) -> Colour""" |
e811c8ce RD |
1532 | return _grid.Grid_GetCellHighlightColour(*args, **kwargs) |
1533 | ||
1534 | def GetCellHighlightPenWidth(*args, **kwargs): | |
a95a7133 | 1535 | """GetCellHighlightPenWidth(self) -> int""" |
e811c8ce RD |
1536 | return _grid.Grid_GetCellHighlightPenWidth(*args, **kwargs) |
1537 | ||
1538 | def GetCellHighlightROPenWidth(*args, **kwargs): | |
a95a7133 | 1539 | """GetCellHighlightROPenWidth(self) -> int""" |
e811c8ce RD |
1540 | return _grid.Grid_GetCellHighlightROPenWidth(*args, **kwargs) |
1541 | ||
1542 | def SetRowLabelSize(*args, **kwargs): | |
a95a7133 | 1543 | """SetRowLabelSize(self, int width)""" |
e811c8ce RD |
1544 | return _grid.Grid_SetRowLabelSize(*args, **kwargs) |
1545 | ||
1546 | def SetColLabelSize(*args, **kwargs): | |
a95a7133 | 1547 | """SetColLabelSize(self, int height)""" |
e811c8ce RD |
1548 | return _grid.Grid_SetColLabelSize(*args, **kwargs) |
1549 | ||
1550 | def SetLabelBackgroundColour(*args, **kwargs): | |
a95a7133 | 1551 | """SetLabelBackgroundColour(self, Colour ??)""" |
e811c8ce RD |
1552 | return _grid.Grid_SetLabelBackgroundColour(*args, **kwargs) |
1553 | ||
1554 | def SetLabelTextColour(*args, **kwargs): | |
a95a7133 | 1555 | """SetLabelTextColour(self, Colour ??)""" |
e811c8ce RD |
1556 | return _grid.Grid_SetLabelTextColour(*args, **kwargs) |
1557 | ||
1558 | def SetLabelFont(*args, **kwargs): | |
a95a7133 | 1559 | """SetLabelFont(self, Font ??)""" |
e811c8ce RD |
1560 | return _grid.Grid_SetLabelFont(*args, **kwargs) |
1561 | ||
1562 | def SetRowLabelAlignment(*args, **kwargs): | |
a95a7133 | 1563 | """SetRowLabelAlignment(self, int horiz, int vert)""" |
e811c8ce RD |
1564 | return _grid.Grid_SetRowLabelAlignment(*args, **kwargs) |
1565 | ||
1566 | def SetColLabelAlignment(*args, **kwargs): | |
a95a7133 | 1567 | """SetColLabelAlignment(self, int horiz, int vert)""" |
e811c8ce RD |
1568 | return _grid.Grid_SetColLabelAlignment(*args, **kwargs) |
1569 | ||
1570 | def SetColLabelTextOrientation(*args, **kwargs): | |
a95a7133 | 1571 | """SetColLabelTextOrientation(self, int textOrientation)""" |
e811c8ce RD |
1572 | return _grid.Grid_SetColLabelTextOrientation(*args, **kwargs) |
1573 | ||
1574 | def SetRowLabelValue(*args, **kwargs): | |
a95a7133 | 1575 | """SetRowLabelValue(self, int row, String ??)""" |
e811c8ce RD |
1576 | return _grid.Grid_SetRowLabelValue(*args, **kwargs) |
1577 | ||
1578 | def SetColLabelValue(*args, **kwargs): | |
a95a7133 | 1579 | """SetColLabelValue(self, int col, String ??)""" |
e811c8ce RD |
1580 | return _grid.Grid_SetColLabelValue(*args, **kwargs) |
1581 | ||
1582 | def SetGridLineColour(*args, **kwargs): | |
a95a7133 | 1583 | """SetGridLineColour(self, Colour ??)""" |
e811c8ce RD |
1584 | return _grid.Grid_SetGridLineColour(*args, **kwargs) |
1585 | ||
1586 | def SetCellHighlightColour(*args, **kwargs): | |
a95a7133 | 1587 | """SetCellHighlightColour(self, Colour ??)""" |
e811c8ce RD |
1588 | return _grid.Grid_SetCellHighlightColour(*args, **kwargs) |
1589 | ||
1590 | def SetCellHighlightPenWidth(*args, **kwargs): | |
a95a7133 | 1591 | """SetCellHighlightPenWidth(self, int width)""" |
e811c8ce RD |
1592 | return _grid.Grid_SetCellHighlightPenWidth(*args, **kwargs) |
1593 | ||
1594 | def SetCellHighlightROPenWidth(*args, **kwargs): | |
a95a7133 | 1595 | """SetCellHighlightROPenWidth(self, int width)""" |
e811c8ce RD |
1596 | return _grid.Grid_SetCellHighlightROPenWidth(*args, **kwargs) |
1597 | ||
1598 | def EnableDragRowSize(*args, **kwargs): | |
a95a7133 | 1599 | """EnableDragRowSize(self, bool enable=True)""" |
e811c8ce RD |
1600 | return _grid.Grid_EnableDragRowSize(*args, **kwargs) |
1601 | ||
1602 | def DisableDragRowSize(*args, **kwargs): | |
a95a7133 | 1603 | """DisableDragRowSize(self)""" |
e811c8ce RD |
1604 | return _grid.Grid_DisableDragRowSize(*args, **kwargs) |
1605 | ||
1606 | def CanDragRowSize(*args, **kwargs): | |
a95a7133 | 1607 | """CanDragRowSize(self) -> bool""" |
e811c8ce RD |
1608 | return _grid.Grid_CanDragRowSize(*args, **kwargs) |
1609 | ||
1610 | def EnableDragColSize(*args, **kwargs): | |
a95a7133 | 1611 | """EnableDragColSize(self, bool enable=True)""" |
e811c8ce RD |
1612 | return _grid.Grid_EnableDragColSize(*args, **kwargs) |
1613 | ||
1614 | def DisableDragColSize(*args, **kwargs): | |
a95a7133 | 1615 | """DisableDragColSize(self)""" |
e811c8ce RD |
1616 | return _grid.Grid_DisableDragColSize(*args, **kwargs) |
1617 | ||
1618 | def CanDragColSize(*args, **kwargs): | |
a95a7133 | 1619 | """CanDragColSize(self) -> bool""" |
e811c8ce RD |
1620 | return _grid.Grid_CanDragColSize(*args, **kwargs) |
1621 | ||
1622 | def EnableDragGridSize(*args, **kwargs): | |
a95a7133 | 1623 | """EnableDragGridSize(self, bool enable=True)""" |
e811c8ce RD |
1624 | return _grid.Grid_EnableDragGridSize(*args, **kwargs) |
1625 | ||
1626 | def DisableDragGridSize(*args, **kwargs): | |
a95a7133 | 1627 | """DisableDragGridSize(self)""" |
e811c8ce RD |
1628 | return _grid.Grid_DisableDragGridSize(*args, **kwargs) |
1629 | ||
1630 | def CanDragGridSize(*args, **kwargs): | |
a95a7133 | 1631 | """CanDragGridSize(self) -> bool""" |
e811c8ce RD |
1632 | return _grid.Grid_CanDragGridSize(*args, **kwargs) |
1633 | ||
1634 | def SetAttr(*args, **kwargs): | |
a95a7133 | 1635 | """SetAttr(self, int row, int col, GridCellAttr attr)""" |
e811c8ce RD |
1636 | return _grid.Grid_SetAttr(*args, **kwargs) |
1637 | ||
1638 | def SetRowAttr(*args, **kwargs): | |
a95a7133 | 1639 | """SetRowAttr(self, int row, GridCellAttr attr)""" |
e811c8ce RD |
1640 | return _grid.Grid_SetRowAttr(*args, **kwargs) |
1641 | ||
1642 | def SetColAttr(*args, **kwargs): | |
a95a7133 | 1643 | """SetColAttr(self, int col, GridCellAttr attr)""" |
e811c8ce RD |
1644 | return _grid.Grid_SetColAttr(*args, **kwargs) |
1645 | ||
1646 | def SetColFormatBool(*args, **kwargs): | |
a95a7133 | 1647 | """SetColFormatBool(self, int col)""" |
e811c8ce RD |
1648 | return _grid.Grid_SetColFormatBool(*args, **kwargs) |
1649 | ||
1650 | def SetColFormatNumber(*args, **kwargs): | |
a95a7133 | 1651 | """SetColFormatNumber(self, int col)""" |
e811c8ce RD |
1652 | return _grid.Grid_SetColFormatNumber(*args, **kwargs) |
1653 | ||
1654 | def SetColFormatFloat(*args, **kwargs): | |
a95a7133 | 1655 | """SetColFormatFloat(self, int col, int width=-1, int precision=-1)""" |
e811c8ce RD |
1656 | return _grid.Grid_SetColFormatFloat(*args, **kwargs) |
1657 | ||
1658 | def SetColFormatCustom(*args, **kwargs): | |
a95a7133 | 1659 | """SetColFormatCustom(self, int col, String typeName)""" |
e811c8ce RD |
1660 | return _grid.Grid_SetColFormatCustom(*args, **kwargs) |
1661 | ||
1662 | def EnableGridLines(*args, **kwargs): | |
a95a7133 | 1663 | """EnableGridLines(self, bool enable=True)""" |
e811c8ce RD |
1664 | return _grid.Grid_EnableGridLines(*args, **kwargs) |
1665 | ||
1666 | def GridLinesEnabled(*args, **kwargs): | |
a95a7133 | 1667 | """GridLinesEnabled(self) -> bool""" |
e811c8ce RD |
1668 | return _grid.Grid_GridLinesEnabled(*args, **kwargs) |
1669 | ||
1670 | def GetDefaultRowSize(*args, **kwargs): | |
a95a7133 | 1671 | """GetDefaultRowSize(self) -> int""" |
e811c8ce RD |
1672 | return _grid.Grid_GetDefaultRowSize(*args, **kwargs) |
1673 | ||
1674 | def GetRowSize(*args, **kwargs): | |
a95a7133 | 1675 | """GetRowSize(self, int row) -> int""" |
e811c8ce RD |
1676 | return _grid.Grid_GetRowSize(*args, **kwargs) |
1677 | ||
1678 | def GetDefaultColSize(*args, **kwargs): | |
a95a7133 | 1679 | """GetDefaultColSize(self) -> int""" |
e811c8ce RD |
1680 | return _grid.Grid_GetDefaultColSize(*args, **kwargs) |
1681 | ||
1682 | def GetColSize(*args, **kwargs): | |
a95a7133 | 1683 | """GetColSize(self, int col) -> int""" |
e811c8ce RD |
1684 | return _grid.Grid_GetColSize(*args, **kwargs) |
1685 | ||
1686 | def GetDefaultCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1687 | """GetDefaultCellBackgroundColour(self) -> Colour""" |
e811c8ce RD |
1688 | return _grid.Grid_GetDefaultCellBackgroundColour(*args, **kwargs) |
1689 | ||
1690 | def GetCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1691 | """GetCellBackgroundColour(self, int row, int col) -> Colour""" |
e811c8ce RD |
1692 | return _grid.Grid_GetCellBackgroundColour(*args, **kwargs) |
1693 | ||
1694 | def GetDefaultCellTextColour(*args, **kwargs): | |
a95a7133 | 1695 | """GetDefaultCellTextColour(self) -> Colour""" |
e811c8ce RD |
1696 | return _grid.Grid_GetDefaultCellTextColour(*args, **kwargs) |
1697 | ||
1698 | def GetCellTextColour(*args, **kwargs): | |
a95a7133 | 1699 | """GetCellTextColour(self, int row, int col) -> Colour""" |
e811c8ce RD |
1700 | return _grid.Grid_GetCellTextColour(*args, **kwargs) |
1701 | ||
1702 | def GetDefaultCellFont(*args, **kwargs): | |
a95a7133 | 1703 | """GetDefaultCellFont(self) -> Font""" |
e811c8ce RD |
1704 | return _grid.Grid_GetDefaultCellFont(*args, **kwargs) |
1705 | ||
1706 | def GetCellFont(*args, **kwargs): | |
a95a7133 | 1707 | """GetCellFont(self, int row, int col) -> Font""" |
e811c8ce RD |
1708 | return _grid.Grid_GetCellFont(*args, **kwargs) |
1709 | ||
1710 | def GetDefaultCellAlignment(*args, **kwargs): | |
322913ce | 1711 | """GetDefaultCellAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1712 | return _grid.Grid_GetDefaultCellAlignment(*args, **kwargs) |
1713 | ||
1714 | def GetCellAlignment(*args, **kwargs): | |
322913ce | 1715 | """GetCellAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1716 | return _grid.Grid_GetCellAlignment(*args, **kwargs) |
1717 | ||
1718 | def GetDefaultCellOverflow(*args, **kwargs): | |
a95a7133 | 1719 | """GetDefaultCellOverflow(self) -> bool""" |
e811c8ce RD |
1720 | return _grid.Grid_GetDefaultCellOverflow(*args, **kwargs) |
1721 | ||
1722 | def GetCellOverflow(*args, **kwargs): | |
a95a7133 | 1723 | """GetCellOverflow(self, int row, int col) -> bool""" |
e811c8ce RD |
1724 | return _grid.Grid_GetCellOverflow(*args, **kwargs) |
1725 | ||
1726 | def GetCellSize(*args, **kwargs): | |
322913ce | 1727 | """GetCellSize(int row, int col) -> (num_rows, num_cols)""" |
e811c8ce RD |
1728 | return _grid.Grid_GetCellSize(*args, **kwargs) |
1729 | ||
1730 | def SetDefaultRowSize(*args, **kwargs): | |
a95a7133 | 1731 | """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)""" |
e811c8ce RD |
1732 | return _grid.Grid_SetDefaultRowSize(*args, **kwargs) |
1733 | ||
1734 | def SetRowSize(*args, **kwargs): | |
a95a7133 | 1735 | """SetRowSize(self, int row, int height)""" |
e811c8ce RD |
1736 | return _grid.Grid_SetRowSize(*args, **kwargs) |
1737 | ||
1738 | def SetDefaultColSize(*args, **kwargs): | |
a95a7133 | 1739 | """SetDefaultColSize(self, int width, bool resizeExistingCols=False)""" |
e811c8ce RD |
1740 | return _grid.Grid_SetDefaultColSize(*args, **kwargs) |
1741 | ||
1742 | def SetColSize(*args, **kwargs): | |
a95a7133 | 1743 | """SetColSize(self, int col, int width)""" |
e811c8ce RD |
1744 | return _grid.Grid_SetColSize(*args, **kwargs) |
1745 | ||
1746 | def AutoSizeColumn(*args, **kwargs): | |
a95a7133 | 1747 | """AutoSizeColumn(self, int col, bool setAsMin=True)""" |
e811c8ce RD |
1748 | return _grid.Grid_AutoSizeColumn(*args, **kwargs) |
1749 | ||
1750 | def AutoSizeRow(*args, **kwargs): | |
a95a7133 | 1751 | """AutoSizeRow(self, int row, bool setAsMin=True)""" |
e811c8ce RD |
1752 | return _grid.Grid_AutoSizeRow(*args, **kwargs) |
1753 | ||
1754 | def AutoSizeColumns(*args, **kwargs): | |
a95a7133 | 1755 | """AutoSizeColumns(self, bool setAsMin=True)""" |
e811c8ce RD |
1756 | return _grid.Grid_AutoSizeColumns(*args, **kwargs) |
1757 | ||
1758 | def AutoSizeRows(*args, **kwargs): | |
a95a7133 | 1759 | """AutoSizeRows(self, bool setAsMin=True)""" |
e811c8ce RD |
1760 | return _grid.Grid_AutoSizeRows(*args, **kwargs) |
1761 | ||
1762 | def AutoSize(*args, **kwargs): | |
a95a7133 | 1763 | """AutoSize(self)""" |
e811c8ce RD |
1764 | return _grid.Grid_AutoSize(*args, **kwargs) |
1765 | ||
1766 | def AutoSizeRowLabelSize(*args, **kwargs): | |
a95a7133 | 1767 | """AutoSizeRowLabelSize(self, int row)""" |
e811c8ce RD |
1768 | return _grid.Grid_AutoSizeRowLabelSize(*args, **kwargs) |
1769 | ||
1770 | def AutoSizeColLabelSize(*args, **kwargs): | |
a95a7133 | 1771 | """AutoSizeColLabelSize(self, int col)""" |
e811c8ce RD |
1772 | return _grid.Grid_AutoSizeColLabelSize(*args, **kwargs) |
1773 | ||
1774 | def SetColMinimalWidth(*args, **kwargs): | |
a95a7133 | 1775 | """SetColMinimalWidth(self, int col, int width)""" |
e811c8ce RD |
1776 | return _grid.Grid_SetColMinimalWidth(*args, **kwargs) |
1777 | ||
1778 | def SetRowMinimalHeight(*args, **kwargs): | |
a95a7133 | 1779 | """SetRowMinimalHeight(self, int row, int width)""" |
e811c8ce RD |
1780 | return _grid.Grid_SetRowMinimalHeight(*args, **kwargs) |
1781 | ||
1782 | def SetColMinimalAcceptableWidth(*args, **kwargs): | |
a95a7133 | 1783 | """SetColMinimalAcceptableWidth(self, int width)""" |
e811c8ce RD |
1784 | return _grid.Grid_SetColMinimalAcceptableWidth(*args, **kwargs) |
1785 | ||
1786 | def SetRowMinimalAcceptableHeight(*args, **kwargs): | |
a95a7133 | 1787 | """SetRowMinimalAcceptableHeight(self, int width)""" |
e811c8ce RD |
1788 | return _grid.Grid_SetRowMinimalAcceptableHeight(*args, **kwargs) |
1789 | ||
1790 | def GetColMinimalAcceptableWidth(*args, **kwargs): | |
a95a7133 | 1791 | """GetColMinimalAcceptableWidth(self) -> int""" |
e811c8ce RD |
1792 | return _grid.Grid_GetColMinimalAcceptableWidth(*args, **kwargs) |
1793 | ||
1794 | def GetRowMinimalAcceptableHeight(*args, **kwargs): | |
a95a7133 | 1795 | """GetRowMinimalAcceptableHeight(self) -> int""" |
e811c8ce RD |
1796 | return _grid.Grid_GetRowMinimalAcceptableHeight(*args, **kwargs) |
1797 | ||
1798 | def SetDefaultCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1799 | """SetDefaultCellBackgroundColour(self, Colour ??)""" |
e811c8ce RD |
1800 | return _grid.Grid_SetDefaultCellBackgroundColour(*args, **kwargs) |
1801 | ||
1802 | def SetCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1803 | """SetCellBackgroundColour(self, int row, int col, Colour ??)""" |
e811c8ce RD |
1804 | return _grid.Grid_SetCellBackgroundColour(*args, **kwargs) |
1805 | ||
1806 | def SetDefaultCellTextColour(*args, **kwargs): | |
a95a7133 | 1807 | """SetDefaultCellTextColour(self, Colour ??)""" |
e811c8ce RD |
1808 | return _grid.Grid_SetDefaultCellTextColour(*args, **kwargs) |
1809 | ||
1810 | def SetCellTextColour(*args, **kwargs): | |
a95a7133 | 1811 | """SetCellTextColour(self, int row, int col, Colour ??)""" |
e811c8ce RD |
1812 | return _grid.Grid_SetCellTextColour(*args, **kwargs) |
1813 | ||
1814 | def SetDefaultCellFont(*args, **kwargs): | |
a95a7133 | 1815 | """SetDefaultCellFont(self, Font ??)""" |
e811c8ce RD |
1816 | return _grid.Grid_SetDefaultCellFont(*args, **kwargs) |
1817 | ||
1818 | def SetCellFont(*args, **kwargs): | |
a95a7133 | 1819 | """SetCellFont(self, int row, int col, Font ??)""" |
e811c8ce RD |
1820 | return _grid.Grid_SetCellFont(*args, **kwargs) |
1821 | ||
1822 | def SetDefaultCellAlignment(*args, **kwargs): | |
a95a7133 | 1823 | """SetDefaultCellAlignment(self, int horiz, int vert)""" |
e811c8ce RD |
1824 | return _grid.Grid_SetDefaultCellAlignment(*args, **kwargs) |
1825 | ||
1826 | def SetCellAlignment(*args, **kwargs): | |
a95a7133 | 1827 | """SetCellAlignment(self, int row, int col, int horiz, int vert)""" |
e811c8ce RD |
1828 | return _grid.Grid_SetCellAlignment(*args, **kwargs) |
1829 | ||
1830 | def SetDefaultCellOverflow(*args, **kwargs): | |
a95a7133 | 1831 | """SetDefaultCellOverflow(self, bool allow)""" |
e811c8ce RD |
1832 | return _grid.Grid_SetDefaultCellOverflow(*args, **kwargs) |
1833 | ||
1834 | def SetCellOverflow(*args, **kwargs): | |
a95a7133 | 1835 | """SetCellOverflow(self, int row, int col, bool allow)""" |
e811c8ce RD |
1836 | return _grid.Grid_SetCellOverflow(*args, **kwargs) |
1837 | ||
1838 | def SetCellSize(*args, **kwargs): | |
a95a7133 | 1839 | """SetCellSize(self, int row, int col, int num_rows, int num_cols)""" |
e811c8ce RD |
1840 | return _grid.Grid_SetCellSize(*args, **kwargs) |
1841 | ||
1842 | def SetDefaultRenderer(*args, **kwargs): | |
a95a7133 | 1843 | """SetDefaultRenderer(self, GridCellRenderer renderer)""" |
e811c8ce RD |
1844 | return _grid.Grid_SetDefaultRenderer(*args, **kwargs) |
1845 | ||
1846 | def SetCellRenderer(*args, **kwargs): | |
a95a7133 | 1847 | """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)""" |
e811c8ce RD |
1848 | return _grid.Grid_SetCellRenderer(*args, **kwargs) |
1849 | ||
1850 | def GetDefaultRenderer(*args, **kwargs): | |
a95a7133 | 1851 | """GetDefaultRenderer(self) -> GridCellRenderer""" |
e811c8ce RD |
1852 | return _grid.Grid_GetDefaultRenderer(*args, **kwargs) |
1853 | ||
1854 | def GetCellRenderer(*args, **kwargs): | |
a95a7133 | 1855 | """GetCellRenderer(self, int row, int col) -> GridCellRenderer""" |
e811c8ce RD |
1856 | return _grid.Grid_GetCellRenderer(*args, **kwargs) |
1857 | ||
1858 | def SetDefaultEditor(*args, **kwargs): | |
a95a7133 | 1859 | """SetDefaultEditor(self, GridCellEditor editor)""" |
e811c8ce RD |
1860 | return _grid.Grid_SetDefaultEditor(*args, **kwargs) |
1861 | ||
1862 | def SetCellEditor(*args, **kwargs): | |
a95a7133 | 1863 | """SetCellEditor(self, int row, int col, GridCellEditor editor)""" |
e811c8ce RD |
1864 | return _grid.Grid_SetCellEditor(*args, **kwargs) |
1865 | ||
1866 | def GetDefaultEditor(*args, **kwargs): | |
a95a7133 | 1867 | """GetDefaultEditor(self) -> GridCellEditor""" |
e811c8ce RD |
1868 | return _grid.Grid_GetDefaultEditor(*args, **kwargs) |
1869 | ||
1870 | def GetCellEditor(*args, **kwargs): | |
a95a7133 | 1871 | """GetCellEditor(self, int row, int col) -> GridCellEditor""" |
e811c8ce RD |
1872 | return _grid.Grid_GetCellEditor(*args, **kwargs) |
1873 | ||
1874 | def GetCellValue(*args, **kwargs): | |
a95a7133 | 1875 | """GetCellValue(self, int row, int col) -> String""" |
e811c8ce RD |
1876 | return _grid.Grid_GetCellValue(*args, **kwargs) |
1877 | ||
1878 | def SetCellValue(*args, **kwargs): | |
a95a7133 | 1879 | """SetCellValue(self, int row, int col, String s)""" |
e811c8ce RD |
1880 | return _grid.Grid_SetCellValue(*args, **kwargs) |
1881 | ||
1882 | def IsReadOnly(*args, **kwargs): | |
a95a7133 | 1883 | """IsReadOnly(self, int row, int col) -> bool""" |
e811c8ce RD |
1884 | return _grid.Grid_IsReadOnly(*args, **kwargs) |
1885 | ||
1886 | def SetReadOnly(*args, **kwargs): | |
a95a7133 | 1887 | """SetReadOnly(self, int row, int col, bool isReadOnly=True)""" |
e811c8ce RD |
1888 | return _grid.Grid_SetReadOnly(*args, **kwargs) |
1889 | ||
1890 | def SelectRow(*args, **kwargs): | |
a95a7133 | 1891 | """SelectRow(self, int row, bool addToSelected=False)""" |
e811c8ce RD |
1892 | return _grid.Grid_SelectRow(*args, **kwargs) |
1893 | ||
1894 | def SelectCol(*args, **kwargs): | |
a95a7133 | 1895 | """SelectCol(self, int col, bool addToSelected=False)""" |
e811c8ce RD |
1896 | return _grid.Grid_SelectCol(*args, **kwargs) |
1897 | ||
1898 | def SelectBlock(*args, **kwargs): | |
0df68c9f | 1899 | """ |
a95a7133 | 1900 | SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol, |
0df68c9f RD |
1901 | bool addToSelected=False) |
1902 | """ | |
e811c8ce RD |
1903 | return _grid.Grid_SelectBlock(*args, **kwargs) |
1904 | ||
1905 | def SelectAll(*args, **kwargs): | |
a95a7133 | 1906 | """SelectAll(self)""" |
e811c8ce RD |
1907 | return _grid.Grid_SelectAll(*args, **kwargs) |
1908 | ||
1909 | def IsSelection(*args, **kwargs): | |
a95a7133 | 1910 | """IsSelection(self) -> bool""" |
e811c8ce RD |
1911 | return _grid.Grid_IsSelection(*args, **kwargs) |
1912 | ||
1913 | def ClearSelection(*args, **kwargs): | |
a95a7133 | 1914 | """ClearSelection(self)""" |
e811c8ce RD |
1915 | return _grid.Grid_ClearSelection(*args, **kwargs) |
1916 | ||
1917 | def IsInSelection(*args, **kwargs): | |
a95a7133 | 1918 | """IsInSelection(self, int row, int col) -> bool""" |
e811c8ce RD |
1919 | return _grid.Grid_IsInSelection(*args, **kwargs) |
1920 | ||
1921 | def GetSelectedCells(*args, **kwargs): | |
a95a7133 | 1922 | """GetSelectedCells(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1923 | return _grid.Grid_GetSelectedCells(*args, **kwargs) |
1924 | ||
1925 | def GetSelectionBlockTopLeft(*args, **kwargs): | |
a95a7133 | 1926 | """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1927 | return _grid.Grid_GetSelectionBlockTopLeft(*args, **kwargs) |
1928 | ||
1929 | def GetSelectionBlockBottomRight(*args, **kwargs): | |
a95a7133 | 1930 | """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1931 | return _grid.Grid_GetSelectionBlockBottomRight(*args, **kwargs) |
1932 | ||
1933 | def GetSelectedRows(*args, **kwargs): | |
a95a7133 | 1934 | """GetSelectedRows(self) -> wxArrayInt""" |
e811c8ce RD |
1935 | return _grid.Grid_GetSelectedRows(*args, **kwargs) |
1936 | ||
1937 | def GetSelectedCols(*args, **kwargs): | |
a95a7133 | 1938 | """GetSelectedCols(self) -> wxArrayInt""" |
e811c8ce RD |
1939 | return _grid.Grid_GetSelectedCols(*args, **kwargs) |
1940 | ||
1941 | def DeselectRow(*args, **kwargs): | |
a95a7133 | 1942 | """DeselectRow(self, int row)""" |
e811c8ce RD |
1943 | return _grid.Grid_DeselectRow(*args, **kwargs) |
1944 | ||
1945 | def DeselectCol(*args, **kwargs): | |
a95a7133 | 1946 | """DeselectCol(self, int col)""" |
e811c8ce RD |
1947 | return _grid.Grid_DeselectCol(*args, **kwargs) |
1948 | ||
1949 | def DeselectCell(*args, **kwargs): | |
a95a7133 | 1950 | """DeselectCell(self, int row, int col)""" |
e811c8ce RD |
1951 | return _grid.Grid_DeselectCell(*args, **kwargs) |
1952 | ||
1953 | def BlockToDeviceRect(*args, **kwargs): | |
a95a7133 | 1954 | """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect""" |
e811c8ce RD |
1955 | return _grid.Grid_BlockToDeviceRect(*args, **kwargs) |
1956 | ||
1957 | def GetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1958 | """GetSelectionBackground(self) -> Colour""" |
e811c8ce RD |
1959 | return _grid.Grid_GetSelectionBackground(*args, **kwargs) |
1960 | ||
1961 | def GetSelectionForeground(*args, **kwargs): | |
a95a7133 | 1962 | """GetSelectionForeground(self) -> Colour""" |
e811c8ce RD |
1963 | return _grid.Grid_GetSelectionForeground(*args, **kwargs) |
1964 | ||
1965 | def SetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1966 | """SetSelectionBackground(self, Colour c)""" |
e811c8ce RD |
1967 | return _grid.Grid_SetSelectionBackground(*args, **kwargs) |
1968 | ||
1969 | def SetSelectionForeground(*args, **kwargs): | |
a95a7133 | 1970 | """SetSelectionForeground(self, Colour c)""" |
e811c8ce RD |
1971 | return _grid.Grid_SetSelectionForeground(*args, **kwargs) |
1972 | ||
1973 | def RegisterDataType(*args, **kwargs): | |
a95a7133 | 1974 | """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)""" |
e811c8ce RD |
1975 | return _grid.Grid_RegisterDataType(*args, **kwargs) |
1976 | ||
1977 | def GetDefaultEditorForCell(*args, **kwargs): | |
a95a7133 | 1978 | """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor""" |
e811c8ce RD |
1979 | return _grid.Grid_GetDefaultEditorForCell(*args, **kwargs) |
1980 | ||
1981 | def GetDefaultRendererForCell(*args, **kwargs): | |
a95a7133 | 1982 | """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer""" |
e811c8ce RD |
1983 | return _grid.Grid_GetDefaultRendererForCell(*args, **kwargs) |
1984 | ||
1985 | def GetDefaultEditorForType(*args, **kwargs): | |
a95a7133 | 1986 | """GetDefaultEditorForType(self, String typeName) -> GridCellEditor""" |
e811c8ce RD |
1987 | return _grid.Grid_GetDefaultEditorForType(*args, **kwargs) |
1988 | ||
1989 | def GetDefaultRendererForType(*args, **kwargs): | |
a95a7133 | 1990 | """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer""" |
e811c8ce RD |
1991 | return _grid.Grid_GetDefaultRendererForType(*args, **kwargs) |
1992 | ||
1993 | def SetMargins(*args, **kwargs): | |
a95a7133 | 1994 | """SetMargins(self, int extraWidth, int extraHeight)""" |
e811c8ce RD |
1995 | return _grid.Grid_SetMargins(*args, **kwargs) |
1996 | ||
1997 | def GetGridWindow(*args, **kwargs): | |
a95a7133 | 1998 | """GetGridWindow(self) -> Window""" |
e811c8ce RD |
1999 | return _grid.Grid_GetGridWindow(*args, **kwargs) |
2000 | ||
2001 | def GetGridRowLabelWindow(*args, **kwargs): | |
a95a7133 | 2002 | """GetGridRowLabelWindow(self) -> Window""" |
e811c8ce RD |
2003 | return _grid.Grid_GetGridRowLabelWindow(*args, **kwargs) |
2004 | ||
2005 | def GetGridColLabelWindow(*args, **kwargs): | |
a95a7133 | 2006 | """GetGridColLabelWindow(self) -> Window""" |
e811c8ce RD |
2007 | return _grid.Grid_GetGridColLabelWindow(*args, **kwargs) |
2008 | ||
2009 | def GetGridCornerLabelWindow(*args, **kwargs): | |
a95a7133 | 2010 | """GetGridCornerLabelWindow(self) -> Window""" |
e811c8ce RD |
2011 | return _grid.Grid_GetGridCornerLabelWindow(*args, **kwargs) |
2012 | ||
22bfe96c RD |
2013 | def GetClassDefaultAttributes(*args, **kwargs): |
2014 | """ | |
2015 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2016 | ||
41e2b43e RD |
2017 | Get the default attributes for this class. This is useful if you want |
2018 | to use the same font or colour in your own control as in a standard | |
2019 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
2020 | colours or fonts which might look completely out of place on the |
2021 | user's system, especially if it uses themes. | |
22bfe96c RD |
2022 | |
2023 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 2024 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
2025 | the returned font. See `wx.Window.SetWindowVariant` for more about |
2026 | this. | |
22bfe96c RD |
2027 | """ |
2028 | return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs) | |
2029 | ||
2030 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
f6bcfd97 | 2031 | |
d14a1e28 RD |
2032 | class GridPtr(Grid): |
2033 | def __init__(self, this): | |
f6bcfd97 | 2034 | self.this = this |
d14a1e28 RD |
2035 | if not hasattr(self,"thisown"): self.thisown = 0 |
2036 | self.__class__ = Grid | |
2037 | _grid.Grid_swigregister(GridPtr) | |
f6bcfd97 | 2038 | |
1a10c483 RD |
2039 | def PreGrid(*args, **kwargs): |
2040 | """PreGrid() -> Grid""" | |
2041 | val = _grid.new_PreGrid(*args, **kwargs) | |
2042 | val.thisown = 1 | |
2043 | self._setOORInfo(self) | |
2044 | return val | |
2045 | ||
22bfe96c RD |
2046 | def Grid_GetClassDefaultAttributes(*args, **kwargs): |
2047 | """ | |
2048 | Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2049 | ||
41e2b43e RD |
2050 | Get the default attributes for this class. This is useful if you want |
2051 | to use the same font or colour in your own control as in a standard | |
2052 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
2053 | colours or fonts which might look completely out of place on the |
2054 | user's system, especially if it uses themes. | |
22bfe96c RD |
2055 | |
2056 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 2057 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
2058 | the returned font. See `wx.Window.SetWindowVariant` for more about |
2059 | this. | |
22bfe96c RD |
2060 | """ |
2061 | return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs) | |
2062 | ||
54f9ee45 | 2063 | class GridEvent(_core.NotifyEvent): |
e811c8ce RD |
2064 | def __repr__(self): |
2065 | return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2066 | def __init__(self, *args, **kwargs): |
0df68c9f | 2067 | """ |
a95a7133 | 2068 | __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1, |
0df68c9f RD |
2069 | int x=-1, int y=-1, bool sel=True, bool control=False, |
2070 | bool shift=False, bool alt=False, | |
2071 | bool meta=False) -> GridEvent | |
2072 | """ | |
d14a1e28 RD |
2073 | newobj = _grid.new_GridEvent(*args, **kwargs) |
2074 | self.this = newobj.this | |
f6bcfd97 | 2075 | self.thisown = 1 |
d14a1e28 | 2076 | del newobj.thisown |
e811c8ce | 2077 | def GetRow(*args, **kwargs): |
a95a7133 | 2078 | """GetRow(self) -> int""" |
e811c8ce RD |
2079 | return _grid.GridEvent_GetRow(*args, **kwargs) |
2080 | ||
2081 | def GetCol(*args, **kwargs): | |
a95a7133 | 2082 | """GetCol(self) -> int""" |
e811c8ce RD |
2083 | return _grid.GridEvent_GetCol(*args, **kwargs) |
2084 | ||
2085 | def GetPosition(*args, **kwargs): | |
a95a7133 | 2086 | """GetPosition(self) -> Point""" |
e811c8ce RD |
2087 | return _grid.GridEvent_GetPosition(*args, **kwargs) |
2088 | ||
2089 | def Selecting(*args, **kwargs): | |
a95a7133 | 2090 | """Selecting(self) -> bool""" |
e811c8ce RD |
2091 | return _grid.GridEvent_Selecting(*args, **kwargs) |
2092 | ||
2093 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2094 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2095 | return _grid.GridEvent_ControlDown(*args, **kwargs) |
2096 | ||
2097 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2098 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2099 | return _grid.GridEvent_MetaDown(*args, **kwargs) |
2100 | ||
2101 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2102 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2103 | return _grid.GridEvent_ShiftDown(*args, **kwargs) |
2104 | ||
2105 | def AltDown(*args, **kwargs): | |
a95a7133 | 2106 | """AltDown(self) -> bool""" |
e811c8ce RD |
2107 | return _grid.GridEvent_AltDown(*args, **kwargs) |
2108 | ||
f6bcfd97 | 2109 | |
d14a1e28 RD |
2110 | class GridEventPtr(GridEvent): |
2111 | def __init__(self, this): | |
9d6da64a | 2112 | self.this = this |
d14a1e28 RD |
2113 | if not hasattr(self,"thisown"): self.thisown = 0 |
2114 | self.__class__ = GridEvent | |
2115 | _grid.GridEvent_swigregister(GridEventPtr) | |
2116 | ||
54f9ee45 | 2117 | class GridSizeEvent(_core.NotifyEvent): |
e811c8ce RD |
2118 | def __repr__(self): |
2119 | return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2120 | def __init__(self, *args, **kwargs): |
0df68c9f | 2121 | """ |
a95a7133 | 2122 | __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1, |
0df68c9f RD |
2123 | int x=-1, int y=-1, bool control=False, bool shift=False, |
2124 | bool alt=False, bool meta=False) -> GridSizeEvent | |
2125 | """ | |
d14a1e28 RD |
2126 | newobj = _grid.new_GridSizeEvent(*args, **kwargs) |
2127 | self.this = newobj.this | |
9d6da64a | 2128 | self.thisown = 1 |
d14a1e28 | 2129 | del newobj.thisown |
e811c8ce | 2130 | def GetRowOrCol(*args, **kwargs): |
a95a7133 | 2131 | """GetRowOrCol(self) -> int""" |
e811c8ce RD |
2132 | return _grid.GridSizeEvent_GetRowOrCol(*args, **kwargs) |
2133 | ||
2134 | def GetPosition(*args, **kwargs): | |
a95a7133 | 2135 | """GetPosition(self) -> Point""" |
e811c8ce RD |
2136 | return _grid.GridSizeEvent_GetPosition(*args, **kwargs) |
2137 | ||
2138 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2139 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2140 | return _grid.GridSizeEvent_ControlDown(*args, **kwargs) |
2141 | ||
2142 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2143 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2144 | return _grid.GridSizeEvent_MetaDown(*args, **kwargs) |
2145 | ||
2146 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2147 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2148 | return _grid.GridSizeEvent_ShiftDown(*args, **kwargs) |
2149 | ||
2150 | def AltDown(*args, **kwargs): | |
a95a7133 | 2151 | """AltDown(self) -> bool""" |
e811c8ce RD |
2152 | return _grid.GridSizeEvent_AltDown(*args, **kwargs) |
2153 | ||
9d6da64a | 2154 | |
d14a1e28 RD |
2155 | class GridSizeEventPtr(GridSizeEvent): |
2156 | def __init__(self, this): | |
2157 | self.this = this | |
2158 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2159 | self.__class__ = GridSizeEvent | |
2160 | _grid.GridSizeEvent_swigregister(GridSizeEventPtr) | |
9d6da64a | 2161 | |
54f9ee45 | 2162 | class GridRangeSelectEvent(_core.NotifyEvent): |
e811c8ce RD |
2163 | def __repr__(self): |
2164 | return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2165 | def __init__(self, *args, **kwargs): |
0df68c9f | 2166 | """ |
a95a7133 | 2167 | __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft, |
0df68c9f RD |
2168 | GridCellCoords bottomRight, bool sel=True, |
2169 | bool control=False, bool shift=False, | |
2170 | bool alt=False, bool meta=False) -> GridRangeSelectEvent | |
2171 | """ | |
d14a1e28 RD |
2172 | newobj = _grid.new_GridRangeSelectEvent(*args, **kwargs) |
2173 | self.this = newobj.this | |
2174 | self.thisown = 1 | |
2175 | del newobj.thisown | |
e811c8ce | 2176 | def GetTopLeftCoords(*args, **kwargs): |
a95a7133 | 2177 | """GetTopLeftCoords(self) -> GridCellCoords""" |
e811c8ce RD |
2178 | return _grid.GridRangeSelectEvent_GetTopLeftCoords(*args, **kwargs) |
2179 | ||
2180 | def GetBottomRightCoords(*args, **kwargs): | |
a95a7133 | 2181 | """GetBottomRightCoords(self) -> GridCellCoords""" |
e811c8ce RD |
2182 | return _grid.GridRangeSelectEvent_GetBottomRightCoords(*args, **kwargs) |
2183 | ||
2184 | def GetTopRow(*args, **kwargs): | |
a95a7133 | 2185 | """GetTopRow(self) -> int""" |
e811c8ce RD |
2186 | return _grid.GridRangeSelectEvent_GetTopRow(*args, **kwargs) |
2187 | ||
2188 | def GetBottomRow(*args, **kwargs): | |
a95a7133 | 2189 | """GetBottomRow(self) -> int""" |
e811c8ce RD |
2190 | return _grid.GridRangeSelectEvent_GetBottomRow(*args, **kwargs) |
2191 | ||
2192 | def GetLeftCol(*args, **kwargs): | |
a95a7133 | 2193 | """GetLeftCol(self) -> int""" |
e811c8ce RD |
2194 | return _grid.GridRangeSelectEvent_GetLeftCol(*args, **kwargs) |
2195 | ||
2196 | def GetRightCol(*args, **kwargs): | |
a95a7133 | 2197 | """GetRightCol(self) -> int""" |
e811c8ce RD |
2198 | return _grid.GridRangeSelectEvent_GetRightCol(*args, **kwargs) |
2199 | ||
2200 | def Selecting(*args, **kwargs): | |
a95a7133 | 2201 | """Selecting(self) -> bool""" |
e811c8ce RD |
2202 | return _grid.GridRangeSelectEvent_Selecting(*args, **kwargs) |
2203 | ||
2204 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2205 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2206 | return _grid.GridRangeSelectEvent_ControlDown(*args, **kwargs) |
2207 | ||
2208 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2209 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2210 | return _grid.GridRangeSelectEvent_MetaDown(*args, **kwargs) |
2211 | ||
2212 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2213 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2214 | return _grid.GridRangeSelectEvent_ShiftDown(*args, **kwargs) |
2215 | ||
2216 | def AltDown(*args, **kwargs): | |
a95a7133 | 2217 | """AltDown(self) -> bool""" |
e811c8ce RD |
2218 | return _grid.GridRangeSelectEvent_AltDown(*args, **kwargs) |
2219 | ||
9d6da64a | 2220 | |
d14a1e28 RD |
2221 | class GridRangeSelectEventPtr(GridRangeSelectEvent): |
2222 | def __init__(self, this): | |
2223 | self.this = this | |
2224 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2225 | self.__class__ = GridRangeSelectEvent | |
2226 | _grid.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr) | |
9d6da64a | 2227 | |
54f9ee45 | 2228 | class GridEditorCreatedEvent(_core.CommandEvent): |
e811c8ce RD |
2229 | def __repr__(self): |
2230 | return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2231 | def __init__(self, *args, **kwargs): |
0df68c9f | 2232 | """ |
a95a7133 | 2233 | __init__(self, int id, wxEventType type, Object obj, int row, int col, |
0df68c9f RD |
2234 | Control ctrl) -> GridEditorCreatedEvent |
2235 | """ | |
d14a1e28 RD |
2236 | newobj = _grid.new_GridEditorCreatedEvent(*args, **kwargs) |
2237 | self.this = newobj.this | |
2238 | self.thisown = 1 | |
2239 | del newobj.thisown | |
e811c8ce | 2240 | def GetRow(*args, **kwargs): |
a95a7133 | 2241 | """GetRow(self) -> int""" |
e811c8ce RD |
2242 | return _grid.GridEditorCreatedEvent_GetRow(*args, **kwargs) |
2243 | ||
2244 | def GetCol(*args, **kwargs): | |
a95a7133 | 2245 | """GetCol(self) -> int""" |
e811c8ce RD |
2246 | return _grid.GridEditorCreatedEvent_GetCol(*args, **kwargs) |
2247 | ||
2248 | def GetControl(*args, **kwargs): | |
a95a7133 | 2249 | """GetControl(self) -> Control""" |
e811c8ce RD |
2250 | return _grid.GridEditorCreatedEvent_GetControl(*args, **kwargs) |
2251 | ||
2252 | def SetRow(*args, **kwargs): | |
a95a7133 | 2253 | """SetRow(self, int row)""" |
e811c8ce RD |
2254 | return _grid.GridEditorCreatedEvent_SetRow(*args, **kwargs) |
2255 | ||
2256 | def SetCol(*args, **kwargs): | |
a95a7133 | 2257 | """SetCol(self, int col)""" |
e811c8ce RD |
2258 | return _grid.GridEditorCreatedEvent_SetCol(*args, **kwargs) |
2259 | ||
2260 | def SetControl(*args, **kwargs): | |
a95a7133 | 2261 | """SetControl(self, Control ctrl)""" |
e811c8ce RD |
2262 | return _grid.GridEditorCreatedEvent_SetControl(*args, **kwargs) |
2263 | ||
d14a1e28 RD |
2264 | |
2265 | class GridEditorCreatedEventPtr(GridEditorCreatedEvent): | |
2266 | def __init__(self, this): | |
2267 | self.this = this | |
2268 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2269 | self.__class__ = GridEditorCreatedEvent | |
2270 | _grid.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr) | |
2271 | ||
2272 | wxEVT_GRID_CELL_LEFT_CLICK = _grid.wxEVT_GRID_CELL_LEFT_CLICK | |
2273 | wxEVT_GRID_CELL_RIGHT_CLICK = _grid.wxEVT_GRID_CELL_RIGHT_CLICK | |
2274 | wxEVT_GRID_CELL_LEFT_DCLICK = _grid.wxEVT_GRID_CELL_LEFT_DCLICK | |
2275 | wxEVT_GRID_CELL_RIGHT_DCLICK = _grid.wxEVT_GRID_CELL_RIGHT_DCLICK | |
2276 | wxEVT_GRID_LABEL_LEFT_CLICK = _grid.wxEVT_GRID_LABEL_LEFT_CLICK | |
2277 | wxEVT_GRID_LABEL_RIGHT_CLICK = _grid.wxEVT_GRID_LABEL_RIGHT_CLICK | |
2278 | wxEVT_GRID_LABEL_LEFT_DCLICK = _grid.wxEVT_GRID_LABEL_LEFT_DCLICK | |
2279 | wxEVT_GRID_LABEL_RIGHT_DCLICK = _grid.wxEVT_GRID_LABEL_RIGHT_DCLICK | |
2280 | wxEVT_GRID_ROW_SIZE = _grid.wxEVT_GRID_ROW_SIZE | |
2281 | wxEVT_GRID_COL_SIZE = _grid.wxEVT_GRID_COL_SIZE | |
2282 | wxEVT_GRID_RANGE_SELECT = _grid.wxEVT_GRID_RANGE_SELECT | |
2283 | wxEVT_GRID_CELL_CHANGE = _grid.wxEVT_GRID_CELL_CHANGE | |
2284 | wxEVT_GRID_SELECT_CELL = _grid.wxEVT_GRID_SELECT_CELL | |
2285 | wxEVT_GRID_EDITOR_SHOWN = _grid.wxEVT_GRID_EDITOR_SHOWN | |
2286 | wxEVT_GRID_EDITOR_HIDDEN = _grid.wxEVT_GRID_EDITOR_HIDDEN | |
2287 | wxEVT_GRID_EDITOR_CREATED = _grid.wxEVT_GRID_EDITOR_CREATED | |
2288 | EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK ) | |
2289 | EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK ) | |
2290 | EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK ) | |
2291 | EVT_GRID_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK ) | |
2292 | EVT_GRID_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK ) | |
2293 | EVT_GRID_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK ) | |
2294 | EVT_GRID_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK ) | |
2295 | EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK ) | |
2296 | EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE ) | |
2297 | EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE ) | |
2298 | EVT_GRID_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT ) | |
2299 | EVT_GRID_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE ) | |
2300 | EVT_GRID_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL ) | |
2301 | EVT_GRID_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN ) | |
2302 | EVT_GRID_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN ) | |
2303 | EVT_GRID_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED ) | |
f6bcfd97 BP |
2304 | |
2305 | ||
6923d0a9 RD |
2306 | # The same as above but with the ability to specify an identifier |
2307 | EVT_GRID_CMD_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK, 1 ) | |
2308 | EVT_GRID_CMD_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK, 1 ) | |
2309 | EVT_GRID_CMD_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK, 1 ) | |
2310 | EVT_GRID_CMD_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK, 1 ) | |
2311 | EVT_GRID_CMD_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK, 1 ) | |
2312 | EVT_GRID_CMD_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK, 1 ) | |
2313 | EVT_GRID_CMD_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK, 1 ) | |
2314 | EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 ) | |
2315 | EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 ) | |
2316 | EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 ) | |
2317 | EVT_GRID_CMD_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT, 1 ) | |
2318 | EVT_GRID_CMD_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE, 1 ) | |
2319 | EVT_GRID_CMD_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL, 1 ) | |
2320 | EVT_GRID_CMD_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN, 1 ) | |
2321 | EVT_GRID_CMD_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN, 1 ) | |
2322 | EVT_GRID_CMD_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED, 1 ) | |
2323 | ||
2324 |