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