]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.py
d0c4d448b394e6a5e4bbdbb54a5a965aa6ac8f48
[wxWidgets.git] / utils / wxPython / src / msw / controls2.py
1 # This file was created automatically by SWIG.
2 import controls2c
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from events import *
11
12 from controls import *
13 import wx
14 class 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>"
77 class wxListItem(wxListItemPtr):
78 def __init__(self) :
79 self.this = controls2c.new_wxListItem()
80 self.thisown = 1
81
82
83
84
85 class 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>"
130 class wxListEvent(wxListEventPtr):
131 def __init__(self,this):
132 self.this = this
133
134
135
136
137 class 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
166 def GetEditControl(self):
167 val = controls2c.wxListCtrl_GetEditControl(self.this)
168 val = wxTextCtrlPtr(val)
169 return val
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)
193 val = wxImageListPtr(val)
194 return val
195 def GetItemData(self,arg0):
196 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
197 return val
198 def GetItem(self,arg0):
199 val = controls2c.wxListCtrl_GetItem(self.this,arg0)
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
236 def SetTextColour(self,arg0):
237 val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
238 return val
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
245 def InsertColumnWith(self,arg0,arg1):
246 val = controls2c.wxListCtrl_InsertColumnWith(self.this,arg0,arg1.this)
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):
276 val = controls2c.wxListCtrl_SetImageList(self.this,arg0.this,arg1)
277 return val
278 def SetItem(self,arg0):
279 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
280 return val
281 def SetStringItem(self,arg0,arg1,arg2,*args):
282 val = apply(controls2c.wxListCtrl_SetStringItem,(self.this,arg0,arg1,arg2,)+args)
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
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>"
307 class 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
317 wx._StdWindowCallbacks(self)
318
319
320
321
322 class wxTreeItemIdPtr :
323 def __init__(self,this):
324 self.this = this
325 self.thisown = 0
326 def __del__(self):
327 if self.thisown == 1 :
328 controls2c.delete_wxTreeItemId(self.this)
329 def IsOk(self):
330 val = controls2c.wxTreeItemId_IsOk(self.this)
331 return val
332 def __repr__(self):
333 return "<C wxTreeItemId instance>"
334 class wxTreeItemId(wxTreeItemIdPtr):
335 def __init__(self) :
336 self.this = controls2c.new_wxTreeItemId()
337 self.thisown = 1
338
339
340
341
342 class wxTreeItemDataPtr :
343 def __init__(self,this):
344 self.this = this
345 self.thisown = 0
346 def GetData(self):
347 val = controls2c.wxTreeItemData_GetData(self.this)
348 return val
349 def SetData(self,arg0):
350 val = controls2c.wxTreeItemData_SetData(self.this,arg0)
351 return val
352 def GetId(self):
353 val = controls2c.wxTreeItemData_GetId(self.this)
354 val = wxTreeItemIdPtr(val)
355 return val
356 def SetId(self,arg0):
357 val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
358 return val
359 def __repr__(self):
360 return "<C wxTreeItemData instance>"
361 class wxTreeItemData(wxTreeItemDataPtr):
362 def __init__(self,*args) :
363 self.this = apply(controls2c.new_wxTreeItemData,()+args)
364 self.thisown = 1
365
366
367
368
369 class wxTreeEventPtr(wxCommandEventPtr):
370 def __init__(self,this):
371 self.this = this
372 self.thisown = 0
373 def GetItem(self):
374 val = controls2c.wxTreeEvent_GetItem(self.this)
375 val = wxTreeItemIdPtr(val)
376 val.thisown = 1
377 return val
378 def GetOldItem(self):
379 val = controls2c.wxTreeEvent_GetOldItem(self.this)
380 val = wxTreeItemIdPtr(val)
381 val.thisown = 1
382 return val
383 def GetPoint(self):
384 val = controls2c.wxTreeEvent_GetPoint(self.this)
385 val = wxPointPtr(val)
386 val.thisown = 1
387 return val
388 def GetCode(self):
389 val = controls2c.wxTreeEvent_GetCode(self.this)
390 return val
391 def Veto(self):
392 val = controls2c.wxTreeEvent_Veto(self.this)
393 return val
394 def __repr__(self):
395 return "<C wxTreeEvent instance>"
396 class wxTreeEvent(wxTreeEventPtr):
397 def __init__(self,this):
398 self.this = this
399
400
401
402
403 class wxTreeCtrlPtr(wxControlPtr):
404 def __init__(self,this):
405 self.this = this
406 self.thisown = 0
407 def GetCount(self):
408 val = controls2c.wxTreeCtrl_GetCount(self.this)
409 return val
410 def GetIndent(self):
411 val = controls2c.wxTreeCtrl_GetIndent(self.this)
412 return val
413 def SetIndent(self,arg0):
414 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
415 return val
416 def GetImageList(self):
417 val = controls2c.wxTreeCtrl_GetImageList(self.this)
418 val = wxImageListPtr(val)
419 return val
420 def GetStateImageList(self):
421 val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
422 val = wxImageListPtr(val)
423 return val
424 def SetImageList(self,arg0):
425 val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this)
426 return val
427 def SetStateImageList(self,arg0):
428 val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this)
429 return val
430 def GetItemText(self,arg0):
431 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
432 return val
433 def GetItemImage(self,arg0):
434 val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
435 return val
436 def GetItemSelectedImage(self,arg0):
437 val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
438 return val
439 def SetItemText(self,arg0,arg1):
440 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
441 return val
442 def SetItemImage(self,arg0,arg1):
443 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
444 return val
445 def SetItemSelectedImage(self,arg0,arg1):
446 val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
447 return val
448 def SetItemHasChildren(self,arg0,*args):
449 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
450 return val
451 def GetItemData(self,arg0):
452 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
453 val = wxTreeItemDataPtr(val)
454 return val
455 def SetItemData(self,arg0,arg1):
456 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
457 return val
458 def GetPyData(self,arg0):
459 val = controls2c.wxTreeCtrl_GetPyData(self.this,arg0.this)
460 return val
461 def SetPyData(self,arg0,arg1):
462 val = controls2c.wxTreeCtrl_SetPyData(self.this,arg0.this,arg1)
463 return val
464 def IsVisible(self,arg0):
465 val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
466 return val
467 def ItemHasChildren(self,arg0):
468 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
469 return val
470 def IsExpanded(self,arg0):
471 val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
472 return val
473 def IsSelected(self,arg0):
474 val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
475 return val
476 def GetRootItem(self):
477 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
478 val = wxTreeItemIdPtr(val)
479 val.thisown = 1
480 return val
481 def GetSelection(self):
482 val = controls2c.wxTreeCtrl_GetSelection(self.this)
483 val = wxTreeItemIdPtr(val)
484 val.thisown = 1
485 return val
486 def GetParent(self,arg0):
487 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
488 val = wxTreeItemIdPtr(val)
489 val.thisown = 1
490 return val
491 def GetFirstChild(self,arg0,arg1):
492 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
493 return val
494 def GetNextChild(self,arg0,arg1):
495 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
496 return val
497 def GetNextSibling(self,arg0):
498 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
499 val = wxTreeItemIdPtr(val)
500 val.thisown = 1
501 return val
502 def GetPrevSibling(self,arg0):
503 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
504 val = wxTreeItemIdPtr(val)
505 val.thisown = 1
506 return val
507 def GetFirstVisibleItem(self):
508 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
509 val = wxTreeItemIdPtr(val)
510 val.thisown = 1
511 return val
512 def GetNextVisible(self,arg0):
513 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
514 val = wxTreeItemIdPtr(val)
515 val.thisown = 1
516 return val
517 def GetPrevVisible(self,arg0):
518 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
519 val = wxTreeItemIdPtr(val)
520 val.thisown = 1
521 return val
522 def AddRoot(self,arg0,*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_AddRoot,(self.this,arg0,)+args)
528 val = wxTreeItemIdPtr(val)
529 val.thisown = 1
530 return val
531 def PrependItem(self,arg0,arg1,*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_PrependItem,(self.this,arg0.this,arg1,)+args)
537 val = wxTreeItemIdPtr(val)
538 val.thisown = 1
539 return val
540 def InsertItem(self,arg0,arg1,arg2,*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_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
546 val = wxTreeItemIdPtr(val)
547 val.thisown = 1
548 return val
549 def AppendItem(self,arg0,arg1,*args):
550 argl = map(None,args)
551 try: argl[2] = argl[2].this
552 except: pass
553 args = tuple(argl)
554 val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
555 val = wxTreeItemIdPtr(val)
556 val.thisown = 1
557 return val
558 def Delete(self,arg0):
559 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
560 return val
561 def DeleteChildren(self,arg0):
562 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
563 return val
564 def DeleteAllItems(self):
565 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
566 return val
567 def Expand(self,arg0):
568 val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
569 return val
570 def Collapse(self,arg0):
571 val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
572 return val
573 def CollapseAndReset(self,arg0):
574 val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
575 return val
576 def Toggle(self,arg0):
577 val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
578 return val
579 def Unselect(self):
580 val = controls2c.wxTreeCtrl_Unselect(self.this)
581 return val
582 def SelectItem(self,arg0):
583 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
584 return val
585 def EnsureVisible(self,arg0):
586 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
587 return val
588 def ScrollTo(self,arg0):
589 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
590 return val
591 def EditLabel(self,arg0):
592 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
593 val = wxTextCtrlPtr(val)
594 return val
595 def GetEditControl(self):
596 val = controls2c.wxTreeCtrl_GetEditControl(self.this)
597 val = wxTextCtrlPtr(val)
598 return val
599 def EndEditLabel(self,arg0,*args):
600 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
601 return val
602 def SetItemBold(self,arg0,*args):
603 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
604 return val
605 def IsBold(self,arg0):
606 val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
607 return val
608 def HitTest(self,arg0):
609 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
610 val = wxTreeItemIdPtr(val)
611 val.thisown = 1
612 return val
613 def __repr__(self):
614 return "<C wxTreeCtrl instance>"
615 class wxTreeCtrl(wxTreeCtrlPtr):
616 def __init__(self,arg0,*args) :
617 argl = map(None,args)
618 try: argl[1] = argl[1].this
619 except: pass
620 try: argl[2] = argl[2].this
621 except: pass
622 args = tuple(argl)
623 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
624 self.thisown = 1
625 wx._StdWindowCallbacks(self)
626
627
628
629
630
631
632 #-------------- FUNCTION WRAPPERS ------------------
633
634
635
636 #-------------- VARIABLE WRAPPERS ------------------
637
638 wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
639 wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
640 wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
641 wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
642 wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
643 wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
644 wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
645 wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
646 wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
647 wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
648 wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
649 wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
650 wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
651 wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
652 wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
653 wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
654 wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
655 wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
656 wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
657 wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
658 wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
659 wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
660 wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
661 wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
662 wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
663 wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
664 wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
665 wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
666 wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
667 wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
668 wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
669 wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
670 wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
671 wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
672 wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
673 wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
674 wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
675 wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
676 wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
677 wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
678 wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
679 wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT