1
# This file was created automatically by SWIG 1.3.29.
2
# Don't modify this file, modify the SWIG interface instead.
5
Classes for implementing a spreadsheet-like control.
10
new_instancemethod = new.instancemethod
11
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
12
if (name == "thisown"): return self.this.own(value)
14
if type(value).__name__ == 'PySwigObject':
15
self.__dict__[name] = value
17
method = class_type.__swig_setmethods__.get(name,None)
18
if method: return method(self,value)
19
if (not static) or hasattr(self,name):
20
self.__dict__[name] = value
22
raise AttributeError("You cannot add attributes to %s" % self)
24
def _swig_setattr(self,class_type,name,value):
25
return _swig_setattr_nondynamic(self,class_type,name,value,0)
27
def _swig_getattr(self,class_type,name):
28
if (name == "thisown"): return self.this.own()
29
method = class_type.__swig_getmethods__.get(name,None)
30
if method: return method(self)
31
raise AttributeError,name
34
try: strthis = "proxy of " + self.this.__repr__()
36
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
40
_object = types.ObjectType
42
except AttributeError:
48
def _swig_setattr_nondynamic_method(set):
49
def set_attr(self,name,value):
50
if (name == "thisown"): return self.this.own(value)
51
if hasattr(self,name) or (name == "this"):
54
raise AttributeError("You cannot add attributes to %s" % self)
61
__docfilter__ = wx.__DocFilter(globals())
62
GRID_VALUE_STRING = _grid.GRID_VALUE_STRING
63
GRID_VALUE_BOOL = _grid.GRID_VALUE_BOOL
64
GRID_VALUE_NUMBER = _grid.GRID_VALUE_NUMBER
65
GRID_VALUE_FLOAT = _grid.GRID_VALUE_FLOAT
66
GRID_VALUE_CHOICE = _grid.GRID_VALUE_CHOICE
67
GRID_VALUE_TEXT = _grid.GRID_VALUE_TEXT
68
GRID_VALUE_LONG = _grid.GRID_VALUE_LONG
69
GRID_VALUE_CHOICEINT = _grid.GRID_VALUE_CHOICEINT
70
GRID_VALUE_DATETIME = _grid.GRID_VALUE_DATETIME
71
GRID_AUTOSIZE = _grid.GRID_AUTOSIZE
72
GRID_COLUMN = _grid.GRID_COLUMN
73
GRID_ROW = _grid.GRID_ROW
74
GRID_DEFAULT_NUMBER_ROWS = _grid.GRID_DEFAULT_NUMBER_ROWS
75
GRID_DEFAULT_NUMBER_COLS = _grid.GRID_DEFAULT_NUMBER_COLS
76
GRID_DEFAULT_ROW_HEIGHT = _grid.GRID_DEFAULT_ROW_HEIGHT
77
GRID_DEFAULT_COL_WIDTH = _grid.GRID_DEFAULT_COL_WIDTH
78
GRID_DEFAULT_COL_LABEL_HEIGHT = _grid.GRID_DEFAULT_COL_LABEL_HEIGHT
79
GRID_DEFAULT_ROW_LABEL_WIDTH = _grid.GRID_DEFAULT_ROW_LABEL_WIDTH
80
GRID_LABEL_EDGE_ZONE = _grid.GRID_LABEL_EDGE_ZONE
81
GRID_MIN_ROW_HEIGHT = _grid.GRID_MIN_ROW_HEIGHT
82
GRID_MIN_COL_WIDTH = _grid.GRID_MIN_COL_WIDTH
83
GRID_DEFAULT_SCROLLBAR_WIDTH = _grid.GRID_DEFAULT_SCROLLBAR_WIDTH
84
class GridCellWorker(_core.RefCounter):
85
"""Proxy of C++ GridCellWorker class"""
86
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
87
def __init__(self): raise AttributeError, "No constructor defined"
89
def _setOORInfo(*args, **kwargs):
90
"""_setOORInfo(self, PyObject _self)"""
91
return _grid.GridCellWorker__setOORInfo(*args, **kwargs)
93
__swig_destroy__ = _grid.delete_GridCellWorker
94
__del__ = lambda self : None;
95
def SetParameters(*args, **kwargs):
96
"""SetParameters(self, String params)"""
97
return _grid.GridCellWorker_SetParameters(*args, **kwargs)
99
_grid.GridCellWorker_swigregister(GridCellWorker)
101
GridNoCellCoords = cvar.GridNoCellCoords
102
GridNoCellRect = cvar.GridNoCellRect
104
class GridCellRenderer(GridCellWorker):
105
"""Proxy of C++ GridCellRenderer class"""
106
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
107
def __init__(self): raise AttributeError, "No constructor defined"
108
__repr__ = _swig_repr
109
def Draw(*args, **kwargs):
111
Draw(self, Grid grid, GridCellAttr attr, DC dc, Rect rect, int row,
112
int col, bool isSelected)
114
return _grid.GridCellRenderer_Draw(*args, **kwargs)
116
def GetBestSize(*args, **kwargs):
117
"""GetBestSize(self, Grid grid, GridCellAttr attr, DC dc, int row, int col) -> Size"""
118
return _grid.GridCellRenderer_GetBestSize(*args, **kwargs)
120
def Clone(*args, **kwargs):
121
"""Clone(self) -> GridCellRenderer"""
122
return _grid.GridCellRenderer_Clone(*args, **kwargs)
124
_grid.GridCellRenderer_swigregister(GridCellRenderer)
126
class PyGridCellRenderer(GridCellRenderer):
127
"""Proxy of C++ PyGridCellRenderer class"""
128
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
129
__repr__ = _swig_repr
130
def __init__(self, *args, **kwargs):
131
"""__init__(self) -> PyGridCellRenderer"""
132
_grid.PyGridCellRenderer_swiginit(self,_grid.new_PyGridCellRenderer(*args, **kwargs))
133
self._setOORInfo(self);PyGridCellRenderer._setCallbackInfo(self, self, PyGridCellRenderer)
135
def _setCallbackInfo(*args, **kwargs):
136
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
137
return _grid.PyGridCellRenderer__setCallbackInfo(*args, **kwargs)
139
def SetParameters(*args, **kwargs):
140
"""SetParameters(self, String params)"""
141
return _grid.PyGridCellRenderer_SetParameters(*args, **kwargs)
143
def base_SetParameters(*args, **kw):
144
return PyGridCellRenderer.SetParameters(*args, **kw)
145
base_SetParameters = wx.deprecated(base_SetParameters,
146
"Please use PyGridCellRenderer.SetParameters instead.")
148
_grid.PyGridCellRenderer_swigregister(PyGridCellRenderer)
150
class GridCellStringRenderer(GridCellRenderer):
151
"""Proxy of C++ GridCellStringRenderer class"""
152
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
153
__repr__ = _swig_repr
154
def __init__(self, *args, **kwargs):
155
"""__init__(self) -> GridCellStringRenderer"""
156
_grid.GridCellStringRenderer_swiginit(self,_grid.new_GridCellStringRenderer(*args, **kwargs))
157
self._setOORInfo(self)
159
_grid.GridCellStringRenderer_swigregister(GridCellStringRenderer)
161
class GridCellNumberRenderer(GridCellStringRenderer):
162
"""Proxy of C++ GridCellNumberRenderer class"""
163
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
164
__repr__ = _swig_repr
165
def __init__(self, *args, **kwargs):
166
"""__init__(self) -> GridCellNumberRenderer"""
167
_grid.GridCellNumberRenderer_swiginit(self,_grid.new_GridCellNumberRenderer(*args, **kwargs))
168
self._setOORInfo(self)
170
_grid.GridCellNumberRenderer_swigregister(GridCellNumberRenderer)
172
GRID_FLOAT_FORMAT_FIXED = _grid.GRID_FLOAT_FORMAT_FIXED
173
GRID_FLOAT_FORMAT_SCIENTIFIC = _grid.GRID_FLOAT_FORMAT_SCIENTIFIC
174
GRID_FLOAT_FORMAT_COMPACT = _grid.GRID_FLOAT_FORMAT_COMPACT
175
GRID_FLOAT_FORMAT_UPPER = _grid.GRID_FLOAT_FORMAT_UPPER
176
GRID_FLOAT_FORMAT_DEFAULT = _grid.GRID_FLOAT_FORMAT_DEFAULT
177
GRID_FLOAT_FORMAT_MASK = _grid.GRID_FLOAT_FORMAT_MASK
178
class GridCellFloatRenderer(GridCellStringRenderer):
179
"""Proxy of C++ GridCellFloatRenderer class"""
180
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
181
__repr__ = _swig_repr
182
def __init__(self, *args, **kwargs):
183
"""__init__(self, int width=-1, int precision=-1, int format=GRID_FLOAT_FORMAT_DEFAULT) -> GridCellFloatRenderer"""
184
_grid.GridCellFloatRenderer_swiginit(self,_grid.new_GridCellFloatRenderer(*args, **kwargs))
185
self._setOORInfo(self)
187
def GetWidth(*args, **kwargs):
188
"""GetWidth(self) -> int"""
189
return _grid.GridCellFloatRenderer_GetWidth(*args, **kwargs)
191
def SetWidth(*args, **kwargs):
192
"""SetWidth(self, int width)"""
193
return _grid.GridCellFloatRenderer_SetWidth(*args, **kwargs)
195
def GetPrecision(*args, **kwargs):
196
"""GetPrecision(self) -> int"""
197
return _grid.GridCellFloatRenderer_GetPrecision(*args, **kwargs)
199
def SetPrecision(*args, **kwargs):
200
"""SetPrecision(self, int precision)"""
201
return _grid.GridCellFloatRenderer_SetPrecision(*args, **kwargs)
203
def GetFormat(*args, **kwargs):
204
"""GetFormat(self) -> int"""
205
return _grid.GridCellFloatRenderer_GetFormat(*args, **kwargs)
207
def SetFormat(*args, **kwargs):
208
"""SetFormat(self, int format)"""
209
return _grid.GridCellFloatRenderer_SetFormat(*args, **kwargs)
211
Precision = property(GetPrecision,SetPrecision,doc="See `GetPrecision` and `SetPrecision`")
212
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
213
_grid.GridCellFloatRenderer_swigregister(GridCellFloatRenderer)
215
class GridCellBoolRenderer(GridCellRenderer):
216
"""Proxy of C++ GridCellBoolRenderer class"""
217
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
218
__repr__ = _swig_repr
219
def __init__(self, *args, **kwargs):
220
"""__init__(self) -> GridCellBoolRenderer"""
221
_grid.GridCellBoolRenderer_swiginit(self,_grid.new_GridCellBoolRenderer(*args, **kwargs))
222
self._setOORInfo(self)
224
_grid.GridCellBoolRenderer_swigregister(GridCellBoolRenderer)
226
class GridCellDateTimeRenderer(GridCellStringRenderer):
227
"""Proxy of C++ GridCellDateTimeRenderer class"""
228
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
229
__repr__ = _swig_repr
230
def __init__(self, *args, **kwargs):
231
"""__init__(self, String outformat=wxPyDefaultDateTimeFormat, String informat=wxPyDefaultDateTimeFormat) -> GridCellDateTimeRenderer"""
232
_grid.GridCellDateTimeRenderer_swiginit(self,_grid.new_GridCellDateTimeRenderer(*args, **kwargs))
233
self._setOORInfo(self)
235
_grid.GridCellDateTimeRenderer_swigregister(GridCellDateTimeRenderer)
237
class GridCellEnumRenderer(GridCellStringRenderer):
238
"""Proxy of C++ GridCellEnumRenderer class"""
239
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
240
__repr__ = _swig_repr
241
def __init__(self, *args, **kwargs):
242
"""__init__(self, String choices=EmptyString) -> GridCellEnumRenderer"""
243
_grid.GridCellEnumRenderer_swiginit(self,_grid.new_GridCellEnumRenderer(*args, **kwargs))
244
self._setOORInfo(self)
246
_grid.GridCellEnumRenderer_swigregister(GridCellEnumRenderer)
248
class GridCellAutoWrapStringRenderer(GridCellStringRenderer):
249
"""Proxy of C++ GridCellAutoWrapStringRenderer class"""
250
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
251
__repr__ = _swig_repr
252
def __init__(self, *args, **kwargs):
253
"""__init__(self) -> GridCellAutoWrapStringRenderer"""
254
_grid.GridCellAutoWrapStringRenderer_swiginit(self,_grid.new_GridCellAutoWrapStringRenderer(*args, **kwargs))
255
self._setOORInfo(self)
257
_grid.GridCellAutoWrapStringRenderer_swigregister(GridCellAutoWrapStringRenderer)
259
class GridCellEditor(GridCellWorker):
260
"""Proxy of C++ GridCellEditor class"""
261
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
262
def __init__(self): raise AttributeError, "No constructor defined"
263
__repr__ = _swig_repr
264
def IsCreated(*args, **kwargs):
265
"""IsCreated(self) -> bool"""
266
return _grid.GridCellEditor_IsCreated(*args, **kwargs)
268
def GetControl(*args, **kwargs):
269
"""GetControl(self) -> Control"""
270
return _grid.GridCellEditor_GetControl(*args, **kwargs)
272
def SetControl(*args, **kwargs):
273
"""SetControl(self, Control control)"""
274
return _grid.GridCellEditor_SetControl(*args, **kwargs)
276
def GetCellAttr(*args, **kwargs):
277
"""GetCellAttr(self) -> GridCellAttr"""
278
return _grid.GridCellEditor_GetCellAttr(*args, **kwargs)
280
def SetCellAttr(*args, **kwargs):
281
"""SetCellAttr(self, GridCellAttr attr)"""
282
return _grid.GridCellEditor_SetCellAttr(*args, **kwargs)
284
def Create(*args, **kwargs):
285
"""Create(self, Window parent, int id, EvtHandler evtHandler)"""
286
return _grid.GridCellEditor_Create(*args, **kwargs)
288
def BeginEdit(*args, **kwargs):
289
"""BeginEdit(self, int row, int col, Grid grid)"""
290
return _grid.GridCellEditor_BeginEdit(*args, **kwargs)
292
def EndEdit(*args, **kwargs):
293
"""EndEdit(self, int row, int col, Grid grid, String oldval, String newval) -> bool"""
294
return _grid.GridCellEditor_EndEdit(*args, **kwargs)
296
def ApplyEdit(*args, **kwargs):
297
"""ApplyEdit(self, int row, int col, Grid grid)"""
298
return _grid.GridCellEditor_ApplyEdit(*args, **kwargs)
300
def Reset(*args, **kwargs):
302
return _grid.GridCellEditor_Reset(*args, **kwargs)
304
def Clone(*args, **kwargs):
305
"""Clone(self) -> GridCellEditor"""
306
return _grid.GridCellEditor_Clone(*args, **kwargs)
308
def SetSize(*args, **kwargs):
309
"""SetSize(self, Rect rect)"""
310
return _grid.GridCellEditor_SetSize(*args, **kwargs)
312
def Show(*args, **kwargs):
313
"""Show(self, bool show, GridCellAttr attr=None)"""
314
return _grid.GridCellEditor_Show(*args, **kwargs)
316
def PaintBackground(*args, **kwargs):
317
"""PaintBackground(self, Rect rectCell, GridCellAttr attr)"""
318
return _grid.GridCellEditor_PaintBackground(*args, **kwargs)
320
def IsAcceptedKey(*args, **kwargs):
321
"""IsAcceptedKey(self, KeyEvent event) -> bool"""
322
return _grid.GridCellEditor_IsAcceptedKey(*args, **kwargs)
324
def StartingKey(*args, **kwargs):
325
"""StartingKey(self, KeyEvent event)"""
326
return _grid.GridCellEditor_StartingKey(*args, **kwargs)
328
def StartingClick(*args, **kwargs):
329
"""StartingClick(self)"""
330
return _grid.GridCellEditor_StartingClick(*args, **kwargs)
332
def HandleReturn(*args, **kwargs):
333
"""HandleReturn(self, KeyEvent event)"""
334
return _grid.GridCellEditor_HandleReturn(*args, **kwargs)
336
def Destroy(*args, **kwargs):
338
args[0].this.own(False)
339
return _grid.GridCellEditor_Destroy(*args, **kwargs)
341
def GetValue(*args, **kwargs):
342
"""GetValue(self) -> String"""
343
return _grid.GridCellEditor_GetValue(*args, **kwargs)
345
CellAttr = property(GetCellAttr,SetCellAttr,doc="See `GetCellAttr` and `SetCellAttr`")
346
Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`")
347
_grid.GridCellEditor_swigregister(GridCellEditor)
349
class PyGridCellEditor(GridCellEditor):
350
"""Proxy of C++ PyGridCellEditor class"""
351
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
352
__repr__ = _swig_repr
353
def __init__(self, *args, **kwargs):
354
"""__init__(self) -> PyGridCellEditor"""
355
_grid.PyGridCellEditor_swiginit(self,_grid.new_PyGridCellEditor(*args, **kwargs))
356
self._setOORInfo(self);PyGridCellEditor._setCallbackInfo(self, self, PyGridCellEditor)
358
def _setCallbackInfo(*args, **kwargs):
359
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
360
return _grid.PyGridCellEditor__setCallbackInfo(*args, **kwargs)
362
def SetParameters(*args, **kwargs):
363
"""SetParameters(self, String params)"""
364
return _grid.PyGridCellEditor_SetParameters(*args, **kwargs)
366
def base_SetSize(*args, **kw):
367
return PyGridCellEditor.SetSize(*args, **kw)
368
base_SetSize = wx.deprecated(base_SetSize,
369
"Please use PyGridCellEditor.SetSize instead.")
371
def base_Show(*args, **kw):
372
return PyGridCellEditor.Show(*args, **kw)
373
base_Show = wx.deprecated(base_Show,
374
"Please use PyGridCellEditor.Show instead.")
376
def base_PaintBackground(*args, **kw):
377
return PyGridCellEditor.PaintBackground(*args, **kw)
378
base_PaintBackground = wx.deprecated(base_PaintBackground,
379
"Please use PyGridCellEditor.PaintBackground instead.")
381
def base_IsAcceptedKey(*args, **kw):
382
return PyGridCellEditor.IsAcceptedKey(*args, **kw)
383
base_IsAcceptedKey = wx.deprecated(base_IsAcceptedKey,
384
"Please use PyGridCellEditor.IsAcceptedKey instead.")
386
def base_StartingKey(*args, **kw):
387
return PyGridCellEditor.StartingKey(*args, **kw)
388
base_StartingKey = wx.deprecated(base_StartingKey,
389
"Please use PyGridCellEditor.StartingKey instead.")
391
def base_StartingClick(*args, **kw):
392
return PyGridCellEditor.StartingClick(*args, **kw)
393
base_StartingClick = wx.deprecated(base_StartingClick,
394
"Please use PyGridCellEditor.StartingClick instead.")
396
def base_HandleReturn(*args, **kw):
397
return PyGridCellEditor.HandleReturn(*args, **kw)
398
base_HandleReturn = wx.deprecated(base_HandleReturn,
399
"Please use PyGridCellEditor.HandleReturn instead.")
401
def base_Destroy(*args, **kw):
402
return PyGridCellEditor.Destroy(*args, **kw)
403
base_Destroy = wx.deprecated(base_Destroy,
404
"Please use PyGridCellEditor.Destroy instead.")
406
def base_SetParameters(*args, **kw):
407
return PyGridCellEditor.SetParameters(*args, **kw)
408
base_SetParameters = wx.deprecated(base_SetParameters,
409
"Please use PyGridCellEditor.SetParameters instead.")
411
_grid.PyGridCellEditor_swigregister(PyGridCellEditor)
413
class GridCellTextEditor(GridCellEditor):
414
"""Proxy of C++ GridCellTextEditor class"""
415
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
416
__repr__ = _swig_repr
417
def __init__(self, *args, **kwargs):
418
"""__init__(self) -> GridCellTextEditor"""
419
_grid.GridCellTextEditor_swiginit(self,_grid.new_GridCellTextEditor(*args, **kwargs))
420
self._setOORInfo(self)
422
def GetValue(*args, **kwargs):
423
"""GetValue(self) -> String"""
424
return _grid.GridCellTextEditor_GetValue(*args, **kwargs)
426
Value = property(GetValue,doc="See `GetValue`")
427
_grid.GridCellTextEditor_swigregister(GridCellTextEditor)
429
class GridCellNumberEditor(GridCellTextEditor):
430
"""Proxy of C++ GridCellNumberEditor class"""
431
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
432
__repr__ = _swig_repr
433
def __init__(self, *args, **kwargs):
434
"""__init__(self, int min=-1, int max=-1) -> GridCellNumberEditor"""
435
_grid.GridCellNumberEditor_swiginit(self,_grid.new_GridCellNumberEditor(*args, **kwargs))
436
self._setOORInfo(self)
438
_grid.GridCellNumberEditor_swigregister(GridCellNumberEditor)
440
class GridCellFloatEditor(GridCellTextEditor):
441
"""Proxy of C++ GridCellFloatEditor class"""
442
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
443
__repr__ = _swig_repr
444
def __init__(self, *args, **kwargs):
445
"""__init__(self, int width=-1, int precision=-1, int format=GRID_FLOAT_FORMAT_DEFAULT) -> GridCellFloatEditor"""
446
_grid.GridCellFloatEditor_swiginit(self,_grid.new_GridCellFloatEditor(*args, **kwargs))
447
self._setOORInfo(self)
449
_grid.GridCellFloatEditor_swigregister(GridCellFloatEditor)
451
class GridCellBoolEditor(GridCellEditor):
452
"""Proxy of C++ GridCellBoolEditor class"""
453
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
454
__repr__ = _swig_repr
455
def __init__(self, *args, **kwargs):
456
"""__init__(self) -> GridCellBoolEditor"""
457
_grid.GridCellBoolEditor_swiginit(self,_grid.new_GridCellBoolEditor(*args, **kwargs))
458
self._setOORInfo(self)
460
def UseStringValues(*args, **kwargs):
461
"""UseStringValues(String valueTrue=OneString, String valueFalse=EmptyString)"""
462
return _grid.GridCellBoolEditor_UseStringValues(*args, **kwargs)
464
UseStringValues = staticmethod(UseStringValues)
465
def IsTrueValue(*args, **kwargs):
466
"""IsTrueValue(String value) -> bool"""
467
return _grid.GridCellBoolEditor_IsTrueValue(*args, **kwargs)
469
IsTrueValue = staticmethod(IsTrueValue)
470
_grid.GridCellBoolEditor_swigregister(GridCellBoolEditor)
471
OneString = cvar.OneString
473
def GridCellBoolEditor_UseStringValues(*args, **kwargs):
474
"""GridCellBoolEditor_UseStringValues(String valueTrue=OneString, String valueFalse=EmptyString)"""
475
return _grid.GridCellBoolEditor_UseStringValues(*args, **kwargs)
477
def GridCellBoolEditor_IsTrueValue(*args, **kwargs):
478
"""GridCellBoolEditor_IsTrueValue(String value) -> bool"""
479
return _grid.GridCellBoolEditor_IsTrueValue(*args, **kwargs)
481
class GridCellChoiceEditor(GridCellEditor):
482
"""Proxy of C++ GridCellChoiceEditor class"""
483
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
484
__repr__ = _swig_repr
485
def __init__(self, *args, **kwargs):
486
"""__init__(self, int choices=0, bool allowOthers=False) -> GridCellChoiceEditor"""
487
_grid.GridCellChoiceEditor_swiginit(self,_grid.new_GridCellChoiceEditor(*args, **kwargs))
488
self._setOORInfo(self)
490
_grid.GridCellChoiceEditor_swigregister(GridCellChoiceEditor)
492
class GridCellEnumEditor(GridCellChoiceEditor):
493
"""Proxy of C++ GridCellEnumEditor class"""
494
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
495
__repr__ = _swig_repr
496
def __init__(self, *args, **kwargs):
497
"""__init__(self, String choices=EmptyString) -> GridCellEnumEditor"""
498
_grid.GridCellEnumEditor_swiginit(self,_grid.new_GridCellEnumEditor(*args, **kwargs))
499
self._setOORInfo(self)
501
_grid.GridCellEnumEditor_swigregister(GridCellEnumEditor)
503
class GridCellAutoWrapStringEditor(GridCellTextEditor):
504
"""Proxy of C++ GridCellAutoWrapStringEditor class"""
505
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
506
__repr__ = _swig_repr
507
def __init__(self, *args, **kwargs):
508
"""__init__(self) -> GridCellAutoWrapStringEditor"""
509
_grid.GridCellAutoWrapStringEditor_swiginit(self,_grid.new_GridCellAutoWrapStringEditor(*args, **kwargs))
510
self._setOORInfo(self)
512
_grid.GridCellAutoWrapStringEditor_swigregister(GridCellAutoWrapStringEditor)
514
class GridCellAttr(_core.RefCounter):
515
"""Proxy of C++ GridCellAttr class"""
516
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
517
__repr__ = _swig_repr
518
Any = _grid.GridCellAttr_Any
519
Default = _grid.GridCellAttr_Default
520
Cell = _grid.GridCellAttr_Cell
521
Row = _grid.GridCellAttr_Row
522
Col = _grid.GridCellAttr_Col
523
Merged = _grid.GridCellAttr_Merged
524
def _setOORInfo(*args, **kwargs):
525
"""_setOORInfo(self, PyObject _self)"""
526
return _grid.GridCellAttr__setOORInfo(*args, **kwargs)
528
def __init__(self, *args, **kwargs):
529
"""__init__(self, GridCellAttr attrDefault=None) -> GridCellAttr"""
530
_grid.GridCellAttr_swiginit(self,_grid.new_GridCellAttr(*args, **kwargs))
531
self._setOORInfo(self)
533
__swig_destroy__ = _grid.delete_GridCellAttr
534
__del__ = lambda self : None;
535
def Clone(*args, **kwargs):
536
"""Clone(self) -> GridCellAttr"""
537
return _grid.GridCellAttr_Clone(*args, **kwargs)
539
def MergeWith(*args, **kwargs):
540
"""MergeWith(self, GridCellAttr mergefrom)"""
541
return _grid.GridCellAttr_MergeWith(*args, **kwargs)
543
def SetTextColour(*args, **kwargs):
544
"""SetTextColour(self, Colour colText)"""
545
return _grid.GridCellAttr_SetTextColour(*args, **kwargs)
547
def SetBackgroundColour(*args, **kwargs):
548
"""SetBackgroundColour(self, Colour colBack)"""
549
return _grid.GridCellAttr_SetBackgroundColour(*args, **kwargs)
551
def SetFont(*args, **kwargs):
552
"""SetFont(self, Font font)"""
553
return _grid.GridCellAttr_SetFont(*args, **kwargs)
555
def SetAlignment(*args, **kwargs):
556
"""SetAlignment(self, int hAlign, int vAlign)"""
557
return _grid.GridCellAttr_SetAlignment(*args, **kwargs)
559
def SetSize(*args, **kwargs):
560
"""SetSize(self, int num_rows, int num_cols)"""
561
return _grid.GridCellAttr_SetSize(*args, **kwargs)
563
def SetOverflow(*args, **kwargs):
564
"""SetOverflow(self, bool allow=True)"""
565
return _grid.GridCellAttr_SetOverflow(*args, **kwargs)
567
def SetReadOnly(*args, **kwargs):
568
"""SetReadOnly(self, bool isReadOnly=True)"""
569
return _grid.GridCellAttr_SetReadOnly(*args, **kwargs)
571
def SetRenderer(*args, **kwargs):
572
"""SetRenderer(self, GridCellRenderer renderer)"""
573
return _grid.GridCellAttr_SetRenderer(*args, **kwargs)
575
def SetEditor(*args, **kwargs):
576
"""SetEditor(self, GridCellEditor editor)"""
577
return _grid.GridCellAttr_SetEditor(*args, **kwargs)
579
def SetKind(*args, **kwargs):
580
"""SetKind(self, int kind)"""
581
return _grid.GridCellAttr_SetKind(*args, **kwargs)
583
def HasTextColour(*args, **kwargs):
584
"""HasTextColour(self) -> bool"""
585
return _grid.GridCellAttr_HasTextColour(*args, **kwargs)
587
def HasBackgroundColour(*args, **kwargs):
588
"""HasBackgroundColour(self) -> bool"""
589
return _grid.GridCellAttr_HasBackgroundColour(*args, **kwargs)
591
def HasFont(*args, **kwargs):
592
"""HasFont(self) -> bool"""
593
return _grid.GridCellAttr_HasFont(*args, **kwargs)
595
def HasAlignment(*args, **kwargs):
596
"""HasAlignment(self) -> bool"""
597
return _grid.GridCellAttr_HasAlignment(*args, **kwargs)
599
def HasRenderer(*args, **kwargs):
600
"""HasRenderer(self) -> bool"""
601
return _grid.GridCellAttr_HasRenderer(*args, **kwargs)
603
def HasEditor(*args, **kwargs):
604
"""HasEditor(self) -> bool"""
605
return _grid.GridCellAttr_HasEditor(*args, **kwargs)
607
def HasReadWriteMode(*args, **kwargs):
608
"""HasReadWriteMode(self) -> bool"""
609
return _grid.GridCellAttr_HasReadWriteMode(*args, **kwargs)
611
def HasOverflowMode(*args, **kwargs):
612
"""HasOverflowMode(self) -> bool"""
613
return _grid.GridCellAttr_HasOverflowMode(*args, **kwargs)
615
def GetTextColour(*args, **kwargs):
616
"""GetTextColour(self) -> Colour"""
617
return _grid.GridCellAttr_GetTextColour(*args, **kwargs)
619
def GetBackgroundColour(*args, **kwargs):
620
"""GetBackgroundColour(self) -> Colour"""
621
return _grid.GridCellAttr_GetBackgroundColour(*args, **kwargs)
623
def GetFont(*args, **kwargs):
624
"""GetFont(self) -> Font"""
625
return _grid.GridCellAttr_GetFont(*args, **kwargs)
627
def GetAlignment(*args, **kwargs):
628
"""GetAlignment() -> (hAlign, vAlign)"""
629
return _grid.GridCellAttr_GetAlignment(*args, **kwargs)
631
def GetNonDefaultAlignment(*args, **kwargs):
632
"""GetNonDefaultAlignment() -> (hAlign, vAlign)"""
633
return _grid.GridCellAttr_GetNonDefaultAlignment(*args, **kwargs)
635
def GetSize(*args, **kwargs):
636
"""GetSize() -> (num_rows, num_cols)"""
637
return _grid.GridCellAttr_GetSize(*args, **kwargs)
639
def GetOverflow(*args, **kwargs):
640
"""GetOverflow(self) -> bool"""
641
return _grid.GridCellAttr_GetOverflow(*args, **kwargs)
643
def GetRenderer(*args, **kwargs):
644
"""GetRenderer(self, Grid grid, int row, int col) -> GridCellRenderer"""
645
return _grid.GridCellAttr_GetRenderer(*args, **kwargs)
647
def GetEditor(*args, **kwargs):
648
"""GetEditor(self, Grid grid, int row, int col) -> GridCellEditor"""
649
return _grid.GridCellAttr_GetEditor(*args, **kwargs)
651
def IsReadOnly(*args, **kwargs):
652
"""IsReadOnly(self) -> bool"""
653
return _grid.GridCellAttr_IsReadOnly(*args, **kwargs)
655
def GetKind(*args, **kwargs):
656
"""GetKind(self) -> int"""
657
return _grid.GridCellAttr_GetKind(*args, **kwargs)
659
def SetDefAttr(*args, **kwargs):
660
"""SetDefAttr(self, GridCellAttr defAttr)"""
661
return _grid.GridCellAttr_SetDefAttr(*args, **kwargs)
663
Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`")
664
NonDefaultAlignment = property(GetNonDefaultAlignment)
665
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
666
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
667
Kind = property(GetKind,SetKind,doc="See `GetKind` and `SetKind`")
668
Overflow = property(GetOverflow,SetOverflow,doc="See `GetOverflow` and `SetOverflow`")
669
Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`")
670
TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`")
671
_grid.GridCellAttr_swigregister(GridCellAttr)
673
class GridCellAttrProvider(object):
674
"""Proxy of C++ GridCellAttrProvider class"""
675
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
676
__repr__ = _swig_repr
677
def __init__(self, *args, **kwargs):
678
"""__init__(self) -> GridCellAttrProvider"""
679
_grid.GridCellAttrProvider_swiginit(self,_grid.new_GridCellAttrProvider(*args, **kwargs))
680
self._setOORInfo(self)
682
def _setOORInfo(*args, **kwargs):
683
"""_setOORInfo(self, PyObject _self)"""
684
return _grid.GridCellAttrProvider__setOORInfo(*args, **kwargs)
686
def GetAttr(*args, **kwargs):
687
"""GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
688
return _grid.GridCellAttrProvider_GetAttr(*args, **kwargs)
690
def SetAttr(*args, **kwargs):
691
"""SetAttr(self, GridCellAttr attr, int row, int col)"""
692
return _grid.GridCellAttrProvider_SetAttr(*args, **kwargs)
694
def SetRowAttr(*args, **kwargs):
695
"""SetRowAttr(self, GridCellAttr attr, int row)"""
696
return _grid.GridCellAttrProvider_SetRowAttr(*args, **kwargs)
698
def SetColAttr(*args, **kwargs):
699
"""SetColAttr(self, GridCellAttr attr, int col)"""
700
return _grid.GridCellAttrProvider_SetColAttr(*args, **kwargs)
702
def UpdateAttrRows(*args, **kwargs):
703
"""UpdateAttrRows(self, size_t pos, int numRows)"""
704
return _grid.GridCellAttrProvider_UpdateAttrRows(*args, **kwargs)
706
def UpdateAttrCols(*args, **kwargs):
707
"""UpdateAttrCols(self, size_t pos, int numCols)"""
708
return _grid.GridCellAttrProvider_UpdateAttrCols(*args, **kwargs)
710
_grid.GridCellAttrProvider_swigregister(GridCellAttrProvider)
712
class PyGridCellAttrProvider(GridCellAttrProvider):
713
"""Proxy of C++ PyGridCellAttrProvider class"""
714
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
715
__repr__ = _swig_repr
716
def __init__(self, *args, **kwargs):
717
"""__init__(self) -> PyGridCellAttrProvider"""
718
_grid.PyGridCellAttrProvider_swiginit(self,_grid.new_PyGridCellAttrProvider(*args, **kwargs))
719
PyGridCellAttrProvider._setCallbackInfo(self, self, PyGridCellAttrProvider)
721
def _setCallbackInfo(*args, **kwargs):
722
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
723
return _grid.PyGridCellAttrProvider__setCallbackInfo(*args, **kwargs)
725
def GetAttr(*args, **kwargs):
726
"""GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
727
return _grid.PyGridCellAttrProvider_GetAttr(*args, **kwargs)
729
def SetAttr(*args, **kwargs):
730
"""SetAttr(self, GridCellAttr attr, int row, int col)"""
731
return _grid.PyGridCellAttrProvider_SetAttr(*args, **kwargs)
733
def SetRowAttr(*args, **kwargs):
734
"""SetRowAttr(self, GridCellAttr attr, int row)"""
735
return _grid.PyGridCellAttrProvider_SetRowAttr(*args, **kwargs)
737
def SetColAttr(*args, **kwargs):
738
"""SetColAttr(self, GridCellAttr attr, int col)"""
739
return _grid.PyGridCellAttrProvider_SetColAttr(*args, **kwargs)
741
def base_GetAttr(*args, **kw):
742
return PyGridCellAttrProvider.GetAttr(*args, **kw)
743
base_GetAttr = wx.deprecated(base_GetAttr,
744
"Please use PyGridCellAttrProvider.GetAttr instead.")
746
def base_SetAttr(*args, **kw):
747
return PyGridCellAttrProvider.SetAttr(*args, **kw)
748
base_SetAttr = wx.deprecated(base_SetAttr,
749
"Please use PyGridCellAttrProvider.SetAttr instead.")
751
def base_SetRowAttr(*args, **kw):
752
return PyGridCellAttrProvider.SetRowAttr(*args, **kw)
753
base_SetRowAttr = wx.deprecated(base_SetRowAttr,
754
"Please use PyGridCellAttrProvider.SetRowAttr instead.")
756
def base_SetColAttr(*args, **kw):
757
return PyGridCellAttrProvider.SetColAttr(*args, **kw)
758
base_SetColAttr = wx.deprecated(base_SetColAttr,
759
"Please use PyGridCellAttrProvider.SetColAttr instead.")
761
_grid.PyGridCellAttrProvider_swigregister(PyGridCellAttrProvider)
763
class GridTableBase(_core.Object):
764
"""Proxy of C++ GridTableBase class"""
765
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
766
def __init__(self): raise AttributeError, "No constructor defined"
767
__repr__ = _swig_repr
768
__swig_destroy__ = _grid.delete_GridTableBase
769
__del__ = lambda self : None;
770
def _setOORInfo(*args, **kwargs):
771
"""_setOORInfo(self, PyObject _self)"""
772
return _grid.GridTableBase__setOORInfo(*args, **kwargs)
774
def SetAttrProvider(*args, **kwargs):
775
"""SetAttrProvider(self, GridCellAttrProvider attrProvider)"""
776
return _grid.GridTableBase_SetAttrProvider(*args, **kwargs)
778
def GetAttrProvider(*args, **kwargs):
779
"""GetAttrProvider(self) -> GridCellAttrProvider"""
780
return _grid.GridTableBase_GetAttrProvider(*args, **kwargs)
782
def SetView(*args, **kwargs):
783
"""SetView(self, Grid grid)"""
784
return _grid.GridTableBase_SetView(*args, **kwargs)
786
def GetView(*args, **kwargs):
787
"""GetView(self) -> Grid"""
788
return _grid.GridTableBase_GetView(*args, **kwargs)
790
def GetRowsCount(*args, **kwargs):
791
"""GetRowsCount(self) -> int"""
792
return _grid.GridTableBase_GetRowsCount(*args, **kwargs)
794
def GetColsCount(*args, **kwargs):
795
"""GetColsCount(self) -> int"""
796
return _grid.GridTableBase_GetColsCount(*args, **kwargs)
798
def IsEmpty(*args, **kwargs):
799
"""IsEmpty(self, GridCellCoords coord) -> bool"""
800
return _grid.GridTableBase_IsEmpty(*args, **kwargs)
802
def GetNumberRows(*args, **kwargs):
803
"""GetNumberRows(self) -> int"""
804
return _grid.GridTableBase_GetNumberRows(*args, **kwargs)
806
def GetNumberCols(*args, **kwargs):
807
"""GetNumberCols(self) -> int"""
808
return _grid.GridTableBase_GetNumberCols(*args, **kwargs)
810
def IsEmptyCell(*args, **kwargs):
811
"""IsEmptyCell(self, int row, int col) -> bool"""
812
return _grid.GridTableBase_IsEmptyCell(*args, **kwargs)
814
def GetValue(*args, **kwargs):
815
"""GetValue(self, int row, int col) -> String"""
816
return _grid.GridTableBase_GetValue(*args, **kwargs)
818
def SetValue(*args, **kwargs):
819
"""SetValue(self, int row, int col, String value)"""
820
return _grid.GridTableBase_SetValue(*args, **kwargs)
822
def GetTypeName(*args, **kwargs):
823
"""GetTypeName(self, int row, int col) -> String"""
824
return _grid.GridTableBase_GetTypeName(*args, **kwargs)
826
def CanGetValueAs(*args, **kwargs):
827
"""CanGetValueAs(self, int row, int col, String typeName) -> bool"""
828
return _grid.GridTableBase_CanGetValueAs(*args, **kwargs)
830
def CanSetValueAs(*args, **kwargs):
831
"""CanSetValueAs(self, int row, int col, String typeName) -> bool"""
832
return _grid.GridTableBase_CanSetValueAs(*args, **kwargs)
834
def GetValueAsLong(*args, **kwargs):
835
"""GetValueAsLong(self, int row, int col) -> long"""
836
return _grid.GridTableBase_GetValueAsLong(*args, **kwargs)
838
def GetValueAsDouble(*args, **kwargs):
839
"""GetValueAsDouble(self, int row, int col) -> double"""
840
return _grid.GridTableBase_GetValueAsDouble(*args, **kwargs)
842
def GetValueAsBool(*args, **kwargs):
843
"""GetValueAsBool(self, int row, int col) -> bool"""
844
return _grid.GridTableBase_GetValueAsBool(*args, **kwargs)
846
def SetValueAsLong(*args, **kwargs):
847
"""SetValueAsLong(self, int row, int col, long value)"""
848
return _grid.GridTableBase_SetValueAsLong(*args, **kwargs)
850
def SetValueAsDouble(*args, **kwargs):
851
"""SetValueAsDouble(self, int row, int col, double value)"""
852
return _grid.GridTableBase_SetValueAsDouble(*args, **kwargs)
854
def SetValueAsBool(*args, **kwargs):
855
"""SetValueAsBool(self, int row, int col, bool value)"""
856
return _grid.GridTableBase_SetValueAsBool(*args, **kwargs)
858
def Clear(*args, **kwargs):
860
return _grid.GridTableBase_Clear(*args, **kwargs)
862
def InsertRows(*args, **kwargs):
863
"""InsertRows(self, size_t pos=0, size_t numRows=1) -> bool"""
864
return _grid.GridTableBase_InsertRows(*args, **kwargs)
866
def AppendRows(*args, **kwargs):
867
"""AppendRows(self, size_t numRows=1) -> bool"""
868
return _grid.GridTableBase_AppendRows(*args, **kwargs)
870
def DeleteRows(*args, **kwargs):
871
"""DeleteRows(self, size_t pos=0, size_t numRows=1) -> bool"""
872
return _grid.GridTableBase_DeleteRows(*args, **kwargs)
874
def InsertCols(*args, **kwargs):
875
"""InsertCols(self, size_t pos=0, size_t numCols=1) -> bool"""
876
return _grid.GridTableBase_InsertCols(*args, **kwargs)
878
def AppendCols(*args, **kwargs):
879
"""AppendCols(self, size_t numCols=1) -> bool"""
880
return _grid.GridTableBase_AppendCols(*args, **kwargs)
882
def DeleteCols(*args, **kwargs):
883
"""DeleteCols(self, size_t pos=0, size_t numCols=1) -> bool"""
884
return _grid.GridTableBase_DeleteCols(*args, **kwargs)
886
def GetRowLabelValue(*args, **kwargs):
887
"""GetRowLabelValue(self, int row) -> String"""
888
return _grid.GridTableBase_GetRowLabelValue(*args, **kwargs)
890
def GetColLabelValue(*args, **kwargs):
891
"""GetColLabelValue(self, int col) -> String"""
892
return _grid.GridTableBase_GetColLabelValue(*args, **kwargs)
894
def SetRowLabelValue(*args, **kwargs):
895
"""SetRowLabelValue(self, int row, String value)"""
896
return _grid.GridTableBase_SetRowLabelValue(*args, **kwargs)
898
def SetColLabelValue(*args, **kwargs):
899
"""SetColLabelValue(self, int col, String value)"""
900
return _grid.GridTableBase_SetColLabelValue(*args, **kwargs)
902
def CanHaveAttributes(*args, **kwargs):
903
"""CanHaveAttributes(self) -> bool"""
904
return _grid.GridTableBase_CanHaveAttributes(*args, **kwargs)
906
def GetAttr(*args, **kwargs):
907
"""GetAttr(self, int row, int col, int kind) -> GridCellAttr"""
908
return _grid.GridTableBase_GetAttr(*args, **kwargs)
910
def SetAttr(*args, **kwargs):
911
"""SetAttr(self, GridCellAttr attr, int row, int col)"""
912
return _grid.GridTableBase_SetAttr(*args, **kwargs)
914
def SetRowAttr(*args, **kwargs):
915
"""SetRowAttr(self, GridCellAttr attr, int row)"""
916
return _grid.GridTableBase_SetRowAttr(*args, **kwargs)
918
def SetColAttr(*args, **kwargs):
919
"""SetColAttr(self, GridCellAttr attr, int col)"""
920
return _grid.GridTableBase_SetColAttr(*args, **kwargs)
922
AttrProvider = property(GetAttrProvider,SetAttrProvider,doc="See `GetAttrProvider` and `SetAttrProvider`")
923
NumberCols = property(GetNumberCols,doc="See `GetNumberCols`")
924
NumberRows = property(GetNumberRows,doc="See `GetNumberRows`")
925
View = property(GetView,SetView,doc="See `GetView` and `SetView`")
926
_grid.GridTableBase_swigregister(GridTableBase)
928
class PyGridTableBase(GridTableBase):
929
"""Proxy of C++ PyGridTableBase class"""
930
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
931
__repr__ = _swig_repr
932
def __init__(self, *args, **kwargs):
933
"""__init__(self) -> PyGridTableBase"""
934
_grid.PyGridTableBase_swiginit(self,_grid.new_PyGridTableBase(*args, **kwargs))
935
self._setOORInfo(self);PyGridTableBase._setCallbackInfo(self, self, PyGridTableBase)
937
def _setCallbackInfo(*args, **kwargs):
938
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
939
return _grid.PyGridTableBase__setCallbackInfo(*args, **kwargs)
941
def Destroy(*args, **kwargs):
945
Deletes the C++ object this Python object is a proxy for.
947
args[0].this.own(False)
948
return _grid.PyGridTableBase_Destroy(*args, **kwargs)
950
def base_GetTypeName(*args, **kw):
951
return PyGridTableBase.GetTypeName(*args, **kw)
952
base_GetTypeName = wx.deprecated(base_GetTypeName,
953
"Please use PyGridTableBase.GetTypeName instead.")
955
def base_CanGetValueAs(*args, **kw):
956
return PyGridTableBase.CanGetValueAs(*args, **kw)
957
base_CanGetValueAs = wx.deprecated(base_CanGetValueAs,
958
"Please use PyGridTableBase.CanGetValueAs instead.")
960
def base_CanSetValueAs(*args, **kw):
961
return PyGridTableBase.CanSetValueAs(*args, **kw)
962
base_CanSetValueAs = wx.deprecated(base_CanSetValueAs,
963
"Please use PyGridTableBase.CanSetValueAs instead.")
965
def base_Clear(*args, **kw):
966
return PyGridTableBase.Clear(*args, **kw)
967
base_Clear = wx.deprecated(base_Clear,
968
"Please use PyGridTableBase.Clear instead.")
970
def base_InsertRows(*args, **kw):
971
return PyGridTableBase.InsertRows(*args, **kw)
972
base_InsertRows = wx.deprecated(base_InsertRows,
973
"Please use PyGridTableBase.InsertRows instead.")
975
def base_AppendRows(*args, **kw):
976
return PyGridTableBase.AppendRows(*args, **kw)
977
base_AppendRows = wx.deprecated(base_AppendRows,
978
"Please use PyGridTableBase.AppendRows instead.")
980
def base_DeleteRows(*args, **kw):
981
return PyGridTableBase.DeleteRows(*args, **kw)
982
base_DeleteRows = wx.deprecated(base_DeleteRows,
983
"Please use PyGridTableBase.DeleteRows instead.")
985
def base_InsertCols(*args, **kw):
986
return PyGridTableBase.InsertCols(*args, **kw)
987
base_InsertCols = wx.deprecated(base_InsertCols,
988
"Please use PyGridTableBase.InsertCols instead.")
990
def base_AppendCols(*args, **kw):
991
return PyGridTableBase.AppendCols(*args, **kw)
992
base_AppendCols = wx.deprecated(base_AppendCols,
993
"Please use PyGridTableBase.AppendCols instead.")
995
def base_DeleteCols(*args, **kw):
996
return PyGridTableBase.DeleteCols(*args, **kw)
997
base_DeleteCols = wx.deprecated(base_DeleteCols,
998
"Please use PyGridTableBase.DeleteCols instead.")
1000
def base_GetRowLabelValue(*args, **kw):
1001
return PyGridTableBase.GetRowLabelValue(*args, **kw)
1002
base_GetRowLabelValue = wx.deprecated(base_GetRowLabelValue,
1003
"Please use PyGridTableBase.GetRowLabelValue instead.")
1005
def base_GetColLabelValue(*args, **kw):
1006
return PyGridTableBase.GetColLabelValue(*args, **kw)
1007
base_GetColLabelValue = wx.deprecated(base_GetColLabelValue,
1008
"Please use PyGridTableBase.GetColLabelValue instead.")
1010
def base_SetRowLabelValue(*args, **kw):
1011
return PyGridTableBase.SetRowLabelValue(*args, **kw)
1012
base_SetRowLabelValue = wx.deprecated(base_SetRowLabelValue,
1013
"Please use PyGridTableBase.SetRowLabelValue instead.")
1015
def base_SetColLabelValue(*args, **kw):
1016
return PyGridTableBase.SetColLabelValue(*args, **kw)
1017
base_SetColLabelValue = wx.deprecated(base_SetColLabelValue,
1018
"Please use PyGridTableBase.SetColLabelValue instead.")
1020
def base_CanHaveAttributes(*args, **kw):
1021
return PyGridTableBase.CanHaveAttributes(*args, **kw)
1022
base_CanHaveAttributes = wx.deprecated(base_CanHaveAttributes,
1023
"Please use PyGridTableBase.CanHaveAttributes instead.")
1025
def base_GetAttr(*args, **kw):
1026
return PyGridTableBase.GetAttr(*args, **kw)
1027
base_GetAttr = wx.deprecated(base_GetAttr,
1028
"Please use PyGridTableBase.GetAttr instead.")
1030
def base_SetAttr(*args, **kw):
1031
return PyGridTableBase.SetAttr(*args, **kw)
1032
base_SetAttr = wx.deprecated(base_SetAttr,
1033
"Please use PyGridTableBase.SetAttr instead.")
1035
def base_SetRowAttr(*args, **kw):
1036
return PyGridTableBase.SetRowAttr(*args, **kw)
1037
base_SetRowAttr = wx.deprecated(base_SetRowAttr,
1038
"Please use PyGridTableBase.SetRowAttr instead.")
1040
def base_SetColAttr(*args, **kw):
1041
return PyGridTableBase.SetColAttr(*args, **kw)
1042
base_SetColAttr = wx.deprecated(base_SetColAttr,
1043
"Please use PyGridTableBase.SetColAttr instead.")
1045
_grid.PyGridTableBase_swigregister(PyGridTableBase)
1047
class GridStringTable(GridTableBase):
1048
"""Proxy of C++ GridStringTable class"""
1049
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1050
__repr__ = _swig_repr
1051
def __init__(self, *args, **kwargs):
1052
"""__init__(self, int numRows=0, int numCols=0) -> GridStringTable"""
1053
_grid.GridStringTable_swiginit(self,_grid.new_GridStringTable(*args, **kwargs))
1054
self._setOORInfo(self)
1056
_grid.GridStringTable_swigregister(GridStringTable)
1058
GRIDTABLE_REQUEST_VIEW_GET_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES
1059
GRIDTABLE_REQUEST_VIEW_SEND_VALUES = _grid.GRIDTABLE_REQUEST_VIEW_SEND_VALUES
1060
GRIDTABLE_NOTIFY_ROWS_INSERTED = _grid.GRIDTABLE_NOTIFY_ROWS_INSERTED
1061
GRIDTABLE_NOTIFY_ROWS_APPENDED = _grid.GRIDTABLE_NOTIFY_ROWS_APPENDED
1062
GRIDTABLE_NOTIFY_ROWS_DELETED = _grid.GRIDTABLE_NOTIFY_ROWS_DELETED
1063
GRIDTABLE_NOTIFY_COLS_INSERTED = _grid.GRIDTABLE_NOTIFY_COLS_INSERTED
1064
GRIDTABLE_NOTIFY_COLS_APPENDED = _grid.GRIDTABLE_NOTIFY_COLS_APPENDED
1065
GRIDTABLE_NOTIFY_COLS_DELETED = _grid.GRIDTABLE_NOTIFY_COLS_DELETED
1066
class GridTableMessage(object):
1067
"""Proxy of C++ GridTableMessage class"""
1068
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1069
__repr__ = _swig_repr
1070
def __init__(self, *args, **kwargs):
1071
"""__init__(self, GridTableBase table, int id, int comInt1=-1, int comInt2=-1) -> GridTableMessage"""
1072
_grid.GridTableMessage_swiginit(self,_grid.new_GridTableMessage(*args, **kwargs))
1073
__swig_destroy__ = _grid.delete_GridTableMessage
1074
__del__ = lambda self : None;
1075
def SetTableObject(*args, **kwargs):
1076
"""SetTableObject(self, GridTableBase table)"""
1077
return _grid.GridTableMessage_SetTableObject(*args, **kwargs)
1079
def GetTableObject(*args, **kwargs):
1080
"""GetTableObject(self) -> GridTableBase"""
1081
return _grid.GridTableMessage_GetTableObject(*args, **kwargs)
1083
def SetId(*args, **kwargs):
1084
"""SetId(self, int id)"""
1085
return _grid.GridTableMessage_SetId(*args, **kwargs)
1087
def GetId(*args, **kwargs):
1088
"""GetId(self) -> int"""
1089
return _grid.GridTableMessage_GetId(*args, **kwargs)
1091
def SetCommandInt(*args, **kwargs):
1092
"""SetCommandInt(self, int comInt1)"""
1093
return _grid.GridTableMessage_SetCommandInt(*args, **kwargs)
1095
def GetCommandInt(*args, **kwargs):
1096
"""GetCommandInt(self) -> int"""
1097
return _grid.GridTableMessage_GetCommandInt(*args, **kwargs)
1099
def SetCommandInt2(*args, **kwargs):
1100
"""SetCommandInt2(self, int comInt2)"""
1101
return _grid.GridTableMessage_SetCommandInt2(*args, **kwargs)
1103
def GetCommandInt2(*args, **kwargs):
1104
"""GetCommandInt2(self) -> int"""
1105
return _grid.GridTableMessage_GetCommandInt2(*args, **kwargs)
1107
CommandInt = property(GetCommandInt,SetCommandInt,doc="See `GetCommandInt` and `SetCommandInt`")
1108
CommandInt2 = property(GetCommandInt2,SetCommandInt2,doc="See `GetCommandInt2` and `SetCommandInt2`")
1109
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
1110
TableObject = property(GetTableObject,SetTableObject,doc="See `GetTableObject` and `SetTableObject`")
1111
_grid.GridTableMessage_swigregister(GridTableMessage)
1113
class GridCellCoords(object):
1114
"""Proxy of C++ GridCellCoords class"""
1115
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1116
__repr__ = _swig_repr
1117
def __init__(self, *args, **kwargs):
1118
"""__init__(self, int r=-1, int c=-1) -> GridCellCoords"""
1119
_grid.GridCellCoords_swiginit(self,_grid.new_GridCellCoords(*args, **kwargs))
1120
__swig_destroy__ = _grid.delete_GridCellCoords
1121
__del__ = lambda self : None;
1122
def GetRow(*args, **kwargs):
1123
"""GetRow(self) -> int"""
1124
return _grid.GridCellCoords_GetRow(*args, **kwargs)
1126
def SetRow(*args, **kwargs):
1127
"""SetRow(self, int n)"""
1128
return _grid.GridCellCoords_SetRow(*args, **kwargs)
1130
def GetCol(*args, **kwargs):
1131
"""GetCol(self) -> int"""
1132
return _grid.GridCellCoords_GetCol(*args, **kwargs)
1134
def SetCol(*args, **kwargs):
1135
"""SetCol(self, int n)"""
1136
return _grid.GridCellCoords_SetCol(*args, **kwargs)
1138
def Set(*args, **kwargs):
1139
"""Set(self, int row, int col)"""
1140
return _grid.GridCellCoords_Set(*args, **kwargs)
1142
def __eq__(*args, **kwargs):
1144
__eq__(self, PyObject other) -> bool
1146
Test for equality of GridCellCoords objects.
1148
return _grid.GridCellCoords___eq__(*args, **kwargs)
1150
def __ne__(*args, **kwargs):
1152
__ne__(self, PyObject other) -> bool
1154
Test for inequality of GridCellCoords objects.
1156
return _grid.GridCellCoords___ne__(*args, **kwargs)
1158
def Get(*args, **kwargs):
1159
"""Get(self) -> PyObject"""
1160
return _grid.GridCellCoords_Get(*args, **kwargs)
1162
asTuple = wx.deprecated(Get, "asTuple is deprecated, use `Get` instead")
1163
def __str__(self): return str(self.Get())
1164
def __repr__(self): return 'wxGridCellCoords'+str(self.Get())
1165
def __len__(self): return len(self.Get())
1166
def __getitem__(self, index): return self.Get()[index]
1167
def __setitem__(self, index, val):
1168
if index == 0: self.SetRow(val)
1169
elif index == 1: self.SetCol(val)
1170
else: raise IndexError
1172
Col = property(GetCol,SetCol,doc="See `GetCol` and `SetCol`")
1173
Row = property(GetRow,SetRow,doc="See `GetRow` and `SetRow`")
1174
_grid.GridCellCoords_swigregister(GridCellCoords)
1176
class GridSizesInfo(object):
1177
"""Proxy of C++ GridSizesInfo class"""
1178
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1179
__repr__ = _swig_repr
1180
def __init__(self, *args, **kwargs):
1181
"""__init__(self, int defSize, wxArrayInt allSizes) -> GridSizesInfo"""
1182
_grid.GridSizesInfo_swiginit(self,_grid.new_GridSizesInfo(*args, **kwargs))
1183
def GetSize(*args, **kwargs):
1184
"""GetSize(self, unsigned int pos) -> int"""
1185
return _grid.GridSizesInfo_GetSize(*args, **kwargs)
1187
m_sizeDefault = property(_grid.GridSizesInfo_m_sizeDefault_get, _grid.GridSizesInfo_m_sizeDefault_set)
1188
m_customSizes = property(_grid.GridSizesInfo_m_customSizes_get, _grid.GridSizesInfo_m_customSizes_set)
1189
_grid.GridSizesInfo_swigregister(GridSizesInfo)
1191
class Grid(_windows.ScrolledWindow):
1192
"""Proxy of C++ Grid class"""
1193
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1194
__repr__ = _swig_repr
1195
def __init__(self, *args, **kwargs):
1197
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1198
Size size=DefaultSize, long style=WANTS_CHARS,
1199
String name=wxPyGridNameStr) -> Grid
1201
_grid.Grid_swiginit(self,_grid.new_Grid(*args, **kwargs))
1202
self._setOORInfo(self)
1204
def Create(*args, **kwargs):
1206
Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1207
Size size=DefaultSize, long style=WANTS_CHARS,
1208
String name=wxPyGridNameStr) -> bool
1210
return _grid.Grid_Create(*args, **kwargs)
1212
wxGridSelectCells = _grid.Grid_wxGridSelectCells
1213
wxGridSelectRows = _grid.Grid_wxGridSelectRows
1214
wxGridSelectColumns = _grid.Grid_wxGridSelectColumns
1215
SelectCells = wxGridSelectCells
1216
SelectRows = wxGridSelectRows
1217
SelectColumns = wxGridSelectColumns
1219
def CreateGrid(*args, **kwargs):
1220
"""CreateGrid(self, int numRows, int numCols, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1221
return _grid.Grid_CreateGrid(*args, **kwargs)
1223
def SetSelectionMode(*args, **kwargs):
1224
"""SetSelectionMode(self, WXGRIDSELECTIONMODES selmode)"""
1225
return _grid.Grid_SetSelectionMode(*args, **kwargs)
1227
def GetSelectionMode(*args, **kwargs):
1228
"""GetSelectionMode(self) -> WXGRIDSELECTIONMODES"""
1229
return _grid.Grid_GetSelectionMode(*args, **kwargs)
1231
def GetNumberRows(*args, **kwargs):
1232
"""GetNumberRows(self) -> int"""
1233
return _grid.Grid_GetNumberRows(*args, **kwargs)
1235
def GetNumberCols(*args, **kwargs):
1236
"""GetNumberCols(self) -> int"""
1237
return _grid.Grid_GetNumberCols(*args, **kwargs)
1239
def CalcRowLabelsExposed(*args, **kwargs):
1240
"""CalcRowLabelsExposed(self, Region reg) -> wxArrayInt"""
1241
return _grid.Grid_CalcRowLabelsExposed(*args, **kwargs)
1243
def CalcColLabelsExposed(*args, **kwargs):
1244
"""CalcColLabelsExposed(self, Region reg) -> wxArrayInt"""
1245
return _grid.Grid_CalcColLabelsExposed(*args, **kwargs)
1247
def CalcCellsExposed(*args, **kwargs):
1248
"""CalcCellsExposed(self, Region reg) -> wxGridCellCoordsArray"""
1249
return _grid.Grid_CalcCellsExposed(*args, **kwargs)
1251
def ProcessTableMessage(*args, **kwargs):
1252
"""ProcessTableMessage(self, GridTableMessage ?) -> bool"""
1253
return _grid.Grid_ProcessTableMessage(*args, **kwargs)
1255
def GetTable(*args, **kwargs):
1256
"""GetTable(self) -> GridTableBase"""
1257
return _grid.Grid_GetTable(*args, **kwargs)
1259
def SetTable(*args, **kwargs):
1260
"""SetTable(self, GridTableBase table, bool takeOwnership=False, WXGRIDSELECTIONMODES selmode=wxGridSelectCells) -> bool"""
1261
return _grid.Grid_SetTable(*args, **kwargs)
1263
def ClearGrid(*args, **kwargs):
1264
"""ClearGrid(self)"""
1265
return _grid.Grid_ClearGrid(*args, **kwargs)
1267
def InsertRows(*args, **kwargs):
1268
"""InsertRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1269
return _grid.Grid_InsertRows(*args, **kwargs)
1271
def AppendRows(*args, **kwargs):
1272
"""AppendRows(self, int numRows=1, bool updateLabels=True) -> bool"""
1273
return _grid.Grid_AppendRows(*args, **kwargs)
1275
def DeleteRows(*args, **kwargs):
1276
"""DeleteRows(self, int pos=0, int numRows=1, bool updateLabels=True) -> bool"""
1277
return _grid.Grid_DeleteRows(*args, **kwargs)
1279
def InsertCols(*args, **kwargs):
1280
"""InsertCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1281
return _grid.Grid_InsertCols(*args, **kwargs)
1283
def AppendCols(*args, **kwargs):
1284
"""AppendCols(self, int numCols=1, bool updateLabels=True) -> bool"""
1285
return _grid.Grid_AppendCols(*args, **kwargs)
1287
def DeleteCols(*args, **kwargs):
1288
"""DeleteCols(self, int pos=0, int numCols=1, bool updateLabels=True) -> bool"""
1289
return _grid.Grid_DeleteCols(*args, **kwargs)
1291
def DrawCellHighlight(*args, **kwargs):
1292
"""DrawCellHighlight(self, DC dc, GridCellAttr attr)"""
1293
return _grid.Grid_DrawCellHighlight(*args, **kwargs)
1295
def DrawTextRectangle(*args, **kwargs):
1297
DrawTextRectangle(self, DC dc, String ?, Rect ?, int horizontalAlignment=LEFT,
1298
int verticalAlignment=TOP, int textOrientation=HORIZONTAL)
1300
return _grid.Grid_DrawTextRectangle(*args, **kwargs)
1302
def DrawRowLabels(*args, **kwargs):
1303
"""DrawRowLabels(self, DC dc, wxArrayInt rows)"""
1304
return _grid.Grid_DrawRowLabels(*args, **kwargs)
1306
def DrawRowLabel(*args, **kwargs):
1307
"""DrawRowLabel(self, DC dc, int row)"""
1308
return _grid.Grid_DrawRowLabel(*args, **kwargs)
1310
def DrawColLabels(*args, **kwargs):
1311
"""DrawColLabels(self, DC dc, wxArrayInt cols)"""
1312
return _grid.Grid_DrawColLabels(*args, **kwargs)
1314
def DrawColLabel(*args, **kwargs):
1315
"""DrawColLabel(self, DC dc, int col)"""
1316
return _grid.Grid_DrawColLabel(*args, **kwargs)
1318
def GetTextBoxSize(*args, **kwargs):
1319
"""GetTextBoxSize(DC dc, list lines) -> (width, height)"""
1320
return _grid.Grid_GetTextBoxSize(*args, **kwargs)
1322
def BeginBatch(*args, **kwargs):
1323
"""BeginBatch(self)"""
1324
return _grid.Grid_BeginBatch(*args, **kwargs)
1326
def EndBatch(*args, **kwargs):
1327
"""EndBatch(self)"""
1328
return _grid.Grid_EndBatch(*args, **kwargs)
1330
def GetBatchCount(*args, **kwargs):
1331
"""GetBatchCount(self) -> int"""
1332
return _grid.Grid_GetBatchCount(*args, **kwargs)
1334
def ForceRefresh(*args, **kwargs):
1335
"""ForceRefresh(self)"""
1336
return _grid.Grid_ForceRefresh(*args, **kwargs)
1338
def IsEditable(*args, **kwargs):
1339
"""IsEditable(self) -> bool"""
1340
return _grid.Grid_IsEditable(*args, **kwargs)
1342
def EnableEditing(*args, **kwargs):
1343
"""EnableEditing(self, bool edit)"""
1344
return _grid.Grid_EnableEditing(*args, **kwargs)
1346
def EnableCellEditControl(*args, **kwargs):
1347
"""EnableCellEditControl(self, bool enable=True)"""
1348
return _grid.Grid_EnableCellEditControl(*args, **kwargs)
1350
def DisableCellEditControl(*args, **kwargs):
1351
"""DisableCellEditControl(self)"""
1352
return _grid.Grid_DisableCellEditControl(*args, **kwargs)
1354
def CanEnableCellControl(*args, **kwargs):
1355
"""CanEnableCellControl(self) -> bool"""
1356
return _grid.Grid_CanEnableCellControl(*args, **kwargs)
1358
def IsCellEditControlEnabled(*args, **kwargs):
1359
"""IsCellEditControlEnabled(self) -> bool"""
1360
return _grid.Grid_IsCellEditControlEnabled(*args, **kwargs)
1362
def IsCellEditControlShown(*args, **kwargs):
1363
"""IsCellEditControlShown(self) -> bool"""
1364
return _grid.Grid_IsCellEditControlShown(*args, **kwargs)
1366
def IsCurrentCellReadOnly(*args, **kwargs):
1367
"""IsCurrentCellReadOnly(self) -> bool"""
1368
return _grid.Grid_IsCurrentCellReadOnly(*args, **kwargs)
1370
def ShowCellEditControl(*args, **kwargs):
1371
"""ShowCellEditControl(self)"""
1372
return _grid.Grid_ShowCellEditControl(*args, **kwargs)
1374
def HideCellEditControl(*args, **kwargs):
1375
"""HideCellEditControl(self)"""
1376
return _grid.Grid_HideCellEditControl(*args, **kwargs)
1378
def SaveEditControlValue(*args, **kwargs):
1379
"""SaveEditControlValue(self)"""
1380
return _grid.Grid_SaveEditControlValue(*args, **kwargs)
1382
def XYToCell(*args, **kwargs):
1383
"""XYToCell(self, int x, int y) -> GridCellCoords"""
1384
return _grid.Grid_XYToCell(*args, **kwargs)
1386
def YToRow(*args, **kwargs):
1387
"""YToRow(self, int y) -> int"""
1388
return _grid.Grid_YToRow(*args, **kwargs)
1390
def XToCol(*args, **kwargs):
1391
"""XToCol(self, int x, bool clipToMinMax=False) -> int"""
1392
return _grid.Grid_XToCol(*args, **kwargs)
1394
def YToEdgeOfRow(*args, **kwargs):
1395
"""YToEdgeOfRow(self, int y) -> int"""
1396
return _grid.Grid_YToEdgeOfRow(*args, **kwargs)
1398
def XToEdgeOfCol(*args, **kwargs):
1399
"""XToEdgeOfCol(self, int x) -> int"""
1400
return _grid.Grid_XToEdgeOfCol(*args, **kwargs)
1402
def CellToRect(*args, **kwargs):
1403
"""CellToRect(self, int row, int col) -> Rect"""
1404
return _grid.Grid_CellToRect(*args, **kwargs)
1406
def GetGridCursorRow(*args, **kwargs):
1407
"""GetGridCursorRow(self) -> int"""
1408
return _grid.Grid_GetGridCursorRow(*args, **kwargs)
1410
def GetGridCursorCol(*args, **kwargs):
1411
"""GetGridCursorCol(self) -> int"""
1412
return _grid.Grid_GetGridCursorCol(*args, **kwargs)
1414
def IsVisible(*args, **kwargs):
1415
"""IsVisible(self, int row, int col, bool wholeCellVisible=True) -> bool"""
1416
return _grid.Grid_IsVisible(*args, **kwargs)
1418
def MakeCellVisible(*args, **kwargs):
1419
"""MakeCellVisible(self, int row, int col)"""
1420
return _grid.Grid_MakeCellVisible(*args, **kwargs)
1422
def SetGridCursor(*args, **kwargs):
1423
"""SetGridCursor(self, int row, int col)"""
1424
return _grid.Grid_SetGridCursor(*args, **kwargs)
1426
def GoToCell(*args, **kwargs):
1427
"""GoToCell(self, int row, int col)"""
1428
return _grid.Grid_GoToCell(*args, **kwargs)
1430
def MoveCursorUp(*args, **kwargs):
1431
"""MoveCursorUp(self, bool expandSelection) -> bool"""
1432
return _grid.Grid_MoveCursorUp(*args, **kwargs)
1434
def MoveCursorDown(*args, **kwargs):
1435
"""MoveCursorDown(self, bool expandSelection) -> bool"""
1436
return _grid.Grid_MoveCursorDown(*args, **kwargs)
1438
def MoveCursorLeft(*args, **kwargs):
1439
"""MoveCursorLeft(self, bool expandSelection) -> bool"""
1440
return _grid.Grid_MoveCursorLeft(*args, **kwargs)
1442
def MoveCursorRight(*args, **kwargs):
1443
"""MoveCursorRight(self, bool expandSelection) -> bool"""
1444
return _grid.Grid_MoveCursorRight(*args, **kwargs)
1446
def MovePageDown(*args, **kwargs):
1447
"""MovePageDown(self) -> bool"""
1448
return _grid.Grid_MovePageDown(*args, **kwargs)
1450
def MovePageUp(*args, **kwargs):
1451
"""MovePageUp(self) -> bool"""
1452
return _grid.Grid_MovePageUp(*args, **kwargs)
1454
def MoveCursorUpBlock(*args, **kwargs):
1455
"""MoveCursorUpBlock(self, bool expandSelection) -> bool"""
1456
return _grid.Grid_MoveCursorUpBlock(*args, **kwargs)
1458
def MoveCursorDownBlock(*args, **kwargs):
1459
"""MoveCursorDownBlock(self, bool expandSelection) -> bool"""
1460
return _grid.Grid_MoveCursorDownBlock(*args, **kwargs)
1462
def MoveCursorLeftBlock(*args, **kwargs):
1463
"""MoveCursorLeftBlock(self, bool expandSelection) -> bool"""
1464
return _grid.Grid_MoveCursorLeftBlock(*args, **kwargs)
1466
def MoveCursorRightBlock(*args, **kwargs):
1467
"""MoveCursorRightBlock(self, bool expandSelection) -> bool"""
1468
return _grid.Grid_MoveCursorRightBlock(*args, **kwargs)
1470
def GetDefaultRowLabelSize(*args, **kwargs):
1471
"""GetDefaultRowLabelSize(self) -> int"""
1472
return _grid.Grid_GetDefaultRowLabelSize(*args, **kwargs)
1474
def GetRowLabelSize(*args, **kwargs):
1475
"""GetRowLabelSize(self) -> int"""
1476
return _grid.Grid_GetRowLabelSize(*args, **kwargs)
1478
def GetDefaultColLabelSize(*args, **kwargs):
1479
"""GetDefaultColLabelSize(self) -> int"""
1480
return _grid.Grid_GetDefaultColLabelSize(*args, **kwargs)
1482
def GetColLabelSize(*args, **kwargs):
1483
"""GetColLabelSize(self) -> int"""
1484
return _grid.Grid_GetColLabelSize(*args, **kwargs)
1486
def GetLabelBackgroundColour(*args, **kwargs):
1487
"""GetLabelBackgroundColour(self) -> Colour"""
1488
return _grid.Grid_GetLabelBackgroundColour(*args, **kwargs)
1490
def GetLabelTextColour(*args, **kwargs):
1491
"""GetLabelTextColour(self) -> Colour"""
1492
return _grid.Grid_GetLabelTextColour(*args, **kwargs)
1494
def GetLabelFont(*args, **kwargs):
1495
"""GetLabelFont(self) -> Font"""
1496
return _grid.Grid_GetLabelFont(*args, **kwargs)
1498
def GetRowLabelAlignment(*args, **kwargs):
1499
"""GetRowLabelAlignment() -> (horiz, vert)"""
1500
return _grid.Grid_GetRowLabelAlignment(*args, **kwargs)
1502
def GetColLabelAlignment(*args, **kwargs):
1503
"""GetColLabelAlignment() -> (horiz, vert)"""
1504
return _grid.Grid_GetColLabelAlignment(*args, **kwargs)
1506
def GetColLabelTextOrientation(*args, **kwargs):
1507
"""GetColLabelTextOrientation(self) -> int"""
1508
return _grid.Grid_GetColLabelTextOrientation(*args, **kwargs)
1510
def GetRowLabelValue(*args, **kwargs):
1511
"""GetRowLabelValue(self, int row) -> String"""
1512
return _grid.Grid_GetRowLabelValue(*args, **kwargs)
1514
def GetColLabelValue(*args, **kwargs):
1515
"""GetColLabelValue(self, int col) -> String"""
1516
return _grid.Grid_GetColLabelValue(*args, **kwargs)
1518
def GetCellHighlightColour(*args, **kwargs):
1519
"""GetCellHighlightColour(self) -> Colour"""
1520
return _grid.Grid_GetCellHighlightColour(*args, **kwargs)
1522
def GetCellHighlightPenWidth(*args, **kwargs):
1523
"""GetCellHighlightPenWidth(self) -> int"""
1524
return _grid.Grid_GetCellHighlightPenWidth(*args, **kwargs)
1526
def GetCellHighlightROPenWidth(*args, **kwargs):
1527
"""GetCellHighlightROPenWidth(self) -> int"""
1528
return _grid.Grid_GetCellHighlightROPenWidth(*args, **kwargs)
1530
def UseNativeColHeader(*args, **kwargs):
1531
"""UseNativeColHeader(self, bool native=True)"""
1532
return _grid.Grid_UseNativeColHeader(*args, **kwargs)
1534
def SetUseNativeColLabels(*args, **kwargs):
1535
"""SetUseNativeColLabels(self, bool native=True)"""
1536
return _grid.Grid_SetUseNativeColLabels(*args, **kwargs)
1538
def SetRowLabelSize(*args, **kwargs):
1539
"""SetRowLabelSize(self, int width)"""
1540
return _grid.Grid_SetRowLabelSize(*args, **kwargs)
1542
def SetColLabelSize(*args, **kwargs):
1543
"""SetColLabelSize(self, int height)"""
1544
return _grid.Grid_SetColLabelSize(*args, **kwargs)
1546
def HideRowLabels(*args, **kwargs):
1547
"""HideRowLabels(self)"""
1548
return _grid.Grid_HideRowLabels(*args, **kwargs)
1550
def HideColLabels(*args, **kwargs):
1551
"""HideColLabels(self)"""
1552
return _grid.Grid_HideColLabels(*args, **kwargs)
1554
def SetLabelBackgroundColour(*args, **kwargs):
1555
"""SetLabelBackgroundColour(self, Colour ?)"""
1556
return _grid.Grid_SetLabelBackgroundColour(*args, **kwargs)
1558
def SetLabelTextColour(*args, **kwargs):
1559
"""SetLabelTextColour(self, Colour ?)"""
1560
return _grid.Grid_SetLabelTextColour(*args, **kwargs)
1562
def SetLabelFont(*args, **kwargs):
1563
"""SetLabelFont(self, Font ?)"""
1564
return _grid.Grid_SetLabelFont(*args, **kwargs)
1566
def SetRowLabelAlignment(*args, **kwargs):
1567
"""SetRowLabelAlignment(self, int horiz, int vert)"""
1568
return _grid.Grid_SetRowLabelAlignment(*args, **kwargs)
1570
def SetColLabelAlignment(*args, **kwargs):
1571
"""SetColLabelAlignment(self, int horiz, int vert)"""
1572
return _grid.Grid_SetColLabelAlignment(*args, **kwargs)
1574
def SetColLabelTextOrientation(*args, **kwargs):
1575
"""SetColLabelTextOrientation(self, int textOrientation)"""
1576
return _grid.Grid_SetColLabelTextOrientation(*args, **kwargs)
1578
def SetRowLabelValue(*args, **kwargs):
1579
"""SetRowLabelValue(self, int row, String ?)"""
1580
return _grid.Grid_SetRowLabelValue(*args, **kwargs)
1582
def SetColLabelValue(*args, **kwargs):
1583
"""SetColLabelValue(self, int col, String ?)"""
1584
return _grid.Grid_SetColLabelValue(*args, **kwargs)
1586
def SetCellHighlightColour(*args, **kwargs):
1587
"""SetCellHighlightColour(self, Colour ?)"""
1588
return _grid.Grid_SetCellHighlightColour(*args, **kwargs)
1590
def SetCellHighlightPenWidth(*args, **kwargs):
1591
"""SetCellHighlightPenWidth(self, int width)"""
1592
return _grid.Grid_SetCellHighlightPenWidth(*args, **kwargs)
1594
def SetCellHighlightROPenWidth(*args, **kwargs):
1595
"""SetCellHighlightROPenWidth(self, int width)"""
1596
return _grid.Grid_SetCellHighlightROPenWidth(*args, **kwargs)
1598
def EnableDragRowSize(*args, **kwargs):
1599
"""EnableDragRowSize(self, bool enable=True)"""
1600
return _grid.Grid_EnableDragRowSize(*args, **kwargs)
1602
def DisableDragRowSize(*args, **kwargs):
1603
"""DisableDragRowSize(self)"""
1604
return _grid.Grid_DisableDragRowSize(*args, **kwargs)
1606
def EnableDragColSize(*args, **kwargs):
1607
"""EnableDragColSize(self, bool enable=True)"""
1608
return _grid.Grid_EnableDragColSize(*args, **kwargs)
1610
def DisableDragColSize(*args, **kwargs):
1611
"""DisableDragColSize(self)"""
1612
return _grid.Grid_DisableDragColSize(*args, **kwargs)
1614
def DisableRowResize(*args, **kwargs):
1615
"""DisableRowResize(self, int row)"""
1616
return _grid.Grid_DisableRowResize(*args, **kwargs)
1618
def DisableColResize(*args, **kwargs):
1619
"""DisableColResize(self, int col)"""
1620
return _grid.Grid_DisableColResize(*args, **kwargs)
1622
def CanDragRowSize(*args, **kwargs):
1623
"""CanDragRowSize(self) -> bool"""
1624
return _grid.Grid_CanDragRowSize(*args, **kwargs)
1626
def CanDragColSize(*args, **kwargs):
1627
"""CanDragColSize(self) -> bool"""
1628
return _grid.Grid_CanDragColSize(*args, **kwargs)
1630
def EnableDragColMove(*args, **kwargs):
1631
"""EnableDragColMove(self, bool enable=True)"""
1632
return _grid.Grid_EnableDragColMove(*args, **kwargs)
1634
def DisableDragColMove(*args, **kwargs):
1635
"""DisableDragColMove(self)"""
1636
return _grid.Grid_DisableDragColMove(*args, **kwargs)
1638
def CanDragColMove(*args, **kwargs):
1639
"""CanDragColMove(self) -> bool"""
1640
return _grid.Grid_CanDragColMove(*args, **kwargs)
1642
def EnableDragGridSize(*args, **kwargs):
1643
"""EnableDragGridSize(self, bool enable=True)"""
1644
return _grid.Grid_EnableDragGridSize(*args, **kwargs)
1646
def DisableDragGridSize(*args, **kwargs):
1647
"""DisableDragGridSize(self)"""
1648
return _grid.Grid_DisableDragGridSize(*args, **kwargs)
1650
def CanDragGridSize(*args, **kwargs):
1651
"""CanDragGridSize(self) -> bool"""
1652
return _grid.Grid_CanDragGridSize(*args, **kwargs)
1654
def EnableDragCell(*args, **kwargs):
1655
"""EnableDragCell(self, bool enable=True)"""
1656
return _grid.Grid_EnableDragCell(*args, **kwargs)
1658
def DisableDragCell(*args, **kwargs):
1659
"""DisableDragCell(self)"""
1660
return _grid.Grid_DisableDragCell(*args, **kwargs)
1662
def CanDragCell(*args, **kwargs):
1663
"""CanDragCell(self) -> bool"""
1664
return _grid.Grid_CanDragCell(*args, **kwargs)
1666
def EnableGridLines(*args, **kwargs):
1667
"""EnableGridLines(self, bool enable=True)"""
1668
return _grid.Grid_EnableGridLines(*args, **kwargs)
1670
def GridLinesEnabled(*args, **kwargs):
1671
"""GridLinesEnabled(self) -> bool"""
1672
return _grid.Grid_GridLinesEnabled(*args, **kwargs)
1674
def ClipHorzGridLines(*args, **kwargs):
1675
"""ClipHorzGridLines(self, bool clip)"""
1676
return _grid.Grid_ClipHorzGridLines(*args, **kwargs)
1678
def ClipVertGridLines(*args, **kwargs):
1679
"""ClipVertGridLines(self, bool clip)"""
1680
return _grid.Grid_ClipVertGridLines(*args, **kwargs)
1682
def AreHorzGridLinesClipped(*args, **kwargs):
1683
"""AreHorzGridLinesClipped(self) -> bool"""
1684
return _grid.Grid_AreHorzGridLinesClipped(*args, **kwargs)
1686
def AreVertGridLinesClipped(*args, **kwargs):
1687
"""AreVertGridLinesClipped(self) -> bool"""
1688
return _grid.Grid_AreVertGridLinesClipped(*args, **kwargs)
1690
def SetGridLineColour(*args, **kwargs):
1691
"""SetGridLineColour(self, Colour col)"""
1692
return _grid.Grid_SetGridLineColour(*args, **kwargs)
1694
def GetGridLineColour(*args, **kwargs):
1695
"""GetGridLineColour(self) -> Colour"""
1696
return _grid.Grid_GetGridLineColour(*args, **kwargs)
1698
def GetDefaultGridLinePen(*args, **kwargs):
1699
"""GetDefaultGridLinePen(self) -> wxPen"""
1700
return _grid.Grid_GetDefaultGridLinePen(*args, **kwargs)
1702
def GetRowGridLinePen(*args, **kwargs):
1703
"""GetRowGridLinePen(self, int row) -> wxPen"""
1704
return _grid.Grid_GetRowGridLinePen(*args, **kwargs)
1706
def GetColGridLinePen(*args, **kwargs):
1707
"""GetColGridLinePen(self, int col) -> wxPen"""
1708
return _grid.Grid_GetColGridLinePen(*args, **kwargs)
1710
def SetAttr(*args, **kwargs):
1711
"""SetAttr(self, int row, int col, GridCellAttr attr)"""
1712
return _grid.Grid_SetAttr(*args, **kwargs)
1714
def SetRowAttr(*args, **kwargs):
1715
"""SetRowAttr(self, int row, GridCellAttr attr)"""
1716
return _grid.Grid_SetRowAttr(*args, **kwargs)
1718
def SetColAttr(*args, **kwargs):
1719
"""SetColAttr(self, int col, GridCellAttr attr)"""
1720
return _grid.Grid_SetColAttr(*args, **kwargs)
1722
def RefreshAttr(*args, **kwargs):
1723
"""RefreshAttr(self, int row, int col)"""
1724
return _grid.Grid_RefreshAttr(*args, **kwargs)
1726
def GetOrCreateCellAttr(*args, **kwargs):
1727
"""GetOrCreateCellAttr(self, int row, int col) -> GridCellAttr"""
1728
return _grid.Grid_GetOrCreateCellAttr(*args, **kwargs)
1730
def SetColFormatBool(*args, **kwargs):
1731
"""SetColFormatBool(self, int col)"""
1732
return _grid.Grid_SetColFormatBool(*args, **kwargs)
1734
def SetColFormatNumber(*args, **kwargs):
1735
"""SetColFormatNumber(self, int col)"""
1736
return _grid.Grid_SetColFormatNumber(*args, **kwargs)
1738
def SetColFormatFloat(*args, **kwargs):
1739
"""SetColFormatFloat(self, int col, int width=-1, int precision=-1)"""
1740
return _grid.Grid_SetColFormatFloat(*args, **kwargs)
1742
def SetColFormatCustom(*args, **kwargs):
1743
"""SetColFormatCustom(self, int col, String typeName)"""
1744
return _grid.Grid_SetColFormatCustom(*args, **kwargs)
1746
def GetDefaultRowSize(*args, **kwargs):
1747
"""GetDefaultRowSize(self) -> int"""
1748
return _grid.Grid_GetDefaultRowSize(*args, **kwargs)
1750
def GetRowSize(*args, **kwargs):
1751
"""GetRowSize(self, int row) -> int"""
1752
return _grid.Grid_GetRowSize(*args, **kwargs)
1754
def IsRowShown(*args, **kwargs):
1755
"""IsRowShown(self, int row) -> bool"""
1756
return _grid.Grid_IsRowShown(*args, **kwargs)
1758
def GetDefaultColSize(*args, **kwargs):
1759
"""GetDefaultColSize(self) -> int"""
1760
return _grid.Grid_GetDefaultColSize(*args, **kwargs)
1762
def GetColSize(*args, **kwargs):
1763
"""GetColSize(self, int col) -> int"""
1764
return _grid.Grid_GetColSize(*args, **kwargs)
1766
def IsColShown(*args, **kwargs):
1767
"""IsColShown(self, int col) -> bool"""
1768
return _grid.Grid_IsColShown(*args, **kwargs)
1770
def GetDefaultCellBackgroundColour(*args, **kwargs):
1771
"""GetDefaultCellBackgroundColour(self) -> Colour"""
1772
return _grid.Grid_GetDefaultCellBackgroundColour(*args, **kwargs)
1774
def GetCellBackgroundColour(*args, **kwargs):
1775
"""GetCellBackgroundColour(self, int row, int col) -> Colour"""
1776
return _grid.Grid_GetCellBackgroundColour(*args, **kwargs)
1778
def GetDefaultCellTextColour(*args, **kwargs):
1779
"""GetDefaultCellTextColour(self) -> Colour"""
1780
return _grid.Grid_GetDefaultCellTextColour(*args, **kwargs)
1782
def GetCellTextColour(*args, **kwargs):
1783
"""GetCellTextColour(self, int row, int col) -> Colour"""
1784
return _grid.Grid_GetCellTextColour(*args, **kwargs)
1786
def GetDefaultCellFont(*args, **kwargs):
1787
"""GetDefaultCellFont(self) -> Font"""
1788
return _grid.Grid_GetDefaultCellFont(*args, **kwargs)
1790
def GetCellFont(*args, **kwargs):
1791
"""GetCellFont(self, int row, int col) -> Font"""
1792
return _grid.Grid_GetCellFont(*args, **kwargs)
1794
def GetDefaultCellAlignment(*args, **kwargs):
1795
"""GetDefaultCellAlignment() -> (horiz, vert)"""
1796
return _grid.Grid_GetDefaultCellAlignment(*args, **kwargs)
1798
def GetCellAlignment(*args, **kwargs):
1799
"""GetCellAlignment(int row, int col) -> (horiz, vert)"""
1800
return _grid.Grid_GetCellAlignment(*args, **kwargs)
1802
def GetDefaultCellOverflow(*args, **kwargs):
1803
"""GetDefaultCellOverflow(self) -> bool"""
1804
return _grid.Grid_GetDefaultCellOverflow(*args, **kwargs)
1806
def GetCellOverflow(*args, **kwargs):
1807
"""GetCellOverflow(self, int row, int col) -> bool"""
1808
return _grid.Grid_GetCellOverflow(*args, **kwargs)
1810
def GetCellSize(*args, **kwargs):
1811
"""GetCellSize(int row, int col) -> (num_rows, num_cols)"""
1812
return _grid.Grid_GetCellSize(*args, **kwargs)
1814
def SetDefaultRowSize(*args, **kwargs):
1815
"""SetDefaultRowSize(self, int height, bool resizeExistingRows=False)"""
1816
return _grid.Grid_SetDefaultRowSize(*args, **kwargs)
1818
def SetRowSize(*args, **kwargs):
1819
"""SetRowSize(self, int row, int height)"""
1820
return _grid.Grid_SetRowSize(*args, **kwargs)
1822
def HideRow(*args, **kwargs):
1823
"""HideRow(self, int row)"""
1824
return _grid.Grid_HideRow(*args, **kwargs)
1826
def ShowRow(*args, **kwargs):
1827
"""ShowRow(self, int row)"""
1828
return _grid.Grid_ShowRow(*args, **kwargs)
1830
def SetDefaultColSize(*args, **kwargs):
1831
"""SetDefaultColSize(self, int width, bool resizeExistingCols=False)"""
1832
return _grid.Grid_SetDefaultColSize(*args, **kwargs)
1834
def SetColSize(*args, **kwargs):
1835
"""SetColSize(self, int col, int width)"""
1836
return _grid.Grid_SetColSize(*args, **kwargs)
1838
def HideCol(*args, **kwargs):
1839
"""HideCol(self, int col)"""
1840
return _grid.Grid_HideCol(*args, **kwargs)
1842
def ShowCol(*args, **kwargs):
1843
"""ShowCol(self, int col)"""
1844
return _grid.Grid_ShowCol(*args, **kwargs)
1846
def GetColSizes(*args, **kwargs):
1847
"""GetColSizes(self) -> GridSizesInfo"""
1848
return _grid.Grid_GetColSizes(*args, **kwargs)
1850
def GetRowSizes(*args, **kwargs):
1851
"""GetRowSizes(self) -> GridSizesInfo"""
1852
return _grid.Grid_GetRowSizes(*args, **kwargs)
1854
def SetColSizes(*args, **kwargs):
1855
"""SetColSizes(self, GridSizesInfo sizeInfo)"""
1856
return _grid.Grid_SetColSizes(*args, **kwargs)
1858
def SetRowSizes(*args, **kwargs):
1859
"""SetRowSizes(self, GridSizesInfo sizeInfo)"""
1860
return _grid.Grid_SetRowSizes(*args, **kwargs)
1862
def SetColumnsOrder(*args, **kwargs):
1863
"""SetColumnsOrder(self, wxArrayInt order)"""
1864
return _grid.Grid_SetColumnsOrder(*args, **kwargs)
1866
def GetColAt(*args, **kwargs):
1867
"""GetColAt(self, int colPos) -> int"""
1868
return _grid.Grid_GetColAt(*args, **kwargs)
1870
def SetColPos(*args, **kwargs):
1871
"""SetColPos(self, int colID, int newPos)"""
1872
return _grid.Grid_SetColPos(*args, **kwargs)
1874
def GetColPos(*args, **kwargs):
1875
"""GetColPos(self, int colID) -> int"""
1876
return _grid.Grid_GetColPos(*args, **kwargs)
1878
def ResetColPos(*args, **kwargs):
1879
"""ResetColPos(self)"""
1880
return _grid.Grid_ResetColPos(*args, **kwargs)
1882
def AutoSizeColumn(*args, **kwargs):
1883
"""AutoSizeColumn(self, int col, bool setAsMin=True)"""
1884
return _grid.Grid_AutoSizeColumn(*args, **kwargs)
1886
def AutoSizeRow(*args, **kwargs):
1887
"""AutoSizeRow(self, int row, bool setAsMin=True)"""
1888
return _grid.Grid_AutoSizeRow(*args, **kwargs)
1890
def AutoSizeColumns(*args, **kwargs):
1891
"""AutoSizeColumns(self, bool setAsMin=True)"""
1892
return _grid.Grid_AutoSizeColumns(*args, **kwargs)
1894
def AutoSizeRows(*args, **kwargs):
1895
"""AutoSizeRows(self, bool setAsMin=True)"""
1896
return _grid.Grid_AutoSizeRows(*args, **kwargs)
1898
def AutoSize(*args, **kwargs):
1899
"""AutoSize(self)"""
1900
return _grid.Grid_AutoSize(*args, **kwargs)
1902
def AutoSizeRowLabelSize(*args, **kwargs):
1903
"""AutoSizeRowLabelSize(self, int row)"""
1904
return _grid.Grid_AutoSizeRowLabelSize(*args, **kwargs)
1906
def AutoSizeColLabelSize(*args, **kwargs):
1907
"""AutoSizeColLabelSize(self, int col)"""
1908
return _grid.Grid_AutoSizeColLabelSize(*args, **kwargs)
1910
def SetColMinimalWidth(*args, **kwargs):
1911
"""SetColMinimalWidth(self, int col, int width)"""
1912
return _grid.Grid_SetColMinimalWidth(*args, **kwargs)
1914
def SetRowMinimalHeight(*args, **kwargs):
1915
"""SetRowMinimalHeight(self, int row, int width)"""
1916
return _grid.Grid_SetRowMinimalHeight(*args, **kwargs)
1918
def SetColMinimalAcceptableWidth(*args, **kwargs):
1919
"""SetColMinimalAcceptableWidth(self, int width)"""
1920
return _grid.Grid_SetColMinimalAcceptableWidth(*args, **kwargs)
1922
def SetRowMinimalAcceptableHeight(*args, **kwargs):
1923
"""SetRowMinimalAcceptableHeight(self, int width)"""
1924
return _grid.Grid_SetRowMinimalAcceptableHeight(*args, **kwargs)
1926
def GetColMinimalAcceptableWidth(*args, **kwargs):
1927
"""GetColMinimalAcceptableWidth(self) -> int"""
1928
return _grid.Grid_GetColMinimalAcceptableWidth(*args, **kwargs)
1930
def GetRowMinimalAcceptableHeight(*args, **kwargs):
1931
"""GetRowMinimalAcceptableHeight(self) -> int"""
1932
return _grid.Grid_GetRowMinimalAcceptableHeight(*args, **kwargs)
1934
def SetDefaultCellBackgroundColour(*args, **kwargs):
1935
"""SetDefaultCellBackgroundColour(self, Colour ?)"""
1936
return _grid.Grid_SetDefaultCellBackgroundColour(*args, **kwargs)
1938
def SetCellBackgroundColour(*args, **kwargs):
1939
"""SetCellBackgroundColour(self, int row, int col, Colour ?)"""
1940
return _grid.Grid_SetCellBackgroundColour(*args, **kwargs)
1942
def SetDefaultCellTextColour(*args, **kwargs):
1943
"""SetDefaultCellTextColour(self, Colour ?)"""
1944
return _grid.Grid_SetDefaultCellTextColour(*args, **kwargs)
1946
def SetCellTextColour(*args, **kwargs):
1947
"""SetCellTextColour(self, int row, int col, Colour ?)"""
1948
return _grid.Grid_SetCellTextColour(*args, **kwargs)
1950
def SetDefaultCellFont(*args, **kwargs):
1951
"""SetDefaultCellFont(self, Font ?)"""
1952
return _grid.Grid_SetDefaultCellFont(*args, **kwargs)
1954
def SetCellFont(*args, **kwargs):
1955
"""SetCellFont(self, int row, int col, Font ?)"""
1956
return _grid.Grid_SetCellFont(*args, **kwargs)
1958
def SetDefaultCellAlignment(*args, **kwargs):
1959
"""SetDefaultCellAlignment(self, int horiz, int vert)"""
1960
return _grid.Grid_SetDefaultCellAlignment(*args, **kwargs)
1962
def SetCellAlignment(*args, **kwargs):
1963
"""SetCellAlignment(self, int row, int col, int horiz, int vert)"""
1964
return _grid.Grid_SetCellAlignment(*args, **kwargs)
1966
def SetDefaultCellOverflow(*args, **kwargs):
1967
"""SetDefaultCellOverflow(self, bool allow)"""
1968
return _grid.Grid_SetDefaultCellOverflow(*args, **kwargs)
1970
def SetCellOverflow(*args, **kwargs):
1971
"""SetCellOverflow(self, int row, int col, bool allow)"""
1972
return _grid.Grid_SetCellOverflow(*args, **kwargs)
1974
def SetCellSize(*args, **kwargs):
1975
"""SetCellSize(self, int row, int col, int num_rows, int num_cols)"""
1976
return _grid.Grid_SetCellSize(*args, **kwargs)
1978
def SetDefaultRenderer(*args, **kwargs):
1979
"""SetDefaultRenderer(self, GridCellRenderer renderer)"""
1980
return _grid.Grid_SetDefaultRenderer(*args, **kwargs)
1982
def SetCellRenderer(*args, **kwargs):
1983
"""SetCellRenderer(self, int row, int col, GridCellRenderer renderer)"""
1984
return _grid.Grid_SetCellRenderer(*args, **kwargs)
1986
def GetDefaultRenderer(*args, **kwargs):
1987
"""GetDefaultRenderer(self) -> GridCellRenderer"""
1988
return _grid.Grid_GetDefaultRenderer(*args, **kwargs)
1990
def GetCellRenderer(*args, **kwargs):
1991
"""GetCellRenderer(self, int row, int col) -> GridCellRenderer"""
1992
return _grid.Grid_GetCellRenderer(*args, **kwargs)
1994
def SetDefaultEditor(*args, **kwargs):
1995
"""SetDefaultEditor(self, GridCellEditor editor)"""
1996
return _grid.Grid_SetDefaultEditor(*args, **kwargs)
1998
def SetCellEditor(*args, **kwargs):
1999
"""SetCellEditor(self, int row, int col, GridCellEditor editor)"""
2000
return _grid.Grid_SetCellEditor(*args, **kwargs)
2002
def GetDefaultEditor(*args, **kwargs):
2003
"""GetDefaultEditor(self) -> GridCellEditor"""
2004
return _grid.Grid_GetDefaultEditor(*args, **kwargs)
2006
def GetCellEditor(*args, **kwargs):
2007
"""GetCellEditor(self, int row, int col) -> GridCellEditor"""
2008
return _grid.Grid_GetCellEditor(*args, **kwargs)
2010
def GetCellValue(*args, **kwargs):
2011
"""GetCellValue(self, int row, int col) -> String"""
2012
return _grid.Grid_GetCellValue(*args, **kwargs)
2014
def SetCellValue(*args, **kwargs):
2015
"""SetCellValue(self, int row, int col, String s)"""
2016
return _grid.Grid_SetCellValue(*args, **kwargs)
2018
def IsReadOnly(*args, **kwargs):
2019
"""IsReadOnly(self, int row, int col) -> bool"""
2020
return _grid.Grid_IsReadOnly(*args, **kwargs)
2022
def SetReadOnly(*args, **kwargs):
2023
"""SetReadOnly(self, int row, int col, bool isReadOnly=True)"""
2024
return _grid.Grid_SetReadOnly(*args, **kwargs)
2026
def SelectRow(*args, **kwargs):
2027
"""SelectRow(self, int row, bool addToSelected=False)"""
2028
return _grid.Grid_SelectRow(*args, **kwargs)
2030
def SelectCol(*args, **kwargs):
2031
"""SelectCol(self, int col, bool addToSelected=False)"""
2032
return _grid.Grid_SelectCol(*args, **kwargs)
2034
def SelectBlock(*args, **kwargs):
2036
SelectBlock(self, int topRow, int leftCol, int bottomRow, int rightCol,
2037
bool addToSelected=False)
2039
return _grid.Grid_SelectBlock(*args, **kwargs)
2041
def SelectAll(*args, **kwargs):
2042
"""SelectAll(self)"""
2043
return _grid.Grid_SelectAll(*args, **kwargs)
2045
def IsSelection(*args, **kwargs):
2046
"""IsSelection(self) -> bool"""
2047
return _grid.Grid_IsSelection(*args, **kwargs)
2049
def ClearSelection(*args, **kwargs):
2050
"""ClearSelection(self)"""
2051
return _grid.Grid_ClearSelection(*args, **kwargs)
2053
def IsInSelection(*args, **kwargs):
2054
"""IsInSelection(self, int row, int col) -> bool"""
2055
return _grid.Grid_IsInSelection(*args, **kwargs)
2057
def GetSelectedCells(*args, **kwargs):
2058
"""GetSelectedCells(self) -> wxGridCellCoordsArray"""
2059
return _grid.Grid_GetSelectedCells(*args, **kwargs)
2061
def GetSelectionBlockTopLeft(*args, **kwargs):
2062
"""GetSelectionBlockTopLeft(self) -> wxGridCellCoordsArray"""
2063
return _grid.Grid_GetSelectionBlockTopLeft(*args, **kwargs)
2065
def GetSelectionBlockBottomRight(*args, **kwargs):
2066
"""GetSelectionBlockBottomRight(self) -> wxGridCellCoordsArray"""
2067
return _grid.Grid_GetSelectionBlockBottomRight(*args, **kwargs)
2069
def GetSelectedRows(*args, **kwargs):
2070
"""GetSelectedRows(self) -> wxArrayInt"""
2071
return _grid.Grid_GetSelectedRows(*args, **kwargs)
2073
def GetSelectedCols(*args, **kwargs):
2074
"""GetSelectedCols(self) -> wxArrayInt"""
2075
return _grid.Grid_GetSelectedCols(*args, **kwargs)
2077
def DeselectRow(*args, **kwargs):
2078
"""DeselectRow(self, int row)"""
2079
return _grid.Grid_DeselectRow(*args, **kwargs)
2081
def DeselectCol(*args, **kwargs):
2082
"""DeselectCol(self, int col)"""
2083
return _grid.Grid_DeselectCol(*args, **kwargs)
2085
def DeselectCell(*args, **kwargs):
2086
"""DeselectCell(self, int row, int col)"""
2087
return _grid.Grid_DeselectCell(*args, **kwargs)
2089
def BlockToDeviceRect(*args, **kwargs):
2090
"""BlockToDeviceRect(self, GridCellCoords topLeft, GridCellCoords bottomRight) -> Rect"""
2091
return _grid.Grid_BlockToDeviceRect(*args, **kwargs)
2093
def GetSelectionBackground(*args, **kwargs):
2094
"""GetSelectionBackground(self) -> Colour"""
2095
return _grid.Grid_GetSelectionBackground(*args, **kwargs)
2097
def GetSelectionForeground(*args, **kwargs):
2098
"""GetSelectionForeground(self) -> Colour"""
2099
return _grid.Grid_GetSelectionForeground(*args, **kwargs)
2101
def SetSelectionBackground(*args, **kwargs):
2102
"""SetSelectionBackground(self, Colour c)"""
2103
return _grid.Grid_SetSelectionBackground(*args, **kwargs)
2105
def SetSelectionForeground(*args, **kwargs):
2106
"""SetSelectionForeground(self, Colour c)"""
2107
return _grid.Grid_SetSelectionForeground(*args, **kwargs)
2109
def RegisterDataType(*args, **kwargs):
2110
"""RegisterDataType(self, String typeName, GridCellRenderer renderer, GridCellEditor editor)"""
2111
return _grid.Grid_RegisterDataType(*args, **kwargs)
2113
def GetDefaultEditorForCell(*args, **kwargs):
2114
"""GetDefaultEditorForCell(self, int row, int col) -> GridCellEditor"""
2115
return _grid.Grid_GetDefaultEditorForCell(*args, **kwargs)
2117
def GetDefaultRendererForCell(*args, **kwargs):
2118
"""GetDefaultRendererForCell(self, int row, int col) -> GridCellRenderer"""
2119
return _grid.Grid_GetDefaultRendererForCell(*args, **kwargs)
2121
def GetDefaultEditorForType(*args, **kwargs):
2122
"""GetDefaultEditorForType(self, String typeName) -> GridCellEditor"""
2123
return _grid.Grid_GetDefaultEditorForType(*args, **kwargs)
2125
def GetDefaultRendererForType(*args, **kwargs):
2126
"""GetDefaultRendererForType(self, String typeName) -> GridCellRenderer"""
2127
return _grid.Grid_GetDefaultRendererForType(*args, **kwargs)
2129
def SetMargins(*args, **kwargs):
2130
"""SetMargins(self, int extraWidth, int extraHeight)"""
2131
return _grid.Grid_SetMargins(*args, **kwargs)
2133
def GetGridWindow(*args, **kwargs):
2134
"""GetGridWindow(self) -> Window"""
2135
return _grid.Grid_GetGridWindow(*args, **kwargs)
2137
def GetGridRowLabelWindow(*args, **kwargs):
2138
"""GetGridRowLabelWindow(self) -> Window"""
2139
return _grid.Grid_GetGridRowLabelWindow(*args, **kwargs)
2141
def GetGridColLabelWindow(*args, **kwargs):
2142
"""GetGridColLabelWindow(self) -> Window"""
2143
return _grid.Grid_GetGridColLabelWindow(*args, **kwargs)
2145
def GetGridCornerLabelWindow(*args, **kwargs):
2146
"""GetGridCornerLabelWindow(self) -> Window"""
2147
return _grid.Grid_GetGridCornerLabelWindow(*args, **kwargs)
2149
def GetGridColHeader(*args, **kwargs):
2150
"""GetGridColHeader(self) -> wxHeaderCtrl"""
2151
return _grid.Grid_GetGridColHeader(*args, **kwargs)
2153
def SetScrollLineX(*args, **kwargs):
2154
"""SetScrollLineX(self, int x)"""
2155
return _grid.Grid_SetScrollLineX(*args, **kwargs)
2157
def SetScrollLineY(*args, **kwargs):
2158
"""SetScrollLineY(self, int y)"""
2159
return _grid.Grid_SetScrollLineY(*args, **kwargs)
2161
def GetScrollLineX(*args, **kwargs):
2162
"""GetScrollLineX(self) -> int"""
2163
return _grid.Grid_GetScrollLineX(*args, **kwargs)
2165
def GetScrollLineY(*args, **kwargs):
2166
"""GetScrollLineY(self) -> int"""
2167
return _grid.Grid_GetScrollLineY(*args, **kwargs)
2169
def GetSortingColumn(*args, **kwargs):
2170
"""GetSortingColumn(self) -> int"""
2171
return _grid.Grid_GetSortingColumn(*args, **kwargs)
2173
def IsSortingBy(*args, **kwargs):
2174
"""IsSortingBy(self, int col) -> bool"""
2175
return _grid.Grid_IsSortingBy(*args, **kwargs)
2177
def IsSortOrderAscending(*args, **kwargs):
2178
"""IsSortOrderAscending(self) -> bool"""
2179
return _grid.Grid_IsSortOrderAscending(*args, **kwargs)
2181
def SetSortingColumn(*args, **kwargs):
2182
"""SetSortingColumn(self, int col, bool ascending=True)"""
2183
return _grid.Grid_SetSortingColumn(*args, **kwargs)
2185
def UnsetSortingColumn(*args, **kwargs):
2186
"""UnsetSortingColumn(self)"""
2187
return _grid.Grid_UnsetSortingColumn(*args, **kwargs)
2189
def GetClassDefaultAttributes(*args, **kwargs):
2191
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2193
Get the default attributes for this class. This is useful if you want
2194
to use the same font or colour in your own control as in a standard
2195
control -- which is a much better idea than hard coding specific
2196
colours or fonts which might look completely out of place on the
2197
user's system, especially if it uses themes.
2199
The variant parameter is only relevant under Mac currently and is
2200
ignore under other platforms. Under Mac, it will change the size of
2201
the returned font. See `wx.Window.SetWindowVariant` for more about
2204
return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
2206
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
2207
BatchCount = property(GetBatchCount,doc="See `GetBatchCount`")
2208
CellHighlightColour = property(GetCellHighlightColour,SetCellHighlightColour,doc="See `GetCellHighlightColour` and `SetCellHighlightColour`")
2209
CellHighlightPenWidth = property(GetCellHighlightPenWidth,SetCellHighlightPenWidth,doc="See `GetCellHighlightPenWidth` and `SetCellHighlightPenWidth`")
2210
CellHighlightROPenWidth = property(GetCellHighlightROPenWidth,SetCellHighlightROPenWidth,doc="See `GetCellHighlightROPenWidth` and `SetCellHighlightROPenWidth`")
2211
CellSize = property(GetCellSize,SetCellSize,doc="See `GetCellSize` and `SetCellSize`")
2212
ColLabelAlignment = property(GetColLabelAlignment,SetColLabelAlignment,doc="See `GetColLabelAlignment` and `SetColLabelAlignment`")
2213
ColLabelSize = property(GetColLabelSize,SetColLabelSize,doc="See `GetColLabelSize` and `SetColLabelSize`")
2214
ColLabelTextOrientation = property(GetColLabelTextOrientation,SetColLabelTextOrientation,doc="See `GetColLabelTextOrientation` and `SetColLabelTextOrientation`")
2215
ColMinimalAcceptableWidth = property(GetColMinimalAcceptableWidth,SetColMinimalAcceptableWidth,doc="See `GetColMinimalAcceptableWidth` and `SetColMinimalAcceptableWidth`")
2216
DefaultCellAlignment = property(GetDefaultCellAlignment,SetDefaultCellAlignment,doc="See `GetDefaultCellAlignment` and `SetDefaultCellAlignment`")
2217
DefaultCellBackgroundColour = property(GetDefaultCellBackgroundColour,SetDefaultCellBackgroundColour,doc="See `GetDefaultCellBackgroundColour` and `SetDefaultCellBackgroundColour`")
2218
DefaultCellFont = property(GetDefaultCellFont,SetDefaultCellFont,doc="See `GetDefaultCellFont` and `SetDefaultCellFont`")
2219
DefaultCellOverflow = property(GetDefaultCellOverflow,SetDefaultCellOverflow,doc="See `GetDefaultCellOverflow` and `SetDefaultCellOverflow`")
2220
DefaultCellTextColour = property(GetDefaultCellTextColour,SetDefaultCellTextColour,doc="See `GetDefaultCellTextColour` and `SetDefaultCellTextColour`")
2221
DefaultColLabelSize = property(GetDefaultColLabelSize,doc="See `GetDefaultColLabelSize`")
2222
DefaultColSize = property(GetDefaultColSize,SetDefaultColSize,doc="See `GetDefaultColSize` and `SetDefaultColSize`")
2223
DefaultEditor = property(GetDefaultEditor,SetDefaultEditor,doc="See `GetDefaultEditor` and `SetDefaultEditor`")
2224
DefaultGridLinePen = property(GetDefaultGridLinePen,doc="See `GetDefaultGridLinePen`")
2225
DefaultRenderer = property(GetDefaultRenderer,SetDefaultRenderer,doc="See `GetDefaultRenderer` and `SetDefaultRenderer`")
2226
DefaultRowLabelSize = property(GetDefaultRowLabelSize,doc="See `GetDefaultRowLabelSize`")
2227
DefaultRowSize = property(GetDefaultRowSize,SetDefaultRowSize,doc="See `GetDefaultRowSize` and `SetDefaultRowSize`")
2228
GridColLabelWindow = property(GetGridColLabelWindow,doc="See `GetGridColLabelWindow`")
2229
GridCornerLabelWindow = property(GetGridCornerLabelWindow,doc="See `GetGridCornerLabelWindow`")
2230
GridCursorCol = property(GetGridCursorCol,doc="See `GetGridCursorCol`")
2231
GridCursorRow = property(GetGridCursorRow,doc="See `GetGridCursorRow`")
2232
GridLineColour = property(GetGridLineColour,SetGridLineColour,doc="See `GetGridLineColour` and `SetGridLineColour`")
2233
GridRowLabelWindow = property(GetGridRowLabelWindow,doc="See `GetGridRowLabelWindow`")
2234
GridWindow = property(GetGridWindow,doc="See `GetGridWindow`")
2235
LabelBackgroundColour = property(GetLabelBackgroundColour,SetLabelBackgroundColour,doc="See `GetLabelBackgroundColour` and `SetLabelBackgroundColour`")
2236
LabelFont = property(GetLabelFont,SetLabelFont,doc="See `GetLabelFont` and `SetLabelFont`")
2237
LabelTextColour = property(GetLabelTextColour,SetLabelTextColour,doc="See `GetLabelTextColour` and `SetLabelTextColour`")
2238
NumberCols = property(GetNumberCols,doc="See `GetNumberCols`")
2239
NumberRows = property(GetNumberRows,doc="See `GetNumberRows`")
2240
RowLabelAlignment = property(GetRowLabelAlignment,SetRowLabelAlignment,doc="See `GetRowLabelAlignment` and `SetRowLabelAlignment`")
2241
RowLabelSize = property(GetRowLabelSize,SetRowLabelSize,doc="See `GetRowLabelSize` and `SetRowLabelSize`")
2242
RowMinimalAcceptableHeight = property(GetRowMinimalAcceptableHeight,SetRowMinimalAcceptableHeight,doc="See `GetRowMinimalAcceptableHeight` and `SetRowMinimalAcceptableHeight`")
2243
ScrollLineX = property(GetScrollLineX,SetScrollLineX,doc="See `GetScrollLineX` and `SetScrollLineX`")
2244
ScrollLineY = property(GetScrollLineY,SetScrollLineY,doc="See `GetScrollLineY` and `SetScrollLineY`")
2245
SelectedCells = property(GetSelectedCells,doc="See `GetSelectedCells`")
2246
SelectedCols = property(GetSelectedCols,doc="See `GetSelectedCols`")
2247
SelectedRows = property(GetSelectedRows,doc="See `GetSelectedRows`")
2248
SelectionBackground = property(GetSelectionBackground,SetSelectionBackground,doc="See `GetSelectionBackground` and `SetSelectionBackground`")
2249
SelectionBlockBottomRight = property(GetSelectionBlockBottomRight,doc="See `GetSelectionBlockBottomRight`")
2250
SelectionBlockTopLeft = property(GetSelectionBlockTopLeft,doc="See `GetSelectionBlockTopLeft`")
2251
SelectionForeground = property(GetSelectionForeground,SetSelectionForeground,doc="See `GetSelectionForeground` and `SetSelectionForeground`")
2252
SelectionMode = property(GetSelectionMode,SetSelectionMode,doc="See `GetSelectionMode` and `SetSelectionMode`")
2253
Table = property(GetTable,SetTable,doc="See `GetTable` and `SetTable`")
2254
_grid.Grid_swigregister(Grid)
2256
def PreGrid(*args, **kwargs):
2257
"""PreGrid() -> Grid"""
2258
val = _grid.new_PreGrid(*args, **kwargs)
2261
def Grid_GetClassDefaultAttributes(*args, **kwargs):
2263
Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2265
Get the default attributes for this class. This is useful if you want
2266
to use the same font or colour in your own control as in a standard
2267
control -- which is a much better idea than hard coding specific
2268
colours or fonts which might look completely out of place on the
2269
user's system, especially if it uses themes.
2271
The variant parameter is only relevant under Mac currently and is
2272
ignore under other platforms. Under Mac, it will change the size of
2273
the returned font. See `wx.Window.SetWindowVariant` for more about
2276
return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
2278
class GridUpdateLocker(object):
2279
"""Proxy of C++ GridUpdateLocker class"""
2280
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2281
__repr__ = _swig_repr
2282
def __init__(self, *args, **kwargs):
2283
"""__init__(self, Grid grid=None) -> GridUpdateLocker"""
2284
_grid.GridUpdateLocker_swiginit(self,_grid.new_GridUpdateLocker(*args, **kwargs))
2285
__swig_destroy__ = _grid.delete_GridUpdateLocker
2286
__del__ = lambda self : None;
2287
def Create(*args, **kwargs):
2288
"""Create(self, Grid grid)"""
2289
return _grid.GridUpdateLocker_Create(*args, **kwargs)
2291
_grid.GridUpdateLocker_swigregister(GridUpdateLocker)
2293
class GridEvent(_core.NotifyEvent):
2294
"""Proxy of C++ GridEvent class"""
2295
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2296
__repr__ = _swig_repr
2297
def __init__(self, *args, **kwargs):
2299
__init__(self, int id, EventType type, Object obj, int row=-1, int col=-1,
2300
int x=-1, int y=-1, bool sel=True, bool control=False,
2301
bool shift=False, bool alt=False,
2302
bool meta=False) -> GridEvent
2304
_grid.GridEvent_swiginit(self,_grid.new_GridEvent(*args, **kwargs))
2305
def GetRow(*args, **kwargs):
2306
"""GetRow(self) -> int"""
2307
return _grid.GridEvent_GetRow(*args, **kwargs)
2309
def GetCol(*args, **kwargs):
2310
"""GetCol(self) -> int"""
2311
return _grid.GridEvent_GetCol(*args, **kwargs)
2313
def GetPosition(*args, **kwargs):
2314
"""GetPosition(self) -> Point"""
2315
return _grid.GridEvent_GetPosition(*args, **kwargs)
2317
def Selecting(*args, **kwargs):
2318
"""Selecting(self) -> bool"""
2319
return _grid.GridEvent_Selecting(*args, **kwargs)
2321
def ControlDown(*args, **kwargs):
2322
"""ControlDown(self) -> bool"""
2323
return _grid.GridEvent_ControlDown(*args, **kwargs)
2325
def MetaDown(*args, **kwargs):
2326
"""MetaDown(self) -> bool"""
2327
return _grid.GridEvent_MetaDown(*args, **kwargs)
2329
def ShiftDown(*args, **kwargs):
2330
"""ShiftDown(self) -> bool"""
2331
return _grid.GridEvent_ShiftDown(*args, **kwargs)
2333
def AltDown(*args, **kwargs):
2334
"""AltDown(self) -> bool"""
2335
return _grid.GridEvent_AltDown(*args, **kwargs)
2337
def CmdDown(*args, **kwargs):
2338
"""CmdDown(self) -> bool"""
2339
return _grid.GridEvent_CmdDown(*args, **kwargs)
2341
Col = property(GetCol,doc="See `GetCol`")
2342
Position = property(GetPosition,doc="See `GetPosition`")
2343
Row = property(GetRow,doc="See `GetRow`")
2344
_grid.GridEvent_swigregister(GridEvent)
2346
class GridSizeEvent(_core.NotifyEvent):
2347
"""Proxy of C++ GridSizeEvent class"""
2348
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2349
__repr__ = _swig_repr
2350
def __init__(self, *args, **kwargs):
2352
__init__(self, int id, EventType type, Grid obj, int rowOrCol=-1,
2353
int x=-1, int y=-1, bool control=False, bool shift=False,
2354
bool alt=False, bool meta=False) -> GridSizeEvent
2356
_grid.GridSizeEvent_swiginit(self,_grid.new_GridSizeEvent(*args, **kwargs))
2357
def GetRowOrCol(*args, **kwargs):
2358
"""GetRowOrCol(self) -> int"""
2359
return _grid.GridSizeEvent_GetRowOrCol(*args, **kwargs)
2361
def GetPosition(*args, **kwargs):
2362
"""GetPosition(self) -> Point"""
2363
return _grid.GridSizeEvent_GetPosition(*args, **kwargs)
2365
def ControlDown(*args, **kwargs):
2366
"""ControlDown(self) -> bool"""
2367
return _grid.GridSizeEvent_ControlDown(*args, **kwargs)
2369
def MetaDown(*args, **kwargs):
2370
"""MetaDown(self) -> bool"""
2371
return _grid.GridSizeEvent_MetaDown(*args, **kwargs)
2373
def ShiftDown(*args, **kwargs):
2374
"""ShiftDown(self) -> bool"""
2375
return _grid.GridSizeEvent_ShiftDown(*args, **kwargs)
2377
def AltDown(*args, **kwargs):
2378
"""AltDown(self) -> bool"""
2379
return _grid.GridSizeEvent_AltDown(*args, **kwargs)
2381
def CmdDown(*args, **kwargs):
2382
"""CmdDown(self) -> bool"""
2383
return _grid.GridSizeEvent_CmdDown(*args, **kwargs)
2385
Position = property(GetPosition,doc="See `GetPosition`")
2386
RowOrCol = property(GetRowOrCol,doc="See `GetRowOrCol`")
2387
_grid.GridSizeEvent_swigregister(GridSizeEvent)
2389
class GridRangeSelectEvent(_core.NotifyEvent):
2390
"""Proxy of C++ GridRangeSelectEvent class"""
2391
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2392
__repr__ = _swig_repr
2393
def __init__(self, *args, **kwargs):
2395
__init__(self, int id, EventType type, Grid obj, GridCellCoords topLeft,
2396
GridCellCoords bottomRight, bool sel=True,
2397
bool control=False, bool shift=False, bool alt=False,
2398
bool meta=False) -> GridRangeSelectEvent
2400
_grid.GridRangeSelectEvent_swiginit(self,_grid.new_GridRangeSelectEvent(*args, **kwargs))
2401
def GetTopLeftCoords(*args, **kwargs):
2402
"""GetTopLeftCoords(self) -> GridCellCoords"""
2403
return _grid.GridRangeSelectEvent_GetTopLeftCoords(*args, **kwargs)
2405
def GetBottomRightCoords(*args, **kwargs):
2406
"""GetBottomRightCoords(self) -> GridCellCoords"""
2407
return _grid.GridRangeSelectEvent_GetBottomRightCoords(*args, **kwargs)
2409
def GetTopRow(*args, **kwargs):
2410
"""GetTopRow(self) -> int"""
2411
return _grid.GridRangeSelectEvent_GetTopRow(*args, **kwargs)
2413
def GetBottomRow(*args, **kwargs):
2414
"""GetBottomRow(self) -> int"""
2415
return _grid.GridRangeSelectEvent_GetBottomRow(*args, **kwargs)
2417
def GetLeftCol(*args, **kwargs):
2418
"""GetLeftCol(self) -> int"""
2419
return _grid.GridRangeSelectEvent_GetLeftCol(*args, **kwargs)
2421
def GetRightCol(*args, **kwargs):
2422
"""GetRightCol(self) -> int"""
2423
return _grid.GridRangeSelectEvent_GetRightCol(*args, **kwargs)
2425
def Selecting(*args, **kwargs):
2426
"""Selecting(self) -> bool"""
2427
return _grid.GridRangeSelectEvent_Selecting(*args, **kwargs)
2429
def ControlDown(*args, **kwargs):
2430
"""ControlDown(self) -> bool"""
2431
return _grid.GridRangeSelectEvent_ControlDown(*args, **kwargs)
2433
def MetaDown(*args, **kwargs):
2434
"""MetaDown(self) -> bool"""
2435
return _grid.GridRangeSelectEvent_MetaDown(*args, **kwargs)
2437
def ShiftDown(*args, **kwargs):
2438
"""ShiftDown(self) -> bool"""
2439
return _grid.GridRangeSelectEvent_ShiftDown(*args, **kwargs)
2441
def AltDown(*args, **kwargs):
2442
"""AltDown(self) -> bool"""
2443
return _grid.GridRangeSelectEvent_AltDown(*args, **kwargs)
2445
def CmdDown(*args, **kwargs):
2446
"""CmdDown(self) -> bool"""
2447
return _grid.GridRangeSelectEvent_CmdDown(*args, **kwargs)
2449
BottomRightCoords = property(GetBottomRightCoords,doc="See `GetBottomRightCoords`")
2450
BottomRow = property(GetBottomRow,doc="See `GetBottomRow`")
2451
LeftCol = property(GetLeftCol,doc="See `GetLeftCol`")
2452
RightCol = property(GetRightCol,doc="See `GetRightCol`")
2453
TopLeftCoords = property(GetTopLeftCoords,doc="See `GetTopLeftCoords`")
2454
TopRow = property(GetTopRow,doc="See `GetTopRow`")
2455
_grid.GridRangeSelectEvent_swigregister(GridRangeSelectEvent)
2457
class GridEditorCreatedEvent(_core.CommandEvent):
2458
"""Proxy of C++ GridEditorCreatedEvent class"""
2459
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2460
__repr__ = _swig_repr
2461
def __init__(self, *args, **kwargs):
2463
__init__(self, int id, EventType type, Object obj, int row, int col,
2464
Control ctrl) -> GridEditorCreatedEvent
2466
_grid.GridEditorCreatedEvent_swiginit(self,_grid.new_GridEditorCreatedEvent(*args, **kwargs))
2467
def GetRow(*args, **kwargs):
2468
"""GetRow(self) -> int"""
2469
return _grid.GridEditorCreatedEvent_GetRow(*args, **kwargs)
2471
def GetCol(*args, **kwargs):
2472
"""GetCol(self) -> int"""
2473
return _grid.GridEditorCreatedEvent_GetCol(*args, **kwargs)
2475
def GetControl(*args, **kwargs):
2476
"""GetControl(self) -> Control"""
2477
return _grid.GridEditorCreatedEvent_GetControl(*args, **kwargs)
2479
def SetRow(*args, **kwargs):
2480
"""SetRow(self, int row)"""
2481
return _grid.GridEditorCreatedEvent_SetRow(*args, **kwargs)
2483
def SetCol(*args, **kwargs):
2484
"""SetCol(self, int col)"""
2485
return _grid.GridEditorCreatedEvent_SetCol(*args, **kwargs)
2487
def SetControl(*args, **kwargs):
2488
"""SetControl(self, Control ctrl)"""
2489
return _grid.GridEditorCreatedEvent_SetControl(*args, **kwargs)
2491
Col = property(GetCol,SetCol,doc="See `GetCol` and `SetCol`")
2492
Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`")
2493
Row = property(GetRow,SetRow,doc="See `GetRow` and `SetRow`")
2494
_grid.GridEditorCreatedEvent_swigregister(GridEditorCreatedEvent)
2496
wxEVT_GRID_CELL_LEFT_CLICK = _grid.wxEVT_GRID_CELL_LEFT_CLICK
2497
wxEVT_GRID_CELL_RIGHT_CLICK = _grid.wxEVT_GRID_CELL_RIGHT_CLICK
2498
wxEVT_GRID_CELL_LEFT_DCLICK = _grid.wxEVT_GRID_CELL_LEFT_DCLICK
2499
wxEVT_GRID_CELL_RIGHT_DCLICK = _grid.wxEVT_GRID_CELL_RIGHT_DCLICK
2500
wxEVT_GRID_LABEL_LEFT_CLICK = _grid.wxEVT_GRID_LABEL_LEFT_CLICK
2501
wxEVT_GRID_LABEL_RIGHT_CLICK = _grid.wxEVT_GRID_LABEL_RIGHT_CLICK
2502
wxEVT_GRID_LABEL_LEFT_DCLICK = _grid.wxEVT_GRID_LABEL_LEFT_DCLICK
2503
wxEVT_GRID_LABEL_RIGHT_DCLICK = _grid.wxEVT_GRID_LABEL_RIGHT_DCLICK
2504
wxEVT_GRID_ROW_SIZE = _grid.wxEVT_GRID_ROW_SIZE
2505
wxEVT_GRID_COL_SIZE = _grid.wxEVT_GRID_COL_SIZE
2506
wxEVT_GRID_RANGE_SELECT = _grid.wxEVT_GRID_RANGE_SELECT
2507
wxEVT_GRID_CELL_CHANGING = _grid.wxEVT_GRID_CELL_CHANGING
2508
wxEVT_GRID_CELL_CHANGED = _grid.wxEVT_GRID_CELL_CHANGED
2509
wxEVT_GRID_SELECT_CELL = _grid.wxEVT_GRID_SELECT_CELL
2510
wxEVT_GRID_EDITOR_SHOWN = _grid.wxEVT_GRID_EDITOR_SHOWN
2511
wxEVT_GRID_EDITOR_HIDDEN = _grid.wxEVT_GRID_EDITOR_HIDDEN
2512
wxEVT_GRID_EDITOR_CREATED = _grid.wxEVT_GRID_EDITOR_CREATED
2513
wxEVT_GRID_CELL_BEGIN_DRAG = _grid.wxEVT_GRID_CELL_BEGIN_DRAG
2514
wxEVT_GRID_COL_MOVE = _grid.wxEVT_GRID_COL_MOVE
2515
wxEVT_GRID_COL_SORT = _grid.wxEVT_GRID_COL_SORT
2516
EVT_GRID_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK )
2517
EVT_GRID_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK )
2518
EVT_GRID_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK )
2519
EVT_GRID_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK )
2520
EVT_GRID_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK )
2521
EVT_GRID_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK )
2522
EVT_GRID_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK )
2523
EVT_GRID_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK )
2524
EVT_GRID_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE )
2525
EVT_GRID_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE )
2526
EVT_GRID_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT )
2527
EVT_GRID_CELL_CHANGING = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGING )
2528
EVT_GRID_CELL_CHANGED = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGED )
2529
EVT_GRID_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL )
2530
EVT_GRID_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN )
2531
EVT_GRID_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN )
2532
EVT_GRID_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED )
2533
EVT_GRID_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG )
2534
EVT_GRID_COL_MOVE = wx.PyEventBinder( wxEVT_GRID_COL_MOVE )
2535
EVT_GRID_COL_SORT = wx.PyEventBinder( wxEVT_GRID_COL_SORT )
2537
# The same as above but with the ability to specify an identifier
2538
EVT_GRID_CMD_CELL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_CLICK, 1 )
2539
EVT_GRID_CMD_CELL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_CLICK, 1 )
2540
EVT_GRID_CMD_CELL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_LEFT_DCLICK, 1 )
2541
EVT_GRID_CMD_CELL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_CELL_RIGHT_DCLICK, 1 )
2542
EVT_GRID_CMD_LABEL_LEFT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_CLICK, 1 )
2543
EVT_GRID_CMD_LABEL_RIGHT_CLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_CLICK, 1 )
2544
EVT_GRID_CMD_LABEL_LEFT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_LEFT_DCLICK, 1 )
2545
EVT_GRID_CMD_LABEL_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_GRID_LABEL_RIGHT_DCLICK, 1 )
2546
EVT_GRID_CMD_ROW_SIZE = wx.PyEventBinder( wxEVT_GRID_ROW_SIZE, 1 )
2547
EVT_GRID_CMD_COL_SIZE = wx.PyEventBinder( wxEVT_GRID_COL_SIZE, 1 )
2548
EVT_GRID_CMD_RANGE_SELECT = wx.PyEventBinder( wxEVT_GRID_RANGE_SELECT, 1 )
2549
EVT_GRID_CMD_CELL_CHANGING = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGING, 1 )
2550
EVT_GRID_CMD_CELL_CHANGED = wx.PyEventBinder( wxEVT_GRID_CELL_CHANGED, 1 )
2551
EVT_GRID_CMD_SELECT_CELL = wx.PyEventBinder( wxEVT_GRID_SELECT_CELL, 1 )
2552
EVT_GRID_CMD_EDITOR_SHOWN = wx.PyEventBinder( wxEVT_GRID_EDITOR_SHOWN, 1 )
2553
EVT_GRID_CMD_EDITOR_HIDDEN = wx.PyEventBinder( wxEVT_GRID_EDITOR_HIDDEN, 1 )
2554
EVT_GRID_CMD_EDITOR_CREATED = wx.PyEventBinder( wxEVT_GRID_EDITOR_CREATED, 1 )
2555
EVT_GRID_CMD_CELL_BEGIN_DRAG = wx.PyEventBinder( wxEVT_GRID_CELL_BEGIN_DRAG, 1 )
2556
EVT_GRID_CMD_COL_MOVE = wx.PyEventBinder( wxEVT_GRID_COL_MOVE, 1 )
2557
EVT_GRID_CMD_COL_SORT = wx.PyEventBinder( wxEVT_GRID_COL_SORT, 1 )
2559
EVT_GRID_CELL_CHANGE = EVT_GRID_CELL_CHANGED
2560
EVT_GRID_CMD_CELL_CHANGE = EVT_GRID_CMD_CELL_CHANGED