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