]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/controls2.py
Added missing files to filelist.txt and regenerated makefiles.
[wxWidgets.git] / utils / wxPython / src / gtk / controls2.py
1 # This file was created automatically by SWIG.
2 import controls2c
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from events import *
11
12 from controls import *
13 import wx
14 class wxListItemPtr :
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def __del__(self, controls2c=controls2c):
19 if self.thisown == 1 :
20 controls2c.delete_wxListItem(self.this)
21 def __setattr__(self,name,value):
22 if name == "m_mask" :
23 controls2c.wxListItem_m_mask_set(self.this,value)
24 return
25 if name == "m_itemId" :
26 controls2c.wxListItem_m_itemId_set(self.this,value)
27 return
28 if name == "m_col" :
29 controls2c.wxListItem_m_col_set(self.this,value)
30 return
31 if name == "m_state" :
32 controls2c.wxListItem_m_state_set(self.this,value)
33 return
34 if name == "m_stateMask" :
35 controls2c.wxListItem_m_stateMask_set(self.this,value)
36 return
37 if name == "m_text" :
38 controls2c.wxListItem_m_text_set(self.this,value)
39 return
40 if name == "m_image" :
41 controls2c.wxListItem_m_image_set(self.this,value)
42 return
43 if name == "m_data" :
44 controls2c.wxListItem_m_data_set(self.this,value)
45 return
46 if name == "m_format" :
47 controls2c.wxListItem_m_format_set(self.this,value)
48 return
49 if name == "m_width" :
50 controls2c.wxListItem_m_width_set(self.this,value)
51 return
52 self.__dict__[name] = value
53 def __getattr__(self,name):
54 if name == "m_mask" :
55 return controls2c.wxListItem_m_mask_get(self.this)
56 if name == "m_itemId" :
57 return controls2c.wxListItem_m_itemId_get(self.this)
58 if name == "m_col" :
59 return controls2c.wxListItem_m_col_get(self.this)
60 if name == "m_state" :
61 return controls2c.wxListItem_m_state_get(self.this)
62 if name == "m_stateMask" :
63 return controls2c.wxListItem_m_stateMask_get(self.this)
64 if name == "m_text" :
65 return controls2c.wxListItem_m_text_get(self.this)
66 if name == "m_image" :
67 return controls2c.wxListItem_m_image_get(self.this)
68 if name == "m_data" :
69 return controls2c.wxListItem_m_data_get(self.this)
70 if name == "m_format" :
71 return controls2c.wxListItem_m_format_get(self.this)
72 if name == "m_width" :
73 return controls2c.wxListItem_m_width_get(self.this)
74 raise AttributeError,name
75 def __repr__(self):
76 return "<C wxListItem instance>"
77 class wxListItem(wxListItemPtr):
78 def __init__(self) :
79 self.this = controls2c.new_wxListItem()
80 self.thisown = 1
81
82
83
84
85 class wxListEventPtr(wxCommandEventPtr):
86 def __init__(self,this):
87 self.this = this
88 self.thisown = 0
89 def __setattr__(self,name,value):
90 if name == "m_code" :
91 controls2c.wxListEvent_m_code_set(self.this,value)
92 return
93 if name == "m_itemIndex" :
94 controls2c.wxListEvent_m_itemIndex_set(self.this,value)
95 return
96 if name == "m_oldItemIndex" :
97 controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
98 return
99 if name == "m_col" :
100 controls2c.wxListEvent_m_col_set(self.this,value)
101 return
102 if name == "m_cancelled" :
103 controls2c.wxListEvent_m_cancelled_set(self.this,value)
104 return
105 if name == "m_pointDrag" :
106 controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
107 return
108 if name == "m_item" :
109 controls2c.wxListEvent_m_item_set(self.this,value.this)
110 return
111 self.__dict__[name] = value
112 def __getattr__(self,name):
113 if name == "m_code" :
114 return controls2c.wxListEvent_m_code_get(self.this)
115 if name == "m_itemIndex" :
116 return controls2c.wxListEvent_m_itemIndex_get(self.this)
117 if name == "m_oldItemIndex" :
118 return controls2c.wxListEvent_m_oldItemIndex_get(self.this)
119 if name == "m_col" :
120 return controls2c.wxListEvent_m_col_get(self.this)
121 if name == "m_cancelled" :
122 return controls2c.wxListEvent_m_cancelled_get(self.this)
123 if name == "m_pointDrag" :
124 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self.this))
125 if name == "m_item" :
126 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self.this))
127 raise AttributeError,name
128 def __repr__(self):
129 return "<C wxListEvent instance>"
130 class wxListEvent(wxListEventPtr):
131 def __init__(self,this):
132 self.this = this
133
134
135
136
137 class wxListCtrlPtr(wxControlPtr):
138 def __init__(self,this):
139 self.this = this
140 self.thisown = 0
141 def Arrange(self,*args):
142 val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
143 return val
144 def DeleteItem(self,arg0):
145 val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
146 return val
147 def DeleteAllItems(self):
148 val = controls2c.wxListCtrl_DeleteAllItems(self.this)
149 return val
150 def DeleteColumn(self,arg0):
151 val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
152 return val
153 def DeleteAllColumns(self):
154 val = controls2c.wxListCtrl_DeleteAllColumns(self.this)
155 return val
156 def ClearAll(self):
157 val = controls2c.wxListCtrl_ClearAll(self.this)
158 return val
159 def EditLabel(self,arg0):
160 val = controls2c.wxListCtrl_EditLabel(self.this,arg0)
161 return val
162 def EnsureVisible(self,arg0):
163 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
164 return val
165 def FindItem(self,arg0,arg1,*args):
166 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
167 return val
168 def FindItemData(self,arg0,arg1):
169 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
170 return val
171 def FindItemAtPos(self,arg0,arg1,arg2):
172 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
173 return val
174 def GetColumn(self,arg0,arg1):
175 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
176 return val
177 def GetColumnWidth(self,arg0):
178 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
179 return val
180 def GetCountPerPage(self):
181 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
182 return val
183 def GetImageList(self,arg0):
184 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
185 val = wxImageListPtr(val)
186 return val
187 def GetItemData(self,arg0):
188 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
189 return val
190 def GetItem(self,arg0):
191 val = controls2c.wxListCtrl_GetItem(self.this,arg0)
192 val = wxListItemPtr(val)
193 val.thisown = 1
194 return val
195 def GetItemPosition(self,arg0):
196 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
197 val = wxPointPtr(val)
198 val.thisown = 1
199 return val
200 def GetItemRect(self,arg0,*args):
201 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
202 val = wxRectPtr(val)
203 val.thisown = 1
204 return val
205 def GetItemState(self,arg0,arg1):
206 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
207 return val
208 def GetItemCount(self):
209 val = controls2c.wxListCtrl_GetItemCount(self.this)
210 return val
211 def GetItemSpacing(self,arg0):
212 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
213 return val
214 def GetItemText(self,arg0):
215 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
216 return val
217 def GetNextItem(self,arg0,*args):
218 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
219 return val
220 def GetSelectedItemCount(self):
221 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
222 return val
223 def GetTopItem(self):
224 val = controls2c.wxListCtrl_GetTopItem(self.this)
225 return val
226 def HitTest(self,arg0):
227 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
228 return val
229 def InsertColumnWith(self,arg0,arg1):
230 val = controls2c.wxListCtrl_InsertColumnWith(self.this,arg0,arg1.this)
231 return val
232 def InsertColumn(self,arg0,arg1,*args):
233 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
234 return val
235 def InsertItem(self,arg0):
236 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
237 return val
238 def InsertStringItem(self,arg0,arg1):
239 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
240 return val
241 def InsertImageItem(self,arg0,arg1):
242 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
243 return val
244 def InsertImageStringItem(self,arg0,arg1,arg2):
245 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
246 return val
247 def ScrollList(self,arg0,arg1):
248 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
249 return val
250 def SetBackgroundColour(self,arg0):
251 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
252 return val
253 def SetColumn(self,arg0,arg1):
254 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
255 return val
256 def SetColumnWidth(self,arg0,arg1):
257 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
258 return val
259 def SetImageList(self,arg0,arg1):
260 val = controls2c.wxListCtrl_SetImageList(self.this,arg0.this,arg1)
261 return val
262 def SetItem(self,arg0):
263 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
264 return val
265 def SetStringItem(self,arg0,arg1,arg2,*args):
266 val = apply(controls2c.wxListCtrl_SetStringItem,(self.this,arg0,arg1,arg2,)+args)
267 return val
268 def SetItemData(self,arg0,arg1):
269 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
270 return val
271 def SetItemImage(self,arg0,arg1,arg2):
272 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
273 return val
274 def SetItemPosition(self,arg0,arg1):
275 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
276 return val
277 def SetItemState(self,arg0,arg1,arg2):
278 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
279 return val
280 def SetItemText(self,arg0,arg1):
281 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
282 return val
283 def SetSingleStyle(self,arg0,*args):
284 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
285 return val
286 def SetWindowStyleFlag(self,arg0):
287 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
288 return val
289 def __repr__(self):
290 return "<C wxListCtrl instance>"
291 class wxListCtrl(wxListCtrlPtr):
292 def __init__(self,arg0,arg1,*args) :
293 argl = map(None,args)
294 try: argl[0] = argl[0].this
295 except: pass
296 try: argl[1] = argl[1].this
297 except: pass
298 args = tuple(argl)
299 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
300 self.thisown = 1
301 wx._StdWindowCallbacks(self)
302
303
304
305
306 class wxTreeItemIdPtr :
307 def __init__(self,this):
308 self.this = this
309 self.thisown = 0
310 def __del__(self, controls2c=controls2c):
311 if self.thisown == 1 :
312 controls2c.delete_wxTreeItemId(self.this)
313 def IsOk(self):
314 val = controls2c.wxTreeItemId_IsOk(self.this)
315 return val
316 def __repr__(self):
317 return "<C wxTreeItemId instance>"
318 class wxTreeItemId(wxTreeItemIdPtr):
319 def __init__(self) :
320 self.this = controls2c.new_wxTreeItemId()
321 self.thisown = 1
322
323
324
325
326 class wxTreeItemDataPtr :
327 def __init__(self,this):
328 self.this = this
329 self.thisown = 0
330 def GetData(self):
331 val = controls2c.wxTreeItemData_GetData(self.this)
332 return val
333 def SetData(self,arg0):
334 val = controls2c.wxTreeItemData_SetData(self.this,arg0)
335 return val
336 def GetId(self):
337 val = controls2c.wxTreeItemData_GetId(self.this)
338 val = wxTreeItemIdPtr(val)
339 return val
340 def SetId(self,arg0):
341 val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
342 return val
343 def __repr__(self):
344 return "<C wxTreeItemData instance>"
345 class wxTreeItemData(wxTreeItemDataPtr):
346 def __init__(self,*args) :
347 self.this = apply(controls2c.new_wxTreeItemData,()+args)
348 self.thisown = 1
349
350
351
352
353 class wxTreeEventPtr(wxNotifyEventPtr):
354 def __init__(self,this):
355 self.this = this
356 self.thisown = 0
357 def GetItem(self):
358 val = controls2c.wxTreeEvent_GetItem(self.this)
359 val = wxTreeItemIdPtr(val)
360 val.thisown = 1
361 return val
362 def GetOldItem(self):
363 val = controls2c.wxTreeEvent_GetOldItem(self.this)
364 val = wxTreeItemIdPtr(val)
365 val.thisown = 1
366 return val
367 def GetPoint(self):
368 val = controls2c.wxTreeEvent_GetPoint(self.this)
369 val = wxPointPtr(val)
370 val.thisown = 1
371 return val
372 def GetCode(self):
373 val = controls2c.wxTreeEvent_GetCode(self.this)
374 return val
375 def GetLabel(self):
376 val = controls2c.wxTreeEvent_GetLabel(self.this)
377 return val
378 def __repr__(self):
379 return "<C wxTreeEvent instance>"
380 class wxTreeEvent(wxTreeEventPtr):
381 def __init__(self,this):
382 self.this = this
383
384
385
386
387 class wxTreeCtrlPtr(wxControlPtr):
388 def __init__(self,this):
389 self.this = this
390 self.thisown = 0
391 def GetCount(self):
392 val = controls2c.wxTreeCtrl_GetCount(self.this)
393 return val
394 def GetIndent(self):
395 val = controls2c.wxTreeCtrl_GetIndent(self.this)
396 return val
397 def SetIndent(self,arg0):
398 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
399 return val
400 def GetImageList(self):
401 val = controls2c.wxTreeCtrl_GetImageList(self.this)
402 val = wxImageListPtr(val)
403 return val
404 def GetStateImageList(self):
405 val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
406 val = wxImageListPtr(val)
407 return val
408 def SetImageList(self,arg0):
409 val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this)
410 return val
411 def SetStateImageList(self,arg0):
412 val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this)
413 return val
414 def GetItemText(self,arg0):
415 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
416 return val
417 def GetItemImage(self,arg0):
418 val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
419 return val
420 def GetItemSelectedImage(self,arg0):
421 val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
422 return val
423 def SetItemText(self,arg0,arg1):
424 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
425 return val
426 def SetItemImage(self,arg0,arg1):
427 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
428 return val
429 def SetItemSelectedImage(self,arg0,arg1):
430 val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
431 return val
432 def SetItemHasChildren(self,arg0,*args):
433 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
434 return val
435 def GetItemData(self,arg0):
436 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
437 val = wxTreeItemDataPtr(val)
438 return val
439 def SetItemData(self,arg0,arg1):
440 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
441 return val
442 def GetPyData(self,arg0):
443 val = controls2c.wxTreeCtrl_GetPyData(self.this,arg0.this)
444 return val
445 def SetPyData(self,arg0,arg1):
446 val = controls2c.wxTreeCtrl_SetPyData(self.this,arg0.this,arg1)
447 return val
448 def IsVisible(self,arg0):
449 val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
450 return val
451 def ItemHasChildren(self,arg0):
452 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
453 return val
454 def IsExpanded(self,arg0):
455 val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
456 return val
457 def IsSelected(self,arg0):
458 val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
459 return val
460 def GetRootItem(self):
461 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
462 val = wxTreeItemIdPtr(val)
463 val.thisown = 1
464 return val
465 def GetSelection(self):
466 val = controls2c.wxTreeCtrl_GetSelection(self.this)
467 val = wxTreeItemIdPtr(val)
468 val.thisown = 1
469 return val
470 def GetParent(self,arg0):
471 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
472 val = wxTreeItemIdPtr(val)
473 val.thisown = 1
474 return val
475 def GetChildrenCount(self,arg0,*args):
476 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self.this,arg0.this,)+args)
477 return val
478 def GetFirstChild(self,arg0,arg1):
479 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
480 return val
481 def GetNextChild(self,arg0,arg1):
482 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
483 return val
484 def GetNextSibling(self,arg0):
485 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
486 val = wxTreeItemIdPtr(val)
487 val.thisown = 1
488 return val
489 def GetPrevSibling(self,arg0):
490 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
491 val = wxTreeItemIdPtr(val)
492 val.thisown = 1
493 return val
494 def GetFirstVisibleItem(self):
495 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
496 val = wxTreeItemIdPtr(val)
497 val.thisown = 1
498 return val
499 def GetNextVisible(self,arg0):
500 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
501 val = wxTreeItemIdPtr(val)
502 val.thisown = 1
503 return val
504 def GetPrevVisible(self,arg0):
505 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
506 val = wxTreeItemIdPtr(val)
507 val.thisown = 1
508 return val
509 def AddRoot(self,arg0,*args):
510 argl = map(None,args)
511 try: argl[2] = argl[2].this
512 except: pass
513 args = tuple(argl)
514 val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
515 val = wxTreeItemIdPtr(val)
516 val.thisown = 1
517 return val
518 def PrependItem(self,arg0,arg1,*args):
519 argl = map(None,args)
520 try: argl[2] = argl[2].this
521 except: pass
522 args = tuple(argl)
523 val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
524 val = wxTreeItemIdPtr(val)
525 val.thisown = 1
526 return val
527 def InsertItem(self,arg0,arg1,arg2,*args):
528 argl = map(None,args)
529 try: argl[2] = argl[2].this
530 except: pass
531 args = tuple(argl)
532 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
533 val = wxTreeItemIdPtr(val)
534 val.thisown = 1
535 return val
536 def AppendItem(self,arg0,arg1,*args):
537 argl = map(None,args)
538 try: argl[2] = argl[2].this
539 except: pass
540 args = tuple(argl)
541 val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
542 val = wxTreeItemIdPtr(val)
543 val.thisown = 1
544 return val
545 def Delete(self,arg0):
546 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
547 return val
548 def DeleteChildren(self,arg0):
549 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
550 return val
551 def DeleteAllItems(self):
552 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
553 return val
554 def Expand(self,arg0):
555 val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
556 return val
557 def Collapse(self,arg0):
558 val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
559 return val
560 def CollapseAndReset(self,arg0):
561 val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
562 return val
563 def Toggle(self,arg0):
564 val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
565 return val
566 def Unselect(self):
567 val = controls2c.wxTreeCtrl_Unselect(self.this)
568 return val
569 def UnselectAll(self):
570 val = controls2c.wxTreeCtrl_UnselectAll(self.this)
571 return val
572 def SelectItem(self,arg0):
573 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
574 return val
575 def EnsureVisible(self,arg0):
576 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
577 return val
578 def ScrollTo(self,arg0):
579 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
580 return val
581 def EditLabel(self,arg0):
582 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
583 return val
584 def SetItemBold(self,arg0,*args):
585 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
586 return val
587 def IsBold(self,arg0):
588 val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
589 return val
590 def HitTest(self,arg0):
591 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
592 val = wxTreeItemIdPtr(val)
593 val.thisown = 1
594 return val
595 def __repr__(self):
596 return "<C wxTreeCtrl instance>"
597
598 # Redefine a couple methods that SWIG gets a bit confused on...
599 def GetFirstChild(self,arg0,arg1):
600 val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
601 val1 = wxTreeItemIdPtr(val1)
602 val1.thisown = 1
603 return (val1,val2)
604 def GetNextChild(self,arg0,arg1):
605 val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
606 val1 = wxTreeItemIdPtr(val1)
607 val1.thisown = 1
608 return (val1,val2)
609
610 class wxTreeCtrl(wxTreeCtrlPtr):
611 def __init__(self,arg0,*args) :
612 argl = map(None,args)
613 try: argl[1] = argl[1].this
614 except: pass
615 try: argl[2] = argl[2].this
616 except: pass
617 args = tuple(argl)
618 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
619 self.thisown = 1
620 wx._StdWindowCallbacks(self)
621
622
623
624
625
626
627 #-------------- FUNCTION WRAPPERS ------------------
628
629
630
631 #-------------- VARIABLE WRAPPERS ------------------
632
633 wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
634 wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
635 wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
636 wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
637 wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
638 wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
639 wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
640 wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
641 wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
642 wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
643 wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
644 wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
645 wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
646 wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
647 wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
648 wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
649 wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
650 wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
651 wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
652 wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
653 wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
654 wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
655 wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
656 wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
657 wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
658 wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
659 wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
660 wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
661 wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
662 wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
663 wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
664 wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
665 wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
666 wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
667 wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
668 wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
669 wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
670 wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
671 wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
672 wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
673 wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
674 wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
675 wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT