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