]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/controls2.py
Compile fix.
[wxWidgets.git] / wxPython / src / gtk / controls2.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import controls2c
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
b1462dfa
RD
10from clip_dnd import *
11
8ab979d7
RD
12from events import *
13
14from controls import *
b8b8dda7 15import wx
cd096152
RD
16
17def EVT_LIST_BEGIN_DRAG(win, id, func):
18 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG, func)
19
20def EVT_LIST_BEGIN_RDRAG(win, id, func):
21 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG, func)
22
23def EVT_LIST_BEGIN_LABEL_EDIT(win, id, func):
24 win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, func)
25
26def EVT_LIST_END_LABEL_EDIT(win, id, func):
27 win.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT, func)
28
29def EVT_LIST_DELETE_ITEM(win, id, func):
30 win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM, func)
31
32def EVT_LIST_DELETE_ALL_ITEMS(win, id, func):
33 win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, func)
34
35def EVT_LIST_GET_INFO(win, id, func):
36 win.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO, func)
37
38def EVT_LIST_SET_INFO(win, id, func):
39 win.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO, func)
40
41def EVT_LIST_ITEM_SELECTED(win, id, func):
42 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func)
43
44def EVT_LIST_ITEM_DESELECTED(win, id, func):
45 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func)
46
47def EVT_LIST_KEY_DOWN(win, id, func):
48 win.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN, func)
49
50def EVT_LIST_INSERT_ITEM(win, id, func):
51 win.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM, func)
52
53def EVT_LIST_COL_CLICK(win, id, func):
54 win.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK, func)
55
56def EVT_LIST_ITEM_RIGHT_CLICK(win, id, func):
57 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, func)
58
59def EVT_LIST_ITEM_MIDDLE_CLICK(win, id, func):
60 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, func)
61
62def EVT_LIST_ITEM_ACTIVATED(win, id, func):
63 win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func)
64
65def EVT_LIST_CACHE_HINT(win, id, func):
66 win.Connect(id, -1, wxEVT_COMMAND_LIST_CACHE_HINT, func)
67
f6bcfd97
BP
68class wxListItemAttrPtr :
69 def __init__(self,this):
70 self.this = this
71 self.thisown = 0
72 def SetTextColour(self, *_args, **_kwargs):
73 val = apply(controls2c.wxListItemAttr_SetTextColour,(self,) + _args, _kwargs)
74 return val
75 def SetBackgroundColour(self, *_args, **_kwargs):
76 val = apply(controls2c.wxListItemAttr_SetBackgroundColour,(self,) + _args, _kwargs)
77 return val
78 def SetFont(self, *_args, **_kwargs):
79 val = apply(controls2c.wxListItemAttr_SetFont,(self,) + _args, _kwargs)
80 return val
81 def HasTextColour(self, *_args, **_kwargs):
82 val = apply(controls2c.wxListItemAttr_HasTextColour,(self,) + _args, _kwargs)
83 return val
84 def HasBackgroundColour(self, *_args, **_kwargs):
85 val = apply(controls2c.wxListItemAttr_HasBackgroundColour,(self,) + _args, _kwargs)
86 return val
87 def HasFont(self, *_args, **_kwargs):
88 val = apply(controls2c.wxListItemAttr_HasFont,(self,) + _args, _kwargs)
89 return val
90 def GetTextColour(self, *_args, **_kwargs):
91 val = apply(controls2c.wxListItemAttr_GetTextColour,(self,) + _args, _kwargs)
92 if val: val = wxColourPtr(val)
93 return val
94 def GetBackgroundColour(self, *_args, **_kwargs):
95 val = apply(controls2c.wxListItemAttr_GetBackgroundColour,(self,) + _args, _kwargs)
96 if val: val = wxColourPtr(val)
97 return val
98 def GetFont(self, *_args, **_kwargs):
99 val = apply(controls2c.wxListItemAttr_GetFont,(self,) + _args, _kwargs)
100 if val: val = wxFontPtr(val)
101 return val
102 def __repr__(self):
103 return "<C wxListItemAttr instance at %s>" % (self.this,)
104class wxListItemAttr(wxListItemAttrPtr):
105 def __init__(self,*_args,**_kwargs):
106 self.this = apply(controls2c.new_wxListItemAttr,_args,_kwargs)
107 self.thisown = 1
108
109
110
111
9df61a29 112class wxListItemPtr(wxObjectPtr):
8ab979d7
RD
113 def __init__(self,this):
114 self.this = this
115 self.thisown = 0
1d99702e 116 def __del__(self,controls2c=controls2c):
8ab979d7 117 if self.thisown == 1 :
1d99702e 118 controls2c.delete_wxListItem(self)
f6bcfd97
BP
119 def Clear(self, *_args, **_kwargs):
120 val = apply(controls2c.wxListItem_Clear,(self,) + _args, _kwargs)
121 return val
122 def ClearAttributes(self, *_args, **_kwargs):
123 val = apply(controls2c.wxListItem_ClearAttributes,(self,) + _args, _kwargs)
124 return val
125 def SetMask(self, *_args, **_kwargs):
126 val = apply(controls2c.wxListItem_SetMask,(self,) + _args, _kwargs)
127 return val
128 def SetId(self, *_args, **_kwargs):
129 val = apply(controls2c.wxListItem_SetId,(self,) + _args, _kwargs)
130 return val
131 def SetColumn(self, *_args, **_kwargs):
132 val = apply(controls2c.wxListItem_SetColumn,(self,) + _args, _kwargs)
133 return val
134 def SetState(self, *_args, **_kwargs):
135 val = apply(controls2c.wxListItem_SetState,(self,) + _args, _kwargs)
136 return val
137 def SetStateMask(self, *_args, **_kwargs):
138 val = apply(controls2c.wxListItem_SetStateMask,(self,) + _args, _kwargs)
139 return val
140 def SetText(self, *_args, **_kwargs):
141 val = apply(controls2c.wxListItem_SetText,(self,) + _args, _kwargs)
142 return val
143 def SetImage(self, *_args, **_kwargs):
144 val = apply(controls2c.wxListItem_SetImage,(self,) + _args, _kwargs)
145 return val
146 def SetData(self, *_args, **_kwargs):
147 val = apply(controls2c.wxListItem_SetData,(self,) + _args, _kwargs)
148 return val
149 def SetWidth(self, *_args, **_kwargs):
150 val = apply(controls2c.wxListItem_SetWidth,(self,) + _args, _kwargs)
151 return val
152 def SetAlign(self, *_args, **_kwargs):
153 val = apply(controls2c.wxListItem_SetAlign,(self,) + _args, _kwargs)
154 return val
155 def SetTextColour(self, *_args, **_kwargs):
156 val = apply(controls2c.wxListItem_SetTextColour,(self,) + _args, _kwargs)
157 return val
158 def SetBackgroundColour(self, *_args, **_kwargs):
159 val = apply(controls2c.wxListItem_SetBackgroundColour,(self,) + _args, _kwargs)
160 return val
161 def SetFont(self, *_args, **_kwargs):
162 val = apply(controls2c.wxListItem_SetFont,(self,) + _args, _kwargs)
163 return val
164 def GetMask(self, *_args, **_kwargs):
165 val = apply(controls2c.wxListItem_GetMask,(self,) + _args, _kwargs)
166 return val
167 def GetId(self, *_args, **_kwargs):
168 val = apply(controls2c.wxListItem_GetId,(self,) + _args, _kwargs)
169 return val
170 def GetColumn(self, *_args, **_kwargs):
171 val = apply(controls2c.wxListItem_GetColumn,(self,) + _args, _kwargs)
172 return val
173 def GetState(self, *_args, **_kwargs):
174 val = apply(controls2c.wxListItem_GetState,(self,) + _args, _kwargs)
175 return val
176 def GetText(self, *_args, **_kwargs):
177 val = apply(controls2c.wxListItem_GetText,(self,) + _args, _kwargs)
178 return val
179 def GetImage(self, *_args, **_kwargs):
180 val = apply(controls2c.wxListItem_GetImage,(self,) + _args, _kwargs)
181 return val
182 def GetData(self, *_args, **_kwargs):
183 val = apply(controls2c.wxListItem_GetData,(self,) + _args, _kwargs)
184 return val
185 def GetWidth(self, *_args, **_kwargs):
186 val = apply(controls2c.wxListItem_GetWidth,(self,) + _args, _kwargs)
187 return val
188 def GetAlign(self, *_args, **_kwargs):
189 val = apply(controls2c.wxListItem_GetAlign,(self,) + _args, _kwargs)
190 return val
191 def GetAttributes(self, *_args, **_kwargs):
192 val = apply(controls2c.wxListItem_GetAttributes,(self,) + _args, _kwargs)
193 if val: val = wxListItemAttrPtr(val)
194 return val
195 def HasAttributes(self, *_args, **_kwargs):
196 val = apply(controls2c.wxListItem_HasAttributes,(self,) + _args, _kwargs)
197 return val
198 def GetTextColour(self, *_args, **_kwargs):
199 val = apply(controls2c.wxListItem_GetTextColour,(self,) + _args, _kwargs)
200 if val: val = wxColourPtr(val) ; val.thisown = 1
201 return val
202 def GetBackgroundColour(self, *_args, **_kwargs):
203 val = apply(controls2c.wxListItem_GetBackgroundColour,(self,) + _args, _kwargs)
204 if val: val = wxColourPtr(val) ; val.thisown = 1
205 return val
206 def GetFont(self, *_args, **_kwargs):
207 val = apply(controls2c.wxListItem_GetFont,(self,) + _args, _kwargs)
208 if val: val = wxFontPtr(val) ; val.thisown = 1
209 return val
8ab979d7
RD
210 def __setattr__(self,name,value):
211 if name == "m_mask" :
1d99702e 212 controls2c.wxListItem_m_mask_set(self,value)
8ab979d7
RD
213 return
214 if name == "m_itemId" :
1d99702e 215 controls2c.wxListItem_m_itemId_set(self,value)
8ab979d7
RD
216 return
217 if name == "m_col" :
1d99702e 218 controls2c.wxListItem_m_col_set(self,value)
8ab979d7
RD
219 return
220 if name == "m_state" :
1d99702e 221 controls2c.wxListItem_m_state_set(self,value)
8ab979d7
RD
222 return
223 if name == "m_stateMask" :
1d99702e 224 controls2c.wxListItem_m_stateMask_set(self,value)
8ab979d7
RD
225 return
226 if name == "m_text" :
1d99702e 227 controls2c.wxListItem_m_text_set(self,value)
8ab979d7
RD
228 return
229 if name == "m_image" :
1d99702e 230 controls2c.wxListItem_m_image_set(self,value)
8ab979d7
RD
231 return
232 if name == "m_data" :
1d99702e 233 controls2c.wxListItem_m_data_set(self,value)
8ab979d7
RD
234 return
235 if name == "m_format" :
1d99702e 236 controls2c.wxListItem_m_format_set(self,value)
8ab979d7
RD
237 return
238 if name == "m_width" :
1d99702e 239 controls2c.wxListItem_m_width_set(self,value)
8ab979d7
RD
240 return
241 self.__dict__[name] = value
242 def __getattr__(self,name):
243 if name == "m_mask" :
1d99702e 244 return controls2c.wxListItem_m_mask_get(self)
8ab979d7 245 if name == "m_itemId" :
1d99702e 246 return controls2c.wxListItem_m_itemId_get(self)
8ab979d7 247 if name == "m_col" :
1d99702e 248 return controls2c.wxListItem_m_col_get(self)
8ab979d7 249 if name == "m_state" :
1d99702e 250 return controls2c.wxListItem_m_state_get(self)
8ab979d7 251 if name == "m_stateMask" :
1d99702e 252 return controls2c.wxListItem_m_stateMask_get(self)
8ab979d7 253 if name == "m_text" :
1d99702e 254 return controls2c.wxListItem_m_text_get(self)
8ab979d7 255 if name == "m_image" :
1d99702e 256 return controls2c.wxListItem_m_image_get(self)
8ab979d7 257 if name == "m_data" :
1d99702e 258 return controls2c.wxListItem_m_data_get(self)
8ab979d7 259 if name == "m_format" :
1d99702e 260 return controls2c.wxListItem_m_format_get(self)
8ab979d7 261 if name == "m_width" :
1d99702e 262 return controls2c.wxListItem_m_width_get(self)
8ab979d7
RD
263 raise AttributeError,name
264 def __repr__(self):
1d99702e 265 return "<C wxListItem instance at %s>" % (self.this,)
8ab979d7 266class wxListItem(wxListItemPtr):
1d99702e
RD
267 def __init__(self,*_args,**_kwargs):
268 self.this = apply(controls2c.new_wxListItem,_args,_kwargs)
8ab979d7
RD
269 self.thisown = 1
270
271
272
273
c368d904 274class wxListEventPtr(wxNotifyEventPtr):
8ab979d7
RD
275 def __init__(self,this):
276 self.this = this
277 self.thisown = 0
f6bcfd97
BP
278 def GetCode(self, *_args, **_kwargs):
279 val = apply(controls2c.wxListEvent_GetCode,(self,) + _args, _kwargs)
280 return val
281 def GetIndex(self, *_args, **_kwargs):
282 val = apply(controls2c.wxListEvent_GetIndex,(self,) + _args, _kwargs)
283 return val
284 def GetOldIndex(self, *_args, **_kwargs):
285 val = apply(controls2c.wxListEvent_GetOldIndex,(self,) + _args, _kwargs)
286 return val
287 def GetOldItem(self, *_args, **_kwargs):
288 val = apply(controls2c.wxListEvent_GetOldItem,(self,) + _args, _kwargs)
289 return val
290 def GetColumn(self, *_args, **_kwargs):
291 val = apply(controls2c.wxListEvent_GetColumn,(self,) + _args, _kwargs)
292 return val
293 def Cancelled(self, *_args, **_kwargs):
294 val = apply(controls2c.wxListEvent_Cancelled,(self,) + _args, _kwargs)
295 return val
296 def GetPoint(self, *_args, **_kwargs):
297 val = apply(controls2c.wxListEvent_GetPoint,(self,) + _args, _kwargs)
298 if val: val = wxPointPtr(val) ; val.thisown = 1
299 return val
300 def GetLabel(self, *_args, **_kwargs):
301 val = apply(controls2c.wxListEvent_GetLabel,(self,) + _args, _kwargs)
302 return val
303 def GetText(self, *_args, **_kwargs):
304 val = apply(controls2c.wxListEvent_GetText,(self,) + _args, _kwargs)
305 return val
306 def GetImage(self, *_args, **_kwargs):
307 val = apply(controls2c.wxListEvent_GetImage,(self,) + _args, _kwargs)
308 return val
309 def GetData(self, *_args, **_kwargs):
310 val = apply(controls2c.wxListEvent_GetData,(self,) + _args, _kwargs)
311 return val
312 def GetMask(self, *_args, **_kwargs):
313 val = apply(controls2c.wxListEvent_GetMask,(self,) + _args, _kwargs)
314 return val
315 def GetItem(self, *_args, **_kwargs):
316 val = apply(controls2c.wxListEvent_GetItem,(self,) + _args, _kwargs)
f6bcfd97 317 return val
8ab979d7
RD
318 def __setattr__(self,name,value):
319 if name == "m_code" :
1d99702e 320 controls2c.wxListEvent_m_code_set(self,value)
8ab979d7
RD
321 return
322 if name == "m_itemIndex" :
1d99702e 323 controls2c.wxListEvent_m_itemIndex_set(self,value)
8ab979d7
RD
324 return
325 if name == "m_oldItemIndex" :
1d99702e 326 controls2c.wxListEvent_m_oldItemIndex_set(self,value)
8ab979d7
RD
327 return
328 if name == "m_col" :
1d99702e 329 controls2c.wxListEvent_m_col_set(self,value)
8ab979d7
RD
330 return
331 if name == "m_cancelled" :
1d99702e 332 controls2c.wxListEvent_m_cancelled_set(self,value)
8ab979d7
RD
333 return
334 if name == "m_pointDrag" :
1d99702e 335 controls2c.wxListEvent_m_pointDrag_set(self,value.this)
8ab979d7
RD
336 return
337 if name == "m_item" :
1d99702e 338 controls2c.wxListEvent_m_item_set(self,value.this)
8ab979d7
RD
339 return
340 self.__dict__[name] = value
341 def __getattr__(self,name):
342 if name == "m_code" :
1d99702e 343 return controls2c.wxListEvent_m_code_get(self)
8ab979d7 344 if name == "m_itemIndex" :
1d99702e 345 return controls2c.wxListEvent_m_itemIndex_get(self)
8ab979d7 346 if name == "m_oldItemIndex" :
1d99702e 347 return controls2c.wxListEvent_m_oldItemIndex_get(self)
8ab979d7 348 if name == "m_col" :
1d99702e 349 return controls2c.wxListEvent_m_col_get(self)
8ab979d7 350 if name == "m_cancelled" :
1d99702e 351 return controls2c.wxListEvent_m_cancelled_get(self)
8ab979d7 352 if name == "m_pointDrag" :
1d99702e 353 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self))
8ab979d7 354 if name == "m_item" :
1d99702e 355 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self))
8ab979d7
RD
356 raise AttributeError,name
357 def __repr__(self):
1d99702e 358 return "<C wxListEvent instance at %s>" % (self.this,)
8ab979d7
RD
359class wxListEvent(wxListEventPtr):
360 def __init__(self,this):
361 self.this = this
362
363
364
365
366class wxListCtrlPtr(wxControlPtr):
367 def __init__(self,this):
368 self.this = this
369 self.thisown = 0
cd096152
RD
370 def _setSelf(self, *_args, **_kwargs):
371 val = apply(controls2c.wxListCtrl__setSelf,(self,) + _args, _kwargs)
8ab979d7 372 return val
cd096152
RD
373 def SetForegroundColour(self, *_args, **_kwargs):
374 val = apply(controls2c.wxListCtrl_SetForegroundColour,(self,) + _args, _kwargs)
9c4165ad 375 return val
cd096152
RD
376 def SetBackgroundColour(self, *_args, **_kwargs):
377 val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs)
8ab979d7 378 return val
cd096152
RD
379 def GetColumn(self, *_args, **_kwargs):
380 val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
8ab979d7 381 return val
cd096152
RD
382 def SetColumn(self, *_args, **_kwargs):
383 val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs)
8ab979d7 384 return val
cd096152
RD
385 def GetColumnWidth(self, *_args, **_kwargs):
386 val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 387 return val
cd096152
RD
388 def SetColumnWidth(self, *_args, **_kwargs):
389 val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 390 return val
cd096152
RD
391 def GetCountPerPage(self, *_args, **_kwargs):
392 val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs)
be4d9c1f 393 return val
cd096152
RD
394 def GetItem(self, *_args, **_kwargs):
395 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
8ab979d7 396 return val
cd096152
RD
397 def SetItem(self, *_args, **_kwargs):
398 val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs)
8ab979d7 399 return val
cd096152
RD
400 def SetStringItem(self, *_args, **_kwargs):
401 val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs)
8ab979d7 402 return val
cd096152
RD
403 def GetItemState(self, *_args, **_kwargs):
404 val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs)
8ab979d7 405 return val
cd096152
RD
406 def SetItemState(self, *_args, **_kwargs):
407 val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs)
8ab979d7 408 return val
cd096152
RD
409 def SetItemImage(self, *_args, **_kwargs):
410 val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 411 return val
cd096152
RD
412 def GetItemText(self, *_args, **_kwargs):
413 val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 414 return val
cd096152
RD
415 def SetItemText(self, *_args, **_kwargs):
416 val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 417 return val
1d99702e
RD
418 def GetItemData(self, *_args, **_kwargs):
419 val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
8ab979d7 420 return val
cd096152
RD
421 def SetItemData(self, *_args, **_kwargs):
422 val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs)
8ab979d7 423 return val
1d99702e
RD
424 def GetItemPosition(self, *_args, **_kwargs):
425 val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
426 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 427 return val
1d99702e
RD
428 def GetItemRect(self, *_args, **_kwargs):
429 val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs)
430 if val: val = wxRectPtr(val) ; val.thisown = 1
8ab979d7 431 return val
cd096152
RD
432 def SetItemPosition(self, *_args, **_kwargs):
433 val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs)
8ab979d7 434 return val
1d99702e
RD
435 def GetItemCount(self, *_args, **_kwargs):
436 val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs)
8ab979d7 437 return val
cd096152
RD
438 def GetColumnCount(self, *_args, **_kwargs):
439 val = apply(controls2c.wxListCtrl_GetColumnCount,(self,) + _args, _kwargs)
440 return val
1d99702e
RD
441 def GetItemSpacing(self, *_args, **_kwargs):
442 val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs)
8ab979d7 443 return val
1d99702e
RD
444 def GetSelectedItemCount(self, *_args, **_kwargs):
445 val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs)
8ab979d7 446 return val
cd096152
RD
447 def GetTextColour(self, *_args, **_kwargs):
448 val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs)
449 if val: val = wxColourPtr(val) ; val.thisown = 1
450 return val
451 def SetTextColour(self, *_args, **_kwargs):
452 val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs)
453 return val
1d99702e
RD
454 def GetTopItem(self, *_args, **_kwargs):
455 val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs)
8ab979d7 456 return val
cd096152
RD
457 def SetSingleStyle(self, *_args, **_kwargs):
458 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs)
8ab979d7 459 return val
cd096152
RD
460 def SetWindowStyleFlag(self, *_args, **_kwargs):
461 val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs)
8ab979d7 462 return val
cd096152
RD
463 def GetNextItem(self, *_args, **_kwargs):
464 val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs)
8ab979d7 465 return val
cd096152
RD
466 def GetImageList(self, *_args, **_kwargs):
467 val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
8ab979d7 468 return val
cd096152
RD
469 def SetImageList(self, *_args, **_kwargs):
470 val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 471 return val
cd096152
RD
472 def AssignImageList(self, *_args, **_kwargs):
473 val = apply(controls2c.wxListCtrl_AssignImageList,(self,) + _args, _kwargs)
474 _args[0].thisown = 0
8ab979d7 475 return val
cd096152
RD
476 def IsVirtual(self, *_args, **_kwargs):
477 val = apply(controls2c.wxListCtrl_IsVirtual,(self,) + _args, _kwargs)
8ab979d7 478 return val
cd096152
RD
479 def RefreshItem(self, *_args, **_kwargs):
480 val = apply(controls2c.wxListCtrl_RefreshItem,(self,) + _args, _kwargs)
8ab979d7 481 return val
cd096152
RD
482 def RefreshItems(self, *_args, **_kwargs):
483 val = apply(controls2c.wxListCtrl_RefreshItems,(self,) + _args, _kwargs)
8ab979d7 484 return val
cd096152
RD
485 def Arrange(self, *_args, **_kwargs):
486 val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs)
8ab979d7 487 return val
cd096152
RD
488 def DeleteItem(self, *_args, **_kwargs):
489 val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
8ab979d7 490 return val
cd096152
RD
491 def DeleteAllItems(self, *_args, **_kwargs):
492 val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs)
8ab979d7 493 return val
cd096152
RD
494 def DeleteColumn(self, *_args, **_kwargs):
495 val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs)
8ab979d7 496 return val
cd096152
RD
497 def DeleteAllColumns(self, *_args, **_kwargs):
498 val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs)
8ab979d7 499 return val
cd096152
RD
500 def ClearAll(self, *_args, **_kwargs):
501 val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs)
8ab979d7 502 return val
cd096152
RD
503 def EnsureVisible(self, *_args, **_kwargs):
504 val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs)
8ab979d7 505 return val
cd096152
RD
506 def FindItem(self, *_args, **_kwargs):
507 val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs)
8ab979d7 508 return val
cd096152
RD
509 def FindItemData(self, *_args, **_kwargs):
510 val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs)
8ab979d7 511 return val
cd096152
RD
512 def FindItemAtPos(self, *_args, **_kwargs):
513 val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs)
8ab979d7 514 return val
cd096152
RD
515 def HitTest(self, *_args, **_kwargs):
516 val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs)
8ab979d7 517 return val
cd096152
RD
518 def InsertItem(self, *_args, **_kwargs):
519 val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs)
520 return val
521 def InsertStringItem(self, *_args, **_kwargs):
522 val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs)
523 return val
524 def InsertImageItem(self, *_args, **_kwargs):
525 val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs)
526 return val
527 def InsertImageStringItem(self, *_args, **_kwargs):
528 val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs)
529 return val
530 def InsertColumnInfo(self, *_args, **_kwargs):
531 val = apply(controls2c.wxListCtrl_InsertColumnInfo,(self,) + _args, _kwargs)
532 return val
533 def InsertColumn(self, *_args, **_kwargs):
534 val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs)
535 return val
536 def SetItemCount(self, *_args, **_kwargs):
537 val = apply(controls2c.wxListCtrl_SetItemCount,(self,) + _args, _kwargs)
538 return val
539 def ScrollList(self, *_args, **_kwargs):
540 val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
8ab979d7 541 return val
dcd38683
RD
542 def SortItems(self, *_args, **_kwargs):
543 val = apply(controls2c.wxListCtrl_SortItems,(self,) + _args, _kwargs)
544 return val
8ab979d7 545 def __repr__(self):
1d99702e 546 return "<C wxListCtrl instance at %s>" % (self.this,)
10be44ac
RD
547
548 def GetItem(self, *_args, **_kwargs):
549 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
550 val.thisown = 1
551 return val
552
8ab979d7 553class wxListCtrl(wxListCtrlPtr):
1d99702e
RD
554 def __init__(self,*_args,**_kwargs):
555 self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
8ab979d7 556 self.thisown = 1
f6bcfd97 557 #wx._StdWindowCallbacks(self)
cd096152 558 self._setSelf(self, wxListCtrl)
8ab979d7
RD
559
560
561
562
d5c9047a 563class wxTreeItemIdPtr :
8ab979d7
RD
564 def __init__(self,this):
565 self.this = this
566 self.thisown = 0
1d99702e 567 def __del__(self,controls2c=controls2c):
8ab979d7 568 if self.thisown == 1 :
1d99702e
RD
569 controls2c.delete_wxTreeItemId(self)
570 def IsOk(self, *_args, **_kwargs):
571 val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
d5c9047a 572 return val
f6bcfd97
BP
573 def __cmp__(self, *_args, **_kwargs):
574 val = apply(controls2c.wxTreeItemId___cmp__,(self,) + _args, _kwargs)
575 return val
d5c9047a 576 def __repr__(self):
1d99702e 577 return "<C wxTreeItemId instance at %s>" % (self.this,)
d5c9047a 578class wxTreeItemId(wxTreeItemIdPtr):
1d99702e
RD
579 def __init__(self,*_args,**_kwargs):
580 self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
d5c9047a
RD
581 self.thisown = 1
582
583
584
585
9df61a29 586class wxTreeItemDataPtr(wxObjectPtr):
d5c9047a
RD
587 def __init__(self,this):
588 self.this = this
589 self.thisown = 0
1d99702e
RD
590 def GetData(self, *_args, **_kwargs):
591 val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
cf694132 592 return val
1d99702e
RD
593 def SetData(self, *_args, **_kwargs):
594 val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
cf694132 595 return val
1d99702e
RD
596 def GetId(self, *_args, **_kwargs):
597 val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
598 if val: val = wxTreeItemIdPtr(val)
d5c9047a 599 return val
1d99702e
RD
600 def SetId(self, *_args, **_kwargs):
601 val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
630d84f2 602 return val
8ab979d7 603 def __repr__(self):
1d99702e 604 return "<C wxTreeItemData instance at %s>" % (self.this,)
d5c9047a 605class wxTreeItemData(wxTreeItemDataPtr):
1d99702e
RD
606 def __init__(self,*_args,**_kwargs):
607 self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
8ab979d7
RD
608 self.thisown = 1
609
610
611
612
8bf5d46e 613class wxTreeEventPtr(wxNotifyEventPtr):
8ab979d7
RD
614 def __init__(self,this):
615 self.this = this
616 self.thisown = 0
1d99702e
RD
617 def GetItem(self, *_args, **_kwargs):
618 val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
619 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 620 return val
1d99702e
RD
621 def GetOldItem(self, *_args, **_kwargs):
622 val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
623 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 624 return val
1d99702e
RD
625 def GetPoint(self, *_args, **_kwargs):
626 val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
627 if val: val = wxPointPtr(val) ; val.thisown = 1
d5c9047a 628 return val
1d99702e
RD
629 def GetCode(self, *_args, **_kwargs):
630 val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
d5c9047a 631 return val
1d99702e
RD
632 def GetLabel(self, *_args, **_kwargs):
633 val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
d5c9047a 634 return val
8ab979d7 635 def __repr__(self):
1d99702e 636 return "<C wxTreeEvent instance at %s>" % (self.this,)
8ab979d7
RD
637class wxTreeEvent(wxTreeEventPtr):
638 def __init__(self,this):
639 self.this = this
640
641
642
643
644class wxTreeCtrlPtr(wxControlPtr):
645 def __init__(self,this):
646 self.this = this
647 self.thisown = 0
f6bcfd97
BP
648 def _setSelf(self, *_args, **_kwargs):
649 val = apply(controls2c.wxTreeCtrl__setSelf,(self,) + _args, _kwargs)
650 return val
9c4165ad
RD
651 def AssignImageList(self, *_args, **_kwargs):
652 val = apply(controls2c.wxTreeCtrl_AssignImageList,(self,) + _args, _kwargs)
9df61a29 653 _args[0].thisown = 0
9c4165ad 654 return val
1d99702e
RD
655 def GetCount(self, *_args, **_kwargs):
656 val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
8ab979d7 657 return val
1d99702e
RD
658 def GetIndent(self, *_args, **_kwargs):
659 val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
8ab979d7 660 return val
1d99702e
RD
661 def SetIndent(self, *_args, **_kwargs):
662 val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
8ab979d7 663 return val
1d99702e
RD
664 def GetImageList(self, *_args, **_kwargs):
665 val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
8ab979d7 666 return val
1d99702e
RD
667 def GetStateImageList(self, *_args, **_kwargs):
668 val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
8ab979d7 669 return val
1d99702e
RD
670 def SetImageList(self, *_args, **_kwargs):
671 val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 672 return val
1d99702e
RD
673 def SetStateImageList(self, *_args, **_kwargs):
674 val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
8ab979d7 675 return val
b1462dfa
RD
676 def GetSpacing(self, *_args, **_kwargs):
677 val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
678 return val
679 def SetSpacing(self, *_args, **_kwargs):
680 val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
681 return val
1d99702e
RD
682 def GetItemText(self, *_args, **_kwargs):
683 val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 684 return val
1d99702e
RD
685 def GetItemImage(self, *_args, **_kwargs):
686 val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
8ab979d7 687 return val
1d99702e
RD
688 def GetItemSelectedImage(self, *_args, **_kwargs):
689 val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 690 return val
1d99702e
RD
691 def SetItemText(self, *_args, **_kwargs):
692 val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 693 return val
1d99702e
RD
694 def SetItemImage(self, *_args, **_kwargs):
695 val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 696 return val
1d99702e
RD
697 def SetItemSelectedImage(self, *_args, **_kwargs):
698 val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 699 return val
1d99702e
RD
700 def SetItemHasChildren(self, *_args, **_kwargs):
701 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
cf694132 702 return val
1d99702e
RD
703 def GetItemData(self, *_args, **_kwargs):
704 val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
705 if val: val = wxTreeItemDataPtr(val)
cf694132 706 return val
1d99702e
RD
707 def SetItemData(self, *_args, **_kwargs):
708 val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
d5c9047a 709 return val
1d99702e
RD
710 def GetPyData(self, *_args, **_kwargs):
711 val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
cf694132 712 return val
1d99702e
RD
713 def SetPyData(self, *_args, **_kwargs):
714 val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
08127323 715 return val
1d99702e
RD
716 def IsVisible(self, *_args, **_kwargs):
717 val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
8ab979d7 718 return val
1d99702e
RD
719 def ItemHasChildren(self, *_args, **_kwargs):
720 val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
8ab979d7 721 return val
1d99702e
RD
722 def IsExpanded(self, *_args, **_kwargs):
723 val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
8ab979d7 724 return val
1d99702e
RD
725 def IsSelected(self, *_args, **_kwargs):
726 val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
8ab979d7 727 return val
1d99702e
RD
728 def GetRootItem(self, *_args, **_kwargs):
729 val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
730 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 731 return val
1d99702e
RD
732 def GetSelection(self, *_args, **_kwargs):
733 val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
734 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 735 return val
eb715945
RD
736 def GetItemParent(self, *_args, **_kwargs):
737 val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs)
1d99702e 738 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 739 return val
d426c97e
RD
740 def GetSelections(self, *_args, **_kwargs):
741 val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
742 return val
1d99702e
RD
743 def GetChildrenCount(self, *_args, **_kwargs):
744 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
bb0054cd 745 return val
1d99702e
RD
746 def GetFirstChild(self, *_args, **_kwargs):
747 val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
8ab979d7 748 return val
1d99702e
RD
749 def GetNextChild(self, *_args, **_kwargs):
750 val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
751 return val
752 def GetNextSibling(self, *_args, **_kwargs):
753 val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
754 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
755 return val
756 def GetPrevSibling(self, *_args, **_kwargs):
757 val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
758 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
759 return val
760 def GetFirstVisibleItem(self, *_args, **_kwargs):
761 val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
762 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
763 return val
764 def GetNextVisible(self, *_args, **_kwargs):
765 val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
766 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
767 return val
768 def GetPrevVisible(self, *_args, **_kwargs):
769 val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
770 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
771 return val
d426c97e
RD
772 def GetLastChild(self, *_args, **_kwargs):
773 val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
774 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
775 return val
1d99702e
RD
776 def AddRoot(self, *_args, **_kwargs):
777 val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
778 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
779 return val
780 def PrependItem(self, *_args, **_kwargs):
781 val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
782 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
783 return val
784 def InsertItem(self, *_args, **_kwargs):
785 val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
786 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
787 return val
f6bcfd97
BP
788 def InsertItemBefore(self, *_args, **_kwargs):
789 val = apply(controls2c.wxTreeCtrl_InsertItemBefore,(self,) + _args, _kwargs)
790 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
791 return val
1d99702e
RD
792 def AppendItem(self, *_args, **_kwargs):
793 val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
794 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
795 return val
796 def Delete(self, *_args, **_kwargs):
797 val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
798 return val
799 def DeleteChildren(self, *_args, **_kwargs):
800 val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
801 return val
802 def DeleteAllItems(self, *_args, **_kwargs):
803 val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
804 return val
805 def Expand(self, *_args, **_kwargs):
806 val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
807 return val
808 def Collapse(self, *_args, **_kwargs):
809 val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
810 return val
811 def CollapseAndReset(self, *_args, **_kwargs):
812 val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
813 return val
814 def Toggle(self, *_args, **_kwargs):
815 val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
816 return val
817 def Unselect(self, *_args, **_kwargs):
818 val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
819 return val
820 def UnselectAll(self, *_args, **_kwargs):
821 val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
822 return val
823 def SelectItem(self, *_args, **_kwargs):
824 val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
825 return val
826 def EnsureVisible(self, *_args, **_kwargs):
827 val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
828 return val
829 def ScrollTo(self, *_args, **_kwargs):
830 val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
831 return val
832 def EditLabel(self, *_args, **_kwargs):
833 val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
1d99702e 834 return val
d426c97e
RD
835 def SortChildren(self, *_args, **_kwargs):
836 val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
837 return val
1d99702e
RD
838 def SetItemBold(self, *_args, **_kwargs):
839 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
840 return val
841 def IsBold(self, *_args, **_kwargs):
842 val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
843 return val
844 def HitTest(self, *_args, **_kwargs):
845 val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
b8b8dda7 846 return val
b7e72427
RD
847 def SetItemTextColour(self, *_args, **_kwargs):
848 val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
849 return val
850 def SetItemBackgroundColour(self, *_args, **_kwargs):
851 val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
852 return val
853 def SetItemFont(self, *_args, **_kwargs):
854 val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs)
855 return val
8ab979d7 856 def __repr__(self):
1d99702e 857 return "<C wxTreeCtrl instance at %s>" % (self.this,)
c127177f 858
f6bcfd97
BP
859 # Redefine some methods that SWIG gets a bit confused on...
860 def GetFirstChild(self, *_args, **_kwargs):
861 val1,val2 = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
c127177f
RD
862 val1 = wxTreeItemIdPtr(val1)
863 val1.thisown = 1
864 return (val1,val2)
f6bcfd97
BP
865 def GetNextChild(self, *_args, **_kwargs):
866 val1,val2 = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
867 val1 = wxTreeItemIdPtr(val1)
868 val1.thisown = 1
869 return (val1,val2)
870 def HitTest(self, *_args, **_kwargs):
871 val1, val2 = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
c127177f
RD
872 val1 = wxTreeItemIdPtr(val1)
873 val1.thisown = 1
874 return (val1,val2)
875
8ab979d7 876class wxTreeCtrl(wxTreeCtrlPtr):
1d99702e
RD
877 def __init__(self,*_args,**_kwargs):
878 self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
8ab979d7 879 self.thisown = 1
f6bcfd97
BP
880 #wx._StdWindowCallbacks(self)
881 self._setSelf(self, wxTreeCtrl)
8ab979d7
RD
882
883
884
885
886
887
888#-------------- FUNCTION WRAPPERS ------------------
889
890
891
892#-------------- VARIABLE WRAPPERS ------------------
893
cd096152
RD
894wxEVT_COMMAND_LIST_BEGIN_DRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_DRAG
895wxEVT_COMMAND_LIST_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_RDRAG
896wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
897wxEVT_COMMAND_LIST_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_END_LABEL_EDIT
898wxEVT_COMMAND_LIST_DELETE_ITEM = controls2c.wxEVT_COMMAND_LIST_DELETE_ITEM
899wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = controls2c.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
900wxEVT_COMMAND_LIST_GET_INFO = controls2c.wxEVT_COMMAND_LIST_GET_INFO
901wxEVT_COMMAND_LIST_SET_INFO = controls2c.wxEVT_COMMAND_LIST_SET_INFO
902wxEVT_COMMAND_LIST_ITEM_SELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_SELECTED
903wxEVT_COMMAND_LIST_ITEM_DESELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_DESELECTED
904wxEVT_COMMAND_LIST_KEY_DOWN = controls2c.wxEVT_COMMAND_LIST_KEY_DOWN
905wxEVT_COMMAND_LIST_INSERT_ITEM = controls2c.wxEVT_COMMAND_LIST_INSERT_ITEM
906wxEVT_COMMAND_LIST_COL_CLICK = controls2c.wxEVT_COMMAND_LIST_COL_CLICK
907wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
908wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
909wxEVT_COMMAND_LIST_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
910wxEVT_COMMAND_LIST_CACHE_HINT = controls2c.wxEVT_COMMAND_LIST_CACHE_HINT
911wxLC_VRULES = controls2c.wxLC_VRULES
912wxLC_HRULES = controls2c.wxLC_HRULES
913wxLC_ICON = controls2c.wxLC_ICON
914wxLC_SMALL_ICON = controls2c.wxLC_SMALL_ICON
915wxLC_LIST = controls2c.wxLC_LIST
916wxLC_REPORT = controls2c.wxLC_REPORT
917wxLC_ALIGN_TOP = controls2c.wxLC_ALIGN_TOP
918wxLC_ALIGN_LEFT = controls2c.wxLC_ALIGN_LEFT
919wxLC_AUTOARRANGE = controls2c.wxLC_AUTOARRANGE
920wxLC_VIRTUAL = controls2c.wxLC_VIRTUAL
921wxLC_EDIT_LABELS = controls2c.wxLC_EDIT_LABELS
922wxLC_NO_HEADER = controls2c.wxLC_NO_HEADER
923wxLC_NO_SORT_HEADER = controls2c.wxLC_NO_SORT_HEADER
924wxLC_SINGLE_SEL = controls2c.wxLC_SINGLE_SEL
925wxLC_SORT_ASCENDING = controls2c.wxLC_SORT_ASCENDING
926wxLC_SORT_DESCENDING = controls2c.wxLC_SORT_DESCENDING
927wxLC_MASK_TYPE = controls2c.wxLC_MASK_TYPE
928wxLC_MASK_ALIGN = controls2c.wxLC_MASK_ALIGN
929wxLC_MASK_SORT = controls2c.wxLC_MASK_SORT
930wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
af309447
RD
931wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
932wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
933wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
cd096152 934wxLIST_SET_ITEM = controls2c.wxLIST_SET_ITEM
af309447
RD
935wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
936wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
937wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
938wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
939wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
940wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
941wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
942wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
943wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
944wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
945wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
946wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
947wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
948wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
949wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
950wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
951wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
952wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
953wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
954wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
955wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
956wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
957wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
958wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
959wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
960wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
af309447
RD
961wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
962wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
963wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
964wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
965wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
966wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
967wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
968wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
969wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT
f6bcfd97
BP
970wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
971wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
972wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
973wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
694759cf
RD
974wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal
975wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected
976wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded
977wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded
978wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max
164b735b
RD
979wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
980wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
981wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
982wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
983wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
984wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
985wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
986wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
987wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
988wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
989wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
990wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART
991wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART
992wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM
9c4165ad
RD
993wxEVT_COMMAND_TREE_BEGIN_DRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_DRAG
994wxEVT_COMMAND_TREE_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_RDRAG
995wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
996wxEVT_COMMAND_TREE_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_END_LABEL_EDIT
997wxEVT_COMMAND_TREE_DELETE_ITEM = controls2c.wxEVT_COMMAND_TREE_DELETE_ITEM
998wxEVT_COMMAND_TREE_GET_INFO = controls2c.wxEVT_COMMAND_TREE_GET_INFO
999wxEVT_COMMAND_TREE_SET_INFO = controls2c.wxEVT_COMMAND_TREE_SET_INFO
1000wxEVT_COMMAND_TREE_ITEM_EXPANDED = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDED
1001wxEVT_COMMAND_TREE_ITEM_EXPANDING = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDING
1002wxEVT_COMMAND_TREE_ITEM_COLLAPSED = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
1003wxEVT_COMMAND_TREE_ITEM_COLLAPSING = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
1004wxEVT_COMMAND_TREE_SEL_CHANGED = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGED
1005wxEVT_COMMAND_TREE_SEL_CHANGING = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGING
1006wxEVT_COMMAND_TREE_KEY_DOWN = controls2c.wxEVT_COMMAND_TREE_KEY_DOWN
1007wxEVT_COMMAND_TREE_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
1008wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
1009wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
7a446686 1010wxEVT_COMMAND_TREE_END_DRAG = controls2c.wxEVT_COMMAND_TREE_END_DRAG