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