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