]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.py
Fixed wxImage GetData and SetData to properly use String objects for
[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, controls2c=controls2c):
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, controls2c=controls2c):
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(wxNotifyEventPtr):
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 GetLabel(self):
392 val = controls2c.wxTreeEvent_GetLabel(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 GetChildrenCount(self,arg0,*args):
492 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self.this,arg0.this,)+args)
493 return val
494 def GetFirstChild(self,arg0,arg1):
495 val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
496 return val
497 def GetNextChild(self,arg0,arg1):
498 val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
499 return val
500 def GetNextSibling(self,arg0):
501 val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this)
502 val = wxTreeItemIdPtr(val)
503 val.thisown = 1
504 return val
505 def GetPrevSibling(self,arg0):
506 val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this)
507 val = wxTreeItemIdPtr(val)
508 val.thisown = 1
509 return val
510 def GetFirstVisibleItem(self):
511 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
512 val = wxTreeItemIdPtr(val)
513 val.thisown = 1
514 return val
515 def GetNextVisible(self,arg0):
516 val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this)
517 val = wxTreeItemIdPtr(val)
518 val.thisown = 1
519 return val
520 def GetPrevVisible(self,arg0):
521 val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this)
522 val = wxTreeItemIdPtr(val)
523 val.thisown = 1
524 return val
525 def AddRoot(self,arg0,*args):
526 argl = map(None,args)
527 try: argl[2] = argl[2].this
528 except: pass
529 args = tuple(argl)
530 val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args)
531 val = wxTreeItemIdPtr(val)
532 val.thisown = 1
533 return val
534 def PrependItem(self,arg0,arg1,*args):
535 argl = map(None,args)
536 try: argl[2] = argl[2].this
537 except: pass
538 args = tuple(argl)
539 val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args)
540 val = wxTreeItemIdPtr(val)
541 val.thisown = 1
542 return val
543 def InsertItem(self,arg0,arg1,arg2,*args):
544 argl = map(None,args)
545 try: argl[2] = argl[2].this
546 except: pass
547 args = tuple(argl)
548 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args)
549 val = wxTreeItemIdPtr(val)
550 val.thisown = 1
551 return val
552 def AppendItem(self,arg0,arg1,*args):
553 argl = map(None,args)
554 try: argl[2] = argl[2].this
555 except: pass
556 args = tuple(argl)
557 val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args)
558 val = wxTreeItemIdPtr(val)
559 val.thisown = 1
560 return val
561 def Delete(self,arg0):
562 val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this)
563 return val
564 def DeleteChildren(self,arg0):
565 val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this)
566 return val
567 def DeleteAllItems(self):
568 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
569 return val
570 def Expand(self,arg0):
571 val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this)
572 return val
573 def Collapse(self,arg0):
574 val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this)
575 return val
576 def CollapseAndReset(self,arg0):
577 val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this)
578 return val
579 def Toggle(self,arg0):
580 val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this)
581 return val
582 def Unselect(self):
583 val = controls2c.wxTreeCtrl_Unselect(self.this)
584 return val
585 def UnselectAll(self):
586 val = controls2c.wxTreeCtrl_UnselectAll(self.this)
587 return val
588 def SelectItem(self,arg0):
589 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this)
590 return val
591 def EnsureVisible(self,arg0):
592 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this)
593 return val
594 def ScrollTo(self,arg0):
595 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this)
596 return val
597 def EditLabel(self,arg0):
598 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this)
599 val = wxTextCtrlPtr(val)
600 return val
601 def GetEditControl(self):
602 val = controls2c.wxTreeCtrl_GetEditControl(self.this)
603 val = wxTextCtrlPtr(val)
604 return val
605 def EndEditLabel(self,arg0,*args):
606 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
607 return val
608 def SetItemBold(self,arg0,*args):
609 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
610 return val
611 def IsBold(self,arg0):
612 val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
613 return val
614 def HitTest(self,arg0):
615 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
616 val = wxTreeItemIdPtr(val)
617 val.thisown = 1
618 return val
619 def __repr__(self):
620 return "<C wxTreeCtrl instance>"
621
622 # Redefine a couple methods that SWIG gets a bit confused on...
623 def GetFirstChild(self,arg0,arg1):
624 val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
625 val1 = wxTreeItemIdPtr(val1)
626 val1.thisown = 1
627 return (val1,val2)
628 def GetNextChild(self,arg0,arg1):
629 val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
630 val1 = wxTreeItemIdPtr(val1)
631 val1.thisown = 1
632 return (val1,val2)
633
634 class wxTreeCtrl(wxTreeCtrlPtr):
635 def __init__(self,arg0,*args) :
636 argl = map(None,args)
637 try: argl[1] = argl[1].this
638 except: pass
639 try: argl[2] = argl[2].this
640 except: pass
641 args = tuple(argl)
642 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
643 self.thisown = 1
644 wx._StdWindowCallbacks(self)
645
646
647
648
649
650
651 #-------------- FUNCTION WRAPPERS ------------------
652
653
654
655 #-------------- VARIABLE WRAPPERS ------------------
656
657 wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
658 wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
659 wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
660 wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
661 wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
662 wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
663 wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
664 wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
665 wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
666 wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
667 wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
668 wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
669 wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
670 wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
671 wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
672 wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
673 wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
674 wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
675 wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
676 wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
677 wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
678 wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
679 wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
680 wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
681 wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
682 wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
683 wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
684 wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
685 wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
686 wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
687 wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
688 wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
689 wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
690 wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
691 wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
692 wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
693 wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
694 wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
695 wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
696 wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
697 wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
698 wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
699 wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT