]>
Commit | Line | Data |
---|---|---|
70551f47 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 * | |
105e45b9 | 13 | import wx |
70551f47 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 | |
c95e68d8 RD |
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 | |
70551f47 RD |
159 | def EnsureVisible(self,arg0): |
160 | val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0) | |
161 | return val | |
162 | def FindItem(self,arg0,arg1,*args): | |
163 | val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args) | |
164 | return val | |
165 | def FindItemData(self,arg0,arg1): | |
166 | val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1) | |
167 | return val | |
168 | def FindItemAtPos(self,arg0,arg1,arg2): | |
169 | val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2) | |
170 | return val | |
171 | def GetColumn(self,arg0,arg1): | |
172 | val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this) | |
173 | return val | |
174 | def GetColumnWidth(self,arg0): | |
175 | val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0) | |
176 | return val | |
177 | def GetCountPerPage(self): | |
178 | val = controls2c.wxListCtrl_GetCountPerPage(self.this) | |
179 | return val | |
180 | def GetImageList(self,arg0): | |
181 | val = controls2c.wxListCtrl_GetImageList(self.this,arg0) | |
21f8d7ea | 182 | val = wxImageListPtr(val) |
70551f47 RD |
183 | return val |
184 | def GetItemData(self,arg0): | |
185 | val = controls2c.wxListCtrl_GetItemData(self.this,arg0) | |
186 | return val | |
c3c1cebe RD |
187 | def GetItem(self,arg0): |
188 | val = controls2c.wxListCtrl_GetItem(self.this,arg0) | |
70551f47 RD |
189 | val = wxListItemPtr(val) |
190 | val.thisown = 1 | |
191 | return val | |
192 | def GetItemPosition(self,arg0): | |
193 | val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0) | |
194 | val = wxPointPtr(val) | |
195 | val.thisown = 1 | |
196 | return val | |
197 | def GetItemRect(self,arg0,*args): | |
198 | val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args) | |
199 | val = wxRectPtr(val) | |
200 | val.thisown = 1 | |
201 | return val | |
202 | def GetItemState(self,arg0,arg1): | |
203 | val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1) | |
204 | return val | |
205 | def GetItemCount(self): | |
206 | val = controls2c.wxListCtrl_GetItemCount(self.this) | |
207 | return val | |
208 | def GetItemSpacing(self,arg0): | |
209 | val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0) | |
210 | return val | |
211 | def GetItemText(self,arg0): | |
212 | val = controls2c.wxListCtrl_GetItemText(self.this,arg0) | |
213 | return val | |
214 | def GetNextItem(self,arg0,*args): | |
215 | val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args) | |
216 | return val | |
217 | def GetSelectedItemCount(self): | |
218 | val = controls2c.wxListCtrl_GetSelectedItemCount(self.this) | |
219 | return val | |
220 | def GetTopItem(self): | |
221 | val = controls2c.wxListCtrl_GetTopItem(self.this) | |
222 | return val | |
223 | def HitTest(self,arg0): | |
224 | val = controls2c.wxListCtrl_HitTest(self.this,arg0.this) | |
225 | return val | |
c3c1cebe RD |
226 | def InsertColumnWith(self,arg0,arg1): |
227 | val = controls2c.wxListCtrl_InsertColumnWith(self.this,arg0,arg1.this) | |
70551f47 RD |
228 | return val |
229 | def InsertColumn(self,arg0,arg1,*args): | |
230 | val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args) | |
231 | return val | |
232 | def InsertItem(self,arg0): | |
233 | val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this) | |
234 | return val | |
235 | def InsertStringItem(self,arg0,arg1): | |
236 | val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1) | |
237 | return val | |
238 | def InsertImageItem(self,arg0,arg1): | |
239 | val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1) | |
240 | return val | |
241 | def InsertImageStringItem(self,arg0,arg1,arg2): | |
242 | val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2) | |
243 | return val | |
244 | def ScrollList(self,arg0,arg1): | |
245 | val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1) | |
246 | return val | |
247 | def SetBackgroundColour(self,arg0): | |
248 | val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this) | |
249 | return val | |
250 | def SetColumn(self,arg0,arg1): | |
251 | val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this) | |
252 | return val | |
253 | def SetColumnWidth(self,arg0,arg1): | |
254 | val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1) | |
255 | return val | |
256 | def SetImageList(self,arg0,arg1): | |
21f8d7ea | 257 | val = controls2c.wxListCtrl_SetImageList(self.this,arg0.this,arg1) |
70551f47 RD |
258 | return val |
259 | def SetItem(self,arg0): | |
260 | val = controls2c.wxListCtrl_SetItem(self.this,arg0.this) | |
261 | return val | |
21f8d7ea RD |
262 | def SetStringItem(self,arg0,arg1,arg2,*args): |
263 | val = apply(controls2c.wxListCtrl_SetStringItem,(self.this,arg0,arg1,arg2,)+args) | |
70551f47 RD |
264 | return val |
265 | def SetItemData(self,arg0,arg1): | |
266 | val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1) | |
267 | return val | |
268 | def SetItemImage(self,arg0,arg1,arg2): | |
269 | val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2) | |
270 | return val | |
271 | def SetItemPosition(self,arg0,arg1): | |
272 | val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this) | |
273 | return val | |
274 | def SetItemState(self,arg0,arg1,arg2): | |
275 | val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2) | |
276 | return val | |
277 | def SetItemText(self,arg0,arg1): | |
278 | val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1) | |
279 | return val | |
280 | def SetSingleStyle(self,arg0,*args): | |
281 | val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args) | |
282 | return val | |
283 | def SetWindowStyleFlag(self,arg0): | |
284 | val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0) | |
285 | return val | |
286 | def __repr__(self): | |
287 | return "<C wxListCtrl instance>" | |
288 | class wxListCtrl(wxListCtrlPtr): | |
289 | def __init__(self,arg0,arg1,*args) : | |
290 | argl = map(None,args) | |
291 | try: argl[0] = argl[0].this | |
292 | except: pass | |
293 | try: argl[1] = argl[1].this | |
294 | except: pass | |
295 | args = tuple(argl) | |
296 | self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args) | |
297 | self.thisown = 1 | |
105e45b9 | 298 | wx._StdWindowCallbacks(self) |
70551f47 RD |
299 | |
300 | ||
301 | ||
302 | ||
60e05667 RD |
303 | class wxTreeItemIdPtr : |
304 | def __init__(self,this): | |
305 | self.this = this | |
306 | self.thisown = 0 | |
307 | def __del__(self): | |
308 | if self.thisown == 1 : | |
309 | controls2c.delete_wxTreeItemId(self.this) | |
310 | def IsOk(self): | |
311 | val = controls2c.wxTreeItemId_IsOk(self.this) | |
312 | return val | |
313 | def __repr__(self): | |
314 | return "<C wxTreeItemId instance>" | |
315 | class wxTreeItemId(wxTreeItemIdPtr): | |
316 | def __init__(self) : | |
317 | self.this = controls2c.new_wxTreeItemId() | |
318 | self.thisown = 1 | |
319 | ||
320 | ||
321 | ||
322 | ||
323 | class wxTreeItemDataPtr : | |
324 | def __init__(self,this): | |
325 | self.this = this | |
326 | self.thisown = 0 | |
ab9bc19b RD |
327 | def GetData(self): |
328 | val = controls2c.wxTreeItemData_GetData(self.this) | |
329 | return val | |
330 | def SetData(self,arg0): | |
331 | val = controls2c.wxTreeItemData_SetData(self.this,arg0) | |
332 | return val | |
60e05667 RD |
333 | def GetId(self): |
334 | val = controls2c.wxTreeItemData_GetId(self.this) | |
335 | val = wxTreeItemIdPtr(val) | |
336 | return val | |
337 | def SetId(self,arg0): | |
338 | val = controls2c.wxTreeItemData_SetId(self.this,arg0.this) | |
339 | return val | |
340 | def __repr__(self): | |
341 | return "<C wxTreeItemData instance>" | |
342 | class wxTreeItemData(wxTreeItemDataPtr): | |
ab9bc19b RD |
343 | def __init__(self,*args) : |
344 | self.this = apply(controls2c.new_wxTreeItemData,()+args) | |
60e05667 RD |
345 | self.thisown = 1 |
346 | ||
347 | ||
348 | ||
349 | ||
350 | class wxTreeEventPtr(wxCommandEventPtr): | |
351 | def __init__(self,this): | |
352 | self.this = this | |
353 | self.thisown = 0 | |
354 | def GetItem(self): | |
355 | val = controls2c.wxTreeEvent_GetItem(self.this) | |
356 | val = wxTreeItemIdPtr(val) | |
357 | val.thisown = 1 | |
358 | return val | |
359 | def GetOldItem(self): | |
360 | val = controls2c.wxTreeEvent_GetOldItem(self.this) | |
361 | val = wxTreeItemIdPtr(val) | |
362 | val.thisown = 1 | |
363 | return val | |
364 | def GetPoint(self): | |
365 | val = controls2c.wxTreeEvent_GetPoint(self.this) | |
366 | val = wxPointPtr(val) | |
367 | val.thisown = 1 | |
368 | return val | |
369 | def GetCode(self): | |
370 | val = controls2c.wxTreeEvent_GetCode(self.this) | |
371 | return val | |
372 | def Veto(self): | |
373 | val = controls2c.wxTreeEvent_Veto(self.this) | |
374 | return val | |
375 | def __repr__(self): | |
376 | return "<C wxTreeEvent instance>" | |
377 | class wxTreeEvent(wxTreeEventPtr): | |
378 | def __init__(self,this): | |
379 | self.this = this | |
380 | ||
381 | ||
382 | ||
383 | ||
384 | class wxTreeCtrlPtr(wxControlPtr): | |
385 | def __init__(self,this): | |
386 | self.this = this | |
387 | self.thisown = 0 | |
388 | def GetCount(self): | |
389 | val = controls2c.wxTreeCtrl_GetCount(self.this) | |
390 | return val | |
391 | def GetIndent(self): | |
392 | val = controls2c.wxTreeCtrl_GetIndent(self.this) | |
393 | return val | |
394 | def SetIndent(self,arg0): | |
395 | val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0) | |
396 | return val | |
397 | def GetImageList(self): | |
398 | val = controls2c.wxTreeCtrl_GetImageList(self.this) | |
21f8d7ea | 399 | val = wxImageListPtr(val) |
60e05667 RD |
400 | return val |
401 | def GetStateImageList(self): | |
402 | val = controls2c.wxTreeCtrl_GetStateImageList(self.this) | |
21f8d7ea | 403 | val = wxImageListPtr(val) |
60e05667 RD |
404 | return val |
405 | def SetImageList(self,arg0): | |
21f8d7ea | 406 | val = controls2c.wxTreeCtrl_SetImageList(self.this,arg0.this) |
60e05667 RD |
407 | return val |
408 | def SetStateImageList(self,arg0): | |
21f8d7ea | 409 | val = controls2c.wxTreeCtrl_SetStateImageList(self.this,arg0.this) |
60e05667 RD |
410 | return val |
411 | def GetItemText(self,arg0): | |
412 | val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0.this) | |
413 | return val | |
414 | def GetItemImage(self,arg0): | |
415 | val = controls2c.wxTreeCtrl_GetItemImage(self.this,arg0.this) | |
416 | return val | |
417 | def GetItemSelectedImage(self,arg0): | |
418 | val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this) | |
419 | return val | |
60e05667 RD |
420 | def SetItemText(self,arg0,arg1): |
421 | val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1) | |
422 | return val | |
423 | def SetItemImage(self,arg0,arg1): | |
424 | val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0.this,arg1) | |
425 | return val | |
426 | def SetItemSelectedImage(self,arg0,arg1): | |
427 | val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1) | |
428 | return val | |
ab9bc19b RD |
429 | def SetItemHasChildren(self,arg0,*args): |
430 | val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args) | |
431 | return val | |
432 | def GetItemData(self,arg0): | |
433 | val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this) | |
434 | val = wxTreeItemDataPtr(val) | |
435 | return val | |
60e05667 RD |
436 | def SetItemData(self,arg0,arg1): |
437 | val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this) | |
438 | return val | |
ab9bc19b RD |
439 | def GetPyData(self,arg0): |
440 | val = controls2c.wxTreeCtrl_GetPyData(self.this,arg0.this) | |
441 | return val | |
442 | def SetPyData(self,arg0,arg1): | |
443 | val = controls2c.wxTreeCtrl_SetPyData(self.this,arg0.this,arg1) | |
dd9a3de8 | 444 | return val |
60e05667 RD |
445 | def IsVisible(self,arg0): |
446 | val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this) | |
447 | return val | |
448 | def ItemHasChildren(self,arg0): | |
449 | val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0.this) | |
450 | return val | |
451 | def IsExpanded(self,arg0): | |
452 | val = controls2c.wxTreeCtrl_IsExpanded(self.this,arg0.this) | |
453 | return val | |
454 | def IsSelected(self,arg0): | |
455 | val = controls2c.wxTreeCtrl_IsSelected(self.this,arg0.this) | |
456 | return val | |
457 | def GetRootItem(self): | |
458 | val = controls2c.wxTreeCtrl_GetRootItem(self.this) | |
459 | val = wxTreeItemIdPtr(val) | |
460 | val.thisown = 1 | |
461 | return val | |
462 | def GetSelection(self): | |
463 | val = controls2c.wxTreeCtrl_GetSelection(self.this) | |
464 | val = wxTreeItemIdPtr(val) | |
465 | val.thisown = 1 | |
466 | return val | |
467 | def GetParent(self,arg0): | |
468 | val = controls2c.wxTreeCtrl_GetParent(self.this,arg0.this) | |
469 | val = wxTreeItemIdPtr(val) | |
470 | val.thisown = 1 | |
471 | return val | |
472 | def GetFirstChild(self,arg0,arg1): | |
473 | val = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1) | |
474 | return val | |
475 | def GetNextChild(self,arg0,arg1): | |
476 | val = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1) | |
477 | return val | |
478 | def GetNextSibling(self,arg0): | |
479 | val = controls2c.wxTreeCtrl_GetNextSibling(self.this,arg0.this) | |
480 | val = wxTreeItemIdPtr(val) | |
481 | val.thisown = 1 | |
482 | return val | |
483 | def GetPrevSibling(self,arg0): | |
484 | val = controls2c.wxTreeCtrl_GetPrevSibling(self.this,arg0.this) | |
485 | val = wxTreeItemIdPtr(val) | |
486 | val.thisown = 1 | |
487 | return val | |
488 | def GetFirstVisibleItem(self): | |
489 | val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this) | |
490 | val = wxTreeItemIdPtr(val) | |
491 | val.thisown = 1 | |
492 | return val | |
493 | def GetNextVisible(self,arg0): | |
494 | val = controls2c.wxTreeCtrl_GetNextVisible(self.this,arg0.this) | |
495 | val = wxTreeItemIdPtr(val) | |
496 | val.thisown = 1 | |
497 | return val | |
498 | def GetPrevVisible(self,arg0): | |
499 | val = controls2c.wxTreeCtrl_GetPrevVisible(self.this,arg0.this) | |
500 | val = wxTreeItemIdPtr(val) | |
501 | val.thisown = 1 | |
502 | return val | |
503 | def AddRoot(self,arg0,*args): | |
504 | argl = map(None,args) | |
505 | try: argl[2] = argl[2].this | |
506 | except: pass | |
507 | args = tuple(argl) | |
508 | val = apply(controls2c.wxTreeCtrl_AddRoot,(self.this,arg0,)+args) | |
509 | val = wxTreeItemIdPtr(val) | |
510 | val.thisown = 1 | |
511 | return val | |
512 | def PrependItem(self,arg0,arg1,*args): | |
513 | argl = map(None,args) | |
514 | try: argl[2] = argl[2].this | |
515 | except: pass | |
516 | args = tuple(argl) | |
517 | val = apply(controls2c.wxTreeCtrl_PrependItem,(self.this,arg0.this,arg1,)+args) | |
518 | val = wxTreeItemIdPtr(val) | |
519 | val.thisown = 1 | |
520 | return val | |
521 | def InsertItem(self,arg0,arg1,arg2,*args): | |
522 | argl = map(None,args) | |
523 | try: argl[2] = argl[2].this | |
524 | except: pass | |
525 | args = tuple(argl) | |
526 | val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0.this,arg1.this,arg2,)+args) | |
527 | val = wxTreeItemIdPtr(val) | |
528 | val.thisown = 1 | |
529 | return val | |
530 | def AppendItem(self,arg0,arg1,*args): | |
531 | argl = map(None,args) | |
532 | try: argl[2] = argl[2].this | |
533 | except: pass | |
534 | args = tuple(argl) | |
535 | val = apply(controls2c.wxTreeCtrl_AppendItem,(self.this,arg0.this,arg1,)+args) | |
536 | val = wxTreeItemIdPtr(val) | |
537 | val.thisown = 1 | |
538 | return val | |
539 | def Delete(self,arg0): | |
540 | val = controls2c.wxTreeCtrl_Delete(self.this,arg0.this) | |
541 | return val | |
dd9a3de8 RD |
542 | def DeleteChildren(self,arg0): |
543 | val = controls2c.wxTreeCtrl_DeleteChildren(self.this,arg0.this) | |
544 | return val | |
60e05667 RD |
545 | def DeleteAllItems(self): |
546 | val = controls2c.wxTreeCtrl_DeleteAllItems(self.this) | |
547 | return val | |
548 | def Expand(self,arg0): | |
549 | val = controls2c.wxTreeCtrl_Expand(self.this,arg0.this) | |
550 | return val | |
551 | def Collapse(self,arg0): | |
552 | val = controls2c.wxTreeCtrl_Collapse(self.this,arg0.this) | |
553 | return val | |
554 | def CollapseAndReset(self,arg0): | |
555 | val = controls2c.wxTreeCtrl_CollapseAndReset(self.this,arg0.this) | |
556 | return val | |
557 | def Toggle(self,arg0): | |
558 | val = controls2c.wxTreeCtrl_Toggle(self.this,arg0.this) | |
559 | return val | |
560 | def Unselect(self): | |
561 | val = controls2c.wxTreeCtrl_Unselect(self.this) | |
562 | return val | |
563 | def SelectItem(self,arg0): | |
564 | val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0.this) | |
565 | return val | |
566 | def EnsureVisible(self,arg0): | |
567 | val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0.this) | |
568 | return val | |
569 | def ScrollTo(self,arg0): | |
570 | val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0.this) | |
571 | return val | |
572 | def EditLabel(self,arg0): | |
573 | val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0.this) | |
574 | val = wxTextCtrlPtr(val) | |
575 | return val | |
576 | def GetEditControl(self): | |
577 | val = controls2c.wxTreeCtrl_GetEditControl(self.this) | |
578 | val = wxTextCtrlPtr(val) | |
579 | return val | |
580 | def EndEditLabel(self,arg0,*args): | |
581 | val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args) | |
582 | return val | |
105e45b9 RD |
583 | def SetItemBold(self,arg0,*args): |
584 | val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args) | |
585 | return val | |
586 | def IsBold(self,arg0): | |
587 | val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this) | |
588 | return val | |
c95e68d8 RD |
589 | def HitTest(self,arg0): |
590 | val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this) | |
591 | val = wxTreeItemIdPtr(val) | |
592 | val.thisown = 1 | |
593 | return val | |
60e05667 RD |
594 | def __repr__(self): |
595 | return "<C wxTreeCtrl instance>" | |
596 | class wxTreeCtrl(wxTreeCtrlPtr): | |
597 | def __init__(self,arg0,*args) : | |
598 | argl = map(None,args) | |
599 | try: argl[1] = argl[1].this | |
600 | except: pass | |
601 | try: argl[2] = argl[2].this | |
602 | except: pass | |
603 | args = tuple(argl) | |
604 | self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args) | |
605 | self.thisown = 1 | |
105e45b9 | 606 | wx._StdWindowCallbacks(self) |
60e05667 RD |
607 | |
608 | ||
609 | ||
610 | ||
70551f47 RD |
611 | |
612 | ||
613 | #-------------- FUNCTION WRAPPERS ------------------ | |
614 | ||
615 | ||
616 | ||
617 | #-------------- VARIABLE WRAPPERS ------------------ | |
618 | ||
21f8d7ea RD |
619 | wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT |
620 | wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE | |
621 | wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA | |
622 | wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH | |
623 | wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT | |
624 | wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE | |
625 | wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED | |
626 | wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED | |
627 | wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED | |
628 | wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT | |
629 | wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE | |
630 | wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW | |
631 | wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE | |
632 | wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON | |
633 | wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL | |
634 | wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT | |
635 | wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON | |
636 | wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT | |
637 | wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT | |
638 | wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM | |
639 | wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE | |
640 | wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL | |
641 | wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW | |
642 | wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT | |
643 | wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT | |
644 | wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT | |
645 | wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT | |
646 | wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP | |
647 | wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID | |
648 | wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT | |
649 | wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT | |
650 | wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE | |
651 | wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER | |
652 | wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE | |
653 | wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER | |
654 | wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS | |
655 | wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON | |
656 | wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL | |
657 | wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP | |
658 | wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN | |
659 | wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT | |
660 | wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT |