]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/controls2.py
GTK version of the SWIG-generated files
[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 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 EnsureVisible(self,arg0):
153 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
154 return val
155 def FindItem(self,arg0,arg1,*args):
156 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
157 return val
158 def FindItemData(self,arg0,arg1):
159 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
160 return val
161 def FindItemAtPos(self,arg0,arg1,arg2):
162 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
163 return val
164 def GetColumn(self,arg0,arg1):
165 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
166 return val
167 def GetColumnWidth(self,arg0):
168 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
169 return val
170 def GetCountPerPage(self):
171 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
172 return val
173 def GetImageList(self,arg0):
174 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
175 return val
176 def GetItemData(self,arg0):
177 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
178 return val
179 def GetItem(self):
180 val = controls2c.wxListCtrl_GetItem(self.this)
181 val = wxListItemPtr(val)
182 val.thisown = 1
183 return val
184 def GetItemPosition(self,arg0):
185 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
186 val = wxPointPtr(val)
187 val.thisown = 1
188 return val
189 def GetItemRect(self,arg0,*args):
190 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
191 val = wxRectPtr(val)
192 val.thisown = 1
193 return val
194 def GetItemState(self,arg0,arg1):
195 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
196 return val
197 def GetItemCount(self):
198 val = controls2c.wxListCtrl_GetItemCount(self.this)
199 return val
200 def GetItemSpacing(self,arg0):
201 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
202 return val
203 def GetItemText(self,arg0):
204 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
205 return val
206 def GetNextItem(self,arg0,*args):
207 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
208 return val
209 def GetSelectedItemCount(self):
210 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
211 return val
212 def GetTopItem(self):
213 val = controls2c.wxListCtrl_GetTopItem(self.this)
214 return val
215 def HitTest(self,arg0):
216 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
217 return val
218 def InsertColumnWithInfo(self,arg0,arg1):
219 val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this)
220 return val
221 def InsertColumn(self,arg0,arg1,*args):
222 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
223 return val
224 def InsertItem(self,arg0):
225 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
226 return val
227 def InsertStringItem(self,arg0,arg1):
228 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
229 return val
230 def InsertImageItem(self,arg0,arg1):
231 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
232 return val
233 def InsertImageStringItem(self,arg0,arg1,arg2):
234 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
235 return val
236 def ScrollList(self,arg0,arg1):
237 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
238 return val
239 def SetBackgroundColour(self,arg0):
240 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
241 return val
242 def SetColumn(self,arg0,arg1):
243 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
244 return val
245 def SetColumnWidth(self,arg0,arg1):
246 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
247 return val
248 def SetImageList(self,arg0,arg1):
249 val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1)
250 return val
251 def SetItem(self,arg0):
252 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
253 return val
254 def SetItemString(self,arg0,arg1,arg2,*args):
255 val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args)
256 return val
257 def SetItemData(self,arg0,arg1):
258 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
259 return val
260 def SetItemImage(self,arg0,arg1,arg2):
261 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
262 return val
263 def SetItemPosition(self,arg0,arg1):
264 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
265 return val
266 def SetItemState(self,arg0,arg1,arg2):
267 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
268 return val
269 def SetItemText(self,arg0,arg1):
270 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
271 return val
272 def SetSingleStyle(self,arg0,*args):
273 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
274 return val
275 def SetWindowStyleFlag(self,arg0):
276 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
277 return val
278 def __repr__(self):
279 return "<C wxListCtrl instance>"
280 class wxListCtrl(wxListCtrlPtr):
281 def __init__(self,arg0,arg1,*args) :
282 argl = map(None,args)
283 try: argl[0] = argl[0].this
284 except: pass
285 try: argl[1] = argl[1].this
286 except: pass
287 args = tuple(argl)
288 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
289 self.thisown = 1
290
291
292
293
294 class wxTreeItemPtr :
295 def __init__(self,this):
296 self.this = this
297 self.thisown = 0
298 def __del__(self):
299 if self.thisown == 1 :
300 controls2c.delete_wxTreeItem(self.this)
301 def __setattr__(self,name,value):
302 if name == "m_mask" :
303 controls2c.wxTreeItem_m_mask_set(self.this,value)
304 return
305 if name == "m_itemId" :
306 controls2c.wxTreeItem_m_itemId_set(self.this,value)
307 return
308 if name == "m_state" :
309 controls2c.wxTreeItem_m_state_set(self.this,value)
310 return
311 if name == "m_stateMask" :
312 controls2c.wxTreeItem_m_stateMask_set(self.this,value)
313 return
314 if name == "m_text" :
315 controls2c.wxTreeItem_m_text_set(self.this,value)
316 return
317 if name == "m_image" :
318 controls2c.wxTreeItem_m_image_set(self.this,value)
319 return
320 if name == "m_selectedImage" :
321 controls2c.wxTreeItem_m_selectedImage_set(self.this,value)
322 return
323 if name == "m_children" :
324 controls2c.wxTreeItem_m_children_set(self.this,value)
325 return
326 if name == "m_data" :
327 controls2c.wxTreeItem_m_data_set(self.this,value)
328 return
329 self.__dict__[name] = value
330 def __getattr__(self,name):
331 if name == "m_mask" :
332 return controls2c.wxTreeItem_m_mask_get(self.this)
333 if name == "m_itemId" :
334 return controls2c.wxTreeItem_m_itemId_get(self.this)
335 if name == "m_state" :
336 return controls2c.wxTreeItem_m_state_get(self.this)
337 if name == "m_stateMask" :
338 return controls2c.wxTreeItem_m_stateMask_get(self.this)
339 if name == "m_text" :
340 return controls2c.wxTreeItem_m_text_get(self.this)
341 if name == "m_image" :
342 return controls2c.wxTreeItem_m_image_get(self.this)
343 if name == "m_selectedImage" :
344 return controls2c.wxTreeItem_m_selectedImage_get(self.this)
345 if name == "m_children" :
346 return controls2c.wxTreeItem_m_children_get(self.this)
347 if name == "m_data" :
348 return controls2c.wxTreeItem_m_data_get(self.this)
349 raise AttributeError,name
350 def __repr__(self):
351 return "<C wxTreeItem instance>"
352 class wxTreeItem(wxTreeItemPtr):
353 def __init__(self) :
354 self.this = controls2c.new_wxTreeItem()
355 self.thisown = 1
356
357
358
359
360 class wxTreeEventPtr(wxCommandEventPtr):
361 def __init__(self,this):
362 self.this = this
363 self.thisown = 0
364 def __setattr__(self,name,value):
365 if name == "m_code" :
366 controls2c.wxTreeEvent_m_code_set(self.this,value)
367 return
368 if name == "m_item" :
369 controls2c.wxTreeEvent_m_item_set(self.this,value.this)
370 return
371 if name == "m_oldItem" :
372 controls2c.wxTreeEvent_m_oldItem_set(self.this,value)
373 return
374 if name == "m_pointDrag" :
375 controls2c.wxTreeEvent_m_pointDrag_set(self.this,value.this)
376 return
377 self.__dict__[name] = value
378 def __getattr__(self,name):
379 if name == "m_code" :
380 return controls2c.wxTreeEvent_m_code_get(self.this)
381 if name == "m_item" :
382 return wxTreeItemPtr(controls2c.wxTreeEvent_m_item_get(self.this))
383 if name == "m_oldItem" :
384 return controls2c.wxTreeEvent_m_oldItem_get(self.this)
385 if name == "m_pointDrag" :
386 return wxPointPtr(controls2c.wxTreeEvent_m_pointDrag_get(self.this))
387 raise AttributeError,name
388 def __repr__(self):
389 return "<C wxTreeEvent instance>"
390 class wxTreeEvent(wxTreeEventPtr):
391 def __init__(self,this):
392 self.this = this
393
394
395
396
397 class wxTreeCtrlPtr(wxControlPtr):
398 def __init__(self,this):
399 self.this = this
400 self.thisown = 0
401 def DeleteAllItems(self):
402 val = controls2c.wxTreeCtrl_DeleteAllItems(self.this)
403 return val
404 def DeleteItem(self,arg0):
405 val = controls2c.wxTreeCtrl_DeleteItem(self.this,arg0)
406 return val
407 def GetCount(self):
408 val = controls2c.wxTreeCtrl_GetCount(self.this)
409 return val
410 def GetImageList(self,*args):
411 val = apply(controls2c.wxTreeCtrl_GetImageList,(self.this,)+args)
412 return val
413 def GetIndent(self):
414 val = controls2c.wxTreeCtrl_GetIndent(self.this)
415 return val
416 def GetItemData(self,arg0):
417 val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0)
418 return val
419 def GetItem(self):
420 val = controls2c.wxTreeCtrl_GetItem(self.this)
421 val = wxTreeItemPtr(val)
422 val.thisown = 1
423 return val
424 def GetItemText(self,arg0):
425 val = controls2c.wxTreeCtrl_GetItemText(self.this,arg0)
426 return val
427 def GetParent(self,arg0):
428 val = controls2c.wxTreeCtrl_GetParent(self.this,arg0)
429 return val
430 def GetRootItem(self):
431 val = controls2c.wxTreeCtrl_GetRootItem(self.this)
432 return val
433 def GetSelection(self):
434 val = controls2c.wxTreeCtrl_GetSelection(self.this)
435 return val
436 def HitTest(self,arg0):
437 val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
438 return val
439 def InsertItem(self,arg0,arg1,*args):
440 val = apply(controls2c.wxTreeCtrl_InsertItem,(self.this,arg0,arg1.this,)+args)
441 return val
442 def InsertItemString(self,arg0,arg1,*args):
443 val = apply(controls2c.wxTreeCtrl_InsertItemString,(self.this,arg0,arg1,)+args)
444 return val
445 def ItemHasChildren(self,arg0):
446 val = controls2c.wxTreeCtrl_ItemHasChildren(self.this,arg0)
447 return val
448 def SelectItem(self,arg0):
449 val = controls2c.wxTreeCtrl_SelectItem(self.this,arg0)
450 return val
451 def SetIndent(self,arg0):
452 val = controls2c.wxTreeCtrl_SetIndent(self.this,arg0)
453 return val
454 def SetImageList(self,arg0,*args):
455 val = apply(controls2c.wxTreeCtrl_SetImageList,(self.this,arg0,)+args)
456 return val
457 def SetItem(self,arg0):
458 val = controls2c.wxTreeCtrl_SetItem(self.this,arg0.this)
459 return val
460 def SetItemImage(self,arg0,arg1,arg2):
461 val = controls2c.wxTreeCtrl_SetItemImage(self.this,arg0,arg1,arg2)
462 return val
463 def SetItemText(self,arg0,arg1):
464 val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0,arg1)
465 return val
466 def SetItemData(self,arg0,arg1):
467 val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0,arg1)
468 return val
469 def __repr__(self):
470 return "<C wxTreeCtrl instance>"
471 class wxTreeCtrl(wxTreeCtrlPtr):
472 def __init__(self,arg0,*args) :
473 argl = map(None,args)
474 try: argl[1] = argl[1].this
475 except: pass
476 try: argl[2] = argl[2].this
477 except: pass
478 args = tuple(argl)
479 self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
480 self.thisown = 1
481
482
483
484
485
486
487 #-------------- FUNCTION WRAPPERS ------------------
488
489
490
491 #-------------- VARIABLE WRAPPERS ------------------
492
493 wxTREE_MASK_HANDLE = controls2c.wxTREE_MASK_HANDLE
494 wxTREE_MASK_STATE = controls2c.wxTREE_MASK_STATE
495 wxTREE_MASK_TEXT = controls2c.wxTREE_MASK_TEXT
496 wxTREE_MASK_IMAGE = controls2c.wxTREE_MASK_IMAGE
497 wxTREE_MASK_SELECTED_IMAGE = controls2c.wxTREE_MASK_SELECTED_IMAGE
498 wxTREE_MASK_CHILDREN = controls2c.wxTREE_MASK_CHILDREN
499 wxTREE_MASK_DATA = controls2c.wxTREE_MASK_DATA
500 wxTREE_STATE_BOLD = controls2c.wxTREE_STATE_BOLD
501 wxTREE_STATE_DROPHILITED = controls2c.wxTREE_STATE_DROPHILITED
502 wxTREE_STATE_EXPANDED = controls2c.wxTREE_STATE_EXPANDED
503 wxTREE_STATE_EXPANDEDONCE = controls2c.wxTREE_STATE_EXPANDEDONCE
504 wxTREE_STATE_FOCUSED = controls2c.wxTREE_STATE_FOCUSED
505 wxTREE_STATE_SELECTED = controls2c.wxTREE_STATE_SELECTED
506 wxTREE_STATE_CUT = controls2c.wxTREE_STATE_CUT
507 wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
508 wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
509 wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
510 wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
511 wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
512 wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
513 wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
514 wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
515 wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
516 wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
517 wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
518 wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM
519 wxTREE_NEXT_CARET = controls2c.wxTREE_NEXT_CARET
520 wxTREE_NEXT_CHILD = controls2c.wxTREE_NEXT_CHILD
521 wxTREE_NEXT_DROPHILITE = controls2c.wxTREE_NEXT_DROPHILITE
522 wxTREE_NEXT_FIRSTVISIBLE = controls2c.wxTREE_NEXT_FIRSTVISIBLE
523 wxTREE_NEXT_NEXT = controls2c.wxTREE_NEXT_NEXT
524 wxTREE_NEXT_NEXTVISIBLE = controls2c.wxTREE_NEXT_NEXTVISIBLE
525 wxTREE_NEXT_PARENT = controls2c.wxTREE_NEXT_PARENT
526 wxTREE_NEXT_PREVIOUS = controls2c.wxTREE_NEXT_PREVIOUS
527 wxTREE_NEXT_PREVIOUSVISIBLE = controls2c.wxTREE_NEXT_PREVIOUSVISIBLE
528 wxTREE_NEXT_ROOT = controls2c.wxTREE_NEXT_ROOT
529 wxTREE_EXPAND_EXPAND = controls2c.wxTREE_EXPAND_EXPAND
530 wxTREE_EXPAND_COLLAPSE = controls2c.wxTREE_EXPAND_COLLAPSE
531 wxTREE_EXPAND_COLLAPSE_RESET = controls2c.wxTREE_EXPAND_COLLAPSE_RESET
532 wxTREE_EXPAND_TOGGLE = controls2c.wxTREE_EXPAND_TOGGLE
533 wxTREE_INSERT_LAST = controls2c.wxTREE_INSERT_LAST
534 wxTREE_INSERT_FIRST = controls2c.wxTREE_INSERT_FIRST
535 wxTREE_INSERT_SORT = controls2c.wxTREE_INSERT_SORT