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