]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
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 * | |
9c039d08 | 13 | import wxp |
8ab979d7 RD |
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 EnsureVisible(self,arg0): | |
167 | val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0) | |
168 | return val | |
169 | def FindItem(self,arg0,arg1,*args): | |
170 | val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args) | |
171 | return val | |
172 | def FindItemData(self,arg0,arg1): | |
173 | val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1) | |
174 | return val | |
175 | def FindItemAtPos(self,arg0,arg1,arg2): | |
176 | val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2) | |
177 | return val | |
178 | def GetColumn(self,arg0,arg1): | |
179 | val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this) | |
180 | return val | |
181 | def GetColumnWidth(self,arg0): | |
182 | val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0) | |
183 | return val | |
184 | def GetCountPerPage(self): | |
185 | val = controls2c.wxListCtrl_GetCountPerPage(self.this) | |
186 | return val | |
9c039d08 RD |
187 | def GetEditControl(self): |
188 | val = controls2c.wxListCtrl_GetEditControl(self.this) | |
189 | val = wxTextCtrlPtr(val) | |
190 | return val | |
8ab979d7 RD |
191 | def GetImageList(self,arg0): |
192 | val = controls2c.wxListCtrl_GetImageList(self.this,arg0) | |
193 | return val | |
194 | def GetItemData(self,arg0): | |
195 | val = controls2c.wxListCtrl_GetItemData(self.this,arg0) | |
196 | return val | |
197 | def GetItem(self): | |
198 | val = controls2c.wxListCtrl_GetItem(self.this) | |
199 | val = wxListItemPtr(val) | |
200 | val.thisown = 1 | |
201 | return val | |
202 | def GetItemPosition(self,arg0): | |
203 | val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0) | |
204 | val = wxPointPtr(val) | |
205 | val.thisown = 1 | |
206 | return val | |
207 | def GetItemRect(self,arg0,*args): | |
208 | val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args) | |
209 | val = wxRectPtr(val) | |
210 | val.thisown = 1 | |
211 | return val | |
212 | def GetItemState(self,arg0,arg1): | |
213 | val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1) | |
214 | return val | |
215 | def GetItemCount(self): | |
216 | val = controls2c.wxListCtrl_GetItemCount(self.this) | |
217 | return val | |
218 | def GetItemSpacing(self,arg0): | |
219 | val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0) | |
220 | return val | |
221 | def GetItemText(self,arg0): | |
222 | val = controls2c.wxListCtrl_GetItemText(self.this,arg0) | |
223 | return val | |
224 | def GetNextItem(self,arg0,*args): | |
225 | val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args) | |
226 | return val | |
227 | def GetSelectedItemCount(self): | |
228 | val = controls2c.wxListCtrl_GetSelectedItemCount(self.this) | |
229 | return val | |
230 | def GetTextColour(self): | |
231 | val = controls2c.wxListCtrl_GetTextColour(self.this) | |
232 | val = wxColourPtr(val) | |
233 | val.thisown = 1 | |
234 | return val | |
235 | def GetTopItem(self): | |
236 | val = controls2c.wxListCtrl_GetTopItem(self.this) | |
237 | return val | |
238 | def HitTest(self,arg0): | |
239 | val = controls2c.wxListCtrl_HitTest(self.this,arg0.this) | |
240 | return val | |
241 | def InsertColumnWithInfo(self,arg0,arg1): | |
242 | val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this) | |
243 | return val | |
244 | def InsertColumn(self,arg0,arg1,*args): | |
245 | val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args) | |
246 | return val | |
247 | def InsertItem(self,arg0): | |
248 | val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this) | |
249 | return val | |
250 | def InsertStringItem(self,arg0,arg1): | |
251 | val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1) | |
252 | return val | |
253 | def InsertImageItem(self,arg0,arg1): | |
254 | val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1) | |
255 | return val | |
256 | def InsertImageStringItem(self,arg0,arg1,arg2): | |
257 | val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2) | |
258 | return val | |
259 | def ScrollList(self,arg0,arg1): | |
260 | val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1) | |
261 | return val | |
262 | def SetBackgroundColour(self,arg0): | |
263 | val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this) | |
264 | return val | |
265 | def SetColumn(self,arg0,arg1): | |
266 | val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this) | |
267 | return val | |
268 | def SetColumnWidth(self,arg0,arg1): | |
269 | val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1) | |
270 | return val | |
271 | def SetImageList(self,arg0,arg1): | |
272 | val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1) | |
273 | return val | |
274 | def SetItem(self,arg0): | |
275 | val = controls2c.wxListCtrl_SetItem(self.this,arg0.this) | |
276 | return val | |
277 | def SetItemString(self,arg0,arg1,arg2,*args): | |
278 | val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args) | |
279 | return val | |
280 | def SetItemData(self,arg0,arg1): | |
281 | val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1) | |
282 | return val | |
283 | def SetItemImage(self,arg0,arg1,arg2): | |
284 | val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2) | |
285 | return val | |
286 | def SetItemPosition(self,arg0,arg1): | |
287 | val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this) | |
288 | return val | |
289 | def SetItemState(self,arg0,arg1,arg2): | |
290 | val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2) | |
291 | return val | |
292 | def SetItemText(self,arg0,arg1): | |
293 | val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1) | |
294 | return val | |
295 | def SetSingleStyle(self,arg0,*args): | |
296 | val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args) | |
297 | return val | |
298 | def SetTextColour(self,arg0): | |
299 | val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this) | |
300 | return val | |
301 | def SetWindowStyleFlag(self,arg0): | |
302 | val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0) | |
303 | return val | |
304 | def __repr__(self): | |
305 | return "<C wxListCtrl instance>" | |
306 | class wxListCtrl(wxListCtrlPtr): | |
307 | def __init__(self,arg0,arg1,*args) : | |
308 | argl = map(None,args) | |
309 | try: argl[0] = argl[0].this | |
310 | except: pass | |
311 | try: argl[1] = argl[1].this | |
312 | except: pass | |
313 | args = tuple(argl) | |
314 | self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args) | |
315 | self.thisown = 1 | |
9c039d08 | 316 | wxp._StdWindowCallbacks(self) |
8ab979d7 RD |
317 | |
318 | ||
319 | ||
320 | ||
d5c9047a | 321 | class wxTreeItemIdPtr : |
8ab979d7 RD |
322 | def __init__(self,this): |
323 | self.this = this | |
324 | self.thisown = 0 | |
325 | def __del__(self): | |
326 | if self.thisown == 1 : | |
d5c9047a RD |
327 | controls2c.delete_wxTreeItemId(self.this) |
328 | def IsOk(self): | |
329 | val = controls2c.wxTreeItemId_IsOk(self.this) | |
330 | return val | |
331 | def GetId(self): | |
332 | val = controls2c.wxTreeItemId_GetId(self.this) | |
333 | return val | |
334 | def __repr__(self): | |
335 | return "<C wxTreeItemId instance>" | |
336 | class wxTreeItemId(wxTreeItemIdPtr): | |
337 | def __init__(self) : | |
338 | self.this = controls2c.new_wxTreeItemId() | |
339 | self.thisown = 1 | |
340 | ||
341 | ||
342 | ||
343 | ||
344 | class wxTreeItemDataPtr : | |
345 | def __init__(self,this): | |
346 | self.this = this | |
347 | self.thisown = 0 | |
348 | def __del__(self): | |
349 | if self.thisown == 1 : | |
350 | controls2c.delete_wxTreeItemData(self.this) | |
351 | def GetItemId(self): | |
352 | val = controls2c.wxTreeItemData_GetItemId(self.this) | |
353 | val = wxTreeItemIdPtr(val) | |
354 | return val | |
8ab979d7 | 355 | def __repr__(self): |
d5c9047a RD |
356 | return "<C wxTreeItemData instance>" |
357 | class wxTreeItemData(wxTreeItemDataPtr): | |
8ab979d7 | 358 | def __init__(self) : |
d5c9047a | 359 | self.this = controls2c.new_wxTreeItemData() |
8ab979d7 RD |
360 | self.thisown = 1 |
361 | ||
362 | ||
363 | ||
364 | ||
365 | class wxTreeEventPtr(wxCommandEventPtr): | |
366 | def __init__(self,this): | |
367 | self.this = this | |
368 | self.thisown = 0 | |
d5c9047a RD |
369 | def GetItem(self): |
370 | val = controls2c.wxTreeEvent_GetItem(self.this) | |
371 | val = wxTreeItemIdPtr(val) | |
372 | val.thisown = 1 | |
373 | return val | |
374 | def GetOldItem(self): | |
375 | val = controls2c.wxTreeEvent_GetOldItem(self.this) | |
376 | val = wxTreeItemIdPtr(val) | |
377 | val.thisown = 1 | |
378 | return val | |
379 | def GetPoint(self): | |
380 | val = controls2c.wxTreeEvent_GetPoint(self.this) | |
381 | val = wxPointPtr(val) | |
382 | val.thisown = 1 | |
383 | return val | |
384 | def GetCode(self): | |
385 | val = controls2c.wxTreeEvent_GetCode(self.this) | |
386 | return val | |
387 | def Veto(self): | |
388 | val = controls2c.wxTreeEvent_Veto(self.this) | |
389 | return val | |
8ab979d7 RD |
390 | def __repr__(self): |
391 | return "<C wxTreeEvent instance>" | |
392 | class wxTreeEvent(wxTreeEventPtr): | |
393 | def __init__(self,this): | |
394 | self.this = this | |
395 | ||
396 | ||
397 | ||
398 | ||
399 | class wxTreeCtrlPtr(wxControlPtr): | |
400 | def __init__(self,this): | |
401 | self.this = this | |
402 | self.thisown = 0 | |
d5c9047a RD |
403 | def GetCount(self): |
404 | val = controls2c.wxTreeCtrl_GetCount(self.this) | |
8ab979d7 | 405 | return val |
d5c9047a RD |
406 | def GetIndent(self): |
407 | val = controls2c.wxTreeCtrl_GetIndent(self.this) | |
8ab979d7 | 408 | return val |
d5c9047a RD |
409 | def SetIndent(self,arg0): |
410 | val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0) | |
8ab979d7 | 411 | return val |
d5c9047a RD |
412 | def GetImageList(self): |
413 | val = controls2c.wxTreeCtrl_GetImageList(self.this) | |
8ab979d7 | 414 | return val |
d5c9047a RD |
415 | def GetStateImageList(self): |
416 | val = controls2c.wxTreeCtrl_GetStateImageList(self.this) | |
8ab979d7 | 417 | return val |
d5c9047a RD |
418 | def SetImageList(self,arg0): |
419 | val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0) | |
8ab979d7 | 420 | return val |
d5c9047a RD |
421 | def SetStateImageList(self,arg0): |
422 | val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0) | |
8ab979d7 | 423 | return val |
d5c9047a RD |
424 | def GetItemText(self,arg0): |
425 | val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this) | |
8ab979d7 | 426 | return val |
d5c9047a RD |
427 | def GetItemImage(self,arg0): |
428 | val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this) | |
8ab979d7 | 429 | return val |
d5c9047a RD |
430 | def GetItemSelectedImage(self,arg0): |
431 | val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this) | |
8ab979d7 RD |
432 | return val |
433 | def GetItemData(self,arg0): | |
d5c9047a RD |
434 | val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this) |
435 | val = wxTreeItemDataPtr(val) | |
8ab979d7 | 436 | return val |
d5c9047a RD |
437 | def SetItemText(self,arg0,arg1): |
438 | val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1) | |
8ab979d7 | 439 | return val |
d5c9047a RD |
440 | def SetItemImage(self,arg0,arg1): |
441 | val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1) | |
8ab979d7 | 442 | return val |
d5c9047a RD |
443 | def SetItemSelectedImage(self,arg0,arg1): |
444 | val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1) | |
8ab979d7 | 445 | return val |
d5c9047a RD |
446 | def SetItemData(self,arg0,arg1): |
447 | val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this) | |
448 | return val | |
449 | def IsVisible(self,arg0): | |
450 | val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this) | |
8ab979d7 | 451 | return val |
d5c9047a RD |
452 | def ItemHasChildren(self,arg0): |
453 | val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this) | |
8ab979d7 | 454 | return val |
d5c9047a RD |
455 | def IsExpanded(self,arg0): |
456 | val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this) | |
8ab979d7 | 457 | return val |
d5c9047a RD |
458 | def IsSelected(self,arg0): |
459 | val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this) | |
8ab979d7 RD |
460 | return val |
461 | def GetRootItem(self): | |
462 | val = controls2c.wxTreeCtrl_GetRootItem(self.this) | |
d5c9047a RD |
463 | val = wxTreeItemIdPtr(val) |
464 | val.thisown = 1 | |
8ab979d7 RD |
465 | return val |
466 | def GetSelection(self): | |
467 | val = controls2c.wxTreeCtrl_GetSelection(self.this) | |
d5c9047a RD |
468 | val = wxTreeItemIdPtr(val) |
469 | val.thisown = 1 | |
8ab979d7 | 470 | return val |
d5c9047a RD |
471 | def GetParent(self,arg0): |
472 | val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this) | |
473 | val = wxTreeItemIdPtr(val) | |
474 | val.thisown = 1 | |
8ab979d7 | 475 | return val |
d5c9047a RD |
476 | def GetFirstChild(self,arg0,arg1): |
477 | val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1) | |
8ab979d7 | 478 | return val |
d5c9047a RD |
479 | def GetNextChild(self,arg0,arg1): |
480 | val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1) | |
8ab979d7 | 481 | return val |
d5c9047a RD |
482 | def GetNextSibling(self,arg0): |
483 | val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this) | |
484 | val = wxTreeItemIdPtr(val) | |
485 | val.thisown = 1 | |
8ab979d7 | 486 | return val |
d5c9047a RD |
487 | def GetPrevSibling(self,arg0): |
488 | val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this) | |
489 | val = wxTreeItemIdPtr(val) | |
490 | val.thisown = 1 | |
8ab979d7 | 491 | return val |
d5c9047a RD |
492 | def GetFirstVisibleItem(self): |
493 | val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this) | |
494 | val = wxTreeItemIdPtr(val) | |
495 | val.thisown = 1 | |
8ab979d7 | 496 | return val |
d5c9047a RD |
497 | def GetNextVisible(self,arg0): |
498 | val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this) | |
499 | val = wxTreeItemIdPtr(val) | |
500 | val.thisown = 1 | |
8ab979d7 | 501 | return val |
d5c9047a RD |
502 | def GetPrevVisible(self,arg0): |
503 | val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this) | |
504 | val = wxTreeItemIdPtr(val) | |
505 | val.thisown = 1 | |
8ab979d7 | 506 | return val |
d5c9047a RD |
507 | def AddRoot(self,arg0,*args): |
508 | argl = map(None,args) | |
509 | try: argl[2] = argl[2].this | |
510 | except: pass | |
511 | args = tuple(argl) | |
512 | val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args) | |
513 | val = wxTreeItemIdPtr(val) | |
514 | val.thisown = 1 | |
8ab979d7 | 515 | return val |
d5c9047a RD |
516 | def PrependItem(self,arg0,arg1,*args): |
517 | argl = map(None,args) | |
518 | try: argl[2] = argl[2].this | |
519 | except: pass | |
520 | args = tuple(argl) | |
521 | val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args) | |
522 | val = wxTreeItemIdPtr(val) | |
523 | val.thisown = 1 | |
8ab979d7 | 524 | return val |
d5c9047a RD |
525 | def InsertItem(self,arg0,arg1,arg2,*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_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args) | |
531 | val = wxTreeItemIdPtr(val) | |
532 | val.thisown = 1 | |
8ab979d7 | 533 | return val |
d5c9047a RD |
534 | def AppendItem(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_AppendItem,(self.this,arg0.this,arg1,)+args) | |
540 | val = wxTreeItemIdPtr(val) | |
541 | val.thisown = 1 | |
8ab979d7 | 542 | return val |
d5c9047a RD |
543 | def Delete(self,arg0): |
544 | val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this) | |
545 | return val | |
546 | def DeleteAllItems(self): | |
547 | val = controls2c.wxTreeCtrl_DeleteAllItems(self.this) | |
548 | return val | |
549 | def Expand(self,arg0): | |
550 | val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this) | |
551 | return val | |
552 | def Collapse(self,arg0): | |
553 | val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this) | |
554 | return val | |
555 | def CollapseAndReset(self,arg0): | |
556 | val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this) | |
557 | return val | |
558 | def Toggle(self,arg0): | |
559 | val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this) | |
560 | return val | |
561 | def Unselect(self): | |
562 | val = controls2c.wxTreeCtrl_Unselect(self.this) | |
563 | return val | |
564 | def SelectItem(self,arg0): | |
565 | val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this) | |
566 | return val | |
567 | def EnsureVisible(self,arg0): | |
568 | val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this) | |
569 | return val | |
570 | def ScrollTo(self,arg0): | |
571 | val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this) | |
572 | return val | |
573 | def EditLabel(self,arg0): | |
574 | val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this) | |
575 | val = wxTextCtrlPtr(val) | |
576 | return val | |
577 | def GetEditControl(self): | |
578 | val = controls2c.wxTreeCtrl_GetEditControl(self.this) | |
579 | val = wxTextCtrlPtr(val) | |
580 | return val | |
581 | def EndEditLabel(self,arg0,*args): | |
582 | val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args) | |
8ab979d7 RD |
583 | return val |
584 | def SortChildren(self,arg0): | |
d5c9047a | 585 | val = controls2c.wxTreeCtrl_SortChildren(self.this,arg0.this) |
8ab979d7 RD |
586 | return val |
587 | def __repr__(self): | |
588 | return "<C wxTreeCtrl instance>" | |
589 | class wxTreeCtrl(wxTreeCtrlPtr): | |
590 | def __init__(self,arg0,*args) : | |
591 | argl = map(None,args) | |
592 | try: argl[1] = argl[1].this | |
593 | except: pass | |
594 | try: argl[2] = argl[2].this | |
595 | except: pass | |
596 | args = tuple(argl) | |
597 | self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args) | |
598 | self.thisown = 1 | |
9c039d08 | 599 | wxp._StdWindowCallbacks(self) |
8ab979d7 RD |
600 | |
601 | ||
602 | ||
603 | ||
604 | ||
605 | ||
606 | #-------------- FUNCTION WRAPPERS ------------------ | |
607 | ||
608 | ||
609 | ||
610 | #-------------- VARIABLE WRAPPERS ------------------ | |
611 |