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