1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
14 from controls
import *
16 class wxListItemAttrPtr
:
17 def __init__(self
,this
):
20 def SetTextColour(self
, *_args
, **_kwargs
):
21 val
= apply(controls2c
.wxListItemAttr_SetTextColour
,(self
,) + _args
, _kwargs
)
23 def SetBackgroundColour(self
, *_args
, **_kwargs
):
24 val
= apply(controls2c
.wxListItemAttr_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
26 def SetFont(self
, *_args
, **_kwargs
):
27 val
= apply(controls2c
.wxListItemAttr_SetFont
,(self
,) + _args
, _kwargs
)
29 def HasTextColour(self
, *_args
, **_kwargs
):
30 val
= apply(controls2c
.wxListItemAttr_HasTextColour
,(self
,) + _args
, _kwargs
)
32 def HasBackgroundColour(self
, *_args
, **_kwargs
):
33 val
= apply(controls2c
.wxListItemAttr_HasBackgroundColour
,(self
,) + _args
, _kwargs
)
35 def HasFont(self
, *_args
, **_kwargs
):
36 val
= apply(controls2c
.wxListItemAttr_HasFont
,(self
,) + _args
, _kwargs
)
38 def GetTextColour(self
, *_args
, **_kwargs
):
39 val
= apply(controls2c
.wxListItemAttr_GetTextColour
,(self
,) + _args
, _kwargs
)
40 if val
: val
= wxColourPtr(val
)
42 def GetBackgroundColour(self
, *_args
, **_kwargs
):
43 val
= apply(controls2c
.wxListItemAttr_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
44 if val
: val
= wxColourPtr(val
)
46 def GetFont(self
, *_args
, **_kwargs
):
47 val
= apply(controls2c
.wxListItemAttr_GetFont
,(self
,) + _args
, _kwargs
)
48 if val
: val
= wxFontPtr(val
)
51 return "<C wxListItemAttr instance at %s>" % (self
.this
,)
52 class wxListItemAttr(wxListItemAttrPtr
):
53 def __init__(self
,*_args
,**_kwargs
):
54 self
.this
= apply(controls2c
.new_wxListItemAttr
,_args
,_kwargs
)
61 def __init__(self
,this
):
64 def __del__(self
,controls2c
=controls2c
):
65 if self
.thisown
== 1 :
66 controls2c
.delete_wxListItem(self
)
67 def Clear(self
, *_args
, **_kwargs
):
68 val
= apply(controls2c
.wxListItem_Clear
,(self
,) + _args
, _kwargs
)
70 def ClearAttributes(self
, *_args
, **_kwargs
):
71 val
= apply(controls2c
.wxListItem_ClearAttributes
,(self
,) + _args
, _kwargs
)
73 def SetMask(self
, *_args
, **_kwargs
):
74 val
= apply(controls2c
.wxListItem_SetMask
,(self
,) + _args
, _kwargs
)
76 def SetId(self
, *_args
, **_kwargs
):
77 val
= apply(controls2c
.wxListItem_SetId
,(self
,) + _args
, _kwargs
)
79 def SetColumn(self
, *_args
, **_kwargs
):
80 val
= apply(controls2c
.wxListItem_SetColumn
,(self
,) + _args
, _kwargs
)
82 def SetState(self
, *_args
, **_kwargs
):
83 val
= apply(controls2c
.wxListItem_SetState
,(self
,) + _args
, _kwargs
)
85 def SetStateMask(self
, *_args
, **_kwargs
):
86 val
= apply(controls2c
.wxListItem_SetStateMask
,(self
,) + _args
, _kwargs
)
88 def SetText(self
, *_args
, **_kwargs
):
89 val
= apply(controls2c
.wxListItem_SetText
,(self
,) + _args
, _kwargs
)
91 def SetImage(self
, *_args
, **_kwargs
):
92 val
= apply(controls2c
.wxListItem_SetImage
,(self
,) + _args
, _kwargs
)
94 def SetData(self
, *_args
, **_kwargs
):
95 val
= apply(controls2c
.wxListItem_SetData
,(self
,) + _args
, _kwargs
)
97 def SetWidth(self
, *_args
, **_kwargs
):
98 val
= apply(controls2c
.wxListItem_SetWidth
,(self
,) + _args
, _kwargs
)
100 def SetAlign(self
, *_args
, **_kwargs
):
101 val
= apply(controls2c
.wxListItem_SetAlign
,(self
,) + _args
, _kwargs
)
103 def SetTextColour(self
, *_args
, **_kwargs
):
104 val
= apply(controls2c
.wxListItem_SetTextColour
,(self
,) + _args
, _kwargs
)
106 def SetBackgroundColour(self
, *_args
, **_kwargs
):
107 val
= apply(controls2c
.wxListItem_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
109 def SetFont(self
, *_args
, **_kwargs
):
110 val
= apply(controls2c
.wxListItem_SetFont
,(self
,) + _args
, _kwargs
)
112 def GetMask(self
, *_args
, **_kwargs
):
113 val
= apply(controls2c
.wxListItem_GetMask
,(self
,) + _args
, _kwargs
)
115 def GetId(self
, *_args
, **_kwargs
):
116 val
= apply(controls2c
.wxListItem_GetId
,(self
,) + _args
, _kwargs
)
118 def GetColumn(self
, *_args
, **_kwargs
):
119 val
= apply(controls2c
.wxListItem_GetColumn
,(self
,) + _args
, _kwargs
)
121 def GetState(self
, *_args
, **_kwargs
):
122 val
= apply(controls2c
.wxListItem_GetState
,(self
,) + _args
, _kwargs
)
124 def GetText(self
, *_args
, **_kwargs
):
125 val
= apply(controls2c
.wxListItem_GetText
,(self
,) + _args
, _kwargs
)
127 def GetImage(self
, *_args
, **_kwargs
):
128 val
= apply(controls2c
.wxListItem_GetImage
,(self
,) + _args
, _kwargs
)
130 def GetData(self
, *_args
, **_kwargs
):
131 val
= apply(controls2c
.wxListItem_GetData
,(self
,) + _args
, _kwargs
)
133 def GetWidth(self
, *_args
, **_kwargs
):
134 val
= apply(controls2c
.wxListItem_GetWidth
,(self
,) + _args
, _kwargs
)
136 def GetAlign(self
, *_args
, **_kwargs
):
137 val
= apply(controls2c
.wxListItem_GetAlign
,(self
,) + _args
, _kwargs
)
139 def GetAttributes(self
, *_args
, **_kwargs
):
140 val
= apply(controls2c
.wxListItem_GetAttributes
,(self
,) + _args
, _kwargs
)
141 if val
: val
= wxListItemAttrPtr(val
)
143 def HasAttributes(self
, *_args
, **_kwargs
):
144 val
= apply(controls2c
.wxListItem_HasAttributes
,(self
,) + _args
, _kwargs
)
146 def GetTextColour(self
, *_args
, **_kwargs
):
147 val
= apply(controls2c
.wxListItem_GetTextColour
,(self
,) + _args
, _kwargs
)
148 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
150 def GetBackgroundColour(self
, *_args
, **_kwargs
):
151 val
= apply(controls2c
.wxListItem_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
152 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
154 def GetFont(self
, *_args
, **_kwargs
):
155 val
= apply(controls2c
.wxListItem_GetFont
,(self
,) + _args
, _kwargs
)
156 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
158 def __setattr__(self
,name
,value
):
159 if name
== "m_mask" :
160 controls2c
.wxListItem_m_mask_set(self
,value
)
162 if name
== "m_itemId" :
163 controls2c
.wxListItem_m_itemId_set(self
,value
)
166 controls2c
.wxListItem_m_col_set(self
,value
)
168 if name
== "m_state" :
169 controls2c
.wxListItem_m_state_set(self
,value
)
171 if name
== "m_stateMask" :
172 controls2c
.wxListItem_m_stateMask_set(self
,value
)
174 if name
== "m_text" :
175 controls2c
.wxListItem_m_text_set(self
,value
)
177 if name
== "m_image" :
178 controls2c
.wxListItem_m_image_set(self
,value
)
180 if name
== "m_data" :
181 controls2c
.wxListItem_m_data_set(self
,value
)
183 if name
== "m_format" :
184 controls2c
.wxListItem_m_format_set(self
,value
)
186 if name
== "m_width" :
187 controls2c
.wxListItem_m_width_set(self
,value
)
189 self
.__dict
__[name
] = value
190 def __getattr__(self
,name
):
191 if name
== "m_mask" :
192 return controls2c
.wxListItem_m_mask_get(self
)
193 if name
== "m_itemId" :
194 return controls2c
.wxListItem_m_itemId_get(self
)
196 return controls2c
.wxListItem_m_col_get(self
)
197 if name
== "m_state" :
198 return controls2c
.wxListItem_m_state_get(self
)
199 if name
== "m_stateMask" :
200 return controls2c
.wxListItem_m_stateMask_get(self
)
201 if name
== "m_text" :
202 return controls2c
.wxListItem_m_text_get(self
)
203 if name
== "m_image" :
204 return controls2c
.wxListItem_m_image_get(self
)
205 if name
== "m_data" :
206 return controls2c
.wxListItem_m_data_get(self
)
207 if name
== "m_format" :
208 return controls2c
.wxListItem_m_format_get(self
)
209 if name
== "m_width" :
210 return controls2c
.wxListItem_m_width_get(self
)
211 raise AttributeError,name
213 return "<C wxListItem instance at %s>" % (self
.this
,)
214 class wxListItem(wxListItemPtr
):
215 def __init__(self
,*_args
,**_kwargs
):
216 self
.this
= apply(controls2c
.new_wxListItem
,_args
,_kwargs
)
222 class wxListEventPtr(wxNotifyEventPtr
):
223 def __init__(self
,this
):
226 def GetCode(self
, *_args
, **_kwargs
):
227 val
= apply(controls2c
.wxListEvent_GetCode
,(self
,) + _args
, _kwargs
)
229 def GetIndex(self
, *_args
, **_kwargs
):
230 val
= apply(controls2c
.wxListEvent_GetIndex
,(self
,) + _args
, _kwargs
)
232 def GetOldIndex(self
, *_args
, **_kwargs
):
233 val
= apply(controls2c
.wxListEvent_GetOldIndex
,(self
,) + _args
, _kwargs
)
235 def GetOldItem(self
, *_args
, **_kwargs
):
236 val
= apply(controls2c
.wxListEvent_GetOldItem
,(self
,) + _args
, _kwargs
)
238 def GetColumn(self
, *_args
, **_kwargs
):
239 val
= apply(controls2c
.wxListEvent_GetColumn
,(self
,) + _args
, _kwargs
)
241 def Cancelled(self
, *_args
, **_kwargs
):
242 val
= apply(controls2c
.wxListEvent_Cancelled
,(self
,) + _args
, _kwargs
)
244 def GetPoint(self
, *_args
, **_kwargs
):
245 val
= apply(controls2c
.wxListEvent_GetPoint
,(self
,) + _args
, _kwargs
)
246 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
248 def GetLabel(self
, *_args
, **_kwargs
):
249 val
= apply(controls2c
.wxListEvent_GetLabel
,(self
,) + _args
, _kwargs
)
251 def GetText(self
, *_args
, **_kwargs
):
252 val
= apply(controls2c
.wxListEvent_GetText
,(self
,) + _args
, _kwargs
)
254 def GetImage(self
, *_args
, **_kwargs
):
255 val
= apply(controls2c
.wxListEvent_GetImage
,(self
,) + _args
, _kwargs
)
257 def GetData(self
, *_args
, **_kwargs
):
258 val
= apply(controls2c
.wxListEvent_GetData
,(self
,) + _args
, _kwargs
)
260 def GetMask(self
, *_args
, **_kwargs
):
261 val
= apply(controls2c
.wxListEvent_GetMask
,(self
,) + _args
, _kwargs
)
263 def GetItem(self
, *_args
, **_kwargs
):
264 val
= apply(controls2c
.wxListEvent_GetItem
,(self
,) + _args
, _kwargs
)
265 if val
: val
= wxListItemPtr(val
)
267 def __setattr__(self
,name
,value
):
268 if name
== "m_code" :
269 controls2c
.wxListEvent_m_code_set(self
,value
)
271 if name
== "m_itemIndex" :
272 controls2c
.wxListEvent_m_itemIndex_set(self
,value
)
274 if name
== "m_oldItemIndex" :
275 controls2c
.wxListEvent_m_oldItemIndex_set(self
,value
)
278 controls2c
.wxListEvent_m_col_set(self
,value
)
280 if name
== "m_cancelled" :
281 controls2c
.wxListEvent_m_cancelled_set(self
,value
)
283 if name
== "m_pointDrag" :
284 controls2c
.wxListEvent_m_pointDrag_set(self
,value
.this
)
286 if name
== "m_item" :
287 controls2c
.wxListEvent_m_item_set(self
,value
.this
)
289 self
.__dict
__[name
] = value
290 def __getattr__(self
,name
):
291 if name
== "m_code" :
292 return controls2c
.wxListEvent_m_code_get(self
)
293 if name
== "m_itemIndex" :
294 return controls2c
.wxListEvent_m_itemIndex_get(self
)
295 if name
== "m_oldItemIndex" :
296 return controls2c
.wxListEvent_m_oldItemIndex_get(self
)
298 return controls2c
.wxListEvent_m_col_get(self
)
299 if name
== "m_cancelled" :
300 return controls2c
.wxListEvent_m_cancelled_get(self
)
301 if name
== "m_pointDrag" :
302 return wxPointPtr(controls2c
.wxListEvent_m_pointDrag_get(self
))
303 if name
== "m_item" :
304 return wxListItemPtr(controls2c
.wxListEvent_m_item_get(self
))
305 raise AttributeError,name
307 return "<C wxListEvent instance at %s>" % (self
.this
,)
308 class wxListEvent(wxListEventPtr
):
309 def __init__(self
,this
):
315 class wxListCtrlPtr(wxControlPtr
):
316 def __init__(self
,this
):
319 def Arrange(self
, *_args
, **_kwargs
):
320 val
= apply(controls2c
.wxListCtrl_Arrange
,(self
,) + _args
, _kwargs
)
322 def DeleteItem(self
, *_args
, **_kwargs
):
323 val
= apply(controls2c
.wxListCtrl_DeleteItem
,(self
,) + _args
, _kwargs
)
325 def DeleteAllItems(self
, *_args
, **_kwargs
):
326 val
= apply(controls2c
.wxListCtrl_DeleteAllItems
,(self
,) + _args
, _kwargs
)
328 def DeleteColumn(self
, *_args
, **_kwargs
):
329 val
= apply(controls2c
.wxListCtrl_DeleteColumn
,(self
,) + _args
, _kwargs
)
331 def DeleteAllColumns(self
, *_args
, **_kwargs
):
332 val
= apply(controls2c
.wxListCtrl_DeleteAllColumns
,(self
,) + _args
, _kwargs
)
334 def ClearAll(self
, *_args
, **_kwargs
):
335 val
= apply(controls2c
.wxListCtrl_ClearAll
,(self
,) + _args
, _kwargs
)
337 def EditLabel(self
, *_args
, **_kwargs
):
338 val
= apply(controls2c
.wxListCtrl_EditLabel
,(self
,) + _args
, _kwargs
)
340 def EnsureVisible(self
, *_args
, **_kwargs
):
341 val
= apply(controls2c
.wxListCtrl_EnsureVisible
,(self
,) + _args
, _kwargs
)
343 def FindItem(self
, *_args
, **_kwargs
):
344 val
= apply(controls2c
.wxListCtrl_FindItem
,(self
,) + _args
, _kwargs
)
346 def FindItemData(self
, *_args
, **_kwargs
):
347 val
= apply(controls2c
.wxListCtrl_FindItemData
,(self
,) + _args
, _kwargs
)
349 def FindItemAtPos(self
, *_args
, **_kwargs
):
350 val
= apply(controls2c
.wxListCtrl_FindItemAtPos
,(self
,) + _args
, _kwargs
)
352 def GetColumn(self
, *_args
, **_kwargs
):
353 val
= apply(controls2c
.wxListCtrl_GetColumn
,(self
,) + _args
, _kwargs
)
355 def GetColumnWidth(self
, *_args
, **_kwargs
):
356 val
= apply(controls2c
.wxListCtrl_GetColumnWidth
,(self
,) + _args
, _kwargs
)
358 def GetCountPerPage(self
, *_args
, **_kwargs
):
359 val
= apply(controls2c
.wxListCtrl_GetCountPerPage
,(self
,) + _args
, _kwargs
)
361 def GetImageList(self
, *_args
, **_kwargs
):
362 val
= apply(controls2c
.wxListCtrl_GetImageList
,(self
,) + _args
, _kwargs
)
363 if val
: val
= wxImageListPtr(val
)
365 def GetItemData(self
, *_args
, **_kwargs
):
366 val
= apply(controls2c
.wxListCtrl_GetItemData
,(self
,) + _args
, _kwargs
)
368 def GetItem(self
, *_args
, **_kwargs
):
369 val
= apply(controls2c
.wxListCtrl_GetItem
,(self
,) + _args
, _kwargs
)
370 if val
: val
= wxListItemPtr(val
) ; val
.thisown
= 1
372 def GetItemPosition(self
, *_args
, **_kwargs
):
373 val
= apply(controls2c
.wxListCtrl_GetItemPosition
,(self
,) + _args
, _kwargs
)
374 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
376 def GetItemRect(self
, *_args
, **_kwargs
):
377 val
= apply(controls2c
.wxListCtrl_GetItemRect
,(self
,) + _args
, _kwargs
)
378 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
380 def GetItemState(self
, *_args
, **_kwargs
):
381 val
= apply(controls2c
.wxListCtrl_GetItemState
,(self
,) + _args
, _kwargs
)
383 def GetItemCount(self
, *_args
, **_kwargs
):
384 val
= apply(controls2c
.wxListCtrl_GetItemCount
,(self
,) + _args
, _kwargs
)
386 def GetItemSpacing(self
, *_args
, **_kwargs
):
387 val
= apply(controls2c
.wxListCtrl_GetItemSpacing
,(self
,) + _args
, _kwargs
)
389 def GetItemText(self
, *_args
, **_kwargs
):
390 val
= apply(controls2c
.wxListCtrl_GetItemText
,(self
,) + _args
, _kwargs
)
392 def GetNextItem(self
, *_args
, **_kwargs
):
393 val
= apply(controls2c
.wxListCtrl_GetNextItem
,(self
,) + _args
, _kwargs
)
395 def GetSelectedItemCount(self
, *_args
, **_kwargs
):
396 val
= apply(controls2c
.wxListCtrl_GetSelectedItemCount
,(self
,) + _args
, _kwargs
)
398 def GetTopItem(self
, *_args
, **_kwargs
):
399 val
= apply(controls2c
.wxListCtrl_GetTopItem
,(self
,) + _args
, _kwargs
)
401 def HitTest(self
, *_args
, **_kwargs
):
402 val
= apply(controls2c
.wxListCtrl_HitTest
,(self
,) + _args
, _kwargs
)
404 def InsertColumnInfo(self
, *_args
, **_kwargs
):
405 val
= apply(controls2c
.wxListCtrl_InsertColumnInfo
,(self
,) + _args
, _kwargs
)
407 def InsertColumn(self
, *_args
, **_kwargs
):
408 val
= apply(controls2c
.wxListCtrl_InsertColumn
,(self
,) + _args
, _kwargs
)
410 def InsertItem(self
, *_args
, **_kwargs
):
411 val
= apply(controls2c
.wxListCtrl_InsertItem
,(self
,) + _args
, _kwargs
)
413 def InsertStringItem(self
, *_args
, **_kwargs
):
414 val
= apply(controls2c
.wxListCtrl_InsertStringItem
,(self
,) + _args
, _kwargs
)
416 def InsertImageItem(self
, *_args
, **_kwargs
):
417 val
= apply(controls2c
.wxListCtrl_InsertImageItem
,(self
,) + _args
, _kwargs
)
419 def InsertImageStringItem(self
, *_args
, **_kwargs
):
420 val
= apply(controls2c
.wxListCtrl_InsertImageStringItem
,(self
,) + _args
, _kwargs
)
422 def ScrollList(self
, *_args
, **_kwargs
):
423 val
= apply(controls2c
.wxListCtrl_ScrollList
,(self
,) + _args
, _kwargs
)
425 def SetBackgroundColour(self
, *_args
, **_kwargs
):
426 val
= apply(controls2c
.wxListCtrl_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
428 def SetColumn(self
, *_args
, **_kwargs
):
429 val
= apply(controls2c
.wxListCtrl_SetColumn
,(self
,) + _args
, _kwargs
)
431 def SetColumnWidth(self
, *_args
, **_kwargs
):
432 val
= apply(controls2c
.wxListCtrl_SetColumnWidth
,(self
,) + _args
, _kwargs
)
434 def SetImageList(self
, *_args
, **_kwargs
):
435 val
= apply(controls2c
.wxListCtrl_SetImageList
,(self
,) + _args
, _kwargs
)
437 def SetItem(self
, *_args
, **_kwargs
):
438 val
= apply(controls2c
.wxListCtrl_SetItem
,(self
,) + _args
, _kwargs
)
440 def SetStringItem(self
, *_args
, **_kwargs
):
441 val
= apply(controls2c
.wxListCtrl_SetStringItem
,(self
,) + _args
, _kwargs
)
443 def SetItemData(self
, *_args
, **_kwargs
):
444 val
= apply(controls2c
.wxListCtrl_SetItemData
,(self
,) + _args
, _kwargs
)
446 def SetItemImage(self
, *_args
, **_kwargs
):
447 val
= apply(controls2c
.wxListCtrl_SetItemImage
,(self
,) + _args
, _kwargs
)
449 def SetItemPosition(self
, *_args
, **_kwargs
):
450 val
= apply(controls2c
.wxListCtrl_SetItemPosition
,(self
,) + _args
, _kwargs
)
452 def SetItemState(self
, *_args
, **_kwargs
):
453 val
= apply(controls2c
.wxListCtrl_SetItemState
,(self
,) + _args
, _kwargs
)
455 def SetItemText(self
, *_args
, **_kwargs
):
456 val
= apply(controls2c
.wxListCtrl_SetItemText
,(self
,) + _args
, _kwargs
)
458 def SetSingleStyle(self
, *_args
, **_kwargs
):
459 val
= apply(controls2c
.wxListCtrl_SetSingleStyle
,(self
,) + _args
, _kwargs
)
461 def SetWindowStyleFlag(self
, *_args
, **_kwargs
):
462 val
= apply(controls2c
.wxListCtrl_SetWindowStyleFlag
,(self
,) + _args
, _kwargs
)
464 def SortItems(self
, *_args
, **_kwargs
):
465 val
= apply(controls2c
.wxListCtrl_SortItems
,(self
,) + _args
, _kwargs
)
468 return "<C wxListCtrl instance at %s>" % (self
.this
,)
469 class wxListCtrl(wxListCtrlPtr
):
470 def __init__(self
,*_args
,**_kwargs
):
471 self
.this
= apply(controls2c
.new_wxListCtrl
,_args
,_kwargs
)
473 #wx._StdWindowCallbacks(self)
478 class wxTreeItemIdPtr
:
479 def __init__(self
,this
):
482 def __del__(self
,controls2c
=controls2c
):
483 if self
.thisown
== 1 :
484 controls2c
.delete_wxTreeItemId(self
)
485 def IsOk(self
, *_args
, **_kwargs
):
486 val
= apply(controls2c
.wxTreeItemId_IsOk
,(self
,) + _args
, _kwargs
)
488 def __cmp__(self
, *_args
, **_kwargs
):
489 val
= apply(controls2c
.wxTreeItemId___cmp__
,(self
,) + _args
, _kwargs
)
492 return "<C wxTreeItemId instance at %s>" % (self
.this
,)
493 class wxTreeItemId(wxTreeItemIdPtr
):
494 def __init__(self
,*_args
,**_kwargs
):
495 self
.this
= apply(controls2c
.new_wxTreeItemId
,_args
,_kwargs
)
501 class wxTreeItemDataPtr
:
502 def __init__(self
,this
):
505 def GetData(self
, *_args
, **_kwargs
):
506 val
= apply(controls2c
.wxTreeItemData_GetData
,(self
,) + _args
, _kwargs
)
508 def SetData(self
, *_args
, **_kwargs
):
509 val
= apply(controls2c
.wxTreeItemData_SetData
,(self
,) + _args
, _kwargs
)
511 def GetId(self
, *_args
, **_kwargs
):
512 val
= apply(controls2c
.wxTreeItemData_GetId
,(self
,) + _args
, _kwargs
)
513 if val
: val
= wxTreeItemIdPtr(val
)
515 def SetId(self
, *_args
, **_kwargs
):
516 val
= apply(controls2c
.wxTreeItemData_SetId
,(self
,) + _args
, _kwargs
)
519 return "<C wxTreeItemData instance at %s>" % (self
.this
,)
520 class wxTreeItemData(wxTreeItemDataPtr
):
521 def __init__(self
,*_args
,**_kwargs
):
522 self
.this
= apply(controls2c
.new_wxTreeItemData
,_args
,_kwargs
)
528 class wxTreeEventPtr(wxNotifyEventPtr
):
529 def __init__(self
,this
):
532 def GetItem(self
, *_args
, **_kwargs
):
533 val
= apply(controls2c
.wxTreeEvent_GetItem
,(self
,) + _args
, _kwargs
)
534 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
536 def GetOldItem(self
, *_args
, **_kwargs
):
537 val
= apply(controls2c
.wxTreeEvent_GetOldItem
,(self
,) + _args
, _kwargs
)
538 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
540 def GetPoint(self
, *_args
, **_kwargs
):
541 val
= apply(controls2c
.wxTreeEvent_GetPoint
,(self
,) + _args
, _kwargs
)
542 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
544 def GetCode(self
, *_args
, **_kwargs
):
545 val
= apply(controls2c
.wxTreeEvent_GetCode
,(self
,) + _args
, _kwargs
)
547 def GetLabel(self
, *_args
, **_kwargs
):
548 val
= apply(controls2c
.wxTreeEvent_GetLabel
,(self
,) + _args
, _kwargs
)
551 return "<C wxTreeEvent instance at %s>" % (self
.this
,)
552 class wxTreeEvent(wxTreeEventPtr
):
553 def __init__(self
,this
):
559 class wxTreeCtrlPtr(wxControlPtr
):
560 def __init__(self
,this
):
563 def _setSelf(self
, *_args
, **_kwargs
):
564 val
= apply(controls2c
.wxTreeCtrl__setSelf
,(self
,) + _args
, _kwargs
)
566 def GetCount(self
, *_args
, **_kwargs
):
567 val
= apply(controls2c
.wxTreeCtrl_GetCount
,(self
,) + _args
, _kwargs
)
569 def GetIndent(self
, *_args
, **_kwargs
):
570 val
= apply(controls2c
.wxTreeCtrl_GetIndent
,(self
,) + _args
, _kwargs
)
572 def SetIndent(self
, *_args
, **_kwargs
):
573 val
= apply(controls2c
.wxTreeCtrl_SetIndent
,(self
,) + _args
, _kwargs
)
575 def GetImageList(self
, *_args
, **_kwargs
):
576 val
= apply(controls2c
.wxTreeCtrl_GetImageList
,(self
,) + _args
, _kwargs
)
577 if val
: val
= wxImageListPtr(val
)
579 def GetStateImageList(self
, *_args
, **_kwargs
):
580 val
= apply(controls2c
.wxTreeCtrl_GetStateImageList
,(self
,) + _args
, _kwargs
)
581 if val
: val
= wxImageListPtr(val
)
583 def SetImageList(self
, *_args
, **_kwargs
):
584 val
= apply(controls2c
.wxTreeCtrl_SetImageList
,(self
,) + _args
, _kwargs
)
586 def SetStateImageList(self
, *_args
, **_kwargs
):
587 val
= apply(controls2c
.wxTreeCtrl_SetStateImageList
,(self
,) + _args
, _kwargs
)
589 def GetSpacing(self
, *_args
, **_kwargs
):
590 val
= apply(controls2c
.wxTreeCtrl_GetSpacing
,(self
,) + _args
, _kwargs
)
592 def SetSpacing(self
, *_args
, **_kwargs
):
593 val
= apply(controls2c
.wxTreeCtrl_SetSpacing
,(self
,) + _args
, _kwargs
)
595 def GetItemText(self
, *_args
, **_kwargs
):
596 val
= apply(controls2c
.wxTreeCtrl_GetItemText
,(self
,) + _args
, _kwargs
)
598 def GetItemImage(self
, *_args
, **_kwargs
):
599 val
= apply(controls2c
.wxTreeCtrl_GetItemImage
,(self
,) + _args
, _kwargs
)
601 def GetItemSelectedImage(self
, *_args
, **_kwargs
):
602 val
= apply(controls2c
.wxTreeCtrl_GetItemSelectedImage
,(self
,) + _args
, _kwargs
)
604 def SetItemText(self
, *_args
, **_kwargs
):
605 val
= apply(controls2c
.wxTreeCtrl_SetItemText
,(self
,) + _args
, _kwargs
)
607 def SetItemImage(self
, *_args
, **_kwargs
):
608 val
= apply(controls2c
.wxTreeCtrl_SetItemImage
,(self
,) + _args
, _kwargs
)
610 def SetItemSelectedImage(self
, *_args
, **_kwargs
):
611 val
= apply(controls2c
.wxTreeCtrl_SetItemSelectedImage
,(self
,) + _args
, _kwargs
)
613 def SetItemHasChildren(self
, *_args
, **_kwargs
):
614 val
= apply(controls2c
.wxTreeCtrl_SetItemHasChildren
,(self
,) + _args
, _kwargs
)
616 def GetItemData(self
, *_args
, **_kwargs
):
617 val
= apply(controls2c
.wxTreeCtrl_GetItemData
,(self
,) + _args
, _kwargs
)
618 if val
: val
= wxTreeItemDataPtr(val
)
620 def SetItemData(self
, *_args
, **_kwargs
):
621 val
= apply(controls2c
.wxTreeCtrl_SetItemData
,(self
,) + _args
, _kwargs
)
623 def GetPyData(self
, *_args
, **_kwargs
):
624 val
= apply(controls2c
.wxTreeCtrl_GetPyData
,(self
,) + _args
, _kwargs
)
626 def SetPyData(self
, *_args
, **_kwargs
):
627 val
= apply(controls2c
.wxTreeCtrl_SetPyData
,(self
,) + _args
, _kwargs
)
629 def IsVisible(self
, *_args
, **_kwargs
):
630 val
= apply(controls2c
.wxTreeCtrl_IsVisible
,(self
,) + _args
, _kwargs
)
632 def ItemHasChildren(self
, *_args
, **_kwargs
):
633 val
= apply(controls2c
.wxTreeCtrl_ItemHasChildren
,(self
,) + _args
, _kwargs
)
635 def IsExpanded(self
, *_args
, **_kwargs
):
636 val
= apply(controls2c
.wxTreeCtrl_IsExpanded
,(self
,) + _args
, _kwargs
)
638 def IsSelected(self
, *_args
, **_kwargs
):
639 val
= apply(controls2c
.wxTreeCtrl_IsSelected
,(self
,) + _args
, _kwargs
)
641 def GetRootItem(self
, *_args
, **_kwargs
):
642 val
= apply(controls2c
.wxTreeCtrl_GetRootItem
,(self
,) + _args
, _kwargs
)
643 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
645 def GetSelection(self
, *_args
, **_kwargs
):
646 val
= apply(controls2c
.wxTreeCtrl_GetSelection
,(self
,) + _args
, _kwargs
)
647 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
649 def GetItemParent(self
, *_args
, **_kwargs
):
650 val
= apply(controls2c
.wxTreeCtrl_GetItemParent
,(self
,) + _args
, _kwargs
)
651 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
653 def GetSelections(self
, *_args
, **_kwargs
):
654 val
= apply(controls2c
.wxTreeCtrl_GetSelections
,(self
,) + _args
, _kwargs
)
656 def GetChildrenCount(self
, *_args
, **_kwargs
):
657 val
= apply(controls2c
.wxTreeCtrl_GetChildrenCount
,(self
,) + _args
, _kwargs
)
659 def GetFirstChild(self
, *_args
, **_kwargs
):
660 val
= apply(controls2c
.wxTreeCtrl_GetFirstChild
,(self
,) + _args
, _kwargs
)
662 def GetNextChild(self
, *_args
, **_kwargs
):
663 val
= apply(controls2c
.wxTreeCtrl_GetNextChild
,(self
,) + _args
, _kwargs
)
665 def GetNextSibling(self
, *_args
, **_kwargs
):
666 val
= apply(controls2c
.wxTreeCtrl_GetNextSibling
,(self
,) + _args
, _kwargs
)
667 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
669 def GetPrevSibling(self
, *_args
, **_kwargs
):
670 val
= apply(controls2c
.wxTreeCtrl_GetPrevSibling
,(self
,) + _args
, _kwargs
)
671 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
673 def GetFirstVisibleItem(self
, *_args
, **_kwargs
):
674 val
= apply(controls2c
.wxTreeCtrl_GetFirstVisibleItem
,(self
,) + _args
, _kwargs
)
675 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
677 def GetNextVisible(self
, *_args
, **_kwargs
):
678 val
= apply(controls2c
.wxTreeCtrl_GetNextVisible
,(self
,) + _args
, _kwargs
)
679 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
681 def GetPrevVisible(self
, *_args
, **_kwargs
):
682 val
= apply(controls2c
.wxTreeCtrl_GetPrevVisible
,(self
,) + _args
, _kwargs
)
683 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
685 def GetLastChild(self
, *_args
, **_kwargs
):
686 val
= apply(controls2c
.wxTreeCtrl_GetLastChild
,(self
,) + _args
, _kwargs
)
687 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
689 def AddRoot(self
, *_args
, **_kwargs
):
690 val
= apply(controls2c
.wxTreeCtrl_AddRoot
,(self
,) + _args
, _kwargs
)
691 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
693 def PrependItem(self
, *_args
, **_kwargs
):
694 val
= apply(controls2c
.wxTreeCtrl_PrependItem
,(self
,) + _args
, _kwargs
)
695 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
697 def InsertItem(self
, *_args
, **_kwargs
):
698 val
= apply(controls2c
.wxTreeCtrl_InsertItem
,(self
,) + _args
, _kwargs
)
699 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
701 def InsertItemBefore(self
, *_args
, **_kwargs
):
702 val
= apply(controls2c
.wxTreeCtrl_InsertItemBefore
,(self
,) + _args
, _kwargs
)
703 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
705 def AppendItem(self
, *_args
, **_kwargs
):
706 val
= apply(controls2c
.wxTreeCtrl_AppendItem
,(self
,) + _args
, _kwargs
)
707 if val
: val
= wxTreeItemIdPtr(val
) ; val
.thisown
= 1
709 def Delete(self
, *_args
, **_kwargs
):
710 val
= apply(controls2c
.wxTreeCtrl_Delete
,(self
,) + _args
, _kwargs
)
712 def DeleteChildren(self
, *_args
, **_kwargs
):
713 val
= apply(controls2c
.wxTreeCtrl_DeleteChildren
,(self
,) + _args
, _kwargs
)
715 def DeleteAllItems(self
, *_args
, **_kwargs
):
716 val
= apply(controls2c
.wxTreeCtrl_DeleteAllItems
,(self
,) + _args
, _kwargs
)
718 def Expand(self
, *_args
, **_kwargs
):
719 val
= apply(controls2c
.wxTreeCtrl_Expand
,(self
,) + _args
, _kwargs
)
721 def Collapse(self
, *_args
, **_kwargs
):
722 val
= apply(controls2c
.wxTreeCtrl_Collapse
,(self
,) + _args
, _kwargs
)
724 def CollapseAndReset(self
, *_args
, **_kwargs
):
725 val
= apply(controls2c
.wxTreeCtrl_CollapseAndReset
,(self
,) + _args
, _kwargs
)
727 def Toggle(self
, *_args
, **_kwargs
):
728 val
= apply(controls2c
.wxTreeCtrl_Toggle
,(self
,) + _args
, _kwargs
)
730 def Unselect(self
, *_args
, **_kwargs
):
731 val
= apply(controls2c
.wxTreeCtrl_Unselect
,(self
,) + _args
, _kwargs
)
733 def UnselectAll(self
, *_args
, **_kwargs
):
734 val
= apply(controls2c
.wxTreeCtrl_UnselectAll
,(self
,) + _args
, _kwargs
)
736 def SelectItem(self
, *_args
, **_kwargs
):
737 val
= apply(controls2c
.wxTreeCtrl_SelectItem
,(self
,) + _args
, _kwargs
)
739 def EnsureVisible(self
, *_args
, **_kwargs
):
740 val
= apply(controls2c
.wxTreeCtrl_EnsureVisible
,(self
,) + _args
, _kwargs
)
742 def ScrollTo(self
, *_args
, **_kwargs
):
743 val
= apply(controls2c
.wxTreeCtrl_ScrollTo
,(self
,) + _args
, _kwargs
)
745 def EditLabel(self
, *_args
, **_kwargs
):
746 val
= apply(controls2c
.wxTreeCtrl_EditLabel
,(self
,) + _args
, _kwargs
)
748 def SortChildren(self
, *_args
, **_kwargs
):
749 val
= apply(controls2c
.wxTreeCtrl_SortChildren
,(self
,) + _args
, _kwargs
)
751 def SetItemBold(self
, *_args
, **_kwargs
):
752 val
= apply(controls2c
.wxTreeCtrl_SetItemBold
,(self
,) + _args
, _kwargs
)
754 def IsBold(self
, *_args
, **_kwargs
):
755 val
= apply(controls2c
.wxTreeCtrl_IsBold
,(self
,) + _args
, _kwargs
)
757 def HitTest(self
, *_args
, **_kwargs
):
758 val
= apply(controls2c
.wxTreeCtrl_HitTest
,(self
,) + _args
, _kwargs
)
760 def SetItemTextColour(self
, *_args
, **_kwargs
):
761 val
= apply(controls2c
.wxTreeCtrl_SetItemTextColour
,(self
,) + _args
, _kwargs
)
763 def SetItemBackgroundColour(self
, *_args
, **_kwargs
):
764 val
= apply(controls2c
.wxTreeCtrl_SetItemBackgroundColour
,(self
,) + _args
, _kwargs
)
766 def SetItemFont(self
, *_args
, **_kwargs
):
767 val
= apply(controls2c
.wxTreeCtrl_SetItemFont
,(self
,) + _args
, _kwargs
)
770 return "<C wxTreeCtrl instance at %s>" % (self
.this
,)
772 # Redefine some methods that SWIG gets a bit confused on...
773 def GetFirstChild(self
, *_args
, **_kwargs
):
774 val1
,val2
= apply(controls2c
.wxTreeCtrl_GetFirstChild
,(self
,) + _args
, _kwargs
)
775 val1
= wxTreeItemIdPtr(val1
)
778 def GetNextChild(self
, *_args
, **_kwargs
):
779 val1
,val2
= apply(controls2c
.wxTreeCtrl_GetNextChild
,(self
,) + _args
, _kwargs
)
780 val1
= wxTreeItemIdPtr(val1
)
783 def HitTest(self
, *_args
, **_kwargs
):
784 val1
, val2
= apply(controls2c
.wxTreeCtrl_HitTest
,(self
,) + _args
, _kwargs
)
785 val1
= wxTreeItemIdPtr(val1
)
789 class wxTreeCtrl(wxTreeCtrlPtr
):
790 def __init__(self
,*_args
,**_kwargs
):
791 self
.this
= apply(controls2c
.new_wxTreeCtrl
,_args
,_kwargs
)
793 #wx._StdWindowCallbacks(self)
794 self
._setSelf
(self
, wxTreeCtrl
)
801 #-------------- FUNCTION WRAPPERS ------------------
805 #-------------- VARIABLE WRAPPERS ------------------
807 wxLIST_MASK_TEXT
= controls2c
.wxLIST_MASK_TEXT
808 wxLIST_MASK_IMAGE
= controls2c
.wxLIST_MASK_IMAGE
809 wxLIST_MASK_DATA
= controls2c
.wxLIST_MASK_DATA
810 wxLIST_MASK_WIDTH
= controls2c
.wxLIST_MASK_WIDTH
811 wxLIST_MASK_FORMAT
= controls2c
.wxLIST_MASK_FORMAT
812 wxLIST_MASK_STATE
= controls2c
.wxLIST_MASK_STATE
813 wxLIST_STATE_DONTCARE
= controls2c
.wxLIST_STATE_DONTCARE
814 wxLIST_STATE_DROPHILITED
= controls2c
.wxLIST_STATE_DROPHILITED
815 wxLIST_STATE_FOCUSED
= controls2c
.wxLIST_STATE_FOCUSED
816 wxLIST_STATE_SELECTED
= controls2c
.wxLIST_STATE_SELECTED
817 wxLIST_STATE_CUT
= controls2c
.wxLIST_STATE_CUT
818 wxLIST_HITTEST_ABOVE
= controls2c
.wxLIST_HITTEST_ABOVE
819 wxLIST_HITTEST_BELOW
= controls2c
.wxLIST_HITTEST_BELOW
820 wxLIST_HITTEST_NOWHERE
= controls2c
.wxLIST_HITTEST_NOWHERE
821 wxLIST_HITTEST_ONITEMICON
= controls2c
.wxLIST_HITTEST_ONITEMICON
822 wxLIST_HITTEST_ONITEMLABEL
= controls2c
.wxLIST_HITTEST_ONITEMLABEL
823 wxLIST_HITTEST_ONITEMRIGHT
= controls2c
.wxLIST_HITTEST_ONITEMRIGHT
824 wxLIST_HITTEST_ONITEMSTATEICON
= controls2c
.wxLIST_HITTEST_ONITEMSTATEICON
825 wxLIST_HITTEST_TOLEFT
= controls2c
.wxLIST_HITTEST_TOLEFT
826 wxLIST_HITTEST_TORIGHT
= controls2c
.wxLIST_HITTEST_TORIGHT
827 wxLIST_HITTEST_ONITEM
= controls2c
.wxLIST_HITTEST_ONITEM
828 wxLIST_NEXT_ABOVE
= controls2c
.wxLIST_NEXT_ABOVE
829 wxLIST_NEXT_ALL
= controls2c
.wxLIST_NEXT_ALL
830 wxLIST_NEXT_BELOW
= controls2c
.wxLIST_NEXT_BELOW
831 wxLIST_NEXT_LEFT
= controls2c
.wxLIST_NEXT_LEFT
832 wxLIST_NEXT_RIGHT
= controls2c
.wxLIST_NEXT_RIGHT
833 wxLIST_ALIGN_DEFAULT
= controls2c
.wxLIST_ALIGN_DEFAULT
834 wxLIST_ALIGN_LEFT
= controls2c
.wxLIST_ALIGN_LEFT
835 wxLIST_ALIGN_TOP
= controls2c
.wxLIST_ALIGN_TOP
836 wxLIST_ALIGN_SNAP_TO_GRID
= controls2c
.wxLIST_ALIGN_SNAP_TO_GRID
837 wxLIST_AUTOSIZE
= controls2c
.wxLIST_AUTOSIZE
838 wxLIST_AUTOSIZE_USEHEADER
= controls2c
.wxLIST_AUTOSIZE_USEHEADER
839 wxLIST_RECT_BOUNDS
= controls2c
.wxLIST_RECT_BOUNDS
840 wxLIST_RECT_ICON
= controls2c
.wxLIST_RECT_ICON
841 wxLIST_RECT_LABEL
= controls2c
.wxLIST_RECT_LABEL
842 wxLIST_FIND_UP
= controls2c
.wxLIST_FIND_UP
843 wxLIST_FIND_DOWN
= controls2c
.wxLIST_FIND_DOWN
844 wxLIST_FIND_LEFT
= controls2c
.wxLIST_FIND_LEFT
845 wxLIST_FIND_RIGHT
= controls2c
.wxLIST_FIND_RIGHT
846 wxLIST_FORMAT_LEFT
= controls2c
.wxLIST_FORMAT_LEFT
847 wxLIST_FORMAT_RIGHT
= controls2c
.wxLIST_FORMAT_RIGHT
848 wxLIST_FORMAT_CENTRE
= controls2c
.wxLIST_FORMAT_CENTRE
849 wxLIST_FORMAT_CENTER
= controls2c
.wxLIST_FORMAT_CENTER
850 wxTreeItemIcon_Normal
= controls2c
.wxTreeItemIcon_Normal
851 wxTreeItemIcon_Selected
= controls2c
.wxTreeItemIcon_Selected
852 wxTreeItemIcon_Expanded
= controls2c
.wxTreeItemIcon_Expanded
853 wxTreeItemIcon_SelectedExpanded
= controls2c
.wxTreeItemIcon_SelectedExpanded
854 wxTreeItemIcon_Max
= controls2c
.wxTreeItemIcon_Max
855 wxTREE_HITTEST_ABOVE
= controls2c
.wxTREE_HITTEST_ABOVE
856 wxTREE_HITTEST_BELOW
= controls2c
.wxTREE_HITTEST_BELOW
857 wxTREE_HITTEST_NOWHERE
= controls2c
.wxTREE_HITTEST_NOWHERE
858 wxTREE_HITTEST_ONITEMBUTTON
= controls2c
.wxTREE_HITTEST_ONITEMBUTTON
859 wxTREE_HITTEST_ONITEMICON
= controls2c
.wxTREE_HITTEST_ONITEMICON
860 wxTREE_HITTEST_ONITEMINDENT
= controls2c
.wxTREE_HITTEST_ONITEMINDENT
861 wxTREE_HITTEST_ONITEMLABEL
= controls2c
.wxTREE_HITTEST_ONITEMLABEL
862 wxTREE_HITTEST_ONITEMRIGHT
= controls2c
.wxTREE_HITTEST_ONITEMRIGHT
863 wxTREE_HITTEST_ONITEMSTATEICON
= controls2c
.wxTREE_HITTEST_ONITEMSTATEICON
864 wxTREE_HITTEST_TOLEFT
= controls2c
.wxTREE_HITTEST_TOLEFT
865 wxTREE_HITTEST_TORIGHT
= controls2c
.wxTREE_HITTEST_TORIGHT
866 wxTREE_HITTEST_ONITEMUPPERPART
= controls2c
.wxTREE_HITTEST_ONITEMUPPERPART
867 wxTREE_HITTEST_ONITEMLOWERPART
= controls2c
.wxTREE_HITTEST_ONITEMLOWERPART
868 wxTREE_HITTEST_ONITEM
= controls2c
.wxTREE_HITTEST_ONITEM