]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG. | |
2 | import controls2c | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from windows import * | |
7 | ||
8 | from gdi import * | |
9 | ||
10 | from clip_dnd import * | |
11 | ||
12 | from events import * | |
13 | ||
14 | from controls import * | |
15 | import wx | |
16 | ||
17 | def EVT_LIST_BEGIN_DRAG(win, id, func): | |
18 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG, func) | |
19 | ||
20 | def EVT_LIST_BEGIN_RDRAG(win, id, func): | |
21 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG, func) | |
22 | ||
23 | def EVT_LIST_BEGIN_LABEL_EDIT(win, id, func): | |
24 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, func) | |
25 | ||
26 | def EVT_LIST_END_LABEL_EDIT(win, id, func): | |
27 | win.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT, func) | |
28 | ||
29 | def EVT_LIST_DELETE_ITEM(win, id, func): | |
30 | win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM, func) | |
31 | ||
32 | def EVT_LIST_DELETE_ALL_ITEMS(win, id, func): | |
33 | win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, func) | |
34 | ||
35 | def EVT_LIST_GET_INFO(win, id, func): | |
36 | win.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO, func) | |
37 | ||
38 | def EVT_LIST_SET_INFO(win, id, func): | |
39 | win.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO, func) | |
40 | ||
41 | def EVT_LIST_ITEM_SELECTED(win, id, func): | |
42 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func) | |
43 | ||
44 | def EVT_LIST_ITEM_DESELECTED(win, id, func): | |
45 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func) | |
46 | ||
47 | def EVT_LIST_KEY_DOWN(win, id, func): | |
48 | win.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN, func) | |
49 | ||
50 | def EVT_LIST_INSERT_ITEM(win, id, func): | |
51 | win.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM, func) | |
52 | ||
53 | def EVT_LIST_COL_CLICK(win, id, func): | |
54 | win.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK, func) | |
55 | ||
56 | def EVT_LIST_ITEM_RIGHT_CLICK(win, id, func): | |
57 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, func) | |
58 | ||
59 | def EVT_LIST_ITEM_MIDDLE_CLICK(win, id, func): | |
60 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, func) | |
61 | ||
62 | def EVT_LIST_ITEM_ACTIVATED(win, id, func): | |
63 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) | |
64 | ||
65 | def EVT_LIST_CACHE_HINT(win, id, func): | |
66 | win.Connect(id, -1, wxEVT_COMMAND_LIST_CACHE_HINT, func) | |
67 | ||
68 | class 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,) | |
104 | class 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 | ||
112 | class wxListItemPtr(wxObjectPtr): | |
113 | def __init__(self,this): | |
114 | self.this = this | |
115 | self.thisown = 0 | |
116 | def __del__(self,controls2c=controls2c): | |
117 | if self.thisown == 1 : | |
118 | controls2c.delete_wxListItem(self) | |
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 | |
210 | def __setattr__(self,name,value): | |
211 | if name == "m_mask" : | |
212 | controls2c.wxListItem_m_mask_set(self,value) | |
213 | return | |
214 | if name == "m_itemId" : | |
215 | controls2c.wxListItem_m_itemId_set(self,value) | |
216 | return | |
217 | if name == "m_col" : | |
218 | controls2c.wxListItem_m_col_set(self,value) | |
219 | return | |
220 | if name == "m_state" : | |
221 | controls2c.wxListItem_m_state_set(self,value) | |
222 | return | |
223 | if name == "m_stateMask" : | |
224 | controls2c.wxListItem_m_stateMask_set(self,value) | |
225 | return | |
226 | if name == "m_text" : | |
227 | controls2c.wxListItem_m_text_set(self,value) | |
228 | return | |
229 | if name == "m_image" : | |
230 | controls2c.wxListItem_m_image_set(self,value) | |
231 | return | |
232 | if name == "m_data" : | |
233 | controls2c.wxListItem_m_data_set(self,value) | |
234 | return | |
235 | if name == "m_format" : | |
236 | controls2c.wxListItem_m_format_set(self,value) | |
237 | return | |
238 | if name == "m_width" : | |
239 | controls2c.wxListItem_m_width_set(self,value) | |
240 | return | |
241 | self.__dict__[name] = value | |
242 | def __getattr__(self,name): | |
243 | if name == "m_mask" : | |
244 | return controls2c.wxListItem_m_mask_get(self) | |
245 | if name == "m_itemId" : | |
246 | return controls2c.wxListItem_m_itemId_get(self) | |
247 | if name == "m_col" : | |
248 | return controls2c.wxListItem_m_col_get(self) | |
249 | if name == "m_state" : | |
250 | return controls2c.wxListItem_m_state_get(self) | |
251 | if name == "m_stateMask" : | |
252 | return controls2c.wxListItem_m_stateMask_get(self) | |
253 | if name == "m_text" : | |
254 | return controls2c.wxListItem_m_text_get(self) | |
255 | if name == "m_image" : | |
256 | return controls2c.wxListItem_m_image_get(self) | |
257 | if name == "m_data" : | |
258 | return controls2c.wxListItem_m_data_get(self) | |
259 | if name == "m_format" : | |
260 | return controls2c.wxListItem_m_format_get(self) | |
261 | if name == "m_width" : | |
262 | return controls2c.wxListItem_m_width_get(self) | |
263 | raise AttributeError,name | |
264 | def __repr__(self): | |
265 | return "<C wxListItem instance at %s>" % (self.this,) | |
266 | class wxListItem(wxListItemPtr): | |
267 | def __init__(self,*_args,**_kwargs): | |
268 | self.this = apply(controls2c.new_wxListItem,_args,_kwargs) | |
269 | self.thisown = 1 | |
270 | ||
271 | ||
272 | ||
273 | ||
274 | class wxListEventPtr(wxNotifyEventPtr): | |
275 | def __init__(self,this): | |
276 | self.this = this | |
277 | self.thisown = 0 | |
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) | |
317 | return val | |
318 | def __setattr__(self,name,value): | |
319 | if name == "m_code" : | |
320 | controls2c.wxListEvent_m_code_set(self,value) | |
321 | return | |
322 | if name == "m_itemIndex" : | |
323 | controls2c.wxListEvent_m_itemIndex_set(self,value) | |
324 | return | |
325 | if name == "m_oldItemIndex" : | |
326 | controls2c.wxListEvent_m_oldItemIndex_set(self,value) | |
327 | return | |
328 | if name == "m_col" : | |
329 | controls2c.wxListEvent_m_col_set(self,value) | |
330 | return | |
331 | if name == "m_cancelled" : | |
332 | controls2c.wxListEvent_m_cancelled_set(self,value) | |
333 | return | |
334 | if name == "m_pointDrag" : | |
335 | controls2c.wxListEvent_m_pointDrag_set(self,value.this) | |
336 | return | |
337 | if name == "m_item" : | |
338 | controls2c.wxListEvent_m_item_set(self,value.this) | |
339 | return | |
340 | self.__dict__[name] = value | |
341 | def __getattr__(self,name): | |
342 | if name == "m_code" : | |
343 | return controls2c.wxListEvent_m_code_get(self) | |
344 | if name == "m_itemIndex" : | |
345 | return controls2c.wxListEvent_m_itemIndex_get(self) | |
346 | if name == "m_oldItemIndex" : | |
347 | return controls2c.wxListEvent_m_oldItemIndex_get(self) | |
348 | if name == "m_col" : | |
349 | return controls2c.wxListEvent_m_col_get(self) | |
350 | if name == "m_cancelled" : | |
351 | return controls2c.wxListEvent_m_cancelled_get(self) | |
352 | if name == "m_pointDrag" : | |
353 | return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self)) | |
354 | if name == "m_item" : | |
355 | return wxListItemPtr(controls2c.wxListEvent_m_item_get(self)) | |
356 | raise AttributeError,name | |
357 | def __repr__(self): | |
358 | return "<C wxListEvent instance at %s>" % (self.this,) | |
359 | class wxListEvent(wxListEventPtr): | |
360 | def __init__(self,this): | |
361 | self.this = this | |
362 | ||
363 | ||
364 | ||
365 | ||
366 | class wxListCtrlPtr(wxControlPtr): | |
367 | def __init__(self,this): | |
368 | self.this = this | |
369 | self.thisown = 0 | |
370 | def _setSelf(self, *_args, **_kwargs): | |
371 | val = apply(controls2c.wxListCtrl__setSelf,(self,) + _args, _kwargs) | |
372 | return val | |
373 | def SetForegroundColour(self, *_args, **_kwargs): | |
374 | val = apply(controls2c.wxListCtrl_SetForegroundColour,(self,) + _args, _kwargs) | |
375 | return val | |
376 | def SetBackgroundColour(self, *_args, **_kwargs): | |
377 | val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs) | |
378 | return val | |
379 | def GetColumn(self, *_args, **_kwargs): | |
380 | val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs) | |
381 | return val | |
382 | def SetColumn(self, *_args, **_kwargs): | |
383 | val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs) | |
384 | return val | |
385 | def GetColumnWidth(self, *_args, **_kwargs): | |
386 | val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs) | |
387 | return val | |
388 | def SetColumnWidth(self, *_args, **_kwargs): | |
389 | val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs) | |
390 | return val | |
391 | def GetCountPerPage(self, *_args, **_kwargs): | |
392 | val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs) | |
393 | return val | |
394 | def GetEditControl(self, *_args, **_kwargs): | |
395 | val = apply(controls2c.wxListCtrl_GetEditControl,(self,) + _args, _kwargs) | |
396 | return val | |
397 | def GetItem(self, *_args, **_kwargs): | |
398 | val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs) | |
399 | return val | |
400 | def SetItem(self, *_args, **_kwargs): | |
401 | val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs) | |
402 | return val | |
403 | def SetStringItem(self, *_args, **_kwargs): | |
404 | val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs) | |
405 | return val | |
406 | def GetItemState(self, *_args, **_kwargs): | |
407 | val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs) | |
408 | return val | |
409 | def SetItemState(self, *_args, **_kwargs): | |
410 | val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs) | |
411 | return val | |
412 | def SetItemImage(self, *_args, **_kwargs): | |
413 | val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs) | |
414 | return val | |
415 | def GetItemText(self, *_args, **_kwargs): | |
416 | val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs) | |
417 | return val | |
418 | def SetItemText(self, *_args, **_kwargs): | |
419 | val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs) | |
420 | return val | |
421 | def GetItemData(self, *_args, **_kwargs): | |
422 | val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs) | |
423 | return val | |
424 | def SetItemData(self, *_args, **_kwargs): | |
425 | val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs) | |
426 | return val | |
427 | def GetItemPosition(self, *_args, **_kwargs): | |
428 | val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs) | |
429 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
430 | return val | |
431 | def GetItemRect(self, *_args, **_kwargs): | |
432 | val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs) | |
433 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
434 | return val | |
435 | def SetItemPosition(self, *_args, **_kwargs): | |
436 | val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs) | |
437 | return val | |
438 | def GetItemCount(self, *_args, **_kwargs): | |
439 | val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs) | |
440 | return val | |
441 | def GetColumnCount(self, *_args, **_kwargs): | |
442 | val = apply(controls2c.wxListCtrl_GetColumnCount,(self,) + _args, _kwargs) | |
443 | return val | |
444 | def GetItemSpacing(self, *_args, **_kwargs): | |
445 | val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs) | |
446 | return val | |
447 | def GetSelectedItemCount(self, *_args, **_kwargs): | |
448 | val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs) | |
449 | return val | |
450 | def GetTextColour(self, *_args, **_kwargs): | |
451 | val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs) | |
452 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
453 | return val | |
454 | def SetTextColour(self, *_args, **_kwargs): | |
455 | val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs) | |
456 | return val | |
457 | def GetTopItem(self, *_args, **_kwargs): | |
458 | val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs) | |
459 | return val | |
460 | def SetSingleStyle(self, *_args, **_kwargs): | |
461 | val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs) | |
462 | return val | |
463 | def SetWindowStyleFlag(self, *_args, **_kwargs): | |
464 | val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs) | |
465 | return val | |
466 | def GetNextItem(self, *_args, **_kwargs): | |
467 | val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs) | |
468 | return val | |
469 | def GetImageList(self, *_args, **_kwargs): | |
470 | val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs) | |
471 | return val | |
472 | def SetImageList(self, *_args, **_kwargs): | |
473 | val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs) | |
474 | return val | |
475 | def AssignImageList(self, *_args, **_kwargs): | |
476 | val = apply(controls2c.wxListCtrl_AssignImageList,(self,) + _args, _kwargs) | |
477 | _args[0].thisown = 0 | |
478 | return val | |
479 | def IsVirtual(self, *_args, **_kwargs): | |
480 | val = apply(controls2c.wxListCtrl_IsVirtual,(self,) + _args, _kwargs) | |
481 | return val | |
482 | def RefreshItem(self, *_args, **_kwargs): | |
483 | val = apply(controls2c.wxListCtrl_RefreshItem,(self,) + _args, _kwargs) | |
484 | return val | |
485 | def RefreshItems(self, *_args, **_kwargs): | |
486 | val = apply(controls2c.wxListCtrl_RefreshItems,(self,) + _args, _kwargs) | |
487 | return val | |
488 | def Arrange(self, *_args, **_kwargs): | |
489 | val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs) | |
490 | return val | |
491 | def DeleteItem(self, *_args, **_kwargs): | |
492 | val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs) | |
493 | return val | |
494 | def DeleteAllItems(self, *_args, **_kwargs): | |
495 | val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs) | |
496 | return val | |
497 | def DeleteColumn(self, *_args, **_kwargs): | |
498 | val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs) | |
499 | return val | |
500 | def DeleteAllColumns(self, *_args, **_kwargs): | |
501 | val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs) | |
502 | return val | |
503 | def ClearAll(self, *_args, **_kwargs): | |
504 | val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs) | |
505 | return val | |
506 | def EditLabel(self, *_args, **_kwargs): | |
507 | val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs) | |
508 | return val | |
509 | def EndEditLabel(self, *_args, **_kwargs): | |
510 | val = apply(controls2c.wxListCtrl_EndEditLabel,(self,) + _args, _kwargs) | |
511 | return val | |
512 | def EnsureVisible(self, *_args, **_kwargs): | |
513 | val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs) | |
514 | return val | |
515 | def FindItem(self, *_args, **_kwargs): | |
516 | val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs) | |
517 | return val | |
518 | def FindItemData(self, *_args, **_kwargs): | |
519 | val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs) | |
520 | return val | |
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) | |
550 | return val | |
551 | def SortItems(self, *_args, **_kwargs): | |
552 | val = apply(controls2c.wxListCtrl_SortItems,(self,) + _args, _kwargs) | |
553 | return val | |
554 | def __repr__(self): | |
555 | return "<C wxListCtrl instance at %s>" % (self.this,) | |
556 | ||
557 | def GetItem(self, *_args, **_kwargs): | |
558 | val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs) | |
559 | val.thisown = 1 | |
560 | return val | |
561 | ||
562 | class wxListCtrl(wxListCtrlPtr): | |
563 | def __init__(self,*_args,**_kwargs): | |
564 | self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs) | |
565 | self.thisown = 1 | |
566 | #wx._StdWindowCallbacks(self) | |
567 | self._setSelf(self, wxListCtrl) | |
568 | ||
569 | ||
570 | ||
571 | ||
572 | class wxTreeItemIdPtr : | |
573 | def __init__(self,this): | |
574 | self.this = this | |
575 | self.thisown = 0 | |
576 | def __del__(self,controls2c=controls2c): | |
577 | if self.thisown == 1 : | |
578 | controls2c.delete_wxTreeItemId(self) | |
579 | def IsOk(self, *_args, **_kwargs): | |
580 | val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs) | |
581 | return val | |
582 | def __cmp__(self, *_args, **_kwargs): | |
583 | val = apply(controls2c.wxTreeItemId___cmp__,(self,) + _args, _kwargs) | |
584 | return val | |
585 | def __repr__(self): | |
586 | return "<C wxTreeItemId instance at %s>" % (self.this,) | |
587 | class wxTreeItemId(wxTreeItemIdPtr): | |
588 | def __init__(self,*_args,**_kwargs): | |
589 | self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs) | |
590 | self.thisown = 1 | |
591 | ||
592 | ||
593 | ||
594 | ||
595 | class wxTreeItemDataPtr(wxObjectPtr): | |
596 | def __init__(self,this): | |
597 | self.this = this | |
598 | self.thisown = 0 | |
599 | def GetData(self, *_args, **_kwargs): | |
600 | val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs) | |
601 | return val | |
602 | def SetData(self, *_args, **_kwargs): | |
603 | val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs) | |
604 | return val | |
605 | def GetId(self, *_args, **_kwargs): | |
606 | val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs) | |
607 | if val: val = wxTreeItemIdPtr(val) | |
608 | return val | |
609 | def SetId(self, *_args, **_kwargs): | |
610 | val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs) | |
611 | return val | |
612 | def __repr__(self): | |
613 | return "<C wxTreeItemData instance at %s>" % (self.this,) | |
614 | class wxTreeItemData(wxTreeItemDataPtr): | |
615 | def __init__(self,*_args,**_kwargs): | |
616 | self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs) | |
617 | self.thisown = 1 | |
618 | ||
619 | ||
620 | ||
621 | ||
622 | class wxTreeEventPtr(wxNotifyEventPtr): | |
623 | def __init__(self,this): | |
624 | self.this = this | |
625 | self.thisown = 0 | |
626 | def GetItem(self, *_args, **_kwargs): | |
627 | val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs) | |
628 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
629 | return val | |
630 | def GetOldItem(self, *_args, **_kwargs): | |
631 | val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs) | |
632 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
633 | return val | |
634 | def GetPoint(self, *_args, **_kwargs): | |
635 | val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs) | |
636 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
637 | return val | |
638 | def GetCode(self, *_args, **_kwargs): | |
639 | val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs) | |
640 | return val | |
641 | def GetLabel(self, *_args, **_kwargs): | |
642 | val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs) | |
643 | return val | |
644 | def __repr__(self): | |
645 | return "<C wxTreeEvent instance at %s>" % (self.this,) | |
646 | class wxTreeEvent(wxTreeEventPtr): | |
647 | def __init__(self,this): | |
648 | self.this = this | |
649 | ||
650 | ||
651 | ||
652 | ||
653 | class wxTreeCtrlPtr(wxControlPtr): | |
654 | def __init__(self,this): | |
655 | self.this = this | |
656 | self.thisown = 0 | |
657 | def _setSelf(self, *_args, **_kwargs): | |
658 | val = apply(controls2c.wxTreeCtrl__setSelf,(self,) + _args, _kwargs) | |
659 | return val | |
660 | def AssignImageList(self, *_args, **_kwargs): | |
661 | val = apply(controls2c.wxTreeCtrl_AssignImageList,(self,) + _args, _kwargs) | |
662 | _args[0].thisown = 0 | |
663 | return val | |
664 | def GetCount(self, *_args, **_kwargs): | |
665 | val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs) | |
666 | return val | |
667 | def GetIndent(self, *_args, **_kwargs): | |
668 | val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs) | |
669 | return val | |
670 | def SetIndent(self, *_args, **_kwargs): | |
671 | val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs) | |
672 | return val | |
673 | def GetImageList(self, *_args, **_kwargs): | |
674 | val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs) | |
675 | return val | |
676 | def GetStateImageList(self, *_args, **_kwargs): | |
677 | val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs) | |
678 | return val | |
679 | def SetImageList(self, *_args, **_kwargs): | |
680 | val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs) | |
681 | return val | |
682 | def SetStateImageList(self, *_args, **_kwargs): | |
683 | val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs) | |
684 | return val | |
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 | |
691 | def GetItemText(self, *_args, **_kwargs): | |
692 | val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs) | |
693 | return val | |
694 | def GetItemImage(self, *_args, **_kwargs): | |
695 | val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs) | |
696 | return val | |
697 | def GetItemSelectedImage(self, *_args, **_kwargs): | |
698 | val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs) | |
699 | return val | |
700 | def SetItemText(self, *_args, **_kwargs): | |
701 | val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs) | |
702 | return val | |
703 | def SetItemImage(self, *_args, **_kwargs): | |
704 | val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs) | |
705 | return val | |
706 | def SetItemSelectedImage(self, *_args, **_kwargs): | |
707 | val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs) | |
708 | return val | |
709 | def SetItemHasChildren(self, *_args, **_kwargs): | |
710 | val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs) | |
711 | return val | |
712 | def GetItemData(self, *_args, **_kwargs): | |
713 | val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs) | |
714 | if val: val = wxTreeItemDataPtr(val) | |
715 | return val | |
716 | def SetItemData(self, *_args, **_kwargs): | |
717 | val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs) | |
718 | return val | |
719 | def GetPyData(self, *_args, **_kwargs): | |
720 | val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs) | |
721 | return val | |
722 | def SetPyData(self, *_args, **_kwargs): | |
723 | val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs) | |
724 | return val | |
725 | def IsVisible(self, *_args, **_kwargs): | |
726 | val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs) | |
727 | return val | |
728 | def ItemHasChildren(self, *_args, **_kwargs): | |
729 | val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs) | |
730 | return val | |
731 | def IsExpanded(self, *_args, **_kwargs): | |
732 | val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs) | |
733 | return val | |
734 | def IsSelected(self, *_args, **_kwargs): | |
735 | val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs) | |
736 | return val | |
737 | def GetRootItem(self, *_args, **_kwargs): | |
738 | val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs) | |
739 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
740 | return val | |
741 | def GetSelection(self, *_args, **_kwargs): | |
742 | val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs) | |
743 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
744 | return val | |
745 | def GetItemParent(self, *_args, **_kwargs): | |
746 | val = apply(controls2c.wxTreeCtrl_GetItemParent,(self,) + _args, _kwargs) | |
747 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
748 | return val | |
749 | def GetSelections(self, *_args, **_kwargs): | |
750 | val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs) | |
751 | return val | |
752 | def GetChildrenCount(self, *_args, **_kwargs): | |
753 | val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs) | |
754 | return val | |
755 | def GetFirstChild(self, *_args, **_kwargs): | |
756 | val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs) | |
757 | return val | |
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 | |
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 | |
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 | |
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 | |
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) | |
843 | return val | |
844 | def GetEditControl(self, *_args, **_kwargs): | |
845 | val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs) | |
846 | return val | |
847 | def EndEditLabel(self, *_args, **_kwargs): | |
848 | val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self,) + _args, _kwargs) | |
849 | return val | |
850 | def SortChildren(self, *_args, **_kwargs): | |
851 | val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs) | |
852 | return val | |
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) | |
861 | return val | |
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 | |
871 | def SetItemDropHighlight(self, *_args, **_kwargs): | |
872 | val = apply(controls2c.wxTreeCtrl_SetItemDropHighlight,(self,) + _args, _kwargs) | |
873 | return val | |
874 | def GetBoundingRect(self, *_args, **_kwargs): | |
875 | val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs) | |
876 | return val | |
877 | def __repr__(self): | |
878 | return "<C wxTreeCtrl instance at %s>" % (self.this,) | |
879 | ||
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) | |
883 | val1 = wxTreeItemIdPtr(val1) | |
884 | val1.thisown = 1 | |
885 | return (val1,val2) | |
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) | |
893 | val1 = wxTreeItemIdPtr(val1) | |
894 | val1.thisown = 1 | |
895 | return (val1,val2) | |
896 | ||
897 | class wxTreeCtrl(wxTreeCtrlPtr): | |
898 | def __init__(self,*_args,**_kwargs): | |
899 | self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs) | |
900 | self.thisown = 1 | |
901 | #wx._StdWindowCallbacks(self) | |
902 | self._setSelf(self, wxTreeCtrl) | |
903 | ||
904 | ||
905 | ||
906 | ||
907 | ||
908 | ||
909 | #-------------- FUNCTION WRAPPERS ------------------ | |
910 | ||
911 | ||
912 | ||
913 | #-------------- VARIABLE WRAPPERS ------------------ | |
914 | ||
915 | wxEVT_COMMAND_LIST_BEGIN_DRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
916 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
917 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
918 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
919 | wxEVT_COMMAND_LIST_DELETE_ITEM = controls2c.wxEVT_COMMAND_LIST_DELETE_ITEM | |
920 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = controls2c.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
921 | wxEVT_COMMAND_LIST_GET_INFO = controls2c.wxEVT_COMMAND_LIST_GET_INFO | |
922 | wxEVT_COMMAND_LIST_SET_INFO = controls2c.wxEVT_COMMAND_LIST_SET_INFO | |
923 | wxEVT_COMMAND_LIST_ITEM_SELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_SELECTED | |
924 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = controls2c.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
925 | wxEVT_COMMAND_LIST_KEY_DOWN = controls2c.wxEVT_COMMAND_LIST_KEY_DOWN | |
926 | wxEVT_COMMAND_LIST_INSERT_ITEM = controls2c.wxEVT_COMMAND_LIST_INSERT_ITEM | |
927 | wxEVT_COMMAND_LIST_COL_CLICK = controls2c.wxEVT_COMMAND_LIST_COL_CLICK | |
928 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
929 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
930 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
931 | wxEVT_COMMAND_LIST_CACHE_HINT = controls2c.wxEVT_COMMAND_LIST_CACHE_HINT | |
932 | wxLC_VRULES = controls2c.wxLC_VRULES | |
933 | wxLC_HRULES = controls2c.wxLC_HRULES | |
934 | wxLC_ICON = controls2c.wxLC_ICON | |
935 | wxLC_SMALL_ICON = controls2c.wxLC_SMALL_ICON | |
936 | wxLC_LIST = controls2c.wxLC_LIST | |
937 | wxLC_REPORT = controls2c.wxLC_REPORT | |
938 | wxLC_ALIGN_TOP = controls2c.wxLC_ALIGN_TOP | |
939 | wxLC_ALIGN_LEFT = controls2c.wxLC_ALIGN_LEFT | |
940 | wxLC_AUTOARRANGE = controls2c.wxLC_AUTOARRANGE | |
941 | wxLC_VIRTUAL = controls2c.wxLC_VIRTUAL | |
942 | wxLC_EDIT_LABELS = controls2c.wxLC_EDIT_LABELS | |
943 | wxLC_NO_HEADER = controls2c.wxLC_NO_HEADER | |
944 | wxLC_NO_SORT_HEADER = controls2c.wxLC_NO_SORT_HEADER | |
945 | wxLC_SINGLE_SEL = controls2c.wxLC_SINGLE_SEL | |
946 | wxLC_SORT_ASCENDING = controls2c.wxLC_SORT_ASCENDING | |
947 | wxLC_SORT_DESCENDING = controls2c.wxLC_SORT_DESCENDING | |
948 | wxLC_MASK_TYPE = controls2c.wxLC_MASK_TYPE | |
949 | wxLC_MASK_ALIGN = controls2c.wxLC_MASK_ALIGN | |
950 | wxLC_MASK_SORT = controls2c.wxLC_MASK_SORT | |
951 | wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE | |
952 | wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT | |
953 | wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE | |
954 | wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA | |
955 | wxLIST_SET_ITEM = controls2c.wxLIST_SET_ITEM | |
956 | wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH | |
957 | wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT | |
958 | wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE | |
959 | wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED | |
960 | wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED | |
961 | wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED | |
962 | wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT | |
963 | wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE | |
964 | wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW | |
965 | wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE | |
966 | wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON | |
967 | wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL | |
968 | wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT | |
969 | wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON | |
970 | wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT | |
971 | wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT | |
972 | wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM | |
973 | wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE | |
974 | wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL | |
975 | wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW | |
976 | wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT | |
977 | wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT | |
978 | wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT | |
979 | wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT | |
980 | wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP | |
981 | wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID | |
982 | wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE | |
983 | wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER | |
984 | wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS | |
985 | wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON | |
986 | wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL | |
987 | wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP | |
988 | wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN | |
989 | wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT | |
990 | wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT | |
991 | wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT | |
992 | wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT | |
993 | wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE | |
994 | wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER | |
995 | wxTreeItemIcon_Normal = controls2c.wxTreeItemIcon_Normal | |
996 | wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected | |
997 | wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded | |
998 | wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded | |
999 | wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max | |
1000 | wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE | |
1001 | wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW | |
1002 | wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE | |
1003 | wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON | |
1004 | wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON | |
1005 | wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT | |
1006 | wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL | |
1007 | wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT | |
1008 | wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON | |
1009 | wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT | |
1010 | wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT | |
1011 | wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART | |
1012 | wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART | |
1013 | wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM | |
1014 | wxEVT_COMMAND_TREE_BEGIN_DRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_DRAG | |
1015 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = controls2c.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
1016 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
1017 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = controls2c.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
1018 | wxEVT_COMMAND_TREE_DELETE_ITEM = controls2c.wxEVT_COMMAND_TREE_DELETE_ITEM | |
1019 | wxEVT_COMMAND_TREE_GET_INFO = controls2c.wxEVT_COMMAND_TREE_GET_INFO | |
1020 | wxEVT_COMMAND_TREE_SET_INFO = controls2c.wxEVT_COMMAND_TREE_SET_INFO | |
1021 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
1022 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = controls2c.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
1023 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
1024 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = controls2c.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
1025 | wxEVT_COMMAND_TREE_SEL_CHANGED = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGED | |
1026 | wxEVT_COMMAND_TREE_SEL_CHANGING = controls2c.wxEVT_COMMAND_TREE_SEL_CHANGING | |
1027 | wxEVT_COMMAND_TREE_KEY_DOWN = controls2c.wxEVT_COMMAND_TREE_KEY_DOWN | |
1028 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = controls2c.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
1029 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
1030 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = controls2c.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
1031 | wxEVT_COMMAND_TREE_END_DRAG = controls2c.wxEVT_COMMAND_TREE_END_DRAG |