]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.py
minimal now works in Unicode mode
[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 __del__(self):
347 if self.thisown == 1 :
348 controls2c.delete_wxTreeItemData(self.this)
349 def GetId(self):
350 val = controls2c.wxTreeItemData_GetId(self.this)
351 val = wxTreeItemIdPtr(val)
352 return val
353 def SetId(self,arg0):
354 val = controls2c.wxTreeItemData_SetId(self.this,arg0.this)
355 return val
356 def __repr__(self):
357 return "<C wxTreeItemData instance>"
358 class wxTreeItemData(wxTreeItemDataPtr):
359 def __init__(self) :
360 self.this = controls2c.new_wxTreeItemData()
361 self.thisown = 1
362
363
364
365
366 class wxTreeEventPtr(wxCommandEventPtr):
367 def __init__(self,this):
368 self.this = this
369 self.thisown = 0
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
391 def __repr__(self):
392 return "<C wxTreeEvent instance>"
393 class wxTreeEvent(wxTreeEventPtr):
394 def __init__(self,this):
395 self.this = this
396
397
398
399
400 class wxTreeCtrlPtr(wxControlPtr):
401 def __init__(self,this):
402 self.this = this
403 self.thisown = 0
404 def GetCount(self):
405 val = controls2c.wxTreeCtrl_GetCount(self.this)
406 return val
407 def GetIndent(self):
408 val = controls2c.wxTreeCtrl_GetIndent(self.this)
409 return val
410 def SetIndent(self,arg0):
411 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
412 return val
413 def GetImageList(self):
414 val = controls2c.wxTreeCtrl_GetImageList(self.this)
415 val = wxImageListPtr(val)
416 return val
417 def GetStateImageList(self):
418 val = controls2c.wxTreeCtrl_GetStateImageList(self.this)
419 val = wxImageListPtr(val)
420 return val
421 def SetImageList(self,arg0):
422 val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this)
423 return val
424 def SetStateImageList(self,arg0):
425 val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this)
426 return val
427 def GetItemText(self,arg0):
428 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this)
429 return val
430 def GetItemImage(self,arg0):
431 val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this)
432 return val
433 def GetItemSelectedImage(self,arg0):
434 val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
435 return val
436 def GetItemData(self,arg0):
437 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
438 val = wxTreeItemDataPtr(val)
439 return val
440 def SetItemText(self,arg0,arg1):
441 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
442 return val
443 def SetItemImage(self,arg0,arg1):
444 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1)
445 return val
446 def SetItemSelectedImage(self,arg0,arg1):
447 val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
448 return val
449 def SetItemData(self,arg0,arg1):
450 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
451 return val
452 def SetItemHasChildren(self,arg0,*args):
453 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
454 return val
455 def IsVisible(self,arg0):
456 val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
457 return val
458 def ItemHasChildren(self,arg0):
459 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this)
460 return val
461 def IsExpanded(self,arg0):
462 val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this)
463 return val
464 def IsSelected(self,arg0):
465 val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this)
466 return val
467 def GetRootItem(self):
468 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
469 val = wxTreeItemIdPtr(val)
470 val.thisown = 1
471 return val
472 def GetSelection(self):
473 val = controls2c.wxTreeCtrl_GetSelection(self.this)
474 val = wxTreeItemIdPtr(val)
475 val.thisown = 1
476 return val
477 def GetParent(self,arg0):
478 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this)
479 val = wxTreeItemIdPtr(val)
480 val.thisown = 1
481 return val
482 def GetFirstChild(self,arg0,arg1):
483 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
484 return val
485 def GetNextChild(self,arg0,arg1):
486 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
487 return val
488 def GetNextSibling(self,arg0):
489 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
490 val = wxTreeItemIdPtr(val)
491 val.thisown = 1
492 return val
493 def GetPrevSibling(self,arg0):
494 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
495 val = wxTreeItemIdPtr(val)
496 val.thisown = 1
497 return val
498 def GetFirstVisibleItem(self):
499 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
500 val = wxTreeItemIdPtr(val)
501 val.thisown = 1
502 return val
503 def GetNextVisible(self,arg0):
504 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
505 val = wxTreeItemIdPtr(val)
506 val.thisown = 1
507 return val
508 def GetPrevVisible(self,arg0):
509 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
510 val = wxTreeItemIdPtr(val)
511 val.thisown = 1
512 return val
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
521 return val
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
530 return val
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
539 return val
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
548 return val
549 def Delete(self,arg0):
550 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
551 return val
552 def DeleteChildren(self,arg0):
553 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
554 return val
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)
592 return val
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
604 def __repr__(self):
605 return "<C wxTreeCtrl instance>"
606 class 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
616 wx._StdWindowCallbacks(self)
617
618
619
620
621
622
623 #-------------- FUNCTION WRAPPERS ------------------
624
625
626
627 #-------------- VARIABLE WRAPPERS ------------------
628
629 wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
630 wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
631 wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
632 wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
633 wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
634 wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
635 wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
636 wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
637 wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
638 wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
639 wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
640 wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
641 wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
642 wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
643 wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
644 wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
645 wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
646 wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
647 wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
648 wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
649 wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
650 wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
651 wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
652 wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
653 wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
654 wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
655 wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
656 wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
657 wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
658 wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
659 wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
660 wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
661 wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
662 wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
663 wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
664 wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
665 wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
666 wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
667 wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
668 wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
669 wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
670 wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT