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