]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/controls2.py
Added a demo showing how to use wxPostEvent
[wxWidgets.git] / utils / wxPython / src / gtk / controls2.py
CommitLineData
70551f47
RD
1# This file was created automatically by SWIG.
2import controls2c
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
4120ef2b
RD
10from clip_dnd import *
11
70551f47
RD
12from events import *
13
14from controls import *
105e45b9 15import wx
70551f47
RD
16class wxListItemPtr :
17 def __init__(self,this):
18 self.this = this
19 self.thisown = 0
2d091820 20 def __del__(self,controls2c=controls2c):
70551f47 21 if self.thisown == 1 :
2d091820 22 controls2c.delete_wxListItem(self)
70551f47
RD
23 def __setattr__(self,name,value):
24 if name == "m_mask" :
2d091820 25 controls2c.wxListItem_m_mask_set(self,value)
70551f47
RD
26 return
27 if name == "m_itemId" :
2d091820 28 controls2c.wxListItem_m_itemId_set(self,value)
70551f47
RD
29 return
30 if name == "m_col" :
2d091820 31 controls2c.wxListItem_m_col_set(self,value)
70551f47
RD
32 return
33 if name == "m_state" :
2d091820 34 controls2c.wxListItem_m_state_set(self,value)
70551f47
RD
35 return
36 if name == "m_stateMask" :
2d091820 37 controls2c.wxListItem_m_stateMask_set(self,value)
70551f47
RD
38 return
39 if name == "m_text" :
2d091820 40 controls2c.wxListItem_m_text_set(self,value)
70551f47
RD
41 return
42 if name == "m_image" :
2d091820 43 controls2c.wxListItem_m_image_set(self,value)
70551f47
RD
44 return
45 if name == "m_data" :
2d091820 46 controls2c.wxListItem_m_data_set(self,value)
70551f47
RD
47 return
48 if name == "m_format" :
2d091820 49 controls2c.wxListItem_m_format_set(self,value)
70551f47
RD
50 return
51 if name == "m_width" :
2d091820 52 controls2c.wxListItem_m_width_set(self,value)
70551f47
RD
53 return
54 self.__dict__[name] = value
55 def __getattr__(self,name):
56 if name == "m_mask" :
2d091820 57 return controls2c.wxListItem_m_mask_get(self)
70551f47 58 if name == "m_itemId" :
2d091820 59 return controls2c.wxListItem_m_itemId_get(self)
70551f47 60 if name == "m_col" :
2d091820 61 return controls2c.wxListItem_m_col_get(self)
70551f47 62 if name == "m_state" :
2d091820 63 return controls2c.wxListItem_m_state_get(self)
70551f47 64 if name == "m_stateMask" :
2d091820 65 return controls2c.wxListItem_m_stateMask_get(self)
70551f47 66 if name == "m_text" :
2d091820 67 return controls2c.wxListItem_m_text_get(self)
70551f47 68 if name == "m_image" :
2d091820 69 return controls2c.wxListItem_m_image_get(self)
70551f47 70 if name == "m_data" :
2d091820 71 return controls2c.wxListItem_m_data_get(self)
70551f47 72 if name == "m_format" :
2d091820 73 return controls2c.wxListItem_m_format_get(self)
70551f47 74 if name == "m_width" :
2d091820 75 return controls2c.wxListItem_m_width_get(self)
70551f47
RD
76 raise AttributeError,name
77 def __repr__(self):
2d091820 78 return "<C wxListItem instance at %s>" % (self.this,)
70551f47 79class wxListItem(wxListItemPtr):
2d091820
RD
80 def __init__(self,*_args,**_kwargs):
81 self.this = apply(controls2c.new_wxListItem,_args,_kwargs)
70551f47
RD
82 self.thisown = 1
83
84
85
86
87class wxListEventPtr(wxCommandEventPtr):
88 def __init__(self,this):
89 self.this = this
90 self.thisown = 0
91 def __setattr__(self,name,value):
92 if name == "m_code" :
2d091820 93 controls2c.wxListEvent_m_code_set(self,value)
70551f47
RD
94 return
95 if name == "m_itemIndex" :
2d091820 96 controls2c.wxListEvent_m_itemIndex_set(self,value)
70551f47
RD
97 return
98 if name == "m_oldItemIndex" :
2d091820 99 controls2c.wxListEvent_m_oldItemIndex_set(self,value)
70551f47
RD
100 return
101 if name == "m_col" :
2d091820 102 controls2c.wxListEvent_m_col_set(self,value)
70551f47
RD
103 return
104 if name == "m_cancelled" :
2d091820 105 controls2c.wxListEvent_m_cancelled_set(self,value)
70551f47
RD
106 return
107 if name == "m_pointDrag" :
2d091820 108 controls2c.wxListEvent_m_pointDrag_set(self,value.this)
70551f47
RD
109 return
110 if name == "m_item" :
2d091820 111 controls2c.wxListEvent_m_item_set(self,value.this)
70551f47
RD
112 return
113 self.__dict__[name] = value
114 def __getattr__(self,name):
115 if name == "m_code" :
2d091820 116 return controls2c.wxListEvent_m_code_get(self)
70551f47 117 if name == "m_itemIndex" :
2d091820 118 return controls2c.wxListEvent_m_itemIndex_get(self)
70551f47 119 if name == "m_oldItemIndex" :
2d091820 120 return controls2c.wxListEvent_m_oldItemIndex_get(self)
70551f47 121 if name == "m_col" :
2d091820 122 return controls2c.wxListEvent_m_col_get(self)
70551f47 123 if name == "m_cancelled" :
2d091820 124 return controls2c.wxListEvent_m_cancelled_get(self)
70551f47 125 if name == "m_pointDrag" :
2d091820 126 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self))
70551f47 127 if name == "m_item" :
2d091820 128 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self))
70551f47
RD
129 raise AttributeError,name
130 def __repr__(self):
2d091820 131 return "<C wxListEvent instance at %s>" % (self.this,)
70551f47
RD
132class wxListEvent(wxListEventPtr):
133 def __init__(self,this):
134 self.this = this
135
136
137
138
139class wxListCtrlPtr(wxControlPtr):
140 def __init__(self,this):
141 self.this = this
142 self.thisown = 0
2d091820
RD
143 def Arrange(self, *_args, **_kwargs):
144 val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs)
70551f47 145 return val
2d091820
RD
146 def DeleteItem(self, *_args, **_kwargs):
147 val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
70551f47 148 return val
2d091820
RD
149 def DeleteAllItems(self, *_args, **_kwargs):
150 val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs)
70551f47 151 return val
2d091820
RD
152 def DeleteColumn(self, *_args, **_kwargs):
153 val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs)
70551f47 154 return val
2d091820
RD
155 def DeleteAllColumns(self, *_args, **_kwargs):
156 val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs)
c95e68d8 157 return val
2d091820
RD
158 def ClearAll(self, *_args, **_kwargs):
159 val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs)
c95e68d8 160 return val
2d091820
RD
161 def EditLabel(self, *_args, **_kwargs):
162 val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs)
8bf5d46e 163 return val
2d091820
RD
164 def EnsureVisible(self, *_args, **_kwargs):
165 val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs)
70551f47 166 return val
2d091820
RD
167 def FindItem(self, *_args, **_kwargs):
168 val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs)
70551f47 169 return val
2d091820
RD
170 def FindItemData(self, *_args, **_kwargs):
171 val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs)
70551f47 172 return val
2d091820
RD
173 def FindItemAtPos(self, *_args, **_kwargs):
174 val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs)
70551f47 175 return val
2d091820
RD
176 def GetColumn(self, *_args, **_kwargs):
177 val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
70551f47 178 return val
2d091820
RD
179 def GetColumnWidth(self, *_args, **_kwargs):
180 val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs)
70551f47 181 return val
2d091820
RD
182 def GetCountPerPage(self, *_args, **_kwargs):
183 val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs)
70551f47 184 return val
2d091820
RD
185 def GetImageList(self, *_args, **_kwargs):
186 val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
187 if val: val = wxImageListPtr(val)
70551f47 188 return val
2d091820
RD
189 def GetItemData(self, *_args, **_kwargs):
190 val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
70551f47 191 return val
2d091820
RD
192 def GetItem(self, *_args, **_kwargs):
193 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
194 if val: val = wxListItemPtr(val) ; val.thisown = 1
70551f47 195 return val
2d091820
RD
196 def GetItemPosition(self, *_args, **_kwargs):
197 val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
198 if val: val = wxPointPtr(val) ; val.thisown = 1
70551f47 199 return val
2d091820
RD
200 def GetItemRect(self, *_args, **_kwargs):
201 val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs)
202 if val: val = wxRectPtr(val) ; val.thisown = 1
70551f47 203 return val
2d091820
RD
204 def GetItemState(self, *_args, **_kwargs):
205 val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs)
70551f47 206 return val
2d091820
RD
207 def GetItemCount(self, *_args, **_kwargs):
208 val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs)
70551f47 209 return val
2d091820
RD
210 def GetItemSpacing(self, *_args, **_kwargs):
211 val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs)
70551f47 212 return val
2d091820
RD
213 def GetItemText(self, *_args, **_kwargs):
214 val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs)
70551f47 215 return val
2d091820
RD
216 def GetNextItem(self, *_args, **_kwargs):
217 val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs)
70551f47 218 return val
2d091820
RD
219 def GetSelectedItemCount(self, *_args, **_kwargs):
220 val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs)
70551f47 221 return val
2d091820
RD
222 def GetTopItem(self, *_args, **_kwargs):
223 val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs)
70551f47 224 return val
2d091820
RD
225 def HitTest(self, *_args, **_kwargs):
226 val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs)
70551f47 227 return val
2d091820
RD
228 def InsertColumnWith(self, *_args, **_kwargs):
229 val = apply(controls2c.wxListCtrl_InsertColumnWith,(self,) + _args, _kwargs)
70551f47 230 return val
2d091820
RD
231 def InsertColumn(self, *_args, **_kwargs):
232 val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs)
70551f47 233 return val
2d091820
RD
234 def InsertItem(self, *_args, **_kwargs):
235 val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs)
70551f47 236 return val
2d091820
RD
237 def InsertStringItem(self, *_args, **_kwargs):
238 val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs)
70551f47 239 return val
2d091820
RD
240 def InsertImageItem(self, *_args, **_kwargs):
241 val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs)
70551f47 242 return val
2d091820
RD
243 def InsertImageStringItem(self, *_args, **_kwargs):
244 val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs)
70551f47 245 return val
2d091820
RD
246 def ScrollList(self, *_args, **_kwargs):
247 val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
70551f47 248 return val
2d091820
RD
249 def SetBackgroundColour(self, *_args, **_kwargs):
250 val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs)
70551f47 251 return val
2d091820
RD
252 def SetColumn(self, *_args, **_kwargs):
253 val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs)
70551f47 254 return val
2d091820
RD
255 def SetColumnWidth(self, *_args, **_kwargs):
256 val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs)
70551f47 257 return val
2d091820
RD
258 def SetImageList(self, *_args, **_kwargs):
259 val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs)
70551f47 260 return val
2d091820
RD
261 def SetItem(self, *_args, **_kwargs):
262 val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs)
70551f47 263 return val
2d091820
RD
264 def SetStringItem(self, *_args, **_kwargs):
265 val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs)
70551f47 266 return val
2d091820
RD
267 def SetItemData(self, *_args, **_kwargs):
268 val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs)
70551f47 269 return val
2d091820
RD
270 def SetItemImage(self, *_args, **_kwargs):
271 val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs)
70551f47 272 return val
2d091820
RD
273 def SetItemPosition(self, *_args, **_kwargs):
274 val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs)
70551f47 275 return val
2d091820
RD
276 def SetItemState(self, *_args, **_kwargs):
277 val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs)
70551f47 278 return val
2d091820
RD
279 def SetItemText(self, *_args, **_kwargs):
280 val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs)
70551f47 281 return val
2d091820
RD
282 def SetSingleStyle(self, *_args, **_kwargs):
283 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs)
70551f47 284 return val
2d091820
RD
285 def SetWindowStyleFlag(self, *_args, **_kwargs):
286 val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs)
70551f47
RD
287 return val
288 def __repr__(self):
2d091820 289 return "<C wxListCtrl instance at %s>" % (self.this,)
70551f47 290class wxListCtrl(wxListCtrlPtr):
2d091820
RD
291 def __init__(self,*_args,**_kwargs):
292 self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
70551f47 293 self.thisown = 1
105e45b9 294 wx._StdWindowCallbacks(self)
70551f47
RD
295
296
297
298
60e05667
RD
299class wxTreeItemIdPtr :
300 def __init__(self,this):
301 self.this = this
302 self.thisown = 0
2d091820 303 def __del__(self,controls2c=controls2c):
60e05667 304 if self.thisown == 1 :
2d091820
RD
305 controls2c.delete_wxTreeItemId(self)
306 def IsOk(self, *_args, **_kwargs):
307 val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
60e05667
RD
308 return val
309 def __repr__(self):
2d091820 310 return "<C wxTreeItemId instance at %s>" % (self.this,)
60e05667 311class wxTreeItemId(wxTreeItemIdPtr):
2d091820
RD
312 def __init__(self,*_args,**_kwargs):
313 self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
60e05667
RD
314 self.thisown = 1
315
316
317
318
319class wxTreeItemDataPtr :
320 def __init__(self,this):
321 self.this = this
322 self.thisown = 0
2d091820
RD
323 def GetData(self, *_args, **_kwargs):
324 val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
ab9bc19b 325 return val
2d091820
RD
326 def SetData(self, *_args, **_kwargs):
327 val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
ab9bc19b 328 return val
2d091820
RD
329 def GetId(self, *_args, **_kwargs):
330 val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
331 if val: val = wxTreeItemIdPtr(val)
60e05667 332 return val
2d091820
RD
333 def SetId(self, *_args, **_kwargs):
334 val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
60e05667
RD
335 return val
336 def __repr__(self):
2d091820 337 return "<C wxTreeItemData instance at %s>" % (self.this,)
60e05667 338class wxTreeItemData(wxTreeItemDataPtr):
2d091820
RD
339 def __init__(self,*_args,**_kwargs):
340 self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
60e05667
RD
341 self.thisown = 1
342
343
344
345
8bf5d46e 346class wxTreeEventPtr(wxNotifyEventPtr):
60e05667
RD
347 def __init__(self,this):
348 self.this = this
349 self.thisown = 0
2d091820
RD
350 def GetItem(self, *_args, **_kwargs):
351 val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
352 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
60e05667 353 return val
2d091820
RD
354 def GetOldItem(self, *_args, **_kwargs):
355 val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
356 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
60e05667 357 return val
2d091820
RD
358 def GetPoint(self, *_args, **_kwargs):
359 val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
360 if val: val = wxPointPtr(val) ; val.thisown = 1
60e05667 361 return val
2d091820
RD
362 def GetCode(self, *_args, **_kwargs):
363 val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
60e05667 364 return val
2d091820
RD
365 def GetLabel(self, *_args, **_kwargs):
366 val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
60e05667
RD
367 return val
368 def __repr__(self):
2d091820 369 return "<C wxTreeEvent instance at %s>" % (self.this,)
60e05667
RD
370class wxTreeEvent(wxTreeEventPtr):
371 def __init__(self,this):
372 self.this = this
373
374
375
376
377class wxTreeCtrlPtr(wxControlPtr):
378 def __init__(self,this):
379 self.this = this
380 self.thisown = 0
2d091820
RD
381 def GetCount(self, *_args, **_kwargs):
382 val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
60e05667 383 return val
2d091820
RD
384 def GetIndent(self, *_args, **_kwargs):
385 val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
60e05667 386 return val
2d091820
RD
387 def SetIndent(self, *_args, **_kwargs):
388 val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
60e05667 389 return val
2d091820
RD
390 def GetImageList(self, *_args, **_kwargs):
391 val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
392 if val: val = wxImageListPtr(val)
60e05667 393 return val
2d091820
RD
394 def GetStateImageList(self, *_args, **_kwargs):
395 val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
396 if val: val = wxImageListPtr(val)
60e05667 397 return val
2d091820
RD
398 def SetImageList(self, *_args, **_kwargs):
399 val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
60e05667 400 return val
2d091820
RD
401 def SetStateImageList(self, *_args, **_kwargs):
402 val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
60e05667 403 return val
4120ef2b
RD
404 def GetSpacing(self, *_args, **_kwargs):
405 val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
406 return val
407 def SetSpacing(self, *_args, **_kwargs):
408 val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
409 return val
2d091820
RD
410 def GetItemText(self, *_args, **_kwargs):
411 val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
60e05667 412 return val
2d091820
RD
413 def GetItemImage(self, *_args, **_kwargs):
414 val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
60e05667 415 return val
2d091820
RD
416 def GetItemSelectedImage(self, *_args, **_kwargs):
417 val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
60e05667 418 return val
2d091820
RD
419 def SetItemText(self, *_args, **_kwargs):
420 val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
60e05667 421 return val
2d091820
RD
422 def SetItemImage(self, *_args, **_kwargs):
423 val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
60e05667 424 return val
2d091820
RD
425 def SetItemSelectedImage(self, *_args, **_kwargs):
426 val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
60e05667 427 return val
2d091820
RD
428 def SetItemHasChildren(self, *_args, **_kwargs):
429 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
ab9bc19b 430 return val
2d091820
RD
431 def GetItemData(self, *_args, **_kwargs):
432 val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
433 if val: val = wxTreeItemDataPtr(val)
ab9bc19b 434 return val
2d091820
RD
435 def SetItemData(self, *_args, **_kwargs):
436 val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
60e05667 437 return val
2d091820
RD
438 def GetPyData(self, *_args, **_kwargs):
439 val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
ab9bc19b 440 return val
2d091820
RD
441 def SetPyData(self, *_args, **_kwargs):
442 val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
dd9a3de8 443 return val
2d091820
RD
444 def IsVisible(self, *_args, **_kwargs):
445 val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
60e05667 446 return val
2d091820
RD
447 def ItemHasChildren(self, *_args, **_kwargs):
448 val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
60e05667 449 return val
2d091820
RD
450 def IsExpanded(self, *_args, **_kwargs):
451 val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
60e05667 452 return val
2d091820
RD
453 def IsSelected(self, *_args, **_kwargs):
454 val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
60e05667 455 return val
2d091820
RD
456 def GetRootItem(self, *_args, **_kwargs):
457 val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
458 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
60e05667 459 return val
2d091820
RD
460 def GetSelection(self, *_args, **_kwargs):
461 val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
462 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
60e05667 463 return val
2d091820
RD
464 def GetParent(self, *_args, **_kwargs):
465 val = apply(controls2c.wxTreeCtrl_GetParent,(self,) + _args, _kwargs)
466 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
60e05667 467 return val
9cce9de1
RD
468 def GetSelections(self, *_args, **_kwargs):
469 val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
470 return val
2d091820
RD
471 def GetChildrenCount(self, *_args, **_kwargs):
472 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
d24a34bb 473 return val
2d091820
RD
474 def GetFirstChild(self, *_args, **_kwargs):
475 val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
60e05667 476 return val
2d091820
RD
477 def GetNextChild(self, *_args, **_kwargs):
478 val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
479 return val
480 def GetNextSibling(self, *_args, **_kwargs):
481 val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
482 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
483 return val
484 def GetPrevSibling(self, *_args, **_kwargs):
485 val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
486 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
487 return val
488 def GetFirstVisibleItem(self, *_args, **_kwargs):
489 val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
490 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
491 return val
492 def GetNextVisible(self, *_args, **_kwargs):
493 val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
494 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
495 return val
496 def GetPrevVisible(self, *_args, **_kwargs):
497 val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
498 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
499 return val
9cce9de1
RD
500 def GetLastChild(self, *_args, **_kwargs):
501 val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
502 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
503 return val
2d091820
RD
504 def AddRoot(self, *_args, **_kwargs):
505 val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
506 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
507 return val
508 def PrependItem(self, *_args, **_kwargs):
509 val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
510 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
511 return val
512 def InsertItem(self, *_args, **_kwargs):
513 val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
514 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
515 return val
516 def AppendItem(self, *_args, **_kwargs):
517 val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
518 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
519 return val
520 def Delete(self, *_args, **_kwargs):
521 val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
522 return val
523 def DeleteChildren(self, *_args, **_kwargs):
524 val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
525 return val
526 def DeleteAllItems(self, *_args, **_kwargs):
527 val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
528 return val
529 def Expand(self, *_args, **_kwargs):
530 val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
531 return val
532 def Collapse(self, *_args, **_kwargs):
533 val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
534 return val
535 def CollapseAndReset(self, *_args, **_kwargs):
536 val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
537 return val
538 def Toggle(self, *_args, **_kwargs):
539 val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
540 return val
541 def Unselect(self, *_args, **_kwargs):
542 val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
543 return val
544 def UnselectAll(self, *_args, **_kwargs):
545 val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
546 return val
547 def SelectItem(self, *_args, **_kwargs):
548 val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
549 return val
550 def EnsureVisible(self, *_args, **_kwargs):
551 val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
552 return val
553 def ScrollTo(self, *_args, **_kwargs):
554 val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
555 return val
556 def EditLabel(self, *_args, **_kwargs):
557 val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
558 return val
9cce9de1
RD
559 def SortChildren(self, *_args, **_kwargs):
560 val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
561 return val
2d091820
RD
562 def SetItemBold(self, *_args, **_kwargs):
563 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
564 return val
565 def IsBold(self, *_args, **_kwargs):
566 val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
567 return val
568 def HitTest(self, *_args, **_kwargs):
569 val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
570 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
c95e68d8 571 return val
60e05667 572 def __repr__(self):
2d091820 573 return "<C wxTreeCtrl instance at %s>" % (self.this,)
e6c95f27
RD
574
575 # Redefine a couple methods that SWIG gets a bit confused on...
576 def GetFirstChild(self,arg0,arg1):
577 val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1)
578 val1 = wxTreeItemIdPtr(val1)
579 val1.thisown = 1
580 return (val1,val2)
581 def GetNextChild(self,arg0,arg1):
d24a34bb 582 val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1)
e6c95f27
RD
583 val1 = wxTreeItemIdPtr(val1)
584 val1.thisown = 1
585 return (val1,val2)
586
60e05667 587class wxTreeCtrl(wxTreeCtrlPtr):
2d091820
RD
588 def __init__(self,*_args,**_kwargs):
589 self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
60e05667 590 self.thisown = 1
105e45b9 591 wx._StdWindowCallbacks(self)
60e05667
RD
592
593
594
595
70551f47
RD
596
597
598#-------------- FUNCTION WRAPPERS ------------------
599
600
601
602#-------------- VARIABLE WRAPPERS ------------------
603
21f8d7ea
RD
604wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
605wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
606wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
607wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
608wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
d24a34bb 609wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
21f8d7ea
RD
610wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
611wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
612wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
613wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
614wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
615wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
616wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
617wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
618wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
619wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
620wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
621wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
622wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
623wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
624wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
625wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
626wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
627wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
628wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
629wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
630wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
631wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
632wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
633wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
634wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
635wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
636wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
637wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
638wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
639wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
640wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
641wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
642wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
643wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
644wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
645wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
646wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT