]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/controls2.py
minimal now works in Unicode mode
[wxWidgets.git] / utils / wxPython / src / msw / controls2.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import controls2c
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
10from events import *
11
12from controls import *
b8b8dda7 13import wx
8ab979d7
RD
14class wxListItemPtr :
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def __del__(self):
19 if self.thisown == 1 :
20 controls2c.delete_wxListItem(self.this)
21 def __setattr__(self,name,value):
22 if name == "m_mask" :
23 controls2c.wxListItem_m_mask_set(self.this,value)
24 return
25 if name == "m_itemId" :
26 controls2c.wxListItem_m_itemId_set(self.this,value)
27 return
28 if name == "m_col" :
29 controls2c.wxListItem_m_col_set(self.this,value)
30 return
31 if name == "m_state" :
32 controls2c.wxListItem_m_state_set(self.this,value)
33 return
34 if name == "m_stateMask" :
35 controls2c.wxListItem_m_stateMask_set(self.this,value)
36 return
37 if name == "m_text" :
38 controls2c.wxListItem_m_text_set(self.this,value)
39 return
40 if name == "m_image" :
41 controls2c.wxListItem_m_image_set(self.this,value)
42 return
43 if name == "m_data" :
44 controls2c.wxListItem_m_data_set(self.this,value)
45 return
46 if name == "m_format" :
47 controls2c.wxListItem_m_format_set(self.this,value)
48 return
49 if name == "m_width" :
50 controls2c.wxListItem_m_width_set(self.this,value)
51 return
52 self.__dict__[name] = value
53 def __getattr__(self,name):
54 if name == "m_mask" :
55 return controls2c.wxListItem_m_mask_get(self.this)
56 if name == "m_itemId" :
57 return controls2c.wxListItem_m_itemId_get(self.this)
58 if name == "m_col" :
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)
64 if name == "m_text" :
65 return controls2c.wxListItem_m_text_get(self.this)
66 if name == "m_image" :
67 return controls2c.wxListItem_m_image_get(self.this)
68 if name == "m_data" :
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
75 def __repr__(self):
76 return "<C wxListItem instance>"
77class wxListItem(wxListItemPtr):
78 def __init__(self) :
79 self.this = controls2c.new_wxListItem()
80 self.thisown = 1
81
82
83
84
85class wxListEventPtr(wxCommandEventPtr):
86 def __init__(self,this):
87 self.this = this
88 self.thisown = 0
89 def __setattr__(self,name,value):
90 if name == "m_code" :
91 controls2c.wxListEvent_m_code_set(self.this,value)
92 return
93 if name == "m_itemIndex" :
94 controls2c.wxListEvent_m_itemIndex_set(self.this,value)
95 return
96 if name == "m_oldItemIndex" :
97 controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
98 return
99 if name == "m_col" :
100 controls2c.wxListEvent_m_col_set(self.this,value)
101 return
102 if name == "m_cancelled" :
103 controls2c.wxListEvent_m_cancelled_set(self.this,value)
104 return
105 if name == "m_pointDrag" :
106 controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
107 return
108 if name == "m_item" :
109 controls2c.wxListEvent_m_item_set(self.this,value.this)
110 return
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)
119 if name == "m_col" :
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
128 def __repr__(self):
129 return "<C wxListEvent instance>"
130class wxListEvent(wxListEventPtr):
131 def __init__(self,this):
132 self.this = this
133
134
135
136
137class wxListCtrlPtr(wxControlPtr):
138 def __init__(self,this):
139 self.this = this
140 self.thisown = 0
141 def Arrange(self,*args):
142 val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
143 return val
144 def DeleteItem(self,arg0):
145 val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
146 return val
147 def DeleteAllItems(self):
148 val = controls2c.wxListCtrl_DeleteAllItems(self.this)
149 return val
150 def DeleteColumn(self,arg0):
151 val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
152 return val
153 def DeleteAllColumns(self):
154 val = controls2c.wxListCtrl_DeleteAllColumns(self.this)
155 return val
156 def ClearAll(self):
157 val = controls2c.wxListCtrl_ClearAll(self.this)
158 return val
159 def EditLabel(self,arg0):
160 val = controls2c.wxListCtrl_EditLabel(self.this,arg0)
161 val = wxTextCtrlPtr(val)
162 return val
163 def EndEditLabel(self,arg0):
164 val = controls2c.wxListCtrl_EndEditLabel(self.this,arg0)
165 return val
be4d9c1f
RD
166 def GetEditControl(self):
167 val = controls2c.wxListCtrl_GetEditControl(self.this)
168 val = wxTextCtrlPtr(val)
169 return val
8ab979d7
RD
170 def EnsureVisible(self,arg0):
171 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
172 return val
173 def FindItem(self,arg0,arg1,*args):
174 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
175 return val
176 def FindItemData(self,arg0,arg1):
177 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
178 return val
179 def FindItemAtPos(self,arg0,arg1,arg2):
180 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
181 return val
182 def GetColumn(self,arg0,arg1):
183 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
184 return val
185 def GetColumnWidth(self,arg0):
186 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
187 return val
188 def GetCountPerPage(self):
189 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
190 return val
191 def GetImageList(self,arg0):
192 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
af309447 193 val = wxImageListPtr(val)
8ab979d7
RD
194 return val
195 def GetItemData(self,arg0):
196 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
197 return val
0699c864
RD
198 def GetItem(self,arg0):
199 val = controls2c.wxListCtrl_GetItem(self.this,arg0)
8ab979d7
RD
200 val = wxListItemPtr(val)
201 val.thisown = 1
202 return val
203 def GetItemPosition(self,arg0):
204 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
205 val = wxPointPtr(val)
206 val.thisown = 1
207 return val
208 def GetItemRect(self,arg0,*args):
209 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
210 val = wxRectPtr(val)
211 val.thisown = 1
212 return val
213 def GetItemState(self,arg0,arg1):
214 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
215 return val
216 def GetItemCount(self):
217 val = controls2c.wxListCtrl_GetItemCount(self.this)
218 return val
219 def GetItemSpacing(self,arg0):
220 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
221 return val
222 def GetItemText(self,arg0):
223 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
224 return val
225 def GetNextItem(self,arg0,*args):
226 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
227 return val
228 def GetSelectedItemCount(self):
229 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
230 return val
231 def GetTextColour(self):
232 val = controls2c.wxListCtrl_GetTextColour(self.this)
233 val = wxColourPtr(val)
234 val.thisown = 1
235 return val
be4d9c1f
RD
236 def SetTextColour(self,arg0):
237 val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
238 return val
8ab979d7
RD
239 def GetTopItem(self):
240 val = controls2c.wxListCtrl_GetTopItem(self.this)
241 return val
242 def HitTest(self,arg0):
243 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
244 return val
0699c864
RD
245 def InsertColumnWith(self,arg0,arg1):
246 val = controls2c.wxListCtrl_InsertColumnWith(self.this,arg0,arg1.this)
8ab979d7
RD
247 return val
248 def InsertColumn(self,arg0,arg1,*args):
249 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
250 return val
251 def InsertItem(self,arg0):
252 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
253 return val
254 def InsertStringItem(self,arg0,arg1):
255 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
256 return val
257 def InsertImageItem(self,arg0,arg1):
258 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
259 return val
260 def InsertImageStringItem(self,arg0,arg1,arg2):
261 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
262 return val
263 def ScrollList(self,arg0,arg1):
264 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
265 return val
266 def SetBackgroundColour(self,arg0):
267 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
268 return val
269 def SetColumn(self,arg0,arg1):
270 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
271 return val
272 def SetColumnWidth(self,arg0,arg1):
273 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
274 return val
275 def SetImageList(self,arg0,arg1):
af309447 276 val = controls2c.wxListCtrl_SetImageList(self.this,arg0.this,arg1)
8ab979d7
RD
277 return val
278 def SetItem(self,arg0):
279 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
280 return val
af309447
RD
281 def SetStringItem(self,arg0,arg1,arg2,*args):
282 val = apply(controls2c.wxListCtrl_SetStringItem,(self.this,arg0,arg1,arg2,)+args)
8ab979d7
RD
283 return val
284 def SetItemData(self,arg0,arg1):
285 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
286 return val
287 def SetItemImage(self,arg0,arg1,arg2):
288 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
289 return val
290 def SetItemPosition(self,arg0,arg1):
291 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
292 return val
293 def SetItemState(self,arg0,arg1,arg2):
294 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
295 return val
296 def SetItemText(self,arg0,arg1):
297 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
298 return val
299 def SetSingleStyle(self,arg0,*args):
300 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
301 return val
8ab979d7
RD
302 def SetWindowStyleFlag(self,arg0):
303 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
304 return val
305 def __repr__(self):
306 return "<C wxListCtrl instance>"
307class wxListCtrl(wxListCtrlPtr):
308 def __init__(self,arg0,arg1,*args) :
309 argl = map(None,args)
310 try: argl[0] = argl[0].this
311 except: pass
312 try: argl[1] = argl[1].this
313 except: pass
314 args = tuple(argl)
315 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
316 self.thisown = 1
b8b8dda7 317 wx._StdWindowCallbacks(self)
8ab979d7
RD
318
319
320
321
d5c9047a 322class wxTreeItemIdPtr :
8ab979d7
RD
323 def __init__(self,this):
324 self.this = this
325 self.thisown = 0
326 def __del__(self):
327 if self.thisown == 1 :
d5c9047a
RD
328 controls2c.delete_wxTreeItemId(self.this)
329 def IsOk(self):
330 val = controls2c.wxTreeItemId_IsOk(self.this)
331 return val
d5c9047a
RD
332 def __repr__(self):
333 return "<C wxTreeItemId instance>"
334class wxTreeItemId(wxTreeItemIdPtr):
335 def __init__(self) :
336 self.this = controls2c.new_wxTreeItemId()
337 self.thisown = 1
338
339
340
341
342class wxTreeItemDataPtr :
343 def __init__(self,this):
344 self.this = this
345 self.thisown = 0
346 def __del__(self):
347 if self.thisown == 1 :
348 controls2c.delete_wxTreeItemData(self.this)
630d84f2
RD
349 def GetId(self):
350 val = controls2c.wxTreeItemData_GetId(self.this)
d5c9047a
RD
351 val = wxTreeItemIdPtr(val)
352 return val
630d84f2
RD
353 def SetId(self,arg0):
354 val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
355 return val
8ab979d7 356 def __repr__(self):
d5c9047a
RD
357 return "<C wxTreeItemData instance>"
358class wxTreeItemData(wxTreeItemDataPtr):
8ab979d7 359 def __init__(self) :
d5c9047a 360 self.this = controls2c.new_wxTreeItemData()
8ab979d7
RD
361 self.thisown = 1
362
363
364
365
366class wxTreeEventPtr(wxCommandEventPtr):
367 def __init__(self,this):
368 self.this = this
369 self.thisown = 0
d5c9047a
RD
370 def GetItem(self):
371 val = controls2c.wxTreeEvent_GetItem(self.this)
372 val = wxTreeItemIdPtr(val)
373 val.thisown = 1
374 return val
375 def GetOldItem(self):
376 val = controls2c.wxTreeEvent_GetOldItem(self.this)
377 val = wxTreeItemIdPtr(val)
378 val.thisown = 1
379 return val
380 def GetPoint(self):
381 val = controls2c.wxTreeEvent_GetPoint(self.this)
382 val = wxPointPtr(val)
383 val.thisown = 1
384 return val
385 def GetCode(self):
386 val = controls2c.wxTreeEvent_GetCode(self.this)
387 return val
388 def Veto(self):
389 val = controls2c.wxTreeEvent_Veto(self.this)
390 return val
8ab979d7
RD
391 def __repr__(self):
392 return "<C wxTreeEvent instance>"
393class wxTreeEvent(wxTreeEventPtr):
394 def __init__(self,this):
395 self.this = this
396
397
398
399
400class wxTreeCtrlPtr(wxControlPtr):
401 def __init__(self,this):
402 self.this = this
403 self.thisown = 0
d5c9047a
RD
404 def GetCount(self):
405 val = controls2c.wxTreeCtrl_GetCount(self.this)
8ab979d7 406 return val
d5c9047a
RD
407 def GetIndent(self):
408 val = controls2c.wxTreeCtrl_GetIndent(self.this)
8ab979d7 409 return val
d5c9047a
RD
410 def SetIndent(self,arg0):
411 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
8ab979d7 412 return val
d5c9047a
RD
413 def GetImageList(self):
414 val = controls2c.wxTreeCtrl_GetImageList(self.this)
af309447 415 val = wxImageListPtr(val)
8ab979d7 416 return val
d5c9047a
RD
417 def GetStateImageList(self):
418 val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
af309447 419 val = wxImageListPtr(val)
8ab979d7 420 return val
d5c9047a 421 def SetImageList(self,arg0):
af309447 422 val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this)
8ab979d7 423 return val
d5c9047a 424 def SetStateImageList(self,arg0):
af309447 425 val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this)
8ab979d7 426 return val
d5c9047a
RD
427 def GetItemText(self,arg0):
428 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
8ab979d7 429 return val
d5c9047a
RD
430 def GetItemImage(self,arg0):
431 val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
8ab979d7 432 return val
d5c9047a
RD
433 def GetItemSelectedImage(self,arg0):
434 val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
8ab979d7
RD
435 return val
436 def GetItemData(self,arg0):
d5c9047a
RD
437 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
438 val = wxTreeItemDataPtr(val)
8ab979d7 439 return val
d5c9047a
RD
440 def SetItemText(self,arg0,arg1):
441 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
8ab979d7 442 return val
d5c9047a
RD
443 def SetItemImage(self,arg0,arg1):
444 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
8ab979d7 445 return val
d5c9047a
RD
446 def SetItemSelectedImage(self,arg0,arg1):
447 val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
8ab979d7 448 return val
d5c9047a
RD
449 def SetItemData(self,arg0,arg1):
450 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
451 return val
08127323
RD
452 def SetItemHasChildren(self,arg0,*args):
453 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
454 return val
d5c9047a
RD
455 def IsVisible(self,arg0):
456 val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
8ab979d7 457 return val
d5c9047a
RD
458 def ItemHasChildren(self,arg0):
459 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
8ab979d7 460 return val
d5c9047a
RD
461 def IsExpanded(self,arg0):
462 val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
8ab979d7 463 return val
d5c9047a
RD
464 def IsSelected(self,arg0):
465 val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
8ab979d7
RD
466 return val
467 def GetRootItem(self):
468 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
d5c9047a
RD
469 val = wxTreeItemIdPtr(val)
470 val.thisown = 1
8ab979d7
RD
471 return val
472 def GetSelection(self):
473 val = controls2c.wxTreeCtrl_GetSelection(self.this)
d5c9047a
RD
474 val = wxTreeItemIdPtr(val)
475 val.thisown = 1
8ab979d7 476 return val
d5c9047a
RD
477 def GetParent(self,arg0):
478 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
479 val = wxTreeItemIdPtr(val)
480 val.thisown = 1
8ab979d7 481 return val
d5c9047a
RD
482 def GetFirstChild(self,arg0,arg1):
483 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
8ab979d7 484 return val
d5c9047a
RD
485 def GetNextChild(self,arg0,arg1):
486 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
8ab979d7 487 return val
d5c9047a
RD
488 def GetNextSibling(self,arg0):
489 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
490 val = wxTreeItemIdPtr(val)
491 val.thisown = 1
8ab979d7 492 return val
d5c9047a
RD
493 def GetPrevSibling(self,arg0):
494 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
495 val = wxTreeItemIdPtr(val)
496 val.thisown = 1
8ab979d7 497 return val
d5c9047a
RD
498 def GetFirstVisibleItem(self):
499 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
500 val = wxTreeItemIdPtr(val)
501 val.thisown = 1
8ab979d7 502 return val
d5c9047a
RD
503 def GetNextVisible(self,arg0):
504 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
505 val = wxTreeItemIdPtr(val)
506 val.thisown = 1
8ab979d7 507 return val
d5c9047a
RD
508 def GetPrevVisible(self,arg0):
509 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
510 val = wxTreeItemIdPtr(val)
511 val.thisown = 1
8ab979d7 512 return val
d5c9047a
RD
513 def AddRoot(self,arg0,*args):
514 argl = map(None,args)
515 try: argl[2] = argl[2].this
516 except: pass
517 args = tuple(argl)
518 val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
519 val = wxTreeItemIdPtr(val)
520 val.thisown = 1
8ab979d7 521 return val
d5c9047a
RD
522 def PrependItem(self,arg0,arg1,*args):
523 argl = map(None,args)
524 try: argl[2] = argl[2].this
525 except: pass
526 args = tuple(argl)
527 val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
528 val = wxTreeItemIdPtr(val)
529 val.thisown = 1
8ab979d7 530 return val
d5c9047a
RD
531 def InsertItem(self,arg0,arg1,arg2,*args):
532 argl = map(None,args)
533 try: argl[2] = argl[2].this
534 except: pass
535 args = tuple(argl)
536 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
537 val = wxTreeItemIdPtr(val)
538 val.thisown = 1
8ab979d7 539 return val
d5c9047a
RD
540 def AppendItem(self,arg0,arg1,*args):
541 argl = map(None,args)
542 try: argl[2] = argl[2].this
543 except: pass
544 args = tuple(argl)
545 val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
546 val = wxTreeItemIdPtr(val)
547 val.thisown = 1
8ab979d7 548 return val
d5c9047a
RD
549 def Delete(self,arg0):
550 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
551 return val
08127323
RD
552 def DeleteChildren(self,arg0):
553 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
554 return val
d5c9047a
RD
555 def DeleteAllItems(self):
556 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
557 return val
558 def Expand(self,arg0):
559 val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
560 return val
561 def Collapse(self,arg0):
562 val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
563 return val
564 def CollapseAndReset(self,arg0):
565 val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
566 return val
567 def Toggle(self,arg0):
568 val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
569 return val
570 def Unselect(self):
571 val = controls2c.wxTreeCtrl_Unselect(self.this)
572 return val
573 def SelectItem(self,arg0):
574 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
575 return val
576 def EnsureVisible(self,arg0):
577 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
578 return val
579 def ScrollTo(self,arg0):
580 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
581 return val
582 def EditLabel(self,arg0):
583 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
584 val = wxTextCtrlPtr(val)
585 return val
586 def GetEditControl(self):
587 val = controls2c.wxTreeCtrl_GetEditControl(self.this)
588 val = wxTextCtrlPtr(val)
589 return val
590 def EndEditLabel(self,arg0,*args):
591 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
8ab979d7 592 return val
b8b8dda7
RD
593 def SetItemBold(self,arg0,*args):
594 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
595 return val
596 def IsBold(self,arg0):
597 val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
598 return val
599 def HitTest(self,arg0):
600 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
601 val = wxTreeItemIdPtr(val)
602 val.thisown = 1
603 return val
8ab979d7
RD
604 def __repr__(self):
605 return "<C wxTreeCtrl instance>"
606class wxTreeCtrl(wxTreeCtrlPtr):
607 def __init__(self,arg0,*args) :
608 argl = map(None,args)
609 try: argl[1] = argl[1].this
610 except: pass
611 try: argl[2] = argl[2].this
612 except: pass
613 args = tuple(argl)
614 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
615 self.thisown = 1
b8b8dda7 616 wx._StdWindowCallbacks(self)
8ab979d7
RD
617
618
619
620
621
622
623#-------------- FUNCTION WRAPPERS ------------------
624
625
626
627#-------------- VARIABLE WRAPPERS ------------------
628
af309447
RD
629wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
630wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
631wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
632wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
633wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
634wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
635wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
636wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
637wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
638wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
639wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
640wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
641wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
642wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
643wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
644wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
645wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
646wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
647wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
648wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
649wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
650wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
651wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
652wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
653wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
654wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
655wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
656wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
657wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
658wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
659wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
660wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
661wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
662wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
663wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
664wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
665wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
666wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
667wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
668wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
669wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
670wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT