]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/grid.py
highlight the focused item in non report mode too
[wxWidgets.git] / wxPython / src / msw / grid.py
1 # This file was created automatically by SWIG.
2 import gridc
3
4 from misc import *
5
6 from gdi import *
7
8 from windows import *
9
10 from clip_dnd import *
11
12 from controls import *
13
14 from events import *
15 import wx
16
17 def EVT_GRID_CELL_LEFT_CLICK(win, fn):
18 win.Connect(-1, -1, wxEVT_GRID_CELL_LEFT_CLICK, fn)
19
20 def EVT_GRID_CELL_RIGHT_CLICK(win, fn):
21 win.Connect(-1, -1, wxEVT_GRID_CELL_RIGHT_CLICK, fn)
22
23 def EVT_GRID_CELL_LEFT_DCLICK(win, fn):
24 win.Connect(-1, -1, wxEVT_GRID_CELL_LEFT_DCLICK, fn)
25
26 def EVT_GRID_CELL_RIGHT_DCLICK(win, fn):
27 win.Connect(-1, -1, wxEVT_GRID_CELL_RIGHT_DCLICK, fn)
28
29 def EVT_GRID_LABEL_LEFT_CLICK(win, fn):
30 win.Connect(-1, -1, wxEVT_GRID_LABEL_LEFT_CLICK, fn)
31
32 def EVT_GRID_LABEL_RIGHT_CLICK(win, fn):
33 win.Connect(-1, -1, wxEVT_GRID_LABEL_RIGHT_CLICK, fn)
34
35 def EVT_GRID_LABEL_LEFT_DCLICK(win, fn):
36 win.Connect(-1, -1, wxEVT_GRID_LABEL_LEFT_DCLICK, fn)
37
38 def EVT_GRID_LABEL_RIGHT_DCLICK(win, fn):
39 win.Connect(-1, -1, wxEVT_GRID_LABEL_RIGHT_DCLICK, fn)
40
41 def EVT_GRID_ROW_SIZE(win, fn):
42 win.Connect(-1, -1, wxEVT_GRID_ROW_SIZE, fn)
43
44 def EVT_GRID_COL_SIZE(win, fn):
45 win.Connect(-1, -1, wxEVT_GRID_COL_SIZE, fn)
46
47 def EVT_GRID_RANGE_SELECT(win, fn):
48 win.Connect(-1, -1, wxEVT_GRID_RANGE_SELECT, fn)
49
50 def EVT_GRID_CELL_CHANGE(win, fn):
51 win.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE, fn)
52
53 def EVT_GRID_SELECT_CELL(win, fn):
54 win.Connect(-1, -1, wxEVT_GRID_SELECT_CELL, fn)
55
56 def EVT_GRID_EDITOR_SHOWN(win, fn):
57 win.Connect(-1, -1, wxEVT_GRID_EDITOR_SHOWN, fn)
58
59 def EVT_GRID_EDITOR_HIDDEN(win, fn):
60 win.Connect(-1, -1, wxEVT_GRID_EDITOR_HIDDEN, fn)
61
62 def EVT_GRID_EDITOR_CREATED(win, fn):
63 win.Connect(-1, -1, wxEVT_GRID_EDITOR_CREATED, fn)
64
65
66 class wxGridCellRendererPtr :
67 def __init__(self,this):
68 self.this = this
69 self.thisown = 0
70 def SetParameters(self, *_args, **_kwargs):
71 val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs)
72 return val
73 def IncRef(self, *_args, **_kwargs):
74 val = apply(gridc.wxGridCellRenderer_IncRef,(self,) + _args, _kwargs)
75 return val
76 def DecRef(self, *_args, **_kwargs):
77 val = apply(gridc.wxGridCellRenderer_DecRef,(self,) + _args, _kwargs)
78 return val
79 def Draw(self, *_args, **_kwargs):
80 val = apply(gridc.wxGridCellRenderer_Draw,(self,) + _args, _kwargs)
81 return val
82 def GetBestSize(self, *_args, **_kwargs):
83 val = apply(gridc.wxGridCellRenderer_GetBestSize,(self,) + _args, _kwargs)
84 if val: val = wxSizePtr(val) ; val.thisown = 1
85 return val
86 def Clone(self, *_args, **_kwargs):
87 val = apply(gridc.wxGridCellRenderer_Clone,(self,) + _args, _kwargs)
88 if val: val = wxGridCellRendererPtr(val)
89 return val
90 def __repr__(self):
91 return "<C wxGridCellRenderer instance at %s>" % (self.this,)
92 class wxGridCellRenderer(wxGridCellRendererPtr):
93 def __init__(self,this):
94 self.this = this
95
96
97
98
99 class wxPyGridCellRendererPtr(wxGridCellRendererPtr):
100 def __init__(self,this):
101 self.this = this
102 self.thisown = 0
103 def _setSelf(self, *_args, **_kwargs):
104 val = apply(gridc.wxPyGridCellRenderer__setSelf,(self,) + _args, _kwargs)
105 return val
106 def base_SetParameters(self, *_args, **_kwargs):
107 val = apply(gridc.wxPyGridCellRenderer_base_SetParameters,(self,) + _args, _kwargs)
108 return val
109 def __repr__(self):
110 return "<C wxPyGridCellRenderer instance at %s>" % (self.this,)
111 class wxPyGridCellRenderer(wxPyGridCellRendererPtr):
112 def __init__(self,*_args,**_kwargs):
113 self.this = apply(gridc.new_wxPyGridCellRenderer,_args,_kwargs)
114 self.thisown = 1
115 self._setSelf(self, wxPyGridCellRenderer)
116
117
118
119
120 class wxGridCellStringRendererPtr(wxGridCellRendererPtr):
121 def __init__(self,this):
122 self.this = this
123 self.thisown = 0
124 def __repr__(self):
125 return "<C wxGridCellStringRenderer instance at %s>" % (self.this,)
126 class wxGridCellStringRenderer(wxGridCellStringRendererPtr):
127 def __init__(self,*_args,**_kwargs):
128 self.this = apply(gridc.new_wxGridCellStringRenderer,_args,_kwargs)
129 self.thisown = 1
130
131
132
133
134 class wxGridCellNumberRendererPtr(wxGridCellStringRendererPtr):
135 def __init__(self,this):
136 self.this = this
137 self.thisown = 0
138 def __repr__(self):
139 return "<C wxGridCellNumberRenderer instance at %s>" % (self.this,)
140 class wxGridCellNumberRenderer(wxGridCellNumberRendererPtr):
141 def __init__(self,*_args,**_kwargs):
142 self.this = apply(gridc.new_wxGridCellNumberRenderer,_args,_kwargs)
143 self.thisown = 1
144
145
146
147
148 class wxGridCellFloatRendererPtr(wxGridCellStringRendererPtr):
149 def __init__(self,this):
150 self.this = this
151 self.thisown = 0
152 def GetWidth(self, *_args, **_kwargs):
153 val = apply(gridc.wxGridCellFloatRenderer_GetWidth,(self,) + _args, _kwargs)
154 return val
155 def SetWidth(self, *_args, **_kwargs):
156 val = apply(gridc.wxGridCellFloatRenderer_SetWidth,(self,) + _args, _kwargs)
157 return val
158 def GetPrecision(self, *_args, **_kwargs):
159 val = apply(gridc.wxGridCellFloatRenderer_GetPrecision,(self,) + _args, _kwargs)
160 return val
161 def SetPrecision(self, *_args, **_kwargs):
162 val = apply(gridc.wxGridCellFloatRenderer_SetPrecision,(self,) + _args, _kwargs)
163 return val
164 def __repr__(self):
165 return "<C wxGridCellFloatRenderer instance at %s>" % (self.this,)
166 class wxGridCellFloatRenderer(wxGridCellFloatRendererPtr):
167 def __init__(self,*_args,**_kwargs):
168 self.this = apply(gridc.new_wxGridCellFloatRenderer,_args,_kwargs)
169 self.thisown = 1
170
171
172
173
174 class wxGridCellBoolRendererPtr(wxGridCellRendererPtr):
175 def __init__(self,this):
176 self.this = this
177 self.thisown = 0
178 def __repr__(self):
179 return "<C wxGridCellBoolRenderer instance at %s>" % (self.this,)
180 class wxGridCellBoolRenderer(wxGridCellBoolRendererPtr):
181 def __init__(self,*_args,**_kwargs):
182 self.this = apply(gridc.new_wxGridCellBoolRenderer,_args,_kwargs)
183 self.thisown = 1
184
185
186
187
188 class wxGridCellEditorPtr :
189 def __init__(self,this):
190 self.this = this
191 self.thisown = 0
192 def IsCreated(self, *_args, **_kwargs):
193 val = apply(gridc.wxGridCellEditor_IsCreated,(self,) + _args, _kwargs)
194 return val
195 def GetControl(self, *_args, **_kwargs):
196 val = apply(gridc.wxGridCellEditor_GetControl,(self,) + _args, _kwargs)
197 return val
198 def SetControl(self, *_args, **_kwargs):
199 val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
200 return val
201 def SetParameters(self, *_args, **_kwargs):
202 val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
203 return val
204 def IncRef(self, *_args, **_kwargs):
205 val = apply(gridc.wxGridCellEditor_IncRef,(self,) + _args, _kwargs)
206 return val
207 def DecRef(self, *_args, **_kwargs):
208 val = apply(gridc.wxGridCellEditor_DecRef,(self,) + _args, _kwargs)
209 return val
210 def Create(self, *_args, **_kwargs):
211 val = apply(gridc.wxGridCellEditor_Create,(self,) + _args, _kwargs)
212 return val
213 def BeginEdit(self, *_args, **_kwargs):
214 val = apply(gridc.wxGridCellEditor_BeginEdit,(self,) + _args, _kwargs)
215 return val
216 def EndEdit(self, *_args, **_kwargs):
217 val = apply(gridc.wxGridCellEditor_EndEdit,(self,) + _args, _kwargs)
218 return val
219 def Reset(self, *_args, **_kwargs):
220 val = apply(gridc.wxGridCellEditor_Reset,(self,) + _args, _kwargs)
221 return val
222 def Clone(self, *_args, **_kwargs):
223 val = apply(gridc.wxGridCellEditor_Clone,(self,) + _args, _kwargs)
224 if val: val = wxGridCellEditorPtr(val)
225 return val
226 def SetSize(self, *_args, **_kwargs):
227 val = apply(gridc.wxGridCellEditor_SetSize,(self,) + _args, _kwargs)
228 return val
229 def Show(self, *_args, **_kwargs):
230 val = apply(gridc.wxGridCellEditor_Show,(self,) + _args, _kwargs)
231 return val
232 def PaintBackground(self, *_args, **_kwargs):
233 val = apply(gridc.wxGridCellEditor_PaintBackground,(self,) + _args, _kwargs)
234 return val
235 def IsAcceptedKey(self, *_args, **_kwargs):
236 val = apply(gridc.wxGridCellEditor_IsAcceptedKey,(self,) + _args, _kwargs)
237 return val
238 def StartingKey(self, *_args, **_kwargs):
239 val = apply(gridc.wxGridCellEditor_StartingKey,(self,) + _args, _kwargs)
240 return val
241 def StartingClick(self, *_args, **_kwargs):
242 val = apply(gridc.wxGridCellEditor_StartingClick,(self,) + _args, _kwargs)
243 return val
244 def HandleReturn(self, *_args, **_kwargs):
245 val = apply(gridc.wxGridCellEditor_HandleReturn,(self,) + _args, _kwargs)
246 return val
247 def Destroy(self, *_args, **_kwargs):
248 val = apply(gridc.wxGridCellEditor_Destroy,(self,) + _args, _kwargs)
249 return val
250 def __repr__(self):
251 return "<C wxGridCellEditor instance at %s>" % (self.this,)
252 class wxGridCellEditor(wxGridCellEditorPtr):
253 def __init__(self,this):
254 self.this = this
255
256
257
258
259 class wxPyGridCellEditorPtr(wxGridCellEditorPtr):
260 def __init__(self,this):
261 self.this = this
262 self.thisown = 0
263 def _setSelf(self, *_args, **_kwargs):
264 val = apply(gridc.wxPyGridCellEditor__setSelf,(self,) + _args, _kwargs)
265 return val
266 def base_SetSize(self, *_args, **_kwargs):
267 val = apply(gridc.wxPyGridCellEditor_base_SetSize,(self,) + _args, _kwargs)
268 return val
269 def base_Show(self, *_args, **_kwargs):
270 val = apply(gridc.wxPyGridCellEditor_base_Show,(self,) + _args, _kwargs)
271 return val
272 def base_PaintBackground(self, *_args, **_kwargs):
273 val = apply(gridc.wxPyGridCellEditor_base_PaintBackground,(self,) + _args, _kwargs)
274 return val
275 def base_IsAcceptedKey(self, *_args, **_kwargs):
276 val = apply(gridc.wxPyGridCellEditor_base_IsAcceptedKey,(self,) + _args, _kwargs)
277 return val
278 def base_StartingKey(self, *_args, **_kwargs):
279 val = apply(gridc.wxPyGridCellEditor_base_StartingKey,(self,) + _args, _kwargs)
280 return val
281 def base_StartingClick(self, *_args, **_kwargs):
282 val = apply(gridc.wxPyGridCellEditor_base_StartingClick,(self,) + _args, _kwargs)
283 return val
284 def base_HandleReturn(self, *_args, **_kwargs):
285 val = apply(gridc.wxPyGridCellEditor_base_HandleReturn,(self,) + _args, _kwargs)
286 return val
287 def base_Destroy(self, *_args, **_kwargs):
288 val = apply(gridc.wxPyGridCellEditor_base_Destroy,(self,) + _args, _kwargs)
289 return val
290 def base_SetParameters(self, *_args, **_kwargs):
291 val = apply(gridc.wxPyGridCellEditor_base_SetParameters,(self,) + _args, _kwargs)
292 return val
293 def __repr__(self):
294 return "<C wxPyGridCellEditor instance at %s>" % (self.this,)
295 class wxPyGridCellEditor(wxPyGridCellEditorPtr):
296 def __init__(self,*_args,**_kwargs):
297 self.this = apply(gridc.new_wxPyGridCellEditor,_args,_kwargs)
298 self.thisown = 1
299 self._setSelf(self, wxPyGridCellEditor)
300
301
302
303
304 class wxGridCellTextEditorPtr(wxGridCellEditorPtr):
305 def __init__(self,this):
306 self.this = this
307 self.thisown = 0
308 def __repr__(self):
309 return "<C wxGridCellTextEditor instance at %s>" % (self.this,)
310 class wxGridCellTextEditor(wxGridCellTextEditorPtr):
311 def __init__(self,*_args,**_kwargs):
312 self.this = apply(gridc.new_wxGridCellTextEditor,_args,_kwargs)
313 self.thisown = 1
314
315
316
317
318 class wxGridCellNumberEditorPtr(wxGridCellTextEditorPtr):
319 def __init__(self,this):
320 self.this = this
321 self.thisown = 0
322 def __repr__(self):
323 return "<C wxGridCellNumberEditor instance at %s>" % (self.this,)
324 class wxGridCellNumberEditor(wxGridCellNumberEditorPtr):
325 def __init__(self,*_args,**_kwargs):
326 self.this = apply(gridc.new_wxGridCellNumberEditor,_args,_kwargs)
327 self.thisown = 1
328
329
330
331
332 class wxGridCellFloatEditorPtr(wxGridCellTextEditorPtr):
333 def __init__(self,this):
334 self.this = this
335 self.thisown = 0
336 def __repr__(self):
337 return "<C wxGridCellFloatEditor instance at %s>" % (self.this,)
338 class wxGridCellFloatEditor(wxGridCellFloatEditorPtr):
339 def __init__(self,*_args,**_kwargs):
340 self.this = apply(gridc.new_wxGridCellFloatEditor,_args,_kwargs)
341 self.thisown = 1
342
343
344
345
346 class wxGridCellBoolEditorPtr(wxGridCellEditorPtr):
347 def __init__(self,this):
348 self.this = this
349 self.thisown = 0
350 def __repr__(self):
351 return "<C wxGridCellBoolEditor instance at %s>" % (self.this,)
352 class wxGridCellBoolEditor(wxGridCellBoolEditorPtr):
353 def __init__(self,*_args,**_kwargs):
354 self.this = apply(gridc.new_wxGridCellBoolEditor,_args,_kwargs)
355 self.thisown = 1
356
357
358
359
360 class wxGridCellChoiceEditorPtr(wxGridCellEditorPtr):
361 def __init__(self,this):
362 self.this = this
363 self.thisown = 0
364 def __repr__(self):
365 return "<C wxGridCellChoiceEditor instance at %s>" % (self.this,)
366 class wxGridCellChoiceEditor(wxGridCellChoiceEditorPtr):
367 def __init__(self,*_args,**_kwargs):
368 self.this = apply(gridc.new_wxGridCellChoiceEditor,_args,_kwargs)
369 self.thisown = 1
370
371
372
373
374 class wxGridCellAttrPtr :
375 Any = gridc.wxGridCellAttr_Any
376 Default = gridc.wxGridCellAttr_Default
377 Cell = gridc.wxGridCellAttr_Cell
378 Row = gridc.wxGridCellAttr_Row
379 Col = gridc.wxGridCellAttr_Col
380 Merged = gridc.wxGridCellAttr_Merged
381 def __init__(self,this):
382 self.this = this
383 self.thisown = 0
384 def Clone(self, *_args, **_kwargs):
385 val = apply(gridc.wxGridCellAttr_Clone,(self,) + _args, _kwargs)
386 if val: val = wxGridCellAttrPtr(val)
387 return val
388 def MergeWith(self, *_args, **_kwargs):
389 val = apply(gridc.wxGridCellAttr_MergeWith,(self,) + _args, _kwargs)
390 return val
391 def IncRef(self, *_args, **_kwargs):
392 val = apply(gridc.wxGridCellAttr_IncRef,(self,) + _args, _kwargs)
393 return val
394 def DecRef(self, *_args, **_kwargs):
395 val = apply(gridc.wxGridCellAttr_DecRef,(self,) + _args, _kwargs)
396 return val
397 def SetTextColour(self, *_args, **_kwargs):
398 val = apply(gridc.wxGridCellAttr_SetTextColour,(self,) + _args, _kwargs)
399 return val
400 def SetBackgroundColour(self, *_args, **_kwargs):
401 val = apply(gridc.wxGridCellAttr_SetBackgroundColour,(self,) + _args, _kwargs)
402 return val
403 def SetFont(self, *_args, **_kwargs):
404 val = apply(gridc.wxGridCellAttr_SetFont,(self,) + _args, _kwargs)
405 return val
406 def SetAlignment(self, *_args, **_kwargs):
407 val = apply(gridc.wxGridCellAttr_SetAlignment,(self,) + _args, _kwargs)
408 return val
409 def SetReadOnly(self, *_args, **_kwargs):
410 val = apply(gridc.wxGridCellAttr_SetReadOnly,(self,) + _args, _kwargs)
411 return val
412 def SetRenderer(self, *_args, **_kwargs):
413 val = apply(gridc.wxGridCellAttr_SetRenderer,(self,) + _args, _kwargs)
414 return val
415 def SetEditor(self, *_args, **_kwargs):
416 val = apply(gridc.wxGridCellAttr_SetEditor,(self,) + _args, _kwargs)
417 return val
418 def SetKind(self, *_args, **_kwargs):
419 val = apply(gridc.wxGridCellAttr_SetKind,(self,) + _args, _kwargs)
420 return val
421 def HasTextColour(self, *_args, **_kwargs):
422 val = apply(gridc.wxGridCellAttr_HasTextColour,(self,) + _args, _kwargs)
423 return val
424 def HasBackgroundColour(self, *_args, **_kwargs):
425 val = apply(gridc.wxGridCellAttr_HasBackgroundColour,(self,) + _args, _kwargs)
426 return val
427 def HasFont(self, *_args, **_kwargs):
428 val = apply(gridc.wxGridCellAttr_HasFont,(self,) + _args, _kwargs)
429 return val
430 def HasAlignment(self, *_args, **_kwargs):
431 val = apply(gridc.wxGridCellAttr_HasAlignment,(self,) + _args, _kwargs)
432 return val
433 def HasRenderer(self, *_args, **_kwargs):
434 val = apply(gridc.wxGridCellAttr_HasRenderer,(self,) + _args, _kwargs)
435 return val
436 def HasEditor(self, *_args, **_kwargs):
437 val = apply(gridc.wxGridCellAttr_HasEditor,(self,) + _args, _kwargs)
438 return val
439 def HasReadWriteMode(self, *_args, **_kwargs):
440 val = apply(gridc.wxGridCellAttr_HasReadWriteMode,(self,) + _args, _kwargs)
441 return val
442 def GetTextColour(self, *_args, **_kwargs):
443 val = apply(gridc.wxGridCellAttr_GetTextColour,(self,) + _args, _kwargs)
444 if val: val = wxColourPtr(val)
445 return val
446 def GetBackgroundColour(self, *_args, **_kwargs):
447 val = apply(gridc.wxGridCellAttr_GetBackgroundColour,(self,) + _args, _kwargs)
448 if val: val = wxColourPtr(val)
449 return val
450 def GetFont(self, *_args, **_kwargs):
451 val = apply(gridc.wxGridCellAttr_GetFont,(self,) + _args, _kwargs)
452 if val: val = wxFontPtr(val)
453 return val
454 def GetAlignment(self, *_args, **_kwargs):
455 val = apply(gridc.wxGridCellAttr_GetAlignment,(self,) + _args, _kwargs)
456 return val
457 def GetRenderer(self, *_args, **_kwargs):
458 val = apply(gridc.wxGridCellAttr_GetRenderer,(self,) + _args, _kwargs)
459 if val: val = wxGridCellRendererPtr(val)
460 return val
461 def GetEditor(self, *_args, **_kwargs):
462 val = apply(gridc.wxGridCellAttr_GetEditor,(self,) + _args, _kwargs)
463 if val: val = wxGridCellEditorPtr(val)
464 return val
465 def IsReadOnly(self, *_args, **_kwargs):
466 val = apply(gridc.wxGridCellAttr_IsReadOnly,(self,) + _args, _kwargs)
467 return val
468 def SetDefAttr(self, *_args, **_kwargs):
469 val = apply(gridc.wxGridCellAttr_SetDefAttr,(self,) + _args, _kwargs)
470 return val
471 def __repr__(self):
472 return "<C wxGridCellAttr instance at %s>" % (self.this,)
473 class wxGridCellAttr(wxGridCellAttrPtr):
474 def __init__(self,*_args,**_kwargs):
475 self.this = apply(gridc.new_wxGridCellAttr,_args,_kwargs)
476 self.thisown = 1
477
478
479
480
481 class wxGridCellAttrProviderPtr :
482 def __init__(self,this):
483 self.this = this
484 self.thisown = 0
485 def GetAttr(self, *_args, **_kwargs):
486 val = apply(gridc.wxGridCellAttrProvider_GetAttr,(self,) + _args, _kwargs)
487 if val: val = wxGridCellAttrPtr(val)
488 return val
489 def SetAttr(self, *_args, **_kwargs):
490 val = apply(gridc.wxGridCellAttrProvider_SetAttr,(self,) + _args, _kwargs)
491 return val
492 def SetRowAttr(self, *_args, **_kwargs):
493 val = apply(gridc.wxGridCellAttrProvider_SetRowAttr,(self,) + _args, _kwargs)
494 return val
495 def SetColAttr(self, *_args, **_kwargs):
496 val = apply(gridc.wxGridCellAttrProvider_SetColAttr,(self,) + _args, _kwargs)
497 return val
498 def UpdateAttrRows(self, *_args, **_kwargs):
499 val = apply(gridc.wxGridCellAttrProvider_UpdateAttrRows,(self,) + _args, _kwargs)
500 return val
501 def UpdateAttrCols(self, *_args, **_kwargs):
502 val = apply(gridc.wxGridCellAttrProvider_UpdateAttrCols,(self,) + _args, _kwargs)
503 return val
504 def __repr__(self):
505 return "<C wxGridCellAttrProvider instance at %s>" % (self.this,)
506 class wxGridCellAttrProvider(wxGridCellAttrProviderPtr):
507 def __init__(self,*_args,**_kwargs):
508 self.this = apply(gridc.new_wxGridCellAttrProvider,_args,_kwargs)
509 self.thisown = 1
510
511
512
513
514 class wxPyGridCellAttrProviderPtr(wxGridCellAttrProviderPtr):
515 def __init__(self,this):
516 self.this = this
517 self.thisown = 0
518 def _setSelf(self, *_args, **_kwargs):
519 val = apply(gridc.wxPyGridCellAttrProvider__setSelf,(self,) + _args, _kwargs)
520 return val
521 def base_GetAttr(self, *_args, **_kwargs):
522 val = apply(gridc.wxPyGridCellAttrProvider_base_GetAttr,(self,) + _args, _kwargs)
523 if val: val = wxGridCellAttrPtr(val)
524 return val
525 def base_SetAttr(self, *_args, **_kwargs):
526 val = apply(gridc.wxPyGridCellAttrProvider_base_SetAttr,(self,) + _args, _kwargs)
527 return val
528 def base_SetRowAttr(self, *_args, **_kwargs):
529 val = apply(gridc.wxPyGridCellAttrProvider_base_SetRowAttr,(self,) + _args, _kwargs)
530 return val
531 def base_SetColAttr(self, *_args, **_kwargs):
532 val = apply(gridc.wxPyGridCellAttrProvider_base_SetColAttr,(self,) + _args, _kwargs)
533 return val
534 def __repr__(self):
535 return "<C wxPyGridCellAttrProvider instance at %s>" % (self.this,)
536 class wxPyGridCellAttrProvider(wxPyGridCellAttrProviderPtr):
537 def __init__(self,*_args,**_kwargs):
538 self.this = apply(gridc.new_wxPyGridCellAttrProvider,_args,_kwargs)
539 self.thisown = 1
540 self._setSelf(self, wxPyGridCellAttrProvider)
541
542
543
544
545 class wxGridTableBasePtr(wxObjectPtr):
546 def __init__(self,this):
547 self.this = this
548 self.thisown = 0
549 def SetAttrProvider(self, *_args, **_kwargs):
550 val = apply(gridc.wxGridTableBase_SetAttrProvider,(self,) + _args, _kwargs)
551 return val
552 def GetAttrProvider(self, *_args, **_kwargs):
553 val = apply(gridc.wxGridTableBase_GetAttrProvider,(self,) + _args, _kwargs)
554 if val: val = wxGridCellAttrProviderPtr(val)
555 return val
556 def SetView(self, *_args, **_kwargs):
557 val = apply(gridc.wxGridTableBase_SetView,(self,) + _args, _kwargs)
558 return val
559 def GetView(self, *_args, **_kwargs):
560 val = apply(gridc.wxGridTableBase_GetView,(self,) + _args, _kwargs)
561 return val
562 def GetNumberRows(self, *_args, **_kwargs):
563 val = apply(gridc.wxGridTableBase_GetNumberRows,(self,) + _args, _kwargs)
564 return val
565 def GetNumberCols(self, *_args, **_kwargs):
566 val = apply(gridc.wxGridTableBase_GetNumberCols,(self,) + _args, _kwargs)
567 return val
568 def IsEmptyCell(self, *_args, **_kwargs):
569 val = apply(gridc.wxGridTableBase_IsEmptyCell,(self,) + _args, _kwargs)
570 return val
571 def GetValue(self, *_args, **_kwargs):
572 val = apply(gridc.wxGridTableBase_GetValue,(self,) + _args, _kwargs)
573 return val
574 def SetValue(self, *_args, **_kwargs):
575 val = apply(gridc.wxGridTableBase_SetValue,(self,) + _args, _kwargs)
576 return val
577 def GetTypeName(self, *_args, **_kwargs):
578 val = apply(gridc.wxGridTableBase_GetTypeName,(self,) + _args, _kwargs)
579 return val
580 def CanGetValueAs(self, *_args, **_kwargs):
581 val = apply(gridc.wxGridTableBase_CanGetValueAs,(self,) + _args, _kwargs)
582 return val
583 def CanSetValueAs(self, *_args, **_kwargs):
584 val = apply(gridc.wxGridTableBase_CanSetValueAs,(self,) + _args, _kwargs)
585 return val
586 def GetValueAsLong(self, *_args, **_kwargs):
587 val = apply(gridc.wxGridTableBase_GetValueAsLong,(self,) + _args, _kwargs)
588 return val
589 def GetValueAsDouble(self, *_args, **_kwargs):
590 val = apply(gridc.wxGridTableBase_GetValueAsDouble,(self,) + _args, _kwargs)
591 return val
592 def GetValueAsBool(self, *_args, **_kwargs):
593 val = apply(gridc.wxGridTableBase_GetValueAsBool,(self,) + _args, _kwargs)
594 return val
595 def SetValueAsLong(self, *_args, **_kwargs):
596 val = apply(gridc.wxGridTableBase_SetValueAsLong,(self,) + _args, _kwargs)
597 return val
598 def SetValueAsDouble(self, *_args, **_kwargs):
599 val = apply(gridc.wxGridTableBase_SetValueAsDouble,(self,) + _args, _kwargs)
600 return val
601 def SetValueAsBool(self, *_args, **_kwargs):
602 val = apply(gridc.wxGridTableBase_SetValueAsBool,(self,) + _args, _kwargs)
603 return val
604 def Clear(self, *_args, **_kwargs):
605 val = apply(gridc.wxGridTableBase_Clear,(self,) + _args, _kwargs)
606 return val
607 def InsertRows(self, *_args, **_kwargs):
608 val = apply(gridc.wxGridTableBase_InsertRows,(self,) + _args, _kwargs)
609 return val
610 def AppendRows(self, *_args, **_kwargs):
611 val = apply(gridc.wxGridTableBase_AppendRows,(self,) + _args, _kwargs)
612 return val
613 def DeleteRows(self, *_args, **_kwargs):
614 val = apply(gridc.wxGridTableBase_DeleteRows,(self,) + _args, _kwargs)
615 return val
616 def InsertCols(self, *_args, **_kwargs):
617 val = apply(gridc.wxGridTableBase_InsertCols,(self,) + _args, _kwargs)
618 return val
619 def AppendCols(self, *_args, **_kwargs):
620 val = apply(gridc.wxGridTableBase_AppendCols,(self,) + _args, _kwargs)
621 return val
622 def DeleteCols(self, *_args, **_kwargs):
623 val = apply(gridc.wxGridTableBase_DeleteCols,(self,) + _args, _kwargs)
624 return val
625 def GetRowLabelValue(self, *_args, **_kwargs):
626 val = apply(gridc.wxGridTableBase_GetRowLabelValue,(self,) + _args, _kwargs)
627 return val
628 def GetColLabelValue(self, *_args, **_kwargs):
629 val = apply(gridc.wxGridTableBase_GetColLabelValue,(self,) + _args, _kwargs)
630 return val
631 def SetRowLabelValue(self, *_args, **_kwargs):
632 val = apply(gridc.wxGridTableBase_SetRowLabelValue,(self,) + _args, _kwargs)
633 return val
634 def SetColLabelValue(self, *_args, **_kwargs):
635 val = apply(gridc.wxGridTableBase_SetColLabelValue,(self,) + _args, _kwargs)
636 return val
637 def CanHaveAttributes(self, *_args, **_kwargs):
638 val = apply(gridc.wxGridTableBase_CanHaveAttributes,(self,) + _args, _kwargs)
639 return val
640 def GetAttr(self, *_args, **_kwargs):
641 val = apply(gridc.wxGridTableBase_GetAttr,(self,) + _args, _kwargs)
642 if val: val = wxGridCellAttrPtr(val)
643 return val
644 def SetAttr(self, *_args, **_kwargs):
645 val = apply(gridc.wxGridTableBase_SetAttr,(self,) + _args, _kwargs)
646 return val
647 def SetRowAttr(self, *_args, **_kwargs):
648 val = apply(gridc.wxGridTableBase_SetRowAttr,(self,) + _args, _kwargs)
649 return val
650 def SetColAttr(self, *_args, **_kwargs):
651 val = apply(gridc.wxGridTableBase_SetColAttr,(self,) + _args, _kwargs)
652 return val
653 def __repr__(self):
654 return "<C wxGridTableBase instance at %s>" % (self.this,)
655 class wxGridTableBase(wxGridTableBasePtr):
656 def __init__(self,this):
657 self.this = this
658
659
660
661
662 class wxPyGridTableBasePtr(wxGridTableBasePtr):
663 def __init__(self,this):
664 self.this = this
665 self.thisown = 0
666 def _setSelf(self, *_args, **_kwargs):
667 val = apply(gridc.wxPyGridTableBase__setSelf,(self,) + _args, _kwargs)
668 return val
669 def Destroy(self, *_args, **_kwargs):
670 val = apply(gridc.wxPyGridTableBase_Destroy,(self,) + _args, _kwargs)
671 return val
672 def base_GetTypeName(self, *_args, **_kwargs):
673 val = apply(gridc.wxPyGridTableBase_base_GetTypeName,(self,) + _args, _kwargs)
674 return val
675 def base_CanGetValueAs(self, *_args, **_kwargs):
676 val = apply(gridc.wxPyGridTableBase_base_CanGetValueAs,(self,) + _args, _kwargs)
677 return val
678 def base_CanSetValueAs(self, *_args, **_kwargs):
679 val = apply(gridc.wxPyGridTableBase_base_CanSetValueAs,(self,) + _args, _kwargs)
680 return val
681 def base_Clear(self, *_args, **_kwargs):
682 val = apply(gridc.wxPyGridTableBase_base_Clear,(self,) + _args, _kwargs)
683 return val
684 def base_InsertRows(self, *_args, **_kwargs):
685 val = apply(gridc.wxPyGridTableBase_base_InsertRows,(self,) + _args, _kwargs)
686 return val
687 def base_AppendRows(self, *_args, **_kwargs):
688 val = apply(gridc.wxPyGridTableBase_base_AppendRows,(self,) + _args, _kwargs)
689 return val
690 def base_DeleteRows(self, *_args, **_kwargs):
691 val = apply(gridc.wxPyGridTableBase_base_DeleteRows,(self,) + _args, _kwargs)
692 return val
693 def base_InsertCols(self, *_args, **_kwargs):
694 val = apply(gridc.wxPyGridTableBase_base_InsertCols,(self,) + _args, _kwargs)
695 return val
696 def base_AppendCols(self, *_args, **_kwargs):
697 val = apply(gridc.wxPyGridTableBase_base_AppendCols,(self,) + _args, _kwargs)
698 return val
699 def base_DeleteCols(self, *_args, **_kwargs):
700 val = apply(gridc.wxPyGridTableBase_base_DeleteCols,(self,) + _args, _kwargs)
701 return val
702 def base_GetRowLabelValue(self, *_args, **_kwargs):
703 val = apply(gridc.wxPyGridTableBase_base_GetRowLabelValue,(self,) + _args, _kwargs)
704 return val
705 def base_GetColLabelValue(self, *_args, **_kwargs):
706 val = apply(gridc.wxPyGridTableBase_base_GetColLabelValue,(self,) + _args, _kwargs)
707 return val
708 def base_SetRowLabelValue(self, *_args, **_kwargs):
709 val = apply(gridc.wxPyGridTableBase_base_SetRowLabelValue,(self,) + _args, _kwargs)
710 return val
711 def base_SetColLabelValue(self, *_args, **_kwargs):
712 val = apply(gridc.wxPyGridTableBase_base_SetColLabelValue,(self,) + _args, _kwargs)
713 return val
714 def base_CanHaveAttributes(self, *_args, **_kwargs):
715 val = apply(gridc.wxPyGridTableBase_base_CanHaveAttributes,(self,) + _args, _kwargs)
716 return val
717 def base_GetAttr(self, *_args, **_kwargs):
718 val = apply(gridc.wxPyGridTableBase_base_GetAttr,(self,) + _args, _kwargs)
719 if val: val = wxGridCellAttrPtr(val)
720 return val
721 def base_SetAttr(self, *_args, **_kwargs):
722 val = apply(gridc.wxPyGridTableBase_base_SetAttr,(self,) + _args, _kwargs)
723 return val
724 def base_SetRowAttr(self, *_args, **_kwargs):
725 val = apply(gridc.wxPyGridTableBase_base_SetRowAttr,(self,) + _args, _kwargs)
726 return val
727 def base_SetColAttr(self, *_args, **_kwargs):
728 val = apply(gridc.wxPyGridTableBase_base_SetColAttr,(self,) + _args, _kwargs)
729 return val
730 def __repr__(self):
731 return "<C wxPyGridTableBase instance at %s>" % (self.this,)
732 class wxPyGridTableBase(wxPyGridTableBasePtr):
733 def __init__(self,*_args,**_kwargs):
734 self.this = apply(gridc.new_wxPyGridTableBase,_args,_kwargs)
735 self.thisown = 1
736 self._setSelf(self, wxPyGridTableBase)
737
738
739
740
741 class wxGridStringTablePtr(wxGridTableBasePtr):
742 def __init__(self,this):
743 self.this = this
744 self.thisown = 0
745 def __repr__(self):
746 return "<C wxGridStringTable instance at %s>" % (self.this,)
747 class wxGridStringTable(wxGridStringTablePtr):
748 def __init__(self,*_args,**_kwargs):
749 self.this = apply(gridc.new_wxGridStringTable,_args,_kwargs)
750 self.thisown = 1
751
752
753
754
755 class wxGridTableMessagePtr :
756 def __init__(self,this):
757 self.this = this
758 self.thisown = 0
759 def __del__(self,gridc=gridc):
760 if self.thisown == 1 :
761 gridc.delete_wxGridTableMessage(self)
762 def SetTableObject(self, *_args, **_kwargs):
763 val = apply(gridc.wxGridTableMessage_SetTableObject,(self,) + _args, _kwargs)
764 return val
765 def GetTableObject(self, *_args, **_kwargs):
766 val = apply(gridc.wxGridTableMessage_GetTableObject,(self,) + _args, _kwargs)
767 return val
768 def SetId(self, *_args, **_kwargs):
769 val = apply(gridc.wxGridTableMessage_SetId,(self,) + _args, _kwargs)
770 return val
771 def GetId(self, *_args, **_kwargs):
772 val = apply(gridc.wxGridTableMessage_GetId,(self,) + _args, _kwargs)
773 return val
774 def SetCommandInt(self, *_args, **_kwargs):
775 val = apply(gridc.wxGridTableMessage_SetCommandInt,(self,) + _args, _kwargs)
776 return val
777 def GetCommandInt(self, *_args, **_kwargs):
778 val = apply(gridc.wxGridTableMessage_GetCommandInt,(self,) + _args, _kwargs)
779 return val
780 def SetCommandInt2(self, *_args, **_kwargs):
781 val = apply(gridc.wxGridTableMessage_SetCommandInt2,(self,) + _args, _kwargs)
782 return val
783 def GetCommandInt2(self, *_args, **_kwargs):
784 val = apply(gridc.wxGridTableMessage_GetCommandInt2,(self,) + _args, _kwargs)
785 return val
786 def __repr__(self):
787 return "<C wxGridTableMessage instance at %s>" % (self.this,)
788 class wxGridTableMessage(wxGridTableMessagePtr):
789 def __init__(self,*_args,**_kwargs):
790 self.this = apply(gridc.new_wxGridTableMessage,_args,_kwargs)
791 self.thisown = 1
792
793
794
795
796 class wxGridCellCoordsPtr :
797 def __init__(self,this):
798 self.this = this
799 self.thisown = 0
800 def __del__(self,gridc=gridc):
801 if self.thisown == 1 :
802 gridc.delete_wxGridCellCoords(self)
803 def GetRow(self, *_args, **_kwargs):
804 val = apply(gridc.wxGridCellCoords_GetRow,(self,) + _args, _kwargs)
805 return val
806 def SetRow(self, *_args, **_kwargs):
807 val = apply(gridc.wxGridCellCoords_SetRow,(self,) + _args, _kwargs)
808 return val
809 def GetCol(self, *_args, **_kwargs):
810 val = apply(gridc.wxGridCellCoords_GetCol,(self,) + _args, _kwargs)
811 return val
812 def SetCol(self, *_args, **_kwargs):
813 val = apply(gridc.wxGridCellCoords_SetCol,(self,) + _args, _kwargs)
814 return val
815 def Set(self, *_args, **_kwargs):
816 val = apply(gridc.wxGridCellCoords_Set,(self,) + _args, _kwargs)
817 return val
818 def asTuple(self, *_args, **_kwargs):
819 val = apply(gridc.wxGridCellCoords_asTuple,(self,) + _args, _kwargs)
820 return val
821 def __cmp__(self, *_args, **_kwargs):
822 val = apply(gridc.wxGridCellCoords___cmp__,(self,) + _args, _kwargs)
823 return val
824 def __repr__(self):
825 return "<C wxGridCellCoords instance at %s>" % (self.this,)
826 def __str__(self): return str(self.asTuple())
827 def __repr__(self): return str(self.asTuple())
828 class wxGridCellCoords(wxGridCellCoordsPtr):
829 def __init__(self,*_args,**_kwargs):
830 self.this = apply(gridc.new_wxGridCellCoords,_args,_kwargs)
831 self.thisown = 1
832
833
834
835
836 class wxGridPtr(wxScrolledWindowPtr):
837 wxGridSelectCells = gridc.wxGrid_wxGridSelectCells
838 wxGridSelectRows = gridc.wxGrid_wxGridSelectRows
839 wxGridSelectColumns = gridc.wxGrid_wxGridSelectColumns
840 def __init__(self,this):
841 self.this = this
842 self.thisown = 0
843 def CreateGrid(self, *_args, **_kwargs):
844 val = apply(gridc.wxGrid_CreateGrid,(self,) + _args, _kwargs)
845 return val
846 def SetSelectionMode(self, *_args, **_kwargs):
847 val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs)
848 return val
849 def GetNumberRows(self, *_args, **_kwargs):
850 val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs)
851 return val
852 def GetNumberCols(self, *_args, **_kwargs):
853 val = apply(gridc.wxGrid_GetNumberCols,(self,) + _args, _kwargs)
854 return val
855 def ProcessTableMessage(self, *_args, **_kwargs):
856 val = apply(gridc.wxGrid_ProcessTableMessage,(self,) + _args, _kwargs)
857 return val
858 def GetTable(self, *_args, **_kwargs):
859 val = apply(gridc.wxGrid_GetTable,(self,) + _args, _kwargs)
860 return val
861 def SetTable(self, *_args, **_kwargs):
862 val = apply(gridc.wxGrid_SetTable,(self,) + _args, _kwargs)
863 return val
864 def ClearGrid(self, *_args, **_kwargs):
865 val = apply(gridc.wxGrid_ClearGrid,(self,) + _args, _kwargs)
866 return val
867 def InsertRows(self, *_args, **_kwargs):
868 val = apply(gridc.wxGrid_InsertRows,(self,) + _args, _kwargs)
869 return val
870 def AppendRows(self, *_args, **_kwargs):
871 val = apply(gridc.wxGrid_AppendRows,(self,) + _args, _kwargs)
872 return val
873 def DeleteRows(self, *_args, **_kwargs):
874 val = apply(gridc.wxGrid_DeleteRows,(self,) + _args, _kwargs)
875 return val
876 def InsertCols(self, *_args, **_kwargs):
877 val = apply(gridc.wxGrid_InsertCols,(self,) + _args, _kwargs)
878 return val
879 def AppendCols(self, *_args, **_kwargs):
880 val = apply(gridc.wxGrid_AppendCols,(self,) + _args, _kwargs)
881 return val
882 def DeleteCols(self, *_args, **_kwargs):
883 val = apply(gridc.wxGrid_DeleteCols,(self,) + _args, _kwargs)
884 return val
885 def DrawCellHighlight(self, *_args, **_kwargs):
886 val = apply(gridc.wxGrid_DrawCellHighlight,(self,) + _args, _kwargs)
887 return val
888 def DrawTextRectangle(self, *_args, **_kwargs):
889 val = apply(gridc.wxGrid_DrawTextRectangle,(self,) + _args, _kwargs)
890 return val
891 def StringToLines(self, *_args, **_kwargs):
892 val = apply(gridc.wxGrid_StringToLines,(self,) + _args, _kwargs)
893 return val
894 def GetTextBoxSize(self, *_args, **_kwargs):
895 val = apply(gridc.wxGrid_GetTextBoxSize,(self,) + _args, _kwargs)
896 return val
897 def BeginBatch(self, *_args, **_kwargs):
898 val = apply(gridc.wxGrid_BeginBatch,(self,) + _args, _kwargs)
899 return val
900 def EndBatch(self, *_args, **_kwargs):
901 val = apply(gridc.wxGrid_EndBatch,(self,) + _args, _kwargs)
902 return val
903 def GetBatchCount(self, *_args, **_kwargs):
904 val = apply(gridc.wxGrid_GetBatchCount,(self,) + _args, _kwargs)
905 return val
906 def ForceRefresh(self, *_args, **_kwargs):
907 val = apply(gridc.wxGrid_ForceRefresh,(self,) + _args, _kwargs)
908 return val
909 def IsEditable(self, *_args, **_kwargs):
910 val = apply(gridc.wxGrid_IsEditable,(self,) + _args, _kwargs)
911 return val
912 def EnableEditing(self, *_args, **_kwargs):
913 val = apply(gridc.wxGrid_EnableEditing,(self,) + _args, _kwargs)
914 return val
915 def EnableCellEditControl(self, *_args, **_kwargs):
916 val = apply(gridc.wxGrid_EnableCellEditControl,(self,) + _args, _kwargs)
917 return val
918 def DisableCellEditControl(self, *_args, **_kwargs):
919 val = apply(gridc.wxGrid_DisableCellEditControl,(self,) + _args, _kwargs)
920 return val
921 def CanEnableCellControl(self, *_args, **_kwargs):
922 val = apply(gridc.wxGrid_CanEnableCellControl,(self,) + _args, _kwargs)
923 return val
924 def IsCellEditControlEnabled(self, *_args, **_kwargs):
925 val = apply(gridc.wxGrid_IsCellEditControlEnabled,(self,) + _args, _kwargs)
926 return val
927 def IsCellEditControlShown(self, *_args, **_kwargs):
928 val = apply(gridc.wxGrid_IsCellEditControlShown,(self,) + _args, _kwargs)
929 return val
930 def IsCurrentCellReadOnly(self, *_args, **_kwargs):
931 val = apply(gridc.wxGrid_IsCurrentCellReadOnly,(self,) + _args, _kwargs)
932 return val
933 def ShowCellEditControl(self, *_args, **_kwargs):
934 val = apply(gridc.wxGrid_ShowCellEditControl,(self,) + _args, _kwargs)
935 return val
936 def HideCellEditControl(self, *_args, **_kwargs):
937 val = apply(gridc.wxGrid_HideCellEditControl,(self,) + _args, _kwargs)
938 return val
939 def SaveEditControlValue(self, *_args, **_kwargs):
940 val = apply(gridc.wxGrid_SaveEditControlValue,(self,) + _args, _kwargs)
941 return val
942 def XYToCell(self, *_args, **_kwargs):
943 val = apply(gridc.wxGrid_XYToCell,(self,) + _args, _kwargs)
944 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
945 return val
946 def YToRow(self, *_args, **_kwargs):
947 val = apply(gridc.wxGrid_YToRow,(self,) + _args, _kwargs)
948 return val
949 def XToCol(self, *_args, **_kwargs):
950 val = apply(gridc.wxGrid_XToCol,(self,) + _args, _kwargs)
951 return val
952 def YToEdgeOfRow(self, *_args, **_kwargs):
953 val = apply(gridc.wxGrid_YToEdgeOfRow,(self,) + _args, _kwargs)
954 return val
955 def XToEdgeOfCol(self, *_args, **_kwargs):
956 val = apply(gridc.wxGrid_XToEdgeOfCol,(self,) + _args, _kwargs)
957 return val
958 def CellToRect(self, *_args, **_kwargs):
959 val = apply(gridc.wxGrid_CellToRect,(self,) + _args, _kwargs)
960 if val: val = wxRectPtr(val) ; val.thisown = 1
961 return val
962 def GetGridCursorRow(self, *_args, **_kwargs):
963 val = apply(gridc.wxGrid_GetGridCursorRow,(self,) + _args, _kwargs)
964 return val
965 def GetGridCursorCol(self, *_args, **_kwargs):
966 val = apply(gridc.wxGrid_GetGridCursorCol,(self,) + _args, _kwargs)
967 return val
968 def IsVisible(self, *_args, **_kwargs):
969 val = apply(gridc.wxGrid_IsVisible,(self,) + _args, _kwargs)
970 return val
971 def MakeCellVisible(self, *_args, **_kwargs):
972 val = apply(gridc.wxGrid_MakeCellVisible,(self,) + _args, _kwargs)
973 return val
974 def SetGridCursor(self, *_args, **_kwargs):
975 val = apply(gridc.wxGrid_SetGridCursor,(self,) + _args, _kwargs)
976 return val
977 def MoveCursorUp(self, *_args, **_kwargs):
978 val = apply(gridc.wxGrid_MoveCursorUp,(self,) + _args, _kwargs)
979 return val
980 def MoveCursorDown(self, *_args, **_kwargs):
981 val = apply(gridc.wxGrid_MoveCursorDown,(self,) + _args, _kwargs)
982 return val
983 def MoveCursorLeft(self, *_args, **_kwargs):
984 val = apply(gridc.wxGrid_MoveCursorLeft,(self,) + _args, _kwargs)
985 return val
986 def MoveCursorRight(self, *_args, **_kwargs):
987 val = apply(gridc.wxGrid_MoveCursorRight,(self,) + _args, _kwargs)
988 return val
989 def MovePageDown(self, *_args, **_kwargs):
990 val = apply(gridc.wxGrid_MovePageDown,(self,) + _args, _kwargs)
991 return val
992 def MovePageUp(self, *_args, **_kwargs):
993 val = apply(gridc.wxGrid_MovePageUp,(self,) + _args, _kwargs)
994 return val
995 def MoveCursorUpBlock(self, *_args, **_kwargs):
996 val = apply(gridc.wxGrid_MoveCursorUpBlock,(self,) + _args, _kwargs)
997 return val
998 def MoveCursorDownBlock(self, *_args, **_kwargs):
999 val = apply(gridc.wxGrid_MoveCursorDownBlock,(self,) + _args, _kwargs)
1000 return val
1001 def MoveCursorLeftBlock(self, *_args, **_kwargs):
1002 val = apply(gridc.wxGrid_MoveCursorLeftBlock,(self,) + _args, _kwargs)
1003 return val
1004 def MoveCursorRightBlock(self, *_args, **_kwargs):
1005 val = apply(gridc.wxGrid_MoveCursorRightBlock,(self,) + _args, _kwargs)
1006 return val
1007 def GetDefaultRowLabelSize(self, *_args, **_kwargs):
1008 val = apply(gridc.wxGrid_GetDefaultRowLabelSize,(self,) + _args, _kwargs)
1009 return val
1010 def GetRowLabelSize(self, *_args, **_kwargs):
1011 val = apply(gridc.wxGrid_GetRowLabelSize,(self,) + _args, _kwargs)
1012 return val
1013 def GetDefaultColLabelSize(self, *_args, **_kwargs):
1014 val = apply(gridc.wxGrid_GetDefaultColLabelSize,(self,) + _args, _kwargs)
1015 return val
1016 def GetColLabelSize(self, *_args, **_kwargs):
1017 val = apply(gridc.wxGrid_GetColLabelSize,(self,) + _args, _kwargs)
1018 return val
1019 def GetLabelBackgroundColour(self, *_args, **_kwargs):
1020 val = apply(gridc.wxGrid_GetLabelBackgroundColour,(self,) + _args, _kwargs)
1021 if val: val = wxColourPtr(val) ; val.thisown = 1
1022 return val
1023 def GetLabelTextColour(self, *_args, **_kwargs):
1024 val = apply(gridc.wxGrid_GetLabelTextColour,(self,) + _args, _kwargs)
1025 if val: val = wxColourPtr(val) ; val.thisown = 1
1026 return val
1027 def GetLabelFont(self, *_args, **_kwargs):
1028 val = apply(gridc.wxGrid_GetLabelFont,(self,) + _args, _kwargs)
1029 if val: val = wxFontPtr(val) ; val.thisown = 1
1030 return val
1031 def GetRowLabelAlignment(self, *_args, **_kwargs):
1032 val = apply(gridc.wxGrid_GetRowLabelAlignment,(self,) + _args, _kwargs)
1033 return val
1034 def GetColLabelAlignment(self, *_args, **_kwargs):
1035 val = apply(gridc.wxGrid_GetColLabelAlignment,(self,) + _args, _kwargs)
1036 return val
1037 def GetRowLabelValue(self, *_args, **_kwargs):
1038 val = apply(gridc.wxGrid_GetRowLabelValue,(self,) + _args, _kwargs)
1039 return val
1040 def GetColLabelValue(self, *_args, **_kwargs):
1041 val = apply(gridc.wxGrid_GetColLabelValue,(self,) + _args, _kwargs)
1042 return val
1043 def GetGridLineColour(self, *_args, **_kwargs):
1044 val = apply(gridc.wxGrid_GetGridLineColour,(self,) + _args, _kwargs)
1045 if val: val = wxColourPtr(val) ; val.thisown = 1
1046 return val
1047 def GetCellHighlightColour(self, *_args, **_kwargs):
1048 val = apply(gridc.wxGrid_GetCellHighlightColour,(self,) + _args, _kwargs)
1049 if val: val = wxColourPtr(val) ; val.thisown = 1
1050 return val
1051 def GetCellHighlightPenWidth(self, *_args, **_kwargs):
1052 val = apply(gridc.wxGrid_GetCellHighlightPenWidth,(self,) + _args, _kwargs)
1053 return val
1054 def GetCellHighlightROPenWidth(self, *_args, **_kwargs):
1055 val = apply(gridc.wxGrid_GetCellHighlightROPenWidth,(self,) + _args, _kwargs)
1056 return val
1057 def SetRowLabelSize(self, *_args, **_kwargs):
1058 val = apply(gridc.wxGrid_SetRowLabelSize,(self,) + _args, _kwargs)
1059 return val
1060 def SetColLabelSize(self, *_args, **_kwargs):
1061 val = apply(gridc.wxGrid_SetColLabelSize,(self,) + _args, _kwargs)
1062 return val
1063 def SetLabelBackgroundColour(self, *_args, **_kwargs):
1064 val = apply(gridc.wxGrid_SetLabelBackgroundColour,(self,) + _args, _kwargs)
1065 return val
1066 def SetLabelTextColour(self, *_args, **_kwargs):
1067 val = apply(gridc.wxGrid_SetLabelTextColour,(self,) + _args, _kwargs)
1068 return val
1069 def SetLabelFont(self, *_args, **_kwargs):
1070 val = apply(gridc.wxGrid_SetLabelFont,(self,) + _args, _kwargs)
1071 return val
1072 def SetRowLabelAlignment(self, *_args, **_kwargs):
1073 val = apply(gridc.wxGrid_SetRowLabelAlignment,(self,) + _args, _kwargs)
1074 return val
1075 def SetColLabelAlignment(self, *_args, **_kwargs):
1076 val = apply(gridc.wxGrid_SetColLabelAlignment,(self,) + _args, _kwargs)
1077 return val
1078 def SetRowLabelValue(self, *_args, **_kwargs):
1079 val = apply(gridc.wxGrid_SetRowLabelValue,(self,) + _args, _kwargs)
1080 return val
1081 def SetColLabelValue(self, *_args, **_kwargs):
1082 val = apply(gridc.wxGrid_SetColLabelValue,(self,) + _args, _kwargs)
1083 return val
1084 def SetGridLineColour(self, *_args, **_kwargs):
1085 val = apply(gridc.wxGrid_SetGridLineColour,(self,) + _args, _kwargs)
1086 return val
1087 def SetCellHighlightColour(self, *_args, **_kwargs):
1088 val = apply(gridc.wxGrid_SetCellHighlightColour,(self,) + _args, _kwargs)
1089 return val
1090 def SetCellHighlightPenWidth(self, *_args, **_kwargs):
1091 val = apply(gridc.wxGrid_SetCellHighlightPenWidth,(self,) + _args, _kwargs)
1092 return val
1093 def SetCellHighlightROPenWidth(self, *_args, **_kwargs):
1094 val = apply(gridc.wxGrid_SetCellHighlightROPenWidth,(self,) + _args, _kwargs)
1095 return val
1096 def EnableDragRowSize(self, *_args, **_kwargs):
1097 val = apply(gridc.wxGrid_EnableDragRowSize,(self,) + _args, _kwargs)
1098 return val
1099 def DisableDragRowSize(self, *_args, **_kwargs):
1100 val = apply(gridc.wxGrid_DisableDragRowSize,(self,) + _args, _kwargs)
1101 return val
1102 def CanDragRowSize(self, *_args, **_kwargs):
1103 val = apply(gridc.wxGrid_CanDragRowSize,(self,) + _args, _kwargs)
1104 return val
1105 def EnableDragColSize(self, *_args, **_kwargs):
1106 val = apply(gridc.wxGrid_EnableDragColSize,(self,) + _args, _kwargs)
1107 return val
1108 def DisableDragColSize(self, *_args, **_kwargs):
1109 val = apply(gridc.wxGrid_DisableDragColSize,(self,) + _args, _kwargs)
1110 return val
1111 def CanDragColSize(self, *_args, **_kwargs):
1112 val = apply(gridc.wxGrid_CanDragColSize,(self,) + _args, _kwargs)
1113 return val
1114 def EnableDragGridSize(self, *_args, **_kwargs):
1115 val = apply(gridc.wxGrid_EnableDragGridSize,(self,) + _args, _kwargs)
1116 return val
1117 def DisableDragGridSize(self, *_args, **_kwargs):
1118 val = apply(gridc.wxGrid_DisableDragGridSize,(self,) + _args, _kwargs)
1119 return val
1120 def CanDragGridSize(self, *_args, **_kwargs):
1121 val = apply(gridc.wxGrid_CanDragGridSize,(self,) + _args, _kwargs)
1122 return val
1123 def SetRowAttr(self, *_args, **_kwargs):
1124 val = apply(gridc.wxGrid_SetRowAttr,(self,) + _args, _kwargs)
1125 return val
1126 def SetColAttr(self, *_args, **_kwargs):
1127 val = apply(gridc.wxGrid_SetColAttr,(self,) + _args, _kwargs)
1128 return val
1129 def SetColFormatBool(self, *_args, **_kwargs):
1130 val = apply(gridc.wxGrid_SetColFormatBool,(self,) + _args, _kwargs)
1131 return val
1132 def SetColFormatNumber(self, *_args, **_kwargs):
1133 val = apply(gridc.wxGrid_SetColFormatNumber,(self,) + _args, _kwargs)
1134 return val
1135 def SetColFormatFloat(self, *_args, **_kwargs):
1136 val = apply(gridc.wxGrid_SetColFormatFloat,(self,) + _args, _kwargs)
1137 return val
1138 def SetColFormatCustom(self, *_args, **_kwargs):
1139 val = apply(gridc.wxGrid_SetColFormatCustom,(self,) + _args, _kwargs)
1140 return val
1141 def EnableGridLines(self, *_args, **_kwargs):
1142 val = apply(gridc.wxGrid_EnableGridLines,(self,) + _args, _kwargs)
1143 return val
1144 def GridLinesEnabled(self, *_args, **_kwargs):
1145 val = apply(gridc.wxGrid_GridLinesEnabled,(self,) + _args, _kwargs)
1146 return val
1147 def GetDefaultRowSize(self, *_args, **_kwargs):
1148 val = apply(gridc.wxGrid_GetDefaultRowSize,(self,) + _args, _kwargs)
1149 return val
1150 def GetRowSize(self, *_args, **_kwargs):
1151 val = apply(gridc.wxGrid_GetRowSize,(self,) + _args, _kwargs)
1152 return val
1153 def GetDefaultColSize(self, *_args, **_kwargs):
1154 val = apply(gridc.wxGrid_GetDefaultColSize,(self,) + _args, _kwargs)
1155 return val
1156 def GetColSize(self, *_args, **_kwargs):
1157 val = apply(gridc.wxGrid_GetColSize,(self,) + _args, _kwargs)
1158 return val
1159 def GetDefaultCellBackgroundColour(self, *_args, **_kwargs):
1160 val = apply(gridc.wxGrid_GetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
1161 if val: val = wxColourPtr(val) ; val.thisown = 1
1162 return val
1163 def GetCellBackgroundColour(self, *_args, **_kwargs):
1164 val = apply(gridc.wxGrid_GetCellBackgroundColour,(self,) + _args, _kwargs)
1165 if val: val = wxColourPtr(val) ; val.thisown = 1
1166 return val
1167 def GetDefaultCellTextColour(self, *_args, **_kwargs):
1168 val = apply(gridc.wxGrid_GetDefaultCellTextColour,(self,) + _args, _kwargs)
1169 if val: val = wxColourPtr(val) ; val.thisown = 1
1170 return val
1171 def GetCellTextColour(self, *_args, **_kwargs):
1172 val = apply(gridc.wxGrid_GetCellTextColour,(self,) + _args, _kwargs)
1173 if val: val = wxColourPtr(val) ; val.thisown = 1
1174 return val
1175 def GetDefaultCellFont(self, *_args, **_kwargs):
1176 val = apply(gridc.wxGrid_GetDefaultCellFont,(self,) + _args, _kwargs)
1177 if val: val = wxFontPtr(val) ; val.thisown = 1
1178 return val
1179 def GetCellFont(self, *_args, **_kwargs):
1180 val = apply(gridc.wxGrid_GetCellFont,(self,) + _args, _kwargs)
1181 if val: val = wxFontPtr(val) ; val.thisown = 1
1182 return val
1183 def GetDefaultCellAlignment(self, *_args, **_kwargs):
1184 val = apply(gridc.wxGrid_GetDefaultCellAlignment,(self,) + _args, _kwargs)
1185 return val
1186 def GetCellAlignment(self, *_args, **_kwargs):
1187 val = apply(gridc.wxGrid_GetCellAlignment,(self,) + _args, _kwargs)
1188 return val
1189 def SetDefaultRowSize(self, *_args, **_kwargs):
1190 val = apply(gridc.wxGrid_SetDefaultRowSize,(self,) + _args, _kwargs)
1191 return val
1192 def SetRowSize(self, *_args, **_kwargs):
1193 val = apply(gridc.wxGrid_SetRowSize,(self,) + _args, _kwargs)
1194 return val
1195 def SetDefaultColSize(self, *_args, **_kwargs):
1196 val = apply(gridc.wxGrid_SetDefaultColSize,(self,) + _args, _kwargs)
1197 return val
1198 def SetColSize(self, *_args, **_kwargs):
1199 val = apply(gridc.wxGrid_SetColSize,(self,) + _args, _kwargs)
1200 return val
1201 def AutoSizeColumn(self, *_args, **_kwargs):
1202 val = apply(gridc.wxGrid_AutoSizeColumn,(self,) + _args, _kwargs)
1203 return val
1204 def AutoSizeRow(self, *_args, **_kwargs):
1205 val = apply(gridc.wxGrid_AutoSizeRow,(self,) + _args, _kwargs)
1206 return val
1207 def AutoSizeColumns(self, *_args, **_kwargs):
1208 val = apply(gridc.wxGrid_AutoSizeColumns,(self,) + _args, _kwargs)
1209 return val
1210 def AutoSizeRows(self, *_args, **_kwargs):
1211 val = apply(gridc.wxGrid_AutoSizeRows,(self,) + _args, _kwargs)
1212 return val
1213 def AutoSize(self, *_args, **_kwargs):
1214 val = apply(gridc.wxGrid_AutoSize,(self,) + _args, _kwargs)
1215 return val
1216 def SetColMinimalWidth(self, *_args, **_kwargs):
1217 val = apply(gridc.wxGrid_SetColMinimalWidth,(self,) + _args, _kwargs)
1218 return val
1219 def SetRowMinimalHeight(self, *_args, **_kwargs):
1220 val = apply(gridc.wxGrid_SetRowMinimalHeight,(self,) + _args, _kwargs)
1221 return val
1222 def SetDefaultCellBackgroundColour(self, *_args, **_kwargs):
1223 val = apply(gridc.wxGrid_SetDefaultCellBackgroundColour,(self,) + _args, _kwargs)
1224 return val
1225 def SetCellBackgroundColour(self, *_args, **_kwargs):
1226 val = apply(gridc.wxGrid_SetCellBackgroundColour,(self,) + _args, _kwargs)
1227 return val
1228 def SetDefaultCellTextColour(self, *_args, **_kwargs):
1229 val = apply(gridc.wxGrid_SetDefaultCellTextColour,(self,) + _args, _kwargs)
1230 return val
1231 def SetCellTextColour(self, *_args, **_kwargs):
1232 val = apply(gridc.wxGrid_SetCellTextColour,(self,) + _args, _kwargs)
1233 return val
1234 def SetDefaultCellFont(self, *_args, **_kwargs):
1235 val = apply(gridc.wxGrid_SetDefaultCellFont,(self,) + _args, _kwargs)
1236 return val
1237 def SetCellFont(self, *_args, **_kwargs):
1238 val = apply(gridc.wxGrid_SetCellFont,(self,) + _args, _kwargs)
1239 return val
1240 def SetDefaultCellAlignment(self, *_args, **_kwargs):
1241 val = apply(gridc.wxGrid_SetDefaultCellAlignment,(self,) + _args, _kwargs)
1242 return val
1243 def SetCellAlignment(self, *_args, **_kwargs):
1244 val = apply(gridc.wxGrid_SetCellAlignment,(self,) + _args, _kwargs)
1245 return val
1246 def SetDefaultRenderer(self, *_args, **_kwargs):
1247 val = apply(gridc.wxGrid_SetDefaultRenderer,(self,) + _args, _kwargs)
1248 return val
1249 def SetCellRenderer(self, *_args, **_kwargs):
1250 val = apply(gridc.wxGrid_SetCellRenderer,(self,) + _args, _kwargs)
1251 return val
1252 def GetDefaultRenderer(self, *_args, **_kwargs):
1253 val = apply(gridc.wxGrid_GetDefaultRenderer,(self,) + _args, _kwargs)
1254 if val: val = wxGridCellRendererPtr(val)
1255 return val
1256 def GetCellRenderer(self, *_args, **_kwargs):
1257 val = apply(gridc.wxGrid_GetCellRenderer,(self,) + _args, _kwargs)
1258 if val: val = wxGridCellRendererPtr(val)
1259 return val
1260 def SetDefaultEditor(self, *_args, **_kwargs):
1261 val = apply(gridc.wxGrid_SetDefaultEditor,(self,) + _args, _kwargs)
1262 return val
1263 def SetCellEditor(self, *_args, **_kwargs):
1264 val = apply(gridc.wxGrid_SetCellEditor,(self,) + _args, _kwargs)
1265 return val
1266 def GetDefaultEditor(self, *_args, **_kwargs):
1267 val = apply(gridc.wxGrid_GetDefaultEditor,(self,) + _args, _kwargs)
1268 if val: val = wxGridCellEditorPtr(val)
1269 return val
1270 def GetCellEditor(self, *_args, **_kwargs):
1271 val = apply(gridc.wxGrid_GetCellEditor,(self,) + _args, _kwargs)
1272 if val: val = wxGridCellEditorPtr(val)
1273 return val
1274 def GetCellValue(self, *_args, **_kwargs):
1275 val = apply(gridc.wxGrid_GetCellValue,(self,) + _args, _kwargs)
1276 return val
1277 def SetCellValue(self, *_args, **_kwargs):
1278 val = apply(gridc.wxGrid_SetCellValue,(self,) + _args, _kwargs)
1279 return val
1280 def IsReadOnly(self, *_args, **_kwargs):
1281 val = apply(gridc.wxGrid_IsReadOnly,(self,) + _args, _kwargs)
1282 return val
1283 def SetReadOnly(self, *_args, **_kwargs):
1284 val = apply(gridc.wxGrid_SetReadOnly,(self,) + _args, _kwargs)
1285 return val
1286 def SelectRow(self, *_args, **_kwargs):
1287 val = apply(gridc.wxGrid_SelectRow,(self,) + _args, _kwargs)
1288 return val
1289 def SelectCol(self, *_args, **_kwargs):
1290 val = apply(gridc.wxGrid_SelectCol,(self,) + _args, _kwargs)
1291 return val
1292 def SelectBlock(self, *_args, **_kwargs):
1293 val = apply(gridc.wxGrid_SelectBlock,(self,) + _args, _kwargs)
1294 return val
1295 def SelectAll(self, *_args, **_kwargs):
1296 val = apply(gridc.wxGrid_SelectAll,(self,) + _args, _kwargs)
1297 return val
1298 def IsSelection(self, *_args, **_kwargs):
1299 val = apply(gridc.wxGrid_IsSelection,(self,) + _args, _kwargs)
1300 return val
1301 def ClearSelection(self, *_args, **_kwargs):
1302 val = apply(gridc.wxGrid_ClearSelection,(self,) + _args, _kwargs)
1303 return val
1304 def IsInSelection(self, *_args, **_kwargs):
1305 val = apply(gridc.wxGrid_IsInSelection,(self,) + _args, _kwargs)
1306 return val
1307 def BlockToDeviceRect(self, *_args, **_kwargs):
1308 val = apply(gridc.wxGrid_BlockToDeviceRect,(self,) + _args, _kwargs)
1309 if val: val = wxRectPtr(val) ; val.thisown = 1
1310 return val
1311 def GetSelectionBackground(self, *_args, **_kwargs):
1312 val = apply(gridc.wxGrid_GetSelectionBackground,(self,) + _args, _kwargs)
1313 if val: val = wxColourPtr(val) ; val.thisown = 1
1314 return val
1315 def GetSelectionForeground(self, *_args, **_kwargs):
1316 val = apply(gridc.wxGrid_GetSelectionForeground,(self,) + _args, _kwargs)
1317 if val: val = wxColourPtr(val) ; val.thisown = 1
1318 return val
1319 def SetSelectionBackground(self, *_args, **_kwargs):
1320 val = apply(gridc.wxGrid_SetSelectionBackground,(self,) + _args, _kwargs)
1321 return val
1322 def SetSelectionForeground(self, *_args, **_kwargs):
1323 val = apply(gridc.wxGrid_SetSelectionForeground,(self,) + _args, _kwargs)
1324 return val
1325 def RegisterDataType(self, *_args, **_kwargs):
1326 val = apply(gridc.wxGrid_RegisterDataType,(self,) + _args, _kwargs)
1327 return val
1328 def GetDefaultEditorForCell(self, *_args, **_kwargs):
1329 val = apply(gridc.wxGrid_GetDefaultEditorForCell,(self,) + _args, _kwargs)
1330 if val: val = wxGridCellEditorPtr(val)
1331 return val
1332 def GetDefaultRendererForCell(self, *_args, **_kwargs):
1333 val = apply(gridc.wxGrid_GetDefaultRendererForCell,(self,) + _args, _kwargs)
1334 if val: val = wxGridCellRendererPtr(val)
1335 return val
1336 def GetDefaultEditorForType(self, *_args, **_kwargs):
1337 val = apply(gridc.wxGrid_GetDefaultEditorForType,(self,) + _args, _kwargs)
1338 if val: val = wxGridCellEditorPtr(val)
1339 return val
1340 def GetDefaultRendererForType(self, *_args, **_kwargs):
1341 val = apply(gridc.wxGrid_GetDefaultRendererForType,(self,) + _args, _kwargs)
1342 if val: val = wxGridCellRendererPtr(val)
1343 return val
1344 def SetMargins(self, *_args, **_kwargs):
1345 val = apply(gridc.wxGrid_SetMargins,(self,) + _args, _kwargs)
1346 return val
1347 def GetGridWindow(self, *_args, **_kwargs):
1348 val = apply(gridc.wxGrid_GetGridWindow,(self,) + _args, _kwargs)
1349 return val
1350 def GetGridRowLabelWindow(self, *_args, **_kwargs):
1351 val = apply(gridc.wxGrid_GetGridRowLabelWindow,(self,) + _args, _kwargs)
1352 return val
1353 def GetGridColLabelWindow(self, *_args, **_kwargs):
1354 val = apply(gridc.wxGrid_GetGridColLabelWindow,(self,) + _args, _kwargs)
1355 return val
1356 def GetGridCornerLabelWindow(self, *_args, **_kwargs):
1357 val = apply(gridc.wxGrid_GetGridCornerLabelWindow,(self,) + _args, _kwargs)
1358 return val
1359 def __repr__(self):
1360 return "<C wxGrid instance at %s>" % (self.this,)
1361 class wxGrid(wxGridPtr):
1362 def __init__(self,*_args,**_kwargs):
1363 self.this = apply(gridc.new_wxGrid,_args,_kwargs)
1364 self.thisown = 1
1365
1366
1367
1368
1369 class wxGridEventPtr(wxNotifyEventPtr):
1370 def __init__(self,this):
1371 self.this = this
1372 self.thisown = 0
1373 def GetRow(self, *_args, **_kwargs):
1374 val = apply(gridc.wxGridEvent_GetRow,(self,) + _args, _kwargs)
1375 return val
1376 def GetCol(self, *_args, **_kwargs):
1377 val = apply(gridc.wxGridEvent_GetCol,(self,) + _args, _kwargs)
1378 return val
1379 def GetPosition(self, *_args, **_kwargs):
1380 val = apply(gridc.wxGridEvent_GetPosition,(self,) + _args, _kwargs)
1381 if val: val = wxPointPtr(val) ; val.thisown = 1
1382 return val
1383 def Selecting(self, *_args, **_kwargs):
1384 val = apply(gridc.wxGridEvent_Selecting,(self,) + _args, _kwargs)
1385 return val
1386 def ControlDown(self, *_args, **_kwargs):
1387 val = apply(gridc.wxGridEvent_ControlDown,(self,) + _args, _kwargs)
1388 return val
1389 def MetaDown(self, *_args, **_kwargs):
1390 val = apply(gridc.wxGridEvent_MetaDown,(self,) + _args, _kwargs)
1391 return val
1392 def ShiftDown(self, *_args, **_kwargs):
1393 val = apply(gridc.wxGridEvent_ShiftDown,(self,) + _args, _kwargs)
1394 return val
1395 def AltDown(self, *_args, **_kwargs):
1396 val = apply(gridc.wxGridEvent_AltDown,(self,) + _args, _kwargs)
1397 return val
1398 def __repr__(self):
1399 return "<C wxGridEvent instance at %s>" % (self.this,)
1400 class wxGridEvent(wxGridEventPtr):
1401 def __init__(self,*_args,**_kwargs):
1402 self.this = apply(gridc.new_wxGridEvent,_args,_kwargs)
1403 self.thisown = 1
1404
1405
1406
1407
1408 class wxGridSizeEventPtr(wxNotifyEventPtr):
1409 def __init__(self,this):
1410 self.this = this
1411 self.thisown = 0
1412 def GetRowOrCol(self, *_args, **_kwargs):
1413 val = apply(gridc.wxGridSizeEvent_GetRowOrCol,(self,) + _args, _kwargs)
1414 return val
1415 def GetPosition(self, *_args, **_kwargs):
1416 val = apply(gridc.wxGridSizeEvent_GetPosition,(self,) + _args, _kwargs)
1417 if val: val = wxPointPtr(val) ; val.thisown = 1
1418 return val
1419 def ControlDown(self, *_args, **_kwargs):
1420 val = apply(gridc.wxGridSizeEvent_ControlDown,(self,) + _args, _kwargs)
1421 return val
1422 def MetaDown(self, *_args, **_kwargs):
1423 val = apply(gridc.wxGridSizeEvent_MetaDown,(self,) + _args, _kwargs)
1424 return val
1425 def ShiftDown(self, *_args, **_kwargs):
1426 val = apply(gridc.wxGridSizeEvent_ShiftDown,(self,) + _args, _kwargs)
1427 return val
1428 def AltDown(self, *_args, **_kwargs):
1429 val = apply(gridc.wxGridSizeEvent_AltDown,(self,) + _args, _kwargs)
1430 return val
1431 def __repr__(self):
1432 return "<C wxGridSizeEvent instance at %s>" % (self.this,)
1433 class wxGridSizeEvent(wxGridSizeEventPtr):
1434 def __init__(self,*_args,**_kwargs):
1435 self.this = apply(gridc.new_wxGridSizeEvent,_args,_kwargs)
1436 self.thisown = 1
1437
1438
1439
1440
1441 class wxGridRangeSelectEventPtr(wxNotifyEventPtr):
1442 def __init__(self,this):
1443 self.this = this
1444 self.thisown = 0
1445 def GetTopLeftCoords(self, *_args, **_kwargs):
1446 val = apply(gridc.wxGridRangeSelectEvent_GetTopLeftCoords,(self,) + _args, _kwargs)
1447 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
1448 return val
1449 def GetBottomRightCoords(self, *_args, **_kwargs):
1450 val = apply(gridc.wxGridRangeSelectEvent_GetBottomRightCoords,(self,) + _args, _kwargs)
1451 if val: val = wxGridCellCoordsPtr(val) ; val.thisown = 1
1452 return val
1453 def GetTopRow(self, *_args, **_kwargs):
1454 val = apply(gridc.wxGridRangeSelectEvent_GetTopRow,(self,) + _args, _kwargs)
1455 return val
1456 def GetBottomRow(self, *_args, **_kwargs):
1457 val = apply(gridc.wxGridRangeSelectEvent_GetBottomRow,(self,) + _args, _kwargs)
1458 return val
1459 def GetLeftCol(self, *_args, **_kwargs):
1460 val = apply(gridc.wxGridRangeSelectEvent_GetLeftCol,(self,) + _args, _kwargs)
1461 return val
1462 def GetRightCol(self, *_args, **_kwargs):
1463 val = apply(gridc.wxGridRangeSelectEvent_GetRightCol,(self,) + _args, _kwargs)
1464 return val
1465 def Selecting(self, *_args, **_kwargs):
1466 val = apply(gridc.wxGridRangeSelectEvent_Selecting,(self,) + _args, _kwargs)
1467 return val
1468 def ControlDown(self, *_args, **_kwargs):
1469 val = apply(gridc.wxGridRangeSelectEvent_ControlDown,(self,) + _args, _kwargs)
1470 return val
1471 def MetaDown(self, *_args, **_kwargs):
1472 val = apply(gridc.wxGridRangeSelectEvent_MetaDown,(self,) + _args, _kwargs)
1473 return val
1474 def ShiftDown(self, *_args, **_kwargs):
1475 val = apply(gridc.wxGridRangeSelectEvent_ShiftDown,(self,) + _args, _kwargs)
1476 return val
1477 def AltDown(self, *_args, **_kwargs):
1478 val = apply(gridc.wxGridRangeSelectEvent_AltDown,(self,) + _args, _kwargs)
1479 return val
1480 def __repr__(self):
1481 return "<C wxGridRangeSelectEvent instance at %s>" % (self.this,)
1482 class wxGridRangeSelectEvent(wxGridRangeSelectEventPtr):
1483 def __init__(self,*_args,**_kwargs):
1484 self.this = apply(gridc.new_wxGridRangeSelectEvent,_args,_kwargs)
1485 self.thisown = 1
1486
1487
1488
1489
1490 class wxGridEditorCreatedEventPtr(wxCommandEventPtr):
1491 def __init__(self,this):
1492 self.this = this
1493 self.thisown = 0
1494 def GetRow(self, *_args, **_kwargs):
1495 val = apply(gridc.wxGridEditorCreatedEvent_GetRow,(self,) + _args, _kwargs)
1496 return val
1497 def GetCol(self, *_args, **_kwargs):
1498 val = apply(gridc.wxGridEditorCreatedEvent_GetCol,(self,) + _args, _kwargs)
1499 return val
1500 def GetControl(self, *_args, **_kwargs):
1501 val = apply(gridc.wxGridEditorCreatedEvent_GetControl,(self,) + _args, _kwargs)
1502 return val
1503 def SetRow(self, *_args, **_kwargs):
1504 val = apply(gridc.wxGridEditorCreatedEvent_SetRow,(self,) + _args, _kwargs)
1505 return val
1506 def SetCol(self, *_args, **_kwargs):
1507 val = apply(gridc.wxGridEditorCreatedEvent_SetCol,(self,) + _args, _kwargs)
1508 return val
1509 def SetControl(self, *_args, **_kwargs):
1510 val = apply(gridc.wxGridEditorCreatedEvent_SetControl,(self,) + _args, _kwargs)
1511 return val
1512 def __repr__(self):
1513 return "<C wxGridEditorCreatedEvent instance at %s>" % (self.this,)
1514 class wxGridEditorCreatedEvent(wxGridEditorCreatedEventPtr):
1515 def __init__(self,*_args,**_kwargs):
1516 self.this = apply(gridc.new_wxGridEditorCreatedEvent,_args,_kwargs)
1517 self.thisown = 1
1518
1519
1520
1521
1522
1523
1524 #-------------- FUNCTION WRAPPERS ------------------
1525
1526
1527
1528 #-------------- VARIABLE WRAPPERS ------------------
1529
1530 wxGRID_VALUE_STRING = gridc.wxGRID_VALUE_STRING
1531 wxGRID_VALUE_BOOL = gridc.wxGRID_VALUE_BOOL
1532 wxGRID_VALUE_NUMBER = gridc.wxGRID_VALUE_NUMBER
1533 wxGRID_VALUE_FLOAT = gridc.wxGRID_VALUE_FLOAT
1534 wxGRID_VALUE_CHOICE = gridc.wxGRID_VALUE_CHOICE
1535 wxGRID_VALUE_TEXT = gridc.wxGRID_VALUE_TEXT
1536 wxGRID_VALUE_LONG = gridc.wxGRID_VALUE_LONG
1537 cvar = gridc.cvar
1538 wxGridNoCellCoords = wxGridCellCoordsPtr(gridc.cvar.wxGridNoCellCoords)
1539 wxGridNoCellRect = wxRectPtr(gridc.cvar.wxGridNoCellRect)
1540 wxGRIDTABLE_REQUEST_VIEW_GET_VALUES = gridc.wxGRIDTABLE_REQUEST_VIEW_GET_VALUES
1541 wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES = gridc.wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES
1542 wxGRIDTABLE_NOTIFY_ROWS_INSERTED = gridc.wxGRIDTABLE_NOTIFY_ROWS_INSERTED
1543 wxGRIDTABLE_NOTIFY_ROWS_APPENDED = gridc.wxGRIDTABLE_NOTIFY_ROWS_APPENDED
1544 wxGRIDTABLE_NOTIFY_ROWS_DELETED = gridc.wxGRIDTABLE_NOTIFY_ROWS_DELETED
1545 wxGRIDTABLE_NOTIFY_COLS_INSERTED = gridc.wxGRIDTABLE_NOTIFY_COLS_INSERTED
1546 wxGRIDTABLE_NOTIFY_COLS_APPENDED = gridc.wxGRIDTABLE_NOTIFY_COLS_APPENDED
1547 wxGRIDTABLE_NOTIFY_COLS_DELETED = gridc.wxGRIDTABLE_NOTIFY_COLS_DELETED
1548 wxEVT_GRID_CELL_LEFT_CLICK = gridc.wxEVT_GRID_CELL_LEFT_CLICK
1549 wxEVT_GRID_CELL_RIGHT_CLICK = gridc.wxEVT_GRID_CELL_RIGHT_CLICK
1550 wxEVT_GRID_CELL_LEFT_DCLICK = gridc.wxEVT_GRID_CELL_LEFT_DCLICK
1551 wxEVT_GRID_CELL_RIGHT_DCLICK = gridc.wxEVT_GRID_CELL_RIGHT_DCLICK
1552 wxEVT_GRID_LABEL_LEFT_CLICK = gridc.wxEVT_GRID_LABEL_LEFT_CLICK
1553 wxEVT_GRID_LABEL_RIGHT_CLICK = gridc.wxEVT_GRID_LABEL_RIGHT_CLICK
1554 wxEVT_GRID_LABEL_LEFT_DCLICK = gridc.wxEVT_GRID_LABEL_LEFT_DCLICK
1555 wxEVT_GRID_LABEL_RIGHT_DCLICK = gridc.wxEVT_GRID_LABEL_RIGHT_DCLICK
1556 wxEVT_GRID_ROW_SIZE = gridc.wxEVT_GRID_ROW_SIZE
1557 wxEVT_GRID_COL_SIZE = gridc.wxEVT_GRID_COL_SIZE
1558 wxEVT_GRID_RANGE_SELECT = gridc.wxEVT_GRID_RANGE_SELECT
1559 wxEVT_GRID_CELL_CHANGE = gridc.wxEVT_GRID_CELL_CHANGE
1560 wxEVT_GRID_SELECT_CELL = gridc.wxEVT_GRID_SELECT_CELL
1561 wxEVT_GRID_EDITOR_SHOWN = gridc.wxEVT_GRID_EDITOR_SHOWN
1562 wxEVT_GRID_EDITOR_HIDDEN = gridc.wxEVT_GRID_EDITOR_HIDDEN
1563 wxEVT_GRID_EDITOR_CREATED = gridc.wxEVT_GRID_EDITOR_CREATED
1564
1565
1566 #-------------- USER INCLUDE -----------------------
1567
1568
1569
1570 # Stuff these names into the wx namespace so wxPyConstructObject can find them
1571
1572 wx.wxGridEventPtr = wxGridEventPtr
1573 wx.wxGridSizeEventPtr = wxGridSizeEventPtr
1574 wx.wxGridRangeSelectEventPtr = wxGridRangeSelectEventPtr
1575 wx.wxGridEditorCreatedEventPtr = wxGridEditorCreatedEventPtr
1576 wx.wxGridCellRendererPtr = wxGridCellRendererPtr
1577 wx.wxPyGridCellRendererPtr = wxPyGridCellRendererPtr
1578 wx.wxGridCellEditorPtr = wxGridCellEditorPtr
1579 wx.wxPyGridCellEditorPtr = wxPyGridCellEditorPtr
1580 wx.wxGridCellAttrPtr = wxGridCellAttrPtr
1581 wx.wxGridCellAttrProviderPtr = wxGridCellAttrProviderPtr
1582 wx.wxPyGridCellAttrProviderPtr = wxPyGridCellAttrProviderPtr
1583 wx.wxGridTableBasePtr = wxGridTableBasePtr
1584 wx.wxPyGridTableBasePtr = wxPyGridTableBasePtr
1585 wx.wxGridTableMessagePtr = wxGridTableMessagePtr
1586 wx.wxGridCellCoordsPtr = wxGridCellCoordsPtr
1587 wx.wxGridPtr = wxGridPtr