1 # This file was created automatically by SWIG.
12 from controls
import *
14 def __init__(self
,this
):
18 if self
.thisown
== 1 :
19 controls2c
.delete_wxListItem(self
.this
)
20 def __setattr__(self
,name
,value
):
22 controls2c
.wxListItem_m_mask_set(self
.this
,value
)
24 if name
== "m_itemId" :
25 controls2c
.wxListItem_m_itemId_set(self
.this
,value
)
28 controls2c
.wxListItem_m_col_set(self
.this
,value
)
30 if name
== "m_state" :
31 controls2c
.wxListItem_m_state_set(self
.this
,value
)
33 if name
== "m_stateMask" :
34 controls2c
.wxListItem_m_stateMask_set(self
.this
,value
)
37 controls2c
.wxListItem_m_text_set(self
.this
,value
)
39 if name
== "m_image" :
40 controls2c
.wxListItem_m_image_set(self
.this
,value
)
43 controls2c
.wxListItem_m_data_set(self
.this
,value
)
45 if name
== "m_format" :
46 controls2c
.wxListItem_m_format_set(self
.this
,value
)
48 if name
== "m_width" :
49 controls2c
.wxListItem_m_width_set(self
.this
,value
)
51 self
.__dict
__[name
] = value
52 def __getattr__(self
,name
):
54 return controls2c
.wxListItem_m_mask_get(self
.this
)
55 if name
== "m_itemId" :
56 return controls2c
.wxListItem_m_itemId_get(self
.this
)
58 return controls2c
.wxListItem_m_col_get(self
.this
)
59 if name
== "m_state" :
60 return controls2c
.wxListItem_m_state_get(self
.this
)
61 if name
== "m_stateMask" :
62 return controls2c
.wxListItem_m_stateMask_get(self
.this
)
64 return controls2c
.wxListItem_m_text_get(self
.this
)
65 if name
== "m_image" :
66 return controls2c
.wxListItem_m_image_get(self
.this
)
68 return controls2c
.wxListItem_m_data_get(self
.this
)
69 if name
== "m_format" :
70 return controls2c
.wxListItem_m_format_get(self
.this
)
71 if name
== "m_width" :
72 return controls2c
.wxListItem_m_width_get(self
.this
)
73 raise AttributeError,name
75 return "<C wxListItem instance>"
76 class wxListItem(wxListItemPtr
):
78 self
.this
= controls2c
.new_wxListItem()
84 class wxListEventPtr(wxCommandEventPtr
):
85 def __init__(self
,this
):
88 def __setattr__(self
,name
,value
):
90 controls2c
.wxListEvent_m_code_set(self
.this
,value
)
92 if name
== "m_itemIndex" :
93 controls2c
.wxListEvent_m_itemIndex_set(self
.this
,value
)
95 if name
== "m_oldItemIndex" :
96 controls2c
.wxListEvent_m_oldItemIndex_set(self
.this
,value
)
99 controls2c
.wxListEvent_m_col_set(self
.this
,value
)
101 if name
== "m_cancelled" :
102 controls2c
.wxListEvent_m_cancelled_set(self
.this
,value
)
104 if name
== "m_pointDrag" :
105 controls2c
.wxListEvent_m_pointDrag_set(self
.this
,value
.this
)
107 if name
== "m_item" :
108 controls2c
.wxListEvent_m_item_set(self
.this
,value
.this
)
110 self
.__dict
__[name
] = value
111 def __getattr__(self
,name
):
112 if name
== "m_code" :
113 return controls2c
.wxListEvent_m_code_get(self
.this
)
114 if name
== "m_itemIndex" :
115 return controls2c
.wxListEvent_m_itemIndex_get(self
.this
)
116 if name
== "m_oldItemIndex" :
117 return controls2c
.wxListEvent_m_oldItemIndex_get(self
.this
)
119 return controls2c
.wxListEvent_m_col_get(self
.this
)
120 if name
== "m_cancelled" :
121 return controls2c
.wxListEvent_m_cancelled_get(self
.this
)
122 if name
== "m_pointDrag" :
123 return wxPointPtr(controls2c
.wxListEvent_m_pointDrag_get(self
.this
))
124 if name
== "m_item" :
125 return wxListItemPtr(controls2c
.wxListEvent_m_item_get(self
.this
))
126 raise AttributeError,name
128 return "<C wxListEvent instance>"
129 class wxListEvent(wxListEventPtr
):
130 def __init__(self
,this
):
136 class wxListCtrlPtr(wxControlPtr
):
137 def __init__(self
,this
):
140 def Arrange(self
,*args
):
141 val
= apply(controls2c
.wxListCtrl_Arrange
,(self
.this
,)+args
)
143 def DeleteItem(self
,arg0
):
144 val
= controls2c
.wxListCtrl_DeleteItem(self
.this
,arg0
)
146 def DeleteAllItems(self
):
147 val
= controls2c
.wxListCtrl_DeleteAllItems(self
.this
)
149 def DeleteColumn(self
,arg0
):
150 val
= controls2c
.wxListCtrl_DeleteColumn(self
.this
,arg0
)
152 def EnsureVisible(self
,arg0
):
153 val
= controls2c
.wxListCtrl_EnsureVisible(self
.this
,arg0
)
155 def FindItem(self
,arg0
,arg1
,*args
):
156 val
= apply(controls2c
.wxListCtrl_FindItem
,(self
.this
,arg0
,arg1
,)+args
)
158 def FindItemData(self
,arg0
,arg1
):
159 val
= controls2c
.wxListCtrl_FindItemData(self
.this
,arg0
,arg1
)
161 def FindItemAtPos(self
,arg0
,arg1
,arg2
):
162 val
= controls2c
.wxListCtrl_FindItemAtPos(self
.this
,arg0
,arg1
.this
,arg2
)
164 def GetColumn(self
,arg0
,arg1
):
165 val
= controls2c
.wxListCtrl_GetColumn(self
.this
,arg0
,arg1
.this
)
167 def GetColumnWidth(self
,arg0
):
168 val
= controls2c
.wxListCtrl_GetColumnWidth(self
.this
,arg0
)
170 def GetCountPerPage(self
):
171 val
= controls2c
.wxListCtrl_GetCountPerPage(self
.this
)
173 def GetImageList(self
,arg0
):
174 val
= controls2c
.wxListCtrl_GetImageList(self
.this
,arg0
)
176 def GetItemData(self
,arg0
):
177 val
= controls2c
.wxListCtrl_GetItemData(self
.this
,arg0
)
180 val
= controls2c
.wxListCtrl_GetItem(self
.this
)
181 val
= wxListItemPtr(val
)
184 def GetItemPosition(self
,arg0
):
185 val
= controls2c
.wxListCtrl_GetItemPosition(self
.this
,arg0
)
186 val
= wxPointPtr(val
)
189 def GetItemRect(self
,arg0
,*args
):
190 val
= apply(controls2c
.wxListCtrl_GetItemRect
,(self
.this
,arg0
,)+args
)
194 def GetItemState(self
,arg0
,arg1
):
195 val
= controls2c
.wxListCtrl_GetItemState(self
.this
,arg0
,arg1
)
197 def GetItemCount(self
):
198 val
= controls2c
.wxListCtrl_GetItemCount(self
.this
)
200 def GetItemSpacing(self
,arg0
):
201 val
= controls2c
.wxListCtrl_GetItemSpacing(self
.this
,arg0
)
203 def GetItemText(self
,arg0
):
204 val
= controls2c
.wxListCtrl_GetItemText(self
.this
,arg0
)
206 def GetNextItem(self
,arg0
,*args
):
207 val
= apply(controls2c
.wxListCtrl_GetNextItem
,(self
.this
,arg0
,)+args
)
209 def GetSelectedItemCount(self
):
210 val
= controls2c
.wxListCtrl_GetSelectedItemCount(self
.this
)
212 def GetTopItem(self
):
213 val
= controls2c
.wxListCtrl_GetTopItem(self
.this
)
215 def HitTest(self
,arg0
):
216 val
= controls2c
.wxListCtrl_HitTest(self
.this
,arg0
.this
)
218 def InsertColumnWithInfo(self
,arg0
,arg1
):
219 val
= controls2c
.wxListCtrl_InsertColumnWithInfo(self
.this
,arg0
,arg1
.this
)
221 def InsertColumn(self
,arg0
,arg1
,*args
):
222 val
= apply(controls2c
.wxListCtrl_InsertColumn
,(self
.this
,arg0
,arg1
,)+args
)
224 def InsertItem(self
,arg0
):
225 val
= controls2c
.wxListCtrl_InsertItem(self
.this
,arg0
.this
)
227 def InsertStringItem(self
,arg0
,arg1
):
228 val
= controls2c
.wxListCtrl_InsertStringItem(self
.this
,arg0
,arg1
)
230 def InsertImageItem(self
,arg0
,arg1
):
231 val
= controls2c
.wxListCtrl_InsertImageItem(self
.this
,arg0
,arg1
)
233 def InsertImageStringItem(self
,arg0
,arg1
,arg2
):
234 val
= controls2c
.wxListCtrl_InsertImageStringItem(self
.this
,arg0
,arg1
,arg2
)
236 def ScrollList(self
,arg0
,arg1
):
237 val
= controls2c
.wxListCtrl_ScrollList(self
.this
,arg0
,arg1
)
239 def SetBackgroundColour(self
,arg0
):
240 val
= controls2c
.wxListCtrl_SetBackgroundColour(self
.this
,arg0
.this
)
242 def SetColumn(self
,arg0
,arg1
):
243 val
= controls2c
.wxListCtrl_SetColumn(self
.this
,arg0
,arg1
.this
)
245 def SetColumnWidth(self
,arg0
,arg1
):
246 val
= controls2c
.wxListCtrl_SetColumnWidth(self
.this
,arg0
,arg1
)
248 def SetImageList(self
,arg0
,arg1
):
249 val
= controls2c
.wxListCtrl_SetImageList(self
.this
,arg0
,arg1
)
251 def SetItem(self
,arg0
):
252 val
= controls2c
.wxListCtrl_SetItem(self
.this
,arg0
.this
)
254 def SetItemString(self
,arg0
,arg1
,arg2
,*args
):
255 val
= apply(controls2c
.wxListCtrl_SetItemString
,(self
.this
,arg0
,arg1
,arg2
,)+args
)
257 def SetItemData(self
,arg0
,arg1
):
258 val
= controls2c
.wxListCtrl_SetItemData(self
.this
,arg0
,arg1
)
260 def SetItemImage(self
,arg0
,arg1
,arg2
):
261 val
= controls2c
.wxListCtrl_SetItemImage(self
.this
,arg0
,arg1
,arg2
)
263 def SetItemPosition(self
,arg0
,arg1
):
264 val
= controls2c
.wxListCtrl_SetItemPosition(self
.this
,arg0
,arg1
.this
)
266 def SetItemState(self
,arg0
,arg1
,arg2
):
267 val
= controls2c
.wxListCtrl_SetItemState(self
.this
,arg0
,arg1
,arg2
)
269 def SetItemText(self
,arg0
,arg1
):
270 val
= controls2c
.wxListCtrl_SetItemText(self
.this
,arg0
,arg1
)
272 def SetSingleStyle(self
,arg0
,*args
):
273 val
= apply(controls2c
.wxListCtrl_SetSingleStyle
,(self
.this
,arg0
,)+args
)
275 def SetWindowStyleFlag(self
,arg0
):
276 val
= controls2c
.wxListCtrl_SetWindowStyleFlag(self
.this
,arg0
)
279 return "<C wxListCtrl instance>"
280 class wxListCtrl(wxListCtrlPtr
):
281 def __init__(self
,arg0
,arg1
,*args
) :
282 argl
= map(None,args
)
283 try: argl
[0] = argl
[0].this
285 try: argl
[1] = argl
[1].this
288 self
.this
= apply(controls2c
.new_wxListCtrl
,(arg0
.this
,arg1
,)+args
)
294 class wxTreeItemPtr
:
295 def __init__(self
,this
):
299 if self
.thisown
== 1 :
300 controls2c
.delete_wxTreeItem(self
.this
)
301 def __setattr__(self
,name
,value
):
302 if name
== "m_mask" :
303 controls2c
.wxTreeItem_m_mask_set(self
.this
,value
)
305 if name
== "m_itemId" :
306 controls2c
.wxTreeItem_m_itemId_set(self
.this
,value
)
308 if name
== "m_state" :
309 controls2c
.wxTreeItem_m_state_set(self
.this
,value
)
311 if name
== "m_stateMask" :
312 controls2c
.wxTreeItem_m_stateMask_set(self
.this
,value
)
314 if name
== "m_text" :
315 controls2c
.wxTreeItem_m_text_set(self
.this
,value
)
317 if name
== "m_image" :
318 controls2c
.wxTreeItem_m_image_set(self
.this
,value
)
320 if name
== "m_selectedImage" :
321 controls2c
.wxTreeItem_m_selectedImage_set(self
.this
,value
)
323 if name
== "m_children" :
324 controls2c
.wxTreeItem_m_children_set(self
.this
,value
)
326 if name
== "m_data" :
327 controls2c
.wxTreeItem_m_data_set(self
.this
,value
)
329 self
.__dict
__[name
] = value
330 def __getattr__(self
,name
):
331 if name
== "m_mask" :
332 return controls2c
.wxTreeItem_m_mask_get(self
.this
)
333 if name
== "m_itemId" :
334 return controls2c
.wxTreeItem_m_itemId_get(self
.this
)
335 if name
== "m_state" :
336 return controls2c
.wxTreeItem_m_state_get(self
.this
)
337 if name
== "m_stateMask" :
338 return controls2c
.wxTreeItem_m_stateMask_get(self
.this
)
339 if name
== "m_text" :
340 return controls2c
.wxTreeItem_m_text_get(self
.this
)
341 if name
== "m_image" :
342 return controls2c
.wxTreeItem_m_image_get(self
.this
)
343 if name
== "m_selectedImage" :
344 return controls2c
.wxTreeItem_m_selectedImage_get(self
.this
)
345 if name
== "m_children" :
346 return controls2c
.wxTreeItem_m_children_get(self
.this
)
347 if name
== "m_data" :
348 return controls2c
.wxTreeItem_m_data_get(self
.this
)
349 raise AttributeError,name
351 return "<C wxTreeItem instance>"
352 class wxTreeItem(wxTreeItemPtr
):
354 self
.this
= controls2c
.new_wxTreeItem()
360 class wxTreeEventPtr(wxCommandEventPtr
):
361 def __init__(self
,this
):
364 def __setattr__(self
,name
,value
):
365 if name
== "m_code" :
366 controls2c
.wxTreeEvent_m_code_set(self
.this
,value
)
368 if name
== "m_item" :
369 controls2c
.wxTreeEvent_m_item_set(self
.this
,value
.this
)
371 if name
== "m_oldItem" :
372 controls2c
.wxTreeEvent_m_oldItem_set(self
.this
,value
)
374 if name
== "m_pointDrag" :
375 controls2c
.wxTreeEvent_m_pointDrag_set(self
.this
,value
.this
)
377 self
.__dict
__[name
] = value
378 def __getattr__(self
,name
):
379 if name
== "m_code" :
380 return controls2c
.wxTreeEvent_m_code_get(self
.this
)
381 if name
== "m_item" :
382 return wxTreeItemPtr(controls2c
.wxTreeEvent_m_item_get(self
.this
))
383 if name
== "m_oldItem" :
384 return controls2c
.wxTreeEvent_m_oldItem_get(self
.this
)
385 if name
== "m_pointDrag" :
386 return wxPointPtr(controls2c
.wxTreeEvent_m_pointDrag_get(self
.this
))
387 raise AttributeError,name
389 return "<C wxTreeEvent instance>"
390 class wxTreeEvent(wxTreeEventPtr
):
391 def __init__(self
,this
):
397 class wxTreeCtrlPtr(wxControlPtr
):
398 def __init__(self
,this
):
401 def DeleteAllItems(self
):
402 val
= controls2c
.wxTreeCtrl_DeleteAllItems(self
.this
)
404 def DeleteItem(self
,arg0
):
405 val
= controls2c
.wxTreeCtrl_DeleteItem(self
.this
,arg0
)
408 val
= controls2c
.wxTreeCtrl_GetCount(self
.this
)
410 def GetImageList(self
,*args
):
411 val
= apply(controls2c
.wxTreeCtrl_GetImageList
,(self
.this
,)+args
)
414 val
= controls2c
.wxTreeCtrl_GetIndent(self
.this
)
416 def GetItemData(self
,arg0
):
417 val
= controls2c
.wxTreeCtrl_GetItemData(self
.this
,arg0
)
420 val
= controls2c
.wxTreeCtrl_GetItem(self
.this
)
421 val
= wxTreeItemPtr(val
)
424 def GetItemText(self
,arg0
):
425 val
= controls2c
.wxTreeCtrl_GetItemText(self
.this
,arg0
)
427 def GetParent(self
,arg0
):
428 val
= controls2c
.wxTreeCtrl_GetParent(self
.this
,arg0
)
430 def GetRootItem(self
):
431 val
= controls2c
.wxTreeCtrl_GetRootItem(self
.this
)
433 def GetSelection(self
):
434 val
= controls2c
.wxTreeCtrl_GetSelection(self
.this
)
436 def HitTest(self
,arg0
):
437 val
= controls2c
.wxTreeCtrl_HitTest(self
.this
,arg0
.this
)
439 def InsertItem(self
,arg0
,arg1
,*args
):
440 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
.this
,arg0
,arg1
.this
,)+args
)
442 def InsertItemString(self
,arg0
,arg1
,*args
):
443 val
= apply(controls2c
.wxTreeCtrl_InsertItemString
,(self
.this
,arg0
,arg1
,)+args
)
445 def ItemHasChildren(self
,arg0
):
446 val
= controls2c
.wxTreeCtrl_ItemHasChildren(self
.this
,arg0
)
448 def SelectItem(self
,arg0
):
449 val
= controls2c
.wxTreeCtrl_SelectItem(self
.this
,arg0
)
451 def SetIndent(self
,arg0
):
452 val
= controls2c
.wxTreeCtrl_SetIndent(self
.this
,arg0
)
454 def SetImageList(self
,arg0
,*args
):
455 val
= apply(controls2c
.wxTreeCtrl_SetImageList
,(self
.this
,arg0
,)+args
)
457 def SetItem(self
,arg0
):
458 val
= controls2c
.wxTreeCtrl_SetItem(self
.this
,arg0
.this
)
460 def SetItemImage(self
,arg0
,arg1
,arg2
):
461 val
= controls2c
.wxTreeCtrl_SetItemImage(self
.this
,arg0
,arg1
,arg2
)
463 def SetItemText(self
,arg0
,arg1
):
464 val
= controls2c
.wxTreeCtrl_SetItemText(self
.this
,arg0
,arg1
)
466 def SetItemData(self
,arg0
,arg1
):
467 val
= controls2c
.wxTreeCtrl_SetItemData(self
.this
,arg0
,arg1
)
470 return "<C wxTreeCtrl instance>"
471 class wxTreeCtrl(wxTreeCtrlPtr
):
472 def __init__(self
,arg0
,*args
) :
473 argl
= map(None,args
)
474 try: argl
[1] = argl
[1].this
476 try: argl
[2] = argl
[2].this
479 self
.this
= apply(controls2c
.new_wxTreeCtrl
,(arg0
.this
,)+args
)
487 #-------------- FUNCTION WRAPPERS ------------------
491 #-------------- VARIABLE WRAPPERS ------------------
493 wxTREE_MASK_HANDLE
= controls2c
.wxTREE_MASK_HANDLE
494 wxTREE_MASK_STATE
= controls2c
.wxTREE_MASK_STATE
495 wxTREE_MASK_TEXT
= controls2c
.wxTREE_MASK_TEXT
496 wxTREE_MASK_IMAGE
= controls2c
.wxTREE_MASK_IMAGE
497 wxTREE_MASK_SELECTED_IMAGE
= controls2c
.wxTREE_MASK_SELECTED_IMAGE
498 wxTREE_MASK_CHILDREN
= controls2c
.wxTREE_MASK_CHILDREN
499 wxTREE_MASK_DATA
= controls2c
.wxTREE_MASK_DATA
500 wxTREE_STATE_BOLD
= controls2c
.wxTREE_STATE_BOLD
501 wxTREE_STATE_DROPHILITED
= controls2c
.wxTREE_STATE_DROPHILITED
502 wxTREE_STATE_EXPANDED
= controls2c
.wxTREE_STATE_EXPANDED
503 wxTREE_STATE_EXPANDEDONCE
= controls2c
.wxTREE_STATE_EXPANDEDONCE
504 wxTREE_STATE_FOCUSED
= controls2c
.wxTREE_STATE_FOCUSED
505 wxTREE_STATE_SELECTED
= controls2c
.wxTREE_STATE_SELECTED
506 wxTREE_STATE_CUT
= controls2c
.wxTREE_STATE_CUT
507 wxTREE_HITTEST_ABOVE
= controls2c
.wxTREE_HITTEST_ABOVE
508 wxTREE_HITTEST_BELOW
= controls2c
.wxTREE_HITTEST_BELOW
509 wxTREE_HITTEST_NOWHERE
= controls2c
.wxTREE_HITTEST_NOWHERE
510 wxTREE_HITTEST_ONITEMBUTTON
= controls2c
.wxTREE_HITTEST_ONITEMBUTTON
511 wxTREE_HITTEST_ONITEMICON
= controls2c
.wxTREE_HITTEST_ONITEMICON
512 wxTREE_HITTEST_ONITEMINDENT
= controls2c
.wxTREE_HITTEST_ONITEMINDENT
513 wxTREE_HITTEST_ONITEMLABEL
= controls2c
.wxTREE_HITTEST_ONITEMLABEL
514 wxTREE_HITTEST_ONITEMRIGHT
= controls2c
.wxTREE_HITTEST_ONITEMRIGHT
515 wxTREE_HITTEST_ONITEMSTATEICON
= controls2c
.wxTREE_HITTEST_ONITEMSTATEICON
516 wxTREE_HITTEST_TOLEFT
= controls2c
.wxTREE_HITTEST_TOLEFT
517 wxTREE_HITTEST_TORIGHT
= controls2c
.wxTREE_HITTEST_TORIGHT
518 wxTREE_HITTEST_ONITEM
= controls2c
.wxTREE_HITTEST_ONITEM
519 wxTREE_NEXT_CARET
= controls2c
.wxTREE_NEXT_CARET
520 wxTREE_NEXT_CHILD
= controls2c
.wxTREE_NEXT_CHILD
521 wxTREE_NEXT_DROPHILITE
= controls2c
.wxTREE_NEXT_DROPHILITE
522 wxTREE_NEXT_FIRSTVISIBLE
= controls2c
.wxTREE_NEXT_FIRSTVISIBLE
523 wxTREE_NEXT_NEXT
= controls2c
.wxTREE_NEXT_NEXT
524 wxTREE_NEXT_NEXTVISIBLE
= controls2c
.wxTREE_NEXT_NEXTVISIBLE
525 wxTREE_NEXT_PARENT
= controls2c
.wxTREE_NEXT_PARENT
526 wxTREE_NEXT_PREVIOUS
= controls2c
.wxTREE_NEXT_PREVIOUS
527 wxTREE_NEXT_PREVIOUSVISIBLE
= controls2c
.wxTREE_NEXT_PREVIOUSVISIBLE
528 wxTREE_NEXT_ROOT
= controls2c
.wxTREE_NEXT_ROOT
529 wxTREE_EXPAND_EXPAND
= controls2c
.wxTREE_EXPAND_EXPAND
530 wxTREE_EXPAND_COLLAPSE
= controls2c
.wxTREE_EXPAND_COLLAPSE
531 wxTREE_EXPAND_COLLAPSE_RESET
= controls2c
.wxTREE_EXPAND_COLLAPSE_RESET
532 wxTREE_EXPAND_TOGGLE
= controls2c
.wxTREE_EXPAND_TOGGLE
533 wxTREE_INSERT_LAST
= controls2c
.wxTREE_INSERT_LAST
534 wxTREE_INSERT_FIRST
= controls2c
.wxTREE_INSERT_FIRST
535 wxTREE_INSERT_SORT
= controls2c
.wxTREE_INSERT_SORT