1 # This file was created automatically by SWIG.
12 from controls
import *
15 def __init__(self
,this
):
19 if self
.thisown
== 1 :
20 controls2c
.delete_wxListItem(self
.this
)
21 def __setattr__(self
,name
,value
):
23 controls2c
.wxListItem_m_mask_set(self
.this
,value
)
25 if name
== "m_itemId" :
26 controls2c
.wxListItem_m_itemId_set(self
.this
,value
)
29 controls2c
.wxListItem_m_col_set(self
.this
,value
)
31 if name
== "m_state" :
32 controls2c
.wxListItem_m_state_set(self
.this
,value
)
34 if name
== "m_stateMask" :
35 controls2c
.wxListItem_m_stateMask_set(self
.this
,value
)
38 controls2c
.wxListItem_m_text_set(self
.this
,value
)
40 if name
== "m_image" :
41 controls2c
.wxListItem_m_image_set(self
.this
,value
)
44 controls2c
.wxListItem_m_data_set(self
.this
,value
)
46 if name
== "m_format" :
47 controls2c
.wxListItem_m_format_set(self
.this
,value
)
49 if name
== "m_width" :
50 controls2c
.wxListItem_m_width_set(self
.this
,value
)
52 self
.__dict
__[name
] = value
53 def __getattr__(self
,name
):
55 return controls2c
.wxListItem_m_mask_get(self
.this
)
56 if name
== "m_itemId" :
57 return controls2c
.wxListItem_m_itemId_get(self
.this
)
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
)
65 return controls2c
.wxListItem_m_text_get(self
.this
)
66 if name
== "m_image" :
67 return controls2c
.wxListItem_m_image_get(self
.this
)
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
76 return "<C wxListItem instance>"
77 class wxListItem(wxListItemPtr
):
79 self
.this
= controls2c
.new_wxListItem()
85 class wxListEventPtr(wxCommandEventPtr
):
86 def __init__(self
,this
):
89 def __setattr__(self
,name
,value
):
91 controls2c
.wxListEvent_m_code_set(self
.this
,value
)
93 if name
== "m_itemIndex" :
94 controls2c
.wxListEvent_m_itemIndex_set(self
.this
,value
)
96 if name
== "m_oldItemIndex" :
97 controls2c
.wxListEvent_m_oldItemIndex_set(self
.this
,value
)
100 controls2c
.wxListEvent_m_col_set(self
.this
,value
)
102 if name
== "m_cancelled" :
103 controls2c
.wxListEvent_m_cancelled_set(self
.this
,value
)
105 if name
== "m_pointDrag" :
106 controls2c
.wxListEvent_m_pointDrag_set(self
.this
,value
.this
)
108 if name
== "m_item" :
109 controls2c
.wxListEvent_m_item_set(self
.this
,value
.this
)
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
)
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
129 return "<C wxListEvent instance>"
130 class wxListEvent(wxListEventPtr
):
131 def __init__(self
,this
):
137 class wxListCtrlPtr(wxControlPtr
):
138 def __init__(self
,this
):
141 def Arrange(self
,*args
):
142 val
= apply(controls2c
.wxListCtrl_Arrange
,(self
.this
,)+args
)
144 def DeleteItem(self
,arg0
):
145 val
= controls2c
.wxListCtrl_DeleteItem(self
.this
,arg0
)
147 def DeleteAllItems(self
):
148 val
= controls2c
.wxListCtrl_DeleteAllItems(self
.this
)
150 def DeleteColumn(self
,arg0
):
151 val
= controls2c
.wxListCtrl_DeleteColumn(self
.this
,arg0
)
153 def EnsureVisible(self
,arg0
):
154 val
= controls2c
.wxListCtrl_EnsureVisible(self
.this
,arg0
)
156 def FindItem(self
,arg0
,arg1
,*args
):
157 val
= apply(controls2c
.wxListCtrl_FindItem
,(self
.this
,arg0
,arg1
,)+args
)
159 def FindItemData(self
,arg0
,arg1
):
160 val
= controls2c
.wxListCtrl_FindItemData(self
.this
,arg0
,arg1
)
162 def FindItemAtPos(self
,arg0
,arg1
,arg2
):
163 val
= controls2c
.wxListCtrl_FindItemAtPos(self
.this
,arg0
,arg1
.this
,arg2
)
165 def GetColumn(self
,arg0
,arg1
):
166 val
= controls2c
.wxListCtrl_GetColumn(self
.this
,arg0
,arg1
.this
)
168 def GetColumnWidth(self
,arg0
):
169 val
= controls2c
.wxListCtrl_GetColumnWidth(self
.this
,arg0
)
171 def GetCountPerPage(self
):
172 val
= controls2c
.wxListCtrl_GetCountPerPage(self
.this
)
174 def GetImageList(self
,arg0
):
175 val
= controls2c
.wxListCtrl_GetImageList(self
.this
,arg0
)
177 def GetItemData(self
,arg0
):
178 val
= controls2c
.wxListCtrl_GetItemData(self
.this
,arg0
)
181 val
= controls2c
.wxListCtrl_GetItem(self
.this
)
182 val
= wxListItemPtr(val
)
185 def GetItemPosition(self
,arg0
):
186 val
= controls2c
.wxListCtrl_GetItemPosition(self
.this
,arg0
)
187 val
= wxPointPtr(val
)
190 def GetItemRect(self
,arg0
,*args
):
191 val
= apply(controls2c
.wxListCtrl_GetItemRect
,(self
.this
,arg0
,)+args
)
195 def GetItemState(self
,arg0
,arg1
):
196 val
= controls2c
.wxListCtrl_GetItemState(self
.this
,arg0
,arg1
)
198 def GetItemCount(self
):
199 val
= controls2c
.wxListCtrl_GetItemCount(self
.this
)
201 def GetItemSpacing(self
,arg0
):
202 val
= controls2c
.wxListCtrl_GetItemSpacing(self
.this
,arg0
)
204 def GetItemText(self
,arg0
):
205 val
= controls2c
.wxListCtrl_GetItemText(self
.this
,arg0
)
207 def GetNextItem(self
,arg0
,*args
):
208 val
= apply(controls2c
.wxListCtrl_GetNextItem
,(self
.this
,arg0
,)+args
)
210 def GetSelectedItemCount(self
):
211 val
= controls2c
.wxListCtrl_GetSelectedItemCount(self
.this
)
213 def GetTopItem(self
):
214 val
= controls2c
.wxListCtrl_GetTopItem(self
.this
)
216 def HitTest(self
,arg0
):
217 val
= controls2c
.wxListCtrl_HitTest(self
.this
,arg0
.this
)
219 def InsertColumnWithInfo(self
,arg0
,arg1
):
220 val
= controls2c
.wxListCtrl_InsertColumnWithInfo(self
.this
,arg0
,arg1
.this
)
222 def InsertColumn(self
,arg0
,arg1
,*args
):
223 val
= apply(controls2c
.wxListCtrl_InsertColumn
,(self
.this
,arg0
,arg1
,)+args
)
225 def InsertItem(self
,arg0
):
226 val
= controls2c
.wxListCtrl_InsertItem(self
.this
,arg0
.this
)
228 def InsertStringItem(self
,arg0
,arg1
):
229 val
= controls2c
.wxListCtrl_InsertStringItem(self
.this
,arg0
,arg1
)
231 def InsertImageItem(self
,arg0
,arg1
):
232 val
= controls2c
.wxListCtrl_InsertImageItem(self
.this
,arg0
,arg1
)
234 def InsertImageStringItem(self
,arg0
,arg1
,arg2
):
235 val
= controls2c
.wxListCtrl_InsertImageStringItem(self
.this
,arg0
,arg1
,arg2
)
237 def ScrollList(self
,arg0
,arg1
):
238 val
= controls2c
.wxListCtrl_ScrollList(self
.this
,arg0
,arg1
)
240 def SetBackgroundColour(self
,arg0
):
241 val
= controls2c
.wxListCtrl_SetBackgroundColour(self
.this
,arg0
.this
)
243 def SetColumn(self
,arg0
,arg1
):
244 val
= controls2c
.wxListCtrl_SetColumn(self
.this
,arg0
,arg1
.this
)
246 def SetColumnWidth(self
,arg0
,arg1
):
247 val
= controls2c
.wxListCtrl_SetColumnWidth(self
.this
,arg0
,arg1
)
249 def SetImageList(self
,arg0
,arg1
):
250 val
= controls2c
.wxListCtrl_SetImageList(self
.this
,arg0
,arg1
)
252 def SetItem(self
,arg0
):
253 val
= controls2c
.wxListCtrl_SetItem(self
.this
,arg0
.this
)
255 def SetItemString(self
,arg0
,arg1
,arg2
,*args
):
256 val
= apply(controls2c
.wxListCtrl_SetItemString
,(self
.this
,arg0
,arg1
,arg2
,)+args
)
258 def SetItemData(self
,arg0
,arg1
):
259 val
= controls2c
.wxListCtrl_SetItemData(self
.this
,arg0
,arg1
)
261 def SetItemImage(self
,arg0
,arg1
,arg2
):
262 val
= controls2c
.wxListCtrl_SetItemImage(self
.this
,arg0
,arg1
,arg2
)
264 def SetItemPosition(self
,arg0
,arg1
):
265 val
= controls2c
.wxListCtrl_SetItemPosition(self
.this
,arg0
,arg1
.this
)
267 def SetItemState(self
,arg0
,arg1
,arg2
):
268 val
= controls2c
.wxListCtrl_SetItemState(self
.this
,arg0
,arg1
,arg2
)
270 def SetItemText(self
,arg0
,arg1
):
271 val
= controls2c
.wxListCtrl_SetItemText(self
.this
,arg0
,arg1
)
273 def SetSingleStyle(self
,arg0
,*args
):
274 val
= apply(controls2c
.wxListCtrl_SetSingleStyle
,(self
.this
,arg0
,)+args
)
276 def SetWindowStyleFlag(self
,arg0
):
277 val
= controls2c
.wxListCtrl_SetWindowStyleFlag(self
.this
,arg0
)
280 return "<C wxListCtrl instance>"
281 class wxListCtrl(wxListCtrlPtr
):
282 def __init__(self
,arg0
,arg1
,*args
) :
283 argl
= map(None,args
)
284 try: argl
[0] = argl
[0].this
286 try: argl
[1] = argl
[1].this
289 self
.this
= apply(controls2c
.new_wxListCtrl
,(arg0
.this
,arg1
,)+args
)
291 wx
._StdWindowCallbacks
(self
)
296 class wxTreeItemIdPtr
:
297 def __init__(self
,this
):
301 if self
.thisown
== 1 :
302 controls2c
.delete_wxTreeItemId(self
.this
)
304 val
= controls2c
.wxTreeItemId_IsOk(self
.this
)
307 return "<C wxTreeItemId instance>"
308 class wxTreeItemId(wxTreeItemIdPtr
):
310 self
.this
= controls2c
.new_wxTreeItemId()
316 class wxTreeItemDataPtr
:
317 def __init__(self
,this
):
321 if self
.thisown
== 1 :
322 controls2c
.delete_wxTreeItemData(self
.this
)
324 val
= controls2c
.wxTreeItemData_GetId(self
.this
)
325 val
= wxTreeItemIdPtr(val
)
327 def SetId(self
,arg0
):
328 val
= controls2c
.wxTreeItemData_SetId(self
.this
,arg0
.this
)
331 return "<C wxTreeItemData instance>"
332 class wxTreeItemData(wxTreeItemDataPtr
):
334 self
.this
= controls2c
.new_wxTreeItemData()
340 class wxTreeEventPtr(wxCommandEventPtr
):
341 def __init__(self
,this
):
345 val
= controls2c
.wxTreeEvent_GetItem(self
.this
)
346 val
= wxTreeItemIdPtr(val
)
349 def GetOldItem(self
):
350 val
= controls2c
.wxTreeEvent_GetOldItem(self
.this
)
351 val
= wxTreeItemIdPtr(val
)
355 val
= controls2c
.wxTreeEvent_GetPoint(self
.this
)
356 val
= wxPointPtr(val
)
360 val
= controls2c
.wxTreeEvent_GetCode(self
.this
)
363 val
= controls2c
.wxTreeEvent_Veto(self
.this
)
366 return "<C wxTreeEvent instance>"
367 class wxTreeEvent(wxTreeEventPtr
):
368 def __init__(self
,this
):
374 class wxTreeCtrlPtr(wxControlPtr
):
375 def __init__(self
,this
):
379 val
= controls2c
.wxTreeCtrl_GetCount(self
.this
)
382 val
= controls2c
.wxTreeCtrl_GetIndent(self
.this
)
384 def SetIndent(self
,arg0
):
385 val
= controls2c
.wxTreeCtrl_SetIndent(self
.this
,arg0
)
387 def GetImageList(self
):
388 val
= controls2c
.wxTreeCtrl_GetImageList(self
.this
)
390 def GetStateImageList(self
):
391 val
= controls2c
.wxTreeCtrl_GetStateImageList(self
.this
)
393 def SetImageList(self
,arg0
):
394 val
= controls2c
.wxTreeCtrl_SetImageList(self
.this
,arg0
)
396 def SetStateImageList(self
,arg0
):
397 val
= controls2c
.wxTreeCtrl_SetStateImageList(self
.this
,arg0
)
399 def GetItemText(self
,arg0
):
400 val
= controls2c
.wxTreeCtrl_GetItemText(self
.this
,arg0
.this
)
402 def GetItemImage(self
,arg0
):
403 val
= controls2c
.wxTreeCtrl_GetItemImage(self
.this
,arg0
.this
)
405 def GetItemSelectedImage(self
,arg0
):
406 val
= controls2c
.wxTreeCtrl_GetItemSelectedImage(self
.this
,arg0
.this
)
408 def GetItemData(self
,arg0
):
409 val
= controls2c
.wxTreeCtrl_GetItemData(self
.this
,arg0
.this
)
410 val
= wxTreeItemDataPtr(val
)
412 def SetItemText(self
,arg0
,arg1
):
413 val
= controls2c
.wxTreeCtrl_SetItemText(self
.this
,arg0
.this
,arg1
)
415 def SetItemImage(self
,arg0
,arg1
):
416 val
= controls2c
.wxTreeCtrl_SetItemImage(self
.this
,arg0
.this
,arg1
)
418 def SetItemSelectedImage(self
,arg0
,arg1
):
419 val
= controls2c
.wxTreeCtrl_SetItemSelectedImage(self
.this
,arg0
.this
,arg1
)
421 def SetItemData(self
,arg0
,arg1
):
422 val
= controls2c
.wxTreeCtrl_SetItemData(self
.this
,arg0
.this
,arg1
.this
)
424 def IsVisible(self
,arg0
):
425 val
= controls2c
.wxTreeCtrl_IsVisible(self
.this
,arg0
.this
)
427 def ItemHasChildren(self
,arg0
):
428 val
= controls2c
.wxTreeCtrl_ItemHasChildren(self
.this
,arg0
.this
)
430 def IsExpanded(self
,arg0
):
431 val
= controls2c
.wxTreeCtrl_IsExpanded(self
.this
,arg0
.this
)
433 def IsSelected(self
,arg0
):
434 val
= controls2c
.wxTreeCtrl_IsSelected(self
.this
,arg0
.this
)
436 def GetRootItem(self
):
437 val
= controls2c
.wxTreeCtrl_GetRootItem(self
.this
)
438 val
= wxTreeItemIdPtr(val
)
441 def GetSelection(self
):
442 val
= controls2c
.wxTreeCtrl_GetSelection(self
.this
)
443 val
= wxTreeItemIdPtr(val
)
446 def GetParent(self
,arg0
):
447 val
= controls2c
.wxTreeCtrl_GetParent(self
.this
,arg0
.this
)
448 val
= wxTreeItemIdPtr(val
)
451 def GetFirstChild(self
,arg0
,arg1
):
452 val
= controls2c
.wxTreeCtrl_GetFirstChild(self
.this
,arg0
.this
,arg1
)
454 def GetNextChild(self
,arg0
,arg1
):
455 val
= controls2c
.wxTreeCtrl_GetNextChild(self
.this
,arg0
.this
,arg1
)
457 def GetNextSibling(self
,arg0
):
458 val
= controls2c
.wxTreeCtrl_GetNextSibling(self
.this
,arg0
.this
)
459 val
= wxTreeItemIdPtr(val
)
462 def GetPrevSibling(self
,arg0
):
463 val
= controls2c
.wxTreeCtrl_GetPrevSibling(self
.this
,arg0
.this
)
464 val
= wxTreeItemIdPtr(val
)
467 def GetFirstVisibleItem(self
):
468 val
= controls2c
.wxTreeCtrl_GetFirstVisibleItem(self
.this
)
469 val
= wxTreeItemIdPtr(val
)
472 def GetNextVisible(self
,arg0
):
473 val
= controls2c
.wxTreeCtrl_GetNextVisible(self
.this
,arg0
.this
)
474 val
= wxTreeItemIdPtr(val
)
477 def GetPrevVisible(self
,arg0
):
478 val
= controls2c
.wxTreeCtrl_GetPrevVisible(self
.this
,arg0
.this
)
479 val
= wxTreeItemIdPtr(val
)
482 def AddRoot(self
,arg0
,*args
):
483 argl
= map(None,args
)
484 try: argl
[2] = argl
[2].this
487 val
= apply(controls2c
.wxTreeCtrl_AddRoot
,(self
.this
,arg0
,)+args
)
488 val
= wxTreeItemIdPtr(val
)
491 def PrependItem(self
,arg0
,arg1
,*args
):
492 argl
= map(None,args
)
493 try: argl
[2] = argl
[2].this
496 val
= apply(controls2c
.wxTreeCtrl_PrependItem
,(self
.this
,arg0
.this
,arg1
,)+args
)
497 val
= wxTreeItemIdPtr(val
)
500 def InsertItem(self
,arg0
,arg1
,arg2
,*args
):
501 argl
= map(None,args
)
502 try: argl
[2] = argl
[2].this
505 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
.this
,arg0
.this
,arg1
.this
,arg2
,)+args
)
506 val
= wxTreeItemIdPtr(val
)
509 def AppendItem(self
,arg0
,arg1
,*args
):
510 argl
= map(None,args
)
511 try: argl
[2] = argl
[2].this
514 val
= apply(controls2c
.wxTreeCtrl_AppendItem
,(self
.this
,arg0
.this
,arg1
,)+args
)
515 val
= wxTreeItemIdPtr(val
)
518 def Delete(self
,arg0
):
519 val
= controls2c
.wxTreeCtrl_Delete(self
.this
,arg0
.this
)
521 def DeleteAllItems(self
):
522 val
= controls2c
.wxTreeCtrl_DeleteAllItems(self
.this
)
524 def Expand(self
,arg0
):
525 val
= controls2c
.wxTreeCtrl_Expand(self
.this
,arg0
.this
)
527 def Collapse(self
,arg0
):
528 val
= controls2c
.wxTreeCtrl_Collapse(self
.this
,arg0
.this
)
530 def CollapseAndReset(self
,arg0
):
531 val
= controls2c
.wxTreeCtrl_CollapseAndReset(self
.this
,arg0
.this
)
533 def Toggle(self
,arg0
):
534 val
= controls2c
.wxTreeCtrl_Toggle(self
.this
,arg0
.this
)
537 val
= controls2c
.wxTreeCtrl_Unselect(self
.this
)
539 def SelectItem(self
,arg0
):
540 val
= controls2c
.wxTreeCtrl_SelectItem(self
.this
,arg0
.this
)
542 def EnsureVisible(self
,arg0
):
543 val
= controls2c
.wxTreeCtrl_EnsureVisible(self
.this
,arg0
.this
)
545 def ScrollTo(self
,arg0
):
546 val
= controls2c
.wxTreeCtrl_ScrollTo(self
.this
,arg0
.this
)
548 def EditLabel(self
,arg0
):
549 val
= controls2c
.wxTreeCtrl_EditLabel(self
.this
,arg0
.this
)
550 val
= wxTextCtrlPtr(val
)
552 def GetEditControl(self
):
553 val
= controls2c
.wxTreeCtrl_GetEditControl(self
.this
)
554 val
= wxTextCtrlPtr(val
)
556 def EndEditLabel(self
,arg0
,*args
):
557 val
= apply(controls2c
.wxTreeCtrl_EndEditLabel
,(self
.this
,arg0
.this
,)+args
)
559 def SetItemBold(self
,arg0
,*args
):
560 val
= apply(controls2c
.wxTreeCtrl_SetItemBold
,(self
.this
,arg0
.this
,)+args
)
562 def IsBold(self
,arg0
):
563 val
= controls2c
.wxTreeCtrl_IsBold(self
.this
,arg0
.this
)
566 return "<C wxTreeCtrl instance>"
567 class wxTreeCtrl(wxTreeCtrlPtr
):
568 def __init__(self
,arg0
,*args
) :
569 argl
= map(None,args
)
570 try: argl
[1] = argl
[1].this
572 try: argl
[2] = argl
[2].this
575 self
.this
= apply(controls2c
.new_wxTreeCtrl
,(arg0
.this
,)+args
)
577 wx
._StdWindowCallbacks
(self
)
584 #-------------- FUNCTION WRAPPERS ------------------
588 #-------------- VARIABLE WRAPPERS ------------------