]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/controls2.py
Corrected link error for missing wxRegTipProvider::GetTip by giving it
[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):
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 EnsureVisible(self,arg0):
160 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
161 return val
162 def FindItem(self,arg0,arg1,*args):
163 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
164 return val
165 def FindItemData(self,arg0,arg1):
166 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
167 return val
168 def FindItemAtPos(self,arg0,arg1,arg2):
169 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
170 return val
171 def GetColumn(self,arg0,arg1):
172 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
173 return val
174 def GetColumnWidth(self,arg0):
175 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
176 return val
177 def GetCountPerPage(self):
178 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
179 return val
180 def GetImageList(self,arg0):
181 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
182 val = wxImageListPtr(val)
183 return val
184 def GetItemData(self,arg0):
185 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
186 return val
187 def GetItem(self,arg0):
188 val = controls2c.wxListCtrl_GetItem(self.this,arg0)
189 val = wxListItemPtr(val)
190 val.thisown = 1
191 return val
192 def GetItemPosition(self,arg0):
193 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
194 val = wxPointPtr(val)
195 val.thisown = 1
196 return val
197 def GetItemRect(self,arg0,*args):
198 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
199 val = wxRectPtr(val)
200 val.thisown = 1
201 return val
202 def GetItemState(self,arg0,arg1):
203 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
204 return val
205 def GetItemCount(self):
206 val = controls2c.wxListCtrl_GetItemCount(self.this)
207 return val
208 def GetItemSpacing(self,arg0):
209 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
210 return val
211 def GetItemText(self,arg0):
212 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
213 return val
214 def GetNextItem(self,arg0,*args):
215 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
216 return val
217 def GetSelectedItemCount(self):
218 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
219 return val
220 def GetTopItem(self):
221 val = controls2c.wxListCtrl_GetTopItem(self.this)
222 return val
223 def HitTest(self,arg0):
224 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
225 return val
226 def InsertColumnWith(self,arg0,arg1):
227 val = controls2c.wxListCtrl_InsertColumnWith(self.this,arg0,arg1.this)
228 return val
229 def InsertColumn(self,arg0,arg1,*args):
230 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
231 return val
232 def InsertItem(self,arg0):
233 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
234 return val
235 def InsertStringItem(self,arg0,arg1):
236 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
237 return val
238 def InsertImageItem(self,arg0,arg1):
239 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
240 return val
241 def InsertImageStringItem(self,arg0,arg1,arg2):
242 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
243 return val
244 def ScrollList(self,arg0,arg1):
245 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
246 return val
247 def SetBackgroundColour(self,arg0):
248 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
249 return val
250 def SetColumn(self,arg0,arg1):
251 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
252 return val
253 def SetColumnWidth(self,arg0,arg1):
254 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
255 return val
256 def SetImageList(self,arg0,arg1):
257 val = controls2c.wxListCtrl_SetImageList(self.this,arg0.this,arg1)
258 return val
259 def SetItem(self,arg0):
260 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
261 return val
262 def SetStringItem(self,arg0,arg1,arg2,*args):
263 val = apply(controls2c.wxListCtrl_SetStringItem,(self.this,arg0,arg1,arg2,)+args)
264 return val
265 def SetItemData(self,arg0,arg1):
266 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
267 return val
268 def SetItemImage(self,arg0,arg1,arg2):
269 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
270 return val
271 def SetItemPosition(self,arg0,arg1):
272 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
273 return val
274 def SetItemState(self,arg0,arg1,arg2):
275 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
276 return val
277 def SetItemText(self,arg0,arg1):
278 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
279 return val
280 def SetSingleStyle(self,arg0,*args):
281 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
282 return val
283 def SetWindowStyleFlag(self,arg0):
284 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
285 return val
286 def __repr__(self):
287 return "<C wxListCtrl instance>"
288 class wxListCtrl(wxListCtrlPtr):
289 def __init__(self,arg0,arg1,*args) :
290 argl = map(None,args)
291 try: argl[0] = argl[0].this
292 except: pass
293 try: argl[1] = argl[1].this
294 except: pass
295 args = tuple(argl)
296 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
297 self.thisown = 1
298 wx._StdWindowCallbacks(self)
299
300
301
302
303 class wxTreeItemIdPtr :
304 def __init__(self,this):
305 self.this = this
306 self.thisown = 0
307 def __del__(self):
308 if self.thisown == 1 :
309 controls2c.delete_wxTreeItemId(self.this)
310 def IsOk(self):
311 val = controls2c.wxTreeItemId_IsOk(self.this)
312 return val
313 def __repr__(self):
314 return "<C wxTreeItemId instance>"
315 class wxTreeItemId(wxTreeItemIdPtr):
316 def __init__(self) :
317 self.this = controls2c.new_wxTreeItemId()
318 self.thisown = 1
319
320
321
322
323 class wxTreeItemDataPtr :
324 def __init__(self,this):
325 self.this = this
326 self.thisown = 0
327 def GetData(self):
328 val = controls2c.wxTreeItemData_GetData(self.this)
329 return val
330 def SetData(self,arg0):
331 val = controls2c.wxTreeItemData_SetData(self.this,arg0)
332 return val
333 def GetId(self):
334 val = controls2c.wxTreeItemData_GetId(self.this)
335 val = wxTreeItemIdPtr(val)
336 return val
337 def SetId(self,arg0):
338 val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
339 return val
340 def __repr__(self):
341 return "<C wxTreeItemData instance>"
342 class wxTreeItemData(wxTreeItemDataPtr):
343 def __init__(self,*args) :
344 self.this = apply(controls2c.new_wxTreeItemData,()+args)
345 self.thisown = 1
346
347
348
349
350 class wxTreeEventPtr(wxCommandEventPtr):
351 def __init__(self,this):
352 self.this = this
353 self.thisown = 0
354 def GetItem(self):
355 val = controls2c.wxTreeEvent_GetItem(self.this)
356 val = wxTreeItemIdPtr(val)
357 val.thisown = 1
358 return val
359 def GetOldItem(self):
360 val = controls2c.wxTreeEvent_GetOldItem(self.this)
361 val = wxTreeItemIdPtr(val)
362 val.thisown = 1
363 return val
364 def GetPoint(self):
365 val = controls2c.wxTreeEvent_GetPoint(self.this)
366 val = wxPointPtr(val)
367 val.thisown = 1
368 return val
369 def GetCode(self):
370 val = controls2c.wxTreeEvent_GetCode(self.this)
371 return val
372 def Veto(self):
373 val = controls2c.wxTreeEvent_Veto(self.this)
374 return val
375 def __repr__(self):
376 return "<C wxTreeEvent instance>"
377 class wxTreeEvent(wxTreeEventPtr):
378 def __init__(self,this):
379 self.this = this
380
381
382
383
384 class wxTreeCtrlPtr(wxControlPtr):
385 def __init__(self,this):
386 self.this = this
387 self.thisown = 0
388 def GetCount(self):
389 val = controls2c.wxTreeCtrl_GetCount(self.this)
390 return val
391 def GetIndent(self):
392 val = controls2c.wxTreeCtrl_GetIndent(self.this)
393 return val
394 def SetIndent(self,arg0):
395 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
396 return val
397 def GetImageList(self):
398 val = controls2c.wxTreeCtrl_GetImageList(self.this)
399 val = wxImageListPtr(val)
400 return val
401 def GetStateImageList(self):
402 val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
403 val = wxImageListPtr(val)
404 return val
405 def SetImageList(self,arg0):
406 val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this)
407 return val
408 def SetStateImageList(self,arg0):
409 val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this)
410 return val
411 def GetItemText(self,arg0):
412 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
413 return val
414 def GetItemImage(self,arg0):
415 val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
416 return val
417 def GetItemSelectedImage(self,arg0):
418 val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
419 return val
420 def SetItemText(self,arg0,arg1):
421 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
422 return val
423 def SetItemImage(self,arg0,arg1):
424 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
425 return val
426 def SetItemSelectedImage(self,arg0,arg1):
427 val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
428 return val
429 def SetItemHasChildren(self,arg0,*args):
430 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
431 return val
432 def GetItemData(self,arg0):
433 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
434 val = wxTreeItemDataPtr(val)
435 return val
436 def SetItemData(self,arg0,arg1):
437 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
438 return val
439 def GetPyData(self,arg0):
440 val = controls2c.wxTreeCtrl_GetPyData(self.this,arg0.this)
441 return val
442 def SetPyData(self,arg0,arg1):
443 val = controls2c.wxTreeCtrl_SetPyData(self.this,arg0.this,arg1)
444 return val
445 def IsVisible(self,arg0):
446 val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
447 return val
448 def ItemHasChildren(self,arg0):
449 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
450 return val
451 def IsExpanded(self,arg0):
452 val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
453 return val
454 def IsSelected(self,arg0):
455 val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
456 return val
457 def GetRootItem(self):
458 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
459 val = wxTreeItemIdPtr(val)
460 val.thisown = 1
461 return val
462 def GetSelection(self):
463 val = controls2c.wxTreeCtrl_GetSelection(self.this)
464 val = wxTreeItemIdPtr(val)
465 val.thisown = 1
466 return val
467 def GetParent(self,arg0):
468 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
469 val = wxTreeItemIdPtr(val)
470 val.thisown = 1
471 return val
472 def GetChildrenCount(self,arg0,*args):
473 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self.this,arg0.this,)+args)
474 return val
475 def GetFirstChild(self,arg0,arg1):
476 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
477 return val
478 def GetNextChild(self,arg0,arg1):
479 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
480 return val
481 def GetNextSibling(self,arg0):
482 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
483 val = wxTreeItemIdPtr(val)
484 val.thisown = 1
485 return val
486 def GetPrevSibling(self,arg0):
487 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
488 val = wxTreeItemIdPtr(val)
489 val.thisown = 1
490 return val
491 def GetFirstVisibleItem(self):
492 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
493 val = wxTreeItemIdPtr(val)
494 val.thisown = 1
495 return val
496 def GetNextVisible(self,arg0):
497 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
498 val = wxTreeItemIdPtr(val)
499 val.thisown = 1
500 return val
501 def GetPrevVisible(self,arg0):
502 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
503 val = wxTreeItemIdPtr(val)
504 val.thisown = 1
505 return val
506 def AddRoot(self,arg0,*args):
507 argl = map(None,args)
508 try: argl[2] = argl[2].this
509 except: pass
510 args = tuple(argl)
511 val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
512 val = wxTreeItemIdPtr(val)
513 val.thisown = 1
514 return val
515 def PrependItem(self,arg0,arg1,*args):
516 argl = map(None,args)
517 try: argl[2] = argl[2].this
518 except: pass
519 args = tuple(argl)
520 val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
521 val = wxTreeItemIdPtr(val)
522 val.thisown = 1
523 return val
524 def InsertItem(self,arg0,arg1,arg2,*args):
525 argl = map(None,args)
526 try: argl[2] = argl[2].this
527 except: pass
528 args = tuple(argl)
529 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
530 val = wxTreeItemIdPtr(val)
531 val.thisown = 1
532 return val
533 def AppendItem(self,arg0,arg1,*args):
534 argl = map(None,args)
535 try: argl[2] = argl[2].this
536 except: pass
537 args = tuple(argl)
538 val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
539 val = wxTreeItemIdPtr(val)
540 val.thisown = 1
541 return val
542 def Delete(self,arg0):
543 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
544 return val
545 def DeleteChildren(self,arg0):
546 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
547 return val
548 def DeleteAllItems(self):
549 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
550 return val
551 def Expand(self,arg0):
552 val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
553 return val
554 def Collapse(self,arg0):
555 val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
556 return val
557 def CollapseAndReset(self,arg0):
558 val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
559 return val
560 def Toggle(self,arg0):
561 val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
562 return val
563 def Unselect(self):
564 val = controls2c.wxTreeCtrl_Unselect(self.this)
565 return val
566 def SelectItem(self,arg0):
567 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
568 return val
569 def EnsureVisible(self,arg0):
570 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
571 return val
572 def ScrollTo(self,arg0):
573 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
574 return val
575 def EditLabel(self,arg0):
576 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
577 val = wxTextCtrlPtr(val)
578 return val
579 def GetEditControl(self):
580 val = controls2c.wxTreeCtrl_GetEditControl(self.this)
581 val = wxTextCtrlPtr(val)
582 return val
583 def EndEditLabel(self,arg0,*args):
584 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
585 return val
586 def SetItemBold(self,arg0,*args):
587 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
588 return val
589 def IsBold(self,arg0):
590 val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
591 return val
592 def HitTest(self,arg0):
593 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
594 val = wxTreeItemIdPtr(val)
595 val.thisown = 1
596 return val
597 def __repr__(self):
598 return "<C wxTreeCtrl instance>"
599
600 # Redefine a couple methods that SWIG gets a bit confused on...
601 def GetFirstChild(self,arg0,arg1):
602 val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
603 val1 = wxTreeItemIdPtr(val1)
604 val1.thisown = 1
605 return (val1,val2)
606 def GetNextChild(self,arg0,arg1):
607 val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
608 val1 = wxTreeItemIdPtr(val1)
609 val1.thisown = 1
610 return (val1,val2)
611
612 class wxTreeCtrl(wxTreeCtrlPtr):
613 def __init__(self,arg0,*args) :
614 argl = map(None,args)
615 try: argl[1] = argl[1].this
616 except: pass
617 try: argl[2] = argl[2].this
618 except: pass
619 args = tuple(argl)
620 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
621 self.thisown = 1
622 wx._StdWindowCallbacks(self)
623
624
625
626
627
628
629 #-------------- FUNCTION WRAPPERS ------------------
630
631
632
633 #-------------- VARIABLE WRAPPERS ------------------
634
635 wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
636 wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
637 wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
638 wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
639 wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
640 wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
641 wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
642 wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
643 wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
644 wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
645 wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
646 wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
647 wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
648 wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
649 wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
650 wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
651 wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
652 wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
653 wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
654 wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
655 wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
656 wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
657 wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
658 wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
659 wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
660 wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
661 wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
662 wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
663 wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
664 wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
665 wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
666 wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
667 wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
668 wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
669 wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
670 wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
671 wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
672 wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
673 wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
674 wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
675 wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
676 wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
677 wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT