]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.py
wxMenu doesn't anylonger call the callback if the
[wxWidgets.git] / utils / wxPython / src / msw / controls2.py
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 *
13 class wxListItemPtr :
14 def __init__(self,this):
15 self.this = this
16 self.thisown = 0
17 def __del__(self):
18 if self.thisown == 1 :
19 controls2c.delete_wxListItem(self.this)
20 def __setattr__(self,name,value):
21 if name == "m_mask" :
22 controls2c.wxListItem_m_mask_set(self.this,value)
23 return
24 if name == "m_itemId" :
25 controls2c.wxListItem_m_itemId_set(self.this,value)
26 return
27 if name == "m_col" :
28 controls2c.wxListItem_m_col_set(self.this,value)
29 return
30 if name == "m_state" :
31 controls2c.wxListItem_m_state_set(self.this,value)
32 return
33 if name == "m_stateMask" :
34 controls2c.wxListItem_m_stateMask_set(self.this,value)
35 return
36 if name == "m_text" :
37 controls2c.wxListItem_m_text_set(self.this,value)
38 return
39 if name == "m_image" :
40 controls2c.wxListItem_m_image_set(self.this,value)
41 return
42 if name == "m_data" :
43 controls2c.wxListItem_m_data_set(self.this,value)
44 return
45 if name == "m_format" :
46 controls2c.wxListItem_m_format_set(self.this,value)
47 return
48 if name == "m_width" :
49 controls2c.wxListItem_m_width_set(self.this,value)
50 return
51 self.__dict__[name] = value
52 def __getattr__(self,name):
53 if name == "m_mask" :
54 return controls2c.wxListItem_m_mask_get(self.this)
55 if name == "m_itemId" :
56 return controls2c.wxListItem_m_itemId_get(self.this)
57 if name == "m_col" :
58 return controls2c.wxListItem_m_col_get(self.this)
59 if name == "m_state" :
60 return controls2c.wxListItem_m_state_get(self.this)
61 if name == "m_stateMask" :
62 return controls2c.wxListItem_m_stateMask_get(self.this)
63 if name == "m_text" :
64 return controls2c.wxListItem_m_text_get(self.this)
65 if name == "m_image" :
66 return controls2c.wxListItem_m_image_get(self.this)
67 if name == "m_data" :
68 return controls2c.wxListItem_m_data_get(self.this)
69 if name == "m_format" :
70 return controls2c.wxListItem_m_format_get(self.this)
71 if name == "m_width" :
72 return controls2c.wxListItem_m_width_get(self.this)
73 raise AttributeError,name
74 def __repr__(self):
75 return "<C wxListItem instance>"
76 class wxListItem(wxListItemPtr):
77 def __init__(self) :
78 self.this = controls2c.new_wxListItem()
79 self.thisown = 1
80
81
82
83
84 class wxListEventPtr(wxCommandEventPtr):
85 def __init__(self,this):
86 self.this = this
87 self.thisown = 0
88 def __setattr__(self,name,value):
89 if name == "m_code" :
90 controls2c.wxListEvent_m_code_set(self.this,value)
91 return
92 if name == "m_itemIndex" :
93 controls2c.wxListEvent_m_itemIndex_set(self.this,value)
94 return
95 if name == "m_oldItemIndex" :
96 controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
97 return
98 if name == "m_col" :
99 controls2c.wxListEvent_m_col_set(self.this,value)
100 return
101 if name == "m_cancelled" :
102 controls2c.wxListEvent_m_cancelled_set(self.this,value)
103 return
104 if name == "m_pointDrag" :
105 controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
106 return
107 if name == "m_item" :
108 controls2c.wxListEvent_m_item_set(self.this,value.this)
109 return
110 self.__dict__[name] = value
111 def __getattr__(self,name):
112 if name == "m_code" :
113 return controls2c.wxListEvent_m_code_get(self.this)
114 if name == "m_itemIndex" :
115 return controls2c.wxListEvent_m_itemIndex_get(self.this)
116 if name == "m_oldItemIndex" :
117 return controls2c.wxListEvent_m_oldItemIndex_get(self.this)
118 if name == "m_col" :
119 return controls2c.wxListEvent_m_col_get(self.this)
120 if name == "m_cancelled" :
121 return controls2c.wxListEvent_m_cancelled_get(self.this)
122 if name == "m_pointDrag" :
123 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self.this))
124 if name == "m_item" :
125 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self.this))
126 raise AttributeError,name
127 def __repr__(self):
128 return "<C wxListEvent instance>"
129 class wxListEvent(wxListEventPtr):
130 def __init__(self,this):
131 self.this = this
132
133
134
135
136 class wxListCtrlPtr(wxControlPtr):
137 def __init__(self,this):
138 self.this = this
139 self.thisown = 0
140 def Arrange(self,*args):
141 val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
142 return val
143 def DeleteItem(self,arg0):
144 val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
145 return val
146 def DeleteAllItems(self):
147 val = controls2c.wxListCtrl_DeleteAllItems(self.this)
148 return val
149 def DeleteColumn(self,arg0):
150 val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
151 return val
152 def DeleteAllColumns(self):
153 val = controls2c.wxListCtrl_DeleteAllColumns(self.this)
154 return val
155 def ClearAll(self):
156 val = controls2c.wxListCtrl_ClearAll(self.this)
157 return val
158 def EditLabel(self,arg0):
159 val = controls2c.wxListCtrl_EditLabel(self.this,arg0)
160 val = wxTextCtrlPtr(val)
161 return val
162 def EndEditLabel(self,arg0):
163 val = controls2c.wxListCtrl_EndEditLabel(self.this,arg0)
164 return val
165 def EnsureVisible(self,arg0):
166 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
167 return val
168 def FindItem(self,arg0,arg1,*args):
169 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
170 return val
171 def FindItemData(self,arg0,arg1):
172 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
173 return val
174 def FindItemAtPos(self,arg0,arg1,arg2):
175 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
176 return val
177 def GetColumn(self,arg0,arg1):
178 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
179 return val
180 def GetColumnWidth(self,arg0):
181 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
182 return val
183 def GetCountPerPage(self):
184 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
185 return val
186 def GetImageList(self,arg0):
187 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
188 return val
189 def GetItemData(self,arg0):
190 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
191 return val
192 def GetItem(self):
193 val = controls2c.wxListCtrl_GetItem(self.this)
194 val = wxListItemPtr(val)
195 val.thisown = 1
196 return val
197 def GetItemPosition(self,arg0):
198 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
199 val = wxPointPtr(val)
200 val.thisown = 1
201 return val
202 def GetItemRect(self,arg0,*args):
203 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
204 val = wxRectPtr(val)
205 val.thisown = 1
206 return val
207 def GetItemState(self,arg0,arg1):
208 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
209 return val
210 def GetItemCount(self):
211 val = controls2c.wxListCtrl_GetItemCount(self.this)
212 return val
213 def GetItemSpacing(self,arg0):
214 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
215 return val
216 def GetItemText(self,arg0):
217 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
218 return val
219 def GetNextItem(self,arg0,*args):
220 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
221 return val
222 def GetSelectedItemCount(self):
223 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
224 return val
225 def GetTextColour(self):
226 val = controls2c.wxListCtrl_GetTextColour(self.this)
227 val = wxColourPtr(val)
228 val.thisown = 1
229 return val
230 def GetTopItem(self):
231 val = controls2c.wxListCtrl_GetTopItem(self.this)
232 return val
233 def HitTest(self,arg0):
234 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
235 return val
236 def InsertColumnWithInfo(self,arg0,arg1):
237 val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this)
238 return val
239 def InsertColumn(self,arg0,arg1,*args):
240 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
241 return val
242 def InsertItem(self,arg0):
243 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
244 return val
245 def InsertStringItem(self,arg0,arg1):
246 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
247 return val
248 def InsertImageItem(self,arg0,arg1):
249 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
250 return val
251 def InsertImageStringItem(self,arg0,arg1,arg2):
252 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
253 return val
254 def ScrollList(self,arg0,arg1):
255 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
256 return val
257 def SetBackgroundColour(self,arg0):
258 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
259 return val
260 def SetColumn(self,arg0,arg1):
261 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
262 return val
263 def SetColumnWidth(self,arg0,arg1):
264 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
265 return val
266 def SetImageList(self,arg0,arg1):
267 val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1)
268 return val
269 def SetItem(self,arg0):
270 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
271 return val
272 def SetItemString(self,arg0,arg1,arg2,*args):
273 val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args)
274 return val
275 def SetItemData(self,arg0,arg1):
276 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
277 return val
278 def SetItemImage(self,arg0,arg1,arg2):
279 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
280 return val
281 def SetItemPosition(self,arg0,arg1):
282 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
283 return val
284 def SetItemState(self,arg0,arg1,arg2):
285 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
286 return val
287 def SetItemText(self,arg0,arg1):
288 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
289 return val
290 def SetSingleStyle(self,arg0,*args):
291 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
292 return val
293 def SetTextColour(self,arg0):
294 val = controls2c.wxListCtrl_SetTextColour(self.this,arg0.this)
295 return val
296 def SetWindowStyleFlag(self,arg0):
297 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
298 return val
299 def __repr__(self):
300 return "<C wxListCtrl instance>"
301 class wxListCtrl(wxListCtrlPtr):
302 def __init__(self,arg0,arg1,*args) :
303 argl = map(None,args)
304 try: argl[0] = argl[0].this
305 except: pass
306 try: argl[1] = argl[1].this
307 except: pass
308 args = tuple(argl)
309 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
310 self.thisown = 1
311
312
313
314
315 class wxTreeItemPtr :
316 def __init__(self,this):
317 self.this = this
318 self.thisown = 0
319 def __del__(self):
320 if self.thisown == 1 :
321 controls2c.delete_wxTreeItem(self.this)
322 def __setattr__(self,name,value):
323 if name == "m_mask" :
324 controls2c.wxTreeItem_m_mask_set(self.this,value)
325 return
326 if name == "m_itemId" :
327 controls2c.wxTreeItem_m_itemId_set(self.this,value)
328 return
329 if name == "m_state" :
330 controls2c.wxTreeItem_m_state_set(self.this,value)
331 return
332 if name == "m_stateMask" :
333 controls2c.wxTreeItem_m_stateMask_set(self.this,value)
334 return
335 if name == "m_text" :
336 controls2c.wxTreeItem_m_text_set(self.this,value)
337 return
338 if name == "m_image" :
339 controls2c.wxTreeItem_m_image_set(self.this,value)
340 return
341 if name == "m_selectedImage" :
342 controls2c.wxTreeItem_m_selectedImage_set(self.this,value)
343 return
344 if name == "m_children" :
345 controls2c.wxTreeItem_m_children_set(self.this,value)
346 return
347 if name == "m_data" :
348 controls2c.wxTreeItem_m_data_set(self.this,value)
349 return
350 self.__dict__[name] = value
351 def __getattr__(self,name):
352 if name == "m_mask" :
353 return controls2c.wxTreeItem_m_mask_get(self.this)
354 if name == "m_itemId" :
355 return controls2c.wxTreeItem_m_itemId_get(self.this)
356 if name == "m_state" :
357 return controls2c.wxTreeItem_m_state_get(self.this)
358 if name == "m_stateMask" :
359 return controls2c.wxTreeItem_m_stateMask_get(self.this)
360 if name == "m_text" :
361 return controls2c.wxTreeItem_m_text_get(self.this)
362 if name == "m_image" :
363 return controls2c.wxTreeItem_m_image_get(self.this)
364 if name == "m_selectedImage" :
365 return controls2c.wxTreeItem_m_selectedImage_get(self.this)
366 if name == "m_children" :
367 return controls2c.wxTreeItem_m_children_get(self.this)
368 if name == "m_data" :
369 return controls2c.wxTreeItem_m_data_get(self.this)
370 raise AttributeError,name
371 def __repr__(self):
372 return "<C wxTreeItem instance>"
373 class wxTreeItem(wxTreeItemPtr):
374 def __init__(self) :
375 self.this = controls2c.new_wxTreeItem()
376 self.thisown = 1
377
378
379
380
381 class wxTreeEventPtr(wxCommandEventPtr):
382 def __init__(self,this):
383 self.this = this
384 self.thisown = 0
385 def __setattr__(self,name,value):
386 if name == "m_code" :
387 controls2c.wxTreeEvent_m_code_set(self.this,value)
388 return
389 if name == "m_item" :
390 controls2c.wxTreeEvent_m_item_set(self.this,value.this)
391 return
392 if name == "m_oldItem" :
393 controls2c.wxTreeEvent_m_oldItem_set(self.this,value)
394 return
395 if name == "m_pointDrag" :
396 controls2c.wxTreeEvent_m_pointDrag_set(self.this,value.this)
397 return
398 self.__dict__[name] = value
399 def __getattr__(self,name):
400 if name == "m_code" :
401 return controls2c.wxTreeEvent_m_code_get(self.this)
402 if name == "m_item" :
403 return wxTreeItemPtr(controls2c.wxTreeEvent_m_item_get(self.this))
404 if name == "m_oldItem" :
405 return controls2c.wxTreeEvent_m_oldItem_get(self.this)
406 if name == "m_pointDrag" :
407 return wxPointPtr(controls2c.wxTreeEvent_m_pointDrag_get(self.this))
408 raise AttributeError,name
409 def __repr__(self):
410 return "<C wxTreeEvent instance>"
411 class wxTreeEvent(wxTreeEventPtr):
412 def __init__(self,this):
413 self.this = this
414
415
416
417
418 class wxTreeCtrlPtr(wxControlPtr):
419 def __init__(self,this):
420 self.this = this
421 self.thisown = 0
422 def DeleteAllItems(self):
423 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
424 return val
425 def DeleteItem(self,arg0):
426 val = controls2c.wxTreeCtrl_DeleteItem(self.this,arg0)
427 return val
428 def EditLabel(self,arg0):
429 val = controls2c.wxTreeCtrl_EditLabel(self.this,arg0)
430 val = wxTextCtrlPtr(val)
431 return val
432 def EnsureVisible(self,arg0):
433 val = controls2c.wxTreeCtrl_EnsureVisible(self.this,arg0)
434 return val
435 def ExpandItem(self,arg0,arg1):
436 val = controls2c.wxTreeCtrl_ExpandItem(self.this,arg0,arg1)
437 return val
438 def GetChild(self,arg0):
439 val = controls2c.wxTreeCtrl_GetChild(self.this,arg0)
440 return val
441 def GetCount(self):
442 val = controls2c.wxTreeCtrl_GetCount(self.this)
443 return val
444 def GetEditControl(self):
445 val = controls2c.wxTreeCtrl_GetEditControl(self.this)
446 val = wxTextCtrlPtr(val)
447 return val
448 def GetFirstVisibleItem(self):
449 val = controls2c.wxTreeCtrl_GetFirstVisibleItem(self.this)
450 return val
451 def GetImageList(self,*args):
452 val = apply(controls2c.wxTreeCtrl_GetImageList,(self.this,)+args)
453 return val
454 def GetIndent(self):
455 val = controls2c.wxTreeCtrl_GetIndent(self.this)
456 return val
457 def GetItemData(self,arg0):
458 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0)
459 return val
460 def GetItem(self):
461 val = controls2c.wxTreeCtrl_GetItem(self.this)
462 val = wxTreeItemPtr(val)
463 val.thisown = 1
464 return val
465 def GetItemRect(self,arg0,*args):
466 val = apply(controls2c.wxTreeCtrl_GetItemRect,(self.this,arg0,)+args)
467 val = wxRectPtr(val)
468 val.thisown = 1
469 return val
470 def GetItemState(self,arg0,arg1):
471 val = controls2c.wxTreeCtrl_GetItemState(self.this,arg0,arg1)
472 return val
473 def GetItemText(self,arg0):
474 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0)
475 return val
476 def GetNextItem(self,arg0,arg1):
477 val = controls2c.wxTreeCtrl_GetNextItem(self.this,arg0,arg1)
478 return val
479 def GetNextVisibleItem(self,arg0):
480 val = controls2c.wxTreeCtrl_GetNextVisibleItem(self.this,arg0)
481 return val
482 def GetParent(self,arg0):
483 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0)
484 return val
485 def GetRootItem(self):
486 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
487 return val
488 def GetSelection(self):
489 val = controls2c.wxTreeCtrl_GetSelection(self.this)
490 return val
491 def HitTest(self,arg0):
492 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
493 return val
494 def InsertItem(self,arg0,arg1,*args):
495 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0,arg1.this,)+args)
496 return val
497 def InsertItemString(self,arg0,arg1,*args):
498 val = apply(controls2c.wxTreeCtrl_InsertItemString,(self.this,arg0,arg1,)+args)
499 return val
500 def ItemHasChildren(self,arg0):
501 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0)
502 return val
503 def ScrollTo(self,arg0):
504 val = controls2c.wxTreeCtrl_ScrollTo(self.this,arg0)
505 return val
506 def SelectItem(self,arg0):
507 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0)
508 return val
509 def SetIndent(self,arg0):
510 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
511 return val
512 def SetImageList(self,arg0,*args):
513 val = apply(controls2c.wxTreeCtrl_SetImageList,(self.this,arg0,)+args)
514 return val
515 def SetItem(self,arg0):
516 val = controls2c.wxTreeCtrl_SetItem(self.this,arg0.this)
517 return val
518 def SetItemImage(self,arg0,arg1,arg2):
519 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0,arg1,arg2)
520 return val
521 def SetItemState(self,arg0,arg1,arg2):
522 val = controls2c.wxTreeCtrl_SetItemState(self.this,arg0,arg1,arg2)
523 return val
524 def SetItemText(self,arg0,arg1):
525 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0,arg1)
526 return val
527 def SetItemData(self,arg0,arg1):
528 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0,arg1)
529 return val
530 def SortChildren(self,arg0):
531 val = controls2c.wxTreeCtrl_SortChildren(self.this,arg0)
532 return val
533 def __repr__(self):
534 return "<C wxTreeCtrl instance>"
535 class wxTreeCtrl(wxTreeCtrlPtr):
536 def __init__(self,arg0,*args) :
537 argl = map(None,args)
538 try: argl[1] = argl[1].this
539 except: pass
540 try: argl[2] = argl[2].this
541 except: pass
542 args = tuple(argl)
543 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
544 self.thisown = 1
545
546
547
548
549 class wxTabEventPtr(wxCommandEventPtr):
550 def __init__(self,this):
551 self.this = this
552 self.thisown = 0
553 def __repr__(self):
554 return "<C wxTabEvent instance>"
555 class wxTabEvent(wxTabEventPtr):
556 def __init__(self,this):
557 self.this = this
558
559
560
561
562 class wxTabCtrlPtr(wxControlPtr):
563 def __init__(self,this):
564 self.this = this
565 self.thisown = 0
566 def DeleteAllItems(self):
567 val = controls2c.wxTabCtrl_DeleteAllItems(self.this)
568 return val
569 def DeleteItem(self,arg0):
570 val = controls2c.wxTabCtrl_DeleteItem(self.this,arg0)
571 return val
572 def GetImageList(self):
573 val = controls2c.wxTabCtrl_GetImageList(self.this)
574 return val
575 def GetItemCount(self):
576 val = controls2c.wxTabCtrl_GetItemCount(self.this)
577 return val
578 def GetItemImage(self,arg0):
579 val = controls2c.wxTabCtrl_GetItemImage(self.this,arg0)
580 return val
581 def GetItemRect(self,arg0):
582 val = controls2c.wxTabCtrl_GetItemRect(self.this,arg0)
583 val = wxRectPtr(val)
584 val.thisown = 1
585 return val
586 def GetItemText(self,arg0):
587 val = controls2c.wxTabCtrl_GetItemText(self.this,arg0)
588 return val
589 def GetRowCount(self):
590 val = controls2c.wxTabCtrl_GetRowCount(self.this)
591 return val
592 def GetSelection(self):
593 val = controls2c.wxTabCtrl_GetSelection(self.this)
594 return val
595 def HitTest(self,arg0):
596 val = controls2c.wxTabCtrl_HitTest(self.this,arg0.this)
597 return val
598 def InsertItem(self,arg0,arg1,*args):
599 val = apply(controls2c.wxTabCtrl_InsertItem,(self.this,arg0,arg1,)+args)
600 return val
601 def SetItemImage(self,arg0,arg1):
602 val = controls2c.wxTabCtrl_SetItemImage(self.this,arg0,arg1)
603 return val
604 def SetImageList(self,arg0):
605 val = controls2c.wxTabCtrl_SetImageList(self.this,arg0)
606 return val
607 def SetItemSize(self,arg0):
608 val = controls2c.wxTabCtrl_SetItemSize(self.this,arg0.this)
609 return val
610 def SetItemText(self,arg0,arg1):
611 val = controls2c.wxTabCtrl_SetItemText(self.this,arg0,arg1)
612 return val
613 def SetPadding(self,arg0):
614 val = controls2c.wxTabCtrl_SetPadding(self.this,arg0.this)
615 return val
616 def SetSelection(self,arg0):
617 val = controls2c.wxTabCtrl_SetSelection(self.this,arg0)
618 return val
619 def __repr__(self):
620 return "<C wxTabCtrl instance>"
621 class wxTabCtrl(wxTabCtrlPtr):
622 def __init__(self,arg0,arg1,*args) :
623 argl = map(None,args)
624 try: argl[0] = argl[0].this
625 except: pass
626 try: argl[1] = argl[1].this
627 except: pass
628 args = tuple(argl)
629 self.this = apply(controls2c.new_wxTabCtrl,(arg0.this,arg1,)+args)
630 self.thisown = 1
631
632
633
634
635
636
637 #-------------- FUNCTION WRAPPERS ------------------
638
639
640
641 #-------------- VARIABLE WRAPPERS ------------------
642
643 wxTREE_MASK_HANDLE = controls2c.wxTREE_MASK_HANDLE
644 wxTREE_MASK_STATE = controls2c.wxTREE_MASK_STATE
645 wxTREE_MASK_TEXT = controls2c.wxTREE_MASK_TEXT
646 wxTREE_MASK_IMAGE = controls2c.wxTREE_MASK_IMAGE
647 wxTREE_MASK_SELECTED_IMAGE = controls2c.wxTREE_MASK_SELECTED_IMAGE
648 wxTREE_MASK_CHILDREN = controls2c.wxTREE_MASK_CHILDREN
649 wxTREE_MASK_DATA = controls2c.wxTREE_MASK_DATA
650 wxTREE_STATE_BOLD = controls2c.wxTREE_STATE_BOLD
651 wxTREE_STATE_DROPHILITED = controls2c.wxTREE_STATE_DROPHILITED
652 wxTREE_STATE_EXPANDED = controls2c.wxTREE_STATE_EXPANDED
653 wxTREE_STATE_EXPANDEDONCE = controls2c.wxTREE_STATE_EXPANDEDONCE
654 wxTREE_STATE_FOCUSED = controls2c.wxTREE_STATE_FOCUSED
655 wxTREE_STATE_SELECTED = controls2c.wxTREE_STATE_SELECTED
656 wxTREE_STATE_CUT = controls2c.wxTREE_STATE_CUT
657 wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
658 wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
659 wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
660 wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
661 wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
662 wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
663 wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
664 wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
665 wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
666 wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
667 wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
668 wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM
669 wxTREE_NEXT_CARET = controls2c.wxTREE_NEXT_CARET
670 wxTREE_NEXT_CHILD = controls2c.wxTREE_NEXT_CHILD
671 wxTREE_NEXT_DROPHILITE = controls2c.wxTREE_NEXT_DROPHILITE
672 wxTREE_NEXT_FIRSTVISIBLE = controls2c.wxTREE_NEXT_FIRSTVISIBLE
673 wxTREE_NEXT_NEXT = controls2c.wxTREE_NEXT_NEXT
674 wxTREE_NEXT_NEXTVISIBLE = controls2c.wxTREE_NEXT_NEXTVISIBLE
675 wxTREE_NEXT_PARENT = controls2c.wxTREE_NEXT_PARENT
676 wxTREE_NEXT_PREVIOUS = controls2c.wxTREE_NEXT_PREVIOUS
677 wxTREE_NEXT_PREVIOUSVISIBLE = controls2c.wxTREE_NEXT_PREVIOUSVISIBLE
678 wxTREE_NEXT_ROOT = controls2c.wxTREE_NEXT_ROOT
679 wxTREE_EXPAND_EXPAND = controls2c.wxTREE_EXPAND_EXPAND
680 wxTREE_EXPAND_COLLAPSE = controls2c.wxTREE_EXPAND_COLLAPSE
681 wxTREE_EXPAND_COLLAPSE_RESET = controls2c.wxTREE_EXPAND_COLLAPSE_RESET
682 wxTREE_EXPAND_TOGGLE = controls2c.wxTREE_EXPAND_TOGGLE
683 wxTREE_INSERT_LAST = controls2c.wxTREE_INSERT_LAST
684 wxTREE_INSERT_FIRST = controls2c.wxTREE_INSERT_FIRST
685 wxTREE_INSERT_SORT = controls2c.wxTREE_INSERT_SORT