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 DeleteAllColumns(self
):
154 val
= controls2c
.wxListCtrl_DeleteAllColumns(self
.this
)
157 val
= controls2c
.wxListCtrl_ClearAll(self
.this
)
159 def EditLabel(self
,arg0
):
160 val
= controls2c
.wxListCtrl_EditLabel(self
.this
,arg0
)
161 val
= wxTextCtrlPtr(val
)
163 def EndEditLabel(self
,arg0
):
164 val
= controls2c
.wxListCtrl_EndEditLabel(self
.this
,arg0
)
166 def GetEditControl(self
):
167 val
= controls2c
.wxListCtrl_GetEditControl(self
.this
)
168 val
= wxTextCtrlPtr(val
)
170 def EnsureVisible(self
,arg0
):
171 val
= controls2c
.wxListCtrl_EnsureVisible(self
.this
,arg0
)
173 def FindItem(self
,arg0
,arg1
,*args
):
174 val
= apply(controls2c
.wxListCtrl_FindItem
,(self
.this
,arg0
,arg1
,)+args
)
176 def FindItemData(self
,arg0
,arg1
):
177 val
= controls2c
.wxListCtrl_FindItemData(self
.this
,arg0
,arg1
)
179 def FindItemAtPos(self
,arg0
,arg1
,arg2
):
180 val
= controls2c
.wxListCtrl_FindItemAtPos(self
.this
,arg0
,arg1
.this
,arg2
)
182 def GetColumn(self
,arg0
,arg1
):
183 val
= controls2c
.wxListCtrl_GetColumn(self
.this
,arg0
,arg1
.this
)
185 def GetColumnWidth(self
,arg0
):
186 val
= controls2c
.wxListCtrl_GetColumnWidth(self
.this
,arg0
)
188 def GetCountPerPage(self
):
189 val
= controls2c
.wxListCtrl_GetCountPerPage(self
.this
)
191 def GetImageList(self
,arg0
):
192 val
= controls2c
.wxListCtrl_GetImageList(self
.this
,arg0
)
194 def GetItemData(self
,arg0
):
195 val
= controls2c
.wxListCtrl_GetItemData(self
.this
,arg0
)
198 val
= controls2c
.wxListCtrl_GetItem(self
.this
)
199 val
= wxListItemPtr(val
)
202 def GetItemPosition(self
,arg0
):
203 val
= controls2c
.wxListCtrl_GetItemPosition(self
.this
,arg0
)
204 val
= wxPointPtr(val
)
207 def GetItemRect(self
,arg0
,*args
):
208 val
= apply(controls2c
.wxListCtrl_GetItemRect
,(self
.this
,arg0
,)+args
)
212 def GetItemState(self
,arg0
,arg1
):
213 val
= controls2c
.wxListCtrl_GetItemState(self
.this
,arg0
,arg1
)
215 def GetItemCount(self
):
216 val
= controls2c
.wxListCtrl_GetItemCount(self
.this
)
218 def GetItemSpacing(self
,arg0
):
219 val
= controls2c
.wxListCtrl_GetItemSpacing(self
.this
,arg0
)
221 def GetItemText(self
,arg0
):
222 val
= controls2c
.wxListCtrl_GetItemText(self
.this
,arg0
)
224 def GetNextItem(self
,arg0
,*args
):
225 val
= apply(controls2c
.wxListCtrl_GetNextItem
,(self
.this
,arg0
,)+args
)
227 def GetSelectedItemCount(self
):
228 val
= controls2c
.wxListCtrl_GetSelectedItemCount(self
.this
)
230 def GetTextColour(self
):
231 val
= controls2c
.wxListCtrl_GetTextColour(self
.this
)
232 val
= wxColourPtr(val
)
235 def SetTextColour(self
,arg0
):
236 val
= controls2c
.wxListCtrl_SetTextColour(self
.this
,arg0
.this
)
238 def GetTopItem(self
):
239 val
= controls2c
.wxListCtrl_GetTopItem(self
.this
)
241 def HitTest(self
,arg0
):
242 val
= controls2c
.wxListCtrl_HitTest(self
.this
,arg0
.this
)
244 def InsertColumnWithInfo(self
,arg0
,arg1
):
245 val
= controls2c
.wxListCtrl_InsertColumnWithInfo(self
.this
,arg0
,arg1
.this
)
247 def InsertColumn(self
,arg0
,arg1
,*args
):
248 val
= apply(controls2c
.wxListCtrl_InsertColumn
,(self
.this
,arg0
,arg1
,)+args
)
250 def InsertItem(self
,arg0
):
251 val
= controls2c
.wxListCtrl_InsertItem(self
.this
,arg0
.this
)
253 def InsertStringItem(self
,arg0
,arg1
):
254 val
= controls2c
.wxListCtrl_InsertStringItem(self
.this
,arg0
,arg1
)
256 def InsertImageItem(self
,arg0
,arg1
):
257 val
= controls2c
.wxListCtrl_InsertImageItem(self
.this
,arg0
,arg1
)
259 def InsertImageStringItem(self
,arg0
,arg1
,arg2
):
260 val
= controls2c
.wxListCtrl_InsertImageStringItem(self
.this
,arg0
,arg1
,arg2
)
262 def ScrollList(self
,arg0
,arg1
):
263 val
= controls2c
.wxListCtrl_ScrollList(self
.this
,arg0
,arg1
)
265 def SetBackgroundColour(self
,arg0
):
266 val
= controls2c
.wxListCtrl_SetBackgroundColour(self
.this
,arg0
.this
)
268 def SetColumn(self
,arg0
,arg1
):
269 val
= controls2c
.wxListCtrl_SetColumn(self
.this
,arg0
,arg1
.this
)
271 def SetColumnWidth(self
,arg0
,arg1
):
272 val
= controls2c
.wxListCtrl_SetColumnWidth(self
.this
,arg0
,arg1
)
274 def SetImageList(self
,arg0
,arg1
):
275 val
= controls2c
.wxListCtrl_SetImageList(self
.this
,arg0
,arg1
)
277 def SetItem(self
,arg0
):
278 val
= controls2c
.wxListCtrl_SetItem(self
.this
,arg0
.this
)
280 def SetItemString(self
,arg0
,arg1
,arg2
,*args
):
281 val
= apply(controls2c
.wxListCtrl_SetItemString
,(self
.this
,arg0
,arg1
,arg2
,)+args
)
283 def SetItemData(self
,arg0
,arg1
):
284 val
= controls2c
.wxListCtrl_SetItemData(self
.this
,arg0
,arg1
)
286 def SetItemImage(self
,arg0
,arg1
,arg2
):
287 val
= controls2c
.wxListCtrl_SetItemImage(self
.this
,arg0
,arg1
,arg2
)
289 def SetItemPosition(self
,arg0
,arg1
):
290 val
= controls2c
.wxListCtrl_SetItemPosition(self
.this
,arg0
,arg1
.this
)
292 def SetItemState(self
,arg0
,arg1
,arg2
):
293 val
= controls2c
.wxListCtrl_SetItemState(self
.this
,arg0
,arg1
,arg2
)
295 def SetItemText(self
,arg0
,arg1
):
296 val
= controls2c
.wxListCtrl_SetItemText(self
.this
,arg0
,arg1
)
298 def SetSingleStyle(self
,arg0
,*args
):
299 val
= apply(controls2c
.wxListCtrl_SetSingleStyle
,(self
.this
,arg0
,)+args
)
301 def SetWindowStyleFlag(self
,arg0
):
302 val
= controls2c
.wxListCtrl_SetWindowStyleFlag(self
.this
,arg0
)
305 return "<C wxListCtrl instance>"
306 class wxListCtrl(wxListCtrlPtr
):
307 def __init__(self
,arg0
,arg1
,*args
) :
308 argl
= map(None,args
)
309 try: argl
[0] = argl
[0].this
311 try: argl
[1] = argl
[1].this
314 self
.this
= apply(controls2c
.new_wxListCtrl
,(arg0
.this
,arg1
,)+args
)
316 wx
._StdWindowCallbacks
(self
)
321 class wxTreeItemIdPtr
:
322 def __init__(self
,this
):
326 if self
.thisown
== 1 :
327 controls2c
.delete_wxTreeItemId(self
.this
)
329 val
= controls2c
.wxTreeItemId_IsOk(self
.this
)
332 return "<C wxTreeItemId instance>"
333 class wxTreeItemId(wxTreeItemIdPtr
):
335 self
.this
= controls2c
.new_wxTreeItemId()
341 class wxTreeItemDataPtr
:
342 def __init__(self
,this
):
346 if self
.thisown
== 1 :
347 controls2c
.delete_wxTreeItemData(self
.this
)
349 val
= controls2c
.wxTreeItemData_GetId(self
.this
)
350 val
= wxTreeItemIdPtr(val
)
352 def SetId(self
,arg0
):
353 val
= controls2c
.wxTreeItemData_SetId(self
.this
,arg0
.this
)
356 return "<C wxTreeItemData instance>"
357 class wxTreeItemData(wxTreeItemDataPtr
):
359 self
.this
= controls2c
.new_wxTreeItemData()
365 class wxTreeEventPtr(wxCommandEventPtr
):
366 def __init__(self
,this
):
370 val
= controls2c
.wxTreeEvent_GetItem(self
.this
)
371 val
= wxTreeItemIdPtr(val
)
374 def GetOldItem(self
):
375 val
= controls2c
.wxTreeEvent_GetOldItem(self
.this
)
376 val
= wxTreeItemIdPtr(val
)
380 val
= controls2c
.wxTreeEvent_GetPoint(self
.this
)
381 val
= wxPointPtr(val
)
385 val
= controls2c
.wxTreeEvent_GetCode(self
.this
)
388 val
= controls2c
.wxTreeEvent_Veto(self
.this
)
391 return "<C wxTreeEvent instance>"
392 class wxTreeEvent(wxTreeEventPtr
):
393 def __init__(self
,this
):
399 class wxTreeCtrlPtr(wxControlPtr
):
400 def __init__(self
,this
):
404 val
= controls2c
.wxTreeCtrl_GetCount(self
.this
)
407 val
= controls2c
.wxTreeCtrl_GetIndent(self
.this
)
409 def SetIndent(self
,arg0
):
410 val
= controls2c
.wxTreeCtrl_SetIndent(self
.this
,arg0
)
412 def GetImageList(self
):
413 val
= controls2c
.wxTreeCtrl_GetImageList(self
.this
)
415 def GetStateImageList(self
):
416 val
= controls2c
.wxTreeCtrl_GetStateImageList(self
.this
)
418 def SetImageList(self
,arg0
):
419 val
= controls2c
.wxTreeCtrl_SetImageList(self
.this
,arg0
)
421 def SetStateImageList(self
,arg0
):
422 val
= controls2c
.wxTreeCtrl_SetStateImageList(self
.this
,arg0
)
424 def GetItemText(self
,arg0
):
425 val
= controls2c
.wxTreeCtrl_GetItemText(self
.this
,arg0
.this
)
427 def GetItemImage(self
,arg0
):
428 val
= controls2c
.wxTreeCtrl_GetItemImage(self
.this
,arg0
.this
)
430 def GetItemSelectedImage(self
,arg0
):
431 val
= controls2c
.wxTreeCtrl_GetItemSelectedImage(self
.this
,arg0
.this
)
433 def GetItemData(self
,arg0
):
434 val
= controls2c
.wxTreeCtrl_GetItemData(self
.this
,arg0
.this
)
435 val
= wxTreeItemDataPtr(val
)
437 def SetItemText(self
,arg0
,arg1
):
438 val
= controls2c
.wxTreeCtrl_SetItemText(self
.this
,arg0
.this
,arg1
)
440 def SetItemImage(self
,arg0
,arg1
):
441 val
= controls2c
.wxTreeCtrl_SetItemImage(self
.this
,arg0
.this
,arg1
)
443 def SetItemSelectedImage(self
,arg0
,arg1
):
444 val
= controls2c
.wxTreeCtrl_SetItemSelectedImage(self
.this
,arg0
.this
,arg1
)
446 def SetItemData(self
,arg0
,arg1
):
447 val
= controls2c
.wxTreeCtrl_SetItemData(self
.this
,arg0
.this
,arg1
.this
)
449 def IsVisible(self
,arg0
):
450 val
= controls2c
.wxTreeCtrl_IsVisible(self
.this
,arg0
.this
)
452 def ItemHasChildren(self
,arg0
):
453 val
= controls2c
.wxTreeCtrl_ItemHasChildren(self
.this
,arg0
.this
)
455 def IsExpanded(self
,arg0
):
456 val
= controls2c
.wxTreeCtrl_IsExpanded(self
.this
,arg0
.this
)
458 def IsSelected(self
,arg0
):
459 val
= controls2c
.wxTreeCtrl_IsSelected(self
.this
,arg0
.this
)
461 def GetRootItem(self
):
462 val
= controls2c
.wxTreeCtrl_GetRootItem(self
.this
)
463 val
= wxTreeItemIdPtr(val
)
466 def GetSelection(self
):
467 val
= controls2c
.wxTreeCtrl_GetSelection(self
.this
)
468 val
= wxTreeItemIdPtr(val
)
471 def GetParent(self
,arg0
):
472 val
= controls2c
.wxTreeCtrl_GetParent(self
.this
,arg0
.this
)
473 val
= wxTreeItemIdPtr(val
)
476 def GetFirstChild(self
,arg0
,arg1
):
477 val
= controls2c
.wxTreeCtrl_GetFirstChild(self
.this
,arg0
.this
,arg1
)
479 def GetNextChild(self
,arg0
,arg1
):
480 val
= controls2c
.wxTreeCtrl_GetNextChild(self
.this
,arg0
.this
,arg1
)
482 def GetNextSibling(self
,arg0
):
483 val
= controls2c
.wxTreeCtrl_GetNextSibling(self
.this
,arg0
.this
)
484 val
= wxTreeItemIdPtr(val
)
487 def GetPrevSibling(self
,arg0
):
488 val
= controls2c
.wxTreeCtrl_GetPrevSibling(self
.this
,arg0
.this
)
489 val
= wxTreeItemIdPtr(val
)
492 def GetFirstVisibleItem(self
):
493 val
= controls2c
.wxTreeCtrl_GetFirstVisibleItem(self
.this
)
494 val
= wxTreeItemIdPtr(val
)
497 def GetNextVisible(self
,arg0
):
498 val
= controls2c
.wxTreeCtrl_GetNextVisible(self
.this
,arg0
.this
)
499 val
= wxTreeItemIdPtr(val
)
502 def GetPrevVisible(self
,arg0
):
503 val
= controls2c
.wxTreeCtrl_GetPrevVisible(self
.this
,arg0
.this
)
504 val
= wxTreeItemIdPtr(val
)
507 def AddRoot(self
,arg0
,*args
):
508 argl
= map(None,args
)
509 try: argl
[2] = argl
[2].this
512 val
= apply(controls2c
.wxTreeCtrl_AddRoot
,(self
.this
,arg0
,)+args
)
513 val
= wxTreeItemIdPtr(val
)
516 def PrependItem(self
,arg0
,arg1
,*args
):
517 argl
= map(None,args
)
518 try: argl
[2] = argl
[2].this
521 val
= apply(controls2c
.wxTreeCtrl_PrependItem
,(self
.this
,arg0
.this
,arg1
,)+args
)
522 val
= wxTreeItemIdPtr(val
)
525 def InsertItem(self
,arg0
,arg1
,arg2
,*args
):
526 argl
= map(None,args
)
527 try: argl
[2] = argl
[2].this
530 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
.this
,arg0
.this
,arg1
.this
,arg2
,)+args
)
531 val
= wxTreeItemIdPtr(val
)
534 def AppendItem(self
,arg0
,arg1
,*args
):
535 argl
= map(None,args
)
536 try: argl
[2] = argl
[2].this
539 val
= apply(controls2c
.wxTreeCtrl_AppendItem
,(self
.this
,arg0
.this
,arg1
,)+args
)
540 val
= wxTreeItemIdPtr(val
)
543 def Delete(self
,arg0
):
544 val
= controls2c
.wxTreeCtrl_Delete(self
.this
,arg0
.this
)
546 def DeleteAllItems(self
):
547 val
= controls2c
.wxTreeCtrl_DeleteAllItems(self
.this
)
549 def Expand(self
,arg0
):
550 val
= controls2c
.wxTreeCtrl_Expand(self
.this
,arg0
.this
)
552 def Collapse(self
,arg0
):
553 val
= controls2c
.wxTreeCtrl_Collapse(self
.this
,arg0
.this
)
555 def CollapseAndReset(self
,arg0
):
556 val
= controls2c
.wxTreeCtrl_CollapseAndReset(self
.this
,arg0
.this
)
558 def Toggle(self
,arg0
):
559 val
= controls2c
.wxTreeCtrl_Toggle(self
.this
,arg0
.this
)
562 val
= controls2c
.wxTreeCtrl_Unselect(self
.this
)
564 def SelectItem(self
,arg0
):
565 val
= controls2c
.wxTreeCtrl_SelectItem(self
.this
,arg0
.this
)
567 def EnsureVisible(self
,arg0
):
568 val
= controls2c
.wxTreeCtrl_EnsureVisible(self
.this
,arg0
.this
)
570 def ScrollTo(self
,arg0
):
571 val
= controls2c
.wxTreeCtrl_ScrollTo(self
.this
,arg0
.this
)
573 def EditLabel(self
,arg0
):
574 val
= controls2c
.wxTreeCtrl_EditLabel(self
.this
,arg0
.this
)
575 val
= wxTextCtrlPtr(val
)
577 def GetEditControl(self
):
578 val
= controls2c
.wxTreeCtrl_GetEditControl(self
.this
)
579 val
= wxTextCtrlPtr(val
)
581 def EndEditLabel(self
,arg0
,*args
):
582 val
= apply(controls2c
.wxTreeCtrl_EndEditLabel
,(self
.this
,arg0
.this
,)+args
)
584 def SetItemBold(self
,arg0
,*args
):
585 val
= apply(controls2c
.wxTreeCtrl_SetItemBold
,(self
.this
,arg0
.this
,)+args
)
587 def IsBold(self
,arg0
):
588 val
= controls2c
.wxTreeCtrl_IsBold(self
.this
,arg0
.this
)
590 def HitTest(self
,arg0
):
591 val
= controls2c
.wxTreeCtrl_HitTest(self
.this
,arg0
.this
)
592 val
= wxTreeItemIdPtr(val
)
596 return "<C wxTreeCtrl instance>"
597 class wxTreeCtrl(wxTreeCtrlPtr
):
598 def __init__(self
,arg0
,*args
) :
599 argl
= map(None,args
)
600 try: argl
[1] = argl
[1].this
602 try: argl
[2] = argl
[2].this
605 self
.this
= apply(controls2c
.new_wxTreeCtrl
,(arg0
.this
,)+args
)
607 wx
._StdWindowCallbacks
(self
)
614 #-------------- FUNCTION WRAPPERS ------------------
618 #-------------- VARIABLE WRAPPERS ------------------