1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
14 from controls
import *
17 def __init__(self
,this
):
20 def __del__(self
,controls2c
=controls2c
):
21 if self
.thisown
== 1 :
22 controls2c
.delete_wxListItem(self
)
23 def __setattr__(self
,name
,value
):
25 controls2c
.wxListItem_m_mask_set(self
,value
)
27 if name
== "m_itemId" :
28 controls2c
.wxListItem_m_itemId_set(self
,value
)
31 controls2c
.wxListItem_m_col_set(self
,value
)
33 if name
== "m_state" :
34 controls2c
.wxListItem_m_state_set(self
,value
)
36 if name
== "m_stateMask" :
37 controls2c
.wxListItem_m_stateMask_set(self
,value
)
40 controls2c
.wxListItem_m_text_set(self
,value
)
42 if name
== "m_image" :
43 controls2c
.wxListItem_m_image_set(self
,value
)
46 controls2c
.wxListItem_m_data_set(self
,value
)
48 if name
== "m_format" :
49 controls2c
.wxListItem_m_format_set(self
,value
)
51 if name
== "m_width" :
52 controls2c
.wxListItem_m_width_set(self
,value
)
54 self
.__dict
__[name
] = value
55 def __getattr__(self
,name
):
57 return controls2c
.wxListItem_m_mask_get(self
)
58 if name
== "m_itemId" :
59 return controls2c
.wxListItem_m_itemId_get(self
)
61 return controls2c
.wxListItem_m_col_get(self
)
62 if name
== "m_state" :
63 return controls2c
.wxListItem_m_state_get(self
)
64 if name
== "m_stateMask" :
65 return controls2c
.wxListItem_m_stateMask_get(self
)
67 return controls2c
.wxListItem_m_text_get(self
)
68 if name
== "m_image" :
69 return controls2c
.wxListItem_m_image_get(self
)
71 return controls2c
.wxListItem_m_data_get(self
)
72 if name
== "m_format" :
73 return controls2c
.wxListItem_m_format_get(self
)
74 if name
== "m_width" :
75 return controls2c
.wxListItem_m_width_get(self
)
76 raise AttributeError,name
78 return "<C wxListItem instance at %s>" % (self
.this
,)
79 class wxListItem(wxListItemPtr
):
80 def __init__(self
,*_args
,**_kwargs
):
81 self
.this
= apply(controls2c
.new_wxListItem
,_args
,_kwargs
)
87 class wxListEventPtr(wxCommandEventPtr
):
88 def __init__(self
,this
):
91 def __setattr__(self
,name
,value
):
93 controls2c
.wxListEvent_m_code_set(self
,value
)
95 if name
== "m_itemIndex" :
96 controls2c
.wxListEvent_m_itemIndex_set(self
,value
)
98 if name
== "m_oldItemIndex" :
99 controls2c
.wxListEvent_m_oldItemIndex_set(self
,value
)
102 controls2c
.wxListEvent_m_col_set(self
,value
)
104 if name
== "m_cancelled" :
105 controls2c
.wxListEvent_m_cancelled_set(self
,value
)
107 if name
== "m_pointDrag" :
108 controls2c
.wxListEvent_m_pointDrag_set(self
,value
.this
)
110 if name
== "m_item" :
111 controls2c
.wxListEvent_m_item_set(self
,value
.this
)
113 self
.__dict
__[name
] = value
114 def __getattr__(self
,name
):
115 if name
== "m_code" :
116 return controls2c
.wxListEvent_m_code_get(self
)
117 if name
== "m_itemIndex" :
118 return controls2c
.wxListEvent_m_itemIndex_get(self
)
119 if name
== "m_oldItemIndex" :
120 return controls2c
.wxListEvent_m_oldItemIndex_get(self
)
122 return controls2c
.wxListEvent_m_col_get(self
)
123 if name
== "m_cancelled" :
124 return controls2c
.wxListEvent_m_cancelled_get(self
)
125 if name
== "m_pointDrag" :
126 return wxPointPtr(controls2c
.wxListEvent_m_pointDrag_get(self
))
127 if name
== "m_item" :
128 return wxListItemPtr(controls2c
.wxListEvent_m_item_get(self
))
129 raise AttributeError,name
131 return "<C wxListEvent instance at %s>" % (self
.this
,)
132 class wxListEvent(wxListEventPtr
):
133 def __init__(self
,this
):
139 class wxListCtrlPtr(wxControlPtr
):
140 def __init__(self
,this
):
143 def Arrange(self
, *_args
, **_kwargs
):
144 val
= apply(controls2c
.wxListCtrl_Arrange
,(self
,) + _args
, _kwargs
)
146 def DeleteItem(self
, *_args
, **_kwargs
):
147 val
= apply(controls2c
.wxListCtrl_DeleteItem
,(self
,) + _args
, _kwargs
)
149 def DeleteAllItems(self
, *_args
, **_kwargs
):
150 val
= apply(controls2c
.wxListCtrl_DeleteAllItems
,(self
,) + _args
, _kwargs
)
152 def DeleteColumn(self
, *_args
, **_kwargs
):
153 val
= apply(controls2c
.wxListCtrl_DeleteColumn
,(self
,) + _args
, _kwargs
)
155 def DeleteAllColumns(self
, *_args
, **_kwargs
):
156 val
= apply(controls2c
.wxListCtrl_DeleteAllColumns
,(self
,) + _args
, _kwargs
)
158 def ClearAll(self
, *_args
, **_kwargs
):
159 val
= apply(controls2c
.wxListCtrl_ClearAll
,(self
,) + _args
, _kwargs
)
161 def EditLabel(self
, *_args
, **_kwargs
):
162 val
= apply(controls2c
.wxListCtrl_EditLabel
,(self
,) + _args
, _kwargs
)
163 if val
: val
= wxTextCtrlPtr(val
)
165 def EndEditLabel(self
, *_args
, **_kwargs
):
166 val
= apply(controls2c
.wxListCtrl_EndEditLabel
,(self
,) + _args
, _kwargs
)
168 def GetEditControl(self
, *_args
, **_kwargs
):
169 val
= apply(controls2c
.wxListCtrl_GetEditControl
,(self
,) + _args
, _kwargs
)
170 if val
: val
= wxTextCtrlPtr(val
)
172 def EnsureVisible(self
, *_args
, **_kwargs
):
173 val
= apply(controls2c
.wxListCtrl_EnsureVisible
,(self
,) + _args
, _kwargs
)
175 def FindItem(self
, *_args
, **_kwargs
):
176 val
= apply(controls2c
.wxListCtrl_FindItem
,(self
,) + _args
, _kwargs
)
178 def FindItemData(self
, *_args
, **_kwargs
):
179 val
= apply(controls2c
.wxListCtrl_FindItemData
,(self
,) + _args
, _kwargs
)
181 def FindItemAtPos(self
, *_args
, **_kwargs
):
182 val
= apply(controls2c
.wxListCtrl_FindItemAtPos
,(self
,) + _args
, _kwargs
)
184 def GetColumn(self
, *_args
, **_kwargs
):
185 val
= apply(controls2c
.wxListCtrl_GetColumn
,(self
,) + _args
, _kwargs
)
187 def GetColumnWidth(self
, *_args
, **_kwargs
):
188 val
= apply(controls2c
.wxListCtrl_GetColumnWidth
,(self
,) + _args
, _kwargs
)
190 def GetCountPerPage(self
, *_args
, **_kwargs
):
191 val
= apply(controls2c
.wxListCtrl_GetCountPerPage
,(self
,) + _args
, _kwargs
)
193 def GetImageList(self
, *_args
, **_kwargs
):
194 val
= apply(controls2c
.wxListCtrl_GetImageList
,(self
,) + _args
, _kwargs
)
195 if val
: val
= wxImageListPtr(val
)
197 def GetItemData(self
, *_args
, **_kwargs
):
198 val
= apply(controls2c
.wxListCtrl_GetItemData
,(self
,) + _args
, _kwargs
)
200 def GetItem(self
, *_args
, **_kwargs
):
201 val
= apply(controls2c
.wxListCtrl_GetItem
,(self
,) + _args
, _kwargs
)
202 if val
: val
= wxListItemPtr(val
) ; val
.thisown
= 1
204 def GetItemPosition(self
, *_args
, **_kwargs
):
205 val
= apply(controls2c
.wxListCtrl_GetItemPosition
,(self
,) + _args
, _kwargs
)
206 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
208 def GetItemRect(self
, *_args
, **_kwargs
):
209 val
= apply(controls2c
.wxListCtrl_GetItemRect
,(self
,) + _args
, _kwargs
)
210 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
212 def GetItemState(self
, *_args
, **_kwargs
):
213 val
= apply(controls2c
.wxListCtrl_GetItemState
,(self
,) + _args
, _kwargs
)
215 def GetItemCount(self
, *_args
, **_kwargs
):
216 val
= apply(controls2c
.wxListCtrl_GetItemCount
,(self
,) + _args
, _kwargs
)
218 def GetItemSpacing(self
, *_args
, **_kwargs
):
219 val
= apply(controls2c
.wxListCtrl_GetItemSpacing
,(self
,) + _args
, _kwargs
)
221 def GetItemText(self
, *_args
, **_kwargs
):
222 val
= apply(controls2c
.wxListCtrl_GetItemText
,(self
,) + _args
, _kwargs
)
224 def GetNextItem(self
, *_args
, **_kwargs
):
225 val
= apply(controls2c
.wxListCtrl_GetNextItem
,(self
,) + _args
, _kwargs
)
227 def GetSelectedItemCount(self
, *_args
, **_kwargs
):
228 val
= apply(controls2c
.wxListCtrl_GetSelectedItemCount
,(self
,) + _args
, _kwargs
)
230 def GetTextColour(self
, *_args
, **_kwargs
):
231 val
= apply(controls2c
.wxListCtrl_GetTextColour
,(self
,) + _args
, _kwargs
)
232 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
234 def SetTextColour(self
, *_args
, **_kwargs
):
235 val
= apply(controls2c
.wxListCtrl_SetTextColour
,(self
,) + _args
, _kwargs
)
237 def GetTopItem(self
, *_args
, **_kwargs
):
238 val
= apply(controls2c
.wxListCtrl_GetTopItem
,(self
,) + _args
, _kwargs
)
240 def HitTest(self
, *_args
, **_kwargs
):
241 val
= apply(controls2c
.wxListCtrl_HitTest
,(self
,) + _args
, _kwargs
)
243 def InsertColumnWith(self
, *_args
, **_kwargs
):
244 val
= apply(controls2c
.wxListCtrl_InsertColumnWith
,(self
,) + _args
, _kwargs
)
246 def InsertColumn(self
, *_args
, **_kwargs
):
247 val
= apply(controls2c
.wxListCtrl_InsertColumn
,(self
,) + _args
, _kwargs
)
249 def InsertItem(self
, *_args
, **_kwargs
):
250 val
= apply(controls2c
.wxListCtrl_InsertItem
,(self
,) + _args
, _kwargs
)
252 def InsertStringItem(self
, *_args
, **_kwargs
):
253 val
= apply(controls2c
.wxListCtrl_InsertStringItem
,(self
,) + _args
, _kwargs
)
255 def InsertImageItem(self
, *_args
, **_kwargs
):
256 val
= apply(controls2c
.wxListCtrl_InsertImageItem
,(self
,) + _args
, _kwargs
)
258 def InsertImageStringItem(self
, *_args
, **_kwargs
):
259 val
= apply(controls2c
.wxListCtrl_InsertImageStringItem
,(self
,) + _args
, _kwargs
)
261 def ScrollList(self
, *_args
, **_kwargs
):
262 val
= apply(controls2c
.wxListCtrl_ScrollList
,(self
,) + _args
, _kwargs
)
264 def SetBackgroundColour(self
, *_args
, **_kwargs
):
265 val
= apply(controls2c
.wxListCtrl_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
267 def SetColumn(self
, *_args
, **_kwargs
):
268 val
= apply(controls2c
.wxListCtrl_SetColumn
,(self
,) + _args
, _kwargs
)
270 def SetColumnWidth(self
, *_args
, **_kwargs
):
271 val
= apply(controls2c
.wxListCtrl_SetColumnWidth
,(self
,) + _args
, _kwargs
)
273 def SetImageList(self
, *_args
, **_kwargs
):
274 val
= apply(controls2c
.wxListCtrl_SetImageList
,(self
,) + _args
, _kwargs
)
276 def SetItem(self
, *_args
, **_kwargs
):
277 val
= apply(controls2c
.wxListCtrl_SetItem
,(self
,) + _args
, _kwargs
)
279 def SetStringItem(self
, *_args
, **_kwargs
):
280 val
= apply(controls2c
.wxListCtrl_SetStringItem
,(self
,) + _args
, _kwargs
)
282 def SetItemData(self
, *_args
, **_kwargs
):
283 val
= apply(controls2c
.wxListCtrl_SetItemData
,(self
,) + _args
, _kwargs
)
285 def SetItemImage(self
, *_args
, **_kwargs
):
286 val
= apply(controls2c
.wxListCtrl_SetItemImage
,(self
,) + _args
, _kwargs
)
288 def SetItemPosition(self
, *_args
, **_kwargs
):
289 val
= apply(controls2c
.wxListCtrl_SetItemPosition
,(self
,) + _args
, _kwargs
)
291 def SetItemState(self
, *_args
, **_kwargs
):
292 val
= apply(controls2c
.wxListCtrl_SetItemState
,(self
,) + _args
, _kwargs
)
294 def SetItemText(self
, *_args
, **_kwargs
):
295 val
= apply(controls2c
.wxListCtrl_SetItemText
,(self
,) + _args
, _kwargs
)
297 def SetSingleStyle(self
, *_args
, **_kwargs
):
298 val
= apply(controls2c
.wxListCtrl_SetSingleStyle
,(self
,) + _args
, _kwargs
)
300 def SetWindowStyleFlag(self
, *_args
, **_kwargs
):
301 val
= apply(controls2c
.wxListCtrl_SetWindowStyleFlag
,(self
,) + _args
, _kwargs
)
303 def SortItems(self
, *_args
, **_kwargs
):
304 val
= apply(controls2c
.wxListCtrl_SortItems
,(self
,) + _args
, _kwargs
)
307 return "<C wxListCtrl instance at %s>" % (self
.this
,)
308 class wxListCtrl(wxListCtrlPtr
):
309 def __init__(self
,*_args
,**_kwargs
):
310 self
.this
= apply(controls2c
.new_wxListCtrl
,_args
,_kwargs
)
312 wx
._StdWindowCallbacks
(self
)
317 class wxTreeItemIdPtr
:
318 def __init__(self
,this
):
321 def __del__(self
,controls2c
=controls2c
):
322 if self
.thisown
== 1 :
323 controls2c
.delete_wxTreeItemId(self
)
324 def IsOk(self
, *_args
, **_kwargs
):
325 val
= apply(controls2c
.wxTreeItemId_IsOk
,(self
,) + _args
, _kwargs
)
328 return "<C wxTreeItemId instance at %s>" % (self
.this
,)
329 class wxTreeItemId(wxTreeItemIdPtr
):
330 def __init__(self
,*_args
,**_kwargs
):
331 self
.this
= apply(controls2c
.new_wxTreeItemId
,_args
,_kwargs
)
337 class wxTreeItemDataPtr
:
338 def __init__(self
,this
):
341 def GetData(self
, *_args
, **_kwargs
):
342 val
= apply(controls2c
.wxTreeItemData_GetData
,(self
,) + _args
, _kwargs
)
344 def SetData(self
, *_args
, **_kwargs
):
345 val
= apply(controls2c
.wxTreeItemData_SetData
,(self
,) + _args
, _kwargs
)
347 def GetId(self
, *_args
, **_kwargs
):
348 val
= apply(controls2c
.wxTreeItemData_GetId
,(self
,) + _args
, _kwargs
)
349 if val
: val
= wxTreeItemIdPtr(val
)
351 def SetId(self
, *_args
, **_kwargs
):
352 val
= apply(controls2c
.wxTreeItemData_SetId
,(self
,) + _args
, _kwargs
)
355 return "<C wxTreeItemData instance at %s>" % (self
.this
,)
356 class wxTreeItemData(wxTreeItemDataPtr
):
357 def __init__(self
,*_args
,**_kwargs
):
358 self
.this
= apply(controls2c
.new_wxTreeItemData
,_args
,_kwargs
)
364 class wxTreeEventPtr(wxNotifyEventPtr
):
365 def __init__(self
,this
):
368 def GetItem(self
, *_args
, **_kwargs
):
369 val
= apply(controls2c
.wxTreeEvent_GetItem
,(self
,) + _args
, _kwargs
)
370 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
372 def GetOldItem(self
, *_args
, **_kwargs
):
373 val
= apply(controls2c
.wxTreeEvent_GetOldItem
,(self
,) + _args
, _kwargs
)
374 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
376 def GetPoint(self
, *_args
, **_kwargs
):
377 val
= apply(controls2c
.wxTreeEvent_GetPoint
,(self
,) + _args
, _kwargs
)
378 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
380 def GetCode(self
, *_args
, **_kwargs
):
381 val
= apply(controls2c
.wxTreeEvent_GetCode
,(self
,) + _args
, _kwargs
)
383 def GetLabel(self
, *_args
, **_kwargs
):
384 val
= apply(controls2c
.wxTreeEvent_GetLabel
,(self
,) + _args
, _kwargs
)
387 return "<C wxTreeEvent instance at %s>" % (self
.this
,)
388 class wxTreeEvent(wxTreeEventPtr
):
389 def __init__(self
,this
):
395 class wxTreeCtrlPtr(wxControlPtr
):
396 def __init__(self
,this
):
399 def GetCount(self
, *_args
, **_kwargs
):
400 val
= apply(controls2c
.wxTreeCtrl_GetCount
,(self
,) + _args
, _kwargs
)
402 def GetIndent(self
, *_args
, **_kwargs
):
403 val
= apply(controls2c
.wxTreeCtrl_GetIndent
,(self
,) + _args
, _kwargs
)
405 def SetIndent(self
, *_args
, **_kwargs
):
406 val
= apply(controls2c
.wxTreeCtrl_SetIndent
,(self
,) + _args
, _kwargs
)
408 def GetImageList(self
, *_args
, **_kwargs
):
409 val
= apply(controls2c
.wxTreeCtrl_GetImageList
,(self
,) + _args
, _kwargs
)
410 if val
: val
= wxImageListPtr(val
)
412 def GetStateImageList(self
, *_args
, **_kwargs
):
413 val
= apply(controls2c
.wxTreeCtrl_GetStateImageList
,(self
,) + _args
, _kwargs
)
414 if val
: val
= wxImageListPtr(val
)
416 def SetImageList(self
, *_args
, **_kwargs
):
417 val
= apply(controls2c
.wxTreeCtrl_SetImageList
,(self
,) + _args
, _kwargs
)
419 def SetStateImageList(self
, *_args
, **_kwargs
):
420 val
= apply(controls2c
.wxTreeCtrl_SetStateImageList
,(self
,) + _args
, _kwargs
)
422 def GetSpacing(self
, *_args
, **_kwargs
):
423 val
= apply(controls2c
.wxTreeCtrl_GetSpacing
,(self
,) + _args
, _kwargs
)
425 def SetSpacing(self
, *_args
, **_kwargs
):
426 val
= apply(controls2c
.wxTreeCtrl_SetSpacing
,(self
,) + _args
, _kwargs
)
428 def GetItemText(self
, *_args
, **_kwargs
):
429 val
= apply(controls2c
.wxTreeCtrl_GetItemText
,(self
,) + _args
, _kwargs
)
431 def GetItemImage(self
, *_args
, **_kwargs
):
432 val
= apply(controls2c
.wxTreeCtrl_GetItemImage
,(self
,) + _args
, _kwargs
)
434 def GetItemSelectedImage(self
, *_args
, **_kwargs
):
435 val
= apply(controls2c
.wxTreeCtrl_GetItemSelectedImage
,(self
,) + _args
, _kwargs
)
437 def SetItemText(self
, *_args
, **_kwargs
):
438 val
= apply(controls2c
.wxTreeCtrl_SetItemText
,(self
,) + _args
, _kwargs
)
440 def SetItemImage(self
, *_args
, **_kwargs
):
441 val
= apply(controls2c
.wxTreeCtrl_SetItemImage
,(self
,) + _args
, _kwargs
)
443 def SetItemSelectedImage(self
, *_args
, **_kwargs
):
444 val
= apply(controls2c
.wxTreeCtrl_SetItemSelectedImage
,(self
,) + _args
, _kwargs
)
446 def SetItemHasChildren(self
, *_args
, **_kwargs
):
447 val
= apply(controls2c
.wxTreeCtrl_SetItemHasChildren
,(self
,) + _args
, _kwargs
)
449 def GetItemData(self
, *_args
, **_kwargs
):
450 val
= apply(controls2c
.wxTreeCtrl_GetItemData
,(self
,) + _args
, _kwargs
)
451 if val
: val
= wxTreeItemDataPtr(val
)
453 def SetItemData(self
, *_args
, **_kwargs
):
454 val
= apply(controls2c
.wxTreeCtrl_SetItemData
,(self
,) + _args
, _kwargs
)
456 def GetPyData(self
, *_args
, **_kwargs
):
457 val
= apply(controls2c
.wxTreeCtrl_GetPyData
,(self
,) + _args
, _kwargs
)
459 def SetPyData(self
, *_args
, **_kwargs
):
460 val
= apply(controls2c
.wxTreeCtrl_SetPyData
,(self
,) + _args
, _kwargs
)
462 def IsVisible(self
, *_args
, **_kwargs
):
463 val
= apply(controls2c
.wxTreeCtrl_IsVisible
,(self
,) + _args
, _kwargs
)
465 def ItemHasChildren(self
, *_args
, **_kwargs
):
466 val
= apply(controls2c
.wxTreeCtrl_ItemHasChildren
,(self
,) + _args
, _kwargs
)
468 def IsExpanded(self
, *_args
, **_kwargs
):
469 val
= apply(controls2c
.wxTreeCtrl_IsExpanded
,(self
,) + _args
, _kwargs
)
471 def IsSelected(self
, *_args
, **_kwargs
):
472 val
= apply(controls2c
.wxTreeCtrl_IsSelected
,(self
,) + _args
, _kwargs
)
474 def GetRootItem(self
, *_args
, **_kwargs
):
475 val
= apply(controls2c
.wxTreeCtrl_GetRootItem
,(self
,) + _args
, _kwargs
)
476 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
478 def GetSelection(self
, *_args
, **_kwargs
):
479 val
= apply(controls2c
.wxTreeCtrl_GetSelection
,(self
,) + _args
, _kwargs
)
480 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
482 def GetItemParent(self
, *_args
, **_kwargs
):
483 val
= apply(controls2c
.wxTreeCtrl_GetItemParent
,(self
,) + _args
, _kwargs
)
484 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
486 def GetSelections(self
, *_args
, **_kwargs
):
487 val
= apply(controls2c
.wxTreeCtrl_GetSelections
,(self
,) + _args
, _kwargs
)
489 def GetChildrenCount(self
, *_args
, **_kwargs
):
490 val
= apply(controls2c
.wxTreeCtrl_GetChildrenCount
,(self
,) + _args
, _kwargs
)
492 def GetFirstChild(self
, *_args
, **_kwargs
):
493 val
= apply(controls2c
.wxTreeCtrl_GetFirstChild
,(self
,) + _args
, _kwargs
)
495 def GetNextChild(self
, *_args
, **_kwargs
):
496 val
= apply(controls2c
.wxTreeCtrl_GetNextChild
,(self
,) + _args
, _kwargs
)
498 def GetNextSibling(self
, *_args
, **_kwargs
):
499 val
= apply(controls2c
.wxTreeCtrl_GetNextSibling
,(self
,) + _args
, _kwargs
)
500 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
502 def GetPrevSibling(self
, *_args
, **_kwargs
):
503 val
= apply(controls2c
.wxTreeCtrl_GetPrevSibling
,(self
,) + _args
, _kwargs
)
504 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
506 def GetFirstVisibleItem(self
, *_args
, **_kwargs
):
507 val
= apply(controls2c
.wxTreeCtrl_GetFirstVisibleItem
,(self
,) + _args
, _kwargs
)
508 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
510 def GetNextVisible(self
, *_args
, **_kwargs
):
511 val
= apply(controls2c
.wxTreeCtrl_GetNextVisible
,(self
,) + _args
, _kwargs
)
512 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
514 def GetPrevVisible(self
, *_args
, **_kwargs
):
515 val
= apply(controls2c
.wxTreeCtrl_GetPrevVisible
,(self
,) + _args
, _kwargs
)
516 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
518 def GetLastChild(self
, *_args
, **_kwargs
):
519 val
= apply(controls2c
.wxTreeCtrl_GetLastChild
,(self
,) + _args
, _kwargs
)
520 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
522 def AddRoot(self
, *_args
, **_kwargs
):
523 val
= apply(controls2c
.wxTreeCtrl_AddRoot
,(self
,) + _args
, _kwargs
)
524 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
526 def PrependItem(self
, *_args
, **_kwargs
):
527 val
= apply(controls2c
.wxTreeCtrl_PrependItem
,(self
,) + _args
, _kwargs
)
528 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
530 def InsertItem(self
, *_args
, **_kwargs
):
531 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
,) + _args
, _kwargs
)
532 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
534 def AppendItem(self
, *_args
, **_kwargs
):
535 val
= apply(controls2c
.wxTreeCtrl_AppendItem
,(self
,) + _args
, _kwargs
)
536 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
538 def Delete(self
, *_args
, **_kwargs
):
539 val
= apply(controls2c
.wxTreeCtrl_Delete
,(self
,) + _args
, _kwargs
)
541 def DeleteChildren(self
, *_args
, **_kwargs
):
542 val
= apply(controls2c
.wxTreeCtrl_DeleteChildren
,(self
,) + _args
, _kwargs
)
544 def DeleteAllItems(self
, *_args
, **_kwargs
):
545 val
= apply(controls2c
.wxTreeCtrl_DeleteAllItems
,(self
,) + _args
, _kwargs
)
547 def Expand(self
, *_args
, **_kwargs
):
548 val
= apply(controls2c
.wxTreeCtrl_Expand
,(self
,) + _args
, _kwargs
)
550 def Collapse(self
, *_args
, **_kwargs
):
551 val
= apply(controls2c
.wxTreeCtrl_Collapse
,(self
,) + _args
, _kwargs
)
553 def CollapseAndReset(self
, *_args
, **_kwargs
):
554 val
= apply(controls2c
.wxTreeCtrl_CollapseAndReset
,(self
,) + _args
, _kwargs
)
556 def Toggle(self
, *_args
, **_kwargs
):
557 val
= apply(controls2c
.wxTreeCtrl_Toggle
,(self
,) + _args
, _kwargs
)
559 def Unselect(self
, *_args
, **_kwargs
):
560 val
= apply(controls2c
.wxTreeCtrl_Unselect
,(self
,) + _args
, _kwargs
)
562 def UnselectAll(self
, *_args
, **_kwargs
):
563 val
= apply(controls2c
.wxTreeCtrl_UnselectAll
,(self
,) + _args
, _kwargs
)
565 def SelectItem(self
, *_args
, **_kwargs
):
566 val
= apply(controls2c
.wxTreeCtrl_SelectItem
,(self
,) + _args
, _kwargs
)
568 def EnsureVisible(self
, *_args
, **_kwargs
):
569 val
= apply(controls2c
.wxTreeCtrl_EnsureVisible
,(self
,) + _args
, _kwargs
)
571 def ScrollTo(self
, *_args
, **_kwargs
):
572 val
= apply(controls2c
.wxTreeCtrl_ScrollTo
,(self
,) + _args
, _kwargs
)
574 def EditLabel(self
, *_args
, **_kwargs
):
575 val
= apply(controls2c
.wxTreeCtrl_EditLabel
,(self
,) + _args
, _kwargs
)
576 if val
: val
= wxTextCtrlPtr(val
)
578 def GetEditControl(self
, *_args
, **_kwargs
):
579 val
= apply(controls2c
.wxTreeCtrl_GetEditControl
,(self
,) + _args
, _kwargs
)
580 if val
: val
= wxTextCtrlPtr(val
)
582 def EndEditLabel(self
, *_args
, **_kwargs
):
583 val
= apply(controls2c
.wxTreeCtrl_EndEditLabel
,(self
,) + _args
, _kwargs
)
585 def SortChildren(self
, *_args
, **_kwargs
):
586 val
= apply(controls2c
.wxTreeCtrl_SortChildren
,(self
,) + _args
, _kwargs
)
588 def SetItemBold(self
, *_args
, **_kwargs
):
589 val
= apply(controls2c
.wxTreeCtrl_SetItemBold
,(self
,) + _args
, _kwargs
)
591 def IsBold(self
, *_args
, **_kwargs
):
592 val
= apply(controls2c
.wxTreeCtrl_IsBold
,(self
,) + _args
, _kwargs
)
594 def HitTest(self
, *_args
, **_kwargs
):
595 val
= apply(controls2c
.wxTreeCtrl_HitTest
,(self
,) + _args
, _kwargs
)
597 def SetItemTextColour(self
, *_args
, **_kwargs
):
598 val
= apply(controls2c
.wxTreeCtrl_SetItemTextColour
,(self
,) + _args
, _kwargs
)
600 def SetItemBackgroundColour(self
, *_args
, **_kwargs
):
601 val
= apply(controls2c
.wxTreeCtrl_SetItemBackgroundColour
,(self
,) + _args
, _kwargs
)
603 def SetItemFont(self
, *_args
, **_kwargs
):
604 val
= apply(controls2c
.wxTreeCtrl_SetItemFont
,(self
,) + _args
, _kwargs
)
606 def SetItemDropHighlight(self
, *_args
, **_kwargs
):
607 val
= apply(controls2c
.wxTreeCtrl_SetItemDropHighlight
,(self
,) + _args
, _kwargs
)
609 def GetBoundingRect(self
, *_args
, **_kwargs
):
610 val
= apply(controls2c
.wxTreeCtrl_GetBoundingRect
,(self
,) + _args
, _kwargs
)
613 return "<C wxTreeCtrl instance at %s>" % (self
.this
,)
615 # Redefine a couple methods that SWIG gets a bit confused on...
616 def GetFirstChild(self
,arg0
,arg1
):
617 val1
, val2
= controls2c
.wxTreeCtrl_GetFirstChild(self
.this
,arg0
.this
,arg1
)
618 val1
= wxTreeItemIdPtr(val1
)
621 def GetNextChild(self
,arg0
,arg1
):
622 val1
, val2
= controls2c
.wxTreeCtrl_GetNextChild(self
.this
,arg0
.this
,arg1
)
623 val1
= wxTreeItemIdPtr(val1
)
627 class wxTreeCtrl(wxTreeCtrlPtr
):
628 def __init__(self
,*_args
,**_kwargs
):
629 self
.this
= apply(controls2c
.new_wxTreeCtrl
,_args
,_kwargs
)
631 wx
._StdWindowCallbacks
(self
)
638 #-------------- FUNCTION WRAPPERS ------------------
642 #-------------- VARIABLE WRAPPERS ------------------
644 wxLIST_MASK_TEXT
= controls2c
.wxLIST_MASK_TEXT
645 wxLIST_MASK_IMAGE
= controls2c
.wxLIST_MASK_IMAGE
646 wxLIST_MASK_DATA
= controls2c
.wxLIST_MASK_DATA
647 wxLIST_MASK_WIDTH
= controls2c
.wxLIST_MASK_WIDTH
648 wxLIST_MASK_FORMAT
= controls2c
.wxLIST_MASK_FORMAT
649 wxLIST_MASK_STATE
= controls2c
.wxLIST_MASK_STATE
650 wxLIST_STATE_DONTCARE
= controls2c
.wxLIST_STATE_DONTCARE
651 wxLIST_STATE_DROPHILITED
= controls2c
.wxLIST_STATE_DROPHILITED
652 wxLIST_STATE_FOCUSED
= controls2c
.wxLIST_STATE_FOCUSED
653 wxLIST_STATE_SELECTED
= controls2c
.wxLIST_STATE_SELECTED
654 wxLIST_STATE_CUT
= controls2c
.wxLIST_STATE_CUT
655 wxLIST_HITTEST_ABOVE
= controls2c
.wxLIST_HITTEST_ABOVE
656 wxLIST_HITTEST_BELOW
= controls2c
.wxLIST_HITTEST_BELOW
657 wxLIST_HITTEST_NOWHERE
= controls2c
.wxLIST_HITTEST_NOWHERE
658 wxLIST_HITTEST_ONITEMICON
= controls2c
.wxLIST_HITTEST_ONITEMICON
659 wxLIST_HITTEST_ONITEMLABEL
= controls2c
.wxLIST_HITTEST_ONITEMLABEL
660 wxLIST_HITTEST_ONITEMRIGHT
= controls2c
.wxLIST_HITTEST_ONITEMRIGHT
661 wxLIST_HITTEST_ONITEMSTATEICON
= controls2c
.wxLIST_HITTEST_ONITEMSTATEICON
662 wxLIST_HITTEST_TOLEFT
= controls2c
.wxLIST_HITTEST_TOLEFT
663 wxLIST_HITTEST_TORIGHT
= controls2c
.wxLIST_HITTEST_TORIGHT
664 wxLIST_HITTEST_ONITEM
= controls2c
.wxLIST_HITTEST_ONITEM
665 wxLIST_NEXT_ABOVE
= controls2c
.wxLIST_NEXT_ABOVE
666 wxLIST_NEXT_ALL
= controls2c
.wxLIST_NEXT_ALL
667 wxLIST_NEXT_BELOW
= controls2c
.wxLIST_NEXT_BELOW
668 wxLIST_NEXT_LEFT
= controls2c
.wxLIST_NEXT_LEFT
669 wxLIST_NEXT_RIGHT
= controls2c
.wxLIST_NEXT_RIGHT
670 wxLIST_ALIGN_DEFAULT
= controls2c
.wxLIST_ALIGN_DEFAULT
671 wxLIST_ALIGN_LEFT
= controls2c
.wxLIST_ALIGN_LEFT
672 wxLIST_ALIGN_TOP
= controls2c
.wxLIST_ALIGN_TOP
673 wxLIST_ALIGN_SNAP_TO_GRID
= controls2c
.wxLIST_ALIGN_SNAP_TO_GRID
674 wxLIST_FORMAT_LEFT
= controls2c
.wxLIST_FORMAT_LEFT
675 wxLIST_FORMAT_RIGHT
= controls2c
.wxLIST_FORMAT_RIGHT
676 wxLIST_FORMAT_CENTRE
= controls2c
.wxLIST_FORMAT_CENTRE
677 wxLIST_FORMAT_CENTER
= controls2c
.wxLIST_FORMAT_CENTER
678 wxLIST_AUTOSIZE
= controls2c
.wxLIST_AUTOSIZE
679 wxLIST_AUTOSIZE_USEHEADER
= controls2c
.wxLIST_AUTOSIZE_USEHEADER
680 wxLIST_RECT_BOUNDS
= controls2c
.wxLIST_RECT_BOUNDS
681 wxLIST_RECT_ICON
= controls2c
.wxLIST_RECT_ICON
682 wxLIST_RECT_LABEL
= controls2c
.wxLIST_RECT_LABEL
683 wxLIST_FIND_UP
= controls2c
.wxLIST_FIND_UP
684 wxLIST_FIND_DOWN
= controls2c
.wxLIST_FIND_DOWN
685 wxLIST_FIND_LEFT
= controls2c
.wxLIST_FIND_LEFT
686 wxLIST_FIND_RIGHT
= controls2c
.wxLIST_FIND_RIGHT
687 wxTreeItemIcon_Normal
= controls2c
.wxTreeItemIcon_Normal
688 wxTreeItemIcon_Selected
= controls2c
.wxTreeItemIcon_Selected
689 wxTreeItemIcon_Expanded
= controls2c
.wxTreeItemIcon_Expanded
690 wxTreeItemIcon_SelectedExpanded
= controls2c
.wxTreeItemIcon_SelectedExpanded
691 wxTreeItemIcon_Max
= controls2c
.wxTreeItemIcon_Max
692 wxTREE_HITTEST_ABOVE
= controls2c
.wxTREE_HITTEST_ABOVE
693 wxTREE_HITTEST_BELOW
= controls2c
.wxTREE_HITTEST_BELOW
694 wxTREE_HITTEST_NOWHERE
= controls2c
.wxTREE_HITTEST_NOWHERE
695 wxTREE_HITTEST_ONITEMBUTTON
= controls2c
.wxTREE_HITTEST_ONITEMBUTTON
696 wxTREE_HITTEST_ONITEMICON
= controls2c
.wxTREE_HITTEST_ONITEMICON
697 wxTREE_HITTEST_ONITEMINDENT
= controls2c
.wxTREE_HITTEST_ONITEMINDENT
698 wxTREE_HITTEST_ONITEMLABEL
= controls2c
.wxTREE_HITTEST_ONITEMLABEL
699 wxTREE_HITTEST_ONITEMRIGHT
= controls2c
.wxTREE_HITTEST_ONITEMRIGHT
700 wxTREE_HITTEST_ONITEMSTATEICON
= controls2c
.wxTREE_HITTEST_ONITEMSTATEICON
701 wxTREE_HITTEST_TOLEFT
= controls2c
.wxTREE_HITTEST_TOLEFT
702 wxTREE_HITTEST_TORIGHT
= controls2c
.wxTREE_HITTEST_TORIGHT
703 wxTREE_HITTEST_ONITEMUPPERPART
= controls2c
.wxTREE_HITTEST_ONITEMUPPERPART
704 wxTREE_HITTEST_ONITEMLOWERPART
= controls2c
.wxTREE_HITTEST_ONITEMLOWERPART
705 wxTREE_HITTEST_ONITEM
= controls2c
.wxTREE_HITTEST_ONITEM