]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/gizmos/gtk/gizmos.py
reSWIGged
[wxWidgets.git] / wxPython / contrib / gizmos / gtk / gizmos.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 """
5 Various *gizmo* classes: `DynamicSashWindow`, `EditableListBox`,
6 `LEDNumberCtrl`, `TreeListCtrl`, etc.
7 """
8
9 import _gizmos
10
11 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
12 if (name == "this"):
13 if isinstance(value, class_type):
14 self.__dict__[name] = value.this
15 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
16 del value.thisown
17 return
18 method = class_type.__swig_setmethods__.get(name,None)
19 if method: return method(self,value)
20 if (not static) or hasattr(self,name) or (name == "thisown"):
21 self.__dict__[name] = value
22 else:
23 raise AttributeError("You cannot add attributes to %s" % self)
24
25 def _swig_setattr(self,class_type,name,value):
26 return _swig_setattr_nondynamic(self,class_type,name,value,0)
27
28 def _swig_getattr(self,class_type,name):
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
33 import types
34 try:
35 _object = types.ObjectType
36 _newclass = 1
37 except AttributeError:
38 class _object : pass
39 _newclass = 0
40 del types
41
42
43 def _swig_setattr_nondynamic_method(set):
44 def set_attr(self,name,value):
45 if hasattr(self,name) or (name in ("this", "thisown")):
46 set(self,name,value)
47 else:
48 raise AttributeError("You cannot add attributes to %s" % self)
49 return set_attr
50
51
52 import _windows
53 import _core
54 import _controls
55 import wx
56 __docfilter__ = wx._core.__DocFilter(globals())
57 DS_MANAGE_SCROLLBARS = _gizmos.DS_MANAGE_SCROLLBARS
58 DS_DRAG_CORNER = _gizmos.DS_DRAG_CORNER
59 wxEVT_DYNAMIC_SASH_SPLIT = _gizmos.wxEVT_DYNAMIC_SASH_SPLIT
60 wxEVT_DYNAMIC_SASH_UNIFY = _gizmos.wxEVT_DYNAMIC_SASH_UNIFY
61 class DynamicSashSplitEvent(_core.CommandEvent):
62 """Proxy of C++ DynamicSashSplitEvent class"""
63 def __repr__(self):
64 return "<%s.%s; proxy of C++ wxDynamicSashSplitEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
65 def __init__(self, *args, **kwargs):
66 """__init__(self, Object target) -> DynamicSashSplitEvent"""
67 newobj = _gizmos.new_DynamicSashSplitEvent(*args, **kwargs)
68 self.this = newobj.this
69 self.thisown = 1
70 del newobj.thisown
71
72 class DynamicSashSplitEventPtr(DynamicSashSplitEvent):
73 def __init__(self, this):
74 self.this = this
75 if not hasattr(self,"thisown"): self.thisown = 0
76 self.__class__ = DynamicSashSplitEvent
77 _gizmos.DynamicSashSplitEvent_swigregister(DynamicSashSplitEventPtr)
78 cvar = _gizmos.cvar
79 DynamicSashNameStr = cvar.DynamicSashNameStr
80 EditableListBoxNameStr = cvar.EditableListBoxNameStr
81 TreeListCtrlNameStr = cvar.TreeListCtrlNameStr
82
83 class DynamicSashUnifyEvent(_core.CommandEvent):
84 """Proxy of C++ DynamicSashUnifyEvent class"""
85 def __repr__(self):
86 return "<%s.%s; proxy of C++ wxDynamicSashUnifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
87 def __init__(self, *args, **kwargs):
88 """__init__(self, Object target) -> DynamicSashUnifyEvent"""
89 newobj = _gizmos.new_DynamicSashUnifyEvent(*args, **kwargs)
90 self.this = newobj.this
91 self.thisown = 1
92 del newobj.thisown
93
94 class DynamicSashUnifyEventPtr(DynamicSashUnifyEvent):
95 def __init__(self, this):
96 self.this = this
97 if not hasattr(self,"thisown"): self.thisown = 0
98 self.__class__ = DynamicSashUnifyEvent
99 _gizmos.DynamicSashUnifyEvent_swigregister(DynamicSashUnifyEventPtr)
100
101 class DynamicSashWindow(_core.Window):
102 """Proxy of C++ DynamicSashWindow class"""
103 def __repr__(self):
104 return "<%s.%s; proxy of C++ wxDynamicSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
105 def __init__(self, *args, **kwargs):
106 """
107 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
108 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxDS_MANAGE_SCROLLBARS|wxDS_DRAG_CORNER,
109 String name=DynamicSashNameStr) -> DynamicSashWindow
110 """
111 newobj = _gizmos.new_DynamicSashWindow(*args, **kwargs)
112 self.this = newobj.this
113 self.thisown = 1
114 del newobj.thisown
115 self._setOORInfo(self)
116
117 def Create(*args, **kwargs):
118 """
119 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
120 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxDS_MANAGE_SCROLLBARS|wxDS_DRAG_CORNER,
121 String name=DynamicSashNameStr) -> bool
122 """
123 return _gizmos.DynamicSashWindow_Create(*args, **kwargs)
124
125 def GetHScrollBar(*args, **kwargs):
126 """GetHScrollBar(self, Window child) -> ScrollBar"""
127 return _gizmos.DynamicSashWindow_GetHScrollBar(*args, **kwargs)
128
129 def GetVScrollBar(*args, **kwargs):
130 """GetVScrollBar(self, Window child) -> ScrollBar"""
131 return _gizmos.DynamicSashWindow_GetVScrollBar(*args, **kwargs)
132
133
134 class DynamicSashWindowPtr(DynamicSashWindow):
135 def __init__(self, this):
136 self.this = this
137 if not hasattr(self,"thisown"): self.thisown = 0
138 self.__class__ = DynamicSashWindow
139 _gizmos.DynamicSashWindow_swigregister(DynamicSashWindowPtr)
140
141 def PreDynamicSashWindow(*args, **kwargs):
142 """PreDynamicSashWindow() -> DynamicSashWindow"""
143 val = _gizmos.new_PreDynamicSashWindow(*args, **kwargs)
144 val.thisown = 1
145 return val
146
147 EVT_DYNAMIC_SASH_SPLIT = wx.PyEventBinder( wxEVT_DYNAMIC_SASH_SPLIT, 1 )
148 EVT_DYNAMIC_SASH_UNIFY = wx.PyEventBinder( wxEVT_DYNAMIC_SASH_UNIFY, 1 )
149
150 EL_ALLOW_NEW = _gizmos.EL_ALLOW_NEW
151 EL_ALLOW_EDIT = _gizmos.EL_ALLOW_EDIT
152 EL_ALLOW_DELETE = _gizmos.EL_ALLOW_DELETE
153 class EditableListBox(_windows.Panel):
154 """Proxy of C++ EditableListBox class"""
155 def __repr__(self):
156 return "<%s.%s; proxy of C++ wxEditableListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
157 def __init__(self, *args, **kwargs):
158 """
159 __init__(self, Window parent, int id=-1, String label=EmptyString,
160 Point pos=DefaultPosition, Size size=DefaultSize,
161 long style=wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE,
162 String name=EditableListBoxNameStr) -> EditableListBox
163 """
164 newobj = _gizmos.new_EditableListBox(*args, **kwargs)
165 self.this = newobj.this
166 self.thisown = 1
167 del newobj.thisown
168 self._setOORInfo(self)
169
170 def SetStrings(*args, **kwargs):
171 """SetStrings(self, wxArrayString strings)"""
172 return _gizmos.EditableListBox_SetStrings(*args, **kwargs)
173
174 def GetStrings(*args, **kwargs):
175 """GetStrings(self) -> PyObject"""
176 return _gizmos.EditableListBox_GetStrings(*args, **kwargs)
177
178 def GetListCtrl(*args, **kwargs):
179 """GetListCtrl(self) -> ListCtrl"""
180 return _gizmos.EditableListBox_GetListCtrl(*args, **kwargs)
181
182 def GetDelButton(*args, **kwargs):
183 """GetDelButton(self) -> BitmapButton"""
184 return _gizmos.EditableListBox_GetDelButton(*args, **kwargs)
185
186 def GetNewButton(*args, **kwargs):
187 """GetNewButton(self) -> BitmapButton"""
188 return _gizmos.EditableListBox_GetNewButton(*args, **kwargs)
189
190 def GetUpButton(*args, **kwargs):
191 """GetUpButton(self) -> BitmapButton"""
192 return _gizmos.EditableListBox_GetUpButton(*args, **kwargs)
193
194 def GetDownButton(*args, **kwargs):
195 """GetDownButton(self) -> BitmapButton"""
196 return _gizmos.EditableListBox_GetDownButton(*args, **kwargs)
197
198 def GetEditButton(*args, **kwargs):
199 """GetEditButton(self) -> BitmapButton"""
200 return _gizmos.EditableListBox_GetEditButton(*args, **kwargs)
201
202
203 class EditableListBoxPtr(EditableListBox):
204 def __init__(self, this):
205 self.this = this
206 if not hasattr(self,"thisown"): self.thisown = 0
207 self.__class__ = EditableListBox
208 _gizmos.EditableListBox_swigregister(EditableListBoxPtr)
209
210 class RemotelyScrolledTreeCtrl(_controls.TreeCtrl):
211 """Proxy of C++ RemotelyScrolledTreeCtrl class"""
212 def __repr__(self):
213 return "<%s.%s; proxy of C++ wxRemotelyScrolledTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
214 def __init__(self, *args, **kwargs):
215 """
216 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
217 long style=TR_HAS_BUTTONS) -> RemotelyScrolledTreeCtrl
218 """
219 newobj = _gizmos.new_RemotelyScrolledTreeCtrl(*args, **kwargs)
220 self.this = newobj.this
221 self.thisown = 1
222 del newobj.thisown
223 self._setOORInfo(self)
224
225 def HideVScrollbar(*args, **kwargs):
226 """HideVScrollbar(self)"""
227 return _gizmos.RemotelyScrolledTreeCtrl_HideVScrollbar(*args, **kwargs)
228
229 def AdjustRemoteScrollbars(*args, **kwargs):
230 """AdjustRemoteScrollbars(self)"""
231 return _gizmos.RemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(*args, **kwargs)
232
233 def GetScrolledWindow(*args, **kwargs):
234 """GetScrolledWindow(self) -> ScrolledWindow"""
235 return _gizmos.RemotelyScrolledTreeCtrl_GetScrolledWindow(*args, **kwargs)
236
237 def ScrollToLine(*args, **kwargs):
238 """ScrollToLine(self, int posHoriz, int posVert)"""
239 return _gizmos.RemotelyScrolledTreeCtrl_ScrollToLine(*args, **kwargs)
240
241 def SetCompanionWindow(*args, **kwargs):
242 """SetCompanionWindow(self, Window companion)"""
243 return _gizmos.RemotelyScrolledTreeCtrl_SetCompanionWindow(*args, **kwargs)
244
245 def GetCompanionWindow(*args, **kwargs):
246 """GetCompanionWindow(self) -> Window"""
247 return _gizmos.RemotelyScrolledTreeCtrl_GetCompanionWindow(*args, **kwargs)
248
249
250 class RemotelyScrolledTreeCtrlPtr(RemotelyScrolledTreeCtrl):
251 def __init__(self, this):
252 self.this = this
253 if not hasattr(self,"thisown"): self.thisown = 0
254 self.__class__ = RemotelyScrolledTreeCtrl
255 _gizmos.RemotelyScrolledTreeCtrl_swigregister(RemotelyScrolledTreeCtrlPtr)
256
257 class TreeCompanionWindow(_core.Window):
258 """Proxy of C++ TreeCompanionWindow class"""
259 def __repr__(self):
260 return "<%s.%s; proxy of C++ wxPyTreeCompanionWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
261 def __init__(self, *args, **kwargs):
262 """
263 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
264 Size size=DefaultSize, long style=0) -> TreeCompanionWindow
265 """
266 newobj = _gizmos.new_TreeCompanionWindow(*args, **kwargs)
267 self.this = newobj.this
268 self.thisown = 1
269 del newobj.thisown
270 self._setOORInfo(self);self._setCallbackInfo(self, TreeCompanionWindow)
271
272 def _setCallbackInfo(*args, **kwargs):
273 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
274 return _gizmos.TreeCompanionWindow__setCallbackInfo(*args, **kwargs)
275
276 def GetTreeCtrl(*args, **kwargs):
277 """GetTreeCtrl(self) -> RemotelyScrolledTreeCtrl"""
278 return _gizmos.TreeCompanionWindow_GetTreeCtrl(*args, **kwargs)
279
280 def SetTreeCtrl(*args, **kwargs):
281 """SetTreeCtrl(self, RemotelyScrolledTreeCtrl treeCtrl)"""
282 return _gizmos.TreeCompanionWindow_SetTreeCtrl(*args, **kwargs)
283
284
285 class TreeCompanionWindowPtr(TreeCompanionWindow):
286 def __init__(self, this):
287 self.this = this
288 if not hasattr(self,"thisown"): self.thisown = 0
289 self.__class__ = TreeCompanionWindow
290 _gizmos.TreeCompanionWindow_swigregister(TreeCompanionWindowPtr)
291
292 class ThinSplitterWindow(_windows.SplitterWindow):
293 """Proxy of C++ ThinSplitterWindow class"""
294 def __repr__(self):
295 return "<%s.%s; proxy of C++ wxThinSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
296 def __init__(self, *args, **kwargs):
297 """
298 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
299 Size size=DefaultSize, long style=wxSP_3D|wxCLIP_CHILDREN) -> ThinSplitterWindow
300 """
301 newobj = _gizmos.new_ThinSplitterWindow(*args, **kwargs)
302 self.this = newobj.this
303 self.thisown = 1
304 del newobj.thisown
305 self._setOORInfo(self)
306
307
308 class ThinSplitterWindowPtr(ThinSplitterWindow):
309 def __init__(self, this):
310 self.this = this
311 if not hasattr(self,"thisown"): self.thisown = 0
312 self.__class__ = ThinSplitterWindow
313 _gizmos.ThinSplitterWindow_swigregister(ThinSplitterWindowPtr)
314
315 class SplitterScrolledWindow(_windows.ScrolledWindow):
316 """Proxy of C++ SplitterScrolledWindow class"""
317 def __repr__(self):
318 return "<%s.%s; proxy of C++ wxSplitterScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
319 def __init__(self, *args, **kwargs):
320 """
321 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
322 Size size=DefaultSize, long style=0) -> SplitterScrolledWindow
323 """
324 newobj = _gizmos.new_SplitterScrolledWindow(*args, **kwargs)
325 self.this = newobj.this
326 self.thisown = 1
327 del newobj.thisown
328 self._setOORInfo(self)
329
330
331 class SplitterScrolledWindowPtr(SplitterScrolledWindow):
332 def __init__(self, this):
333 self.this = this
334 if not hasattr(self,"thisown"): self.thisown = 0
335 self.__class__ = SplitterScrolledWindow
336 _gizmos.SplitterScrolledWindow_swigregister(SplitterScrolledWindowPtr)
337
338 LED_ALIGN_LEFT = _gizmos.LED_ALIGN_LEFT
339 LED_ALIGN_RIGHT = _gizmos.LED_ALIGN_RIGHT
340 LED_ALIGN_CENTER = _gizmos.LED_ALIGN_CENTER
341 LED_ALIGN_MASK = _gizmos.LED_ALIGN_MASK
342 LED_DRAW_FADED = _gizmos.LED_DRAW_FADED
343 class LEDNumberCtrl(_core.Control):
344 """Proxy of C++ LEDNumberCtrl class"""
345 def __repr__(self):
346 return "<%s.%s; proxy of C++ wxLEDNumberCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
347 def __init__(self, *args, **kwargs):
348 """
349 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
350 Size size=DefaultSize, long style=wxLED_ALIGN_LEFT|wxLED_DRAW_FADED) -> LEDNumberCtrl
351 """
352 newobj = _gizmos.new_LEDNumberCtrl(*args, **kwargs)
353 self.this = newobj.this
354 self.thisown = 1
355 del newobj.thisown
356 self._setOORInfo(self)
357
358 def Create(*args, **kwargs):
359 """
360 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
361 Size size=DefaultSize, long style=wxLED_ALIGN_LEFT|wxLED_DRAW_FADED) -> bool
362
363 Do the 2nd phase and create the GUI control.
364 """
365 return _gizmos.LEDNumberCtrl_Create(*args, **kwargs)
366
367 def GetAlignment(*args, **kwargs):
368 """GetAlignment(self) -> int"""
369 return _gizmos.LEDNumberCtrl_GetAlignment(*args, **kwargs)
370
371 def GetDrawFaded(*args, **kwargs):
372 """GetDrawFaded(self) -> bool"""
373 return _gizmos.LEDNumberCtrl_GetDrawFaded(*args, **kwargs)
374
375 def GetValue(*args, **kwargs):
376 """GetValue(self) -> String"""
377 return _gizmos.LEDNumberCtrl_GetValue(*args, **kwargs)
378
379 def SetAlignment(*args, **kwargs):
380 """SetAlignment(self, int Alignment, bool Redraw=True)"""
381 return _gizmos.LEDNumberCtrl_SetAlignment(*args, **kwargs)
382
383 def SetDrawFaded(*args, **kwargs):
384 """SetDrawFaded(self, bool DrawFaded, bool Redraw=True)"""
385 return _gizmos.LEDNumberCtrl_SetDrawFaded(*args, **kwargs)
386
387 def SetValue(*args, **kwargs):
388 """SetValue(self, String Value, bool Redraw=True)"""
389 return _gizmos.LEDNumberCtrl_SetValue(*args, **kwargs)
390
391
392 class LEDNumberCtrlPtr(LEDNumberCtrl):
393 def __init__(self, this):
394 self.this = this
395 if not hasattr(self,"thisown"): self.thisown = 0
396 self.__class__ = LEDNumberCtrl
397 _gizmos.LEDNumberCtrl_swigregister(LEDNumberCtrlPtr)
398
399 def PreLEDNumberCtrl(*args, **kwargs):
400 """PreLEDNumberCtrl() -> LEDNumberCtrl"""
401 val = _gizmos.new_PreLEDNumberCtrl(*args, **kwargs)
402 val.thisown = 1
403 return val
404
405 TL_ALIGN_LEFT = _gizmos.TL_ALIGN_LEFT
406 TL_ALIGN_RIGHT = _gizmos.TL_ALIGN_RIGHT
407 TL_ALIGN_CENTER = _gizmos.TL_ALIGN_CENTER
408 TREE_HITTEST_ONITEMCOLUMN = _gizmos.TREE_HITTEST_ONITEMCOLUMN
409 TL_SEARCH_VISIBLE = _gizmos.TL_SEARCH_VISIBLE
410 TL_SEARCH_LEVEL = _gizmos.TL_SEARCH_LEVEL
411 TL_SEARCH_FULL = _gizmos.TL_SEARCH_FULL
412 TL_SEARCH_PARTIAL = _gizmos.TL_SEARCH_PARTIAL
413 TL_SEARCH_NOCASE = _gizmos.TL_SEARCH_NOCASE
414 TR_DONT_ADJUST_MAC = _gizmos.TR_DONT_ADJUST_MAC
415 wx.TR_DONT_ADJUST_MAC = TR_DONT_ADJUST_MAC
416 class TreeListColumnInfo(_core.Object):
417 """Proxy of C++ TreeListColumnInfo class"""
418 def __repr__(self):
419 return "<%s.%s; proxy of C++ wxTreeListColumnInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
420 def __init__(self, *args, **kwargs):
421 """
422 __init__(self, String text=EmptyString, int image=-1, size_t width=100,
423 bool shown=True, int alignment=TL_ALIGN_LEFT) -> TreeListColumnInfo
424 """
425 newobj = _gizmos.new_TreeListColumnInfo(*args, **kwargs)
426 self.this = newobj.this
427 self.thisown = 1
428 del newobj.thisown
429 def GetShown(*args, **kwargs):
430 """GetShown(self) -> bool"""
431 return _gizmos.TreeListColumnInfo_GetShown(*args, **kwargs)
432
433 def GetAlignment(*args, **kwargs):
434 """GetAlignment(self) -> int"""
435 return _gizmos.TreeListColumnInfo_GetAlignment(*args, **kwargs)
436
437 def GetText(*args, **kwargs):
438 """GetText(self) -> String"""
439 return _gizmos.TreeListColumnInfo_GetText(*args, **kwargs)
440
441 def GetImage(*args, **kwargs):
442 """GetImage(self) -> int"""
443 return _gizmos.TreeListColumnInfo_GetImage(*args, **kwargs)
444
445 def GetSelectedImage(*args, **kwargs):
446 """GetSelectedImage(self) -> int"""
447 return _gizmos.TreeListColumnInfo_GetSelectedImage(*args, **kwargs)
448
449 def GetWidth(*args, **kwargs):
450 """GetWidth(self) -> size_t"""
451 return _gizmos.TreeListColumnInfo_GetWidth(*args, **kwargs)
452
453 def SetShown(*args, **kwargs):
454 """SetShown(self, bool shown)"""
455 return _gizmos.TreeListColumnInfo_SetShown(*args, **kwargs)
456
457 def SetAlignment(*args, **kwargs):
458 """SetAlignment(self, int alignment)"""
459 return _gizmos.TreeListColumnInfo_SetAlignment(*args, **kwargs)
460
461 def SetText(*args, **kwargs):
462 """SetText(self, String text)"""
463 return _gizmos.TreeListColumnInfo_SetText(*args, **kwargs)
464
465 def SetImage(*args, **kwargs):
466 """SetImage(self, int image)"""
467 return _gizmos.TreeListColumnInfo_SetImage(*args, **kwargs)
468
469 def SetSelectedImage(*args, **kwargs):
470 """SetSelectedImage(self, int image)"""
471 return _gizmos.TreeListColumnInfo_SetSelectedImage(*args, **kwargs)
472
473 def SetWidth(*args, **kwargs):
474 """SetWidth(self, size_t with)"""
475 return _gizmos.TreeListColumnInfo_SetWidth(*args, **kwargs)
476
477
478 class TreeListColumnInfoPtr(TreeListColumnInfo):
479 def __init__(self, this):
480 self.this = this
481 if not hasattr(self,"thisown"): self.thisown = 0
482 self.__class__ = TreeListColumnInfo
483 _gizmos.TreeListColumnInfo_swigregister(TreeListColumnInfoPtr)
484
485 class TreeListCtrl(_core.Control):
486 """Proxy of C++ TreeListCtrl class"""
487 def __repr__(self):
488 return "<%s.%s; proxy of C++ wxPyTreeListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
489 def __init__(self, *args, **kwargs):
490 """
491 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
492 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
493 Validator validator=DefaultValidator,
494 String name=TreeListCtrlNameStr) -> TreeListCtrl
495 """
496 newobj = _gizmos.new_TreeListCtrl(*args, **kwargs)
497 self.this = newobj.this
498 self.thisown = 1
499 del newobj.thisown
500 self._setOORInfo(self);self._setCallbackInfo(self, TreeListCtrl)
501
502 def Create(*args, **kwargs):
503 """
504 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
505 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
506 Validator validator=DefaultValidator,
507 String name=TreeListCtrlNameStr) -> bool
508
509 Do the 2nd phase and create the GUI control.
510 """
511 return _gizmos.TreeListCtrl_Create(*args, **kwargs)
512
513 def _setCallbackInfo(*args, **kwargs):
514 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
515 return _gizmos.TreeListCtrl__setCallbackInfo(*args, **kwargs)
516
517 def GetCount(*args, **kwargs):
518 """GetCount(self) -> size_t"""
519 return _gizmos.TreeListCtrl_GetCount(*args, **kwargs)
520
521 def GetIndent(*args, **kwargs):
522 """GetIndent(self) -> unsigned int"""
523 return _gizmos.TreeListCtrl_GetIndent(*args, **kwargs)
524
525 def SetIndent(*args, **kwargs):
526 """SetIndent(self, unsigned int indent)"""
527 return _gizmos.TreeListCtrl_SetIndent(*args, **kwargs)
528
529 def GetLineSpacing(*args, **kwargs):
530 """GetLineSpacing(self) -> unsigned int"""
531 return _gizmos.TreeListCtrl_GetLineSpacing(*args, **kwargs)
532
533 def SetLineSpacing(*args, **kwargs):
534 """SetLineSpacing(self, unsigned int spacing)"""
535 return _gizmos.TreeListCtrl_SetLineSpacing(*args, **kwargs)
536
537 def GetImageList(*args, **kwargs):
538 """GetImageList(self) -> ImageList"""
539 return _gizmos.TreeListCtrl_GetImageList(*args, **kwargs)
540
541 def GetStateImageList(*args, **kwargs):
542 """GetStateImageList(self) -> ImageList"""
543 return _gizmos.TreeListCtrl_GetStateImageList(*args, **kwargs)
544
545 def GetButtonsImageList(*args, **kwargs):
546 """GetButtonsImageList(self) -> ImageList"""
547 return _gizmos.TreeListCtrl_GetButtonsImageList(*args, **kwargs)
548
549 def SetImageList(*args, **kwargs):
550 """SetImageList(self, ImageList imageList)"""
551 return _gizmos.TreeListCtrl_SetImageList(*args, **kwargs)
552
553 def SetStateImageList(*args, **kwargs):
554 """SetStateImageList(self, ImageList imageList)"""
555 return _gizmos.TreeListCtrl_SetStateImageList(*args, **kwargs)
556
557 def SetButtonsImageList(*args, **kwargs):
558 """SetButtonsImageList(self, ImageList imageList)"""
559 return _gizmos.TreeListCtrl_SetButtonsImageList(*args, **kwargs)
560
561 def AssignImageList(*args, **kwargs):
562 """AssignImageList(self, ImageList imageList)"""
563 return _gizmos.TreeListCtrl_AssignImageList(*args, **kwargs)
564
565 def AssignStateImageList(*args, **kwargs):
566 """AssignStateImageList(self, ImageList imageList)"""
567 return _gizmos.TreeListCtrl_AssignStateImageList(*args, **kwargs)
568
569 def AssignButtonsImageList(*args, **kwargs):
570 """AssignButtonsImageList(self, ImageList imageList)"""
571 return _gizmos.TreeListCtrl_AssignButtonsImageList(*args, **kwargs)
572
573 def AddColumn(*args, **kwargs):
574 """AddColumn(self, String text)"""
575 return _gizmos.TreeListCtrl_AddColumn(*args, **kwargs)
576
577 def AddColumnInfo(*args, **kwargs):
578 """AddColumnInfo(self, TreeListColumnInfo col)"""
579 return _gizmos.TreeListCtrl_AddColumnInfo(*args, **kwargs)
580
581 def InsertColumn(*args, **kwargs):
582 """InsertColumn(self, size_t before, String text)"""
583 return _gizmos.TreeListCtrl_InsertColumn(*args, **kwargs)
584
585 def InsertColumnInfo(*args, **kwargs):
586 """InsertColumnInfo(self, size_t before, TreeListColumnInfo col)"""
587 return _gizmos.TreeListCtrl_InsertColumnInfo(*args, **kwargs)
588
589 def RemoveColumn(*args, **kwargs):
590 """RemoveColumn(self, size_t column)"""
591 return _gizmos.TreeListCtrl_RemoveColumn(*args, **kwargs)
592
593 def GetColumnCount(*args, **kwargs):
594 """GetColumnCount(self) -> size_t"""
595 return _gizmos.TreeListCtrl_GetColumnCount(*args, **kwargs)
596
597 def SetColumnWidth(*args, **kwargs):
598 """SetColumnWidth(self, size_t column, size_t width)"""
599 return _gizmos.TreeListCtrl_SetColumnWidth(*args, **kwargs)
600
601 def GetColumnWidth(*args, **kwargs):
602 """GetColumnWidth(self, size_t column) -> int"""
603 return _gizmos.TreeListCtrl_GetColumnWidth(*args, **kwargs)
604
605 def SetMainColumn(*args, **kwargs):
606 """SetMainColumn(self, size_t column)"""
607 return _gizmos.TreeListCtrl_SetMainColumn(*args, **kwargs)
608
609 def GetMainColumn(*args, **kwargs):
610 """GetMainColumn(self) -> size_t"""
611 return _gizmos.TreeListCtrl_GetMainColumn(*args, **kwargs)
612
613 def SetColumnText(*args, **kwargs):
614 """SetColumnText(self, size_t column, String text)"""
615 return _gizmos.TreeListCtrl_SetColumnText(*args, **kwargs)
616
617 def GetColumnText(*args, **kwargs):
618 """GetColumnText(self, size_t column) -> String"""
619 return _gizmos.TreeListCtrl_GetColumnText(*args, **kwargs)
620
621 def SetColumn(*args, **kwargs):
622 """SetColumn(self, size_t column, TreeListColumnInfo info)"""
623 return _gizmos.TreeListCtrl_SetColumn(*args, **kwargs)
624
625 def GetColumn(*args, **kwargs):
626 """GetColumn(self, size_t column) -> TreeListColumnInfo"""
627 return _gizmos.TreeListCtrl_GetColumn(*args, **kwargs)
628
629 def SetColumnAlignment(*args, **kwargs):
630 """SetColumnAlignment(self, size_t column, int align)"""
631 return _gizmos.TreeListCtrl_SetColumnAlignment(*args, **kwargs)
632
633 def GetColumnAlignment(*args, **kwargs):
634 """GetColumnAlignment(self, size_t column) -> int"""
635 return _gizmos.TreeListCtrl_GetColumnAlignment(*args, **kwargs)
636
637 def SetColumnImage(*args, **kwargs):
638 """SetColumnImage(self, size_t column, int image)"""
639 return _gizmos.TreeListCtrl_SetColumnImage(*args, **kwargs)
640
641 def GetColumnImage(*args, **kwargs):
642 """GetColumnImage(self, size_t column) -> int"""
643 return _gizmos.TreeListCtrl_GetColumnImage(*args, **kwargs)
644
645 def ShowColumn(*args, **kwargs):
646 """ShowColumn(self, size_t column, bool shown)"""
647 return _gizmos.TreeListCtrl_ShowColumn(*args, **kwargs)
648
649 def IsColumnShown(*args, **kwargs):
650 """IsColumnShown(self, size_t column) -> bool"""
651 return _gizmos.TreeListCtrl_IsColumnShown(*args, **kwargs)
652
653 def GetItemText(*args, **kwargs):
654 """GetItemText(self, TreeItemId item, int column=-1) -> String"""
655 return _gizmos.TreeListCtrl_GetItemText(*args, **kwargs)
656
657 def GetItemImage(*args, **kwargs):
658 """GetItemImage(self, TreeItemId item, int column=-1, int which=TreeItemIcon_Normal) -> int"""
659 return _gizmos.TreeListCtrl_GetItemImage(*args, **kwargs)
660
661 def SetItemText(*args, **kwargs):
662 """SetItemText(self, TreeItemId item, String text, int column=-1)"""
663 return _gizmos.TreeListCtrl_SetItemText(*args, **kwargs)
664
665 def SetItemImage(*args, **kwargs):
666 """SetItemImage(self, TreeItemId item, int image, int column=-1, int which=TreeItemIcon_Normal)"""
667 return _gizmos.TreeListCtrl_SetItemImage(*args, **kwargs)
668
669 def GetItemData(*args, **kwargs):
670 """GetItemData(self, TreeItemId item) -> TreeItemData"""
671 return _gizmos.TreeListCtrl_GetItemData(*args, **kwargs)
672
673 def SetItemData(*args, **kwargs):
674 """SetItemData(self, TreeItemId item, TreeItemData data)"""
675 return _gizmos.TreeListCtrl_SetItemData(*args, **kwargs)
676
677 def GetItemPyData(*args, **kwargs):
678 """GetItemPyData(self, TreeItemId item) -> PyObject"""
679 return _gizmos.TreeListCtrl_GetItemPyData(*args, **kwargs)
680
681 def SetItemPyData(*args, **kwargs):
682 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
683 return _gizmos.TreeListCtrl_SetItemPyData(*args, **kwargs)
684
685 GetPyData = GetItemPyData
686 SetPyData = SetItemPyData
687 def SetItemHasChildren(*args, **kwargs):
688 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
689 return _gizmos.TreeListCtrl_SetItemHasChildren(*args, **kwargs)
690
691 def SetItemBold(*args, **kwargs):
692 """SetItemBold(self, TreeItemId item, bool bold=True)"""
693 return _gizmos.TreeListCtrl_SetItemBold(*args, **kwargs)
694
695 def SetItemTextColour(*args, **kwargs):
696 """SetItemTextColour(self, TreeItemId item, Colour colour)"""
697 return _gizmos.TreeListCtrl_SetItemTextColour(*args, **kwargs)
698
699 def SetItemBackgroundColour(*args, **kwargs):
700 """SetItemBackgroundColour(self, TreeItemId item, Colour colour)"""
701 return _gizmos.TreeListCtrl_SetItemBackgroundColour(*args, **kwargs)
702
703 def SetItemFont(*args, **kwargs):
704 """SetItemFont(self, TreeItemId item, Font font)"""
705 return _gizmos.TreeListCtrl_SetItemFont(*args, **kwargs)
706
707 def GetItemBold(*args, **kwargs):
708 """GetItemBold(self, TreeItemId item) -> bool"""
709 return _gizmos.TreeListCtrl_GetItemBold(*args, **kwargs)
710
711 def GetItemTextColour(*args, **kwargs):
712 """GetItemTextColour(self, TreeItemId item) -> Colour"""
713 return _gizmos.TreeListCtrl_GetItemTextColour(*args, **kwargs)
714
715 def GetItemBackgroundColour(*args, **kwargs):
716 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
717 return _gizmos.TreeListCtrl_GetItemBackgroundColour(*args, **kwargs)
718
719 def GetItemFont(*args, **kwargs):
720 """GetItemFont(self, TreeItemId item) -> Font"""
721 return _gizmos.TreeListCtrl_GetItemFont(*args, **kwargs)
722
723 def IsVisible(*args, **kwargs):
724 """IsVisible(self, TreeItemId item) -> bool"""
725 return _gizmos.TreeListCtrl_IsVisible(*args, **kwargs)
726
727 def ItemHasChildren(*args, **kwargs):
728 """ItemHasChildren(self, TreeItemId item) -> bool"""
729 return _gizmos.TreeListCtrl_ItemHasChildren(*args, **kwargs)
730
731 def IsExpanded(*args, **kwargs):
732 """IsExpanded(self, TreeItemId item) -> bool"""
733 return _gizmos.TreeListCtrl_IsExpanded(*args, **kwargs)
734
735 def IsSelected(*args, **kwargs):
736 """IsSelected(self, TreeItemId item) -> bool"""
737 return _gizmos.TreeListCtrl_IsSelected(*args, **kwargs)
738
739 def IsBold(*args, **kwargs):
740 """IsBold(self, TreeItemId item) -> bool"""
741 return _gizmos.TreeListCtrl_IsBold(*args, **kwargs)
742
743 def GetChildrenCount(*args, **kwargs):
744 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
745 return _gizmos.TreeListCtrl_GetChildrenCount(*args, **kwargs)
746
747 def GetRootItem(*args, **kwargs):
748 """GetRootItem(self) -> TreeItemId"""
749 return _gizmos.TreeListCtrl_GetRootItem(*args, **kwargs)
750
751 def GetSelection(*args, **kwargs):
752 """GetSelection(self) -> TreeItemId"""
753 return _gizmos.TreeListCtrl_GetSelection(*args, **kwargs)
754
755 def GetSelections(*args, **kwargs):
756 """GetSelections(self) -> PyObject"""
757 return _gizmos.TreeListCtrl_GetSelections(*args, **kwargs)
758
759 def GetItemParent(*args, **kwargs):
760 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
761 return _gizmos.TreeListCtrl_GetItemParent(*args, **kwargs)
762
763 def GetFirstChild(*args, **kwargs):
764 """GetFirstChild(self, TreeItemId item) -> PyObject"""
765 return _gizmos.TreeListCtrl_GetFirstChild(*args, **kwargs)
766
767 def GetNextChild(*args, **kwargs):
768 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
769 return _gizmos.TreeListCtrl_GetNextChild(*args, **kwargs)
770
771 def GetLastChild(*args, **kwargs):
772 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
773 return _gizmos.TreeListCtrl_GetLastChild(*args, **kwargs)
774
775 def GetNextSibling(*args, **kwargs):
776 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
777 return _gizmos.TreeListCtrl_GetNextSibling(*args, **kwargs)
778
779 def GetPrevSibling(*args, **kwargs):
780 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
781 return _gizmos.TreeListCtrl_GetPrevSibling(*args, **kwargs)
782
783 def GetFirstVisibleItem(*args, **kwargs):
784 """GetFirstVisibleItem(self) -> TreeItemId"""
785 return _gizmos.TreeListCtrl_GetFirstVisibleItem(*args, **kwargs)
786
787 def GetNextVisible(*args, **kwargs):
788 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
789 return _gizmos.TreeListCtrl_GetNextVisible(*args, **kwargs)
790
791 def GetPrevVisible(*args, **kwargs):
792 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
793 return _gizmos.TreeListCtrl_GetPrevVisible(*args, **kwargs)
794
795 def GetNext(*args, **kwargs):
796 """GetNext(self, TreeItemId item) -> TreeItemId"""
797 return _gizmos.TreeListCtrl_GetNext(*args, **kwargs)
798
799 def AddRoot(*args, **kwargs):
800 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
801 return _gizmos.TreeListCtrl_AddRoot(*args, **kwargs)
802
803 def PrependItem(*args, **kwargs):
804 """
805 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
806 TreeItemData data=None) -> TreeItemId
807 """
808 return _gizmos.TreeListCtrl_PrependItem(*args, **kwargs)
809
810 def InsertItem(*args, **kwargs):
811 """
812 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
813 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
814 """
815 return _gizmos.TreeListCtrl_InsertItem(*args, **kwargs)
816
817 def InsertItemBefore(*args, **kwargs):
818 """
819 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
820 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
821 """
822 return _gizmos.TreeListCtrl_InsertItemBefore(*args, **kwargs)
823
824 def AppendItem(*args, **kwargs):
825 """
826 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
827 TreeItemData data=None) -> TreeItemId
828 """
829 return _gizmos.TreeListCtrl_AppendItem(*args, **kwargs)
830
831 def Delete(*args, **kwargs):
832 """Delete(self, TreeItemId item)"""
833 return _gizmos.TreeListCtrl_Delete(*args, **kwargs)
834
835 def DeleteChildren(*args, **kwargs):
836 """DeleteChildren(self, TreeItemId item)"""
837 return _gizmos.TreeListCtrl_DeleteChildren(*args, **kwargs)
838
839 def DeleteAllItems(*args, **kwargs):
840 """DeleteAllItems(self)"""
841 return _gizmos.TreeListCtrl_DeleteAllItems(*args, **kwargs)
842
843 def Expand(*args, **kwargs):
844 """Expand(self, TreeItemId item)"""
845 return _gizmos.TreeListCtrl_Expand(*args, **kwargs)
846
847 def ExpandAll(*args, **kwargs):
848 """ExpandAll(self, TreeItemId item)"""
849 return _gizmos.TreeListCtrl_ExpandAll(*args, **kwargs)
850
851 def Collapse(*args, **kwargs):
852 """Collapse(self, TreeItemId item)"""
853 return _gizmos.TreeListCtrl_Collapse(*args, **kwargs)
854
855 def CollapseAndReset(*args, **kwargs):
856 """CollapseAndReset(self, TreeItemId item)"""
857 return _gizmos.TreeListCtrl_CollapseAndReset(*args, **kwargs)
858
859 def Toggle(*args, **kwargs):
860 """Toggle(self, TreeItemId item)"""
861 return _gizmos.TreeListCtrl_Toggle(*args, **kwargs)
862
863 def Unselect(*args, **kwargs):
864 """Unselect(self)"""
865 return _gizmos.TreeListCtrl_Unselect(*args, **kwargs)
866
867 def UnselectAll(*args, **kwargs):
868 """UnselectAll(self)"""
869 return _gizmos.TreeListCtrl_UnselectAll(*args, **kwargs)
870
871 def SelectItem(*args, **kwargs):
872 """SelectItem(self, TreeItemId item, bool unselect_others=True, bool extended_select=False)"""
873 return _gizmos.TreeListCtrl_SelectItem(*args, **kwargs)
874
875 def SelectAll(*args, **kwargs):
876 """SelectAll(self, bool extended_select=False)"""
877 return _gizmos.TreeListCtrl_SelectAll(*args, **kwargs)
878
879 def EnsureVisible(*args, **kwargs):
880 """EnsureVisible(self, TreeItemId item)"""
881 return _gizmos.TreeListCtrl_EnsureVisible(*args, **kwargs)
882
883 def ScrollTo(*args, **kwargs):
884 """ScrollTo(self, TreeItemId item)"""
885 return _gizmos.TreeListCtrl_ScrollTo(*args, **kwargs)
886
887 def HitTest(*args, **kwargs):
888 """HitTest(self, Point point, int OUTPUT, int OUTPUT) -> TreeItemId"""
889 return _gizmos.TreeListCtrl_HitTest(*args, **kwargs)
890
891 def GetBoundingRect(*args, **kwargs):
892 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
893 return _gizmos.TreeListCtrl_GetBoundingRect(*args, **kwargs)
894
895 def EditLabel(*args, **kwargs):
896 """EditLabel(self, TreeItemId item)"""
897 return _gizmos.TreeListCtrl_EditLabel(*args, **kwargs)
898
899 def Edit(*args, **kwargs):
900 """Edit(self, TreeItemId item)"""
901 return _gizmos.TreeListCtrl_Edit(*args, **kwargs)
902
903 def SortChildren(*args, **kwargs):
904 """SortChildren(self, TreeItemId item)"""
905 return _gizmos.TreeListCtrl_SortChildren(*args, **kwargs)
906
907 def FindItem(*args, **kwargs):
908 """FindItem(self, TreeItemId item, String str, int flags=0) -> TreeItemId"""
909 return _gizmos.TreeListCtrl_FindItem(*args, **kwargs)
910
911 def GetHeaderWindow(*args, **kwargs):
912 """GetHeaderWindow(self) -> Window"""
913 return _gizmos.TreeListCtrl_GetHeaderWindow(*args, **kwargs)
914
915 def GetMainWindow(*args, **kwargs):
916 """GetMainWindow(self) -> ScrolledWindow"""
917 return _gizmos.TreeListCtrl_GetMainWindow(*args, **kwargs)
918
919
920 class TreeListCtrlPtr(TreeListCtrl):
921 def __init__(self, this):
922 self.this = this
923 if not hasattr(self,"thisown"): self.thisown = 0
924 self.__class__ = TreeListCtrl
925 _gizmos.TreeListCtrl_swigregister(TreeListCtrlPtr)
926
927 def PreTreeListCtrl(*args, **kwargs):
928 """PreTreeListCtrl() -> TreeListCtrl"""
929 val = _gizmos.new_PreTreeListCtrl(*args, **kwargs)
930 val.thisown = 1
931 return val
932
933