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 wxp
._StdWindowCallbacks
(self
)
296 class wxTreeItemPtr
:
297 def __init__(self
,this
):
301 if self
.thisown
== 1 :
302 controls2c
.delete_wxTreeItem(self
.this
)
303 def __setattr__(self
,name
,value
):
304 if name
== "m_mask" :
305 controls2c
.wxTreeItem_m_mask_set(self
.this
,value
)
307 if name
== "m_itemId" :
308 controls2c
.wxTreeItem_m_itemId_set(self
.this
,value
)
310 if name
== "m_state" :
311 controls2c
.wxTreeItem_m_state_set(self
.this
,value
)
313 if name
== "m_stateMask" :
314 controls2c
.wxTreeItem_m_stateMask_set(self
.this
,value
)
316 if name
== "m_text" :
317 controls2c
.wxTreeItem_m_text_set(self
.this
,value
)
319 if name
== "m_image" :
320 controls2c
.wxTreeItem_m_image_set(self
.this
,value
)
322 if name
== "m_selectedImage" :
323 controls2c
.wxTreeItem_m_selectedImage_set(self
.this
,value
)
325 if name
== "m_children" :
326 controls2c
.wxTreeItem_m_children_set(self
.this
,value
)
328 if name
== "m_data" :
329 controls2c
.wxTreeItem_m_data_set(self
.this
,value
)
331 self
.__dict
__[name
] = value
332 def __getattr__(self
,name
):
333 if name
== "m_mask" :
334 return controls2c
.wxTreeItem_m_mask_get(self
.this
)
335 if name
== "m_itemId" :
336 return controls2c
.wxTreeItem_m_itemId_get(self
.this
)
337 if name
== "m_state" :
338 return controls2c
.wxTreeItem_m_state_get(self
.this
)
339 if name
== "m_stateMask" :
340 return controls2c
.wxTreeItem_m_stateMask_get(self
.this
)
341 if name
== "m_text" :
342 return controls2c
.wxTreeItem_m_text_get(self
.this
)
343 if name
== "m_image" :
344 return controls2c
.wxTreeItem_m_image_get(self
.this
)
345 if name
== "m_selectedImage" :
346 return controls2c
.wxTreeItem_m_selectedImage_get(self
.this
)
347 if name
== "m_children" :
348 return controls2c
.wxTreeItem_m_children_get(self
.this
)
349 if name
== "m_data" :
350 return controls2c
.wxTreeItem_m_data_get(self
.this
)
351 raise AttributeError,name
353 return "<C wxTreeItem instance>"
354 class wxTreeItem(wxTreeItemPtr
):
356 self
.this
= controls2c
.new_wxTreeItem()
362 class wxTreeEventPtr(wxCommandEventPtr
):
363 def __init__(self
,this
):
366 def __setattr__(self
,name
,value
):
367 if name
== "m_code" :
368 controls2c
.wxTreeEvent_m_code_set(self
.this
,value
)
370 if name
== "m_item" :
371 controls2c
.wxTreeEvent_m_item_set(self
.this
,value
.this
)
373 if name
== "m_oldItem" :
374 controls2c
.wxTreeEvent_m_oldItem_set(self
.this
,value
)
376 if name
== "m_pointDrag" :
377 controls2c
.wxTreeEvent_m_pointDrag_set(self
.this
,value
.this
)
379 self
.__dict
__[name
] = value
380 def __getattr__(self
,name
):
381 if name
== "m_code" :
382 return controls2c
.wxTreeEvent_m_code_get(self
.this
)
383 if name
== "m_item" :
384 return wxTreeItemPtr(controls2c
.wxTreeEvent_m_item_get(self
.this
))
385 if name
== "m_oldItem" :
386 return controls2c
.wxTreeEvent_m_oldItem_get(self
.this
)
387 if name
== "m_pointDrag" :
388 return wxPointPtr(controls2c
.wxTreeEvent_m_pointDrag_get(self
.this
))
389 raise AttributeError,name
391 return "<C wxTreeEvent instance>"
392 class wxTreeEvent(wxTreeEventPtr
):
393 def __init__(self
,this
):
399 class wxTreeCtrlPtr(wxControlPtr
):
400 def __init__(self
,this
):
403 def DeleteAllItems(self
):
404 val
= controls2c
.wxTreeCtrl_DeleteAllItems(self
.this
)
406 def DeleteItem(self
,arg0
):
407 val
= controls2c
.wxTreeCtrl_DeleteItem(self
.this
,arg0
)
410 val
= controls2c
.wxTreeCtrl_GetCount(self
.this
)
412 def GetImageList(self
,*args
):
413 val
= apply(controls2c
.wxTreeCtrl_GetImageList
,(self
.this
,)+args
)
416 val
= controls2c
.wxTreeCtrl_GetIndent(self
.this
)
418 def GetItemData(self
,arg0
):
419 val
= controls2c
.wxTreeCtrl_GetItemData(self
.this
,arg0
)
422 val
= controls2c
.wxTreeCtrl_GetItem(self
.this
)
423 val
= wxTreeItemPtr(val
)
426 def GetItemText(self
,arg0
):
427 val
= controls2c
.wxTreeCtrl_GetItemText(self
.this
,arg0
)
429 def GetParent(self
,arg0
):
430 val
= controls2c
.wxTreeCtrl_GetParent(self
.this
,arg0
)
432 def GetRootItem(self
):
433 val
= controls2c
.wxTreeCtrl_GetRootItem(self
.this
)
435 def GetSelection(self
):
436 val
= controls2c
.wxTreeCtrl_GetSelection(self
.this
)
438 def HitTest(self
,arg0
):
439 val
= controls2c
.wxTreeCtrl_HitTest(self
.this
,arg0
.this
)
441 def InsertItem(self
,arg0
,arg1
,*args
):
442 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
.this
,arg0
,arg1
.this
,)+args
)
444 def InsertItemString(self
,arg0
,arg1
,*args
):
445 val
= apply(controls2c
.wxTreeCtrl_InsertItemString
,(self
.this
,arg0
,arg1
,)+args
)
447 def ItemHasChildren(self
,arg0
):
448 val
= controls2c
.wxTreeCtrl_ItemHasChildren(self
.this
,arg0
)
450 def SelectItem(self
,arg0
):
451 val
= controls2c
.wxTreeCtrl_SelectItem(self
.this
,arg0
)
453 def SetIndent(self
,arg0
):
454 val
= controls2c
.wxTreeCtrl_SetIndent(self
.this
,arg0
)
456 def SetImageList(self
,arg0
,*args
):
457 val
= apply(controls2c
.wxTreeCtrl_SetImageList
,(self
.this
,arg0
,)+args
)
459 def SetItem(self
,arg0
):
460 val
= controls2c
.wxTreeCtrl_SetItem(self
.this
,arg0
.this
)
462 def SetItemImage(self
,arg0
,arg1
,arg2
):
463 val
= controls2c
.wxTreeCtrl_SetItemImage(self
.this
,arg0
,arg1
,arg2
)
465 def SetItemText(self
,arg0
,arg1
):
466 val
= controls2c
.wxTreeCtrl_SetItemText(self
.this
,arg0
,arg1
)
468 def SetItemData(self
,arg0
,arg1
):
469 val
= controls2c
.wxTreeCtrl_SetItemData(self
.this
,arg0
,arg1
)
472 return "<C wxTreeCtrl instance>"
473 class wxTreeCtrl(wxTreeCtrlPtr
):
474 def __init__(self
,arg0
,*args
) :
475 argl
= map(None,args
)
476 try: argl
[1] = argl
[1].this
478 try: argl
[2] = argl
[2].this
481 self
.this
= apply(controls2c
.new_wxTreeCtrl
,(arg0
.this
,)+args
)
483 wxp
._StdWindowCallbacks
(self
)
490 #-------------- FUNCTION WRAPPERS ------------------
494 #-------------- VARIABLE WRAPPERS ------------------
496 wxTREE_MASK_HANDLE
= controls2c
.wxTREE_MASK_HANDLE
497 wxTREE_MASK_STATE
= controls2c
.wxTREE_MASK_STATE
498 wxTREE_MASK_TEXT
= controls2c
.wxTREE_MASK_TEXT
499 wxTREE_MASK_IMAGE
= controls2c
.wxTREE_MASK_IMAGE
500 wxTREE_MASK_SELECTED_IMAGE
= controls2c
.wxTREE_MASK_SELECTED_IMAGE
501 wxTREE_MASK_CHILDREN
= controls2c
.wxTREE_MASK_CHILDREN
502 wxTREE_MASK_DATA
= controls2c
.wxTREE_MASK_DATA
503 wxTREE_STATE_BOLD
= controls2c
.wxTREE_STATE_BOLD
504 wxTREE_STATE_DROPHILITED
= controls2c
.wxTREE_STATE_DROPHILITED
505 wxTREE_STATE_EXPANDED
= controls2c
.wxTREE_STATE_EXPANDED
506 wxTREE_STATE_EXPANDEDONCE
= controls2c
.wxTREE_STATE_EXPANDEDONCE
507 wxTREE_STATE_FOCUSED
= controls2c
.wxTREE_STATE_FOCUSED
508 wxTREE_STATE_SELECTED
= controls2c
.wxTREE_STATE_SELECTED
509 wxTREE_STATE_CUT
= controls2c
.wxTREE_STATE_CUT
510 wxTREE_HITTEST_ABOVE
= controls2c
.wxTREE_HITTEST_ABOVE
511 wxTREE_HITTEST_BELOW
= controls2c
.wxTREE_HITTEST_BELOW
512 wxTREE_HITTEST_NOWHERE
= controls2c
.wxTREE_HITTEST_NOWHERE
513 wxTREE_HITTEST_ONITEMBUTTON
= controls2c
.wxTREE_HITTEST_ONITEMBUTTON
514 wxTREE_HITTEST_ONITEMICON
= controls2c
.wxTREE_HITTEST_ONITEMICON
515 wxTREE_HITTEST_ONITEMINDENT
= controls2c
.wxTREE_HITTEST_ONITEMINDENT
516 wxTREE_HITTEST_ONITEMLABEL
= controls2c
.wxTREE_HITTEST_ONITEMLABEL
517 wxTREE_HITTEST_ONITEMRIGHT
= controls2c
.wxTREE_HITTEST_ONITEMRIGHT
518 wxTREE_HITTEST_ONITEMSTATEICON
= controls2c
.wxTREE_HITTEST_ONITEMSTATEICON
519 wxTREE_HITTEST_TOLEFT
= controls2c
.wxTREE_HITTEST_TOLEFT
520 wxTREE_HITTEST_TORIGHT
= controls2c
.wxTREE_HITTEST_TORIGHT
521 wxTREE_HITTEST_ONITEM
= controls2c
.wxTREE_HITTEST_ONITEM
522 wxTREE_NEXT_CARET
= controls2c
.wxTREE_NEXT_CARET
523 wxTREE_NEXT_CHILD
= controls2c
.wxTREE_NEXT_CHILD
524 wxTREE_NEXT_DROPHILITE
= controls2c
.wxTREE_NEXT_DROPHILITE
525 wxTREE_NEXT_FIRSTVISIBLE
= controls2c
.wxTREE_NEXT_FIRSTVISIBLE
526 wxTREE_NEXT_NEXT
= controls2c
.wxTREE_NEXT_NEXT
527 wxTREE_NEXT_NEXTVISIBLE
= controls2c
.wxTREE_NEXT_NEXTVISIBLE
528 wxTREE_NEXT_PARENT
= controls2c
.wxTREE_NEXT_PARENT
529 wxTREE_NEXT_PREVIOUS
= controls2c
.wxTREE_NEXT_PREVIOUS
530 wxTREE_NEXT_PREVIOUSVISIBLE
= controls2c
.wxTREE_NEXT_PREVIOUSVISIBLE
531 wxTREE_NEXT_ROOT
= controls2c
.wxTREE_NEXT_ROOT
532 wxTREE_EXPAND_EXPAND
= controls2c
.wxTREE_EXPAND_EXPAND
533 wxTREE_EXPAND_COLLAPSE
= controls2c
.wxTREE_EXPAND_COLLAPSE
534 wxTREE_EXPAND_COLLAPSE_RESET
= controls2c
.wxTREE_EXPAND_COLLAPSE_RESET
535 wxTREE_EXPAND_TOGGLE
= controls2c
.wxTREE_EXPAND_TOGGLE
536 wxTREE_INSERT_LAST
= controls2c
.wxTREE_INSERT_LAST
537 wxTREE_INSERT_FIRST
= controls2c
.wxTREE_INSERT_FIRST
538 wxTREE_INSERT_SORT
= controls2c
.wxTREE_INSERT_SORT