]>
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 | ||
4cf4100f RD |
1634 | def EnableDragCell(*args, **kwargs): |
1635 | """EnableDragCell(self, bool enable=True)""" | |
1636 | return _grid.Grid_EnableDragCell(*args, **kwargs) | |
1637 | ||
1638 | def DisableDragCell(*args, **kwargs): | |
1639 | """DisableDragCell(self)""" | |
1640 | return _grid.Grid_DisableDragCell(*args, **kwargs) | |
1641 | ||
1642 | def CanDragCell(*args, **kwargs): | |
1643 | """CanDragCell(self) -> bool""" | |
1644 | return _grid.Grid_CanDragCell(*args, **kwargs) | |
1645 | ||
e811c8ce | 1646 | def SetAttr(*args, **kwargs): |
a95a7133 | 1647 | """SetAttr(self, int row, int col, GridCellAttr attr)""" |
e811c8ce RD |
1648 | return _grid.Grid_SetAttr(*args, **kwargs) |
1649 | ||
1650 | def SetRowAttr(*args, **kwargs): | |
a95a7133 | 1651 | """SetRowAttr(self, int row, GridCellAttr attr)""" |
e811c8ce RD |
1652 | return _grid.Grid_SetRowAttr(*args, **kwargs) |
1653 | ||
1654 | def SetColAttr(*args, **kwargs): | |
a95a7133 | 1655 | """SetColAttr(self, int col, GridCellAttr attr)""" |
e811c8ce RD |
1656 | return _grid.Grid_SetColAttr(*args, **kwargs) |
1657 | ||
1658 | def SetColFormatBool(*args, **kwargs): | |
a95a7133 | 1659 | """SetColFormatBool(self, int col)""" |
e811c8ce RD |
1660 | return _grid.Grid_SetColFormatBool(*args, **kwargs) |
1661 | ||
1662 | def SetColFormatNumber(*args, **kwargs): | |
a95a7133 | 1663 | """SetColFormatNumber(self, int col)""" |
e811c8ce RD |
1664 | return _grid.Grid_SetColFormatNumber(*args, **kwargs) |
1665 | ||
1666 | def SetColFormatFloat(*args, **kwargs): | |
a95a7133 | 1667 | """SetColFormatFloat(self, int col, int width=-1, int precision=-1)""" |
e811c8ce RD |
1668 | return _grid.Grid_SetColFormatFloat(*args, **kwargs) |
1669 | ||
1670 | def SetColFormatCustom(*args, **kwargs): | |
a95a7133 | 1671 | """SetColFormatCustom(self, int col, String typeName)""" |
e811c8ce RD |
1672 | return _grid.Grid_SetColFormatCustom(*args, **kwargs) |
1673 | ||
1674 | def EnableGridLines(*args, **kwargs): | |
a95a7133 | 1675 | """EnableGridLines(self, bool enable=True)""" |
e811c8ce RD |
1676 | return _grid.Grid_EnableGridLines(*args, **kwargs) |
1677 | ||
1678 | def GridLinesEnabled(*args, **kwargs): | |
a95a7133 | 1679 | """GridLinesEnabled(self) -> bool""" |
e811c8ce RD |
1680 | return _grid.Grid_GridLinesEnabled(*args, **kwargs) |
1681 | ||
1682 | def GetDefaultRowSize(*args, **kwargs): | |
a95a7133 | 1683 | """GetDefaultRowSize(self) -> int""" |
e811c8ce RD |
1684 | return _grid.Grid_GetDefaultRowSize(*args, **kwargs) |
1685 | ||
1686 | def GetRowSize(*args, **kwargs): | |
a95a7133 | 1687 | """GetRowSize(self, int row) -> int""" |
e811c8ce RD |
1688 | return _grid.Grid_GetRowSize(*args, **kwargs) |
1689 | ||
1690 | def GetDefaultColSize(*args, **kwargs): | |
a95a7133 | 1691 | """GetDefaultColSize(self) -> int""" |
e811c8ce RD |
1692 | return _grid.Grid_GetDefaultColSize(*args, **kwargs) |
1693 | ||
1694 | def GetColSize(*args, **kwargs): | |
a95a7133 | 1695 | """GetColSize(self, int col) -> int""" |
e811c8ce RD |
1696 | return _grid.Grid_GetColSize(*args, **kwargs) |
1697 | ||
1698 | def GetDefaultCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1699 | """GetDefaultCellBackgroundColour(self) -> Colour""" |
e811c8ce RD |
1700 | return _grid.Grid_GetDefaultCellBackgroundColour(*args, **kwargs) |
1701 | ||
1702 | def GetCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1703 | """GetCellBackgroundColour(self, int row, int col) -> Colour""" |
e811c8ce RD |
1704 | return _grid.Grid_GetCellBackgroundColour(*args, **kwargs) |
1705 | ||
1706 | def GetDefaultCellTextColour(*args, **kwargs): | |
a95a7133 | 1707 | """GetDefaultCellTextColour(self) -> Colour""" |
e811c8ce RD |
1708 | return _grid.Grid_GetDefaultCellTextColour(*args, **kwargs) |
1709 | ||
1710 | def GetCellTextColour(*args, **kwargs): | |
a95a7133 | 1711 | """GetCellTextColour(self, int row, int col) -> Colour""" |
e811c8ce RD |
1712 | return _grid.Grid_GetCellTextColour(*args, **kwargs) |
1713 | ||
1714 | def GetDefaultCellFont(*args, **kwargs): | |
a95a7133 | 1715 | """GetDefaultCellFont(self) -> Font""" |
e811c8ce RD |
1716 | return _grid.Grid_GetDefaultCellFont(*args, **kwargs) |
1717 | ||
1718 | def GetCellFont(*args, **kwargs): | |
a95a7133 | 1719 | """GetCellFont(self, int row, int col) -> Font""" |
e811c8ce RD |
1720 | return _grid.Grid_GetCellFont(*args, **kwargs) |
1721 | ||
1722 | def GetDefaultCellAlignment(*args, **kwargs): | |
322913ce | 1723 | """GetDefaultCellAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1724 | return _grid.Grid_GetDefaultCellAlignment(*args, **kwargs) |
1725 | ||
1726 | def GetCellAlignment(*args, **kwargs): | |
322913ce | 1727 | """GetCellAlignment() -> (horiz, vert)""" |
e811c8ce RD |
1728 | return _grid.Grid_GetCellAlignment(*args, **kwargs) |
1729 | ||
1730 | def GetDefaultCellOverflow(*args, **kwargs): | |
a95a7133 | 1731 | """GetDefaultCellOverflow(self) -> bool""" |
e811c8ce RD |
1732 | return _grid.Grid_GetDefaultCellOverflow(*args, **kwargs) |
1733 | ||
1734 | def GetCellOverflow(*args, **kwargs): | |
a95a7133 | 1735 | """GetCellOverflow(self, int row, int col) -> bool""" |
e811c8ce RD |
1736 | return _grid.Grid_GetCellOverflow(*args, **kwargs) |
1737 | ||
1738 | def GetCellSize(*args, **kwargs): | |
322913ce | 1739 | """GetCellSize(int row, int col) -> (num_rows, num_cols)""" |
e811c8ce RD |
1740 | return _grid.Grid_GetCellSize(*args, **kwargs) |
1741 | ||
1742 | def SetDefaultRowSize(*args, **kwargs): | |
a95a7133 | 1743 | """SetDefaultRowSize(self, int height, bool resizeExistingRows=False)""" |
e811c8ce RD |
1744 | return _grid.Grid_SetDefaultRowSize(*args, **kwargs) |
1745 | ||
1746 | def SetRowSize(*args, **kwargs): | |
a95a7133 | 1747 | """SetRowSize(self, int row, int height)""" |
e811c8ce RD |
1748 | return _grid.Grid_SetRowSize(*args, **kwargs) |
1749 | ||
1750 | def SetDefaultColSize(*args, **kwargs): | |
a95a7133 | 1751 | """SetDefaultColSize(self, int width, bool resizeExistingCols=False)""" |
e811c8ce RD |
1752 | return _grid.Grid_SetDefaultColSize(*args, **kwargs) |
1753 | ||
1754 | def SetColSize(*args, **kwargs): | |
a95a7133 | 1755 | """SetColSize(self, int col, int width)""" |
e811c8ce RD |
1756 | return _grid.Grid_SetColSize(*args, **kwargs) |
1757 | ||
1758 | def AutoSizeColumn(*args, **kwargs): | |
a95a7133 | 1759 | """AutoSizeColumn(self, int col, bool setAsMin=True)""" |
e811c8ce RD |
1760 | return _grid.Grid_AutoSizeColumn(*args, **kwargs) |
1761 | ||
1762 | def AutoSizeRow(*args, **kwargs): | |
a95a7133 | 1763 | """AutoSizeRow(self, int row, bool setAsMin=True)""" |
e811c8ce RD |
1764 | return _grid.Grid_AutoSizeRow(*args, **kwargs) |
1765 | ||
1766 | def AutoSizeColumns(*args, **kwargs): | |
a95a7133 | 1767 | """AutoSizeColumns(self, bool setAsMin=True)""" |
e811c8ce RD |
1768 | return _grid.Grid_AutoSizeColumns(*args, **kwargs) |
1769 | ||
1770 | def AutoSizeRows(*args, **kwargs): | |
a95a7133 | 1771 | """AutoSizeRows(self, bool setAsMin=True)""" |
e811c8ce RD |
1772 | return _grid.Grid_AutoSizeRows(*args, **kwargs) |
1773 | ||
1774 | def AutoSize(*args, **kwargs): | |
a95a7133 | 1775 | """AutoSize(self)""" |
e811c8ce RD |
1776 | return _grid.Grid_AutoSize(*args, **kwargs) |
1777 | ||
1778 | def AutoSizeRowLabelSize(*args, **kwargs): | |
a95a7133 | 1779 | """AutoSizeRowLabelSize(self, int row)""" |
e811c8ce RD |
1780 | return _grid.Grid_AutoSizeRowLabelSize(*args, **kwargs) |
1781 | ||
1782 | def AutoSizeColLabelSize(*args, **kwargs): | |
a95a7133 | 1783 | """AutoSizeColLabelSize(self, int col)""" |
e811c8ce RD |
1784 | return _grid.Grid_AutoSizeColLabelSize(*args, **kwargs) |
1785 | ||
1786 | def SetColMinimalWidth(*args, **kwargs): | |
a95a7133 | 1787 | """SetColMinimalWidth(self, int col, int width)""" |
e811c8ce RD |
1788 | return _grid.Grid_SetColMinimalWidth(*args, **kwargs) |
1789 | ||
1790 | def SetRowMinimalHeight(*args, **kwargs): | |
a95a7133 | 1791 | """SetRowMinimalHeight(self, int row, int width)""" |
e811c8ce RD |
1792 | return _grid.Grid_SetRowMinimalHeight(*args, **kwargs) |
1793 | ||
1794 | def SetColMinimalAcceptableWidth(*args, **kwargs): | |
a95a7133 | 1795 | """SetColMinimalAcceptableWidth(self, int width)""" |
e811c8ce RD |
1796 | return _grid.Grid_SetColMinimalAcceptableWidth(*args, **kwargs) |
1797 | ||
1798 | def SetRowMinimalAcceptableHeight(*args, **kwargs): | |
a95a7133 | 1799 | """SetRowMinimalAcceptableHeight(self, int width)""" |
e811c8ce RD |
1800 | return _grid.Grid_SetRowMinimalAcceptableHeight(*args, **kwargs) |
1801 | ||
1802 | def GetColMinimalAcceptableWidth(*args, **kwargs): | |
a95a7133 | 1803 | """GetColMinimalAcceptableWidth(self) -> int""" |
e811c8ce RD |
1804 | return _grid.Grid_GetColMinimalAcceptableWidth(*args, **kwargs) |
1805 | ||
1806 | def GetRowMinimalAcceptableHeight(*args, **kwargs): | |
a95a7133 | 1807 | """GetRowMinimalAcceptableHeight(self) -> int""" |
e811c8ce RD |
1808 | return _grid.Grid_GetRowMinimalAcceptableHeight(*args, **kwargs) |
1809 | ||
1810 | def SetDefaultCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1811 | """SetDefaultCellBackgroundColour(self, Colour ??)""" |
e811c8ce RD |
1812 | return _grid.Grid_SetDefaultCellBackgroundColour(*args, **kwargs) |
1813 | ||
1814 | def SetCellBackgroundColour(*args, **kwargs): | |
a95a7133 | 1815 | """SetCellBackgroundColour(self, int row, int col, Colour ??)""" |
e811c8ce RD |
1816 | return _grid.Grid_SetCellBackgroundColour(*args, **kwargs) |
1817 | ||
1818 | def SetDefaultCellTextColour(*args, **kwargs): | |
a95a7133 | 1819 | """SetDefaultCellTextColour(self, Colour ??)""" |
e811c8ce RD |
1820 | return _grid.Grid_SetDefaultCellTextColour(*args, **kwargs) |
1821 | ||
1822 | def SetCellTextColour(*args, **kwargs): | |
a95a7133 | 1823 | """SetCellTextColour(self, int row, int col, Colour ??)""" |
e811c8ce RD |
1824 | return _grid.Grid_SetCellTextColour(*args, **kwargs) |
1825 | ||
1826 | def SetDefaultCellFont(*args, **kwargs): | |
a95a7133 | 1827 | """SetDefaultCellFont(self, Font ??)""" |
e811c8ce RD |
1828 | return _grid.Grid_SetDefaultCellFont(*args, **kwargs) |
1829 | ||
1830 | def SetCellFont(*args, **kwargs): | |
a95a7133 | 1831 | """SetCellFont(self, int row, int col, Font ??)""" |
e811c8ce RD |
1832 | return _grid.Grid_SetCellFont(*args, **kwargs) |
1833 | ||
1834 | def SetDefaultCellAlignment(*args, **kwargs): | |
a95a7133 | 1835 | """SetDefaultCellAlignment(self, int horiz, int vert)""" |
e811c8ce RD |
1836 | return _grid.Grid_SetDefaultCellAlignment(*args, **kwargs) |
1837 | ||
1838 | def SetCellAlignment(*args, **kwargs): | |
a95a7133 | 1839 | """SetCellAlignment(self, int row, int col, int horiz, int vert)""" |
e811c8ce RD |
1840 | return _grid.Grid_SetCellAlignment(*args, **kwargs) |
1841 | ||
1842 | def SetDefaultCellOverflow(*args, **kwargs): | |
a95a7133 | 1843 | """SetDefaultCellOverflow(self, bool allow)""" |
e811c8ce RD |
1844 | return _grid.Grid_SetDefaultCellOverflow(*args, **kwargs) |
1845 | ||
1846 | def SetCellOverflow(*args, **kwargs): | |
a95a7133 | 1847 | """SetCellOverflow(self, int row, int col, bool allow)""" |
e811c8ce RD |
1848 | return _grid.Grid_SetCellOverflow(*args, **kwargs) |
1849 | ||
1850 | def SetCellSize(*args, **kwargs): | |
a95a7133 | 1851 | """SetCellSize(self, int row, int col, int num_rows, int num_cols)""" |
e811c8ce RD |
1852 | return _grid.Grid_SetCellSize(*args, **kwargs) |
1853 | ||
1854 | def SetDefaultRenderer(*args, **kwargs): | |
a95a7133 | 1855 | """SetDefaultRenderer(self, GridCellRenderer renderer)""" |
e811c8ce RD |
1856 | return _grid.Grid_SetDefaultRenderer(*args, **kwargs) |
1857 | ||
1858 | def SetCellRenderer(*args, **kwargs): | |
a95a7133 | 1859 | """SetCellRenderer(self, int row, int col, GridCellRenderer renderer)""" |
e811c8ce RD |
1860 | return _grid.Grid_SetCellRenderer(*args, **kwargs) |
1861 | ||
1862 | def GetDefaultRenderer(*args, **kwargs): | |
a95a7133 | 1863 | """GetDefaultRenderer(self) -> GridCellRenderer""" |
e811c8ce RD |
1864 | return _grid.Grid_GetDefaultRenderer(*args, **kwargs) |
1865 | ||
1866 | def GetCellRenderer(*args, **kwargs): | |
a95a7133 | 1867 | """GetCellRenderer(self, int row, int col) -> GridCellRenderer""" |
e811c8ce RD |
1868 | return _grid.Grid_GetCellRenderer(*args, **kwargs) |
1869 | ||
1870 | def SetDefaultEditor(*args, **kwargs): | |
a95a7133 | 1871 | """SetDefaultEditor(self, GridCellEditor editor)""" |
e811c8ce RD |
1872 | return _grid.Grid_SetDefaultEditor(*args, **kwargs) |
1873 | ||
1874 | def SetCellEditor(*args, **kwargs): | |
a95a7133 | 1875 | """SetCellEditor(self, int row, int col, GridCellEditor editor)""" |
e811c8ce RD |
1876 | return _grid.Grid_SetCellEditor(*args, **kwargs) |
1877 | ||
1878 | def GetDefaultEditor(*args, **kwargs): | |
a95a7133 | 1879 | """GetDefaultEditor(self) -> GridCellEditor""" |
e811c8ce RD |
1880 | return _grid.Grid_GetDefaultEditor(*args, **kwargs) |
1881 | ||
1882 | def GetCellEditor(*args, **kwargs): | |
a95a7133 | 1883 | """GetCellEditor(self, int row, int col) -> GridCellEditor""" |
e811c8ce RD |
1884 | return _grid.Grid_GetCellEditor(*args, **kwargs) |
1885 | ||
1886 | def GetCellValue(*args, **kwargs): | |
a95a7133 | 1887 | """GetCellValue(self, int row, int col) -> String""" |
e811c8ce RD |
1888 | return _grid.Grid_GetCellValue(*args, **kwargs) |
1889 | ||
1890 | def SetCellValue(*args, **kwargs): | |
a95a7133 | 1891 | """SetCellValue(self, int row, int col, String s)""" |
e811c8ce RD |
1892 | return _grid.Grid_SetCellValue(*args, **kwargs) |
1893 | ||
1894 | def IsReadOnly(*args, **kwargs): | |
a95a7133 | 1895 | """IsReadOnly(self, int row, int col) -> bool""" |
e811c8ce RD |
1896 | return _grid.Grid_IsReadOnly(*args, **kwargs) |
1897 | ||
1898 | def SetReadOnly(*args, **kwargs): | |
a95a7133 | 1899 | """SetReadOnly(self, int row, int col, bool isReadOnly=True)""" |
e811c8ce RD |
1900 | return _grid.Grid_SetReadOnly(*args, **kwargs) |
1901 | ||
1902 | def SelectRow(*args, **kwargs): | |
a95a7133 | 1903 | """SelectRow(self, int row, bool addToSelected=False)""" |
e811c8ce RD |
1904 | return _grid.Grid_SelectRow(*args, **kwargs) |
1905 | ||
1906 | def SelectCol(*args, **kwargs): | |
a95a7133 | 1907 | """SelectCol(self, int col, bool addToSelected=False)""" |
e811c8ce RD |
1908 | return _grid.Grid_SelectCol(*args, **kwargs) |
1909 | ||
1910 | def SelectBlock(*args, **kwargs): | |
0df68c9f | 1911 | """ |
a95a7133 | 1912 | SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol, |
0df68c9f RD |
1913 | bool addToSelected=False) |
1914 | """ | |
e811c8ce RD |
1915 | return _grid.Grid_SelectBlock(*args, **kwargs) |
1916 | ||
1917 | def SelectAll(*args, **kwargs): | |
a95a7133 | 1918 | """SelectAll(self)""" |
e811c8ce RD |
1919 | return _grid.Grid_SelectAll(*args, **kwargs) |
1920 | ||
1921 | def IsSelection(*args, **kwargs): | |
a95a7133 | 1922 | """IsSelection(self) -> bool""" |
e811c8ce RD |
1923 | return _grid.Grid_IsSelection(*args, **kwargs) |
1924 | ||
1925 | def ClearSelection(*args, **kwargs): | |
a95a7133 | 1926 | """ClearSelection(self)""" |
e811c8ce RD |
1927 | return _grid.Grid_ClearSelection(*args, **kwargs) |
1928 | ||
1929 | def IsInSelection(*args, **kwargs): | |
a95a7133 | 1930 | """IsInSelection(self, int row, int col) -> bool""" |
e811c8ce RD |
1931 | return _grid.Grid_IsInSelection(*args, **kwargs) |
1932 | ||
1933 | def GetSelectedCells(*args, **kwargs): | |
a95a7133 | 1934 | """GetSelectedCells(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1935 | return _grid.Grid_GetSelectedCells(*args, **kwargs) |
1936 | ||
1937 | def GetSelectionBlockTopLeft(*args, **kwargs): | |
a95a7133 | 1938 | """GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1939 | return _grid.Grid_GetSelectionBlockTopLeft(*args, **kwargs) |
1940 | ||
1941 | def GetSelectionBlockBottomRight(*args, **kwargs): | |
a95a7133 | 1942 | """GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray""" |
e811c8ce RD |
1943 | return _grid.Grid_GetSelectionBlockBottomRight(*args, **kwargs) |
1944 | ||
1945 | def GetSelectedRows(*args, **kwargs): | |
a95a7133 | 1946 | """GetSelectedRows(self) -> wxArrayInt""" |
e811c8ce RD |
1947 | return _grid.Grid_GetSelectedRows(*args, **kwargs) |
1948 | ||
1949 | def GetSelectedCols(*args, **kwargs): | |
a95a7133 | 1950 | """GetSelectedCols(self) -> wxArrayInt""" |
e811c8ce RD |
1951 | return _grid.Grid_GetSelectedCols(*args, **kwargs) |
1952 | ||
1953 | def DeselectRow(*args, **kwargs): | |
a95a7133 | 1954 | """DeselectRow(self, int row)""" |
e811c8ce RD |
1955 | return _grid.Grid_DeselectRow(*args, **kwargs) |
1956 | ||
1957 | def DeselectCol(*args, **kwargs): | |
a95a7133 | 1958 | """DeselectCol(self, int col)""" |
e811c8ce RD |
1959 | return _grid.Grid_DeselectCol(*args, **kwargs) |
1960 | ||
1961 | def DeselectCell(*args, **kwargs): | |
a95a7133 | 1962 | """DeselectCell(self, int row, int col)""" |
e811c8ce RD |
1963 | return _grid.Grid_DeselectCell(*args, **kwargs) |
1964 | ||
1965 | def BlockToDeviceRect(*args, **kwargs): | |
a95a7133 | 1966 | """BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect""" |
e811c8ce RD |
1967 | return _grid.Grid_BlockToDeviceRect(*args, **kwargs) |
1968 | ||
1969 | def GetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1970 | """GetSelectionBackground(self) -> Colour""" |
e811c8ce RD |
1971 | return _grid.Grid_GetSelectionBackground(*args, **kwargs) |
1972 | ||
1973 | def GetSelectionForeground(*args, **kwargs): | |
a95a7133 | 1974 | """GetSelectionForeground(self) -> Colour""" |
e811c8ce RD |
1975 | return _grid.Grid_GetSelectionForeground(*args, **kwargs) |
1976 | ||
1977 | def SetSelectionBackground(*args, **kwargs): | |
a95a7133 | 1978 | """SetSelectionBackground(self, Colour c)""" |
e811c8ce RD |
1979 | return _grid.Grid_SetSelectionBackground(*args, **kwargs) |
1980 | ||
1981 | def SetSelectionForeground(*args, **kwargs): | |
a95a7133 | 1982 | """SetSelectionForeground(self, Colour c)""" |
e811c8ce RD |
1983 | return _grid.Grid_SetSelectionForeground(*args, **kwargs) |
1984 | ||
1985 | def RegisterDataType(*args, **kwargs): | |
a95a7133 | 1986 | """RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)""" |
e811c8ce RD |
1987 | return _grid.Grid_RegisterDataType(*args, **kwargs) |
1988 | ||
1989 | def GetDefaultEditorForCell(*args, **kwargs): | |
a95a7133 | 1990 | """GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor""" |
e811c8ce RD |
1991 | return _grid.Grid_GetDefaultEditorForCell(*args, **kwargs) |
1992 | ||
1993 | def GetDefaultRendererForCell(*args, **kwargs): | |
a95a7133 | 1994 | """GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer""" |
e811c8ce RD |
1995 | return _grid.Grid_GetDefaultRendererForCell(*args, **kwargs) |
1996 | ||
1997 | def GetDefaultEditorForType(*args, **kwargs): | |
a95a7133 | 1998 | """GetDefaultEditorForType(self, String typeName) -> GridCellEditor""" |
e811c8ce RD |
1999 | return _grid.Grid_GetDefaultEditorForType(*args, **kwargs) |
2000 | ||
2001 | def GetDefaultRendererForType(*args, **kwargs): | |
a95a7133 | 2002 | """GetDefaultRendererForType(self, String typeName) -> GridCellRenderer""" |
e811c8ce RD |
2003 | return _grid.Grid_GetDefaultRendererForType(*args, **kwargs) |
2004 | ||
2005 | def SetMargins(*args, **kwargs): | |
a95a7133 | 2006 | """SetMargins(self, int extraWidth, int extraHeight)""" |
e811c8ce RD |
2007 | return _grid.Grid_SetMargins(*args, **kwargs) |
2008 | ||
2009 | def GetGridWindow(*args, **kwargs): | |
a95a7133 | 2010 | """GetGridWindow(self) -> Window""" |
e811c8ce RD |
2011 | return _grid.Grid_GetGridWindow(*args, **kwargs) |
2012 | ||
2013 | def GetGridRowLabelWindow(*args, **kwargs): | |
a95a7133 | 2014 | """GetGridRowLabelWindow(self) -> Window""" |
e811c8ce RD |
2015 | return _grid.Grid_GetGridRowLabelWindow(*args, **kwargs) |
2016 | ||
2017 | def GetGridColLabelWindow(*args, **kwargs): | |
a95a7133 | 2018 | """GetGridColLabelWindow(self) -> Window""" |
e811c8ce RD |
2019 | return _grid.Grid_GetGridColLabelWindow(*args, **kwargs) |
2020 | ||
2021 | def GetGridCornerLabelWindow(*args, **kwargs): | |
a95a7133 | 2022 | """GetGridCornerLabelWindow(self) -> Window""" |
e811c8ce RD |
2023 | return _grid.Grid_GetGridCornerLabelWindow(*args, **kwargs) |
2024 | ||
22bfe96c RD |
2025 | def GetClassDefaultAttributes(*args, **kwargs): |
2026 | """ | |
2027 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2028 | ||
41e2b43e RD |
2029 | Get the default attributes for this class. This is useful if you want |
2030 | to use the same font or colour in your own control as in a standard | |
2031 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
2032 | colours or fonts which might look completely out of place on the |
2033 | user's system, especially if it uses themes. | |
22bfe96c RD |
2034 | |
2035 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 2036 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
2037 | the returned font. See `wx.Window.SetWindowVariant` for more about |
2038 | this. | |
22bfe96c RD |
2039 | """ |
2040 | return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs) | |
2041 | ||
2042 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
f6bcfd97 | 2043 | |
d14a1e28 RD |
2044 | class GridPtr(Grid): |
2045 | def __init__(self, this): | |
f6bcfd97 | 2046 | self.this = this |
d14a1e28 RD |
2047 | if not hasattr(self,"thisown"): self.thisown = 0 |
2048 | self.__class__ = Grid | |
2049 | _grid.Grid_swigregister(GridPtr) | |
f6bcfd97 | 2050 | |
1a10c483 RD |
2051 | def PreGrid(*args, **kwargs): |
2052 | """PreGrid() -> Grid""" | |
2053 | val = _grid.new_PreGrid(*args, **kwargs) | |
2054 | val.thisown = 1 | |
2055 | self._setOORInfo(self) | |
2056 | return val | |
2057 | ||
22bfe96c RD |
2058 | def Grid_GetClassDefaultAttributes(*args, **kwargs): |
2059 | """ | |
2060 | Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2061 | ||
41e2b43e RD |
2062 | Get the default attributes for this class. This is useful if you want |
2063 | to use the same font or colour in your own control as in a standard | |
2064 | control -- which is a much better idea than hard coding specific | |
db3e571a RD |
2065 | colours or fonts which might look completely out of place on the |
2066 | user's system, especially if it uses themes. | |
22bfe96c RD |
2067 | |
2068 | The variant parameter is only relevant under Mac currently and is | |
41e2b43e | 2069 | ignore under other platforms. Under Mac, it will change the size of |
db3e571a RD |
2070 | the returned font. See `wx.Window.SetWindowVariant` for more about |
2071 | this. | |
22bfe96c RD |
2072 | """ |
2073 | return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs) | |
2074 | ||
54f9ee45 | 2075 | class GridEvent(_core.NotifyEvent): |
e811c8ce RD |
2076 | def __repr__(self): |
2077 | return "<%s.%s; proxy of C++ wxGridEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2078 | def __init__(self, *args, **kwargs): |
0df68c9f | 2079 | """ |
a95a7133 | 2080 | __init__(self, int id, wxEventType type, Grid obj, int row=-1, int col=-1, |
0df68c9f RD |
2081 | int x=-1, int y=-1, bool sel=True, bool control=False, |
2082 | bool shift=False, bool alt=False, | |
2083 | bool meta=False) -> GridEvent | |
2084 | """ | |
d14a1e28 RD |
2085 | newobj = _grid.new_GridEvent(*args, **kwargs) |
2086 | self.this = newobj.this | |
f6bcfd97 | 2087 | self.thisown = 1 |
d14a1e28 | 2088 | del newobj.thisown |
e811c8ce | 2089 | def GetRow(*args, **kwargs): |
a95a7133 | 2090 | """GetRow(self) -> int""" |
e811c8ce RD |
2091 | return _grid.GridEvent_GetRow(*args, **kwargs) |
2092 | ||
2093 | def GetCol(*args, **kwargs): | |
a95a7133 | 2094 | """GetCol(self) -> int""" |
e811c8ce RD |
2095 | return _grid.GridEvent_GetCol(*args, **kwargs) |
2096 | ||
2097 | def GetPosition(*args, **kwargs): | |
a95a7133 | 2098 | """GetPosition(self) -> Point""" |
e811c8ce RD |
2099 | return _grid.GridEvent_GetPosition(*args, **kwargs) |
2100 | ||
2101 | def Selecting(*args, **kwargs): | |
a95a7133 | 2102 | """Selecting(self) -> bool""" |
e811c8ce RD |
2103 | return _grid.GridEvent_Selecting(*args, **kwargs) |
2104 | ||
2105 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2106 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2107 | return _grid.GridEvent_ControlDown(*args, **kwargs) |
2108 | ||
2109 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2110 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2111 | return _grid.GridEvent_MetaDown(*args, **kwargs) |
2112 | ||
2113 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2114 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2115 | return _grid.GridEvent_ShiftDown(*args, **kwargs) |
2116 | ||
2117 | def AltDown(*args, **kwargs): | |
a95a7133 | 2118 | """AltDown(self) -> bool""" |
e811c8ce RD |
2119 | return _grid.GridEvent_AltDown(*args, **kwargs) |
2120 | ||
f6bcfd97 | 2121 | |
d14a1e28 RD |
2122 | class GridEventPtr(GridEvent): |
2123 | def __init__(self, this): | |
9d6da64a | 2124 | self.this = this |
d14a1e28 RD |
2125 | if not hasattr(self,"thisown"): self.thisown = 0 |
2126 | self.__class__ = GridEvent | |
2127 | _grid.GridEvent_swigregister(GridEventPtr) | |
2128 | ||
54f9ee45 | 2129 | class GridSizeEvent(_core.NotifyEvent): |
e811c8ce RD |
2130 | def __repr__(self): |
2131 | return "<%s.%s; proxy of C++ wxGridSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2132 | def __init__(self, *args, **kwargs): |
0df68c9f | 2133 | """ |
a95a7133 | 2134 | __init__(self, int id, wxEventType type, Grid obj, int rowOrCol=-1, |
0df68c9f RD |
2135 | int x=-1, int y=-1, bool control=False, bool shift=False, |
2136 | bool alt=False, bool meta=False) -> GridSizeEvent | |
2137 | """ | |
d14a1e28 RD |
2138 | newobj = _grid.new_GridSizeEvent(*args, **kwargs) |
2139 | self.this = newobj.this | |
9d6da64a | 2140 | self.thisown = 1 |
d14a1e28 | 2141 | del newobj.thisown |
e811c8ce | 2142 | def GetRowOrCol(*args, **kwargs): |
a95a7133 | 2143 | """GetRowOrCol(self) -> int""" |
e811c8ce RD |
2144 | return _grid.GridSizeEvent_GetRowOrCol(*args, **kwargs) |
2145 | ||
2146 | def GetPosition(*args, **kwargs): | |
a95a7133 | 2147 | """GetPosition(self) -> Point""" |
e811c8ce RD |
2148 | return _grid.GridSizeEvent_GetPosition(*args, **kwargs) |
2149 | ||
2150 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2151 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2152 | return _grid.GridSizeEvent_ControlDown(*args, **kwargs) |
2153 | ||
2154 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2155 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2156 | return _grid.GridSizeEvent_MetaDown(*args, **kwargs) |
2157 | ||
2158 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2159 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2160 | return _grid.GridSizeEvent_ShiftDown(*args, **kwargs) |
2161 | ||
2162 | def AltDown(*args, **kwargs): | |
a95a7133 | 2163 | """AltDown(self) -> bool""" |
e811c8ce RD |
2164 | return _grid.GridSizeEvent_AltDown(*args, **kwargs) |
2165 | ||
9d6da64a | 2166 | |
d14a1e28 RD |
2167 | class GridSizeEventPtr(GridSizeEvent): |
2168 | def __init__(self, this): | |
2169 | self.this = this | |
2170 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2171 | self.__class__ = GridSizeEvent | |
2172 | _grid.GridSizeEvent_swigregister(GridSizeEventPtr) | |
9d6da64a | 2173 | |
54f9ee45 | 2174 | class GridRangeSelectEvent(_core.NotifyEvent): |
e811c8ce RD |
2175 | def __repr__(self): |
2176 | return "<%s.%s; proxy of C++ wxGridRangeSelectEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2177 | def __init__(self, *args, **kwargs): |
0df68c9f | 2178 | """ |
a95a7133 | 2179 | __init__(self, int id, wxEventType type, Grid obj, GridCellCoords topLeft, |
0df68c9f RD |
2180 | GridCellCoords bottomRight, bool sel=True, |
2181 | bool control=False, bool shift=False, | |
2182 | bool alt=False, bool meta=False) -> GridRangeSelectEvent | |
2183 | """ | |
d14a1e28 RD |
2184 | newobj = _grid.new_GridRangeSelectEvent(*args, **kwargs) |
2185 | self.this = newobj.this | |
2186 | self.thisown = 1 | |
2187 | del newobj.thisown | |
e811c8ce | 2188 | def GetTopLeftCoords(*args, **kwargs): |
a95a7133 | 2189 | """GetTopLeftCoords(self) -> GridCellCoords""" |
e811c8ce RD |
2190 | return _grid.GridRangeSelectEvent_GetTopLeftCoords(*args, **kwargs) |
2191 | ||
2192 | def GetBottomRightCoords(*args, **kwargs): | |
a95a7133 | 2193 | """GetBottomRightCoords(self) -> GridCellCoords""" |
e811c8ce RD |
2194 | return _grid.GridRangeSelectEvent_GetBottomRightCoords(*args, **kwargs) |
2195 | ||
2196 | def GetTopRow(*args, **kwargs): | |
a95a7133 | 2197 | """GetTopRow(self) -> int""" |
e811c8ce RD |
2198 | return _grid.GridRangeSelectEvent_GetTopRow(*args, **kwargs) |
2199 | ||
2200 | def GetBottomRow(*args, **kwargs): | |
a95a7133 | 2201 | """GetBottomRow(self) -> int""" |
e811c8ce RD |
2202 | return _grid.GridRangeSelectEvent_GetBottomRow(*args, **kwargs) |
2203 | ||
2204 | def GetLeftCol(*args, **kwargs): | |
a95a7133 | 2205 | """GetLeftCol(self) -> int""" |
e811c8ce RD |
2206 | return _grid.GridRangeSelectEvent_GetLeftCol(*args, **kwargs) |
2207 | ||
2208 | def GetRightCol(*args, **kwargs): | |
a95a7133 | 2209 | """GetRightCol(self) -> int""" |
e811c8ce RD |
2210 | return _grid.GridRangeSelectEvent_GetRightCol(*args, **kwargs) |
2211 | ||
2212 | def Selecting(*args, **kwargs): | |
a95a7133 | 2213 | """Selecting(self) -> bool""" |
e811c8ce RD |
2214 | return _grid.GridRangeSelectEvent_Selecting(*args, **kwargs) |
2215 | ||
2216 | def ControlDown(*args, **kwargs): | |
a95a7133 | 2217 | """ControlDown(self) -> bool""" |
e811c8ce RD |
2218 | return _grid.GridRangeSelectEvent_ControlDown(*args, **kwargs) |
2219 | ||
2220 | def MetaDown(*args, **kwargs): | |
a95a7133 | 2221 | """MetaDown(self) -> bool""" |
e811c8ce RD |
2222 | return _grid.GridRangeSelectEvent_MetaDown(*args, **kwargs) |
2223 | ||
2224 | def ShiftDown(*args, **kwargs): | |
a95a7133 | 2225 | """ShiftDown(self) -> bool""" |
e811c8ce RD |
2226 | return _grid.GridRangeSelectEvent_ShiftDown(*args, **kwargs) |
2227 | ||
2228 | def AltDown(*args, **kwargs): | |
a95a7133 | 2229 | """AltDown(self) -> bool""" |
e811c8ce RD |
2230 | return _grid.GridRangeSelectEvent_AltDown(*args, **kwargs) |
2231 | ||
9d6da64a | 2232 | |
d14a1e28 RD |
2233 | class GridRangeSelectEventPtr(GridRangeSelectEvent): |
2234 | def __init__(self, this): | |
2235 | self.this = this | |
2236 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2237 | self.__class__ = GridRangeSelectEvent | |
2238 | _grid.GridRangeSelectEvent_swigregister(GridRangeSelectEventPtr) | |
9d6da64a | 2239 | |
54f9ee45 | 2240 | class GridEditorCreatedEvent(_core.CommandEvent): |
e811c8ce RD |
2241 | def __repr__(self): |
2242 | return "<%s.%s; proxy of C++ wxGridEditorCreatedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2243 | def __init__(self, *args, **kwargs): |
0df68c9f | 2244 | """ |
a95a7133 | 2245 | __init__(self, int id, wxEventType type, Object obj, int row, int col, |
0df68c9f RD |
2246 | Control ctrl) -> GridEditorCreatedEvent |
2247 | """ | |
d14a1e28 RD |
2248 | newobj = _grid.new_GridEditorCreatedEvent(*args, **kwargs) |
2249 | self.this = newobj.this | |
2250 | self.thisown = 1 | |
2251 | del newobj.thisown | |
e811c8ce | 2252 | def GetRow(*args, **kwargs): |
a95a7133 | 2253 | """GetRow(self) -> int""" |
e811c8ce RD |
2254 | return _grid.GridEditorCreatedEvent_GetRow(*args, **kwargs) |
2255 | ||
2256 | def GetCol(*args, **kwargs): | |
a95a7133 | 2257 | """GetCol(self) -> int""" |
e811c8ce RD |
2258 | return _grid.GridEditorCreatedEvent_GetCol(*args, **kwargs) |
2259 | ||
2260 | def GetControl(*args, **kwargs): | |
a95a7133 | 2261 | """GetControl(self) -> Control""" |
e811c8ce RD |
2262 | return _grid.GridEditorCreatedEvent_GetControl(*args, **kwargs) |
2263 | ||
2264 | def SetRow(*args, **kwargs): | |
a95a7133 | 2265 | """SetRow(self, int row)""" |
e811c8ce RD |
2266 | return _grid.GridEditorCreatedEvent_SetRow(*args, **kwargs) |
2267 | ||
2268 | def SetCol(*args, **kwargs): | |
a95a7133 | 2269 | """SetCol(self, int col)""" |
e811c8ce RD |
2270 | return _grid.GridEditorCreatedEvent_SetCol(*args, **kwargs) |
2271 | ||
2272 | def SetControl(*args, **kwargs): | |
a95a7133 | 2273 | """SetControl(self, Control ctrl)""" |
e811c8ce RD |
2274 | return _grid.GridEditorCreatedEvent_SetControl(*args, **kwargs) |
2275 | ||
d14a1e28 RD |
2276 | |
2277 | class GridEditorCreatedEventPtr(GridEditorCreatedEvent): | |
2278 | def __init__(self, this): | |
2279 | self.this = this | |
2280 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2281 | self.__class__ = GridEditorCreatedEvent | |
2282 | _grid.GridEditorCreatedEvent_swigregister(GridEditorCreatedEventPtr) | |
2283 | ||
2284 | wxEVT_GRID_CELL_LEFT_CLICK = _grid.wxEVT_GRID_CELL_LEFT_CLICK | |
2285 | wxEVT_GRID_CELL_RIGHT_CLICK = _grid.wxEVT_GRID_CELL_RIGHT_CLICK | |
2286 | wxEVT_GRID_CELL_LEFT_DCLICK = _grid.wxEVT_GRID_CELL_LEFT_DCLICK | |
2287 | wxEVT_GRID_CELL_RIGHT_DCLICK = _grid.wxEVT_GRID_CELL_RIGHT_DCLICK | |
2288 | wxEVT_GRID_LABEL_LEFT_CLICK = _grid.wxEVT_GRID_LABEL_LEFT_CLICK | |
2289 | wxEVT_GRID_LABEL_RIGHT_CLICK = _grid.wxEVT_GRID_LABEL_RIGHT_CLICK | |
2290 | wxEVT_GRID_LABEL_LEFT_DCLICK = _grid.wxEVT_GRID_LABEL_LEFT_DCLICK | |
2291 | wxEVT_GRID_LABEL_RIGHT_DCLICK = _grid.wxEVT_GRID_LABEL_RIGHT_DCLICK | |
2292 | wxEVT_GRID_ROW_SIZE = _grid.wxEVT_GRID_ROW_SIZE | |
2293 | wxEVT_GRID_COL_SIZE = _grid.wxEVT_GRID_COL_SIZE | |
2294 | wxEVT_GRID_RANGE_SELECT = _grid.wxEVT_GRID_RANGE_SELECT | |
2295 | wxEVT_GRID_CELL_CHANGE = _grid.wxEVT_GRID_CELL_CHANGE | |
2296 | wxEVT_GRID_SELECT_CELL = _grid.wxEVT_GRID_SELECT_CELL | |
2297 | wxEVT_GRID_EDITOR_SHOWN = _grid.wxEVT_GRID_EDITOR_SHOWN | |
2298 | wxEVT_GRID_EDITOR_HIDDEN = _grid.wxEVT_GRID_EDITOR_HIDDEN | |
2299 | wxEVT_GRID_EDITOR_CREATED = _grid.wxEVT_GRID_EDITOR_CREATED | |
4cf4100f | 2300 | wxEVT_GRID_CELL_BEGIN_DRAG = _grid.wxEVT_GRID_CELL_BEGIN_DRAG |
d14a1e28 RD |
2301 | EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK ) |
2302 | EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK ) | |
2303 | EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK ) | |
2304 | EVT_GRID_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK ) | |
2305 | EVT_GRID_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK ) | |
2306 | EVT_GRID_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK ) | |
2307 | EVT_GRID_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK ) | |
2308 | EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK ) | |
2309 | EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE ) | |
2310 | EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE ) | |
2311 | EVT_GRID_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT ) | |
2312 | EVT_GRID_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE ) | |
2313 | EVT_GRID_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL ) | |
2314 | EVT_GRID_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN ) | |
2315 | EVT_GRID_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN ) | |
2316 | EVT_GRID_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED ) | |
4cf4100f | 2317 | EVT_GRID_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG ) |
f6bcfd97 BP |
2318 | |
2319 | ||
6923d0a9 RD |
2320 | # The same as above but with the ability to specify an identifier |
2321 | EVT_GRID_CMD_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK, 1 ) | |
2322 | EVT_GRID_CMD_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK, 1 ) | |
2323 | EVT_GRID_CMD_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK, 1 ) | |
2324 | EVT_GRID_CMD_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK, 1 ) | |
2325 | EVT_GRID_CMD_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK, 1 ) | |
2326 | EVT_GRID_CMD_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK, 1 ) | |
2327 | EVT_GRID_CMD_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK, 1 ) | |
2328 | EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 ) | |
2329 | EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 ) | |
2330 | EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 ) | |
2331 | EVT_GRID_CMD_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT, 1 ) | |
2332 | EVT_GRID_CMD_CELL_CHANGE = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGE, 1 ) | |
2333 | EVT_GRID_CMD_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL, 1 ) | |
2334 | EVT_GRID_CMD_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN, 1 ) | |
2335 | EVT_GRID_CMD_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN, 1 ) | |
2336 | EVT_GRID_CMD_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED, 1 ) | |
4cf4100f RD |
2337 | EVT_GRID_CMD_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG, 1 ) |
2338 | ||
6923d0a9 RD |
2339 | |
2340 |