]>
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 | ||
10 | from events import * | |
11 | ||
12 | from controls import * | |
b8b8dda7 | 13 | import wx |
8ab979d7 RD |
14 | class wxListItemPtr : |
15 | def __init__(self,this): | |
16 | self.this = this | |
17 | self.thisown = 0 | |
1d99702e | 18 | def __del__(self,controls2c=controls2c): |
8ab979d7 | 19 | if self.thisown == 1 : |
1d99702e | 20 | controls2c.delete_wxListItem(self) |
8ab979d7 RD |
21 | def __setattr__(self,name,value): |
22 | if name == "m_mask" : | |
1d99702e | 23 | controls2c.wxListItem_m_mask_set(self,value) |
8ab979d7 RD |
24 | return |
25 | if name == "m_itemId" : | |
1d99702e | 26 | controls2c.wxListItem_m_itemId_set(self,value) |
8ab979d7 RD |
27 | return |
28 | if name == "m_col" : | |
1d99702e | 29 | controls2c.wxListItem_m_col_set(self,value) |
8ab979d7 RD |
30 | return |
31 | if name == "m_state" : | |
1d99702e | 32 | controls2c.wxListItem_m_state_set(self,value) |
8ab979d7 RD |
33 | return |
34 | if name == "m_stateMask" : | |
1d99702e | 35 | controls2c.wxListItem_m_stateMask_set(self,value) |
8ab979d7 RD |
36 | return |
37 | if name == "m_text" : | |
1d99702e | 38 | controls2c.wxListItem_m_text_set(self,value) |
8ab979d7 RD |
39 | return |
40 | if name == "m_image" : | |
1d99702e | 41 | controls2c.wxListItem_m_image_set(self,value) |
8ab979d7 RD |
42 | return |
43 | if name == "m_data" : | |
1d99702e | 44 | controls2c.wxListItem_m_data_set(self,value) |
8ab979d7 RD |
45 | return |
46 | if name == "m_format" : | |
1d99702e | 47 | controls2c.wxListItem_m_format_set(self,value) |
8ab979d7 RD |
48 | return |
49 | if name == "m_width" : | |
1d99702e | 50 | controls2c.wxListItem_m_width_set(self,value) |
8ab979d7 RD |
51 | return |
52 | self.__dict__[name] = value | |
53 | def __getattr__(self,name): | |
54 | if name == "m_mask" : | |
1d99702e | 55 | return controls2c.wxListItem_m_mask_get(self) |
8ab979d7 | 56 | if name == "m_itemId" : |
1d99702e | 57 | return controls2c.wxListItem_m_itemId_get(self) |
8ab979d7 | 58 | if name == "m_col" : |
1d99702e | 59 | return controls2c.wxListItem_m_col_get(self) |
8ab979d7 | 60 | if name == "m_state" : |
1d99702e | 61 | return controls2c.wxListItem_m_state_get(self) |
8ab979d7 | 62 | if name == "m_stateMask" : |
1d99702e | 63 | return controls2c.wxListItem_m_stateMask_get(self) |
8ab979d7 | 64 | if name == "m_text" : |
1d99702e | 65 | return controls2c.wxListItem_m_text_get(self) |
8ab979d7 | 66 | if name == "m_image" : |
1d99702e | 67 | return controls2c.wxListItem_m_image_get(self) |
8ab979d7 | 68 | if name == "m_data" : |
1d99702e | 69 | return controls2c.wxListItem_m_data_get(self) |
8ab979d7 | 70 | if name == "m_format" : |
1d99702e | 71 | return controls2c.wxListItem_m_format_get(self) |
8ab979d7 | 72 | if name == "m_width" : |
1d99702e | 73 | return controls2c.wxListItem_m_width_get(self) |
8ab979d7 RD |
74 | raise AttributeError,name |
75 | def __repr__(self): | |
1d99702e | 76 | return "<C wxListItem instance at %s>" % (self.this,) |
8ab979d7 | 77 | class wxListItem(wxListItemPtr): |
1d99702e RD |
78 | def __init__(self,*_args,**_kwargs): |
79 | self.this = apply(controls2c.new_wxListItem,_args,_kwargs) | |
8ab979d7 RD |
80 | self.thisown = 1 |
81 | ||
82 | ||
83 | ||
84 | ||
85 | class wxListEventPtr(wxCommandEventPtr): | |
86 | def __init__(self,this): | |
87 | self.this = this | |
88 | self.thisown = 0 | |
89 | def __setattr__(self,name,value): | |
90 | if name == "m_code" : | |
1d99702e | 91 | controls2c.wxListEvent_m_code_set(self,value) |
8ab979d7 RD |
92 | return |
93 | if name == "m_itemIndex" : | |
1d99702e | 94 | controls2c.wxListEvent_m_itemIndex_set(self,value) |
8ab979d7 RD |
95 | return |
96 | if name == "m_oldItemIndex" : | |
1d99702e | 97 | controls2c.wxListEvent_m_oldItemIndex_set(self,value) |
8ab979d7 RD |
98 | return |
99 | if name == "m_col" : | |
1d99702e | 100 | controls2c.wxListEvent_m_col_set(self,value) |
8ab979d7 RD |
101 | return |
102 | if name == "m_cancelled" : | |
1d99702e | 103 | controls2c.wxListEvent_m_cancelled_set(self,value) |
8ab979d7 RD |
104 | return |
105 | if name == "m_pointDrag" : | |
1d99702e | 106 | controls2c.wxListEvent_m_pointDrag_set(self,value.this) |
8ab979d7 RD |
107 | return |
108 | if name == "m_item" : | |
1d99702e | 109 | controls2c.wxListEvent_m_item_set(self,value.this) |
8ab979d7 RD |
110 | return |
111 | self.__dict__[name] = value | |
112 | def __getattr__(self,name): | |
113 | if name == "m_code" : | |
1d99702e | 114 | return controls2c.wxListEvent_m_code_get(self) |
8ab979d7 | 115 | if name == "m_itemIndex" : |
1d99702e | 116 | return controls2c.wxListEvent_m_itemIndex_get(self) |
8ab979d7 | 117 | if name == "m_oldItemIndex" : |
1d99702e | 118 | return controls2c.wxListEvent_m_oldItemIndex_get(self) |
8ab979d7 | 119 | if name == "m_col" : |
1d99702e | 120 | return controls2c.wxListEvent_m_col_get(self) |
8ab979d7 | 121 | if name == "m_cancelled" : |
1d99702e | 122 | return controls2c.wxListEvent_m_cancelled_get(self) |
8ab979d7 | 123 | if name == "m_pointDrag" : |
1d99702e | 124 | return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self)) |
8ab979d7 | 125 | if name == "m_item" : |
1d99702e | 126 | return wxListItemPtr(controls2c.wxListEvent_m_item_get(self)) |
8ab979d7 RD |
127 | raise AttributeError,name |
128 | def __repr__(self): | |
1d99702e | 129 | return "<C wxListEvent instance at %s>" % (self.this,) |
8ab979d7 RD |
130 | class wxListEvent(wxListEventPtr): |
131 | def __init__(self,this): | |
132 | self.this = this | |
133 | ||
134 | ||
135 | ||
136 | ||
137 | class wxListCtrlPtr(wxControlPtr): | |
138 | def __init__(self,this): | |
139 | self.this = this | |
140 | self.thisown = 0 | |
1d99702e RD |
141 | def Arrange(self, *_args, **_kwargs): |
142 | val = apply(controls2c.wxListCtrl_Arrange,(self,) + _args, _kwargs) | |
8ab979d7 | 143 | return val |
1d99702e RD |
144 | def DeleteItem(self, *_args, **_kwargs): |
145 | val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs) | |
8ab979d7 | 146 | return val |
1d99702e RD |
147 | def DeleteAllItems(self, *_args, **_kwargs): |
148 | val = apply(controls2c.wxListCtrl_DeleteAllItems,(self,) + _args, _kwargs) | |
8ab979d7 | 149 | return val |
1d99702e RD |
150 | def DeleteColumn(self, *_args, **_kwargs): |
151 | val = apply(controls2c.wxListCtrl_DeleteColumn,(self,) + _args, _kwargs) | |
8ab979d7 | 152 | return val |
1d99702e RD |
153 | def DeleteAllColumns(self, *_args, **_kwargs): |
154 | val = apply(controls2c.wxListCtrl_DeleteAllColumns,(self,) + _args, _kwargs) | |
8ab979d7 | 155 | return val |
1d99702e RD |
156 | def ClearAll(self, *_args, **_kwargs): |
157 | val = apply(controls2c.wxListCtrl_ClearAll,(self,) + _args, _kwargs) | |
8ab979d7 | 158 | return val |
1d99702e RD |
159 | def EditLabel(self, *_args, **_kwargs): |
160 | val = apply(controls2c.wxListCtrl_EditLabel,(self,) + _args, _kwargs) | |
161 | if val: val = wxTextCtrlPtr(val) | |
8ab979d7 | 162 | return val |
1d99702e RD |
163 | def EndEditLabel(self, *_args, **_kwargs): |
164 | val = apply(controls2c.wxListCtrl_EndEditLabel,(self,) + _args, _kwargs) | |
8ab979d7 | 165 | return val |
1d99702e RD |
166 | def GetEditControl(self, *_args, **_kwargs): |
167 | val = apply(controls2c.wxListCtrl_GetEditControl,(self,) + _args, _kwargs) | |
168 | if val: val = wxTextCtrlPtr(val) | |
be4d9c1f | 169 | return val |
1d99702e RD |
170 | def EnsureVisible(self, *_args, **_kwargs): |
171 | val = apply(controls2c.wxListCtrl_EnsureVisible,(self,) + _args, _kwargs) | |
8ab979d7 | 172 | return val |
1d99702e RD |
173 | def FindItem(self, *_args, **_kwargs): |
174 | val = apply(controls2c.wxListCtrl_FindItem,(self,) + _args, _kwargs) | |
8ab979d7 | 175 | return val |
1d99702e RD |
176 | def FindItemData(self, *_args, **_kwargs): |
177 | val = apply(controls2c.wxListCtrl_FindItemData,(self,) + _args, _kwargs) | |
8ab979d7 | 178 | return val |
1d99702e RD |
179 | def FindItemAtPos(self, *_args, **_kwargs): |
180 | val = apply(controls2c.wxListCtrl_FindItemAtPos,(self,) + _args, _kwargs) | |
8ab979d7 | 181 | return val |
1d99702e RD |
182 | def GetColumn(self, *_args, **_kwargs): |
183 | val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs) | |
8ab979d7 | 184 | return val |
1d99702e RD |
185 | def GetColumnWidth(self, *_args, **_kwargs): |
186 | val = apply(controls2c.wxListCtrl_GetColumnWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 187 | return val |
1d99702e RD |
188 | def GetCountPerPage(self, *_args, **_kwargs): |
189 | val = apply(controls2c.wxListCtrl_GetCountPerPage,(self,) + _args, _kwargs) | |
8ab979d7 | 190 | return val |
1d99702e RD |
191 | def GetImageList(self, *_args, **_kwargs): |
192 | val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs) | |
193 | if val: val = wxImageListPtr(val) | |
8ab979d7 | 194 | return val |
1d99702e RD |
195 | def GetItemData(self, *_args, **_kwargs): |
196 | val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs) | |
8ab979d7 | 197 | return val |
1d99702e RD |
198 | def GetItem(self, *_args, **_kwargs): |
199 | val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs) | |
200 | if val: val = wxListItemPtr(val) ; val.thisown = 1 | |
8ab979d7 | 201 | return val |
1d99702e RD |
202 | def GetItemPosition(self, *_args, **_kwargs): |
203 | val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs) | |
204 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 205 | return val |
1d99702e RD |
206 | def GetItemRect(self, *_args, **_kwargs): |
207 | val = apply(controls2c.wxListCtrl_GetItemRect,(self,) + _args, _kwargs) | |
208 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
8ab979d7 | 209 | return val |
1d99702e RD |
210 | def GetItemState(self, *_args, **_kwargs): |
211 | val = apply(controls2c.wxListCtrl_GetItemState,(self,) + _args, _kwargs) | |
8ab979d7 | 212 | return val |
1d99702e RD |
213 | def GetItemCount(self, *_args, **_kwargs): |
214 | val = apply(controls2c.wxListCtrl_GetItemCount,(self,) + _args, _kwargs) | |
8ab979d7 | 215 | return val |
1d99702e RD |
216 | def GetItemSpacing(self, *_args, **_kwargs): |
217 | val = apply(controls2c.wxListCtrl_GetItemSpacing,(self,) + _args, _kwargs) | |
8ab979d7 | 218 | return val |
1d99702e RD |
219 | def GetItemText(self, *_args, **_kwargs): |
220 | val = apply(controls2c.wxListCtrl_GetItemText,(self,) + _args, _kwargs) | |
8ab979d7 | 221 | return val |
1d99702e RD |
222 | def GetNextItem(self, *_args, **_kwargs): |
223 | val = apply(controls2c.wxListCtrl_GetNextItem,(self,) + _args, _kwargs) | |
8ab979d7 | 224 | return val |
1d99702e RD |
225 | def GetSelectedItemCount(self, *_args, **_kwargs): |
226 | val = apply(controls2c.wxListCtrl_GetSelectedItemCount,(self,) + _args, _kwargs) | |
8ab979d7 | 227 | return val |
1d99702e RD |
228 | def GetTextColour(self, *_args, **_kwargs): |
229 | val = apply(controls2c.wxListCtrl_GetTextColour,(self,) + _args, _kwargs) | |
230 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
8ab979d7 | 231 | return val |
1d99702e RD |
232 | def SetTextColour(self, *_args, **_kwargs): |
233 | val = apply(controls2c.wxListCtrl_SetTextColour,(self,) + _args, _kwargs) | |
be4d9c1f | 234 | return val |
1d99702e RD |
235 | def GetTopItem(self, *_args, **_kwargs): |
236 | val = apply(controls2c.wxListCtrl_GetTopItem,(self,) + _args, _kwargs) | |
8ab979d7 | 237 | return val |
1d99702e RD |
238 | def HitTest(self, *_args, **_kwargs): |
239 | val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs) | |
8ab979d7 | 240 | return val |
1d99702e RD |
241 | def InsertColumnWith(self, *_args, **_kwargs): |
242 | val = apply(controls2c.wxListCtrl_InsertColumnWith,(self,) + _args, _kwargs) | |
8ab979d7 | 243 | return val |
1d99702e RD |
244 | def InsertColumn(self, *_args, **_kwargs): |
245 | val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs) | |
8ab979d7 | 246 | return val |
1d99702e RD |
247 | def InsertItem(self, *_args, **_kwargs): |
248 | val = apply(controls2c.wxListCtrl_InsertItem,(self,) + _args, _kwargs) | |
8ab979d7 | 249 | return val |
1d99702e RD |
250 | def InsertStringItem(self, *_args, **_kwargs): |
251 | val = apply(controls2c.wxListCtrl_InsertStringItem,(self,) + _args, _kwargs) | |
8ab979d7 | 252 | return val |
1d99702e RD |
253 | def InsertImageItem(self, *_args, **_kwargs): |
254 | val = apply(controls2c.wxListCtrl_InsertImageItem,(self,) + _args, _kwargs) | |
8ab979d7 | 255 | return val |
1d99702e RD |
256 | def InsertImageStringItem(self, *_args, **_kwargs): |
257 | val = apply(controls2c.wxListCtrl_InsertImageStringItem,(self,) + _args, _kwargs) | |
8ab979d7 | 258 | return val |
1d99702e RD |
259 | def ScrollList(self, *_args, **_kwargs): |
260 | val = apply(controls2c.wxListCtrl_ScrollList,(self,) + _args, _kwargs) | |
8ab979d7 | 261 | return val |
1d99702e RD |
262 | def SetBackgroundColour(self, *_args, **_kwargs): |
263 | val = apply(controls2c.wxListCtrl_SetBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 264 | return val |
1d99702e RD |
265 | def SetColumn(self, *_args, **_kwargs): |
266 | val = apply(controls2c.wxListCtrl_SetColumn,(self,) + _args, _kwargs) | |
8ab979d7 | 267 | return val |
1d99702e RD |
268 | def SetColumnWidth(self, *_args, **_kwargs): |
269 | val = apply(controls2c.wxListCtrl_SetColumnWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 270 | return val |
1d99702e RD |
271 | def SetImageList(self, *_args, **_kwargs): |
272 | val = apply(controls2c.wxListCtrl_SetImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 273 | return val |
1d99702e RD |
274 | def SetItem(self, *_args, **_kwargs): |
275 | val = apply(controls2c.wxListCtrl_SetItem,(self,) + _args, _kwargs) | |
8ab979d7 | 276 | return val |
1d99702e RD |
277 | def SetStringItem(self, *_args, **_kwargs): |
278 | val = apply(controls2c.wxListCtrl_SetStringItem,(self,) + _args, _kwargs) | |
8ab979d7 | 279 | return val |
1d99702e RD |
280 | def SetItemData(self, *_args, **_kwargs): |
281 | val = apply(controls2c.wxListCtrl_SetItemData,(self,) + _args, _kwargs) | |
8ab979d7 | 282 | return val |
1d99702e RD |
283 | def SetItemImage(self, *_args, **_kwargs): |
284 | val = apply(controls2c.wxListCtrl_SetItemImage,(self,) + _args, _kwargs) | |
8ab979d7 | 285 | return val |
1d99702e RD |
286 | def SetItemPosition(self, *_args, **_kwargs): |
287 | val = apply(controls2c.wxListCtrl_SetItemPosition,(self,) + _args, _kwargs) | |
8ab979d7 | 288 | return val |
1d99702e RD |
289 | def SetItemState(self, *_args, **_kwargs): |
290 | val = apply(controls2c.wxListCtrl_SetItemState,(self,) + _args, _kwargs) | |
8ab979d7 | 291 | return val |
1d99702e RD |
292 | def SetItemText(self, *_args, **_kwargs): |
293 | val = apply(controls2c.wxListCtrl_SetItemText,(self,) + _args, _kwargs) | |
8ab979d7 | 294 | return val |
1d99702e RD |
295 | def SetSingleStyle(self, *_args, **_kwargs): |
296 | val = apply(controls2c.wxListCtrl_SetSingleStyle,(self,) + _args, _kwargs) | |
8ab979d7 | 297 | return val |
1d99702e RD |
298 | def SetWindowStyleFlag(self, *_args, **_kwargs): |
299 | val = apply(controls2c.wxListCtrl_SetWindowStyleFlag,(self,) + _args, _kwargs) | |
8ab979d7 RD |
300 | return val |
301 | def __repr__(self): | |
1d99702e | 302 | return "<C wxListCtrl instance at %s>" % (self.this,) |
8ab979d7 | 303 | class wxListCtrl(wxListCtrlPtr): |
1d99702e RD |
304 | def __init__(self,*_args,**_kwargs): |
305 | self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs) | |
8ab979d7 | 306 | self.thisown = 1 |
b8b8dda7 | 307 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
308 | |
309 | ||
310 | ||
311 | ||
d5c9047a | 312 | class wxTreeItemIdPtr : |
8ab979d7 RD |
313 | def __init__(self,this): |
314 | self.this = this | |
315 | self.thisown = 0 | |
1d99702e | 316 | def __del__(self,controls2c=controls2c): |
8ab979d7 | 317 | if self.thisown == 1 : |
1d99702e RD |
318 | controls2c.delete_wxTreeItemId(self) |
319 | def IsOk(self, *_args, **_kwargs): | |
320 | val = apply(controls2c.wxTreeItemId_IsOk,(self,) + _args, _kwargs) | |
d5c9047a | 321 | return val |
d5c9047a | 322 | def __repr__(self): |
1d99702e | 323 | return "<C wxTreeItemId instance at %s>" % (self.this,) |
d5c9047a | 324 | class wxTreeItemId(wxTreeItemIdPtr): |
1d99702e RD |
325 | def __init__(self,*_args,**_kwargs): |
326 | self.this = apply(controls2c.new_wxTreeItemId,_args,_kwargs) | |
d5c9047a RD |
327 | self.thisown = 1 |
328 | ||
329 | ||
330 | ||
331 | ||
332 | class wxTreeItemDataPtr : | |
333 | def __init__(self,this): | |
334 | self.this = this | |
335 | self.thisown = 0 | |
1d99702e RD |
336 | def GetData(self, *_args, **_kwargs): |
337 | val = apply(controls2c.wxTreeItemData_GetData,(self,) + _args, _kwargs) | |
cf694132 | 338 | return val |
1d99702e RD |
339 | def SetData(self, *_args, **_kwargs): |
340 | val = apply(controls2c.wxTreeItemData_SetData,(self,) + _args, _kwargs) | |
cf694132 | 341 | return val |
1d99702e RD |
342 | def GetId(self, *_args, **_kwargs): |
343 | val = apply(controls2c.wxTreeItemData_GetId,(self,) + _args, _kwargs) | |
344 | if val: val = wxTreeItemIdPtr(val) | |
d5c9047a | 345 | return val |
1d99702e RD |
346 | def SetId(self, *_args, **_kwargs): |
347 | val = apply(controls2c.wxTreeItemData_SetId,(self,) + _args, _kwargs) | |
630d84f2 | 348 | return val |
8ab979d7 | 349 | def __repr__(self): |
1d99702e | 350 | return "<C wxTreeItemData instance at %s>" % (self.this,) |
d5c9047a | 351 | class wxTreeItemData(wxTreeItemDataPtr): |
1d99702e RD |
352 | def __init__(self,*_args,**_kwargs): |
353 | self.this = apply(controls2c.new_wxTreeItemData,_args,_kwargs) | |
8ab979d7 RD |
354 | self.thisown = 1 |
355 | ||
356 | ||
357 | ||
358 | ||
8bf5d46e | 359 | class wxTreeEventPtr(wxNotifyEventPtr): |
8ab979d7 RD |
360 | def __init__(self,this): |
361 | self.this = this | |
362 | self.thisown = 0 | |
1d99702e RD |
363 | def GetItem(self, *_args, **_kwargs): |
364 | val = apply(controls2c.wxTreeEvent_GetItem,(self,) + _args, _kwargs) | |
365 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
d5c9047a | 366 | return val |
1d99702e RD |
367 | def GetOldItem(self, *_args, **_kwargs): |
368 | val = apply(controls2c.wxTreeEvent_GetOldItem,(self,) + _args, _kwargs) | |
369 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
d5c9047a | 370 | return val |
1d99702e RD |
371 | def GetPoint(self, *_args, **_kwargs): |
372 | val = apply(controls2c.wxTreeEvent_GetPoint,(self,) + _args, _kwargs) | |
373 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
d5c9047a | 374 | return val |
1d99702e RD |
375 | def GetCode(self, *_args, **_kwargs): |
376 | val = apply(controls2c.wxTreeEvent_GetCode,(self,) + _args, _kwargs) | |
d5c9047a | 377 | return val |
1d99702e RD |
378 | def GetLabel(self, *_args, **_kwargs): |
379 | val = apply(controls2c.wxTreeEvent_GetLabel,(self,) + _args, _kwargs) | |
d5c9047a | 380 | return val |
8ab979d7 | 381 | def __repr__(self): |
1d99702e | 382 | return "<C wxTreeEvent instance at %s>" % (self.this,) |
8ab979d7 RD |
383 | class wxTreeEvent(wxTreeEventPtr): |
384 | def __init__(self,this): | |
385 | self.this = this | |
386 | ||
387 | ||
388 | ||
389 | ||
390 | class wxTreeCtrlPtr(wxControlPtr): | |
391 | def __init__(self,this): | |
392 | self.this = this | |
393 | self.thisown = 0 | |
1d99702e RD |
394 | def GetCount(self, *_args, **_kwargs): |
395 | val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs) | |
8ab979d7 | 396 | return val |
1d99702e RD |
397 | def GetIndent(self, *_args, **_kwargs): |
398 | val = apply(controls2c.wxTreeCtrl_GetIndent,(self,) + _args, _kwargs) | |
8ab979d7 | 399 | return val |
1d99702e RD |
400 | def SetIndent(self, *_args, **_kwargs): |
401 | val = apply(controls2c.wxTreeCtrl_SetIndent,(self,) + _args, _kwargs) | |
8ab979d7 | 402 | return val |
1d99702e RD |
403 | def GetImageList(self, *_args, **_kwargs): |
404 | val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs) | |
405 | if val: val = wxImageListPtr(val) | |
8ab979d7 | 406 | return val |
1d99702e RD |
407 | def GetStateImageList(self, *_args, **_kwargs): |
408 | val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs) | |
409 | if val: val = wxImageListPtr(val) | |
8ab979d7 | 410 | return val |
1d99702e RD |
411 | def SetImageList(self, *_args, **_kwargs): |
412 | val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 413 | return val |
1d99702e RD |
414 | def SetStateImageList(self, *_args, **_kwargs): |
415 | val = apply(controls2c.wxTreeCtrl_SetStateImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 416 | return val |
1d99702e RD |
417 | def GetItemText(self, *_args, **_kwargs): |
418 | val = apply(controls2c.wxTreeCtrl_GetItemText,(self,) + _args, _kwargs) | |
8ab979d7 | 419 | return val |
1d99702e RD |
420 | def GetItemImage(self, *_args, **_kwargs): |
421 | val = apply(controls2c.wxTreeCtrl_GetItemImage,(self,) + _args, _kwargs) | |
8ab979d7 | 422 | return val |
1d99702e RD |
423 | def GetItemSelectedImage(self, *_args, **_kwargs): |
424 | val = apply(controls2c.wxTreeCtrl_GetItemSelectedImage,(self,) + _args, _kwargs) | |
8ab979d7 | 425 | return val |
1d99702e RD |
426 | def SetItemText(self, *_args, **_kwargs): |
427 | val = apply(controls2c.wxTreeCtrl_SetItemText,(self,) + _args, _kwargs) | |
8ab979d7 | 428 | return val |
1d99702e RD |
429 | def SetItemImage(self, *_args, **_kwargs): |
430 | val = apply(controls2c.wxTreeCtrl_SetItemImage,(self,) + _args, _kwargs) | |
8ab979d7 | 431 | return val |
1d99702e RD |
432 | def SetItemSelectedImage(self, *_args, **_kwargs): |
433 | val = apply(controls2c.wxTreeCtrl_SetItemSelectedImage,(self,) + _args, _kwargs) | |
8ab979d7 | 434 | return val |
1d99702e RD |
435 | def SetItemHasChildren(self, *_args, **_kwargs): |
436 | val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self,) + _args, _kwargs) | |
cf694132 | 437 | return val |
1d99702e RD |
438 | def GetItemData(self, *_args, **_kwargs): |
439 | val = apply(controls2c.wxTreeCtrl_GetItemData,(self,) + _args, _kwargs) | |
440 | if val: val = wxTreeItemDataPtr(val) | |
cf694132 | 441 | return val |
1d99702e RD |
442 | def SetItemData(self, *_args, **_kwargs): |
443 | val = apply(controls2c.wxTreeCtrl_SetItemData,(self,) + _args, _kwargs) | |
d5c9047a | 444 | return val |
1d99702e RD |
445 | def GetPyData(self, *_args, **_kwargs): |
446 | val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs) | |
cf694132 | 447 | return val |
1d99702e RD |
448 | def SetPyData(self, *_args, **_kwargs): |
449 | val = apply(controls2c.wxTreeCtrl_SetPyData,(self,) + _args, _kwargs) | |
08127323 | 450 | return val |
1d99702e RD |
451 | def IsVisible(self, *_args, **_kwargs): |
452 | val = apply(controls2c.wxTreeCtrl_IsVisible,(self,) + _args, _kwargs) | |
8ab979d7 | 453 | return val |
1d99702e RD |
454 | def ItemHasChildren(self, *_args, **_kwargs): |
455 | val = apply(controls2c.wxTreeCtrl_ItemHasChildren,(self,) + _args, _kwargs) | |
8ab979d7 | 456 | return val |
1d99702e RD |
457 | def IsExpanded(self, *_args, **_kwargs): |
458 | val = apply(controls2c.wxTreeCtrl_IsExpanded,(self,) + _args, _kwargs) | |
8ab979d7 | 459 | return val |
1d99702e RD |
460 | def IsSelected(self, *_args, **_kwargs): |
461 | val = apply(controls2c.wxTreeCtrl_IsSelected,(self,) + _args, _kwargs) | |
8ab979d7 | 462 | return val |
1d99702e RD |
463 | def GetRootItem(self, *_args, **_kwargs): |
464 | val = apply(controls2c.wxTreeCtrl_GetRootItem,(self,) + _args, _kwargs) | |
465 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
8ab979d7 | 466 | return val |
1d99702e RD |
467 | def GetSelection(self, *_args, **_kwargs): |
468 | val = apply(controls2c.wxTreeCtrl_GetSelection,(self,) + _args, _kwargs) | |
469 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
8ab979d7 | 470 | return val |
1d99702e RD |
471 | def GetParent(self, *_args, **_kwargs): |
472 | val = apply(controls2c.wxTreeCtrl_GetParent,(self,) + _args, _kwargs) | |
473 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
8ab979d7 | 474 | return val |
d426c97e RD |
475 | def GetSelections(self, *_args, **_kwargs): |
476 | val = apply(controls2c.wxTreeCtrl_GetSelections,(self,) + _args, _kwargs) | |
477 | return val | |
1d99702e RD |
478 | def GetChildrenCount(self, *_args, **_kwargs): |
479 | val = apply(controls2c.wxTreeCtrl_GetChildrenCount,(self,) + _args, _kwargs) | |
bb0054cd | 480 | return val |
1d99702e RD |
481 | def GetFirstChild(self, *_args, **_kwargs): |
482 | val = apply(controls2c.wxTreeCtrl_GetFirstChild,(self,) + _args, _kwargs) | |
8ab979d7 | 483 | return val |
1d99702e RD |
484 | def GetNextChild(self, *_args, **_kwargs): |
485 | val = apply(controls2c.wxTreeCtrl_GetNextChild,(self,) + _args, _kwargs) | |
486 | return val | |
487 | def GetNextSibling(self, *_args, **_kwargs): | |
488 | val = apply(controls2c.wxTreeCtrl_GetNextSibling,(self,) + _args, _kwargs) | |
489 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
490 | return val | |
491 | def GetPrevSibling(self, *_args, **_kwargs): | |
492 | val = apply(controls2c.wxTreeCtrl_GetPrevSibling,(self,) + _args, _kwargs) | |
493 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
494 | return val | |
495 | def GetFirstVisibleItem(self, *_args, **_kwargs): | |
496 | val = apply(controls2c.wxTreeCtrl_GetFirstVisibleItem,(self,) + _args, _kwargs) | |
497 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
498 | return val | |
499 | def GetNextVisible(self, *_args, **_kwargs): | |
500 | val = apply(controls2c.wxTreeCtrl_GetNextVisible,(self,) + _args, _kwargs) | |
501 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
502 | return val | |
503 | def GetPrevVisible(self, *_args, **_kwargs): | |
504 | val = apply(controls2c.wxTreeCtrl_GetPrevVisible,(self,) + _args, _kwargs) | |
505 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
506 | return val | |
d426c97e RD |
507 | def GetLastChild(self, *_args, **_kwargs): |
508 | val = apply(controls2c.wxTreeCtrl_GetLastChild,(self,) + _args, _kwargs) | |
509 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
510 | return val | |
1d99702e RD |
511 | def AddRoot(self, *_args, **_kwargs): |
512 | val = apply(controls2c.wxTreeCtrl_AddRoot,(self,) + _args, _kwargs) | |
513 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
514 | return val | |
515 | def PrependItem(self, *_args, **_kwargs): | |
516 | val = apply(controls2c.wxTreeCtrl_PrependItem,(self,) + _args, _kwargs) | |
517 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
518 | return val | |
519 | def InsertItem(self, *_args, **_kwargs): | |
520 | val = apply(controls2c.wxTreeCtrl_InsertItem,(self,) + _args, _kwargs) | |
521 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
522 | return val | |
523 | def AppendItem(self, *_args, **_kwargs): | |
524 | val = apply(controls2c.wxTreeCtrl_AppendItem,(self,) + _args, _kwargs) | |
525 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
526 | return val | |
527 | def Delete(self, *_args, **_kwargs): | |
528 | val = apply(controls2c.wxTreeCtrl_Delete,(self,) + _args, _kwargs) | |
529 | return val | |
530 | def DeleteChildren(self, *_args, **_kwargs): | |
531 | val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs) | |
532 | return val | |
533 | def DeleteAllItems(self, *_args, **_kwargs): | |
534 | val = apply(controls2c.wxTreeCtrl_DeleteAllItems,(self,) + _args, _kwargs) | |
535 | return val | |
536 | def Expand(self, *_args, **_kwargs): | |
537 | val = apply(controls2c.wxTreeCtrl_Expand,(self,) + _args, _kwargs) | |
538 | return val | |
539 | def Collapse(self, *_args, **_kwargs): | |
540 | val = apply(controls2c.wxTreeCtrl_Collapse,(self,) + _args, _kwargs) | |
541 | return val | |
542 | def CollapseAndReset(self, *_args, **_kwargs): | |
543 | val = apply(controls2c.wxTreeCtrl_CollapseAndReset,(self,) + _args, _kwargs) | |
544 | return val | |
545 | def Toggle(self, *_args, **_kwargs): | |
546 | val = apply(controls2c.wxTreeCtrl_Toggle,(self,) + _args, _kwargs) | |
547 | return val | |
548 | def Unselect(self, *_args, **_kwargs): | |
549 | val = apply(controls2c.wxTreeCtrl_Unselect,(self,) + _args, _kwargs) | |
550 | return val | |
551 | def UnselectAll(self, *_args, **_kwargs): | |
552 | val = apply(controls2c.wxTreeCtrl_UnselectAll,(self,) + _args, _kwargs) | |
553 | return val | |
554 | def SelectItem(self, *_args, **_kwargs): | |
555 | val = apply(controls2c.wxTreeCtrl_SelectItem,(self,) + _args, _kwargs) | |
556 | return val | |
557 | def EnsureVisible(self, *_args, **_kwargs): | |
558 | val = apply(controls2c.wxTreeCtrl_EnsureVisible,(self,) + _args, _kwargs) | |
559 | return val | |
560 | def ScrollTo(self, *_args, **_kwargs): | |
561 | val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs) | |
562 | return val | |
563 | def EditLabel(self, *_args, **_kwargs): | |
564 | val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs) | |
565 | if val: val = wxTextCtrlPtr(val) | |
566 | return val | |
567 | def GetEditControl(self, *_args, **_kwargs): | |
568 | val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs) | |
569 | if val: val = wxTextCtrlPtr(val) | |
570 | return val | |
571 | def EndEditLabel(self, *_args, **_kwargs): | |
572 | val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self,) + _args, _kwargs) | |
573 | return val | |
d426c97e RD |
574 | def SortChildren(self, *_args, **_kwargs): |
575 | val = apply(controls2c.wxTreeCtrl_SortChildren,(self,) + _args, _kwargs) | |
576 | return val | |
1d99702e RD |
577 | def SetItemBold(self, *_args, **_kwargs): |
578 | val = apply(controls2c.wxTreeCtrl_SetItemBold,(self,) + _args, _kwargs) | |
579 | return val | |
580 | def IsBold(self, *_args, **_kwargs): | |
581 | val = apply(controls2c.wxTreeCtrl_IsBold,(self,) + _args, _kwargs) | |
582 | return val | |
583 | def HitTest(self, *_args, **_kwargs): | |
584 | val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs) | |
585 | if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1 | |
b8b8dda7 | 586 | return val |
d426c97e RD |
587 | def GetBoundingRect(self, *_args, **_kwargs): |
588 | val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs) | |
589 | return val | |
8ab979d7 | 590 | def __repr__(self): |
1d99702e | 591 | return "<C wxTreeCtrl instance at %s>" % (self.this,) |
c127177f RD |
592 | |
593 | # Redefine a couple methods that SWIG gets a bit confused on... | |
594 | def GetFirstChild(self,arg0,arg1): | |
595 | val1, val2 = controls2c.wxTreeCtrl_GetFirstChild(self.this,arg0.this,arg1) | |
596 | val1 = wxTreeItemIdPtr(val1) | |
597 | val1.thisown = 1 | |
598 | return (val1,val2) | |
599 | def GetNextChild(self,arg0,arg1): | |
bb0054cd | 600 | val1, val2 = controls2c.wxTreeCtrl_GetNextChild(self.this,arg0.this,arg1) |
c127177f RD |
601 | val1 = wxTreeItemIdPtr(val1) |
602 | val1.thisown = 1 | |
603 | return (val1,val2) | |
604 | ||
8ab979d7 | 605 | class wxTreeCtrl(wxTreeCtrlPtr): |
1d99702e RD |
606 | def __init__(self,*_args,**_kwargs): |
607 | self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs) | |
8ab979d7 | 608 | self.thisown = 1 |
b8b8dda7 | 609 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
610 | |
611 | ||
612 | ||
613 | ||
614 | ||
615 | ||
616 | #-------------- FUNCTION WRAPPERS ------------------ | |
617 | ||
618 | ||
619 | ||
620 | #-------------- VARIABLE WRAPPERS ------------------ | |
621 | ||
af309447 RD |
622 | wxLIST_MASK_TEXT = controls2c.wxLIST_MASK_TEXT |
623 | wxLIST_MASK_IMAGE = controls2c.wxLIST_MASK_IMAGE | |
624 | wxLIST_MASK_DATA = controls2c.wxLIST_MASK_DATA | |
625 | wxLIST_MASK_WIDTH = controls2c.wxLIST_MASK_WIDTH | |
626 | wxLIST_MASK_FORMAT = controls2c.wxLIST_MASK_FORMAT | |
bb0054cd | 627 | wxLIST_MASK_STATE = controls2c.wxLIST_MASK_STATE |
af309447 RD |
628 | wxLIST_STATE_DONTCARE = controls2c.wxLIST_STATE_DONTCARE |
629 | wxLIST_STATE_DROPHILITED = controls2c.wxLIST_STATE_DROPHILITED | |
630 | wxLIST_STATE_FOCUSED = controls2c.wxLIST_STATE_FOCUSED | |
631 | wxLIST_STATE_SELECTED = controls2c.wxLIST_STATE_SELECTED | |
632 | wxLIST_STATE_CUT = controls2c.wxLIST_STATE_CUT | |
633 | wxLIST_HITTEST_ABOVE = controls2c.wxLIST_HITTEST_ABOVE | |
634 | wxLIST_HITTEST_BELOW = controls2c.wxLIST_HITTEST_BELOW | |
635 | wxLIST_HITTEST_NOWHERE = controls2c.wxLIST_HITTEST_NOWHERE | |
636 | wxLIST_HITTEST_ONITEMICON = controls2c.wxLIST_HITTEST_ONITEMICON | |
637 | wxLIST_HITTEST_ONITEMLABEL = controls2c.wxLIST_HITTEST_ONITEMLABEL | |
638 | wxLIST_HITTEST_ONITEMRIGHT = controls2c.wxLIST_HITTEST_ONITEMRIGHT | |
639 | wxLIST_HITTEST_ONITEMSTATEICON = controls2c.wxLIST_HITTEST_ONITEMSTATEICON | |
640 | wxLIST_HITTEST_TOLEFT = controls2c.wxLIST_HITTEST_TOLEFT | |
641 | wxLIST_HITTEST_TORIGHT = controls2c.wxLIST_HITTEST_TORIGHT | |
642 | wxLIST_HITTEST_ONITEM = controls2c.wxLIST_HITTEST_ONITEM | |
643 | wxLIST_NEXT_ABOVE = controls2c.wxLIST_NEXT_ABOVE | |
644 | wxLIST_NEXT_ALL = controls2c.wxLIST_NEXT_ALL | |
645 | wxLIST_NEXT_BELOW = controls2c.wxLIST_NEXT_BELOW | |
646 | wxLIST_NEXT_LEFT = controls2c.wxLIST_NEXT_LEFT | |
647 | wxLIST_NEXT_RIGHT = controls2c.wxLIST_NEXT_RIGHT | |
648 | wxLIST_ALIGN_DEFAULT = controls2c.wxLIST_ALIGN_DEFAULT | |
649 | wxLIST_ALIGN_LEFT = controls2c.wxLIST_ALIGN_LEFT | |
650 | wxLIST_ALIGN_TOP = controls2c.wxLIST_ALIGN_TOP | |
651 | wxLIST_ALIGN_SNAP_TO_GRID = controls2c.wxLIST_ALIGN_SNAP_TO_GRID | |
652 | wxLIST_FORMAT_LEFT = controls2c.wxLIST_FORMAT_LEFT | |
653 | wxLIST_FORMAT_RIGHT = controls2c.wxLIST_FORMAT_RIGHT | |
654 | wxLIST_FORMAT_CENTRE = controls2c.wxLIST_FORMAT_CENTRE | |
655 | wxLIST_FORMAT_CENTER = controls2c.wxLIST_FORMAT_CENTER | |
656 | wxLIST_AUTOSIZE = controls2c.wxLIST_AUTOSIZE | |
657 | wxLIST_AUTOSIZE_USEHEADER = controls2c.wxLIST_AUTOSIZE_USEHEADER | |
658 | wxLIST_RECT_BOUNDS = controls2c.wxLIST_RECT_BOUNDS | |
659 | wxLIST_RECT_ICON = controls2c.wxLIST_RECT_ICON | |
660 | wxLIST_RECT_LABEL = controls2c.wxLIST_RECT_LABEL | |
661 | wxLIST_FIND_UP = controls2c.wxLIST_FIND_UP | |
662 | wxLIST_FIND_DOWN = controls2c.wxLIST_FIND_DOWN | |
663 | wxLIST_FIND_LEFT = controls2c.wxLIST_FIND_LEFT | |
664 | wxLIST_FIND_RIGHT = controls2c.wxLIST_FIND_RIGHT |