]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/controls2.py
added test for HitTest(m_dragPoint) bug to the sample
[wxWidgets.git] / wxPython / src / msw / 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
c7e7022c
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
9416aa89 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
c7e7022c
RD
370 def _setSelf(self, *_args, **_kwargs):
371 val = apply(controls2c.wxListCtrl__setSelf,(self,) + _args, _kwargs)
1b62f00d 372 return val
c7e7022c
RD
373 def SetForegroundColour(self, *_args, **_kwargs):
374 val = apply(controls2c.wxListCtrl_SetForegroundColour,(self,) + _args, _kwargs)
8ab979d7 375 return val
c7e7022c
RD
376 def SetBackgroundColour(self, *_args, **_kwargs):
377 val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs)
8ab979d7 378 return val
c7e7022c
RD
379 def GetColumn(self, *_args, **_kwargs):
380 val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs)
8ab979d7 381 return val
c7e7022c
RD
382 def SetColumn(self, *_args, **_kwargs):
383 val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs)
8ab979d7 384 return val
c7e7022c
RD
385 def GetColumnWidth(self, *_args, **_kwargs):
386 val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 387 return val
c7e7022c
RD
388 def SetColumnWidth(self, *_args, **_kwargs):
389 val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs)
8ab979d7 390 return val
c7e7022c
RD
391 def GetCountPerPage(self, *_args, **_kwargs):
392 val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs)
8ab979d7 393 return val
1d99702e
RD
394 def GetEditControl(self, *_args, **_kwargs):
395 val = apply(controls2c.wxListCtrl_GetEditControl,(self,) + _args, _kwargs)
be4d9c1f 396 return val
c7e7022c
RD
397 def GetItem(self, *_args, **_kwargs):
398 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
8ab979d7 399 return val
c7e7022c
RD
400 def SetItem(self, *_args, **_kwargs):
401 val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs)
8ab979d7 402 return val
c7e7022c
RD
403 def SetStringItem(self, *_args, **_kwargs):
404 val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs)
8ab979d7 405 return val
c7e7022c
RD
406 def GetItemState(self, *_args, **_kwargs):
407 val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs)
8ab979d7 408 return val
c7e7022c
RD
409 def SetItemState(self, *_args, **_kwargs):
410 val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs)
8ab979d7 411 return val
c7e7022c
RD
412 def SetItemImage(self, *_args, **_kwargs):
413 val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 414 return val
c7e7022c
RD
415 def GetItemText(self, *_args, **_kwargs):
416 val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 417 return val
c7e7022c
RD
418 def SetItemText(self, *_args, **_kwargs):
419 val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 420 return val
1d99702e
RD
421 def GetItemData(self, *_args, **_kwargs):
422 val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
8ab979d7 423 return val
c7e7022c
RD
424 def SetItemData(self, *_args, **_kwargs):
425 val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs)
8ab979d7 426 return val
1d99702e
RD
427 def GetItemPosition(self, *_args, **_kwargs):
428 val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
429 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 430 return val
1d99702e
RD
431 def GetItemRect(self, *_args, **_kwargs):
432 val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs)
433 if val: val = wxRectPtr(val) ; val.thisown = 1
8ab979d7 434 return val
c7e7022c
RD
435 def SetItemPosition(self, *_args, **_kwargs):
436 val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs)
8ab979d7 437 return val
1d99702e
RD
438 def GetItemCount(self, *_args, **_kwargs):
439 val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs)
8ab979d7 440 return val
c7e7022c
RD
441 def GetColumnCount(self, *_args, **_kwargs):
442 val = apply(controls2c.wxListCtrl_GetColumnCount,(self,) + _args, _kwargs)
443 return val
1d99702e
RD
444 def GetItemSpacing(self, *_args, **_kwargs):
445 val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs)
8ab979d7 446 return val
1d99702e
RD
447 def GetSelectedItemCount(self, *_args, **_kwargs):
448 val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs)
8ab979d7 449 return val
1d99702e
RD
450 def GetTextColour(self, *_args, **_kwargs):
451 val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs)
452 if val: val = wxColourPtr(val) ; val.thisown = 1
8ab979d7 453 return val
1d99702e
RD
454 def SetTextColour(self, *_args, **_kwargs):
455 val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs)
be4d9c1f 456 return val
1d99702e
RD
457 def GetTopItem(self, *_args, **_kwargs):
458 val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs)
8ab979d7 459 return val
c7e7022c
RD
460 def SetSingleStyle(self, *_args, **_kwargs):
461 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs)
8ab979d7 462 return val
c7e7022c
RD
463 def SetWindowStyleFlag(self, *_args, **_kwargs):
464 val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs)
8ab979d7 465 return val
c7e7022c
RD
466 def GetNextItem(self, *_args, **_kwargs):
467 val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs)
8ab979d7 468 return val
c7e7022c
RD
469 def GetImageList(self, *_args, **_kwargs):
470 val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
8ab979d7 471 return val
c7e7022c
RD
472 def SetImageList(self, *_args, **_kwargs):
473 val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 474 return val
c7e7022c
RD
475 def AssignImageList(self, *_args, **_kwargs):
476 val = apply(controls2c.wxListCtrl_AssignImageList,(self,) + _args, _kwargs)
477 _args[0].thisown = 0
8ab979d7 478 return val
c7e7022c
RD
479 def IsVirtual(self, *_args, **_kwargs):
480 val = apply(controls2c.wxListCtrl_IsVirtual,(self,) + _args, _kwargs)
8ab979d7 481 return val
c7e7022c
RD
482 def RefreshItem(self, *_args, **_kwargs):
483 val = apply(controls2c.wxListCtrl_RefreshItem,(self,) + _args, _kwargs)
8ab979d7 484 return val
c7e7022c
RD
485 def RefreshItems(self, *_args, **_kwargs):
486 val = apply(controls2c.wxListCtrl_RefreshItems,(self,) + _args, _kwargs)
8ab979d7 487 return val
c7e7022c
RD
488 def Arrange(self, *_args, **_kwargs):
489 val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs)
8ab979d7 490 return val
c7e7022c
RD
491 def DeleteItem(self, *_args, **_kwargs):
492 val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
8ab979d7 493 return val
c7e7022c
RD
494 def DeleteAllItems(self, *_args, **_kwargs):
495 val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs)
8ab979d7 496 return val
c7e7022c
RD
497 def DeleteColumn(self, *_args, **_kwargs):
498 val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs)
8ab979d7 499 return val
c7e7022c
RD
500 def DeleteAllColumns(self, *_args, **_kwargs):
501 val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs)
8ab979d7 502 return val
c7e7022c
RD
503 def ClearAll(self, *_args, **_kwargs):
504 val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs)
8ab979d7 505 return val
c7e7022c
RD
506 def EditLabel(self, *_args, **_kwargs):
507 val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs)
8ab979d7 508 return val
c7e7022c
RD
509 def EndEditLabel(self, *_args, **_kwargs):
510 val = apply(controls2c.wxListCtrl_EndEditLabel,(self,) + _args, _kwargs)
8ab979d7 511 return val
c7e7022c
RD
512 def EnsureVisible(self, *_args, **_kwargs):
513 val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs)
8ab979d7 514 return val
c7e7022c
RD
515 def FindItem(self, *_args, **_kwargs):
516 val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs)
8ab979d7 517 return val
c7e7022c
RD
518 def FindItemData(self, *_args, **_kwargs):
519 val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs)
8ab979d7 520 return val
c7e7022c
RD
521 def FindItemAtPos(self, *_args, **_kwargs):
522 val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs)
523 return val
524 def HitTest(self, *_args, **_kwargs):
525 val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs)
526 return val
527 def InsertItem(self, *_args, **_kwargs):
528 val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs)
529 return val
530 def InsertStringItem(self, *_args, **_kwargs):
531 val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs)
532 return val
533 def InsertImageItem(self, *_args, **_kwargs):
534 val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs)
535 return val
536 def InsertImageStringItem(self, *_args, **_kwargs):
537 val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs)
538 return val
539 def InsertColumnInfo(self, *_args, **_kwargs):
540 val = apply(controls2c.wxListCtrl_InsertColumnInfo,(self,) + _args, _kwargs)
541 return val
542 def InsertColumn(self, *_args, **_kwargs):
543 val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs)
544 return val
545 def SetItemCount(self, *_args, **_kwargs):
546 val = apply(controls2c.wxListCtrl_SetItemCount,(self,) + _args, _kwargs)
547 return val
548 def ScrollList(self, *_args, **_kwargs):
549 val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs)
8ab979d7 550 return val
dcd38683
RD
551 def SortItems(self, *_args, **_kwargs):
552 val = apply(controls2c.wxListCtrl_SortItems,(self,) + _args, _kwargs)
553 return val
8ab979d7 554 def __repr__(self):
1d99702e 555 return "<C wxListCtrl instance at %s>" % (self.this,)
5597b61e
RD
556
557 def GetItem(self, *_args, **_kwargs):
558 val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
559 val.thisown = 1
560 return val
561
8ab979d7 562class wxListCtrl(wxListCtrlPtr):
1d99702e
RD
563 def __init__(self,*_args,**_kwargs):
564 self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
8ab979d7 565 self.thisown = 1
f6bcfd97 566 #wx._StdWindowCallbacks(self)
c7e7022c 567 self._setSelf(self, wxListCtrl)
8ab979d7
RD
568
569
570
571
d5c9047a 572class wxTreeItemIdPtr :
8ab979d7
RD
573 def __init__(self,this):
574 self.this = this
575 self.thisown = 0
1d99702e 576 def __del__(self,controls2c=controls2c):
8ab979d7 577 if self.thisown == 1 :
1d99702e
RD
578 controls2c.delete_wxTreeItemId(self)
579 def IsOk(self, *_args, **_kwargs):
580 val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs)
d5c9047a 581 return val
f6bcfd97
BP
582 def __cmp__(self, *_args, **_kwargs):
583 val = apply(controls2c.wxTreeItemId___cmp__,(self,) + _args, _kwargs)
584 return val
d5c9047a 585 def __repr__(self):
1d99702e 586 return "<C wxTreeItemId instance at %s>" % (self.this,)
d5c9047a 587class wxTreeItemId(wxTreeItemIdPtr):
1d99702e
RD
588 def __init__(self,*_args,**_kwargs):
589 self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs)
d5c9047a
RD
590 self.thisown = 1
591
592
593
594
9416aa89 595class wxTreeItemDataPtr(wxObjectPtr):
d5c9047a
RD
596 def __init__(self,this):
597 self.this = this
598 self.thisown = 0
1d99702e
RD
599 def GetData(self, *_args, **_kwargs):
600 val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs)
cf694132 601 return val
1d99702e
RD
602 def SetData(self, *_args, **_kwargs):
603 val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs)
cf694132 604 return val
1d99702e
RD
605 def GetId(self, *_args, **_kwargs):
606 val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs)
607 if val: val = wxTreeItemIdPtr(val)
d5c9047a 608 return val
1d99702e
RD
609 def SetId(self, *_args, **_kwargs):
610 val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs)
630d84f2 611 return val
8ab979d7 612 def __repr__(self):
1d99702e 613 return "<C wxTreeItemData instance at %s>" % (self.this,)
d5c9047a 614class wxTreeItemData(wxTreeItemDataPtr):
1d99702e
RD
615 def __init__(self,*_args,**_kwargs):
616 self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs)
8ab979d7
RD
617 self.thisown = 1
618
619
620
621
8bf5d46e 622class wxTreeEventPtr(wxNotifyEventPtr):
8ab979d7
RD
623 def __init__(self,this):
624 self.this = this
625 self.thisown = 0
1d99702e
RD
626 def GetItem(self, *_args, **_kwargs):
627 val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs)
628 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 629 return val
1d99702e
RD
630 def GetOldItem(self, *_args, **_kwargs):
631 val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs)
632 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
d5c9047a 633 return val
1d99702e
RD
634 def GetPoint(self, *_args, **_kwargs):
635 val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs)
636 if val: val = wxPointPtr(val) ; val.thisown = 1
d5c9047a 637 return val
1d99702e
RD
638 def GetCode(self, *_args, **_kwargs):
639 val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs)
d5c9047a 640 return val
1d99702e
RD
641 def GetLabel(self, *_args, **_kwargs):
642 val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs)
d5c9047a 643 return val
8ab979d7 644 def __repr__(self):
1d99702e 645 return "<C wxTreeEvent instance at %s>" % (self.this,)
8ab979d7
RD
646class wxTreeEvent(wxTreeEventPtr):
647 def __init__(self,this):
648 self.this = this
649
650
651
652
653class wxTreeCtrlPtr(wxControlPtr):
654 def __init__(self,this):
655 self.this = this
656 self.thisown = 0
f6bcfd97
BP
657 def _setSelf(self, *_args, **_kwargs):
658 val = apply(controls2c.wxTreeCtrl__setSelf,(self,) + _args, _kwargs)
659 return val
1b62f00d
RD
660 def AssignImageList(self, *_args, **_kwargs):
661 val = apply(controls2c.wxTreeCtrl_AssignImageList,(self,) + _args, _kwargs)
9416aa89 662 _args[0].thisown = 0
1b62f00d 663 return val
1d99702e
RD
664 def GetCount(self, *_args, **_kwargs):
665 val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
8ab979d7 666 return val
1d99702e
RD
667 def GetIndent(self, *_args, **_kwargs):
668 val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs)
8ab979d7 669 return val
1d99702e
RD
670 def SetIndent(self, *_args, **_kwargs):
671 val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs)
8ab979d7 672 return val
1d99702e
RD
673 def GetImageList(self, *_args, **_kwargs):
674 val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
8ab979d7 675 return val
1d99702e
RD
676 def GetStateImageList(self, *_args, **_kwargs):
677 val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
8ab979d7 678 return val
1d99702e
RD
679 def SetImageList(self, *_args, **_kwargs):
680 val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
8ab979d7 681 return val
1d99702e
RD
682 def SetStateImageList(self, *_args, **_kwargs):
683 val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs)
8ab979d7 684 return val
b1462dfa
RD
685 def GetSpacing(self, *_args, **_kwargs):
686 val = apply(controls2c.wxTreeCtrl_GetSpacing,(self,) + _args, _kwargs)
687 return val
688 def SetSpacing(self, *_args, **_kwargs):
689 val = apply(controls2c.wxTreeCtrl_SetSpacing,(self,) + _args, _kwargs)
690 return val
1d99702e
RD
691 def GetItemText(self, *_args, **_kwargs):
692 val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs)
8ab979d7 693 return val
1d99702e
RD
694 def GetItemImage(self, *_args, **_kwargs):
695 val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs)
8ab979d7 696 return val
1d99702e
RD
697 def GetItemSelectedImage(self, *_args, **_kwargs):
698 val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 699 return val
1d99702e
RD
700 def SetItemText(self, *_args, **_kwargs):
701 val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs)
8ab979d7 702 return val
1d99702e
RD
703 def SetItemImage(self, *_args, **_kwargs):
704 val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs)
8ab979d7 705 return val
1d99702e
RD
706 def SetItemSelectedImage(self, *_args, **_kwargs):
707 val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs)
8ab979d7 708 return val
1d99702e
RD
709 def SetItemHasChildren(self, *_args, **_kwargs):
710 val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs)
cf694132 711 return val
1d99702e
RD
712 def GetItemData(self, *_args, **_kwargs):
713 val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs)
714 if val: val = wxTreeItemDataPtr(val)
cf694132 715 return val
1d99702e
RD
716 def SetItemData(self, *_args, **_kwargs):
717 val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs)
d5c9047a 718 return val
1d99702e
RD
719 def GetPyData(self, *_args, **_kwargs):
720 val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
cf694132 721 return val
1d99702e
RD
722 def SetPyData(self, *_args, **_kwargs):
723 val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs)
08127323 724 return val
1d99702e
RD
725 def IsVisible(self, *_args, **_kwargs):
726 val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs)
8ab979d7 727 return val
1d99702e
RD
728 def ItemHasChildren(self, *_args, **_kwargs):
729 val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs)
8ab979d7 730 return val
1d99702e
RD
731 def IsExpanded(self, *_args, **_kwargs):
732 val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs)
8ab979d7 733 return val
1d99702e
RD
734 def IsSelected(self, *_args, **_kwargs):
735 val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs)
8ab979d7 736 return val
1d99702e
RD
737 def GetRootItem(self, *_args, **_kwargs):
738 val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs)
739 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 740 return val
1d99702e
RD
741 def GetSelection(self, *_args, **_kwargs):
742 val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs)
743 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 744 return val
eb715945
RD
745 def GetItemParent(self, *_args, **_kwargs):
746 val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs)
1d99702e 747 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
8ab979d7 748 return val
d426c97e
RD
749 def GetSelections(self, *_args, **_kwargs):
750 val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs)
751 return val
1d99702e
RD
752 def GetChildrenCount(self, *_args, **_kwargs):
753 val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs)
bb0054cd 754 return val
1d99702e
RD
755 def GetFirstChild(self, *_args, **_kwargs):
756 val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
8ab979d7 757 return val
1d99702e
RD
758 def GetNextChild(self, *_args, **_kwargs):
759 val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
760 return val
761 def GetNextSibling(self, *_args, **_kwargs):
762 val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs)
763 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
764 return val
765 def GetPrevSibling(self, *_args, **_kwargs):
766 val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs)
767 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
768 return val
769 def GetFirstVisibleItem(self, *_args, **_kwargs):
770 val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs)
771 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
772 return val
773 def GetNextVisible(self, *_args, **_kwargs):
774 val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs)
775 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
776 return val
777 def GetPrevVisible(self, *_args, **_kwargs):
778 val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs)
779 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
780 return val
d426c97e
RD
781 def GetLastChild(self, *_args, **_kwargs):
782 val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs)
783 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
784 return val
1d99702e
RD
785 def AddRoot(self, *_args, **_kwargs):
786 val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs)
787 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
788 return val
789 def PrependItem(self, *_args, **_kwargs):
790 val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs)
791 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
792 return val
793 def InsertItem(self, *_args, **_kwargs):
794 val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs)
795 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
796 return val
f6bcfd97
BP
797 def InsertItemBefore(self, *_args, **_kwargs):
798 val = apply(controls2c.wxTreeCtrl_InsertItemBefore,(self,) + _args, _kwargs)
799 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
800 return val
1d99702e
RD
801 def AppendItem(self, *_args, **_kwargs):
802 val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs)
803 if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
804 return val
805 def Delete(self, *_args, **_kwargs):
806 val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs)
807 return val
808 def DeleteChildren(self, *_args, **_kwargs):
809 val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
810 return val
811 def DeleteAllItems(self, *_args, **_kwargs):
812 val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs)
813 return val
814 def Expand(self, *_args, **_kwargs):
815 val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs)
816 return val
817 def Collapse(self, *_args, **_kwargs):
818 val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs)
819 return val
820 def CollapseAndReset(self, *_args, **_kwargs):
821 val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs)
822 return val
823 def Toggle(self, *_args, **_kwargs):
824 val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs)
825 return val
826 def Unselect(self, *_args, **_kwargs):
827 val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs)
828 return val
829 def UnselectAll(self, *_args, **_kwargs):
830 val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs)
831 return val
832 def SelectItem(self, *_args, **_kwargs):
833 val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs)
834 return val
835 def EnsureVisible(self, *_args, **_kwargs):
836 val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs)
837 return val
838 def ScrollTo(self, *_args, **_kwargs):
839 val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
840 return val
841 def EditLabel(self, *_args, **_kwargs):
842 val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
1d99702e
RD
843 return val
844 def GetEditControl(self, *_args, **_kwargs):
845 val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs)
1d99702e
RD
846 return val
847 def EndEditLabel(self, *_args, **_kwargs):
848 val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self,) + _args, _kwargs)
849 return val
d426c97e
RD
850 def SortChildren(self, *_args, **_kwargs):
851 val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs)
852 return val
1d99702e
RD
853 def SetItemBold(self, *_args, **_kwargs):
854 val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs)
855 return val
856 def IsBold(self, *_args, **_kwargs):
857 val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs)
858 return val
859 def HitTest(self, *_args, **_kwargs):
860 val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
b8b8dda7 861 return val
b7e72427
RD
862 def SetItemTextColour(self, *_args, **_kwargs):
863 val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
864 return val
865 def SetItemBackgroundColour(self, *_args, **_kwargs):
866 val = apply(controls2c.wxTreeCtrl_SetItemBackgroundColour,(self,) + _args, _kwargs)
867 return val
868 def SetItemFont(self, *_args, **_kwargs):
869 val = apply(controls2c.wxTreeCtrl_SetItemFont,(self,) + _args, _kwargs)
870 return val
b1462dfa
RD
871 def SetItemDropHighlight(self, *_args, **_kwargs):
872 val = apply(controls2c.wxTreeCtrl_SetItemDropHighlight,(self,) + _args, _kwargs)
873 return val
d426c97e
RD
874 def GetBoundingRect(self, *_args, **_kwargs):
875 val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs)
876 return val
8ab979d7 877 def __repr__(self):
1d99702e 878 return "<C wxTreeCtrl instance at %s>" % (self.this,)
c127177f 879
f6bcfd97
BP
880 # Redefine some methods that SWIG gets a bit confused on...
881 def GetFirstChild(self, *_args, **_kwargs):
882 val1,val2 = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs)
c127177f
RD
883 val1 = wxTreeItemIdPtr(val1)
884 val1.thisown = 1
885 return (val1,val2)
f6bcfd97
BP
886 def GetNextChild(self, *_args, **_kwargs):
887 val1,val2 = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs)
888 val1 = wxTreeItemIdPtr(val1)
889 val1.thisown = 1
890 return (val1,val2)
891 def HitTest(self, *_args, **_kwargs):
892 val1, val2 = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
c127177f
RD
893 val1 = wxTreeItemIdPtr(val1)
894 val1.thisown = 1
895 return (val1,val2)
896
8ab979d7 897class wxTreeCtrl(wxTreeCtrlPtr):
1d99702e
RD
898 def __init__(self,*_args,**_kwargs):
899 self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
8ab979d7 900 self.thisown = 1
f6bcfd97
BP
901 #wx._StdWindowCallbacks(self)
902 self._setSelf(self, wxTreeCtrl)
8ab979d7
RD
903
904
905
906
907
908
909#-------------- FUNCTION WRAPPERS ------------------
910
911
912
913#-------------- VARIABLE WRAPPERS ------------------
914
c7e7022c
RD
915wxEVT_COMMAND_LIST_BEGIN_DRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_DRAG
916wxEVT_COMMAND_LIST_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_RDRAG
917wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
918wxEVT_COMMAND_LIST_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_END_LABEL_EDIT
919wxEVT_COMMAND_LIST_DELETE_ITEM = controls2c.wxEVT_COMMAND_LIST_DELETE_ITEM
920wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = controls2c.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
921wxEVT_COMMAND_LIST_GET_INFO = controls2c.wxEVT_COMMAND_LIST_GET_INFO
922wxEVT_COMMAND_LIST_SET_INFO = controls2c.wxEVT_COMMAND_LIST_SET_INFO
923wxEVT_COMMAND_LIST_ITEM_SELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_SELECTED
924wxEVT_COMMAND_LIST_ITEM_DESELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_DESELECTED
925wxEVT_COMMAND_LIST_KEY_DOWN = controls2c.wxEVT_COMMAND_LIST_KEY_DOWN
926wxEVT_COMMAND_LIST_INSERT_ITEM = controls2c.wxEVT_COMMAND_LIST_INSERT_ITEM
927wxEVT_COMMAND_LIST_COL_CLICK = controls2c.wxEVT_COMMAND_LIST_COL_CLICK
928wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
929wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
930wxEVT_COMMAND_LIST_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
931wxEVT_COMMAND_LIST_CACHE_HINT = controls2c.wxEVT_COMMAND_LIST_CACHE_HINT
932wxLC_VRULES = controls2c.wxLC_VRULES
933wxLC_HRULES = controls2c.wxLC_HRULES
934wxLC_ICON = controls2c.wxLC_ICON
935wxLC_SMALL_ICON = controls2c.wxLC_SMALL_ICON
936wxLC_LIST = controls2c.wxLC_LIST
937wxLC_REPORT = controls2c.wxLC_REPORT
938wxLC_ALIGN_TOP = controls2c.wxLC_ALIGN_TOP
939wxLC_ALIGN_LEFT = controls2c.wxLC_ALIGN_LEFT
940wxLC_AUTOARRANGE = controls2c.wxLC_AUTOARRANGE
941wxLC_VIRTUAL = controls2c.wxLC_VIRTUAL
942wxLC_EDIT_LABELS = controls2c.wxLC_EDIT_LABELS
943wxLC_NO_HEADER = controls2c.wxLC_NO_HEADER
944wxLC_NO_SORT_HEADER = controls2c.wxLC_NO_SORT_HEADER
945wxLC_SINGLE_SEL = controls2c.wxLC_SINGLE_SEL
946wxLC_SORT_ASCENDING = controls2c.wxLC_SORT_ASCENDING
947wxLC_SORT_DESCENDING = controls2c.wxLC_SORT_DESCENDING
948wxLC_MASK_TYPE = controls2c.wxLC_MASK_TYPE
949wxLC_MASK_ALIGN = controls2c.wxLC_MASK_ALIGN
950wxLC_MASK_SORT = controls2c.wxLC_MASK_SORT
951wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE
af309447
RD
952wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT
953wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE
954wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA
c7e7022c 955wxLIST_SET_ITEM = controls2c.wxLIST_SET_ITEM
af309447
RD
956wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH
957wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT
958wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE
959wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED
960wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED
961wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED
962wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT
963wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE
964wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW
965wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE
966wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON
967wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL
968wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT
969wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON
970wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT
971wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT
972wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM
973wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE
974wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL
975wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW
976wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT
977wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT
978wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT
979wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT
980wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP
981wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID
af309447
RD
982wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE
983wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER
984wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS
985wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON
986wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL
987wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP
988wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN
989wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT
990wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT
f6bcfd97
BP
991wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT
992wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT
993wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE
994wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER
694759cf
RD
995wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal
996wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected
997wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded
998wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded
999wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max
164b735b
RD
1000wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
1001wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
1002wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
1003wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
1004wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
1005wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
1006wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
1007wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
1008wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
1009wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
1010wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
1011wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART
1012wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART
1013wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM
1b62f00d
RD
1014wxEVT_COMMAND_TREE_BEGIN_DRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_DRAG
1015wxEVT_COMMAND_TREE_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_RDRAG
1016wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
1017wxEVT_COMMAND_TREE_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_END_LABEL_EDIT
1018wxEVT_COMMAND_TREE_DELETE_ITEM = controls2c.wxEVT_COMMAND_TREE_DELETE_ITEM
1019wxEVT_COMMAND_TREE_GET_INFO = controls2c.wxEVT_COMMAND_TREE_GET_INFO
1020wxEVT_COMMAND_TREE_SET_INFO = controls2c.wxEVT_COMMAND_TREE_SET_INFO
1021wxEVT_COMMAND_TREE_ITEM_EXPANDED = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDED
1022wxEVT_COMMAND_TREE_ITEM_EXPANDING = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDING
1023wxEVT_COMMAND_TREE_ITEM_COLLAPSED = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
1024wxEVT_COMMAND_TREE_ITEM_COLLAPSING = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
1025wxEVT_COMMAND_TREE_SEL_CHANGED = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGED
1026wxEVT_COMMAND_TREE_SEL_CHANGING = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGING
1027wxEVT_COMMAND_TREE_KEY_DOWN = controls2c.wxEVT_COMMAND_TREE_KEY_DOWN
1028wxEVT_COMMAND_TREE_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
1029wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
1030wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
d1679124 1031wxEVT_COMMAND_TREE_END_DRAG = controls2c.wxEVT_COMMAND_TREE_END_DRAG