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