]>
Commit | Line | Data |
---|---|---|
0085ce49 | 1 | # This file was created automatically by SWIG 1.3.29. |
d14a1e28 RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
54f9ee45 | 4 | import _controls_ |
0085ce49 RD |
5 | import new |
6 | new_instancemethod = new.instancemethod | |
093d3ff1 | 7 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
0085ce49 | 8 | if (name == "thisown"): return self.this.own(value) |
093d3ff1 | 9 | if (name == "this"): |
0085ce49 RD |
10 | if type(value).__name__ == 'PySwigObject': |
11 | self.__dict__[name] = value | |
093d3ff1 RD |
12 | return |
13 | method = class_type.__swig_setmethods__.get(name,None) | |
14 | if method: return method(self,value) | |
0085ce49 | 15 | if (not static) or hasattr(self,name): |
093d3ff1 RD |
16 | self.__dict__[name] = value |
17 | else: | |
18 | raise AttributeError("You cannot add attributes to %s" % self) | |
19 | ||
20 | def _swig_setattr(self,class_type,name,value): | |
21 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
22 | ||
23 | def _swig_getattr(self,class_type,name): | |
0085ce49 | 24 | if (name == "thisown"): return self.this.own() |
093d3ff1 RD |
25 | method = class_type.__swig_getmethods__.get(name,None) |
26 | if method: return method(self) | |
27 | raise AttributeError,name | |
28 | ||
0085ce49 RD |
29 | def _swig_repr(self): |
30 | try: strthis = "proxy of " + self.this.__repr__() | |
31 | except: strthis = "" | |
32 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
33 | ||
093d3ff1 RD |
34 | import types |
35 | try: | |
36 | _object = types.ObjectType | |
37 | _newclass = 1 | |
38 | except AttributeError: | |
39 | class _object : pass | |
40 | _newclass = 0 | |
41 | del types | |
42 | ||
43 | ||
44 | def _swig_setattr_nondynamic_method(set): | |
45 | def set_attr(self,name,value): | |
0085ce49 RD |
46 | if (name == "thisown"): return self.this.own(value) |
47 | if hasattr(self,name) or (name == "this"): | |
093d3ff1 RD |
48 | set(self,name,value) |
49 | else: | |
50 | raise AttributeError("You cannot add attributes to %s" % self) | |
51 | return set_attr | |
52 | ||
53 | ||
54f9ee45 RD |
54 | import _core |
55 | wx = _core | |
d14a1e28 RD |
56 | #--------------------------------------------------------------------------- |
57 | ||
54f9ee45 RD |
58 | BU_LEFT = _controls_.BU_LEFT |
59 | BU_TOP = _controls_.BU_TOP | |
60 | BU_RIGHT = _controls_.BU_RIGHT | |
61 | BU_BOTTOM = _controls_.BU_BOTTOM | |
8fb0e70a | 62 | BU_ALIGN_MASK = _controls_.BU_ALIGN_MASK |
54f9ee45 RD |
63 | BU_EXACTFIT = _controls_.BU_EXACTFIT |
64 | BU_AUTODRAW = _controls_.BU_AUTODRAW | |
65 | class Button(_core.Control): | |
0df68c9f RD |
66 | """ |
67 | A button is a control that contains a text string, and is one of the most | |
68 | common elements of a GUI. It may be placed on a dialog box or panel, or | |
69 | indeed almost any other window. | |
70 | """ | |
0085ce49 RD |
71 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
72 | __repr__ = _swig_repr | |
73 | def __init__(self, *args, **kwargs): | |
0df68c9f | 74 | """ |
248ed943 RD |
75 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
76 | Point pos=DefaultPosition, Size size=DefaultSize, | |
77 | long style=0, Validator validator=DefaultValidator, | |
78 | String name=ButtonNameStr) -> Button | |
0df68c9f | 79 | |
7bc1e663 RD |
80 | Create and show a button. The preferred way to create standard |
81 | buttons is to use a standard ID and an empty label. In this case | |
82 | wxWigets will automatically use a stock label that coresponds to the | |
83 | ID given. In additon, the button will be decorated with stock icons | |
84 | under GTK+ 2. | |
0df68c9f | 85 | """ |
0085ce49 | 86 | _controls_.Button_swiginit(self,_controls_.new_Button(*args, **kwargs)) |
d14a1e28 | 87 | self._setOORInfo(self) |
e811c8ce RD |
88 | |
89 | def Create(*args, **kwargs): | |
0df68c9f | 90 | """ |
248ed943 RD |
91 | Create(self, Window parent, int id=-1, String label=EmptyString, |
92 | Point pos=DefaultPosition, Size size=DefaultSize, | |
93 | long style=0, Validator validator=DefaultValidator, | |
94 | String name=ButtonNameStr) -> bool | |
0df68c9f RD |
95 | |
96 | Acutally create the GUI Button for 2-phase creation. | |
97 | """ | |
54f9ee45 | 98 | return _controls_.Button_Create(*args, **kwargs) |
e811c8ce RD |
99 | |
100 | def SetDefault(*args, **kwargs): | |
0df68c9f | 101 | """ |
a95a7133 | 102 | SetDefault(self) |
1e0c8722 | 103 | |
0df68c9f RD |
104 | This sets the button to be the default item for the panel or dialog box. |
105 | """ | |
54f9ee45 | 106 | return _controls_.Button_SetDefault(*args, **kwargs) |
e811c8ce RD |
107 | |
108 | def GetDefaultSize(*args, **kwargs): | |
66c033b4 RD |
109 | """ |
110 | GetDefaultSize() -> Size | |
111 | ||
112 | Returns the default button size for this platform. | |
113 | """ | |
54f9ee45 | 114 | return _controls_.Button_GetDefaultSize(*args, **kwargs) |
e811c8ce RD |
115 | |
116 | GetDefaultSize = staticmethod(GetDefaultSize) | |
22bfe96c | 117 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
118 | """ |
119 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
120 | ||
121 | Get the default attributes for this class. This is useful if you want | |
122 | to use the same font or colour in your own control as in a standard | |
123 | control -- which is a much better idea than hard coding specific | |
124 | colours or fonts which might look completely out of place on the | |
125 | user's system, especially if it uses themes. | |
126 | ||
127 | The variant parameter is only relevant under Mac currently and is | |
128 | ignore under other platforms. Under Mac, it will change the size of | |
129 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
130 | this. | |
131 | """ | |
22bfe96c RD |
132 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) |
133 | ||
134 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
135 | Button_swigregister = _controls_.Button_swigregister |
136 | Button_swigregister(Button) | |
54f9ee45 | 137 | cvar = _controls_.cvar |
b2dc1044 | 138 | ButtonNameStr = cvar.ButtonNameStr |
70551f47 | 139 | |
d14a1e28 | 140 | def PreButton(*args, **kwargs): |
0df68c9f RD |
141 | """ |
142 | PreButton() -> Button | |
1e0c8722 | 143 | |
0df68c9f RD |
144 | Precreate a Button for 2-phase creation. |
145 | """ | |
54f9ee45 | 146 | val = _controls_.new_PreButton(*args, **kwargs) |
d14a1e28 | 147 | return val |
70551f47 | 148 | |
0085ce49 RD |
149 | def Button_GetDefaultSize(*args): |
150 | """ | |
66c033b4 RD |
151 | Button_GetDefaultSize() -> Size |
152 | ||
153 | Returns the default button size for this platform. | |
154 | """ | |
0085ce49 | 155 | return _controls_.Button_GetDefaultSize(*args) |
a323d3bd | 156 | |
22bfe96c | 157 | def Button_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 158 | """ |
110da5b0 RD |
159 | Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
160 | ||
161 | Get the default attributes for this class. This is useful if you want | |
162 | to use the same font or colour in your own control as in a standard | |
163 | control -- which is a much better idea than hard coding specific | |
164 | colours or fonts which might look completely out of place on the | |
165 | user's system, especially if it uses themes. | |
166 | ||
167 | The variant parameter is only relevant under Mac currently and is | |
168 | ignore under other platforms. Under Mac, it will change the size of | |
169 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
170 | this. | |
171 | """ | |
0085ce49 | 172 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 173 | |
d14a1e28 | 174 | class BitmapButton(Button): |
98e665d3 RD |
175 | """ |
176 | A Button that contains a bitmap. A bitmap button can be supplied with a | |
66c033b4 | 177 | single bitmap, and wxWidgets will draw all button states using this bitmap. If |
98e665d3 RD |
178 | the application needs more control, additional bitmaps for the selected state, |
179 | unpressed focused state, and greyed-out state may be supplied. | |
98e665d3 | 180 | """ |
0085ce49 RD |
181 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
182 | __repr__ = _swig_repr | |
183 | def __init__(self, *args, **kwargs): | |
0df68c9f | 184 | """ |
248ed943 RD |
185 | __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
186 | Point pos=DefaultPosition, Size size=DefaultSize, | |
187 | long style=BU_AUTODRAW, Validator validator=DefaultValidator, | |
b2dc1044 | 188 | String name=ButtonNameStr) -> BitmapButton |
0df68c9f | 189 | |
98e665d3 | 190 | Create and show a button with a bitmap for the label. |
0df68c9f | 191 | """ |
0085ce49 | 192 | _controls_.BitmapButton_swiginit(self,_controls_.new_BitmapButton(*args, **kwargs)) |
d14a1e28 | 193 | self._setOORInfo(self) |
e811c8ce RD |
194 | |
195 | def Create(*args, **kwargs): | |
0df68c9f | 196 | """ |
248ed943 RD |
197 | Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
198 | Point pos=DefaultPosition, Size size=DefaultSize, | |
199 | long style=BU_AUTODRAW, Validator validator=DefaultValidator, | |
b2dc1044 | 200 | String name=ButtonNameStr) -> bool |
0df68c9f RD |
201 | |
202 | Acutally create the GUI BitmapButton for 2-phase creation. | |
203 | """ | |
54f9ee45 | 204 | return _controls_.BitmapButton_Create(*args, **kwargs) |
e811c8ce RD |
205 | |
206 | def GetBitmapLabel(*args, **kwargs): | |
0df68c9f | 207 | """ |
a95a7133 | 208 | GetBitmapLabel(self) -> Bitmap |
1e0c8722 | 209 | |
0df68c9f RD |
210 | Returns the label bitmap (the one passed to the constructor). |
211 | """ | |
54f9ee45 | 212 | return _controls_.BitmapButton_GetBitmapLabel(*args, **kwargs) |
e811c8ce RD |
213 | |
214 | def GetBitmapDisabled(*args, **kwargs): | |
0df68c9f | 215 | """ |
a95a7133 | 216 | GetBitmapDisabled(self) -> Bitmap |
1e0c8722 | 217 | |
0df68c9f RD |
218 | Returns the bitmap for the disabled state. |
219 | """ | |
54f9ee45 | 220 | return _controls_.BitmapButton_GetBitmapDisabled(*args, **kwargs) |
e811c8ce RD |
221 | |
222 | def GetBitmapFocus(*args, **kwargs): | |
0df68c9f | 223 | """ |
a95a7133 | 224 | GetBitmapFocus(self) -> Bitmap |
1e0c8722 | 225 | |
0df68c9f RD |
226 | Returns the bitmap for the focused state. |
227 | """ | |
54f9ee45 | 228 | return _controls_.BitmapButton_GetBitmapFocus(*args, **kwargs) |
e811c8ce RD |
229 | |
230 | def GetBitmapSelected(*args, **kwargs): | |
0df68c9f | 231 | """ |
a95a7133 | 232 | GetBitmapSelected(self) -> Bitmap |
1e0c8722 | 233 | |
0df68c9f RD |
234 | Returns the bitmap for the selected state. |
235 | """ | |
54f9ee45 | 236 | return _controls_.BitmapButton_GetBitmapSelected(*args, **kwargs) |
e811c8ce | 237 | |
b1fcee84 RD |
238 | def GetBitmapHover(*args, **kwargs): |
239 | """ | |
240 | GetBitmapHover(self) -> Bitmap | |
241 | ||
242 | Returns the bitmap used when the mouse is over the button, may be invalid. | |
243 | """ | |
244 | return _controls_.BitmapButton_GetBitmapHover(*args, **kwargs) | |
245 | ||
e811c8ce | 246 | def SetBitmapDisabled(*args, **kwargs): |
0df68c9f | 247 | """ |
a95a7133 | 248 | SetBitmapDisabled(self, Bitmap bitmap) |
1e0c8722 | 249 | |
0df68c9f RD |
250 | Sets the bitmap for the disabled button appearance. |
251 | """ | |
54f9ee45 | 252 | return _controls_.BitmapButton_SetBitmapDisabled(*args, **kwargs) |
e811c8ce RD |
253 | |
254 | def SetBitmapFocus(*args, **kwargs): | |
0df68c9f | 255 | """ |
a95a7133 | 256 | SetBitmapFocus(self, Bitmap bitmap) |
1e0c8722 | 257 | |
0df68c9f RD |
258 | Sets the bitmap for the button appearance when it has the keyboard focus. |
259 | """ | |
54f9ee45 | 260 | return _controls_.BitmapButton_SetBitmapFocus(*args, **kwargs) |
e811c8ce RD |
261 | |
262 | def SetBitmapSelected(*args, **kwargs): | |
0df68c9f | 263 | """ |
a95a7133 | 264 | SetBitmapSelected(self, Bitmap bitmap) |
1e0c8722 | 265 | |
0df68c9f RD |
266 | Sets the bitmap for the selected (depressed) button appearance. |
267 | """ | |
54f9ee45 | 268 | return _controls_.BitmapButton_SetBitmapSelected(*args, **kwargs) |
e811c8ce RD |
269 | |
270 | def SetBitmapLabel(*args, **kwargs): | |
0df68c9f | 271 | """ |
a95a7133 | 272 | SetBitmapLabel(self, Bitmap bitmap) |
1e0c8722 | 273 | |
0df68c9f RD |
274 | Sets the bitmap label for the button. This is the bitmap used for the |
275 | unselected state, and for all other states if no other bitmaps are provided. | |
276 | """ | |
54f9ee45 | 277 | return _controls_.BitmapButton_SetBitmapLabel(*args, **kwargs) |
e811c8ce | 278 | |
b1fcee84 RD |
279 | def SetBitmapHover(*args, **kwargs): |
280 | """ | |
281 | SetBitmapHover(self, Bitmap hover) | |
282 | ||
283 | Sets the bitmap to be shown when the mouse is over the button. This function | |
284 | is new since wxWidgets version 2.7.0 and the hover bitmap is currently only | |
285 | supported in wxMSW. | |
286 | """ | |
287 | return _controls_.BitmapButton_SetBitmapHover(*args, **kwargs) | |
288 | ||
e811c8ce | 289 | def SetMargins(*args, **kwargs): |
a95a7133 | 290 | """SetMargins(self, int x, int y)""" |
54f9ee45 | 291 | return _controls_.BitmapButton_SetMargins(*args, **kwargs) |
e811c8ce RD |
292 | |
293 | def GetMarginX(*args, **kwargs): | |
a95a7133 | 294 | """GetMarginX(self) -> int""" |
54f9ee45 | 295 | return _controls_.BitmapButton_GetMarginX(*args, **kwargs) |
e811c8ce RD |
296 | |
297 | def GetMarginY(*args, **kwargs): | |
a95a7133 | 298 | """GetMarginY(self) -> int""" |
54f9ee45 | 299 | return _controls_.BitmapButton_GetMarginY(*args, **kwargs) |
e811c8ce | 300 | |
0085ce49 RD |
301 | BitmapButton_swigregister = _controls_.BitmapButton_swigregister |
302 | BitmapButton_swigregister(BitmapButton) | |
d14a1e28 RD |
303 | |
304 | def PreBitmapButton(*args, **kwargs): | |
0df68c9f RD |
305 | """ |
306 | PreBitmapButton() -> BitmapButton | |
1e0c8722 | 307 | |
0df68c9f RD |
308 | Precreate a BitmapButton for 2-phase creation. |
309 | """ | |
54f9ee45 | 310 | val = _controls_.new_PreBitmapButton(*args, **kwargs) |
d14a1e28 RD |
311 | return val |
312 | ||
313 | #--------------------------------------------------------------------------- | |
314 | ||
54f9ee45 RD |
315 | CHK_2STATE = _controls_.CHK_2STATE |
316 | CHK_3STATE = _controls_.CHK_3STATE | |
317 | CHK_ALLOW_3RD_STATE_FOR_USER = _controls_.CHK_ALLOW_3RD_STATE_FOR_USER | |
318 | CHK_UNCHECKED = _controls_.CHK_UNCHECKED | |
319 | CHK_CHECKED = _controls_.CHK_CHECKED | |
320 | CHK_UNDETERMINED = _controls_.CHK_UNDETERMINED | |
321 | class CheckBox(_core.Control): | |
fcafa8a9 | 322 | """ |
66c033b4 RD |
323 | A checkbox is a labelled box which by default is either on (the |
324 | checkmark is visible) or off (no checkmark). Optionally (When the | |
325 | wx.CHK_3STATE style flag is set) it can have a third state, called the | |
326 | mixed or undetermined state. Often this is used as a "Does Not | |
327 | Apply" state. | |
fcafa8a9 | 328 | """ |
0085ce49 RD |
329 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
330 | __repr__ = _swig_repr | |
331 | def __init__(self, *args, **kwargs): | |
0df68c9f | 332 | """ |
248ed943 RD |
333 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
334 | Point pos=DefaultPosition, Size size=DefaultSize, | |
335 | long style=0, Validator validator=DefaultValidator, | |
336 | String name=CheckBoxNameStr) -> CheckBox | |
fcafa8a9 RD |
337 | |
338 | Creates and shows a CheckBox control | |
0df68c9f | 339 | """ |
0085ce49 | 340 | _controls_.CheckBox_swiginit(self,_controls_.new_CheckBox(*args, **kwargs)) |
0220cbc1 | 341 | self._setOORInfo(self) |
e811c8ce RD |
342 | |
343 | def Create(*args, **kwargs): | |
0df68c9f | 344 | """ |
248ed943 RD |
345 | Create(self, Window parent, int id=-1, String label=EmptyString, |
346 | Point pos=DefaultPosition, Size size=DefaultSize, | |
347 | long style=0, Validator validator=DefaultValidator, | |
348 | String name=CheckBoxNameStr) -> bool | |
fcafa8a9 RD |
349 | |
350 | Actually create the GUI CheckBox for 2-phase creation. | |
0df68c9f | 351 | """ |
54f9ee45 | 352 | return _controls_.CheckBox_Create(*args, **kwargs) |
e811c8ce RD |
353 | |
354 | def GetValue(*args, **kwargs): | |
fcafa8a9 | 355 | """ |
a95a7133 | 356 | GetValue(self) -> bool |
fcafa8a9 RD |
357 | |
358 | Gets the state of a 2-state CheckBox. Returns True if it is checked, | |
359 | False otherwise. | |
360 | """ | |
54f9ee45 | 361 | return _controls_.CheckBox_GetValue(*args, **kwargs) |
e811c8ce RD |
362 | |
363 | def IsChecked(*args, **kwargs): | |
fcafa8a9 | 364 | """ |
a95a7133 | 365 | IsChecked(self) -> bool |
fcafa8a9 | 366 | |
66c033b4 RD |
367 | Similar to GetValue, but raises an exception if it is not a 2-state |
368 | CheckBox. | |
fcafa8a9 | 369 | """ |
54f9ee45 | 370 | return _controls_.CheckBox_IsChecked(*args, **kwargs) |
e811c8ce RD |
371 | |
372 | def SetValue(*args, **kwargs): | |
fcafa8a9 | 373 | """ |
a95a7133 | 374 | SetValue(self, bool state) |
fcafa8a9 | 375 | |
66c033b4 RD |
376 | Set the state of a 2-state CheckBox. Pass True for checked, False for |
377 | unchecked. | |
fcafa8a9 | 378 | """ |
54f9ee45 | 379 | return _controls_.CheckBox_SetValue(*args, **kwargs) |
e811c8ce RD |
380 | |
381 | def Get3StateValue(*args, **kwargs): | |
fcafa8a9 | 382 | """ |
a95a7133 | 383 | Get3StateValue(self) -> int |
fcafa8a9 | 384 | |
66c033b4 RD |
385 | Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, |
386 | wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in | |
387 | the undetermined state. Raises an exceptiion when the function is | |
388 | used with a 2-state CheckBox. | |
fcafa8a9 | 389 | """ |
54f9ee45 | 390 | return _controls_.CheckBox_Get3StateValue(*args, **kwargs) |
e811c8ce RD |
391 | |
392 | def Set3StateValue(*args, **kwargs): | |
fcafa8a9 | 393 | """ |
a95a7133 | 394 | Set3StateValue(self, int state) |
fcafa8a9 | 395 | |
66c033b4 RD |
396 | Sets the CheckBox to the given state. The state parameter can be one |
397 | of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the | |
398 | Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an | |
399 | exception when the CheckBox is a 2-state checkbox and setting the | |
400 | state to wx.CHK_UNDETERMINED. | |
fcafa8a9 | 401 | """ |
54f9ee45 | 402 | return _controls_.CheckBox_Set3StateValue(*args, **kwargs) |
e811c8ce RD |
403 | |
404 | def Is3State(*args, **kwargs): | |
fcafa8a9 | 405 | """ |
a95a7133 | 406 | Is3State(self) -> bool |
fcafa8a9 RD |
407 | |
408 | Returns whether or not the CheckBox is a 3-state CheckBox. | |
409 | """ | |
54f9ee45 | 410 | return _controls_.CheckBox_Is3State(*args, **kwargs) |
e811c8ce RD |
411 | |
412 | def Is3rdStateAllowedForUser(*args, **kwargs): | |
fcafa8a9 | 413 | """ |
a95a7133 | 414 | Is3rdStateAllowedForUser(self) -> bool |
fcafa8a9 | 415 | |
66c033b4 RD |
416 | Returns whether or not the user can set the CheckBox to the third |
417 | state. | |
fcafa8a9 | 418 | """ |
54f9ee45 | 419 | return _controls_.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) |
e811c8ce | 420 | |
22bfe96c | 421 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
422 | """ |
423 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
424 | ||
425 | Get the default attributes for this class. This is useful if you want | |
426 | to use the same font or colour in your own control as in a standard | |
427 | control -- which is a much better idea than hard coding specific | |
428 | colours or fonts which might look completely out of place on the | |
429 | user's system, especially if it uses themes. | |
430 | ||
431 | The variant parameter is only relevant under Mac currently and is | |
432 | ignore under other platforms. Under Mac, it will change the size of | |
433 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
434 | this. | |
435 | """ | |
22bfe96c RD |
436 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) |
437 | ||
438 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
439 | CheckBox_swigregister = _controls_.CheckBox_swigregister |
440 | CheckBox_swigregister(CheckBox) | |
b2dc1044 | 441 | CheckBoxNameStr = cvar.CheckBoxNameStr |
70551f47 | 442 | |
d14a1e28 | 443 | def PreCheckBox(*args, **kwargs): |
fcafa8a9 RD |
444 | """ |
445 | PreCheckBox() -> CheckBox | |
446 | ||
447 | Precreate a CheckBox for 2-phase creation. | |
448 | """ | |
54f9ee45 | 449 | val = _controls_.new_PreCheckBox(*args, **kwargs) |
aa2a5b86 RD |
450 | return val |
451 | ||
22bfe96c | 452 | def CheckBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 453 | """ |
110da5b0 RD |
454 | CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
455 | ||
456 | Get the default attributes for this class. This is useful if you want | |
457 | to use the same font or colour in your own control as in a standard | |
458 | control -- which is a much better idea than hard coding specific | |
459 | colours or fonts which might look completely out of place on the | |
460 | user's system, especially if it uses themes. | |
461 | ||
462 | The variant parameter is only relevant under Mac currently and is | |
463 | ignore under other platforms. Under Mac, it will change the size of | |
464 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
465 | this. | |
466 | """ | |
0085ce49 | 467 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 468 | |
d14a1e28 | 469 | #--------------------------------------------------------------------------- |
70551f47 | 470 | |
54f9ee45 | 471 | class Choice(_core.ControlWithItems): |
fcafa8a9 | 472 | """ |
66c033b4 RD |
473 | A Choice control is used to select one of a list of strings. |
474 | Unlike a `wx.ListBox`, only the selection is visible until the | |
475 | user pulls down the menu of choices. | |
fcafa8a9 | 476 | """ |
0085ce49 RD |
477 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
478 | __repr__ = _swig_repr | |
479 | def __init__(self, *args, **kwargs): | |
0df68c9f | 480 | """ |
fcafa8a9 | 481 | __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 482 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 483 | String name=ChoiceNameStr) -> Choice |
fcafa8a9 RD |
484 | |
485 | Create and show a Choice control | |
0df68c9f | 486 | """ |
0085ce49 | 487 | _controls_.Choice_swiginit(self,_controls_.new_Choice(*args, **kwargs)) |
d14a1e28 | 488 | self._setOORInfo(self) |
e811c8ce RD |
489 | |
490 | def Create(*args, **kwargs): | |
0df68c9f | 491 | """ |
fcafa8a9 | 492 | Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 493 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 494 | String name=ChoiceNameStr) -> bool |
fd2dc343 RD |
495 | |
496 | Actually create the GUI Choice control for 2-phase creation | |
0df68c9f | 497 | """ |
54f9ee45 | 498 | return _controls_.Choice_Create(*args, **kwargs) |
e811c8ce | 499 | |
943e8dfd RD |
500 | def GetCurrentSelection(*args, **kwargs): |
501 | """ | |
502 | GetCurrentSelection(self) -> int | |
503 | ||
504 | Unlike `GetSelection` which only returns the accepted selection value, | |
505 | i.e. the selection in the control once the user closes the dropdown | |
506 | list, this function returns the current selection. That is, while the | |
507 | dropdown list is shown, it returns the currently selected item in | |
508 | it. When it is not shown, its result is the same as for the other | |
509 | function. | |
510 | """ | |
511 | return _controls_.Choice_GetCurrentSelection(*args, **kwargs) | |
512 | ||
22bfe96c | 513 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
514 | """ |
515 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
516 | ||
517 | Get the default attributes for this class. This is useful if you want | |
518 | to use the same font or colour in your own control as in a standard | |
519 | control -- which is a much better idea than hard coding specific | |
520 | colours or fonts which might look completely out of place on the | |
521 | user's system, especially if it uses themes. | |
522 | ||
523 | The variant parameter is only relevant under Mac currently and is | |
524 | ignore under other platforms. Under Mac, it will change the size of | |
525 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
526 | this. | |
527 | """ | |
22bfe96c RD |
528 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) |
529 | ||
530 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
531 | Choice_swigregister = _controls_.Choice_swigregister |
532 | Choice_swigregister(Choice) | |
b2dc1044 | 533 | ChoiceNameStr = cvar.ChoiceNameStr |
65191ae8 | 534 | |
d14a1e28 | 535 | def PreChoice(*args, **kwargs): |
fcafa8a9 RD |
536 | """ |
537 | PreChoice() -> Choice | |
538 | ||
539 | Precreate a Choice control for 2-phase creation. | |
540 | """ | |
54f9ee45 | 541 | val = _controls_.new_PreChoice(*args, **kwargs) |
d14a1e28 | 542 | return val |
65191ae8 | 543 | |
22bfe96c | 544 | def Choice_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 545 | """ |
110da5b0 RD |
546 | Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
547 | ||
548 | Get the default attributes for this class. This is useful if you want | |
549 | to use the same font or colour in your own control as in a standard | |
550 | control -- which is a much better idea than hard coding specific | |
551 | colours or fonts which might look completely out of place on the | |
552 | user's system, especially if it uses themes. | |
553 | ||
554 | The variant parameter is only relevant under Mac currently and is | |
555 | ignore under other platforms. Under Mac, it will change the size of | |
556 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
557 | this. | |
558 | """ | |
0085ce49 | 559 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 560 | |
d14a1e28 | 561 | #--------------------------------------------------------------------------- |
65191ae8 | 562 | |
54f9ee45 | 563 | class ComboBox(_core.Control,_core.ItemContainer): |
b88bce5f | 564 | """ |
41e2b43e RD |
565 | A combobox is like a combination of an edit control and a |
566 | listbox. It can be displayed as static list with editable or | |
567 | read-only text field; or a drop-down list with text field. | |
568 | ||
569 | A combobox permits a single selection only. Combobox items are | |
570 | numbered from zero. | |
b88bce5f | 571 | """ |
0085ce49 RD |
572 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
573 | __repr__ = _swig_repr | |
574 | def __init__(self, *args, **kwargs): | |
0df68c9f | 575 | """ |
b88bce5f RD |
576 | __init__(Window parent, int id, String value=EmptyString, |
577 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5dce5a9a | 578 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
41e2b43e | 579 | String name=ComboBoxNameStr) -> ComboBox |
b88bce5f RD |
580 | |
581 | Constructor, creates and shows a ComboBox control. | |
0df68c9f | 582 | """ |
0085ce49 | 583 | _controls_.ComboBox_swiginit(self,_controls_.new_ComboBox(*args, **kwargs)) |
0220cbc1 | 584 | self._setOORInfo(self) |
e811c8ce RD |
585 | |
586 | def Create(*args, **kwargs): | |
0df68c9f | 587 | """ |
b88bce5f RD |
588 | Create(Window parent, int id, String value=EmptyString, |
589 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5dce5a9a | 590 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b88bce5f | 591 | String name=ChoiceNameStr) -> bool |
fd2dc343 RD |
592 | |
593 | Actually create the GUI wxComboBox control for 2-phase creation | |
0df68c9f | 594 | """ |
54f9ee45 | 595 | return _controls_.ComboBox_Create(*args, **kwargs) |
e811c8ce RD |
596 | |
597 | def GetValue(*args, **kwargs): | |
b88bce5f | 598 | """ |
a95a7133 | 599 | GetValue(self) -> String |
b88bce5f RD |
600 | |
601 | Returns the current value in the combobox text field. | |
602 | """ | |
54f9ee45 | 603 | return _controls_.ComboBox_GetValue(*args, **kwargs) |
e811c8ce RD |
604 | |
605 | def SetValue(*args, **kwargs): | |
a95a7133 | 606 | """SetValue(self, String value)""" |
54f9ee45 | 607 | return _controls_.ComboBox_SetValue(*args, **kwargs) |
e811c8ce RD |
608 | |
609 | def Copy(*args, **kwargs): | |
b88bce5f | 610 | """ |
a95a7133 | 611 | Copy(self) |
b88bce5f RD |
612 | |
613 | Copies the selected text to the clipboard. | |
614 | """ | |
54f9ee45 | 615 | return _controls_.ComboBox_Copy(*args, **kwargs) |
e811c8ce RD |
616 | |
617 | def Cut(*args, **kwargs): | |
b88bce5f | 618 | """ |
a95a7133 | 619 | Cut(self) |
b88bce5f RD |
620 | |
621 | Copies the selected text to the clipboard and removes the selection. | |
622 | """ | |
54f9ee45 | 623 | return _controls_.ComboBox_Cut(*args, **kwargs) |
e811c8ce RD |
624 | |
625 | def Paste(*args, **kwargs): | |
b88bce5f | 626 | """ |
a95a7133 | 627 | Paste(self) |
b88bce5f RD |
628 | |
629 | Pastes text from the clipboard to the text field. | |
630 | """ | |
54f9ee45 | 631 | return _controls_.ComboBox_Paste(*args, **kwargs) |
e811c8ce RD |
632 | |
633 | def SetInsertionPoint(*args, **kwargs): | |
b88bce5f | 634 | """ |
a95a7133 | 635 | SetInsertionPoint(self, long pos) |
b88bce5f RD |
636 | |
637 | Sets the insertion point in the combobox text field. | |
638 | """ | |
54f9ee45 | 639 | return _controls_.ComboBox_SetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
640 | |
641 | def GetInsertionPoint(*args, **kwargs): | |
b88bce5f | 642 | """ |
a95a7133 | 643 | GetInsertionPoint(self) -> long |
b88bce5f RD |
644 | |
645 | Returns the insertion point for the combobox's text field. | |
646 | """ | |
54f9ee45 | 647 | return _controls_.ComboBox_GetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
648 | |
649 | def GetLastPosition(*args, **kwargs): | |
b88bce5f | 650 | """ |
a95a7133 | 651 | GetLastPosition(self) -> long |
b88bce5f RD |
652 | |
653 | Returns the last position in the combobox text field. | |
654 | """ | |
54f9ee45 | 655 | return _controls_.ComboBox_GetLastPosition(*args, **kwargs) |
e811c8ce RD |
656 | |
657 | def Replace(*args, **kwargs): | |
b88bce5f | 658 | """ |
a95a7133 | 659 | Replace(self, long from, long to, String value) |
b88bce5f RD |
660 | |
661 | Replaces the text between two positions with the given text, in the | |
662 | combobox text field. | |
663 | """ | |
54f9ee45 | 664 | return _controls_.ComboBox_Replace(*args, **kwargs) |
fd3f2efe | 665 | |
e811c8ce | 666 | def SetMark(*args, **kwargs): |
121b9a67 RD |
667 | """ |
668 | SetMark(self, long from, long to) | |
669 | ||
670 | Selects the text between the two positions in the combobox text field. | |
671 | """ | |
54f9ee45 | 672 | return _controls_.ComboBox_SetMark(*args, **kwargs) |
e811c8ce | 673 | |
b9d6a5f3 RD |
674 | def GetMark(*args, **kwargs): |
675 | """ | |
676 | GetMark(self) -> (from, to) | |
677 | ||
678 | Gets the positions of the begining and ending of the selection mark in | |
679 | the combobox text field. | |
680 | """ | |
681 | return _controls_.ComboBox_GetMark(*args, **kwargs) | |
682 | ||
943e8dfd RD |
683 | def GetCurrentSelection(*args, **kwargs): |
684 | """ | |
685 | GetCurrentSelection(self) -> int | |
686 | ||
687 | Unlike `GetSelection` which only returns the accepted selection value, | |
688 | i.e. the selection in the control once the user closes the dropdown | |
689 | list, this function returns the current selection. That is, while the | |
690 | dropdown list is shown, it returns the currently selected item in | |
691 | it. When it is not shown, its result is the same as for the other | |
692 | function. | |
693 | """ | |
694 | return _controls_.ComboBox_GetCurrentSelection(*args, **kwargs) | |
695 | ||
121b9a67 RD |
696 | def SetStringSelection(*args, **kwargs): |
697 | """ | |
698 | SetStringSelection(self, String string) -> bool | |
699 | ||
700 | Select the item with the specifed string | |
701 | """ | |
702 | return _controls_.ComboBox_SetStringSelection(*args, **kwargs) | |
703 | ||
50f151d7 RD |
704 | def SetString(*args, **kwargs): |
705 | """ | |
706 | SetString(self, int n, String string) | |
707 | ||
708 | Set the label for the n'th item (zero based) in the list. | |
709 | """ | |
710 | return _controls_.ComboBox_SetString(*args, **kwargs) | |
711 | ||
e811c8ce | 712 | def SetEditable(*args, **kwargs): |
a95a7133 | 713 | """SetEditable(self, bool editable)""" |
54f9ee45 | 714 | return _controls_.ComboBox_SetEditable(*args, **kwargs) |
e811c8ce RD |
715 | |
716 | def SetInsertionPointEnd(*args, **kwargs): | |
b88bce5f | 717 | """ |
a95a7133 | 718 | SetInsertionPointEnd(self) |
b88bce5f RD |
719 | |
720 | Sets the insertion point at the end of the combobox text field. | |
721 | """ | |
54f9ee45 | 722 | return _controls_.ComboBox_SetInsertionPointEnd(*args, **kwargs) |
e811c8ce RD |
723 | |
724 | def Remove(*args, **kwargs): | |
b88bce5f | 725 | """ |
a95a7133 | 726 | Remove(self, long from, long to) |
b88bce5f RD |
727 | |
728 | Removes the text between the two positions in the combobox text field. | |
729 | """ | |
54f9ee45 | 730 | return _controls_.ComboBox_Remove(*args, **kwargs) |
e811c8ce | 731 | |
5cbf236d RD |
732 | def IsEditable(*args, **kwargs): |
733 | """ | |
734 | IsEditable(self) -> bool | |
735 | ||
736 | Returns True if the combo is ediatable (not read-only.) | |
737 | """ | |
738 | return _controls_.ComboBox_IsEditable(*args, **kwargs) | |
739 | ||
740 | def Undo(*args, **kwargs): | |
741 | """ | |
742 | Undo(self) | |
743 | ||
744 | Redoes the last undo in the text field. Windows only. | |
745 | """ | |
746 | return _controls_.ComboBox_Undo(*args, **kwargs) | |
747 | ||
748 | def Redo(*args, **kwargs): | |
749 | """ | |
750 | Redo(self) | |
751 | ||
752 | Undoes the last edit in the text field. Windows only. | |
753 | """ | |
754 | return _controls_.ComboBox_Redo(*args, **kwargs) | |
755 | ||
756 | def SelectAll(*args, **kwargs): | |
757 | """ | |
758 | SelectAll(self) | |
759 | ||
760 | Select all the text in the combo's text field. | |
761 | """ | |
762 | return _controls_.ComboBox_SelectAll(*args, **kwargs) | |
763 | ||
764 | def CanCopy(*args, **kwargs): | |
765 | """ | |
766 | CanCopy(self) -> bool | |
767 | ||
768 | Returns True if the combobox is editable and there is a text selection | |
769 | to copy to the clipboard. Only available on Windows. | |
770 | """ | |
771 | return _controls_.ComboBox_CanCopy(*args, **kwargs) | |
772 | ||
773 | def CanCut(*args, **kwargs): | |
774 | """ | |
775 | CanCut(self) -> bool | |
776 | ||
777 | Returns True if the combobox is editable and there is a text selection | |
778 | to copy to the clipboard. Only available on Windows. | |
779 | """ | |
780 | return _controls_.ComboBox_CanCut(*args, **kwargs) | |
781 | ||
782 | def CanPaste(*args, **kwargs): | |
783 | """ | |
784 | CanPaste(self) -> bool | |
785 | ||
786 | Returns True if the combobox is editable and there is text on the | |
787 | clipboard that can be pasted into the text field. Only available on | |
788 | Windows. | |
789 | """ | |
790 | return _controls_.ComboBox_CanPaste(*args, **kwargs) | |
791 | ||
792 | def CanUndo(*args, **kwargs): | |
793 | """ | |
794 | CanUndo(self) -> bool | |
795 | ||
796 | Returns True if the combobox is editable and the last edit can be | |
797 | undone. Only available on Windows. | |
798 | """ | |
799 | return _controls_.ComboBox_CanUndo(*args, **kwargs) | |
800 | ||
801 | def CanRedo(*args, **kwargs): | |
802 | """ | |
803 | CanRedo(self) -> bool | |
804 | ||
805 | Returns True if the combobox is editable and the last undo can be | |
806 | redone. Only available on Windows. | |
807 | """ | |
808 | return _controls_.ComboBox_CanRedo(*args, **kwargs) | |
809 | ||
22bfe96c | 810 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
811 | """ |
812 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
813 | ||
814 | Get the default attributes for this class. This is useful if you want | |
815 | to use the same font or colour in your own control as in a standard | |
816 | control -- which is a much better idea than hard coding specific | |
817 | colours or fonts which might look completely out of place on the | |
818 | user's system, especially if it uses themes. | |
819 | ||
820 | The variant parameter is only relevant under Mac currently and is | |
821 | ignore under other platforms. Under Mac, it will change the size of | |
822 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
823 | this. | |
824 | """ | |
22bfe96c RD |
825 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) |
826 | ||
827 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
828 | ComboBox_swigregister = _controls_.ComboBox_swigregister |
829 | ComboBox_swigregister(ComboBox) | |
b2dc1044 | 830 | ComboBoxNameStr = cvar.ComboBoxNameStr |
70551f47 | 831 | |
d14a1e28 | 832 | def PreComboBox(*args, **kwargs): |
b88bce5f RD |
833 | """ |
834 | PreComboBox() -> ComboBox | |
835 | ||
836 | Precreate a ComboBox control for 2-phase creation. | |
837 | """ | |
54f9ee45 | 838 | val = _controls_.new_PreComboBox(*args, **kwargs) |
aa2a5b86 RD |
839 | return val |
840 | ||
22bfe96c | 841 | def ComboBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 842 | """ |
110da5b0 RD |
843 | ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
844 | ||
845 | Get the default attributes for this class. This is useful if you want | |
846 | to use the same font or colour in your own control as in a standard | |
847 | control -- which is a much better idea than hard coding specific | |
848 | colours or fonts which might look completely out of place on the | |
849 | user's system, especially if it uses themes. | |
850 | ||
851 | The variant parameter is only relevant under Mac currently and is | |
852 | ignore under other platforms. Under Mac, it will change the size of | |
853 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
854 | this. | |
855 | """ | |
0085ce49 | 856 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 857 | |
d14a1e28 | 858 | #--------------------------------------------------------------------------- |
70551f47 | 859 | |
54f9ee45 RD |
860 | GA_HORIZONTAL = _controls_.GA_HORIZONTAL |
861 | GA_VERTICAL = _controls_.GA_VERTICAL | |
862 | GA_SMOOTH = _controls_.GA_SMOOTH | |
e9d6f3a4 | 863 | GA_PROGRESSBAR = 0 # obsolete |
54f9ee45 | 864 | class Gauge(_core.Control): |
093d3ff1 | 865 | """Proxy of C++ Gauge class""" |
0085ce49 RD |
866 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
867 | __repr__ = _swig_repr | |
868 | def __init__(self, *args, **kwargs): | |
0df68c9f | 869 | """ |
248ed943 | 870 | __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, |
0df68c9f RD |
871 | Size size=DefaultSize, long style=GA_HORIZONTAL, |
872 | Validator validator=DefaultValidator, | |
b2dc1044 | 873 | String name=GaugeNameStr) -> Gauge |
0df68c9f | 874 | """ |
0085ce49 | 875 | _controls_.Gauge_swiginit(self,_controls_.new_Gauge(*args, **kwargs)) |
0220cbc1 | 876 | self._setOORInfo(self) |
e811c8ce RD |
877 | |
878 | def Create(*args, **kwargs): | |
0df68c9f | 879 | """ |
248ed943 | 880 | Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, |
0df68c9f RD |
881 | Size size=DefaultSize, long style=GA_HORIZONTAL, |
882 | Validator validator=DefaultValidator, | |
b2dc1044 | 883 | String name=GaugeNameStr) -> bool |
0df68c9f | 884 | """ |
54f9ee45 | 885 | return _controls_.Gauge_Create(*args, **kwargs) |
e811c8ce RD |
886 | |
887 | def SetRange(*args, **kwargs): | |
a95a7133 | 888 | """SetRange(self, int range)""" |
54f9ee45 | 889 | return _controls_.Gauge_SetRange(*args, **kwargs) |
e811c8ce RD |
890 | |
891 | def GetRange(*args, **kwargs): | |
a95a7133 | 892 | """GetRange(self) -> int""" |
54f9ee45 | 893 | return _controls_.Gauge_GetRange(*args, **kwargs) |
e811c8ce RD |
894 | |
895 | def SetValue(*args, **kwargs): | |
a95a7133 | 896 | """SetValue(self, int pos)""" |
54f9ee45 | 897 | return _controls_.Gauge_SetValue(*args, **kwargs) |
e811c8ce RD |
898 | |
899 | def GetValue(*args, **kwargs): | |
a95a7133 | 900 | """GetValue(self) -> int""" |
54f9ee45 | 901 | return _controls_.Gauge_GetValue(*args, **kwargs) |
e811c8ce RD |
902 | |
903 | def IsVertical(*args, **kwargs): | |
a95a7133 | 904 | """IsVertical(self) -> bool""" |
54f9ee45 | 905 | return _controls_.Gauge_IsVertical(*args, **kwargs) |
e811c8ce RD |
906 | |
907 | def SetShadowWidth(*args, **kwargs): | |
a95a7133 | 908 | """SetShadowWidth(self, int w)""" |
54f9ee45 | 909 | return _controls_.Gauge_SetShadowWidth(*args, **kwargs) |
e811c8ce RD |
910 | |
911 | def GetShadowWidth(*args, **kwargs): | |
a95a7133 | 912 | """GetShadowWidth(self) -> int""" |
54f9ee45 | 913 | return _controls_.Gauge_GetShadowWidth(*args, **kwargs) |
e811c8ce RD |
914 | |
915 | def SetBezelFace(*args, **kwargs): | |
a95a7133 | 916 | """SetBezelFace(self, int w)""" |
54f9ee45 | 917 | return _controls_.Gauge_SetBezelFace(*args, **kwargs) |
e811c8ce RD |
918 | |
919 | def GetBezelFace(*args, **kwargs): | |
a95a7133 | 920 | """GetBezelFace(self) -> int""" |
54f9ee45 | 921 | return _controls_.Gauge_GetBezelFace(*args, **kwargs) |
e811c8ce | 922 | |
22bfe96c | 923 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
924 | """ |
925 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
926 | ||
927 | Get the default attributes for this class. This is useful if you want | |
928 | to use the same font or colour in your own control as in a standard | |
929 | control -- which is a much better idea than hard coding specific | |
930 | colours or fonts which might look completely out of place on the | |
931 | user's system, especially if it uses themes. | |
932 | ||
933 | The variant parameter is only relevant under Mac currently and is | |
934 | ignore under other platforms. Under Mac, it will change the size of | |
935 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
936 | this. | |
937 | """ | |
22bfe96c RD |
938 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) |
939 | ||
940 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
941 | Gauge_swigregister = _controls_.Gauge_swigregister |
942 | Gauge_swigregister(Gauge) | |
b2dc1044 | 943 | GaugeNameStr = cvar.GaugeNameStr |
70551f47 | 944 | |
d14a1e28 | 945 | def PreGauge(*args, **kwargs): |
e811c8ce | 946 | """PreGauge() -> Gauge""" |
54f9ee45 | 947 | val = _controls_.new_PreGauge(*args, **kwargs) |
aa2a5b86 RD |
948 | return val |
949 | ||
22bfe96c | 950 | def Gauge_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 951 | """ |
110da5b0 RD |
952 | Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
953 | ||
954 | Get the default attributes for this class. This is useful if you want | |
955 | to use the same font or colour in your own control as in a standard | |
956 | control -- which is a much better idea than hard coding specific | |
957 | colours or fonts which might look completely out of place on the | |
958 | user's system, especially if it uses themes. | |
959 | ||
960 | The variant parameter is only relevant under Mac currently and is | |
961 | ignore under other platforms. Under Mac, it will change the size of | |
962 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
963 | this. | |
964 | """ | |
0085ce49 | 965 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 966 | |
d14a1e28 | 967 | #--------------------------------------------------------------------------- |
70551f47 | 968 | |
54f9ee45 | 969 | class StaticBox(_core.Control): |
093d3ff1 | 970 | """Proxy of C++ StaticBox class""" |
0085ce49 RD |
971 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
972 | __repr__ = _swig_repr | |
973 | def __init__(self, *args, **kwargs): | |
0df68c9f | 974 | """ |
248ed943 RD |
975 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
976 | Point pos=DefaultPosition, Size size=DefaultSize, | |
977 | long style=0, String name=StaticBoxNameStr) -> StaticBox | |
0df68c9f | 978 | """ |
0085ce49 | 979 | _controls_.StaticBox_swiginit(self,_controls_.new_StaticBox(*args, **kwargs)) |
0220cbc1 | 980 | self._setOORInfo(self) |
e811c8ce RD |
981 | |
982 | def Create(*args, **kwargs): | |
0df68c9f | 983 | """ |
248ed943 RD |
984 | Create(self, Window parent, int id=-1, String label=EmptyString, |
985 | Point pos=DefaultPosition, Size size=DefaultSize, | |
986 | long style=0, String name=StaticBoxNameStr) -> bool | |
0df68c9f | 987 | """ |
54f9ee45 | 988 | return _controls_.StaticBox_Create(*args, **kwargs) |
e811c8ce | 989 | |
22bfe96c | 990 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
991 | """ |
992 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
993 | ||
994 | Get the default attributes for this class. This is useful if you want | |
995 | to use the same font or colour in your own control as in a standard | |
996 | control -- which is a much better idea than hard coding specific | |
997 | colours or fonts which might look completely out of place on the | |
998 | user's system, especially if it uses themes. | |
999 | ||
1000 | The variant parameter is only relevant under Mac currently and is | |
1001 | ignore under other platforms. Under Mac, it will change the size of | |
1002 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1003 | this. | |
1004 | """ | |
22bfe96c RD |
1005 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) |
1006 | ||
1007 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1008 | StaticBox_swigregister = _controls_.StaticBox_swigregister |
1009 | StaticBox_swigregister(StaticBox) | |
b2dc1044 RD |
1010 | StaticBitmapNameStr = cvar.StaticBitmapNameStr |
1011 | StaticBoxNameStr = cvar.StaticBoxNameStr | |
1012 | StaticTextNameStr = cvar.StaticTextNameStr | |
70551f47 | 1013 | |
d14a1e28 | 1014 | def PreStaticBox(*args, **kwargs): |
e811c8ce | 1015 | """PreStaticBox() -> StaticBox""" |
54f9ee45 | 1016 | val = _controls_.new_PreStaticBox(*args, **kwargs) |
aa2a5b86 RD |
1017 | return val |
1018 | ||
22bfe96c | 1019 | def StaticBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1020 | """ |
110da5b0 RD |
1021 | StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1022 | ||
1023 | Get the default attributes for this class. This is useful if you want | |
1024 | to use the same font or colour in your own control as in a standard | |
1025 | control -- which is a much better idea than hard coding specific | |
1026 | colours or fonts which might look completely out of place on the | |
1027 | user's system, especially if it uses themes. | |
1028 | ||
1029 | The variant parameter is only relevant under Mac currently and is | |
1030 | ignore under other platforms. Under Mac, it will change the size of | |
1031 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1032 | this. | |
1033 | """ | |
0085ce49 | 1034 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1035 | |
d14a1e28 | 1036 | #--------------------------------------------------------------------------- |
70551f47 | 1037 | |
54f9ee45 | 1038 | class StaticLine(_core.Control): |
093d3ff1 | 1039 | """Proxy of C++ StaticLine class""" |
0085ce49 RD |
1040 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1041 | __repr__ = _swig_repr | |
1042 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1043 | """ |
248ed943 RD |
1044 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1045 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
b2dc1044 | 1046 | String name=StaticTextNameStr) -> StaticLine |
0df68c9f | 1047 | """ |
0085ce49 | 1048 | _controls_.StaticLine_swiginit(self,_controls_.new_StaticLine(*args, **kwargs)) |
0220cbc1 | 1049 | self._setOORInfo(self) |
e811c8ce RD |
1050 | |
1051 | def Create(*args, **kwargs): | |
0df68c9f | 1052 | """ |
248ed943 RD |
1053 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1054 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
b2dc1044 | 1055 | String name=StaticTextNameStr) -> bool |
0df68c9f | 1056 | """ |
54f9ee45 | 1057 | return _controls_.StaticLine_Create(*args, **kwargs) |
e811c8ce RD |
1058 | |
1059 | def IsVertical(*args, **kwargs): | |
a95a7133 | 1060 | """IsVertical(self) -> bool""" |
54f9ee45 | 1061 | return _controls_.StaticLine_IsVertical(*args, **kwargs) |
e811c8ce RD |
1062 | |
1063 | def GetDefaultSize(*args, **kwargs): | |
66c033b4 | 1064 | """GetDefaultSize() -> int""" |
54f9ee45 | 1065 | return _controls_.StaticLine_GetDefaultSize(*args, **kwargs) |
e811c8ce RD |
1066 | |
1067 | GetDefaultSize = staticmethod(GetDefaultSize) | |
22bfe96c | 1068 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1069 | """ |
1070 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1071 | ||
1072 | Get the default attributes for this class. This is useful if you want | |
1073 | to use the same font or colour in your own control as in a standard | |
1074 | control -- which is a much better idea than hard coding specific | |
1075 | colours or fonts which might look completely out of place on the | |
1076 | user's system, especially if it uses themes. | |
1077 | ||
1078 | The variant parameter is only relevant under Mac currently and is | |
1079 | ignore under other platforms. Under Mac, it will change the size of | |
1080 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1081 | this. | |
1082 | """ | |
22bfe96c RD |
1083 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) |
1084 | ||
1085 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1086 | StaticLine_swigregister = _controls_.StaticLine_swigregister |
1087 | StaticLine_swigregister(StaticLine) | |
70551f47 | 1088 | |
d14a1e28 | 1089 | def PreStaticLine(*args, **kwargs): |
e811c8ce | 1090 | """PreStaticLine() -> StaticLine""" |
54f9ee45 | 1091 | val = _controls_.new_PreStaticLine(*args, **kwargs) |
aa2a5b86 RD |
1092 | return val |
1093 | ||
0085ce49 RD |
1094 | def StaticLine_GetDefaultSize(*args): |
1095 | """StaticLine_GetDefaultSize() -> int""" | |
1096 | return _controls_.StaticLine_GetDefaultSize(*args) | |
70551f47 | 1097 | |
22bfe96c | 1098 | def StaticLine_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1099 | """ |
110da5b0 RD |
1100 | StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1101 | ||
1102 | Get the default attributes for this class. This is useful if you want | |
1103 | to use the same font or colour in your own control as in a standard | |
1104 | control -- which is a much better idea than hard coding specific | |
1105 | colours or fonts which might look completely out of place on the | |
1106 | user's system, especially if it uses themes. | |
1107 | ||
1108 | The variant parameter is only relevant under Mac currently and is | |
1109 | ignore under other platforms. Under Mac, it will change the size of | |
1110 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1111 | this. | |
1112 | """ | |
0085ce49 | 1113 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1114 | |
d14a1e28 RD |
1115 | #--------------------------------------------------------------------------- |
1116 | ||
54f9ee45 | 1117 | class StaticText(_core.Control): |
093d3ff1 | 1118 | """Proxy of C++ StaticText class""" |
0085ce49 RD |
1119 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1120 | __repr__ = _swig_repr | |
1121 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1122 | """ |
248ed943 RD |
1123 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
1124 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1125 | long style=0, String name=StaticTextNameStr) -> StaticText | |
0df68c9f | 1126 | """ |
0085ce49 | 1127 | _controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args, **kwargs)) |
0220cbc1 | 1128 | self._setOORInfo(self) |
e811c8ce RD |
1129 | |
1130 | def Create(*args, **kwargs): | |
0df68c9f | 1131 | """ |
248ed943 RD |
1132 | Create(self, Window parent, int id=-1, String label=EmptyString, |
1133 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1134 | long style=0, String name=StaticTextNameStr) -> bool | |
0df68c9f | 1135 | """ |
54f9ee45 | 1136 | return _controls_.StaticText_Create(*args, **kwargs) |
e811c8ce | 1137 | |
943e8dfd RD |
1138 | def Wrap(*args, **kwargs): |
1139 | """ | |
1140 | Wrap(self, int width) | |
1141 | ||
1142 | This functions wraps the control's label so that each of its lines | |
1143 | becomes at most ``width`` pixels wide if possible (the lines are | |
1144 | broken at words boundaries so it might not be the case if words are | |
1145 | too long). If ``width`` is negative, no wrapping is done. | |
1146 | """ | |
1147 | return _controls_.StaticText_Wrap(*args, **kwargs) | |
1148 | ||
22bfe96c | 1149 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1150 | """ |
1151 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1152 | ||
1153 | Get the default attributes for this class. This is useful if you want | |
1154 | to use the same font or colour in your own control as in a standard | |
1155 | control -- which is a much better idea than hard coding specific | |
1156 | colours or fonts which might look completely out of place on the | |
1157 | user's system, especially if it uses themes. | |
1158 | ||
1159 | The variant parameter is only relevant under Mac currently and is | |
1160 | ignore under other platforms. Under Mac, it will change the size of | |
1161 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1162 | this. | |
1163 | """ | |
22bfe96c RD |
1164 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) |
1165 | ||
1166 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1167 | StaticText_swigregister = _controls_.StaticText_swigregister |
1168 | StaticText_swigregister(StaticText) | |
70551f47 | 1169 | |
d14a1e28 | 1170 | def PreStaticText(*args, **kwargs): |
e811c8ce | 1171 | """PreStaticText() -> StaticText""" |
54f9ee45 | 1172 | val = _controls_.new_PreStaticText(*args, **kwargs) |
aa2a5b86 RD |
1173 | return val |
1174 | ||
22bfe96c | 1175 | def StaticText_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1176 | """ |
110da5b0 RD |
1177 | StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1178 | ||
1179 | Get the default attributes for this class. This is useful if you want | |
1180 | to use the same font or colour in your own control as in a standard | |
1181 | control -- which is a much better idea than hard coding specific | |
1182 | colours or fonts which might look completely out of place on the | |
1183 | user's system, especially if it uses themes. | |
1184 | ||
1185 | The variant parameter is only relevant under Mac currently and is | |
1186 | ignore under other platforms. Under Mac, it will change the size of | |
1187 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1188 | this. | |
1189 | """ | |
0085ce49 | 1190 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1191 | |
d14a1e28 | 1192 | #--------------------------------------------------------------------------- |
70551f47 | 1193 | |
54f9ee45 | 1194 | class StaticBitmap(_core.Control): |
093d3ff1 | 1195 | """Proxy of C++ StaticBitmap class""" |
0085ce49 RD |
1196 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1197 | __repr__ = _swig_repr | |
1198 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1199 | """ |
248ed943 RD |
1200 | __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
1201 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1202 | long style=0, String name=StaticBitmapNameStr) -> StaticBitmap | |
0df68c9f | 1203 | """ |
0085ce49 | 1204 | _controls_.StaticBitmap_swiginit(self,_controls_.new_StaticBitmap(*args, **kwargs)) |
4f89f6a3 RD |
1205 | self._setOORInfo(self) |
1206 | ||
e811c8ce | 1207 | def Create(*args, **kwargs): |
0df68c9f | 1208 | """ |
248ed943 RD |
1209 | Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
1210 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1211 | long style=0, String name=StaticBitmapNameStr) -> bool | |
0df68c9f | 1212 | """ |
54f9ee45 | 1213 | return _controls_.StaticBitmap_Create(*args, **kwargs) |
e811c8ce RD |
1214 | |
1215 | def GetBitmap(*args, **kwargs): | |
a95a7133 | 1216 | """GetBitmap(self) -> Bitmap""" |
54f9ee45 | 1217 | return _controls_.StaticBitmap_GetBitmap(*args, **kwargs) |
e811c8ce RD |
1218 | |
1219 | def SetBitmap(*args, **kwargs): | |
a95a7133 | 1220 | """SetBitmap(self, Bitmap bitmap)""" |
54f9ee45 | 1221 | return _controls_.StaticBitmap_SetBitmap(*args, **kwargs) |
e811c8ce RD |
1222 | |
1223 | def SetIcon(*args, **kwargs): | |
a95a7133 | 1224 | """SetIcon(self, Icon icon)""" |
54f9ee45 | 1225 | return _controls_.StaticBitmap_SetIcon(*args, **kwargs) |
e811c8ce | 1226 | |
22bfe96c | 1227 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1228 | """ |
1229 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1230 | ||
1231 | Get the default attributes for this class. This is useful if you want | |
1232 | to use the same font or colour in your own control as in a standard | |
1233 | control -- which is a much better idea than hard coding specific | |
1234 | colours or fonts which might look completely out of place on the | |
1235 | user's system, especially if it uses themes. | |
1236 | ||
1237 | The variant parameter is only relevant under Mac currently and is | |
1238 | ignore under other platforms. Under Mac, it will change the size of | |
1239 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1240 | this. | |
1241 | """ | |
22bfe96c RD |
1242 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) |
1243 | ||
1244 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1245 | StaticBitmap_swigregister = _controls_.StaticBitmap_swigregister |
1246 | StaticBitmap_swigregister(StaticBitmap) | |
70551f47 | 1247 | |
d14a1e28 | 1248 | def PreStaticBitmap(*args, **kwargs): |
e811c8ce | 1249 | """PreStaticBitmap() -> StaticBitmap""" |
54f9ee45 | 1250 | val = _controls_.new_PreStaticBitmap(*args, **kwargs) |
aa2a5b86 RD |
1251 | return val |
1252 | ||
22bfe96c | 1253 | def StaticBitmap_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1254 | """ |
110da5b0 RD |
1255 | StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1256 | ||
1257 | Get the default attributes for this class. This is useful if you want | |
1258 | to use the same font or colour in your own control as in a standard | |
1259 | control -- which is a much better idea than hard coding specific | |
1260 | colours or fonts which might look completely out of place on the | |
1261 | user's system, especially if it uses themes. | |
1262 | ||
1263 | The variant parameter is only relevant under Mac currently and is | |
1264 | ignore under other platforms. Under Mac, it will change the size of | |
1265 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1266 | this. | |
1267 | """ | |
0085ce49 | 1268 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1269 | |
d14a1e28 | 1270 | #--------------------------------------------------------------------------- |
70551f47 | 1271 | |
54f9ee45 | 1272 | class ListBox(_core.ControlWithItems): |
093d3ff1 | 1273 | """Proxy of C++ ListBox class""" |
0085ce49 RD |
1274 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1275 | __repr__ = _swig_repr | |
1276 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1277 | """ |
248ed943 RD |
1278 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1279 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1280 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1281 | String name=ListBoxNameStr) -> ListBox |
0df68c9f | 1282 | """ |
0085ce49 | 1283 | _controls_.ListBox_swiginit(self,_controls_.new_ListBox(*args, **kwargs)) |
0220cbc1 | 1284 | self._setOORInfo(self) |
e811c8ce RD |
1285 | |
1286 | def Create(*args, **kwargs): | |
0df68c9f | 1287 | """ |
248ed943 RD |
1288 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1289 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1290 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1291 | String name=ListBoxNameStr) -> bool |
0df68c9f | 1292 | """ |
54f9ee45 | 1293 | return _controls_.ListBox_Create(*args, **kwargs) |
e811c8ce RD |
1294 | |
1295 | def Insert(*args, **kwargs): | |
15afbcd0 | 1296 | """ |
a95a7133 | 1297 | Insert(self, String item, int pos, PyObject clientData=None) |
15afbcd0 | 1298 | |
41e2b43e | 1299 | Insert an item into the control before the item at the ``pos`` index, |
15afbcd0 RD |
1300 | optionally associating some data object with the item. |
1301 | """ | |
54f9ee45 | 1302 | return _controls_.ListBox_Insert(*args, **kwargs) |
e811c8ce RD |
1303 | |
1304 | def InsertItems(*args, **kwargs): | |
50f151d7 | 1305 | """InsertItems(self, wxArrayString items, unsigned int pos)""" |
54f9ee45 | 1306 | return _controls_.ListBox_InsertItems(*args, **kwargs) |
e811c8ce RD |
1307 | |
1308 | def Set(*args, **kwargs): | |
a95a7133 | 1309 | """Set(self, wxArrayString items)""" |
54f9ee45 | 1310 | return _controls_.ListBox_Set(*args, **kwargs) |
e811c8ce RD |
1311 | |
1312 | def IsSelected(*args, **kwargs): | |
a95a7133 | 1313 | """IsSelected(self, int n) -> bool""" |
54f9ee45 | 1314 | return _controls_.ListBox_IsSelected(*args, **kwargs) |
e811c8ce RD |
1315 | |
1316 | def SetSelection(*args, **kwargs): | |
a95a7133 | 1317 | """SetSelection(self, int n, bool select=True)""" |
54f9ee45 | 1318 | return _controls_.ListBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
1319 | |
1320 | def Select(*args, **kwargs): | |
15afbcd0 | 1321 | """ |
a95a7133 | 1322 | Select(self, int n) |
15afbcd0 | 1323 | |
53aa7709 RD |
1324 | This is the same as `SetSelection` and exists only because it is |
1325 | slightly more natural for controls which support multiple selection. | |
15afbcd0 | 1326 | """ |
54f9ee45 | 1327 | return _controls_.ListBox_Select(*args, **kwargs) |
e811c8ce RD |
1328 | |
1329 | def Deselect(*args, **kwargs): | |
a95a7133 | 1330 | """Deselect(self, int n)""" |
54f9ee45 | 1331 | return _controls_.ListBox_Deselect(*args, **kwargs) |
e811c8ce RD |
1332 | |
1333 | def DeselectAll(*args, **kwargs): | |
a95a7133 | 1334 | """DeselectAll(self, int itemToLeaveSelected=-1)""" |
54f9ee45 | 1335 | return _controls_.ListBox_DeselectAll(*args, **kwargs) |
e811c8ce RD |
1336 | |
1337 | def SetStringSelection(*args, **kwargs): | |
a95a7133 | 1338 | """SetStringSelection(self, String s, bool select=True) -> bool""" |
54f9ee45 | 1339 | return _controls_.ListBox_SetStringSelection(*args, **kwargs) |
e811c8ce RD |
1340 | |
1341 | def GetSelections(*args, **kwargs): | |
a95a7133 | 1342 | """GetSelections(self) -> PyObject""" |
54f9ee45 | 1343 | return _controls_.ListBox_GetSelections(*args, **kwargs) |
e811c8ce RD |
1344 | |
1345 | def SetFirstItem(*args, **kwargs): | |
a95a7133 | 1346 | """SetFirstItem(self, int n)""" |
54f9ee45 | 1347 | return _controls_.ListBox_SetFirstItem(*args, **kwargs) |
e811c8ce RD |
1348 | |
1349 | def SetFirstItemStr(*args, **kwargs): | |
a95a7133 | 1350 | """SetFirstItemStr(self, String s)""" |
54f9ee45 | 1351 | return _controls_.ListBox_SetFirstItemStr(*args, **kwargs) |
e811c8ce RD |
1352 | |
1353 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 1354 | """EnsureVisible(self, int n)""" |
54f9ee45 | 1355 | return _controls_.ListBox_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
1356 | |
1357 | def AppendAndEnsureVisible(*args, **kwargs): | |
a95a7133 | 1358 | """AppendAndEnsureVisible(self, String s)""" |
54f9ee45 | 1359 | return _controls_.ListBox_AppendAndEnsureVisible(*args, **kwargs) |
e811c8ce RD |
1360 | |
1361 | def IsSorted(*args, **kwargs): | |
a95a7133 | 1362 | """IsSorted(self) -> bool""" |
54f9ee45 | 1363 | return _controls_.ListBox_IsSorted(*args, **kwargs) |
e811c8ce | 1364 | |
0085ce49 RD |
1365 | def HitTest(*args, **kwargs): |
1366 | """ | |
1367 | HitTest(self, Point pt) -> int | |
1368 | ||
1369 | Test where the given (in client coords) point lies | |
1370 | """ | |
1371 | return _controls_.ListBox_HitTest(*args, **kwargs) | |
1372 | ||
c3eb6258 | 1373 | def SetItemForegroundColour(*args, **kwargs): |
a95a7133 | 1374 | """SetItemForegroundColour(self, int item, Colour c)""" |
54f9ee45 | 1375 | return _controls_.ListBox_SetItemForegroundColour(*args, **kwargs) |
c3eb6258 RD |
1376 | |
1377 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 1378 | """SetItemBackgroundColour(self, int item, Colour c)""" |
54f9ee45 | 1379 | return _controls_.ListBox_SetItemBackgroundColour(*args, **kwargs) |
c3eb6258 RD |
1380 | |
1381 | def SetItemFont(*args, **kwargs): | |
a95a7133 | 1382 | """SetItemFont(self, int item, Font f)""" |
54f9ee45 | 1383 | return _controls_.ListBox_SetItemFont(*args, **kwargs) |
c3eb6258 | 1384 | |
74a57fcd | 1385 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1386 | """ |
1387 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1388 | ||
1389 | Get the default attributes for this class. This is useful if you want | |
1390 | to use the same font or colour in your own control as in a standard | |
1391 | control -- which is a much better idea than hard coding specific | |
1392 | colours or fonts which might look completely out of place on the | |
1393 | user's system, especially if it uses themes. | |
1394 | ||
1395 | The variant parameter is only relevant under Mac currently and is | |
1396 | ignore under other platforms. Under Mac, it will change the size of | |
1397 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1398 | this. | |
1399 | """ | |
54f9ee45 | 1400 | return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
1401 | |
1402 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1403 | ListBox_swigregister = _controls_.ListBox_swigregister |
1404 | ListBox_swigregister(ListBox) | |
b2dc1044 | 1405 | ListBoxNameStr = cvar.ListBoxNameStr |
70551f47 | 1406 | |
d14a1e28 | 1407 | def PreListBox(*args, **kwargs): |
e811c8ce | 1408 | """PreListBox() -> ListBox""" |
54f9ee45 | 1409 | val = _controls_.new_PreListBox(*args, **kwargs) |
aa2a5b86 RD |
1410 | return val |
1411 | ||
74a57fcd | 1412 | def ListBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1413 | """ |
110da5b0 RD |
1414 | ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1415 | ||
1416 | Get the default attributes for this class. This is useful if you want | |
1417 | to use the same font or colour in your own control as in a standard | |
1418 | control -- which is a much better idea than hard coding specific | |
1419 | colours or fonts which might look completely out of place on the | |
1420 | user's system, especially if it uses themes. | |
1421 | ||
1422 | The variant parameter is only relevant under Mac currently and is | |
1423 | ignore under other platforms. Under Mac, it will change the size of | |
1424 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1425 | this. | |
1426 | """ | |
0085ce49 | 1427 | return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 1428 | |
d14a1e28 | 1429 | #--------------------------------------------------------------------------- |
70551f47 | 1430 | |
d14a1e28 | 1431 | class CheckListBox(ListBox): |
093d3ff1 | 1432 | """Proxy of C++ CheckListBox class""" |
0085ce49 RD |
1433 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1434 | __repr__ = _swig_repr | |
1435 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1436 | """ |
248ed943 RD |
1437 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1438 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1439 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1440 | String name=ListBoxNameStr) -> CheckListBox |
0df68c9f | 1441 | """ |
0085ce49 | 1442 | _controls_.CheckListBox_swiginit(self,_controls_.new_CheckListBox(*args, **kwargs)) |
33b885b9 RD |
1443 | self._setOORInfo(self) |
1444 | ||
e811c8ce | 1445 | def Create(*args, **kwargs): |
0df68c9f | 1446 | """ |
248ed943 RD |
1447 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1448 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1449 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1450 | String name=ListBoxNameStr) -> bool |
0df68c9f | 1451 | """ |
54f9ee45 | 1452 | return _controls_.CheckListBox_Create(*args, **kwargs) |
e811c8ce RD |
1453 | |
1454 | def IsChecked(*args, **kwargs): | |
50f151d7 | 1455 | """IsChecked(self, unsigned int index) -> bool""" |
54f9ee45 | 1456 | return _controls_.CheckListBox_IsChecked(*args, **kwargs) |
e811c8ce RD |
1457 | |
1458 | def Check(*args, **kwargs): | |
50f151d7 | 1459 | """Check(self, unsigned int index, int check=True)""" |
54f9ee45 | 1460 | return _controls_.CheckListBox_Check(*args, **kwargs) |
e811c8ce RD |
1461 | |
1462 | def GetItemHeight(*args, **kwargs): | |
a95a7133 | 1463 | """GetItemHeight(self) -> int""" |
54f9ee45 | 1464 | return _controls_.CheckListBox_GetItemHeight(*args, **kwargs) |
e811c8ce | 1465 | |
0085ce49 RD |
1466 | CheckListBox_swigregister = _controls_.CheckListBox_swigregister |
1467 | CheckListBox_swigregister(CheckListBox) | |
d14a1e28 RD |
1468 | |
1469 | def PreCheckListBox(*args, **kwargs): | |
e811c8ce | 1470 | """PreCheckListBox() -> CheckListBox""" |
54f9ee45 | 1471 | val = _controls_.new_PreCheckListBox(*args, **kwargs) |
d14a1e28 RD |
1472 | return val |
1473 | ||
1474 | #--------------------------------------------------------------------------- | |
1475 | ||
54f9ee45 RD |
1476 | TE_NO_VSCROLL = _controls_.TE_NO_VSCROLL |
1477 | TE_AUTO_SCROLL = _controls_.TE_AUTO_SCROLL | |
1478 | TE_READONLY = _controls_.TE_READONLY | |
1479 | TE_MULTILINE = _controls_.TE_MULTILINE | |
1480 | TE_PROCESS_TAB = _controls_.TE_PROCESS_TAB | |
1481 | TE_LEFT = _controls_.TE_LEFT | |
1482 | TE_CENTER = _controls_.TE_CENTER | |
1483 | TE_RIGHT = _controls_.TE_RIGHT | |
1484 | TE_CENTRE = _controls_.TE_CENTRE | |
1485 | TE_RICH = _controls_.TE_RICH | |
1486 | TE_PROCESS_ENTER = _controls_.TE_PROCESS_ENTER | |
1487 | TE_PASSWORD = _controls_.TE_PASSWORD | |
1488 | TE_AUTO_URL = _controls_.TE_AUTO_URL | |
1489 | TE_NOHIDESEL = _controls_.TE_NOHIDESEL | |
1490 | TE_DONTWRAP = _controls_.TE_DONTWRAP | |
08d9e66e | 1491 | TE_CHARWRAP = _controls_.TE_CHARWRAP |
54f9ee45 | 1492 | TE_WORDWRAP = _controls_.TE_WORDWRAP |
08d9e66e | 1493 | TE_BESTWRAP = _controls_.TE_BESTWRAP |
54f9ee45 | 1494 | TE_RICH2 = _controls_.TE_RICH2 |
88c6b281 | 1495 | TE_CAPITALIZE = _controls_.TE_CAPITALIZE |
e9d6f3a4 | 1496 | TE_LINEWRAP = TE_CHARWRAP |
54f9ee45 RD |
1497 | TEXT_ALIGNMENT_DEFAULT = _controls_.TEXT_ALIGNMENT_DEFAULT |
1498 | TEXT_ALIGNMENT_LEFT = _controls_.TEXT_ALIGNMENT_LEFT | |
1499 | TEXT_ALIGNMENT_CENTRE = _controls_.TEXT_ALIGNMENT_CENTRE | |
1500 | TEXT_ALIGNMENT_CENTER = _controls_.TEXT_ALIGNMENT_CENTER | |
1501 | TEXT_ALIGNMENT_RIGHT = _controls_.TEXT_ALIGNMENT_RIGHT | |
1502 | TEXT_ALIGNMENT_JUSTIFIED = _controls_.TEXT_ALIGNMENT_JUSTIFIED | |
1503 | TEXT_ATTR_TEXT_COLOUR = _controls_.TEXT_ATTR_TEXT_COLOUR | |
1504 | TEXT_ATTR_BACKGROUND_COLOUR = _controls_.TEXT_ATTR_BACKGROUND_COLOUR | |
1505 | TEXT_ATTR_FONT_FACE = _controls_.TEXT_ATTR_FONT_FACE | |
1506 | TEXT_ATTR_FONT_SIZE = _controls_.TEXT_ATTR_FONT_SIZE | |
1507 | TEXT_ATTR_FONT_WEIGHT = _controls_.TEXT_ATTR_FONT_WEIGHT | |
1508 | TEXT_ATTR_FONT_ITALIC = _controls_.TEXT_ATTR_FONT_ITALIC | |
1509 | TEXT_ATTR_FONT_UNDERLINE = _controls_.TEXT_ATTR_FONT_UNDERLINE | |
1510 | TEXT_ATTR_FONT = _controls_.TEXT_ATTR_FONT | |
1511 | TEXT_ATTR_ALIGNMENT = _controls_.TEXT_ATTR_ALIGNMENT | |
1512 | TEXT_ATTR_LEFT_INDENT = _controls_.TEXT_ATTR_LEFT_INDENT | |
1513 | TEXT_ATTR_RIGHT_INDENT = _controls_.TEXT_ATTR_RIGHT_INDENT | |
1514 | TEXT_ATTR_TABS = _controls_.TEXT_ATTR_TABS | |
1515 | TE_HT_UNKNOWN = _controls_.TE_HT_UNKNOWN | |
1516 | TE_HT_BEFORE = _controls_.TE_HT_BEFORE | |
1517 | TE_HT_ON_TEXT = _controls_.TE_HT_ON_TEXT | |
1518 | TE_HT_BELOW = _controls_.TE_HT_BELOW | |
1519 | TE_HT_BEYOND = _controls_.TE_HT_BEYOND | |
7557b9b5 RD |
1520 | OutOfRangeTextCoord = _controls_.OutOfRangeTextCoord |
1521 | InvalidTextCoord = _controls_.InvalidTextCoord | |
d14a1e28 | 1522 | class TextAttr(object): |
093d3ff1 | 1523 | """Proxy of C++ TextAttr class""" |
0085ce49 RD |
1524 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1525 | __repr__ = _swig_repr | |
1526 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1527 | """ |
908b74cd RD |
1528 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, |
1529 | Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr | |
0df68c9f | 1530 | """ |
0085ce49 RD |
1531 | _controls_.TextAttr_swiginit(self,_controls_.new_TextAttr(*args, **kwargs)) |
1532 | __swig_destroy__ = _controls_.delete_TextAttr | |
1533 | __del__ = lambda self : None; | |
e811c8ce | 1534 | def Init(*args, **kwargs): |
a95a7133 | 1535 | """Init(self)""" |
54f9ee45 | 1536 | return _controls_.TextAttr_Init(*args, **kwargs) |
e811c8ce RD |
1537 | |
1538 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 1539 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 1540 | return _controls_.TextAttr_SetTextColour(*args, **kwargs) |
e811c8ce RD |
1541 | |
1542 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 1543 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 1544 | return _controls_.TextAttr_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1545 | |
1546 | def SetFont(*args, **kwargs): | |
a95a7133 | 1547 | """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)""" |
54f9ee45 | 1548 | return _controls_.TextAttr_SetFont(*args, **kwargs) |
e811c8ce RD |
1549 | |
1550 | def SetAlignment(*args, **kwargs): | |
a95a7133 | 1551 | """SetAlignment(self, int alignment)""" |
54f9ee45 | 1552 | return _controls_.TextAttr_SetAlignment(*args, **kwargs) |
e811c8ce RD |
1553 | |
1554 | def SetTabs(*args, **kwargs): | |
a95a7133 | 1555 | """SetTabs(self, wxArrayInt tabs)""" |
54f9ee45 | 1556 | return _controls_.TextAttr_SetTabs(*args, **kwargs) |
e811c8ce RD |
1557 | |
1558 | def SetLeftIndent(*args, **kwargs): | |
5e4ca4a8 | 1559 | """SetLeftIndent(self, int indent, int subIndent=0)""" |
54f9ee45 | 1560 | return _controls_.TextAttr_SetLeftIndent(*args, **kwargs) |
e811c8ce RD |
1561 | |
1562 | def SetRightIndent(*args, **kwargs): | |
a95a7133 | 1563 | """SetRightIndent(self, int indent)""" |
54f9ee45 | 1564 | return _controls_.TextAttr_SetRightIndent(*args, **kwargs) |
e811c8ce RD |
1565 | |
1566 | def SetFlags(*args, **kwargs): | |
a95a7133 | 1567 | """SetFlags(self, long flags)""" |
54f9ee45 | 1568 | return _controls_.TextAttr_SetFlags(*args, **kwargs) |
e811c8ce RD |
1569 | |
1570 | def HasTextColour(*args, **kwargs): | |
a95a7133 | 1571 | """HasTextColour(self) -> bool""" |
54f9ee45 | 1572 | return _controls_.TextAttr_HasTextColour(*args, **kwargs) |
e811c8ce RD |
1573 | |
1574 | def HasBackgroundColour(*args, **kwargs): | |
a95a7133 | 1575 | """HasBackgroundColour(self) -> bool""" |
54f9ee45 | 1576 | return _controls_.TextAttr_HasBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1577 | |
1578 | def HasFont(*args, **kwargs): | |
a95a7133 | 1579 | """HasFont(self) -> bool""" |
54f9ee45 | 1580 | return _controls_.TextAttr_HasFont(*args, **kwargs) |
e811c8ce RD |
1581 | |
1582 | def HasAlignment(*args, **kwargs): | |
a95a7133 | 1583 | """HasAlignment(self) -> bool""" |
54f9ee45 | 1584 | return _controls_.TextAttr_HasAlignment(*args, **kwargs) |
e811c8ce RD |
1585 | |
1586 | def HasTabs(*args, **kwargs): | |
a95a7133 | 1587 | """HasTabs(self) -> bool""" |
54f9ee45 | 1588 | return _controls_.TextAttr_HasTabs(*args, **kwargs) |
e811c8ce RD |
1589 | |
1590 | def HasLeftIndent(*args, **kwargs): | |
a95a7133 | 1591 | """HasLeftIndent(self) -> bool""" |
54f9ee45 | 1592 | return _controls_.TextAttr_HasLeftIndent(*args, **kwargs) |
e811c8ce RD |
1593 | |
1594 | def HasRightIndent(*args, **kwargs): | |
a95a7133 | 1595 | """HasRightIndent(self) -> bool""" |
54f9ee45 | 1596 | return _controls_.TextAttr_HasRightIndent(*args, **kwargs) |
e811c8ce RD |
1597 | |
1598 | def HasFlag(*args, **kwargs): | |
a95a7133 | 1599 | """HasFlag(self, long flag) -> bool""" |
54f9ee45 | 1600 | return _controls_.TextAttr_HasFlag(*args, **kwargs) |
e811c8ce RD |
1601 | |
1602 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 1603 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 1604 | return _controls_.TextAttr_GetTextColour(*args, **kwargs) |
e811c8ce RD |
1605 | |
1606 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 1607 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 1608 | return _controls_.TextAttr_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1609 | |
1610 | def GetFont(*args, **kwargs): | |
a95a7133 | 1611 | """GetFont(self) -> Font""" |
54f9ee45 | 1612 | return _controls_.TextAttr_GetFont(*args, **kwargs) |
e811c8ce RD |
1613 | |
1614 | def GetAlignment(*args, **kwargs): | |
a95a7133 | 1615 | """GetAlignment(self) -> int""" |
54f9ee45 | 1616 | return _controls_.TextAttr_GetAlignment(*args, **kwargs) |
e811c8ce RD |
1617 | |
1618 | def GetTabs(*args, **kwargs): | |
a95a7133 | 1619 | """GetTabs(self) -> wxArrayInt""" |
54f9ee45 | 1620 | return _controls_.TextAttr_GetTabs(*args, **kwargs) |
e811c8ce RD |
1621 | |
1622 | def GetLeftIndent(*args, **kwargs): | |
a95a7133 | 1623 | """GetLeftIndent(self) -> long""" |
54f9ee45 | 1624 | return _controls_.TextAttr_GetLeftIndent(*args, **kwargs) |
5e4ca4a8 RD |
1625 | |
1626 | def GetLeftSubIndent(*args, **kwargs): | |
1627 | """GetLeftSubIndent(self) -> long""" | |
1628 | return _controls_.TextAttr_GetLeftSubIndent(*args, **kwargs) | |
e811c8ce RD |
1629 | |
1630 | def GetRightIndent(*args, **kwargs): | |
a95a7133 | 1631 | """GetRightIndent(self) -> long""" |
54f9ee45 | 1632 | return _controls_.TextAttr_GetRightIndent(*args, **kwargs) |
e811c8ce RD |
1633 | |
1634 | def GetFlags(*args, **kwargs): | |
a95a7133 | 1635 | """GetFlags(self) -> long""" |
54f9ee45 | 1636 | return _controls_.TextAttr_GetFlags(*args, **kwargs) |
e811c8ce RD |
1637 | |
1638 | def IsDefault(*args, **kwargs): | |
a95a7133 | 1639 | """IsDefault(self) -> bool""" |
54f9ee45 | 1640 | return _controls_.TextAttr_IsDefault(*args, **kwargs) |
e811c8ce RD |
1641 | |
1642 | def Combine(*args, **kwargs): | |
66c033b4 | 1643 | """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" |
54f9ee45 | 1644 | return _controls_.TextAttr_Combine(*args, **kwargs) |
e811c8ce RD |
1645 | |
1646 | Combine = staticmethod(Combine) | |
0085ce49 RD |
1647 | TextAttr_swigregister = _controls_.TextAttr_swigregister |
1648 | TextAttr_swigregister(TextAttr) | |
b2dc1044 | 1649 | TextCtrlNameStr = cvar.TextCtrlNameStr |
d14a1e28 | 1650 | |
e811c8ce | 1651 | def TextAttr_Combine(*args, **kwargs): |
0085ce49 RD |
1652 | """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" |
1653 | return _controls_.TextAttr_Combine(*args, **kwargs) | |
d14a1e28 | 1654 | |
54f9ee45 | 1655 | class TextCtrl(_core.Control): |
093d3ff1 | 1656 | """Proxy of C++ TextCtrl class""" |
0085ce49 RD |
1657 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1658 | __repr__ = _swig_repr | |
1659 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1660 | """ |
248ed943 RD |
1661 | __init__(self, Window parent, int id=-1, String value=EmptyString, |
1662 | Point pos=DefaultPosition, Size size=DefaultSize, | |
0df68c9f | 1663 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1664 | String name=TextCtrlNameStr) -> TextCtrl |
0df68c9f | 1665 | """ |
0085ce49 | 1666 | _controls_.TextCtrl_swiginit(self,_controls_.new_TextCtrl(*args, **kwargs)) |
0220cbc1 | 1667 | self._setOORInfo(self) |
e811c8ce RD |
1668 | |
1669 | def Create(*args, **kwargs): | |
0df68c9f | 1670 | """ |
248ed943 RD |
1671 | Create(self, Window parent, int id=-1, String value=EmptyString, |
1672 | Point pos=DefaultPosition, Size size=DefaultSize, | |
0df68c9f | 1673 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1674 | String name=TextCtrlNameStr) -> bool |
0df68c9f | 1675 | """ |
54f9ee45 | 1676 | return _controls_.TextCtrl_Create(*args, **kwargs) |
e811c8ce RD |
1677 | |
1678 | def GetValue(*args, **kwargs): | |
a95a7133 | 1679 | """GetValue(self) -> String""" |
54f9ee45 | 1680 | return _controls_.TextCtrl_GetValue(*args, **kwargs) |
e811c8ce RD |
1681 | |
1682 | def SetValue(*args, **kwargs): | |
a95a7133 | 1683 | """SetValue(self, String value)""" |
54f9ee45 | 1684 | return _controls_.TextCtrl_SetValue(*args, **kwargs) |
e811c8ce RD |
1685 | |
1686 | def GetRange(*args, **kwargs): | |
a95a7133 | 1687 | """GetRange(self, long from, long to) -> String""" |
54f9ee45 | 1688 | return _controls_.TextCtrl_GetRange(*args, **kwargs) |
e811c8ce RD |
1689 | |
1690 | def GetLineLength(*args, **kwargs): | |
a95a7133 | 1691 | """GetLineLength(self, long lineNo) -> int""" |
54f9ee45 | 1692 | return _controls_.TextCtrl_GetLineLength(*args, **kwargs) |
e811c8ce RD |
1693 | |
1694 | def GetLineText(*args, **kwargs): | |
a95a7133 | 1695 | """GetLineText(self, long lineNo) -> String""" |
54f9ee45 | 1696 | return _controls_.TextCtrl_GetLineText(*args, **kwargs) |
e811c8ce RD |
1697 | |
1698 | def GetNumberOfLines(*args, **kwargs): | |
a95a7133 | 1699 | """GetNumberOfLines(self) -> int""" |
54f9ee45 | 1700 | return _controls_.TextCtrl_GetNumberOfLines(*args, **kwargs) |
e811c8ce RD |
1701 | |
1702 | def IsModified(*args, **kwargs): | |
a95a7133 | 1703 | """IsModified(self) -> bool""" |
54f9ee45 | 1704 | return _controls_.TextCtrl_IsModified(*args, **kwargs) |
e811c8ce RD |
1705 | |
1706 | def IsEditable(*args, **kwargs): | |
a95a7133 | 1707 | """IsEditable(self) -> bool""" |
54f9ee45 | 1708 | return _controls_.TextCtrl_IsEditable(*args, **kwargs) |
e811c8ce RD |
1709 | |
1710 | def IsSingleLine(*args, **kwargs): | |
a95a7133 | 1711 | """IsSingleLine(self) -> bool""" |
54f9ee45 | 1712 | return _controls_.TextCtrl_IsSingleLine(*args, **kwargs) |
e811c8ce RD |
1713 | |
1714 | def IsMultiLine(*args, **kwargs): | |
a95a7133 | 1715 | """IsMultiLine(self) -> bool""" |
54f9ee45 | 1716 | return _controls_.TextCtrl_IsMultiLine(*args, **kwargs) |
e811c8ce RD |
1717 | |
1718 | def GetSelection(*args, **kwargs): | |
fd2dc343 RD |
1719 | """ |
1720 | GetSelection() -> (from, to) | |
1721 | ||
1722 | If the return values from and to are the same, there is no selection. | |
1723 | """ | |
54f9ee45 | 1724 | return _controls_.TextCtrl_GetSelection(*args, **kwargs) |
e811c8ce RD |
1725 | |
1726 | def GetStringSelection(*args, **kwargs): | |
a95a7133 | 1727 | """GetStringSelection(self) -> String""" |
54f9ee45 | 1728 | return _controls_.TextCtrl_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
1729 | |
1730 | def Clear(*args, **kwargs): | |
a95a7133 | 1731 | """Clear(self)""" |
54f9ee45 | 1732 | return _controls_.TextCtrl_Clear(*args, **kwargs) |
e811c8ce RD |
1733 | |
1734 | def Replace(*args, **kwargs): | |
a95a7133 | 1735 | """Replace(self, long from, long to, String value)""" |
54f9ee45 | 1736 | return _controls_.TextCtrl_Replace(*args, **kwargs) |
e811c8ce RD |
1737 | |
1738 | def Remove(*args, **kwargs): | |
a95a7133 | 1739 | """Remove(self, long from, long to)""" |
54f9ee45 | 1740 | return _controls_.TextCtrl_Remove(*args, **kwargs) |
e811c8ce RD |
1741 | |
1742 | def LoadFile(*args, **kwargs): | |
a95a7133 | 1743 | """LoadFile(self, String file) -> bool""" |
54f9ee45 | 1744 | return _controls_.TextCtrl_LoadFile(*args, **kwargs) |
e811c8ce RD |
1745 | |
1746 | def SaveFile(*args, **kwargs): | |
a95a7133 | 1747 | """SaveFile(self, String file=EmptyString) -> bool""" |
54f9ee45 | 1748 | return _controls_.TextCtrl_SaveFile(*args, **kwargs) |
e811c8ce RD |
1749 | |
1750 | def MarkDirty(*args, **kwargs): | |
a95a7133 | 1751 | """MarkDirty(self)""" |
54f9ee45 | 1752 | return _controls_.TextCtrl_MarkDirty(*args, **kwargs) |
e811c8ce RD |
1753 | |
1754 | def DiscardEdits(*args, **kwargs): | |
a95a7133 | 1755 | """DiscardEdits(self)""" |
54f9ee45 | 1756 | return _controls_.TextCtrl_DiscardEdits(*args, **kwargs) |
e811c8ce RD |
1757 | |
1758 | def SetMaxLength(*args, **kwargs): | |
a95a7133 | 1759 | """SetMaxLength(self, unsigned long len)""" |
54f9ee45 | 1760 | return _controls_.TextCtrl_SetMaxLength(*args, **kwargs) |
e811c8ce RD |
1761 | |
1762 | def WriteText(*args, **kwargs): | |
a95a7133 | 1763 | """WriteText(self, String text)""" |
54f9ee45 | 1764 | return _controls_.TextCtrl_WriteText(*args, **kwargs) |
e811c8ce RD |
1765 | |
1766 | def AppendText(*args, **kwargs): | |
a95a7133 | 1767 | """AppendText(self, String text)""" |
54f9ee45 | 1768 | return _controls_.TextCtrl_AppendText(*args, **kwargs) |
e811c8ce RD |
1769 | |
1770 | def EmulateKeyPress(*args, **kwargs): | |
a95a7133 | 1771 | """EmulateKeyPress(self, KeyEvent event) -> bool""" |
54f9ee45 | 1772 | return _controls_.TextCtrl_EmulateKeyPress(*args, **kwargs) |
e811c8ce RD |
1773 | |
1774 | def SetStyle(*args, **kwargs): | |
a95a7133 | 1775 | """SetStyle(self, long start, long end, TextAttr style) -> bool""" |
54f9ee45 | 1776 | return _controls_.TextCtrl_SetStyle(*args, **kwargs) |
e811c8ce RD |
1777 | |
1778 | def GetStyle(*args, **kwargs): | |
a95a7133 | 1779 | """GetStyle(self, long position, TextAttr style) -> bool""" |
54f9ee45 | 1780 | return _controls_.TextCtrl_GetStyle(*args, **kwargs) |
e811c8ce RD |
1781 | |
1782 | def SetDefaultStyle(*args, **kwargs): | |
a95a7133 | 1783 | """SetDefaultStyle(self, TextAttr style) -> bool""" |
54f9ee45 | 1784 | return _controls_.TextCtrl_SetDefaultStyle(*args, **kwargs) |
e811c8ce RD |
1785 | |
1786 | def GetDefaultStyle(*args, **kwargs): | |
a95a7133 | 1787 | """GetDefaultStyle(self) -> TextAttr""" |
54f9ee45 | 1788 | return _controls_.TextCtrl_GetDefaultStyle(*args, **kwargs) |
e811c8ce RD |
1789 | |
1790 | def XYToPosition(*args, **kwargs): | |
a95a7133 | 1791 | """XYToPosition(self, long x, long y) -> long""" |
54f9ee45 | 1792 | return _controls_.TextCtrl_XYToPosition(*args, **kwargs) |
e811c8ce RD |
1793 | |
1794 | def PositionToXY(*args, **kwargs): | |
322913ce | 1795 | """PositionToXY(long pos) -> (x, y)""" |
54f9ee45 | 1796 | return _controls_.TextCtrl_PositionToXY(*args, **kwargs) |
e811c8ce RD |
1797 | |
1798 | def ShowPosition(*args, **kwargs): | |
a95a7133 | 1799 | """ShowPosition(self, long pos)""" |
54f9ee45 | 1800 | return _controls_.TextCtrl_ShowPosition(*args, **kwargs) |
e811c8ce | 1801 | |
4d5c3d91 | 1802 | def HitTest(*args, **kwargs): |
fd2dc343 | 1803 | """ |
51b83b37 | 1804 | HitTest(Point pt) -> (result, col, row) |
fd2dc343 | 1805 | |
4896ac9e RD |
1806 | Find the row, col coresponding to the character at the point given in |
1807 | pixels. NB: pt is in device coords but is not adjusted for the client | |
1808 | area origin nor scrolling. | |
fd2dc343 | 1809 | """ |
54f9ee45 | 1810 | return _controls_.TextCtrl_HitTest(*args, **kwargs) |
4d5c3d91 | 1811 | |
4896ac9e RD |
1812 | def HitTestPos(*args, **kwargs): |
1813 | """ | |
1814 | HitTestPos(Point pt) -> (result, position) | |
1815 | ||
1816 | Find the character position in the text coresponding to the point | |
1817 | given in pixels. NB: pt is in device coords but is not adjusted for | |
1818 | the client area origin nor scrolling. | |
1819 | """ | |
1820 | return _controls_.TextCtrl_HitTestPos(*args, **kwargs) | |
1821 | ||
e811c8ce | 1822 | def Copy(*args, **kwargs): |
a95a7133 | 1823 | """Copy(self)""" |
54f9ee45 | 1824 | return _controls_.TextCtrl_Copy(*args, **kwargs) |
e811c8ce RD |
1825 | |
1826 | def Cut(*args, **kwargs): | |
a95a7133 | 1827 | """Cut(self)""" |
54f9ee45 | 1828 | return _controls_.TextCtrl_Cut(*args, **kwargs) |
e811c8ce RD |
1829 | |
1830 | def Paste(*args, **kwargs): | |
a95a7133 | 1831 | """Paste(self)""" |
54f9ee45 | 1832 | return _controls_.TextCtrl_Paste(*args, **kwargs) |
e811c8ce RD |
1833 | |
1834 | def CanCopy(*args, **kwargs): | |
a95a7133 | 1835 | """CanCopy(self) -> bool""" |
54f9ee45 | 1836 | return _controls_.TextCtrl_CanCopy(*args, **kwargs) |
e811c8ce RD |
1837 | |
1838 | def CanCut(*args, **kwargs): | |
a95a7133 | 1839 | """CanCut(self) -> bool""" |
54f9ee45 | 1840 | return _controls_.TextCtrl_CanCut(*args, **kwargs) |
e811c8ce RD |
1841 | |
1842 | def CanPaste(*args, **kwargs): | |
a95a7133 | 1843 | """CanPaste(self) -> bool""" |
54f9ee45 | 1844 | return _controls_.TextCtrl_CanPaste(*args, **kwargs) |
e811c8ce RD |
1845 | |
1846 | def Undo(*args, **kwargs): | |
a95a7133 | 1847 | """Undo(self)""" |
54f9ee45 | 1848 | return _controls_.TextCtrl_Undo(*args, **kwargs) |
e811c8ce RD |
1849 | |
1850 | def Redo(*args, **kwargs): | |
a95a7133 | 1851 | """Redo(self)""" |
54f9ee45 | 1852 | return _controls_.TextCtrl_Redo(*args, **kwargs) |
e811c8ce RD |
1853 | |
1854 | def CanUndo(*args, **kwargs): | |
a95a7133 | 1855 | """CanUndo(self) -> bool""" |
54f9ee45 | 1856 | return _controls_.TextCtrl_CanUndo(*args, **kwargs) |
e811c8ce RD |
1857 | |
1858 | def CanRedo(*args, **kwargs): | |
a95a7133 | 1859 | """CanRedo(self) -> bool""" |
54f9ee45 | 1860 | return _controls_.TextCtrl_CanRedo(*args, **kwargs) |
e811c8ce RD |
1861 | |
1862 | def SetInsertionPoint(*args, **kwargs): | |
a95a7133 | 1863 | """SetInsertionPoint(self, long pos)""" |
54f9ee45 | 1864 | return _controls_.TextCtrl_SetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
1865 | |
1866 | def SetInsertionPointEnd(*args, **kwargs): | |
a95a7133 | 1867 | """SetInsertionPointEnd(self)""" |
54f9ee45 | 1868 | return _controls_.TextCtrl_SetInsertionPointEnd(*args, **kwargs) |
e811c8ce RD |
1869 | |
1870 | def GetInsertionPoint(*args, **kwargs): | |
a95a7133 | 1871 | """GetInsertionPoint(self) -> long""" |
54f9ee45 | 1872 | return _controls_.TextCtrl_GetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
1873 | |
1874 | def GetLastPosition(*args, **kwargs): | |
a95a7133 | 1875 | """GetLastPosition(self) -> long""" |
54f9ee45 | 1876 | return _controls_.TextCtrl_GetLastPosition(*args, **kwargs) |
e811c8ce RD |
1877 | |
1878 | def SetSelection(*args, **kwargs): | |
a95a7133 | 1879 | """SetSelection(self, long from, long to)""" |
54f9ee45 | 1880 | return _controls_.TextCtrl_SetSelection(*args, **kwargs) |
e811c8ce RD |
1881 | |
1882 | def SelectAll(*args, **kwargs): | |
a95a7133 | 1883 | """SelectAll(self)""" |
54f9ee45 | 1884 | return _controls_.TextCtrl_SelectAll(*args, **kwargs) |
e811c8ce RD |
1885 | |
1886 | def SetEditable(*args, **kwargs): | |
a95a7133 | 1887 | """SetEditable(self, bool editable)""" |
54f9ee45 | 1888 | return _controls_.TextCtrl_SetEditable(*args, **kwargs) |
e811c8ce RD |
1889 | |
1890 | def write(*args, **kwargs): | |
a95a7133 | 1891 | """write(self, String text)""" |
54f9ee45 | 1892 | return _controls_.TextCtrl_write(*args, **kwargs) |
e811c8ce RD |
1893 | |
1894 | def GetString(*args, **kwargs): | |
a95a7133 | 1895 | """GetString(self, long from, long to) -> String""" |
54f9ee45 | 1896 | return _controls_.TextCtrl_GetString(*args, **kwargs) |
e811c8ce | 1897 | |
22bfe96c | 1898 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1899 | """ |
1900 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1901 | ||
1902 | Get the default attributes for this class. This is useful if you want | |
1903 | to use the same font or colour in your own control as in a standard | |
1904 | control -- which is a much better idea than hard coding specific | |
1905 | colours or fonts which might look completely out of place on the | |
1906 | user's system, especially if it uses themes. | |
1907 | ||
1908 | The variant parameter is only relevant under Mac currently and is | |
1909 | ignore under other platforms. Under Mac, it will change the size of | |
1910 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1911 | this. | |
1912 | """ | |
22bfe96c RD |
1913 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
1914 | ||
1915 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
1916 | TextCtrl_swigregister = _controls_.TextCtrl_swigregister |
1917 | TextCtrl_swigregister(TextCtrl) | |
d24a34bb | 1918 | |
d14a1e28 | 1919 | def PreTextCtrl(*args, **kwargs): |
e811c8ce | 1920 | """PreTextCtrl() -> TextCtrl""" |
54f9ee45 | 1921 | val = _controls_.new_PreTextCtrl(*args, **kwargs) |
aa2a5b86 RD |
1922 | return val |
1923 | ||
22bfe96c | 1924 | def TextCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1925 | """ |
110da5b0 RD |
1926 | TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1927 | ||
1928 | Get the default attributes for this class. This is useful if you want | |
1929 | to use the same font or colour in your own control as in a standard | |
1930 | control -- which is a much better idea than hard coding specific | |
1931 | colours or fonts which might look completely out of place on the | |
1932 | user's system, especially if it uses themes. | |
1933 | ||
1934 | The variant parameter is only relevant under Mac currently and is | |
1935 | ignore under other platforms. Under Mac, it will change the size of | |
1936 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1937 | this. | |
1938 | """ | |
0085ce49 | 1939 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1940 | |
54f9ee45 RD |
1941 | wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED |
1942 | wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER | |
1943 | wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL | |
1944 | wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN | |
1945 | class TextUrlEvent(_core.CommandEvent): | |
093d3ff1 | 1946 | """Proxy of C++ TextUrlEvent class""" |
0085ce49 RD |
1947 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1948 | __repr__ = _swig_repr | |
1949 | def __init__(self, *args, **kwargs): | |
a95a7133 | 1950 | """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" |
0085ce49 | 1951 | _controls_.TextUrlEvent_swiginit(self,_controls_.new_TextUrlEvent(*args, **kwargs)) |
e811c8ce | 1952 | def GetMouseEvent(*args, **kwargs): |
a95a7133 | 1953 | """GetMouseEvent(self) -> MouseEvent""" |
54f9ee45 | 1954 | return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs) |
e811c8ce RD |
1955 | |
1956 | def GetURLStart(*args, **kwargs): | |
a95a7133 | 1957 | """GetURLStart(self) -> long""" |
54f9ee45 | 1958 | return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs) |
e811c8ce RD |
1959 | |
1960 | def GetURLEnd(*args, **kwargs): | |
a95a7133 | 1961 | """GetURLEnd(self) -> long""" |
54f9ee45 | 1962 | return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs) |
e811c8ce | 1963 | |
0085ce49 RD |
1964 | TextUrlEvent_swigregister = _controls_.TextUrlEvent_swigregister |
1965 | TextUrlEvent_swigregister(TextUrlEvent) | |
d14a1e28 RD |
1966 | |
1967 | EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) | |
1968 | EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) | |
1969 | EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) | |
1970 | EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) | |
1971 | ||
1972 | #--------------------------------------------------------------------------- | |
1973 | ||
54f9ee45 | 1974 | class ScrollBar(_core.Control): |
093d3ff1 | 1975 | """Proxy of C++ ScrollBar class""" |
0085ce49 RD |
1976 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1977 | __repr__ = _swig_repr | |
1978 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1979 | """ |
a95a7133 | 1980 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 1981 | Size size=DefaultSize, long style=SB_HORIZONTAL, |
b2dc1044 | 1982 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar |
0df68c9f | 1983 | """ |
0085ce49 | 1984 | _controls_.ScrollBar_swiginit(self,_controls_.new_ScrollBar(*args, **kwargs)) |
0220cbc1 | 1985 | self._setOORInfo(self) |
e811c8ce RD |
1986 | |
1987 | def Create(*args, **kwargs): | |
0df68c9f | 1988 | """ |
a95a7133 | 1989 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 1990 | Size size=DefaultSize, long style=SB_HORIZONTAL, |
b2dc1044 | 1991 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool |
15afbcd0 RD |
1992 | |
1993 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 1994 | """ |
54f9ee45 | 1995 | return _controls_.ScrollBar_Create(*args, **kwargs) |
e811c8ce RD |
1996 | |
1997 | def GetThumbPosition(*args, **kwargs): | |
a95a7133 | 1998 | """GetThumbPosition(self) -> int""" |
54f9ee45 | 1999 | return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs) |
e811c8ce RD |
2000 | |
2001 | def GetThumbSize(*args, **kwargs): | |
a95a7133 | 2002 | """GetThumbSize(self) -> int""" |
54f9ee45 | 2003 | return _controls_.ScrollBar_GetThumbSize(*args, **kwargs) |
e811c8ce | 2004 | |
d14a1e28 | 2005 | GetThumbLength = GetThumbSize |
e811c8ce | 2006 | def GetPageSize(*args, **kwargs): |
a95a7133 | 2007 | """GetPageSize(self) -> int""" |
54f9ee45 | 2008 | return _controls_.ScrollBar_GetPageSize(*args, **kwargs) |
e811c8ce RD |
2009 | |
2010 | def GetRange(*args, **kwargs): | |
a95a7133 | 2011 | """GetRange(self) -> int""" |
54f9ee45 | 2012 | return _controls_.ScrollBar_GetRange(*args, **kwargs) |
e811c8ce RD |
2013 | |
2014 | def IsVertical(*args, **kwargs): | |
a95a7133 | 2015 | """IsVertical(self) -> bool""" |
54f9ee45 | 2016 | return _controls_.ScrollBar_IsVertical(*args, **kwargs) |
e811c8ce RD |
2017 | |
2018 | def SetThumbPosition(*args, **kwargs): | |
a95a7133 | 2019 | """SetThumbPosition(self, int viewStart)""" |
54f9ee45 | 2020 | return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs) |
e811c8ce | 2021 | |
22bfe96c | 2022 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2023 | """ |
2024 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2025 | ||
2026 | Get the default attributes for this class. This is useful if you want | |
2027 | to use the same font or colour in your own control as in a standard | |
2028 | control -- which is a much better idea than hard coding specific | |
2029 | colours or fonts which might look completely out of place on the | |
2030 | user's system, especially if it uses themes. | |
2031 | ||
2032 | The variant parameter is only relevant under Mac currently and is | |
2033 | ignore under other platforms. Under Mac, it will change the size of | |
2034 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2035 | this. | |
2036 | """ | |
22bfe96c RD |
2037 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
2038 | ||
2039 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2040 | ScrollBar_swigregister = _controls_.ScrollBar_swigregister |
2041 | ScrollBar_swigregister(ScrollBar) | |
b2dc1044 | 2042 | ScrollBarNameStr = cvar.ScrollBarNameStr |
70551f47 | 2043 | |
d14a1e28 | 2044 | def PreScrollBar(*args, **kwargs): |
e811c8ce | 2045 | """PreScrollBar() -> ScrollBar""" |
54f9ee45 | 2046 | val = _controls_.new_PreScrollBar(*args, **kwargs) |
aa2a5b86 RD |
2047 | return val |
2048 | ||
22bfe96c | 2049 | def ScrollBar_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2050 | """ |
110da5b0 RD |
2051 | ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2052 | ||
2053 | Get the default attributes for this class. This is useful if you want | |
2054 | to use the same font or colour in your own control as in a standard | |
2055 | control -- which is a much better idea than hard coding specific | |
2056 | colours or fonts which might look completely out of place on the | |
2057 | user's system, especially if it uses themes. | |
2058 | ||
2059 | The variant parameter is only relevant under Mac currently and is | |
2060 | ignore under other platforms. Under Mac, it will change the size of | |
2061 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2062 | this. | |
2063 | """ | |
0085ce49 | 2064 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2065 | |
d14a1e28 | 2066 | #--------------------------------------------------------------------------- |
70551f47 | 2067 | |
54f9ee45 RD |
2068 | SP_HORIZONTAL = _controls_.SP_HORIZONTAL |
2069 | SP_VERTICAL = _controls_.SP_VERTICAL | |
2070 | SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS | |
2071 | SP_WRAP = _controls_.SP_WRAP | |
2072 | class SpinButton(_core.Control): | |
093d3ff1 | 2073 | """Proxy of C++ SpinButton class""" |
0085ce49 RD |
2074 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2075 | __repr__ = _swig_repr | |
2076 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2077 | """ |
a95a7133 | 2078 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2079 | Size size=DefaultSize, long style=SP_HORIZONTAL, |
b2dc1044 | 2080 | String name=SPIN_BUTTON_NAME) -> SpinButton |
0df68c9f | 2081 | """ |
0085ce49 | 2082 | _controls_.SpinButton_swiginit(self,_controls_.new_SpinButton(*args, **kwargs)) |
0220cbc1 | 2083 | self._setOORInfo(self) |
70551f47 | 2084 | |
e811c8ce | 2085 | def Create(*args, **kwargs): |
0df68c9f | 2086 | """ |
a95a7133 | 2087 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2088 | Size size=DefaultSize, long style=SP_HORIZONTAL, |
b2dc1044 | 2089 | String name=SPIN_BUTTON_NAME) -> bool |
0df68c9f | 2090 | """ |
54f9ee45 | 2091 | return _controls_.SpinButton_Create(*args, **kwargs) |
e811c8ce RD |
2092 | |
2093 | def GetValue(*args, **kwargs): | |
a95a7133 | 2094 | """GetValue(self) -> int""" |
54f9ee45 | 2095 | return _controls_.SpinButton_GetValue(*args, **kwargs) |
e811c8ce RD |
2096 | |
2097 | def GetMin(*args, **kwargs): | |
a95a7133 | 2098 | """GetMin(self) -> int""" |
54f9ee45 | 2099 | return _controls_.SpinButton_GetMin(*args, **kwargs) |
e811c8ce RD |
2100 | |
2101 | def GetMax(*args, **kwargs): | |
a95a7133 | 2102 | """GetMax(self) -> int""" |
54f9ee45 | 2103 | return _controls_.SpinButton_GetMax(*args, **kwargs) |
e811c8ce RD |
2104 | |
2105 | def SetValue(*args, **kwargs): | |
a95a7133 | 2106 | """SetValue(self, int val)""" |
54f9ee45 | 2107 | return _controls_.SpinButton_SetValue(*args, **kwargs) |
e811c8ce RD |
2108 | |
2109 | def SetMin(*args, **kwargs): | |
a95a7133 | 2110 | """SetMin(self, int minVal)""" |
54f9ee45 | 2111 | return _controls_.SpinButton_SetMin(*args, **kwargs) |
e811c8ce RD |
2112 | |
2113 | def SetMax(*args, **kwargs): | |
a95a7133 | 2114 | """SetMax(self, int maxVal)""" |
54f9ee45 | 2115 | return _controls_.SpinButton_SetMax(*args, **kwargs) |
e811c8ce RD |
2116 | |
2117 | def SetRange(*args, **kwargs): | |
a95a7133 | 2118 | """SetRange(self, int minVal, int maxVal)""" |
54f9ee45 | 2119 | return _controls_.SpinButton_SetRange(*args, **kwargs) |
e811c8ce | 2120 | |
22bfe96c RD |
2121 | def IsVertical(*args, **kwargs): |
2122 | """IsVertical(self) -> bool""" | |
2123 | return _controls_.SpinButton_IsVertical(*args, **kwargs) | |
2124 | ||
2125 | def GetClassDefaultAttributes(*args, **kwargs): | |
110da5b0 RD |
2126 | """ |
2127 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2128 | ||
2129 | Get the default attributes for this class. This is useful if you want | |
2130 | to use the same font or colour in your own control as in a standard | |
2131 | control -- which is a much better idea than hard coding specific | |
2132 | colours or fonts which might look completely out of place on the | |
2133 | user's system, especially if it uses themes. | |
2134 | ||
2135 | The variant parameter is only relevant under Mac currently and is | |
2136 | ignore under other platforms. Under Mac, it will change the size of | |
2137 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2138 | this. | |
2139 | """ | |
22bfe96c | 2140 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
e811c8ce | 2141 | |
22bfe96c | 2142 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) |
0085ce49 RD |
2143 | SpinButton_swigregister = _controls_.SpinButton_swigregister |
2144 | SpinButton_swigregister(SpinButton) | |
b2dc1044 RD |
2145 | SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME |
2146 | SpinCtrlNameStr = cvar.SpinCtrlNameStr | |
70551f47 | 2147 | |
d14a1e28 | 2148 | def PreSpinButton(*args, **kwargs): |
e811c8ce | 2149 | """PreSpinButton() -> SpinButton""" |
54f9ee45 | 2150 | val = _controls_.new_PreSpinButton(*args, **kwargs) |
aa2a5b86 RD |
2151 | return val |
2152 | ||
22bfe96c | 2153 | def SpinButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2154 | """ |
110da5b0 RD |
2155 | SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2156 | ||
2157 | Get the default attributes for this class. This is useful if you want | |
2158 | to use the same font or colour in your own control as in a standard | |
2159 | control -- which is a much better idea than hard coding specific | |
2160 | colours or fonts which might look completely out of place on the | |
2161 | user's system, especially if it uses themes. | |
2162 | ||
2163 | The variant parameter is only relevant under Mac currently and is | |
2164 | ignore under other platforms. Under Mac, it will change the size of | |
2165 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2166 | this. | |
2167 | """ | |
0085ce49 | 2168 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2169 | |
54f9ee45 | 2170 | class SpinCtrl(_core.Control): |
093d3ff1 | 2171 | """Proxy of C++ SpinCtrl class""" |
0085ce49 RD |
2172 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2173 | __repr__ = _swig_repr | |
2174 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2175 | """ |
a95a7133 | 2176 | __init__(self, Window parent, int id=-1, String value=EmptyString, |
0df68c9f | 2177 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 2178 | long style=SP_ARROW_KEYS, int min=0, int max=100, |
b2dc1044 | 2179 | int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl |
0df68c9f | 2180 | """ |
0085ce49 | 2181 | _controls_.SpinCtrl_swiginit(self,_controls_.new_SpinCtrl(*args, **kwargs)) |
d14a1e28 | 2182 | self._setOORInfo(self) |
e811c8ce RD |
2183 | |
2184 | def Create(*args, **kwargs): | |
0df68c9f | 2185 | """ |
a95a7133 | 2186 | Create(self, Window parent, int id=-1, String value=EmptyString, |
0df68c9f | 2187 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 2188 | long style=SP_ARROW_KEYS, int min=0, int max=100, |
b2dc1044 | 2189 | int initial=0, String name=SpinCtrlNameStr) -> bool |
0df68c9f | 2190 | """ |
54f9ee45 | 2191 | return _controls_.SpinCtrl_Create(*args, **kwargs) |
e811c8ce RD |
2192 | |
2193 | def GetValue(*args, **kwargs): | |
a95a7133 | 2194 | """GetValue(self) -> int""" |
54f9ee45 | 2195 | return _controls_.SpinCtrl_GetValue(*args, **kwargs) |
e811c8ce RD |
2196 | |
2197 | def SetValue(*args, **kwargs): | |
a95a7133 | 2198 | """SetValue(self, int value)""" |
54f9ee45 | 2199 | return _controls_.SpinCtrl_SetValue(*args, **kwargs) |
e811c8ce RD |
2200 | |
2201 | def SetValueString(*args, **kwargs): | |
a95a7133 | 2202 | """SetValueString(self, String text)""" |
54f9ee45 | 2203 | return _controls_.SpinCtrl_SetValueString(*args, **kwargs) |
e811c8ce RD |
2204 | |
2205 | def SetRange(*args, **kwargs): | |
a95a7133 | 2206 | """SetRange(self, int minVal, int maxVal)""" |
54f9ee45 | 2207 | return _controls_.SpinCtrl_SetRange(*args, **kwargs) |
e811c8ce RD |
2208 | |
2209 | def GetMin(*args, **kwargs): | |
a95a7133 | 2210 | """GetMin(self) -> int""" |
54f9ee45 | 2211 | return _controls_.SpinCtrl_GetMin(*args, **kwargs) |
e811c8ce RD |
2212 | |
2213 | def GetMax(*args, **kwargs): | |
a95a7133 | 2214 | """GetMax(self) -> int""" |
54f9ee45 | 2215 | return _controls_.SpinCtrl_GetMax(*args, **kwargs) |
e811c8ce RD |
2216 | |
2217 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2218 | """SetSelection(self, long from, long to)""" |
54f9ee45 | 2219 | return _controls_.SpinCtrl_SetSelection(*args, **kwargs) |
e811c8ce | 2220 | |
22bfe96c | 2221 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2222 | """ |
2223 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2224 | ||
2225 | Get the default attributes for this class. This is useful if you want | |
2226 | to use the same font or colour in your own control as in a standard | |
2227 | control -- which is a much better idea than hard coding specific | |
2228 | colours or fonts which might look completely out of place on the | |
2229 | user's system, especially if it uses themes. | |
2230 | ||
2231 | The variant parameter is only relevant under Mac currently and is | |
2232 | ignore under other platforms. Under Mac, it will change the size of | |
2233 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2234 | this. | |
2235 | """ | |
22bfe96c RD |
2236 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
2237 | ||
2238 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2239 | SpinCtrl_swigregister = _controls_.SpinCtrl_swigregister |
2240 | SpinCtrl_swigregister(SpinCtrl) | |
d14a1e28 RD |
2241 | |
2242 | def PreSpinCtrl(*args, **kwargs): | |
e811c8ce | 2243 | """PreSpinCtrl() -> SpinCtrl""" |
54f9ee45 | 2244 | val = _controls_.new_PreSpinCtrl(*args, **kwargs) |
d14a1e28 RD |
2245 | return val |
2246 | ||
22bfe96c | 2247 | def SpinCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2248 | """ |
110da5b0 RD |
2249 | SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2250 | ||
2251 | Get the default attributes for this class. This is useful if you want | |
2252 | to use the same font or colour in your own control as in a standard | |
2253 | control -- which is a much better idea than hard coding specific | |
2254 | colours or fonts which might look completely out of place on the | |
2255 | user's system, especially if it uses themes. | |
2256 | ||
2257 | The variant parameter is only relevant under Mac currently and is | |
2258 | ignore under other platforms. Under Mac, it will change the size of | |
2259 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2260 | this. | |
2261 | """ | |
0085ce49 | 2262 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2263 | |
54f9ee45 | 2264 | class SpinEvent(_core.NotifyEvent): |
093d3ff1 | 2265 | """Proxy of C++ SpinEvent class""" |
0085ce49 RD |
2266 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2267 | __repr__ = _swig_repr | |
2268 | def __init__(self, *args, **kwargs): | |
a95a7133 | 2269 | """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" |
0085ce49 | 2270 | _controls_.SpinEvent_swiginit(self,_controls_.new_SpinEvent(*args, **kwargs)) |
d1e20054 | 2271 | def GetPosition(*args, **kwargs): |
a95a7133 | 2272 | """GetPosition(self) -> int""" |
54f9ee45 | 2273 | return _controls_.SpinEvent_GetPosition(*args, **kwargs) |
d1e20054 RD |
2274 | |
2275 | def SetPosition(*args, **kwargs): | |
a95a7133 | 2276 | """SetPosition(self, int pos)""" |
54f9ee45 | 2277 | return _controls_.SpinEvent_SetPosition(*args, **kwargs) |
d1e20054 | 2278 | |
0085ce49 RD |
2279 | SpinEvent_swigregister = _controls_.SpinEvent_swigregister |
2280 | SpinEvent_swigregister(SpinEvent) | |
d1e20054 | 2281 | |
54f9ee45 | 2282 | wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED |
d1e20054 RD |
2283 | EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) |
2284 | EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) | |
2285 | EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) | |
2286 | EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) | |
d14a1e28 RD |
2287 | |
2288 | #--------------------------------------------------------------------------- | |
2289 | ||
54f9ee45 | 2290 | class RadioBox(_core.Control): |
093d3ff1 | 2291 | """Proxy of C++ RadioBox class""" |
0085ce49 RD |
2292 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2293 | __repr__ = _swig_repr | |
2294 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2295 | """ |
248ed943 RD |
2296 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2297 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2298 | wxArrayString choices=wxPyEmptyStringArray, | |
2299 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2300 | Validator validator=DefaultValidator, | |
b2dc1044 | 2301 | String name=RadioBoxNameStr) -> RadioBox |
0df68c9f | 2302 | """ |
69223c70 | 2303 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] |
0085ce49 | 2304 | _controls_.RadioBox_swiginit(self,_controls_.new_RadioBox(*args, **kwargs)) |
0220cbc1 | 2305 | self._setOORInfo(self) |
e811c8ce RD |
2306 | |
2307 | def Create(*args, **kwargs): | |
0df68c9f | 2308 | """ |
248ed943 RD |
2309 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2310 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2311 | wxArrayString choices=wxPyEmptyStringArray, | |
2312 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2313 | Validator validator=DefaultValidator, | |
b2dc1044 | 2314 | String name=RadioBoxNameStr) -> bool |
0df68c9f | 2315 | """ |
54f9ee45 | 2316 | return _controls_.RadioBox_Create(*args, **kwargs) |
e811c8ce RD |
2317 | |
2318 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2319 | """SetSelection(self, int n)""" |
54f9ee45 | 2320 | return _controls_.RadioBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
2321 | |
2322 | def GetSelection(*args, **kwargs): | |
a95a7133 | 2323 | """GetSelection(self) -> int""" |
54f9ee45 | 2324 | return _controls_.RadioBox_GetSelection(*args, **kwargs) |
e811c8ce RD |
2325 | |
2326 | def GetStringSelection(*args, **kwargs): | |
a95a7133 | 2327 | """GetStringSelection(self) -> String""" |
54f9ee45 | 2328 | return _controls_.RadioBox_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
2329 | |
2330 | def SetStringSelection(*args, **kwargs): | |
a95a7133 | 2331 | """SetStringSelection(self, String s) -> bool""" |
54f9ee45 | 2332 | return _controls_.RadioBox_SetStringSelection(*args, **kwargs) |
e811c8ce RD |
2333 | |
2334 | def GetCount(*args, **kwargs): | |
75219dcb | 2335 | """GetCount(self) -> size_t""" |
54f9ee45 | 2336 | return _controls_.RadioBox_GetCount(*args, **kwargs) |
e811c8ce RD |
2337 | |
2338 | def FindString(*args, **kwargs): | |
a95a7133 | 2339 | """FindString(self, String s) -> int""" |
54f9ee45 | 2340 | return _controls_.RadioBox_FindString(*args, **kwargs) |
e811c8ce RD |
2341 | |
2342 | def GetString(*args, **kwargs): | |
a95a7133 | 2343 | """GetString(self, int n) -> String""" |
54f9ee45 | 2344 | return _controls_.RadioBox_GetString(*args, **kwargs) |
e811c8ce RD |
2345 | |
2346 | def SetString(*args, **kwargs): | |
a95a7133 | 2347 | """SetString(self, int n, String label)""" |
54f9ee45 | 2348 | return _controls_.RadioBox_SetString(*args, **kwargs) |
e811c8ce | 2349 | |
d14a1e28 RD |
2350 | GetItemLabel = GetString |
2351 | SetItemLabel = SetString | |
e811c8ce | 2352 | def EnableItem(*args, **kwargs): |
50f151d7 | 2353 | """EnableItem(self, unsigned int n, bool enable=True)""" |
54f9ee45 | 2354 | return _controls_.RadioBox_EnableItem(*args, **kwargs) |
e811c8ce RD |
2355 | |
2356 | def ShowItem(*args, **kwargs): | |
50f151d7 | 2357 | """ShowItem(self, unsigned int n, bool show=True)""" |
54f9ee45 | 2358 | return _controls_.RadioBox_ShowItem(*args, **kwargs) |
e811c8ce | 2359 | |
50f151d7 RD |
2360 | def IsItemEnabled(*args, **kwargs): |
2361 | """IsItemEnabled(self, unsigned int n) -> bool""" | |
2362 | return _controls_.RadioBox_IsItemEnabled(*args, **kwargs) | |
2363 | ||
2364 | def IsItemShown(*args, **kwargs): | |
2365 | """IsItemShown(self, unsigned int n) -> bool""" | |
2366 | return _controls_.RadioBox_IsItemShown(*args, **kwargs) | |
2367 | ||
e811c8ce | 2368 | def GetColumnCount(*args, **kwargs): |
50f151d7 | 2369 | """GetColumnCount(self) -> unsigned int""" |
54f9ee45 | 2370 | return _controls_.RadioBox_GetColumnCount(*args, **kwargs) |
e811c8ce RD |
2371 | |
2372 | def GetRowCount(*args, **kwargs): | |
50f151d7 | 2373 | """GetRowCount(self) -> unsigned int""" |
54f9ee45 | 2374 | return _controls_.RadioBox_GetRowCount(*args, **kwargs) |
e811c8ce RD |
2375 | |
2376 | def GetNextItem(*args, **kwargs): | |
a95a7133 | 2377 | """GetNextItem(self, int item, int dir, long style) -> int""" |
54f9ee45 | 2378 | return _controls_.RadioBox_GetNextItem(*args, **kwargs) |
e811c8ce | 2379 | |
22bfe96c | 2380 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2381 | """ |
2382 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2383 | ||
2384 | Get the default attributes for this class. This is useful if you want | |
2385 | to use the same font or colour in your own control as in a standard | |
2386 | control -- which is a much better idea than hard coding specific | |
2387 | colours or fonts which might look completely out of place on the | |
2388 | user's system, especially if it uses themes. | |
2389 | ||
2390 | The variant parameter is only relevant under Mac currently and is | |
2391 | ignore under other platforms. Under Mac, it will change the size of | |
2392 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2393 | this. | |
2394 | """ | |
22bfe96c RD |
2395 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
2396 | ||
2397 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2398 | RadioBox_swigregister = _controls_.RadioBox_swigregister |
2399 | RadioBox_swigregister(RadioBox) | |
b2dc1044 RD |
2400 | RadioBoxNameStr = cvar.RadioBoxNameStr |
2401 | RadioButtonNameStr = cvar.RadioButtonNameStr | |
c95e68d8 | 2402 | |
d14a1e28 | 2403 | def PreRadioBox(*args, **kwargs): |
e811c8ce | 2404 | """PreRadioBox() -> RadioBox""" |
54f9ee45 | 2405 | val = _controls_.new_PreRadioBox(*args, **kwargs) |
aa2a5b86 RD |
2406 | return val |
2407 | ||
22bfe96c | 2408 | def RadioBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2409 | """ |
110da5b0 RD |
2410 | RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2411 | ||
2412 | Get the default attributes for this class. This is useful if you want | |
2413 | to use the same font or colour in your own control as in a standard | |
2414 | control -- which is a much better idea than hard coding specific | |
2415 | colours or fonts which might look completely out of place on the | |
2416 | user's system, especially if it uses themes. | |
2417 | ||
2418 | The variant parameter is only relevant under Mac currently and is | |
2419 | ignore under other platforms. Under Mac, it will change the size of | |
2420 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2421 | this. | |
2422 | """ | |
0085ce49 | 2423 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2424 | |
d14a1e28 | 2425 | #--------------------------------------------------------------------------- |
c95e68d8 | 2426 | |
54f9ee45 | 2427 | class RadioButton(_core.Control): |
093d3ff1 | 2428 | """Proxy of C++ RadioButton class""" |
0085ce49 RD |
2429 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2430 | __repr__ = _swig_repr | |
2431 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2432 | """ |
248ed943 RD |
2433 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2434 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2435 | long style=0, Validator validator=DefaultValidator, | |
2436 | String name=RadioButtonNameStr) -> RadioButton | |
0df68c9f | 2437 | """ |
0085ce49 | 2438 | _controls_.RadioButton_swiginit(self,_controls_.new_RadioButton(*args, **kwargs)) |
d14a1e28 | 2439 | self._setOORInfo(self) |
e811c8ce RD |
2440 | |
2441 | def Create(*args, **kwargs): | |
0df68c9f | 2442 | """ |
248ed943 RD |
2443 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2444 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2445 | long style=0, Validator validator=DefaultValidator, | |
2446 | String name=RadioButtonNameStr) -> bool | |
0df68c9f | 2447 | """ |
54f9ee45 | 2448 | return _controls_.RadioButton_Create(*args, **kwargs) |
e811c8ce RD |
2449 | |
2450 | def GetValue(*args, **kwargs): | |
a95a7133 | 2451 | """GetValue(self) -> bool""" |
54f9ee45 | 2452 | return _controls_.RadioButton_GetValue(*args, **kwargs) |
e811c8ce RD |
2453 | |
2454 | def SetValue(*args, **kwargs): | |
a95a7133 | 2455 | """SetValue(self, bool value)""" |
54f9ee45 | 2456 | return _controls_.RadioButton_SetValue(*args, **kwargs) |
e811c8ce | 2457 | |
22bfe96c | 2458 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2459 | """ |
2460 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2461 | ||
2462 | Get the default attributes for this class. This is useful if you want | |
2463 | to use the same font or colour in your own control as in a standard | |
2464 | control -- which is a much better idea than hard coding specific | |
2465 | colours or fonts which might look completely out of place on the | |
2466 | user's system, especially if it uses themes. | |
2467 | ||
2468 | The variant parameter is only relevant under Mac currently and is | |
2469 | ignore under other platforms. Under Mac, it will change the size of | |
2470 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2471 | this. | |
2472 | """ | |
22bfe96c RD |
2473 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
2474 | ||
2475 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2476 | RadioButton_swigregister = _controls_.RadioButton_swigregister |
2477 | RadioButton_swigregister(RadioButton) | |
9d6da64a | 2478 | |
d14a1e28 | 2479 | def PreRadioButton(*args, **kwargs): |
e811c8ce | 2480 | """PreRadioButton() -> RadioButton""" |
54f9ee45 | 2481 | val = _controls_.new_PreRadioButton(*args, **kwargs) |
d14a1e28 | 2482 | return val |
9d6da64a | 2483 | |
22bfe96c | 2484 | def RadioButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2485 | """ |
110da5b0 RD |
2486 | RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2487 | ||
2488 | Get the default attributes for this class. This is useful if you want | |
2489 | to use the same font or colour in your own control as in a standard | |
2490 | control -- which is a much better idea than hard coding specific | |
2491 | colours or fonts which might look completely out of place on the | |
2492 | user's system, especially if it uses themes. | |
2493 | ||
2494 | The variant parameter is only relevant under Mac currently and is | |
2495 | ignore under other platforms. Under Mac, it will change the size of | |
2496 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2497 | this. | |
2498 | """ | |
0085ce49 | 2499 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2500 | |
d14a1e28 | 2501 | #--------------------------------------------------------------------------- |
9d6da64a | 2502 | |
7557b9b5 RD |
2503 | SL_HORIZONTAL = _controls_.SL_HORIZONTAL |
2504 | SL_VERTICAL = _controls_.SL_VERTICAL | |
70b7a5fe | 2505 | SL_TICKS = _controls_.SL_TICKS |
7557b9b5 RD |
2506 | SL_AUTOTICKS = _controls_.SL_AUTOTICKS |
2507 | SL_LABELS = _controls_.SL_LABELS | |
2508 | SL_LEFT = _controls_.SL_LEFT | |
2509 | SL_TOP = _controls_.SL_TOP | |
2510 | SL_RIGHT = _controls_.SL_RIGHT | |
2511 | SL_BOTTOM = _controls_.SL_BOTTOM | |
2512 | SL_BOTH = _controls_.SL_BOTH | |
2513 | SL_SELRANGE = _controls_.SL_SELRANGE | |
2514 | SL_INVERSE = _controls_.SL_INVERSE | |
54f9ee45 | 2515 | class Slider(_core.Control): |
093d3ff1 | 2516 | """Proxy of C++ Slider class""" |
0085ce49 RD |
2517 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2518 | __repr__ = _swig_repr | |
2519 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2520 | """ |
248ed943 RD |
2521 | __init__(self, Window parent, int id=-1, int value=0, int minValue=0, |
2522 | int maxValue=100, Point pos=DefaultPosition, | |
2523 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2524 | Validator validator=DefaultValidator, | |
b2dc1044 | 2525 | String name=SliderNameStr) -> Slider |
0df68c9f | 2526 | """ |
69223c70 | 2527 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] |
0085ce49 | 2528 | _controls_.Slider_swiginit(self,_controls_.new_Slider(*args, **kwargs)) |
0220cbc1 | 2529 | self._setOORInfo(self) |
e811c8ce RD |
2530 | |
2531 | def Create(*args, **kwargs): | |
0df68c9f | 2532 | """ |
248ed943 RD |
2533 | Create(self, Window parent, int id=-1, int value=0, int minValue=0, |
2534 | int maxValue=100, Point pos=DefaultPosition, | |
2535 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2536 | Validator validator=DefaultValidator, | |
b2dc1044 | 2537 | String name=SliderNameStr) -> bool |
0df68c9f | 2538 | """ |
54f9ee45 | 2539 | return _controls_.Slider_Create(*args, **kwargs) |
e811c8ce RD |
2540 | |
2541 | def GetValue(*args, **kwargs): | |
a95a7133 | 2542 | """GetValue(self) -> int""" |
54f9ee45 | 2543 | return _controls_.Slider_GetValue(*args, **kwargs) |
e811c8ce RD |
2544 | |
2545 | def SetValue(*args, **kwargs): | |
a95a7133 | 2546 | """SetValue(self, int value)""" |
54f9ee45 | 2547 | return _controls_.Slider_SetValue(*args, **kwargs) |
e811c8ce RD |
2548 | |
2549 | def SetRange(*args, **kwargs): | |
a95a7133 | 2550 | """SetRange(self, int minValue, int maxValue)""" |
54f9ee45 | 2551 | return _controls_.Slider_SetRange(*args, **kwargs) |
e811c8ce RD |
2552 | |
2553 | def GetMin(*args, **kwargs): | |
a95a7133 | 2554 | """GetMin(self) -> int""" |
54f9ee45 | 2555 | return _controls_.Slider_GetMin(*args, **kwargs) |
e811c8ce RD |
2556 | |
2557 | def GetMax(*args, **kwargs): | |
a95a7133 | 2558 | """GetMax(self) -> int""" |
54f9ee45 | 2559 | return _controls_.Slider_GetMax(*args, **kwargs) |
e811c8ce RD |
2560 | |
2561 | def SetMin(*args, **kwargs): | |
a95a7133 | 2562 | """SetMin(self, int minValue)""" |
54f9ee45 | 2563 | return _controls_.Slider_SetMin(*args, **kwargs) |
e811c8ce RD |
2564 | |
2565 | def SetMax(*args, **kwargs): | |
a95a7133 | 2566 | """SetMax(self, int maxValue)""" |
54f9ee45 | 2567 | return _controls_.Slider_SetMax(*args, **kwargs) |
e811c8ce RD |
2568 | |
2569 | def SetLineSize(*args, **kwargs): | |
a95a7133 | 2570 | """SetLineSize(self, int lineSize)""" |
54f9ee45 | 2571 | return _controls_.Slider_SetLineSize(*args, **kwargs) |
e811c8ce RD |
2572 | |
2573 | def SetPageSize(*args, **kwargs): | |
a95a7133 | 2574 | """SetPageSize(self, int pageSize)""" |
54f9ee45 | 2575 | return _controls_.Slider_SetPageSize(*args, **kwargs) |
e811c8ce RD |
2576 | |
2577 | def GetLineSize(*args, **kwargs): | |
a95a7133 | 2578 | """GetLineSize(self) -> int""" |
54f9ee45 | 2579 | return _controls_.Slider_GetLineSize(*args, **kwargs) |
e811c8ce RD |
2580 | |
2581 | def GetPageSize(*args, **kwargs): | |
a95a7133 | 2582 | """GetPageSize(self) -> int""" |
54f9ee45 | 2583 | return _controls_.Slider_GetPageSize(*args, **kwargs) |
e811c8ce RD |
2584 | |
2585 | def SetThumbLength(*args, **kwargs): | |
a95a7133 | 2586 | """SetThumbLength(self, int lenPixels)""" |
54f9ee45 | 2587 | return _controls_.Slider_SetThumbLength(*args, **kwargs) |
e811c8ce RD |
2588 | |
2589 | def GetThumbLength(*args, **kwargs): | |
a95a7133 | 2590 | """GetThumbLength(self) -> int""" |
54f9ee45 | 2591 | return _controls_.Slider_GetThumbLength(*args, **kwargs) |
e811c8ce RD |
2592 | |
2593 | def SetTickFreq(*args, **kwargs): | |
a95a7133 | 2594 | """SetTickFreq(self, int n, int pos=1)""" |
54f9ee45 | 2595 | return _controls_.Slider_SetTickFreq(*args, **kwargs) |
e811c8ce RD |
2596 | |
2597 | def GetTickFreq(*args, **kwargs): | |
a95a7133 | 2598 | """GetTickFreq(self) -> int""" |
54f9ee45 | 2599 | return _controls_.Slider_GetTickFreq(*args, **kwargs) |
e811c8ce RD |
2600 | |
2601 | def ClearTicks(*args, **kwargs): | |
a95a7133 | 2602 | """ClearTicks(self)""" |
54f9ee45 | 2603 | return _controls_.Slider_ClearTicks(*args, **kwargs) |
e811c8ce RD |
2604 | |
2605 | def SetTick(*args, **kwargs): | |
a95a7133 | 2606 | """SetTick(self, int tickPos)""" |
54f9ee45 | 2607 | return _controls_.Slider_SetTick(*args, **kwargs) |
e811c8ce RD |
2608 | |
2609 | def ClearSel(*args, **kwargs): | |
a95a7133 | 2610 | """ClearSel(self)""" |
54f9ee45 | 2611 | return _controls_.Slider_ClearSel(*args, **kwargs) |
e811c8ce RD |
2612 | |
2613 | def GetSelEnd(*args, **kwargs): | |
a95a7133 | 2614 | """GetSelEnd(self) -> int""" |
54f9ee45 | 2615 | return _controls_.Slider_GetSelEnd(*args, **kwargs) |
e811c8ce RD |
2616 | |
2617 | def GetSelStart(*args, **kwargs): | |
a95a7133 | 2618 | """GetSelStart(self) -> int""" |
54f9ee45 | 2619 | return _controls_.Slider_GetSelStart(*args, **kwargs) |
e811c8ce RD |
2620 | |
2621 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2622 | """SetSelection(self, int min, int max)""" |
54f9ee45 | 2623 | return _controls_.Slider_SetSelection(*args, **kwargs) |
e811c8ce | 2624 | |
22bfe96c | 2625 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2626 | """ |
2627 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2628 | ||
2629 | Get the default attributes for this class. This is useful if you want | |
2630 | to use the same font or colour in your own control as in a standard | |
2631 | control -- which is a much better idea than hard coding specific | |
2632 | colours or fonts which might look completely out of place on the | |
2633 | user's system, especially if it uses themes. | |
2634 | ||
2635 | The variant parameter is only relevant under Mac currently and is | |
2636 | ignore under other platforms. Under Mac, it will change the size of | |
2637 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2638 | this. | |
2639 | """ | |
22bfe96c RD |
2640 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
2641 | ||
2642 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2643 | Slider_swigregister = _controls_.Slider_swigregister |
2644 | Slider_swigregister(Slider) | |
b2dc1044 | 2645 | SliderNameStr = cvar.SliderNameStr |
70551f47 | 2646 | |
d14a1e28 | 2647 | def PreSlider(*args, **kwargs): |
e811c8ce | 2648 | """PreSlider() -> Slider""" |
54f9ee45 | 2649 | val = _controls_.new_PreSlider(*args, **kwargs) |
aa2a5b86 RD |
2650 | return val |
2651 | ||
22bfe96c | 2652 | def Slider_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2653 | """ |
110da5b0 RD |
2654 | Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2655 | ||
2656 | Get the default attributes for this class. This is useful if you want | |
2657 | to use the same font or colour in your own control as in a standard | |
2658 | control -- which is a much better idea than hard coding specific | |
2659 | colours or fonts which might look completely out of place on the | |
2660 | user's system, especially if it uses themes. | |
2661 | ||
2662 | The variant parameter is only relevant under Mac currently and is | |
2663 | ignore under other platforms. Under Mac, it will change the size of | |
2664 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2665 | this. | |
2666 | """ | |
0085ce49 | 2667 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2668 | |
d14a1e28 | 2669 | #--------------------------------------------------------------------------- |
70551f47 | 2670 | |
54f9ee45 | 2671 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED |
d14a1e28 RD |
2672 | EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) |
2673 | ||
54f9ee45 | 2674 | class ToggleButton(_core.Control): |
093d3ff1 | 2675 | """Proxy of C++ ToggleButton class""" |
0085ce49 RD |
2676 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2677 | __repr__ = _swig_repr | |
2678 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2679 | """ |
248ed943 RD |
2680 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2681 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2682 | long style=0, Validator validator=DefaultValidator, | |
2683 | String name=ToggleButtonNameStr) -> ToggleButton | |
0df68c9f | 2684 | """ |
0085ce49 | 2685 | _controls_.ToggleButton_swiginit(self,_controls_.new_ToggleButton(*args, **kwargs)) |
0220cbc1 | 2686 | self._setOORInfo(self) |
e811c8ce RD |
2687 | |
2688 | def Create(*args, **kwargs): | |
0df68c9f | 2689 | """ |
248ed943 RD |
2690 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2691 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2692 | long style=0, Validator validator=DefaultValidator, | |
2693 | String name=ToggleButtonNameStr) -> bool | |
0df68c9f | 2694 | """ |
54f9ee45 | 2695 | return _controls_.ToggleButton_Create(*args, **kwargs) |
e811c8ce RD |
2696 | |
2697 | def SetValue(*args, **kwargs): | |
a95a7133 | 2698 | """SetValue(self, bool value)""" |
54f9ee45 | 2699 | return _controls_.ToggleButton_SetValue(*args, **kwargs) |
e811c8ce RD |
2700 | |
2701 | def GetValue(*args, **kwargs): | |
a95a7133 | 2702 | """GetValue(self) -> bool""" |
54f9ee45 | 2703 | return _controls_.ToggleButton_GetValue(*args, **kwargs) |
e811c8ce | 2704 | |
22bfe96c | 2705 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2706 | """ |
2707 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2708 | ||
2709 | Get the default attributes for this class. This is useful if you want | |
2710 | to use the same font or colour in your own control as in a standard | |
2711 | control -- which is a much better idea than hard coding specific | |
2712 | colours or fonts which might look completely out of place on the | |
2713 | user's system, especially if it uses themes. | |
2714 | ||
2715 | The variant parameter is only relevant under Mac currently and is | |
2716 | ignore under other platforms. Under Mac, it will change the size of | |
2717 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2718 | this. | |
2719 | """ | |
22bfe96c RD |
2720 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
2721 | ||
2722 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2723 | ToggleButton_swigregister = _controls_.ToggleButton_swigregister |
2724 | ToggleButton_swigregister(ToggleButton) | |
b2dc1044 | 2725 | ToggleButtonNameStr = cvar.ToggleButtonNameStr |
70551f47 | 2726 | |
d14a1e28 | 2727 | def PreToggleButton(*args, **kwargs): |
e811c8ce | 2728 | """PreToggleButton() -> ToggleButton""" |
54f9ee45 | 2729 | val = _controls_.new_PreToggleButton(*args, **kwargs) |
aa2a5b86 RD |
2730 | return val |
2731 | ||
22bfe96c | 2732 | def ToggleButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2733 | """ |
110da5b0 RD |
2734 | ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2735 | ||
2736 | Get the default attributes for this class. This is useful if you want | |
2737 | to use the same font or colour in your own control as in a standard | |
2738 | control -- which is a much better idea than hard coding specific | |
2739 | colours or fonts which might look completely out of place on the | |
2740 | user's system, especially if it uses themes. | |
2741 | ||
2742 | The variant parameter is only relevant under Mac currently and is | |
2743 | ignore under other platforms. Under Mac, it will change the size of | |
2744 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2745 | this. | |
2746 | """ | |
0085ce49 | 2747 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2748 | |
d14a1e28 RD |
2749 | #--------------------------------------------------------------------------- |
2750 | ||
7e08d4ef RD |
2751 | BK_DEFAULT = _controls_.BK_DEFAULT |
2752 | BK_TOP = _controls_.BK_TOP | |
2753 | BK_BOTTOM = _controls_.BK_BOTTOM | |
2754 | BK_LEFT = _controls_.BK_LEFT | |
2755 | BK_RIGHT = _controls_.BK_RIGHT | |
2756 | BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK | |
e9d6f3a4 | 2757 | BK_BUTTONBAR = _controls_.BK_BUTTONBAR |
8ac8dba0 | 2758 | class BookCtrlBase(_core.Control): |
093d3ff1 | 2759 | """Proxy of C++ BookCtrlBase class""" |
0085ce49 RD |
2760 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2761 | def __init__(self): raise AttributeError, "No constructor defined" | |
2762 | __repr__ = _swig_repr | |
e811c8ce | 2763 | def GetPageCount(*args, **kwargs): |
a95a7133 | 2764 | """GetPageCount(self) -> size_t""" |
8ac8dba0 | 2765 | return _controls_.BookCtrlBase_GetPageCount(*args, **kwargs) |
e811c8ce RD |
2766 | |
2767 | def GetPage(*args, **kwargs): | |
a95a7133 | 2768 | """GetPage(self, size_t n) -> Window""" |
8ac8dba0 | 2769 | return _controls_.BookCtrlBase_GetPage(*args, **kwargs) |
e811c8ce | 2770 | |
8fb0e70a RD |
2771 | def GetCurrentPage(*args, **kwargs): |
2772 | """GetCurrentPage(self) -> Window""" | |
8ac8dba0 | 2773 | return _controls_.BookCtrlBase_GetCurrentPage(*args, **kwargs) |
8fb0e70a | 2774 | |
e811c8ce | 2775 | def GetSelection(*args, **kwargs): |
a95a7133 | 2776 | """GetSelection(self) -> int""" |
8ac8dba0 | 2777 | return _controls_.BookCtrlBase_GetSelection(*args, **kwargs) |
e811c8ce RD |
2778 | |
2779 | def SetPageText(*args, **kwargs): | |
a95a7133 | 2780 | """SetPageText(self, size_t n, String strText) -> bool""" |
8ac8dba0 | 2781 | return _controls_.BookCtrlBase_SetPageText(*args, **kwargs) |
e811c8ce RD |
2782 | |
2783 | def GetPageText(*args, **kwargs): | |
a95a7133 | 2784 | """GetPageText(self, size_t n) -> String""" |
8ac8dba0 | 2785 | return _controls_.BookCtrlBase_GetPageText(*args, **kwargs) |
e811c8ce RD |
2786 | |
2787 | def SetImageList(*args, **kwargs): | |
a95a7133 | 2788 | """SetImageList(self, ImageList imageList)""" |
8ac8dba0 | 2789 | return _controls_.BookCtrlBase_SetImageList(*args, **kwargs) |
e811c8ce RD |
2790 | |
2791 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 2792 | """AssignImageList(self, ImageList imageList)""" |
8ac8dba0 | 2793 | return _controls_.BookCtrlBase_AssignImageList(*args, **kwargs) |
e811c8ce RD |
2794 | |
2795 | def GetImageList(*args, **kwargs): | |
a95a7133 | 2796 | """GetImageList(self) -> ImageList""" |
8ac8dba0 | 2797 | return _controls_.BookCtrlBase_GetImageList(*args, **kwargs) |
e811c8ce RD |
2798 | |
2799 | def GetPageImage(*args, **kwargs): | |
a95a7133 | 2800 | """GetPageImage(self, size_t n) -> int""" |
8ac8dba0 | 2801 | return _controls_.BookCtrlBase_GetPageImage(*args, **kwargs) |
e811c8ce RD |
2802 | |
2803 | def SetPageImage(*args, **kwargs): | |
a95a7133 | 2804 | """SetPageImage(self, size_t n, int imageId) -> bool""" |
8ac8dba0 | 2805 | return _controls_.BookCtrlBase_SetPageImage(*args, **kwargs) |
e811c8ce RD |
2806 | |
2807 | def SetPageSize(*args, **kwargs): | |
a95a7133 | 2808 | """SetPageSize(self, Size size)""" |
8ac8dba0 | 2809 | return _controls_.BookCtrlBase_SetPageSize(*args, **kwargs) |
e811c8ce RD |
2810 | |
2811 | def CalcSizeFromPage(*args, **kwargs): | |
a95a7133 | 2812 | """CalcSizeFromPage(self, Size sizePage) -> Size""" |
8ac8dba0 | 2813 | return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs) |
e811c8ce | 2814 | |
7e08d4ef | 2815 | def GetInternalBorder(*args, **kwargs): |
e9d6f3a4 | 2816 | """GetInternalBorder(self) -> unsigned int""" |
7e08d4ef RD |
2817 | return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs) |
2818 | ||
2819 | def SetInternalBorder(*args, **kwargs): | |
e9d6f3a4 | 2820 | """SetInternalBorder(self, unsigned int internalBorder)""" |
7e08d4ef RD |
2821 | return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs) |
2822 | ||
2823 | def IsVertical(*args, **kwargs): | |
2824 | """IsVertical(self) -> bool""" | |
2825 | return _controls_.BookCtrlBase_IsVertical(*args, **kwargs) | |
2826 | ||
e9d6f3a4 RD |
2827 | def SetControlMargin(*args, **kwargs): |
2828 | """SetControlMargin(self, int margin)""" | |
2829 | return _controls_.BookCtrlBase_SetControlMargin(*args, **kwargs) | |
2830 | ||
2831 | def GetControlMargin(*args, **kwargs): | |
2832 | """GetControlMargin(self) -> int""" | |
2833 | return _controls_.BookCtrlBase_GetControlMargin(*args, **kwargs) | |
2834 | ||
c26d9ab4 RD |
2835 | def SetFitToCurrentPage(*args, **kwargs): |
2836 | """SetFitToCurrentPage(self, bool fit)""" | |
2837 | return _controls_.BookCtrlBase_SetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2838 | |
c26d9ab4 RD |
2839 | def GetFitToCurrentPage(*args, **kwargs): |
2840 | """GetFitToCurrentPage(self) -> bool""" | |
2841 | return _controls_.BookCtrlBase_GetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2842 | |
e9d6f3a4 RD |
2843 | def GetControlSizer(*args, **kwargs): |
2844 | """GetControlSizer(self) -> Sizer""" | |
2845 | return _controls_.BookCtrlBase_GetControlSizer(*args, **kwargs) | |
2846 | ||
e811c8ce | 2847 | def DeletePage(*args, **kwargs): |
a95a7133 | 2848 | """DeletePage(self, size_t n) -> bool""" |
8ac8dba0 | 2849 | return _controls_.BookCtrlBase_DeletePage(*args, **kwargs) |
e811c8ce RD |
2850 | |
2851 | def RemovePage(*args, **kwargs): | |
a95a7133 | 2852 | """RemovePage(self, size_t n) -> bool""" |
8ac8dba0 | 2853 | return _controls_.BookCtrlBase_RemovePage(*args, **kwargs) |
e811c8ce RD |
2854 | |
2855 | def DeleteAllPages(*args, **kwargs): | |
a95a7133 | 2856 | """DeleteAllPages(self) -> bool""" |
8ac8dba0 | 2857 | return _controls_.BookCtrlBase_DeleteAllPages(*args, **kwargs) |
e811c8ce RD |
2858 | |
2859 | def AddPage(*args, **kwargs): | |
a95a7133 | 2860 | """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" |
8ac8dba0 | 2861 | return _controls_.BookCtrlBase_AddPage(*args, **kwargs) |
e811c8ce RD |
2862 | |
2863 | def InsertPage(*args, **kwargs): | |
0df68c9f | 2864 | """ |
a95a7133 | 2865 | InsertPage(self, size_t n, Window page, String text, bool select=False, |
0df68c9f RD |
2866 | int imageId=-1) -> bool |
2867 | """ | |
8ac8dba0 | 2868 | return _controls_.BookCtrlBase_InsertPage(*args, **kwargs) |
e811c8ce RD |
2869 | |
2870 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2871 | """SetSelection(self, size_t n) -> int""" |
8ac8dba0 | 2872 | return _controls_.BookCtrlBase_SetSelection(*args, **kwargs) |
e811c8ce RD |
2873 | |
2874 | def AdvanceSelection(*args, **kwargs): | |
a95a7133 | 2875 | """AdvanceSelection(self, bool forward=True)""" |
8ac8dba0 | 2876 | return _controls_.BookCtrlBase_AdvanceSelection(*args, **kwargs) |
e811c8ce | 2877 | |
22bfe96c | 2878 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2879 | """ |
2880 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2881 | ||
2882 | Get the default attributes for this class. This is useful if you want | |
2883 | to use the same font or colour in your own control as in a standard | |
2884 | control -- which is a much better idea than hard coding specific | |
2885 | colours or fonts which might look completely out of place on the | |
2886 | user's system, especially if it uses themes. | |
2887 | ||
2888 | The variant parameter is only relevant under Mac currently and is | |
2889 | ignore under other platforms. Under Mac, it will change the size of | |
2890 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2891 | this. | |
2892 | """ | |
8ac8dba0 | 2893 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c RD |
2894 | |
2895 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
2896 | BookCtrlBase_swigregister = _controls_.BookCtrlBase_swigregister |
2897 | BookCtrlBase_swigregister(BookCtrlBase) | |
51b83b37 | 2898 | NotebookNameStr = cvar.NotebookNameStr |
d14a1e28 | 2899 | |
8ac8dba0 | 2900 | def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2901 | """ |
8ac8dba0 | 2902 | BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
110da5b0 RD |
2903 | |
2904 | Get the default attributes for this class. This is useful if you want | |
2905 | to use the same font or colour in your own control as in a standard | |
2906 | control -- which is a much better idea than hard coding specific | |
2907 | colours or fonts which might look completely out of place on the | |
2908 | user's system, especially if it uses themes. | |
2909 | ||
2910 | The variant parameter is only relevant under Mac currently and is | |
2911 | ignore under other platforms. Under Mac, it will change the size of | |
2912 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2913 | this. | |
2914 | """ | |
0085ce49 | 2915 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2916 | |
8ac8dba0 | 2917 | class BookCtrlBaseEvent(_core.NotifyEvent): |
093d3ff1 | 2918 | """Proxy of C++ BookCtrlBaseEvent class""" |
0085ce49 RD |
2919 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2920 | __repr__ = _swig_repr | |
2921 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2922 | """ |
a95a7133 | 2923 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
8ac8dba0 | 2924 | int nOldSel=-1) -> BookCtrlBaseEvent |
0df68c9f | 2925 | """ |
0085ce49 | 2926 | _controls_.BookCtrlBaseEvent_swiginit(self,_controls_.new_BookCtrlBaseEvent(*args, **kwargs)) |
e811c8ce | 2927 | def GetSelection(*args, **kwargs): |
27fb7603 RD |
2928 | """ |
2929 | GetSelection(self) -> int | |
2930 | ||
2931 | Returns item index for a listbox or choice selection event (not valid | |
2932 | for a deselection). | |
2933 | """ | |
8ac8dba0 | 2934 | return _controls_.BookCtrlBaseEvent_GetSelection(*args, **kwargs) |
e811c8ce RD |
2935 | |
2936 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2937 | """SetSelection(self, int nSel)""" |
8ac8dba0 | 2938 | return _controls_.BookCtrlBaseEvent_SetSelection(*args, **kwargs) |
e811c8ce RD |
2939 | |
2940 | def GetOldSelection(*args, **kwargs): | |
a95a7133 | 2941 | """GetOldSelection(self) -> int""" |
8ac8dba0 | 2942 | return _controls_.BookCtrlBaseEvent_GetOldSelection(*args, **kwargs) |
e811c8ce RD |
2943 | |
2944 | def SetOldSelection(*args, **kwargs): | |
a95a7133 | 2945 | """SetOldSelection(self, int nOldSel)""" |
8ac8dba0 | 2946 | return _controls_.BookCtrlBaseEvent_SetOldSelection(*args, **kwargs) |
e811c8ce | 2947 | |
0085ce49 RD |
2948 | BookCtrlBaseEvent_swigregister = _controls_.BookCtrlBaseEvent_swigregister |
2949 | BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent) | |
d14a1e28 RD |
2950 | |
2951 | #--------------------------------------------------------------------------- | |
2952 | ||
54f9ee45 RD |
2953 | NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH |
2954 | NB_TOP = _controls_.NB_TOP | |
2955 | NB_LEFT = _controls_.NB_LEFT | |
2956 | NB_RIGHT = _controls_.NB_RIGHT | |
2957 | NB_BOTTOM = _controls_.NB_BOTTOM | |
2958 | NB_MULTILINE = _controls_.NB_MULTILINE | |
8e738329 | 2959 | NB_NOPAGETHEME = _controls_.NB_NOPAGETHEME |
54f9ee45 RD |
2960 | NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE |
2961 | NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON | |
2962 | NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL | |
2963 | NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM | |
8ac8dba0 | 2964 | class Notebook(BookCtrlBase): |
093d3ff1 | 2965 | """Proxy of C++ Notebook class""" |
0085ce49 RD |
2966 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2967 | __repr__ = _swig_repr | |
2968 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2969 | """ |
a95a7133 | 2970 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
51b83b37 | 2971 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook |
0df68c9f | 2972 | """ |
0085ce49 | 2973 | _controls_.Notebook_swiginit(self,_controls_.new_Notebook(*args, **kwargs)) |
0220cbc1 | 2974 | self._setOORInfo(self) |
e811c8ce RD |
2975 | |
2976 | def Create(*args, **kwargs): | |
0df68c9f | 2977 | """ |
248ed943 | 2978 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
51b83b37 | 2979 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool |
0df68c9f | 2980 | """ |
54f9ee45 | 2981 | return _controls_.Notebook_Create(*args, **kwargs) |
e811c8ce RD |
2982 | |
2983 | def GetRowCount(*args, **kwargs): | |
a95a7133 | 2984 | """GetRowCount(self) -> int""" |
54f9ee45 | 2985 | return _controls_.Notebook_GetRowCount(*args, **kwargs) |
e811c8ce RD |
2986 | |
2987 | def SetPadding(*args, **kwargs): | |
a95a7133 | 2988 | """SetPadding(self, Size padding)""" |
54f9ee45 | 2989 | return _controls_.Notebook_SetPadding(*args, **kwargs) |
e811c8ce RD |
2990 | |
2991 | def SetTabSize(*args, **kwargs): | |
a95a7133 | 2992 | """SetTabSize(self, Size sz)""" |
54f9ee45 | 2993 | return _controls_.Notebook_SetTabSize(*args, **kwargs) |
e811c8ce RD |
2994 | |
2995 | def HitTest(*args, **kwargs): | |
fd2dc343 RD |
2996 | """ |
2997 | HitTest(Point pt) -> (tab, where) | |
2998 | ||
2999 | Returns the tab which is hit, and flags indicating where using | |
3000 | wx.NB_HITTEST flags. | |
3001 | """ | |
54f9ee45 | 3002 | return _controls_.Notebook_HitTest(*args, **kwargs) |
e811c8ce | 3003 | |
8e738329 RD |
3004 | def GetThemeBackgroundColour(*args, **kwargs): |
3005 | """GetThemeBackgroundColour(self) -> Colour""" | |
3006 | return _controls_.Notebook_GetThemeBackgroundColour(*args, **kwargs) | |
3007 | ||
22bfe96c | 3008 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
3009 | """ |
3010 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3011 | ||
3012 | Get the default attributes for this class. This is useful if you want | |
3013 | to use the same font or colour in your own control as in a standard | |
3014 | control -- which is a much better idea than hard coding specific | |
3015 | colours or fonts which might look completely out of place on the | |
3016 | user's system, especially if it uses themes. | |
3017 | ||
3018 | The variant parameter is only relevant under Mac currently and is | |
3019 | ignore under other platforms. Under Mac, it will change the size of | |
3020 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3021 | this. | |
3022 | """ | |
22bfe96c RD |
3023 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
3024 | ||
3025 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
3026 | Notebook_swigregister = _controls_.Notebook_swigregister |
3027 | Notebook_swigregister(Notebook) | |
62bd0874 | 3028 | |
d14a1e28 | 3029 | def PreNotebook(*args, **kwargs): |
e811c8ce | 3030 | """PreNotebook() -> Notebook""" |
54f9ee45 | 3031 | val = _controls_.new_PreNotebook(*args, **kwargs) |
aa2a5b86 RD |
3032 | return val |
3033 | ||
22bfe96c | 3034 | def Notebook_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 3035 | """ |
110da5b0 RD |
3036 | Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
3037 | ||
3038 | Get the default attributes for this class. This is useful if you want | |
3039 | to use the same font or colour in your own control as in a standard | |
3040 | control -- which is a much better idea than hard coding specific | |
3041 | colours or fonts which might look completely out of place on the | |
3042 | user's system, especially if it uses themes. | |
3043 | ||
3044 | The variant parameter is only relevant under Mac currently and is | |
3045 | ignore under other platforms. Under Mac, it will change the size of | |
3046 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3047 | this. | |
3048 | """ | |
0085ce49 | 3049 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 3050 | |
8ac8dba0 | 3051 | class NotebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3052 | """Proxy of C++ NotebookEvent class""" |
0085ce49 RD |
3053 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3054 | __repr__ = _swig_repr | |
3055 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3056 | """ |
a95a7133 | 3057 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
0df68c9f RD |
3058 | int nOldSel=-1) -> NotebookEvent |
3059 | """ | |
0085ce49 RD |
3060 | _controls_.NotebookEvent_swiginit(self,_controls_.new_NotebookEvent(*args, **kwargs)) |
3061 | NotebookEvent_swigregister = _controls_.NotebookEvent_swigregister | |
3062 | NotebookEvent_swigregister(NotebookEvent) | |
d14a1e28 | 3063 | |
54f9ee45 RD |
3064 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED |
3065 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
d14a1e28 RD |
3066 | # wxNotebook events |
3067 | EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) | |
3068 | EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) | |
3069 | ||
3070 | #---------------------------------------------------------------------------- | |
3071 | ||
3072 | class NotebookPage(wx.Panel): | |
3073 | """ | |
3074 | There is an old (and apparently unsolvable) bug when placing a | |
7557b9b5 | 3075 | window with a nonstandard background colour in a wx.Notebook on |
70b7a5fe | 3076 | wxGTK1, as the notbooks's background colour would always be used |
d14a1e28 RD |
3077 | when the window is refreshed. The solution is to place a panel in |
3078 | the notbook and the coloured window on the panel, sized to cover | |
3079 | the panel. This simple class does that for you, just put an | |
3080 | instance of this in the notebook and make your regular window a | |
3081 | child of this one and it will handle the resize for you. | |
3082 | """ | |
3083 | def __init__(self, parent, id=-1, | |
3084 | pos=wx.DefaultPosition, size=wx.DefaultSize, | |
3085 | style=wx.TAB_TRAVERSAL, name="panel"): | |
3086 | wx.Panel.__init__(self, parent, id, pos, size, style, name) | |
3087 | self.child = None | |
7557b9b5 | 3088 | self.Bind(wx.EVT_SIZE, self.OnSize) |
2ef75293 | 3089 | |
d14a1e28 RD |
3090 | def OnSize(self, evt): |
3091 | if self.child is None: | |
3092 | children = self.GetChildren() | |
3093 | if len(children): | |
3094 | self.child = children[0] | |
3095 | if self.child: | |
3096 | self.child.SetPosition((0,0)) | |
3097 | self.child.SetSize(self.GetSize()) | |
3098 | ||
3099 | ||
3100 | #--------------------------------------------------------------------------- | |
3101 | ||
54f9ee45 RD |
3102 | LB_DEFAULT = _controls_.LB_DEFAULT |
3103 | LB_TOP = _controls_.LB_TOP | |
3104 | LB_BOTTOM = _controls_.LB_BOTTOM | |
3105 | LB_LEFT = _controls_.LB_LEFT | |
3106 | LB_RIGHT = _controls_.LB_RIGHT | |
3107 | LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK | |
8ac8dba0 | 3108 | class Listbook(BookCtrlBase): |
093d3ff1 | 3109 | """Proxy of C++ Listbook class""" |
0085ce49 RD |
3110 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3111 | __repr__ = _swig_repr | |
3112 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3113 | """ |
a95a7133 | 3114 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
4f89f6a3 | 3115 | Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook |
0df68c9f | 3116 | """ |
0085ce49 | 3117 | _controls_.Listbook_swiginit(self,_controls_.new_Listbook(*args, **kwargs)) |
0220cbc1 | 3118 | self._setOORInfo(self) |
e811c8ce RD |
3119 | |
3120 | def Create(*args, **kwargs): | |
0df68c9f | 3121 | """ |
248ed943 RD |
3122 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3123 | Size size=DefaultSize, long style=0, String name=EmptyString) -> bool | |
0df68c9f | 3124 | """ |
54f9ee45 | 3125 | return _controls_.Listbook_Create(*args, **kwargs) |
e811c8ce | 3126 | |
1fbf26be RD |
3127 | def GetListView(*args, **kwargs): |
3128 | """GetListView(self) -> ListView""" | |
3129 | return _controls_.Listbook_GetListView(*args, **kwargs) | |
3130 | ||
0085ce49 RD |
3131 | Listbook_swigregister = _controls_.Listbook_swigregister |
3132 | Listbook_swigregister(Listbook) | |
70551f47 | 3133 | |
d14a1e28 | 3134 | def PreListbook(*args, **kwargs): |
e811c8ce | 3135 | """PreListbook() -> Listbook""" |
54f9ee45 | 3136 | val = _controls_.new_PreListbook(*args, **kwargs) |
aa2a5b86 RD |
3137 | return val |
3138 | ||
8ac8dba0 | 3139 | class ListbookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3140 | """Proxy of C++ ListbookEvent class""" |
0085ce49 RD |
3141 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3142 | __repr__ = _swig_repr | |
3143 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3144 | """ |
a95a7133 | 3145 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
0df68c9f RD |
3146 | int nOldSel=-1) -> ListbookEvent |
3147 | """ | |
0085ce49 RD |
3148 | _controls_.ListbookEvent_swiginit(self,_controls_.new_ListbookEvent(*args, **kwargs)) |
3149 | ListbookEvent_swigregister = _controls_.ListbookEvent_swigregister | |
3150 | ListbookEvent_swigregister(ListbookEvent) | |
d14a1e28 | 3151 | |
54f9ee45 RD |
3152 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED |
3153 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING | |
d14a1e28 RD |
3154 | EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) |
3155 | EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) | |
3156 | ||
2ef75293 RD |
3157 | CHB_DEFAULT = _controls_.CHB_DEFAULT |
3158 | CHB_TOP = _controls_.CHB_TOP | |
3159 | CHB_BOTTOM = _controls_.CHB_BOTTOM | |
3160 | CHB_LEFT = _controls_.CHB_LEFT | |
3161 | CHB_RIGHT = _controls_.CHB_RIGHT | |
3162 | CHB_ALIGN_MASK = _controls_.CHB_ALIGN_MASK | |
8ac8dba0 | 3163 | class Choicebook(BookCtrlBase): |
093d3ff1 | 3164 | """Proxy of C++ Choicebook class""" |
0085ce49 RD |
3165 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3166 | __repr__ = _swig_repr | |
3167 | def __init__(self, *args, **kwargs): | |
2ef75293 RD |
3168 | """ |
3169 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3170 | long style=0, String name=EmptyString) -> Choicebook | |
3171 | """ | |
0085ce49 | 3172 | _controls_.Choicebook_swiginit(self,_controls_.new_Choicebook(*args, **kwargs)) |
2ef75293 RD |
3173 | self._setOORInfo(self) |
3174 | ||
3175 | def Create(*args, **kwargs): | |
3176 | """ | |
3177 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3178 | long style=0, String name=EmptyString) -> bool | |
3179 | """ | |
3180 | return _controls_.Choicebook_Create(*args, **kwargs) | |
3181 | ||
70b7a5fe RD |
3182 | def GetChoiceCtrl(*args, **kwargs): |
3183 | """GetChoiceCtrl(self) -> Choice""" | |
3184 | return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs) | |
3185 | ||
0085ce49 RD |
3186 | Choicebook_swigregister = _controls_.Choicebook_swigregister |
3187 | Choicebook_swigregister(Choicebook) | |
2ef75293 RD |
3188 | |
3189 | def PreChoicebook(*args, **kwargs): | |
3190 | """PreChoicebook() -> Choicebook""" | |
3191 | val = _controls_.new_PreChoicebook(*args, **kwargs) | |
2ef75293 RD |
3192 | return val |
3193 | ||
8ac8dba0 | 3194 | class ChoicebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3195 | """Proxy of C++ ChoicebookEvent class""" |
0085ce49 RD |
3196 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3197 | __repr__ = _swig_repr | |
3198 | def __init__(self, *args, **kwargs): | |
2ef75293 RD |
3199 | """ |
3200 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
3201 | int nOldSel=-1) -> ChoicebookEvent | |
3202 | """ | |
0085ce49 RD |
3203 | _controls_.ChoicebookEvent_swiginit(self,_controls_.new_ChoicebookEvent(*args, **kwargs)) |
3204 | ChoicebookEvent_swigregister = _controls_.ChoicebookEvent_swigregister | |
3205 | ChoicebookEvent_swigregister(ChoicebookEvent) | |
2ef75293 RD |
3206 | |
3207 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED | |
3208 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING | |
3209 | EVT_CHOICEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, 1 ) | |
3210 | EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, 1 ) | |
3211 | ||
d14a1e28 RD |
3212 | #--------------------------------------------------------------------------- |
3213 | ||
7e08d4ef RD |
3214 | class Treebook(BookCtrlBase): |
3215 | """Proxy of C++ Treebook class""" | |
0085ce49 RD |
3216 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3217 | __repr__ = _swig_repr | |
3218 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3219 | """ |
3220 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3221 | long style=BK_DEFAULT, | |
3222 | String name=EmptyString) -> Treebook | |
3223 | """ | |
0085ce49 | 3224 | _controls_.Treebook_swiginit(self,_controls_.new_Treebook(*args, **kwargs)) |
7e08d4ef RD |
3225 | self._setOORInfo(self) |
3226 | ||
3227 | def Create(*args, **kwargs): | |
3228 | """ | |
3229 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3230 | long style=BK_DEFAULT, | |
3231 | String name=EmptyString) -> bool | |
3232 | """ | |
3233 | return _controls_.Treebook_Create(*args, **kwargs) | |
3234 | ||
7e08d4ef RD |
3235 | def InsertSubPage(*args, **kwargs): |
3236 | """ | |
3237 | InsertSubPage(self, size_t pos, Window page, String text, bool select=False, | |
3238 | int imageId=NOT_FOUND) -> bool | |
3239 | """ | |
3240 | return _controls_.Treebook_InsertSubPage(*args, **kwargs) | |
3241 | ||
7e08d4ef RD |
3242 | def AddSubPage(*args, **kwargs): |
3243 | """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool""" | |
3244 | return _controls_.Treebook_AddSubPage(*args, **kwargs) | |
3245 | ||
7e08d4ef RD |
3246 | def IsNodeExpanded(*args, **kwargs): |
3247 | """IsNodeExpanded(self, size_t pos) -> bool""" | |
3248 | return _controls_.Treebook_IsNodeExpanded(*args, **kwargs) | |
3249 | ||
3250 | def ExpandNode(*args, **kwargs): | |
3251 | """ExpandNode(self, size_t pos, bool expand=True) -> bool""" | |
3252 | return _controls_.Treebook_ExpandNode(*args, **kwargs) | |
3253 | ||
3254 | def CollapseNode(*args, **kwargs): | |
3255 | """CollapseNode(self, size_t pos) -> bool""" | |
3256 | return _controls_.Treebook_CollapseNode(*args, **kwargs) | |
3257 | ||
3258 | def GetPageParent(*args, **kwargs): | |
3259 | """GetPageParent(self, size_t pos) -> int""" | |
3260 | return _controls_.Treebook_GetPageParent(*args, **kwargs) | |
3261 | ||
3262 | def GetTreeCtrl(*args, **kwargs): | |
3263 | """GetTreeCtrl(self) -> wxTreeCtrl""" | |
3264 | return _controls_.Treebook_GetTreeCtrl(*args, **kwargs) | |
3265 | ||
0085ce49 RD |
3266 | Treebook_swigregister = _controls_.Treebook_swigregister |
3267 | Treebook_swigregister(Treebook) | |
7e08d4ef RD |
3268 | |
3269 | def PreTreebook(*args, **kwargs): | |
3270 | """PreTreebook() -> Treebook""" | |
3271 | val = _controls_.new_PreTreebook(*args, **kwargs) | |
7e08d4ef RD |
3272 | return val |
3273 | ||
3274 | class TreebookEvent(BookCtrlBaseEvent): | |
3275 | """Proxy of C++ TreebookEvent class""" | |
0085ce49 RD |
3276 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3277 | __repr__ = _swig_repr | |
3278 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3279 | """ |
3280 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, | |
3281 | int nOldSel=NOT_FOUND) -> TreebookEvent | |
3282 | """ | |
0085ce49 RD |
3283 | _controls_.TreebookEvent_swiginit(self,_controls_.new_TreebookEvent(*args, **kwargs)) |
3284 | TreebookEvent_swigregister = _controls_.TreebookEvent_swigregister | |
3285 | TreebookEvent_swigregister(TreebookEvent) | |
7e08d4ef RD |
3286 | |
3287 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED | |
3288 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING | |
3289 | wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED | |
3290 | wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED | |
3291 | EVT_TREEBOOK_PAGE_CHANGED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, 1 ) | |
3292 | EVT_TREEBOOK_PAGE_CHANGING= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING, 1) | |
3293 | EVT_TREEBOOK_NODE_COLLAPSED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED, 1 ) | |
3294 | EVT_TREEBOOK_NODE_EXPANDED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED, 1 ) | |
3295 | ||
3296 | #--------------------------------------------------------------------------- | |
3297 | ||
3298 | class Toolbook(BookCtrlBase): | |
3299 | """Proxy of C++ Toolbook class""" | |
0085ce49 RD |
3300 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3301 | __repr__ = _swig_repr | |
3302 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3303 | """ |
3304 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3305 | long style=BK_DEFAULT, | |
3306 | String name=EmptyString) -> Toolbook | |
3307 | """ | |
0085ce49 | 3308 | _controls_.Toolbook_swiginit(self,_controls_.new_Toolbook(*args, **kwargs)) |
7e08d4ef RD |
3309 | self._setOORInfo(self) |
3310 | ||
3311 | def Create(*args, **kwargs): | |
3312 | """ | |
3313 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3314 | long style=0, String name=wxEmptyString) -> bool | |
3315 | """ | |
3316 | return _controls_.Toolbook_Create(*args, **kwargs) | |
3317 | ||
3318 | def GetToolBar(*args, **kwargs): | |
3319 | """GetToolBar(self) -> ToolBarBase""" | |
3320 | return _controls_.Toolbook_GetToolBar(*args, **kwargs) | |
3321 | ||
3322 | def Realize(*args, **kwargs): | |
3323 | """Realize(self)""" | |
3324 | return _controls_.Toolbook_Realize(*args, **kwargs) | |
3325 | ||
0085ce49 RD |
3326 | Toolbook_swigregister = _controls_.Toolbook_swigregister |
3327 | Toolbook_swigregister(Toolbook) | |
7e08d4ef RD |
3328 | |
3329 | def PreToolbook(*args, **kwargs): | |
3330 | """PreToolbook() -> Toolbook""" | |
3331 | val = _controls_.new_PreToolbook(*args, **kwargs) | |
7e08d4ef RD |
3332 | return val |
3333 | ||
3334 | class ToolbookEvent(BookCtrlBaseEvent): | |
3335 | """Proxy of C++ ToolbookEvent class""" | |
0085ce49 RD |
3336 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3337 | __repr__ = _swig_repr | |
3338 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3339 | """ |
3340 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, | |
3341 | int nOldSel=NOT_FOUND) -> ToolbookEvent | |
3342 | """ | |
0085ce49 RD |
3343 | _controls_.ToolbookEvent_swiginit(self,_controls_.new_ToolbookEvent(*args, **kwargs)) |
3344 | ToolbookEvent_swigregister = _controls_.ToolbookEvent_swigregister | |
3345 | ToolbookEvent_swigregister(ToolbookEvent) | |
7e08d4ef RD |
3346 | |
3347 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED | |
3348 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING | |
3349 | EVT_TOOLBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED, 1) | |
3350 | EVT_TOOLBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, 1) | |
3351 | ||
d14a1e28 RD |
3352 | #--------------------------------------------------------------------------- |
3353 | ||
54f9ee45 RD |
3354 | TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON |
3355 | TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR | |
3356 | TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL | |
3357 | TB_HORIZONTAL = _controls_.TB_HORIZONTAL | |
3358 | TB_VERTICAL = _controls_.TB_VERTICAL | |
3359 | TB_3DBUTTONS = _controls_.TB_3DBUTTONS | |
3360 | TB_FLAT = _controls_.TB_FLAT | |
3361 | TB_DOCKABLE = _controls_.TB_DOCKABLE | |
3362 | TB_NOICONS = _controls_.TB_NOICONS | |
3363 | TB_TEXT = _controls_.TB_TEXT | |
3364 | TB_NODIVIDER = _controls_.TB_NODIVIDER | |
3365 | TB_NOALIGN = _controls_.TB_NOALIGN | |
3366 | TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT | |
3367 | TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT | |
3368 | class ToolBarToolBase(_core.Object): | |
093d3ff1 | 3369 | """Proxy of C++ ToolBarToolBase class""" |
0085ce49 RD |
3370 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3371 | def __init__(self): raise AttributeError, "No constructor defined" | |
3372 | __repr__ = _swig_repr | |
e811c8ce | 3373 | def GetId(*args, **kwargs): |
a95a7133 | 3374 | """GetId(self) -> int""" |
54f9ee45 | 3375 | return _controls_.ToolBarToolBase_GetId(*args, **kwargs) |
e811c8ce RD |
3376 | |
3377 | def GetControl(*args, **kwargs): | |
a95a7133 | 3378 | """GetControl(self) -> Control""" |
54f9ee45 | 3379 | return _controls_.ToolBarToolBase_GetControl(*args, **kwargs) |
e811c8ce RD |
3380 | |
3381 | def GetToolBar(*args, **kwargs): | |
a95a7133 | 3382 | """GetToolBar(self) -> ToolBarBase""" |
54f9ee45 | 3383 | return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs) |
e811c8ce RD |
3384 | |
3385 | def IsButton(*args, **kwargs): | |
a95a7133 | 3386 | """IsButton(self) -> int""" |
54f9ee45 | 3387 | return _controls_.ToolBarToolBase_IsButton(*args, **kwargs) |
e811c8ce RD |
3388 | |
3389 | def IsControl(*args, **kwargs): | |
a95a7133 | 3390 | """IsControl(self) -> int""" |
54f9ee45 | 3391 | return _controls_.ToolBarToolBase_IsControl(*args, **kwargs) |
e811c8ce RD |
3392 | |
3393 | def IsSeparator(*args, **kwargs): | |
a95a7133 | 3394 | """IsSeparator(self) -> int""" |
54f9ee45 | 3395 | return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs) |
e811c8ce RD |
3396 | |
3397 | def GetStyle(*args, **kwargs): | |
a95a7133 | 3398 | """GetStyle(self) -> int""" |
54f9ee45 | 3399 | return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs) |
e811c8ce RD |
3400 | |
3401 | def GetKind(*args, **kwargs): | |
a95a7133 | 3402 | """GetKind(self) -> int""" |
54f9ee45 | 3403 | return _controls_.ToolBarToolBase_GetKind(*args, **kwargs) |
e811c8ce RD |
3404 | |
3405 | def IsEnabled(*args, **kwargs): | |
a95a7133 | 3406 | """IsEnabled(self) -> bool""" |
54f9ee45 | 3407 | return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs) |
e811c8ce RD |
3408 | |
3409 | def IsToggled(*args, **kwargs): | |
a95a7133 | 3410 | """IsToggled(self) -> bool""" |
54f9ee45 | 3411 | return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs) |
e811c8ce RD |
3412 | |
3413 | def CanBeToggled(*args, **kwargs): | |
a95a7133 | 3414 | """CanBeToggled(self) -> bool""" |
54f9ee45 | 3415 | return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs) |
e811c8ce RD |
3416 | |
3417 | def GetNormalBitmap(*args, **kwargs): | |
a95a7133 | 3418 | """GetNormalBitmap(self) -> Bitmap""" |
54f9ee45 | 3419 | return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) |
e811c8ce RD |
3420 | |
3421 | def GetDisabledBitmap(*args, **kwargs): | |
a95a7133 | 3422 | """GetDisabledBitmap(self) -> Bitmap""" |
54f9ee45 | 3423 | return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) |
e811c8ce RD |
3424 | |
3425 | def GetBitmap(*args, **kwargs): | |
a95a7133 | 3426 | """GetBitmap(self) -> Bitmap""" |
54f9ee45 | 3427 | return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs) |
e811c8ce RD |
3428 | |
3429 | def GetLabel(*args, **kwargs): | |
a95a7133 | 3430 | """GetLabel(self) -> String""" |
54f9ee45 | 3431 | return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs) |
e811c8ce RD |
3432 | |
3433 | def GetShortHelp(*args, **kwargs): | |
a95a7133 | 3434 | """GetShortHelp(self) -> String""" |
54f9ee45 | 3435 | return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs) |
e811c8ce RD |
3436 | |
3437 | def GetLongHelp(*args, **kwargs): | |
a95a7133 | 3438 | """GetLongHelp(self) -> String""" |
54f9ee45 | 3439 | return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs) |
e811c8ce RD |
3440 | |
3441 | def Enable(*args, **kwargs): | |
a95a7133 | 3442 | """Enable(self, bool enable) -> bool""" |
54f9ee45 | 3443 | return _controls_.ToolBarToolBase_Enable(*args, **kwargs) |
e811c8ce RD |
3444 | |
3445 | def Toggle(*args, **kwargs): | |
a95a7133 | 3446 | """Toggle(self)""" |
54f9ee45 | 3447 | return _controls_.ToolBarToolBase_Toggle(*args, **kwargs) |
e811c8ce RD |
3448 | |
3449 | def SetToggle(*args, **kwargs): | |
a95a7133 | 3450 | """SetToggle(self, bool toggle) -> bool""" |
54f9ee45 | 3451 | return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs) |
e811c8ce RD |
3452 | |
3453 | def SetShortHelp(*args, **kwargs): | |
a95a7133 | 3454 | """SetShortHelp(self, String help) -> bool""" |
54f9ee45 | 3455 | return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs) |
e811c8ce RD |
3456 | |
3457 | def SetLongHelp(*args, **kwargs): | |
a95a7133 | 3458 | """SetLongHelp(self, String help) -> bool""" |
54f9ee45 | 3459 | return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs) |
e811c8ce RD |
3460 | |
3461 | def SetNormalBitmap(*args, **kwargs): | |
a95a7133 | 3462 | """SetNormalBitmap(self, Bitmap bmp)""" |
54f9ee45 | 3463 | return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) |
e811c8ce RD |
3464 | |
3465 | def SetDisabledBitmap(*args, **kwargs): | |
a95a7133 | 3466 | """SetDisabledBitmap(self, Bitmap bmp)""" |
54f9ee45 | 3467 | return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) |
e811c8ce RD |
3468 | |
3469 | def SetLabel(*args, **kwargs): | |
a95a7133 | 3470 | """SetLabel(self, String label)""" |
54f9ee45 | 3471 | return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs) |
e811c8ce RD |
3472 | |
3473 | def Detach(*args, **kwargs): | |
a95a7133 | 3474 | """Detach(self)""" |
54f9ee45 | 3475 | return _controls_.ToolBarToolBase_Detach(*args, **kwargs) |
e811c8ce RD |
3476 | |
3477 | def Attach(*args, **kwargs): | |
a95a7133 | 3478 | """Attach(self, ToolBarBase tbar)""" |
54f9ee45 | 3479 | return _controls_.ToolBarToolBase_Attach(*args, **kwargs) |
e811c8ce RD |
3480 | |
3481 | def GetClientData(*args, **kwargs): | |
a95a7133 | 3482 | """GetClientData(self) -> PyObject""" |
54f9ee45 | 3483 | return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs) |
e811c8ce RD |
3484 | |
3485 | def SetClientData(*args, **kwargs): | |
a95a7133 | 3486 | """SetClientData(self, PyObject clientData)""" |
54f9ee45 | 3487 | return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs) |
e811c8ce | 3488 | |
d14a1e28 RD |
3489 | GetBitmap1 = GetNormalBitmap |
3490 | GetBitmap2 = GetDisabledBitmap | |
3491 | SetBitmap1 = SetNormalBitmap | |
3492 | SetBitmap2 = SetDisabledBitmap | |
3493 | ||
0085ce49 RD |
3494 | ToolBarToolBase_swigregister = _controls_.ToolBarToolBase_swigregister |
3495 | ToolBarToolBase_swigregister(ToolBarToolBase) | |
d14a1e28 | 3496 | |
54f9ee45 | 3497 | class ToolBarBase(_core.Control): |
093d3ff1 | 3498 | """Proxy of C++ ToolBarBase class""" |
0085ce49 RD |
3499 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3500 | def __init__(self): raise AttributeError, "No constructor defined" | |
3501 | __repr__ = _swig_repr | |
e811c8ce | 3502 | def DoAddTool(*args, **kwargs): |
0df68c9f | 3503 | """ |
a95a7133 | 3504 | DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, |
196addbf RD |
3505 | int kind=ITEM_NORMAL, String shortHelp=EmptyString, |
3506 | String longHelp=EmptyString, | |
3507 | PyObject clientData=None) -> ToolBarToolBase | |
0df68c9f | 3508 | """ |
54f9ee45 | 3509 | return _controls_.ToolBarBase_DoAddTool(*args, **kwargs) |
e811c8ce RD |
3510 | |
3511 | def DoInsertTool(*args, **kwargs): | |
0df68c9f | 3512 | """ |
a95a7133 | 3513 | DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, |
196addbf RD |
3514 | int kind=ITEM_NORMAL, |
3515 | String shortHelp=EmptyString, String longHelp=EmptyString, | |
0df68c9f RD |
3516 | PyObject clientData=None) -> ToolBarToolBase |
3517 | """ | |
54f9ee45 | 3518 | return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs) |
e811c8ce | 3519 | |
d14a1e28 RD |
3520 | # These match the original Add methods for this class, kept for |
3521 | # backwards compatibility with versions < 2.3.3. | |
3522 | ||
3523 | ||
3524 | def AddTool(self, id, bitmap, | |
3525 | pushedBitmap = wx.NullBitmap, | |
3526 | isToggle = 0, | |
3527 | clientData = None, | |
3528 | shortHelpString = '', | |
3529 | longHelpString = '') : | |
3530 | '''Old style method to add a tool to the toolbar.''' | |
3531 | kind = wx.ITEM_NORMAL | |
3532 | if isToggle: kind = wx.ITEM_CHECK | |
3533 | return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, | |
3534 | shortHelpString, longHelpString, clientData) | |
3535 | ||
3536 | def AddSimpleTool(self, id, bitmap, | |
3537 | shortHelpString = '', | |
3538 | longHelpString = '', | |
3539 | isToggle = 0): | |
3540 | '''Old style method to add a tool to the toolbar.''' | |
3541 | kind = wx.ITEM_NORMAL | |
3542 | if isToggle: kind = wx.ITEM_CHECK | |
3543 | return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, | |
3544 | shortHelpString, longHelpString, None) | |
3545 | ||
3546 | def InsertTool(self, pos, id, bitmap, | |
3547 | pushedBitmap = wx.NullBitmap, | |
3548 | isToggle = 0, | |
3549 | clientData = None, | |
3550 | shortHelpString = '', | |
3551 | longHelpString = ''): | |
3552 | '''Old style method to insert a tool in the toolbar.''' | |
3553 | kind = wx.ITEM_NORMAL | |
3554 | if isToggle: kind = wx.ITEM_CHECK | |
3555 | return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, | |
3556 | shortHelpString, longHelpString, clientData) | |
3557 | ||
3558 | def InsertSimpleTool(self, pos, id, bitmap, | |
3559 | shortHelpString = '', | |
3560 | longHelpString = '', | |
3561 | isToggle = 0): | |
3562 | '''Old style method to insert a tool in the toolbar.''' | |
3563 | kind = wx.ITEM_NORMAL | |
3564 | if isToggle: kind = wx.ITEM_CHECK | |
3565 | return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, | |
3566 | shortHelpString, longHelpString, None) | |
3567 | ||
3568 | ||
3569 | # The following are the new toolbar Add methods starting with | |
3570 | # 2.3.3. They are renamed to have 'Label' in the name so as to be | |
3571 | # able to keep backwards compatibility with using the above | |
3572 | # methods. Eventually these should migrate to be the methods used | |
3573 | # primarily and lose the 'Label' in the name... | |
3574 | ||
3575 | def AddLabelTool(self, id, label, bitmap, | |
3576 | bmpDisabled = wx.NullBitmap, | |
3577 | kind = wx.ITEM_NORMAL, | |
3578 | shortHelp = '', longHelp = '', | |
3579 | clientData = None): | |
3580 | ''' | |
3581 | The full AddTool() function. | |
3582 | ||
3583 | If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap | |
3584 | is created and used as the disabled image. | |
3585 | ''' | |
3586 | return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, | |
3587 | shortHelp, longHelp, clientData) | |
3588 | ||
3589 | ||
3590 | def InsertLabelTool(self, pos, id, label, bitmap, | |
3591 | bmpDisabled = wx.NullBitmap, | |
3592 | kind = wx.ITEM_NORMAL, | |
3593 | shortHelp = '', longHelp = '', | |
3594 | clientData = None): | |
3595 | ''' | |
3596 | Insert the new tool at the given position, if pos == GetToolsCount(), it | |
3597 | is equivalent to AddTool() | |
3598 | ''' | |
3599 | return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
3600 | shortHelp, longHelp, clientData) | |
3601 | ||
3602 | def AddCheckLabelTool(self, id, label, bitmap, | |
3603 | bmpDisabled = wx.NullBitmap, | |
3604 | shortHelp = '', longHelp = '', | |
3605 | clientData = None): | |
3606 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3607 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3608 | shortHelp, longHelp, clientData) | |
3609 | ||
3610 | def AddRadioLabelTool(self, id, label, bitmap, | |
3611 | bmpDisabled = wx.NullBitmap, | |
3612 | shortHelp = '', longHelp = '', | |
3613 | clientData = None): | |
3614 | ''' | |
3615 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3616 | other toggled radio tools in the same group when it happens | |
3617 | ''' | |
3618 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3619 | shortHelp, longHelp, clientData) | |
3620 | ||
3621 | ||
3622 | # For consistency with the backwards compatible methods above, here are | |
3623 | # some non-'Label' versions of the Check and Radio methods | |
248ed943 | 3624 | |
d14a1e28 RD |
3625 | def AddCheckTool(self, id, bitmap, |
3626 | bmpDisabled = wx.NullBitmap, | |
3627 | shortHelp = '', longHelp = '', | |
3628 | clientData = None): | |
3629 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3630 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3631 | shortHelp, longHelp, clientData) | |
3632 | ||
3633 | def AddRadioTool(self, id, bitmap, | |
3634 | bmpDisabled = wx.NullBitmap, | |
3635 | shortHelp = '', longHelp = '', | |
3636 | clientData = None): | |
3637 | ''' | |
3638 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3639 | other toggled radio tools in the same group when it happens | |
3640 | ''' | |
3641 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3642 | shortHelp, longHelp, clientData) | |
3643 | ||
3a04f143 | 3644 | def AddToolItem(*args, **kwargs): |
a95a7133 | 3645 | """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" |
54f9ee45 | 3646 | return _controls_.ToolBarBase_AddToolItem(*args, **kwargs) |
3a04f143 RD |
3647 | |
3648 | def InsertToolItem(*args, **kwargs): | |
a95a7133 | 3649 | """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" |
54f9ee45 | 3650 | return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs) |
3a04f143 | 3651 | |
e811c8ce | 3652 | def AddControl(*args, **kwargs): |
a95a7133 | 3653 | """AddControl(self, Control control) -> ToolBarToolBase""" |
54f9ee45 | 3654 | return _controls_.ToolBarBase_AddControl(*args, **kwargs) |
e811c8ce RD |
3655 | |
3656 | def InsertControl(*args, **kwargs): | |
a95a7133 | 3657 | """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" |
54f9ee45 | 3658 | return _controls_.ToolBarBase_InsertControl(*args, **kwargs) |
e811c8ce RD |
3659 | |
3660 | def FindControl(*args, **kwargs): | |
a95a7133 | 3661 | """FindControl(self, int id) -> Control""" |
54f9ee45 | 3662 | return _controls_.ToolBarBase_FindControl(*args, **kwargs) |
e811c8ce RD |
3663 | |
3664 | def AddSeparator(*args, **kwargs): | |
a95a7133 | 3665 | """AddSeparator(self) -> ToolBarToolBase""" |
54f9ee45 | 3666 | return _controls_.ToolBarBase_AddSeparator(*args, **kwargs) |
e811c8ce RD |
3667 | |
3668 | def InsertSeparator(*args, **kwargs): | |
a95a7133 | 3669 | """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" |
54f9ee45 | 3670 | return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs) |
e811c8ce RD |
3671 | |
3672 | def RemoveTool(*args, **kwargs): | |
a95a7133 | 3673 | """RemoveTool(self, int id) -> ToolBarToolBase""" |
54f9ee45 | 3674 | return _controls_.ToolBarBase_RemoveTool(*args, **kwargs) |
e811c8ce RD |
3675 | |
3676 | def DeleteToolByPos(*args, **kwargs): | |
a95a7133 | 3677 | """DeleteToolByPos(self, size_t pos) -> bool""" |
54f9ee45 | 3678 | return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs) |
e811c8ce RD |
3679 | |
3680 | def DeleteTool(*args, **kwargs): | |
a95a7133 | 3681 | """DeleteTool(self, int id) -> bool""" |
54f9ee45 | 3682 | return _controls_.ToolBarBase_DeleteTool(*args, **kwargs) |
e811c8ce RD |
3683 | |
3684 | def ClearTools(*args, **kwargs): | |
a95a7133 | 3685 | """ClearTools(self)""" |
54f9ee45 | 3686 | return _controls_.ToolBarBase_ClearTools(*args, **kwargs) |
e811c8ce RD |
3687 | |
3688 | def Realize(*args, **kwargs): | |
a95a7133 | 3689 | """Realize(self) -> bool""" |
54f9ee45 | 3690 | return _controls_.ToolBarBase_Realize(*args, **kwargs) |
e811c8ce RD |
3691 | |
3692 | def EnableTool(*args, **kwargs): | |
a95a7133 | 3693 | """EnableTool(self, int id, bool enable)""" |
54f9ee45 | 3694 | return _controls_.ToolBarBase_EnableTool(*args, **kwargs) |
e811c8ce RD |
3695 | |
3696 | def ToggleTool(*args, **kwargs): | |
a95a7133 | 3697 | """ToggleTool(self, int id, bool toggle)""" |
54f9ee45 | 3698 | return _controls_.ToolBarBase_ToggleTool(*args, **kwargs) |
e811c8ce RD |
3699 | |
3700 | def SetToggle(*args, **kwargs): | |
a95a7133 | 3701 | """SetToggle(self, int id, bool toggle)""" |
54f9ee45 | 3702 | return _controls_.ToolBarBase_SetToggle(*args, **kwargs) |
e811c8ce RD |
3703 | |
3704 | def GetToolClientData(*args, **kwargs): | |
a95a7133 | 3705 | """GetToolClientData(self, int id) -> PyObject""" |
54f9ee45 | 3706 | return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs) |
e811c8ce RD |
3707 | |
3708 | def SetToolClientData(*args, **kwargs): | |
a95a7133 | 3709 | """SetToolClientData(self, int id, PyObject clientData)""" |
54f9ee45 | 3710 | return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs) |
e811c8ce RD |
3711 | |
3712 | def GetToolPos(*args, **kwargs): | |
a95a7133 | 3713 | """GetToolPos(self, int id) -> int""" |
54f9ee45 | 3714 | return _controls_.ToolBarBase_GetToolPos(*args, **kwargs) |
e811c8ce RD |
3715 | |
3716 | def GetToolState(*args, **kwargs): | |
a95a7133 | 3717 | """GetToolState(self, int id) -> bool""" |
54f9ee45 | 3718 | return _controls_.ToolBarBase_GetToolState(*args, **kwargs) |
e811c8ce RD |
3719 | |
3720 | def GetToolEnabled(*args, **kwargs): | |
a95a7133 | 3721 | """GetToolEnabled(self, int id) -> bool""" |
54f9ee45 | 3722 | return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs) |
e811c8ce RD |
3723 | |
3724 | def SetToolShortHelp(*args, **kwargs): | |
a95a7133 | 3725 | """SetToolShortHelp(self, int id, String helpString)""" |
54f9ee45 | 3726 | return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs) |
e811c8ce RD |
3727 | |
3728 | def GetToolShortHelp(*args, **kwargs): | |
a95a7133 | 3729 | """GetToolShortHelp(self, int id) -> String""" |
54f9ee45 | 3730 | return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs) |
e811c8ce RD |
3731 | |
3732 | def SetToolLongHelp(*args, **kwargs): | |
a95a7133 | 3733 | """SetToolLongHelp(self, int id, String helpString)""" |
54f9ee45 | 3734 | return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs) |
e811c8ce RD |
3735 | |
3736 | def GetToolLongHelp(*args, **kwargs): | |
a95a7133 | 3737 | """GetToolLongHelp(self, int id) -> String""" |
54f9ee45 | 3738 | return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs) |
e811c8ce RD |
3739 | |
3740 | def SetMarginsXY(*args, **kwargs): | |
a95a7133 | 3741 | """SetMarginsXY(self, int x, int y)""" |
54f9ee45 | 3742 | return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs) |
e811c8ce RD |
3743 | |
3744 | def SetMargins(*args, **kwargs): | |
a95a7133 | 3745 | """SetMargins(self, Size size)""" |
54f9ee45 | 3746 | return _controls_.ToolBarBase_SetMargins(*args, **kwargs) |
e811c8ce RD |
3747 | |
3748 | def SetToolPacking(*args, **kwargs): | |
a95a7133 | 3749 | """SetToolPacking(self, int packing)""" |
54f9ee45 | 3750 | return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs) |
e811c8ce RD |
3751 | |
3752 | def SetToolSeparation(*args, **kwargs): | |
a95a7133 | 3753 | """SetToolSeparation(self, int separation)""" |
54f9ee45 | 3754 | return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs) |
e811c8ce RD |
3755 | |
3756 | def GetToolMargins(*args, **kwargs): | |
a95a7133 | 3757 | """GetToolMargins(self) -> Size""" |
54f9ee45 | 3758 | return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs) |
e811c8ce RD |
3759 | |
3760 | def GetMargins(*args, **kwargs): | |
a95a7133 | 3761 | """GetMargins(self) -> Size""" |
54f9ee45 | 3762 | return _controls_.ToolBarBase_GetMargins(*args, **kwargs) |
e811c8ce RD |
3763 | |
3764 | def GetToolPacking(*args, **kwargs): | |
a95a7133 | 3765 | """GetToolPacking(self) -> int""" |
54f9ee45 | 3766 | return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs) |
e811c8ce RD |
3767 | |
3768 | def GetToolSeparation(*args, **kwargs): | |
a95a7133 | 3769 | """GetToolSeparation(self) -> int""" |
54f9ee45 | 3770 | return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs) |
e811c8ce RD |
3771 | |
3772 | def SetRows(*args, **kwargs): | |
a95a7133 | 3773 | """SetRows(self, int nRows)""" |
54f9ee45 | 3774 | return _controls_.ToolBarBase_SetRows(*args, **kwargs) |
e811c8ce RD |
3775 | |
3776 | def SetMaxRowsCols(*args, **kwargs): | |
a95a7133 | 3777 | """SetMaxRowsCols(self, int rows, int cols)""" |
54f9ee45 | 3778 | return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs) |
e811c8ce RD |
3779 | |
3780 | def GetMaxRows(*args, **kwargs): | |
a95a7133 | 3781 | """GetMaxRows(self) -> int""" |
54f9ee45 | 3782 | return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs) |
e811c8ce RD |
3783 | |
3784 | def GetMaxCols(*args, **kwargs): | |
a95a7133 | 3785 | """GetMaxCols(self) -> int""" |
54f9ee45 | 3786 | return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs) |
e811c8ce RD |
3787 | |
3788 | def SetToolBitmapSize(*args, **kwargs): | |
a95a7133 | 3789 | """SetToolBitmapSize(self, Size size)""" |
54f9ee45 | 3790 | return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs) |
e811c8ce RD |
3791 | |
3792 | def GetToolBitmapSize(*args, **kwargs): | |
a95a7133 | 3793 | """GetToolBitmapSize(self) -> Size""" |
54f9ee45 | 3794 | return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs) |
e811c8ce RD |
3795 | |
3796 | def GetToolSize(*args, **kwargs): | |
a95a7133 | 3797 | """GetToolSize(self) -> Size""" |
54f9ee45 | 3798 | return _controls_.ToolBarBase_GetToolSize(*args, **kwargs) |
e811c8ce RD |
3799 | |
3800 | def FindToolForPosition(*args, **kwargs): | |
a95a7133 | 3801 | """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" |
54f9ee45 | 3802 | return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs) |
e811c8ce | 3803 | |
3a04f143 | 3804 | def FindById(*args, **kwargs): |
a95a7133 | 3805 | """FindById(self, int toolid) -> ToolBarToolBase""" |
54f9ee45 | 3806 | return _controls_.ToolBarBase_FindById(*args, **kwargs) |
3a04f143 | 3807 | |
e811c8ce | 3808 | def IsVertical(*args, **kwargs): |
a95a7133 | 3809 | """IsVertical(self) -> bool""" |
54f9ee45 | 3810 | return _controls_.ToolBarBase_IsVertical(*args, **kwargs) |
e811c8ce | 3811 | |
0085ce49 RD |
3812 | def GetToolsCount(*args, **kwargs): |
3813 | """GetToolsCount(self) -> size_t""" | |
3814 | return _controls_.ToolBarBase_GetToolsCount(*args, **kwargs) | |
d14a1e28 | 3815 | |
0085ce49 RD |
3816 | ToolBarBase_swigregister = _controls_.ToolBarBase_swigregister |
3817 | ToolBarBase_swigregister(ToolBarBase) | |
d14a1e28 RD |
3818 | |
3819 | class ToolBar(ToolBarBase): | |
093d3ff1 | 3820 | """Proxy of C++ ToolBar class""" |
0085ce49 RD |
3821 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3822 | __repr__ = _swig_repr | |
3823 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3824 | """ |
248ed943 RD |
3825 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3826 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
196addbf | 3827 | String name=wxPyToolBarNameStr) -> ToolBar |
0df68c9f | 3828 | """ |
0085ce49 | 3829 | _controls_.ToolBar_swiginit(self,_controls_.new_ToolBar(*args, **kwargs)) |
d14a1e28 | 3830 | self._setOORInfo(self) |
e811c8ce RD |
3831 | |
3832 | def Create(*args, **kwargs): | |
0df68c9f | 3833 | """ |
248ed943 RD |
3834 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3835 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
196addbf | 3836 | String name=wxPyToolBarNameStr) -> bool |
0df68c9f | 3837 | """ |
54f9ee45 | 3838 | return _controls_.ToolBar_Create(*args, **kwargs) |
e811c8ce | 3839 | |
22bfe96c | 3840 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
3841 | """ |
3842 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3843 | ||
3844 | Get the default attributes for this class. This is useful if you want | |
3845 | to use the same font or colour in your own control as in a standard | |
3846 | control -- which is a much better idea than hard coding specific | |
3847 | colours or fonts which might look completely out of place on the | |
3848 | user's system, especially if it uses themes. | |
3849 | ||
3850 | The variant parameter is only relevant under Mac currently and is | |
3851 | ignore under other platforms. Under Mac, it will change the size of | |
3852 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3853 | this. | |
3854 | """ | |
22bfe96c RD |
3855 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
3856 | ||
3857 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
3858 | ToolBar_swigregister = _controls_.ToolBar_swigregister |
3859 | ToolBar_swigregister(ToolBar) | |
70551f47 | 3860 | |
d14a1e28 | 3861 | def PreToolBar(*args, **kwargs): |
e811c8ce | 3862 | """PreToolBar() -> ToolBar""" |
54f9ee45 | 3863 | val = _controls_.new_PreToolBar(*args, **kwargs) |
aa2a5b86 RD |
3864 | return val |
3865 | ||
22bfe96c | 3866 | def ToolBar_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 3867 | """ |
110da5b0 RD |
3868 | ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
3869 | ||
3870 | Get the default attributes for this class. This is useful if you want | |
3871 | to use the same font or colour in your own control as in a standard | |
3872 | control -- which is a much better idea than hard coding specific | |
3873 | colours or fonts which might look completely out of place on the | |
3874 | user's system, especially if it uses themes. | |
3875 | ||
3876 | The variant parameter is only relevant under Mac currently and is | |
3877 | ignore under other platforms. Under Mac, it will change the size of | |
3878 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3879 | this. | |
3880 | """ | |
0085ce49 | 3881 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 3882 | |
d14a1e28 RD |
3883 | #--------------------------------------------------------------------------- |
3884 | ||
54f9ee45 RD |
3885 | LC_VRULES = _controls_.LC_VRULES |
3886 | LC_HRULES = _controls_.LC_HRULES | |
3887 | LC_ICON = _controls_.LC_ICON | |
3888 | LC_SMALL_ICON = _controls_.LC_SMALL_ICON | |
3889 | LC_LIST = _controls_.LC_LIST | |
3890 | LC_REPORT = _controls_.LC_REPORT | |
3891 | LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP | |
3892 | LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT | |
3893 | LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE | |
3894 | LC_VIRTUAL = _controls_.LC_VIRTUAL | |
3895 | LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS | |
3896 | LC_NO_HEADER = _controls_.LC_NO_HEADER | |
3897 | LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER | |
3898 | LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL | |
3899 | LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING | |
3900 | LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING | |
3901 | LC_MASK_TYPE = _controls_.LC_MASK_TYPE | |
3902 | LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN | |
3903 | LC_MASK_SORT = _controls_.LC_MASK_SORT | |
3904 | LIST_MASK_STATE = _controls_.LIST_MASK_STATE | |
3905 | LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT | |
3906 | LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE | |
3907 | LIST_MASK_DATA = _controls_.LIST_MASK_DATA | |
3908 | LIST_SET_ITEM = _controls_.LIST_SET_ITEM | |
3909 | LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH | |
3910 | LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT | |
3911 | LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE | |
3912 | LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED | |
3913 | LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED | |
3914 | LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED | |
3915 | LIST_STATE_CUT = _controls_.LIST_STATE_CUT | |
3916 | LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED | |
3917 | LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED | |
3918 | LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE | |
3919 | LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED | |
3920 | LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE | |
3921 | LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE | |
3922 | LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW | |
3923 | LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE | |
3924 | LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON | |
3925 | LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL | |
3926 | LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT | |
3927 | LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON | |
3928 | LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT | |
3929 | LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT | |
3930 | LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM | |
3931 | LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE | |
3932 | LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL | |
3933 | LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW | |
3934 | LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT | |
3935 | LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT | |
3936 | LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT | |
3937 | LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT | |
3938 | LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP | |
3939 | LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID | |
3940 | LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT | |
3941 | LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT | |
3942 | LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE | |
3943 | LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER | |
3944 | LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE | |
3945 | LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER | |
3946 | LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS | |
3947 | LIST_RECT_ICON = _controls_.LIST_RECT_ICON | |
3948 | LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL | |
3949 | LIST_FIND_UP = _controls_.LIST_FIND_UP | |
3950 | LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN | |
3951 | LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT | |
3952 | LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT | |
d14a1e28 RD |
3953 | #--------------------------------------------------------------------------- |
3954 | ||
3955 | class ListItemAttr(object): | |
093d3ff1 | 3956 | """Proxy of C++ ListItemAttr class""" |
0085ce49 RD |
3957 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3958 | __repr__ = _swig_repr | |
3959 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3960 | """ |
a95a7133 | 3961 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, |
196addbf | 3962 | Font font=wxNullFont) -> ListItemAttr |
0df68c9f | 3963 | """ |
0085ce49 RD |
3964 | _controls_.ListItemAttr_swiginit(self,_controls_.new_ListItemAttr(*args, **kwargs)) |
3965 | __swig_destroy__ = _controls_.delete_ListItemAttr | |
3966 | __del__ = lambda self : None; | |
e811c8ce | 3967 | def SetTextColour(*args, **kwargs): |
a95a7133 | 3968 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 3969 | return _controls_.ListItemAttr_SetTextColour(*args, **kwargs) |
e811c8ce RD |
3970 | |
3971 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 3972 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 3973 | return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
3974 | |
3975 | def SetFont(*args, **kwargs): | |
a95a7133 | 3976 | """SetFont(self, Font font)""" |
54f9ee45 | 3977 | return _controls_.ListItemAttr_SetFont(*args, **kwargs) |
e811c8ce RD |
3978 | |
3979 | def HasTextColour(*args, **kwargs): | |
a95a7133 | 3980 | """HasTextColour(self) -> bool""" |
54f9ee45 | 3981 | return _controls_.ListItemAttr_HasTextColour(*args, **kwargs) |
e811c8ce RD |
3982 | |
3983 | def HasBackgroundColour(*args, **kwargs): | |
a95a7133 | 3984 | """HasBackgroundColour(self) -> bool""" |
54f9ee45 | 3985 | return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs) |
e811c8ce RD |
3986 | |
3987 | def HasFont(*args, **kwargs): | |
a95a7133 | 3988 | """HasFont(self) -> bool""" |
54f9ee45 | 3989 | return _controls_.ListItemAttr_HasFont(*args, **kwargs) |
e811c8ce RD |
3990 | |
3991 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 3992 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 3993 | return _controls_.ListItemAttr_GetTextColour(*args, **kwargs) |
e811c8ce RD |
3994 | |
3995 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 3996 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 3997 | return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
3998 | |
3999 | def GetFont(*args, **kwargs): | |
a95a7133 | 4000 | """GetFont(self) -> Font""" |
54f9ee45 | 4001 | return _controls_.ListItemAttr_GetFont(*args, **kwargs) |
e811c8ce | 4002 | |
7e08d4ef RD |
4003 | def AssignFrom(*args, **kwargs): |
4004 | """AssignFrom(self, ListItemAttr source)""" | |
4005 | return _controls_.ListItemAttr_AssignFrom(*args, **kwargs) | |
4006 | ||
e811c8ce | 4007 | def Destroy(*args, **kwargs): |
a95a7133 | 4008 | """Destroy(self)""" |
7e08d4ef RD |
4009 | val = _controls_.ListItemAttr_Destroy(*args, **kwargs) |
4010 | args[0].thisown = 0 | |
4011 | return val | |
e811c8ce | 4012 | |
0085ce49 RD |
4013 | ListItemAttr_swigregister = _controls_.ListItemAttr_swigregister |
4014 | ListItemAttr_swigregister(ListItemAttr) | |
b2dc1044 | 4015 | ListCtrlNameStr = cvar.ListCtrlNameStr |
d14a1e28 RD |
4016 | |
4017 | #--------------------------------------------------------------------------- | |
4018 | ||
54f9ee45 | 4019 | class ListItem(_core.Object): |
093d3ff1 | 4020 | """Proxy of C++ ListItem class""" |
0085ce49 RD |
4021 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4022 | __repr__ = _swig_repr | |
4023 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4024 | """__init__(self) -> ListItem""" |
0085ce49 RD |
4025 | _controls_.ListItem_swiginit(self,_controls_.new_ListItem(*args, **kwargs)) |
4026 | __swig_destroy__ = _controls_.delete_ListItem | |
4027 | __del__ = lambda self : None; | |
e811c8ce | 4028 | def Clear(*args, **kwargs): |
a95a7133 | 4029 | """Clear(self)""" |
54f9ee45 | 4030 | return _controls_.ListItem_Clear(*args, **kwargs) |
e811c8ce RD |
4031 | |
4032 | def ClearAttributes(*args, **kwargs): | |
a95a7133 | 4033 | """ClearAttributes(self)""" |
54f9ee45 | 4034 | return _controls_.ListItem_ClearAttributes(*args, **kwargs) |
e811c8ce RD |
4035 | |
4036 | def SetMask(*args, **kwargs): | |
a95a7133 | 4037 | """SetMask(self, long mask)""" |
54f9ee45 | 4038 | return _controls_.ListItem_SetMask(*args, **kwargs) |
e811c8ce RD |
4039 | |
4040 | def SetId(*args, **kwargs): | |
a95a7133 | 4041 | """SetId(self, long id)""" |
54f9ee45 | 4042 | return _controls_.ListItem_SetId(*args, **kwargs) |
e811c8ce RD |
4043 | |
4044 | def SetColumn(*args, **kwargs): | |
a95a7133 | 4045 | """SetColumn(self, int col)""" |
54f9ee45 | 4046 | return _controls_.ListItem_SetColumn(*args, **kwargs) |
e811c8ce RD |
4047 | |
4048 | def SetState(*args, **kwargs): | |
a95a7133 | 4049 | """SetState(self, long state)""" |
54f9ee45 | 4050 | return _controls_.ListItem_SetState(*args, **kwargs) |
e811c8ce RD |
4051 | |
4052 | def SetStateMask(*args, **kwargs): | |
a95a7133 | 4053 | """SetStateMask(self, long stateMask)""" |
54f9ee45 | 4054 | return _controls_.ListItem_SetStateMask(*args, **kwargs) |
e811c8ce RD |
4055 | |
4056 | def SetText(*args, **kwargs): | |
a95a7133 | 4057 | """SetText(self, String text)""" |
54f9ee45 | 4058 | return _controls_.ListItem_SetText(*args, **kwargs) |
e811c8ce RD |
4059 | |
4060 | def SetImage(*args, **kwargs): | |
a95a7133 | 4061 | """SetImage(self, int image)""" |
54f9ee45 | 4062 | return _controls_.ListItem_SetImage(*args, **kwargs) |
e811c8ce RD |
4063 | |
4064 | def SetData(*args, **kwargs): | |
a95a7133 | 4065 | """SetData(self, long data)""" |
54f9ee45 | 4066 | return _controls_.ListItem_SetData(*args, **kwargs) |
e811c8ce RD |
4067 | |
4068 | def SetWidth(*args, **kwargs): | |
a95a7133 | 4069 | """SetWidth(self, int width)""" |
54f9ee45 | 4070 | return _controls_.ListItem_SetWidth(*args, **kwargs) |
e811c8ce RD |
4071 | |
4072 | def SetAlign(*args, **kwargs): | |
a95a7133 | 4073 | """SetAlign(self, int align)""" |
54f9ee45 | 4074 | return _controls_.ListItem_SetAlign(*args, **kwargs) |
e811c8ce RD |
4075 | |
4076 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 4077 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 4078 | return _controls_.ListItem_SetTextColour(*args, **kwargs) |
e811c8ce RD |
4079 | |
4080 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4081 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 4082 | return _controls_.ListItem_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4083 | |
4084 | def SetFont(*args, **kwargs): | |
a95a7133 | 4085 | """SetFont(self, Font font)""" |
54f9ee45 | 4086 | return _controls_.ListItem_SetFont(*args, **kwargs) |
e811c8ce RD |
4087 | |
4088 | def GetMask(*args, **kwargs): | |
a95a7133 | 4089 | """GetMask(self) -> long""" |
54f9ee45 | 4090 | return _controls_.ListItem_GetMask(*args, **kwargs) |
e811c8ce RD |
4091 | |
4092 | def GetId(*args, **kwargs): | |
a95a7133 | 4093 | """GetId(self) -> long""" |
54f9ee45 | 4094 | return _controls_.ListItem_GetId(*args, **kwargs) |
e811c8ce RD |
4095 | |
4096 | def GetColumn(*args, **kwargs): | |
a95a7133 | 4097 | """GetColumn(self) -> int""" |
54f9ee45 | 4098 | return _controls_.ListItem_GetColumn(*args, **kwargs) |
e811c8ce RD |
4099 | |
4100 | def GetState(*args, **kwargs): | |
a95a7133 | 4101 | """GetState(self) -> long""" |
54f9ee45 | 4102 | return _controls_.ListItem_GetState(*args, **kwargs) |
e811c8ce RD |
4103 | |
4104 | def GetText(*args, **kwargs): | |
a95a7133 | 4105 | """GetText(self) -> String""" |
54f9ee45 | 4106 | return _controls_.ListItem_GetText(*args, **kwargs) |
e811c8ce RD |
4107 | |
4108 | def GetImage(*args, **kwargs): | |
a95a7133 | 4109 | """GetImage(self) -> int""" |
54f9ee45 | 4110 | return _controls_.ListItem_GetImage(*args, **kwargs) |
e811c8ce RD |
4111 | |
4112 | def GetData(*args, **kwargs): | |
a95a7133 | 4113 | """GetData(self) -> long""" |
54f9ee45 | 4114 | return _controls_.ListItem_GetData(*args, **kwargs) |
e811c8ce RD |
4115 | |
4116 | def GetWidth(*args, **kwargs): | |
a95a7133 | 4117 | """GetWidth(self) -> int""" |
54f9ee45 | 4118 | return _controls_.ListItem_GetWidth(*args, **kwargs) |
e811c8ce RD |
4119 | |
4120 | def GetAlign(*args, **kwargs): | |
a95a7133 | 4121 | """GetAlign(self) -> int""" |
54f9ee45 | 4122 | return _controls_.ListItem_GetAlign(*args, **kwargs) |
e811c8ce RD |
4123 | |
4124 | def GetAttributes(*args, **kwargs): | |
a95a7133 | 4125 | """GetAttributes(self) -> ListItemAttr""" |
54f9ee45 | 4126 | return _controls_.ListItem_GetAttributes(*args, **kwargs) |
e811c8ce RD |
4127 | |
4128 | def HasAttributes(*args, **kwargs): | |
a95a7133 | 4129 | """HasAttributes(self) -> bool""" |
54f9ee45 | 4130 | return _controls_.ListItem_HasAttributes(*args, **kwargs) |
e811c8ce RD |
4131 | |
4132 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 4133 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 4134 | return _controls_.ListItem_GetTextColour(*args, **kwargs) |
e811c8ce RD |
4135 | |
4136 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4137 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 4138 | return _controls_.ListItem_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4139 | |
4140 | def GetFont(*args, **kwargs): | |
a95a7133 | 4141 | """GetFont(self) -> Font""" |
54f9ee45 RD |
4142 | return _controls_.ListItem_GetFont(*args, **kwargs) |
4143 | ||
4144 | m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set) | |
4145 | m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set) | |
4146 | m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set) | |
4147 | m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set) | |
4148 | m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set) | |
4149 | m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set) | |
4150 | m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set) | |
4151 | m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set) | |
4152 | m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set) | |
4153 | m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set) | |
0085ce49 RD |
4154 | ListItem_swigregister = _controls_.ListItem_swigregister |
4155 | ListItem_swigregister(ListItem) | |
d14a1e28 RD |
4156 | |
4157 | #--------------------------------------------------------------------------- | |
4158 | ||
54f9ee45 | 4159 | class ListEvent(_core.NotifyEvent): |
093d3ff1 | 4160 | """Proxy of C++ ListEvent class""" |
0085ce49 RD |
4161 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4162 | __repr__ = _swig_repr | |
4163 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4164 | """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" |
0085ce49 | 4165 | _controls_.ListEvent_swiginit(self,_controls_.new_ListEvent(*args, **kwargs)) |
54f9ee45 RD |
4166 | m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set) |
4167 | m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set) | |
4168 | m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set) | |
4169 | m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set) | |
4170 | m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set) | |
4171 | m_item = property(_controls_.ListEvent_m_item_get) | |
e811c8ce | 4172 | def GetKeyCode(*args, **kwargs): |
a95a7133 | 4173 | """GetKeyCode(self) -> int""" |
54f9ee45 | 4174 | return _controls_.ListEvent_GetKeyCode(*args, **kwargs) |
e811c8ce | 4175 | |
d14a1e28 | 4176 | GetCode = GetKeyCode |
e811c8ce | 4177 | def GetIndex(*args, **kwargs): |
a95a7133 | 4178 | """GetIndex(self) -> long""" |
54f9ee45 | 4179 | return _controls_.ListEvent_GetIndex(*args, **kwargs) |
e811c8ce RD |
4180 | |
4181 | def GetColumn(*args, **kwargs): | |
a95a7133 | 4182 | """GetColumn(self) -> int""" |
54f9ee45 | 4183 | return _controls_.ListEvent_GetColumn(*args, **kwargs) |
e811c8ce RD |
4184 | |
4185 | def GetPoint(*args, **kwargs): | |
a95a7133 | 4186 | """GetPoint(self) -> Point""" |
54f9ee45 | 4187 | return _controls_.ListEvent_GetPoint(*args, **kwargs) |
e811c8ce | 4188 | |
c9c7117a | 4189 | GetPosition = GetPoint |
e811c8ce | 4190 | def GetLabel(*args, **kwargs): |
a95a7133 | 4191 | """GetLabel(self) -> String""" |
54f9ee45 | 4192 | return _controls_.ListEvent_GetLabel(*args, **kwargs) |
e811c8ce RD |
4193 | |
4194 | def GetText(*args, **kwargs): | |
a95a7133 | 4195 | """GetText(self) -> String""" |
54f9ee45 | 4196 | return _controls_.ListEvent_GetText(*args, **kwargs) |
e811c8ce RD |
4197 | |
4198 | def GetImage(*args, **kwargs): | |
a95a7133 | 4199 | """GetImage(self) -> int""" |
54f9ee45 | 4200 | return _controls_.ListEvent_GetImage(*args, **kwargs) |
e811c8ce RD |
4201 | |
4202 | def GetData(*args, **kwargs): | |
a95a7133 | 4203 | """GetData(self) -> long""" |
54f9ee45 | 4204 | return _controls_.ListEvent_GetData(*args, **kwargs) |
e811c8ce RD |
4205 | |
4206 | def GetMask(*args, **kwargs): | |
a95a7133 | 4207 | """GetMask(self) -> long""" |
54f9ee45 | 4208 | return _controls_.ListEvent_GetMask(*args, **kwargs) |
e811c8ce RD |
4209 | |
4210 | def GetItem(*args, **kwargs): | |
a95a7133 | 4211 | """GetItem(self) -> ListItem""" |
54f9ee45 | 4212 | return _controls_.ListEvent_GetItem(*args, **kwargs) |
e811c8ce RD |
4213 | |
4214 | def GetCacheFrom(*args, **kwargs): | |
a95a7133 | 4215 | """GetCacheFrom(self) -> long""" |
54f9ee45 | 4216 | return _controls_.ListEvent_GetCacheFrom(*args, **kwargs) |
e811c8ce RD |
4217 | |
4218 | def GetCacheTo(*args, **kwargs): | |
a95a7133 | 4219 | """GetCacheTo(self) -> long""" |
54f9ee45 | 4220 | return _controls_.ListEvent_GetCacheTo(*args, **kwargs) |
e811c8ce RD |
4221 | |
4222 | def IsEditCancelled(*args, **kwargs): | |
a95a7133 | 4223 | """IsEditCancelled(self) -> bool""" |
54f9ee45 | 4224 | return _controls_.ListEvent_IsEditCancelled(*args, **kwargs) |
e811c8ce RD |
4225 | |
4226 | def SetEditCanceled(*args, **kwargs): | |
a95a7133 | 4227 | """SetEditCanceled(self, bool editCancelled)""" |
54f9ee45 | 4228 | return _controls_.ListEvent_SetEditCanceled(*args, **kwargs) |
e811c8ce | 4229 | |
0085ce49 RD |
4230 | ListEvent_swigregister = _controls_.ListEvent_swigregister |
4231 | ListEvent_swigregister(ListEvent) | |
54f9ee45 RD |
4232 | |
4233 | wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
4234 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
4235 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
4236 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
4237 | wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM | |
4238 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
54f9ee45 RD |
4239 | wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED |
4240 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
4241 | wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN | |
4242 | wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM | |
4243 | wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK | |
4244 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
4245 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
4246 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
4247 | wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT | |
4248 | wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK | |
4249 | wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG | |
4250 | wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING | |
4251 | wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG | |
4252 | wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED | |
d14a1e28 RD |
4253 | EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) |
4254 | EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) | |
4255 | EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) | |
4256 | EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) | |
4257 | EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) | |
4258 | EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) | |
943e8dfd RD |
4259 | |
4260 | ||
4261 | ||
4262 | ||
d14a1e28 RD |
4263 | EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) |
4264 | EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) | |
4265 | EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) | |
4266 | EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) | |
4267 | EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) | |
4268 | EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) | |
4269 | EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) | |
4270 | EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) | |
4271 | EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) | |
4272 | EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) | |
4273 | EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) | |
4274 | EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) | |
4275 | EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) | |
4276 | EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) | |
4277 | ||
943e8dfd RD |
4278 | |
4279 | ||
4280 | ||
1fc3b23a | 4281 | |
d14a1e28 RD |
4282 | #--------------------------------------------------------------------------- |
4283 | ||
54f9ee45 | 4284 | class ListCtrl(_core.Control): |
093d3ff1 | 4285 | """Proxy of C++ ListCtrl class""" |
0085ce49 RD |
4286 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4287 | __repr__ = _swig_repr | |
4288 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4289 | """ |
a95a7133 | 4290 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4291 | Size size=DefaultSize, long style=LC_ICON, |
b2dc1044 | 4292 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl |
0df68c9f | 4293 | """ |
0085ce49 | 4294 | _controls_.ListCtrl_swiginit(self,_controls_.new_ListCtrl(*args, **kwargs)) |
d14a1e28 | 4295 | self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) |
e811c8ce RD |
4296 | |
4297 | def Create(*args, **kwargs): | |
0df68c9f | 4298 | """ |
a95a7133 | 4299 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4300 | Size size=DefaultSize, long style=LC_ICON, |
b2dc1044 | 4301 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool |
15afbcd0 RD |
4302 | |
4303 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 4304 | """ |
54f9ee45 | 4305 | return _controls_.ListCtrl_Create(*args, **kwargs) |
e811c8ce RD |
4306 | |
4307 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4308 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4309 | return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs) |
e811c8ce | 4310 | |
e811c8ce | 4311 | def GetColumn(*args, **kwargs): |
a95a7133 | 4312 | """GetColumn(self, int col) -> ListItem""" |
54f9ee45 | 4313 | val = _controls_.ListCtrl_GetColumn(*args, **kwargs) |
d14a1e28 RD |
4314 | if val is not None: val.thisown = 1 |
4315 | return val | |
e811c8ce RD |
4316 | |
4317 | def SetColumn(*args, **kwargs): | |
a95a7133 | 4318 | """SetColumn(self, int col, ListItem item) -> bool""" |
54f9ee45 | 4319 | return _controls_.ListCtrl_SetColumn(*args, **kwargs) |
e811c8ce RD |
4320 | |
4321 | def GetColumnWidth(*args, **kwargs): | |
a95a7133 | 4322 | """GetColumnWidth(self, int col) -> int""" |
54f9ee45 | 4323 | return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs) |
e811c8ce RD |
4324 | |
4325 | def SetColumnWidth(*args, **kwargs): | |
a95a7133 | 4326 | """SetColumnWidth(self, int col, int width) -> bool""" |
54f9ee45 | 4327 | return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs) |
e811c8ce RD |
4328 | |
4329 | def GetCountPerPage(*args, **kwargs): | |
a95a7133 | 4330 | """GetCountPerPage(self) -> int""" |
54f9ee45 | 4331 | return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs) |
e811c8ce RD |
4332 | |
4333 | def GetViewRect(*args, **kwargs): | |
a95a7133 | 4334 | """GetViewRect(self) -> Rect""" |
54f9ee45 | 4335 | return _controls_.ListCtrl_GetViewRect(*args, **kwargs) |
e811c8ce | 4336 | |
0085ce49 RD |
4337 | def GetEditControl(*args, **kwargs): |
4338 | """GetEditControl(self) -> TextCtrl""" | |
4339 | return _controls_.ListCtrl_GetEditControl(*args, **kwargs) | |
4340 | ||
e811c8ce | 4341 | def GetItem(*args, **kwargs): |
a95a7133 | 4342 | """GetItem(self, long itemId, int col=0) -> ListItem""" |
54f9ee45 | 4343 | val = _controls_.ListCtrl_GetItem(*args, **kwargs) |
d14a1e28 RD |
4344 | if val is not None: val.thisown = 1 |
4345 | return val | |
e811c8ce RD |
4346 | |
4347 | def SetItem(*args, **kwargs): | |
a95a7133 | 4348 | """SetItem(self, ListItem info) -> bool""" |
54f9ee45 | 4349 | return _controls_.ListCtrl_SetItem(*args, **kwargs) |
e811c8ce RD |
4350 | |
4351 | def SetStringItem(*args, **kwargs): | |
a95a7133 | 4352 | """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" |
54f9ee45 | 4353 | return _controls_.ListCtrl_SetStringItem(*args, **kwargs) |
e811c8ce RD |
4354 | |
4355 | def GetItemState(*args, **kwargs): | |
a95a7133 | 4356 | """GetItemState(self, long item, long stateMask) -> int""" |
54f9ee45 | 4357 | return _controls_.ListCtrl_GetItemState(*args, **kwargs) |
e811c8ce RD |
4358 | |
4359 | def SetItemState(*args, **kwargs): | |
a95a7133 | 4360 | """SetItemState(self, long item, long state, long stateMask) -> bool""" |
54f9ee45 | 4361 | return _controls_.ListCtrl_SetItemState(*args, **kwargs) |
e811c8ce RD |
4362 | |
4363 | def SetItemImage(*args, **kwargs): | |
1fc3b23a | 4364 | """SetItemImage(self, long item, int image, int selImage=-1) -> bool""" |
54f9ee45 | 4365 | return _controls_.ListCtrl_SetItemImage(*args, **kwargs) |
e811c8ce | 4366 | |
0085ce49 RD |
4367 | def SetItemColumnImage(*args, **kwargs): |
4368 | """SetItemColumnImage(self, long item, long column, int image) -> bool""" | |
4369 | return _controls_.ListCtrl_SetItemColumnImage(*args, **kwargs) | |
4370 | ||
e811c8ce | 4371 | def GetItemText(*args, **kwargs): |
a95a7133 | 4372 | """GetItemText(self, long item) -> String""" |
54f9ee45 | 4373 | return _controls_.ListCtrl_GetItemText(*args, **kwargs) |
e811c8ce RD |
4374 | |
4375 | def SetItemText(*args, **kwargs): | |
a95a7133 | 4376 | """SetItemText(self, long item, String str)""" |
54f9ee45 | 4377 | return _controls_.ListCtrl_SetItemText(*args, **kwargs) |
e811c8ce RD |
4378 | |
4379 | def GetItemData(*args, **kwargs): | |
a95a7133 | 4380 | """GetItemData(self, long item) -> long""" |
54f9ee45 | 4381 | return _controls_.ListCtrl_GetItemData(*args, **kwargs) |
e811c8ce RD |
4382 | |
4383 | def SetItemData(*args, **kwargs): | |
a95a7133 | 4384 | """SetItemData(self, long item, long data) -> bool""" |
54f9ee45 | 4385 | return _controls_.ListCtrl_SetItemData(*args, **kwargs) |
e811c8ce RD |
4386 | |
4387 | def GetItemPosition(*args, **kwargs): | |
a95a7133 | 4388 | """GetItemPosition(self, long item) -> Point""" |
54f9ee45 | 4389 | return _controls_.ListCtrl_GetItemPosition(*args, **kwargs) |
e811c8ce RD |
4390 | |
4391 | def GetItemRect(*args, **kwargs): | |
a95a7133 | 4392 | """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" |
54f9ee45 | 4393 | return _controls_.ListCtrl_GetItemRect(*args, **kwargs) |
e811c8ce RD |
4394 | |
4395 | def SetItemPosition(*args, **kwargs): | |
a95a7133 | 4396 | """SetItemPosition(self, long item, Point pos) -> bool""" |
54f9ee45 | 4397 | return _controls_.ListCtrl_SetItemPosition(*args, **kwargs) |
e811c8ce RD |
4398 | |
4399 | def GetItemCount(*args, **kwargs): | |
a95a7133 | 4400 | """GetItemCount(self) -> int""" |
54f9ee45 | 4401 | return _controls_.ListCtrl_GetItemCount(*args, **kwargs) |
e811c8ce RD |
4402 | |
4403 | def GetColumnCount(*args, **kwargs): | |
a95a7133 | 4404 | """GetColumnCount(self) -> int""" |
54f9ee45 | 4405 | return _controls_.ListCtrl_GetColumnCount(*args, **kwargs) |
e811c8ce RD |
4406 | |
4407 | def GetItemSpacing(*args, **kwargs): | |
a95a7133 | 4408 | """GetItemSpacing(self) -> Size""" |
54f9ee45 | 4409 | return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) |
e811c8ce | 4410 | |
e9d6f3a4 | 4411 | GetItemSpacing = wx._deprecated(GetItemSpacing) |
e811c8ce | 4412 | def SetItemSpacing(*args, **kwargs): |
a95a7133 | 4413 | """SetItemSpacing(self, int spacing, bool isSmall=False)""" |
54f9ee45 | 4414 | return _controls_.ListCtrl_SetItemSpacing(*args, **kwargs) |
e811c8ce | 4415 | |
e9d6f3a4 | 4416 | SetItemSpacing = wx._deprecated(SetItemSpacing) |
e811c8ce | 4417 | def GetSelectedItemCount(*args, **kwargs): |
a95a7133 | 4418 | """GetSelectedItemCount(self) -> int""" |
54f9ee45 | 4419 | return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) |
e811c8ce RD |
4420 | |
4421 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 4422 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 4423 | return _controls_.ListCtrl_GetTextColour(*args, **kwargs) |
e811c8ce RD |
4424 | |
4425 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 4426 | """SetTextColour(self, Colour col)""" |
54f9ee45 | 4427 | return _controls_.ListCtrl_SetTextColour(*args, **kwargs) |
e811c8ce RD |
4428 | |
4429 | def GetTopItem(*args, **kwargs): | |
a95a7133 | 4430 | """GetTopItem(self) -> long""" |
54f9ee45 | 4431 | return _controls_.ListCtrl_GetTopItem(*args, **kwargs) |
e811c8ce RD |
4432 | |
4433 | def SetSingleStyle(*args, **kwargs): | |
a95a7133 | 4434 | """SetSingleStyle(self, long style, bool add=True)""" |
54f9ee45 | 4435 | return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs) |
e811c8ce | 4436 | |
e811c8ce | 4437 | def GetNextItem(*args, **kwargs): |
a95a7133 | 4438 | """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" |
54f9ee45 | 4439 | return _controls_.ListCtrl_GetNextItem(*args, **kwargs) |
e811c8ce RD |
4440 | |
4441 | def GetImageList(*args, **kwargs): | |
a95a7133 | 4442 | """GetImageList(self, int which) -> ImageList""" |
54f9ee45 | 4443 | return _controls_.ListCtrl_GetImageList(*args, **kwargs) |
e811c8ce RD |
4444 | |
4445 | def SetImageList(*args, **kwargs): | |
a95a7133 | 4446 | """SetImageList(self, ImageList imageList, int which)""" |
54f9ee45 | 4447 | return _controls_.ListCtrl_SetImageList(*args, **kwargs) |
e811c8ce RD |
4448 | |
4449 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 4450 | """AssignImageList(self, ImageList imageList, int which)""" |
54f9ee45 | 4451 | return _controls_.ListCtrl_AssignImageList(*args, **kwargs) |
e811c8ce | 4452 | |
4276dc52 | 4453 | def InReportView(*args, **kwargs): |
a95a7133 | 4454 | """InReportView(self) -> bool""" |
54f9ee45 | 4455 | return _controls_.ListCtrl_InReportView(*args, **kwargs) |
4276dc52 | 4456 | |
e811c8ce | 4457 | def IsVirtual(*args, **kwargs): |
a95a7133 | 4458 | """IsVirtual(self) -> bool""" |
54f9ee45 | 4459 | return _controls_.ListCtrl_IsVirtual(*args, **kwargs) |
e811c8ce RD |
4460 | |
4461 | def RefreshItem(*args, **kwargs): | |
a95a7133 | 4462 | """RefreshItem(self, long item)""" |
54f9ee45 | 4463 | return _controls_.ListCtrl_RefreshItem(*args, **kwargs) |
e811c8ce RD |
4464 | |
4465 | def RefreshItems(*args, **kwargs): | |
a95a7133 | 4466 | """RefreshItems(self, long itemFrom, long itemTo)""" |
54f9ee45 | 4467 | return _controls_.ListCtrl_RefreshItems(*args, **kwargs) |
e811c8ce RD |
4468 | |
4469 | def Arrange(*args, **kwargs): | |
a95a7133 | 4470 | """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" |
54f9ee45 | 4471 | return _controls_.ListCtrl_Arrange(*args, **kwargs) |
e811c8ce RD |
4472 | |
4473 | def DeleteItem(*args, **kwargs): | |
a95a7133 | 4474 | """DeleteItem(self, long item) -> bool""" |
54f9ee45 | 4475 | return _controls_.ListCtrl_DeleteItem(*args, **kwargs) |
e811c8ce RD |
4476 | |
4477 | def DeleteAllItems(*args, **kwargs): | |
a95a7133 | 4478 | """DeleteAllItems(self) -> bool""" |
54f9ee45 | 4479 | return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs) |
e811c8ce RD |
4480 | |
4481 | def DeleteColumn(*args, **kwargs): | |
a95a7133 | 4482 | """DeleteColumn(self, int col) -> bool""" |
54f9ee45 | 4483 | return _controls_.ListCtrl_DeleteColumn(*args, **kwargs) |
e811c8ce RD |
4484 | |
4485 | def DeleteAllColumns(*args, **kwargs): | |
a95a7133 | 4486 | """DeleteAllColumns(self) -> bool""" |
54f9ee45 | 4487 | return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs) |
e811c8ce RD |
4488 | |
4489 | def ClearAll(*args, **kwargs): | |
a95a7133 | 4490 | """ClearAll(self)""" |
54f9ee45 | 4491 | return _controls_.ListCtrl_ClearAll(*args, **kwargs) |
e811c8ce RD |
4492 | |
4493 | def EditLabel(*args, **kwargs): | |
a95a7133 | 4494 | """EditLabel(self, long item)""" |
54f9ee45 | 4495 | return _controls_.ListCtrl_EditLabel(*args, **kwargs) |
e811c8ce RD |
4496 | |
4497 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 4498 | """EnsureVisible(self, long item) -> bool""" |
54f9ee45 | 4499 | return _controls_.ListCtrl_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
4500 | |
4501 | def FindItem(*args, **kwargs): | |
a95a7133 | 4502 | """FindItem(self, long start, String str, bool partial=False) -> long""" |
54f9ee45 | 4503 | return _controls_.ListCtrl_FindItem(*args, **kwargs) |
e811c8ce RD |
4504 | |
4505 | def FindItemData(*args, **kwargs): | |
a95a7133 | 4506 | """FindItemData(self, long start, long data) -> long""" |
54f9ee45 | 4507 | return _controls_.ListCtrl_FindItemData(*args, **kwargs) |
e811c8ce RD |
4508 | |
4509 | def FindItemAtPos(*args, **kwargs): | |
a95a7133 | 4510 | """FindItemAtPos(self, long start, Point pt, int direction) -> long""" |
54f9ee45 | 4511 | return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs) |
e811c8ce RD |
4512 | |
4513 | def HitTest(*args, **kwargs): | |
fd2dc343 RD |
4514 | """ |
4515 | HitTest(Point point) -> (item, where) | |
4516 | ||
4517 | Determines which item (if any) is at the specified point, giving | |
53aa7709 | 4518 | in the second return value (see wx.LIST_HITTEST flags.) |
fd2dc343 | 4519 | """ |
54f9ee45 | 4520 | return _controls_.ListCtrl_HitTest(*args, **kwargs) |
e811c8ce RD |
4521 | |
4522 | def InsertItem(*args, **kwargs): | |
a95a7133 | 4523 | """InsertItem(self, ListItem info) -> long""" |
54f9ee45 | 4524 | return _controls_.ListCtrl_InsertItem(*args, **kwargs) |
e811c8ce RD |
4525 | |
4526 | def InsertStringItem(*args, **kwargs): | |
32fe5131 | 4527 | """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long""" |
54f9ee45 | 4528 | return _controls_.ListCtrl_InsertStringItem(*args, **kwargs) |
e811c8ce RD |
4529 | |
4530 | def InsertImageItem(*args, **kwargs): | |
a95a7133 | 4531 | """InsertImageItem(self, long index, int imageIndex) -> long""" |
54f9ee45 | 4532 | return _controls_.ListCtrl_InsertImageItem(*args, **kwargs) |
e811c8ce RD |
4533 | |
4534 | def InsertImageStringItem(*args, **kwargs): | |
a95a7133 | 4535 | """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" |
54f9ee45 | 4536 | return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs) |
e811c8ce | 4537 | |
a3957d3d RD |
4538 | def InsertColumnItem(*args, **kwargs): |
4539 | """InsertColumnItem(self, long col, ListItem info) -> long""" | |
4540 | return _controls_.ListCtrl_InsertColumnItem(*args, **kwargs) | |
e811c8ce | 4541 | |
a3957d3d | 4542 | InsertColumnInfo = InsertColumnItem |
e811c8ce | 4543 | def InsertColumn(*args, **kwargs): |
0df68c9f | 4544 | """ |
a95a7133 | 4545 | InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, |
0df68c9f RD |
4546 | int width=-1) -> long |
4547 | """ | |
54f9ee45 | 4548 | return _controls_.ListCtrl_InsertColumn(*args, **kwargs) |
e811c8ce RD |
4549 | |
4550 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 4551 | """SetItemCount(self, long count)""" |
54f9ee45 | 4552 | return _controls_.ListCtrl_SetItemCount(*args, **kwargs) |
e811c8ce RD |
4553 | |
4554 | def ScrollList(*args, **kwargs): | |
a95a7133 | 4555 | """ScrollList(self, int dx, int dy) -> bool""" |
54f9ee45 | 4556 | return _controls_.ListCtrl_ScrollList(*args, **kwargs) |
e811c8ce RD |
4557 | |
4558 | def SetItemTextColour(*args, **kwargs): | |
a95a7133 | 4559 | """SetItemTextColour(self, long item, Colour col)""" |
54f9ee45 | 4560 | return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs) |
e811c8ce RD |
4561 | |
4562 | def GetItemTextColour(*args, **kwargs): | |
a95a7133 | 4563 | """GetItemTextColour(self, long item) -> Colour""" |
54f9ee45 | 4564 | return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs) |
e811c8ce RD |
4565 | |
4566 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 4567 | """SetItemBackgroundColour(self, long item, Colour col)""" |
54f9ee45 | 4568 | return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4569 | |
4570 | def GetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 4571 | """GetItemBackgroundColour(self, long item) -> Colour""" |
54f9ee45 | 4572 | return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs) |
e811c8ce | 4573 | |
943e8dfd RD |
4574 | def SetItemFont(*args, **kwargs): |
4575 | """SetItemFont(self, long item, Font f)""" | |
4576 | return _controls_.ListCtrl_SetItemFont(*args, **kwargs) | |
4577 | ||
4578 | def GetItemFont(*args, **kwargs): | |
4579 | """GetItemFont(self, long item) -> Font""" | |
4580 | return _controls_.ListCtrl_GetItemFont(*args, **kwargs) | |
4581 | ||
d14a1e28 RD |
4582 | # |
4583 | # Some helpers... | |
4584 | def Select(self, idx, on=1): | |
4585 | '''[de]select an item''' | |
e811c8ce | 4586 | if on: state = wx.LIST_STATE_SELECTED |
d14a1e28 | 4587 | else: state = 0 |
e811c8ce | 4588 | self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) |
d14a1e28 RD |
4589 | |
4590 | def Focus(self, idx): | |
4591 | '''Focus and show the given item''' | |
e811c8ce | 4592 | self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) |
d14a1e28 RD |
4593 | self.EnsureVisible(idx) |
4594 | ||
4595 | def GetFocusedItem(self): | |
4596 | '''get the currently focused item or -1 if none''' | |
e811c8ce | 4597 | return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) |
d14a1e28 RD |
4598 | |
4599 | def GetFirstSelected(self, *args): | |
4600 | '''return first selected item, or -1 when none''' | |
4601 | return self.GetNextSelected(-1) | |
4602 | ||
4603 | def GetNextSelected(self, item): | |
4604 | '''return subsequent selected items, or -1 when no more''' | |
e811c8ce | 4605 | return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) |
d14a1e28 RD |
4606 | |
4607 | def IsSelected(self, idx): | |
e811c8ce | 4608 | '''return True if the item is selected''' |
38aff7bb | 4609 | return (self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED) != 0 |
d14a1e28 RD |
4610 | |
4611 | def SetColumnImage(self, col, image): | |
4612 | item = self.GetColumn(col) | |
e811c8ce RD |
4613 | # preserve all other attributes too |
4614 | item.SetMask( wx.LIST_MASK_STATE | | |
4615 | wx.LIST_MASK_TEXT | | |
4616 | wx.LIST_MASK_IMAGE | | |
4617 | wx.LIST_MASK_DATA | | |
4618 | wx.LIST_SET_ITEM | | |
4619 | wx.LIST_MASK_WIDTH | | |
4620 | wx.LIST_MASK_FORMAT ) | |
d14a1e28 RD |
4621 | item.SetImage(image) |
4622 | self.SetColumn(col, item) | |
4623 | ||
4624 | def ClearColumnImage(self, col): | |
4625 | self.SetColumnImage(col, -1) | |
4626 | ||
4627 | def Append(self, entry): | |
4628 | '''Append an item to the list control. The entry parameter should be a | |
4629 | sequence with an item for each column''' | |
4630 | if len(entry): | |
e811c8ce | 4631 | if wx.USE_UNICODE: |
d14a1e28 RD |
4632 | cvtfunc = unicode |
4633 | else: | |
4634 | cvtfunc = str | |
4635 | pos = self.GetItemCount() | |
4636 | self.InsertStringItem(pos, cvtfunc(entry[0])) | |
4637 | for i in range(1, len(entry)): | |
4638 | self.SetStringItem(pos, i, cvtfunc(entry[i])) | |
4639 | return pos | |
4640 | ||
e811c8ce | 4641 | def SortItems(*args, **kwargs): |
a95a7133 | 4642 | """SortItems(self, PyObject func) -> bool""" |
54f9ee45 | 4643 | return _controls_.ListCtrl_SortItems(*args, **kwargs) |
e811c8ce RD |
4644 | |
4645 | def GetMainWindow(*args, **kwargs): | |
a95a7133 | 4646 | """GetMainWindow(self) -> Window""" |
54f9ee45 | 4647 | return _controls_.ListCtrl_GetMainWindow(*args, **kwargs) |
e811c8ce | 4648 | |
74a57fcd | 4649 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
4650 | """ |
4651 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4652 | ||
4653 | Get the default attributes for this class. This is useful if you want | |
4654 | to use the same font or colour in your own control as in a standard | |
4655 | control -- which is a much better idea than hard coding specific | |
4656 | colours or fonts which might look completely out of place on the | |
4657 | user's system, especially if it uses themes. | |
4658 | ||
4659 | The variant parameter is only relevant under Mac currently and is | |
4660 | ignore under other platforms. Under Mac, it will change the size of | |
4661 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4662 | this. | |
4663 | """ | |
54f9ee45 | 4664 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
4665 | |
4666 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
4667 | ListCtrl_swigregister = _controls_.ListCtrl_swigregister |
4668 | ListCtrl_swigregister(ListCtrl) | |
70551f47 | 4669 | |
d14a1e28 | 4670 | def PreListCtrl(*args, **kwargs): |
e811c8ce | 4671 | """PreListCtrl() -> ListCtrl""" |
54f9ee45 | 4672 | val = _controls_.new_PreListCtrl(*args, **kwargs) |
aa2a5b86 RD |
4673 | return val |
4674 | ||
74a57fcd | 4675 | def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 4676 | """ |
110da5b0 RD |
4677 | ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
4678 | ||
4679 | Get the default attributes for this class. This is useful if you want | |
4680 | to use the same font or colour in your own control as in a standard | |
4681 | control -- which is a much better idea than hard coding specific | |
4682 | colours or fonts which might look completely out of place on the | |
4683 | user's system, especially if it uses themes. | |
4684 | ||
4685 | The variant parameter is only relevant under Mac currently and is | |
4686 | ignore under other platforms. Under Mac, it will change the size of | |
4687 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4688 | this. | |
4689 | """ | |
0085ce49 | 4690 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 4691 | |
d14a1e28 | 4692 | #--------------------------------------------------------------------------- |
70551f47 | 4693 | |
d14a1e28 | 4694 | class ListView(ListCtrl): |
093d3ff1 | 4695 | """Proxy of C++ ListView class""" |
0085ce49 RD |
4696 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4697 | __repr__ = _swig_repr | |
4698 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4699 | """ |
a95a7133 | 4700 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4701 | Size size=DefaultSize, long style=LC_REPORT, |
b2dc1044 | 4702 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView |
0df68c9f | 4703 | """ |
0085ce49 | 4704 | _controls_.ListView_swiginit(self,_controls_.new_ListView(*args, **kwargs)) |
0220cbc1 | 4705 | self._setOORInfo(self) |
e811c8ce RD |
4706 | |
4707 | def Create(*args, **kwargs): | |
0df68c9f | 4708 | """ |
a95a7133 | 4709 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4710 | Size size=DefaultSize, long style=LC_REPORT, |
b2dc1044 | 4711 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool |
15afbcd0 RD |
4712 | |
4713 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 4714 | """ |
54f9ee45 | 4715 | return _controls_.ListView_Create(*args, **kwargs) |
e811c8ce RD |
4716 | |
4717 | def Select(*args, **kwargs): | |
a95a7133 | 4718 | """Select(self, long n, bool on=True)""" |
54f9ee45 | 4719 | return _controls_.ListView_Select(*args, **kwargs) |
e811c8ce RD |
4720 | |
4721 | def Focus(*args, **kwargs): | |
a95a7133 | 4722 | """Focus(self, long index)""" |
54f9ee45 | 4723 | return _controls_.ListView_Focus(*args, **kwargs) |
e811c8ce RD |
4724 | |
4725 | def GetFocusedItem(*args, **kwargs): | |
a95a7133 | 4726 | """GetFocusedItem(self) -> long""" |
54f9ee45 | 4727 | return _controls_.ListView_GetFocusedItem(*args, **kwargs) |
e811c8ce RD |
4728 | |
4729 | def GetNextSelected(*args, **kwargs): | |
a95a7133 | 4730 | """GetNextSelected(self, long item) -> long""" |
54f9ee45 | 4731 | return _controls_.ListView_GetNextSelected(*args, **kwargs) |
e811c8ce RD |
4732 | |
4733 | def GetFirstSelected(*args, **kwargs): | |
a95a7133 | 4734 | """GetFirstSelected(self) -> long""" |
54f9ee45 | 4735 | return _controls_.ListView_GetFirstSelected(*args, **kwargs) |
e811c8ce RD |
4736 | |
4737 | def IsSelected(*args, **kwargs): | |
a95a7133 | 4738 | """IsSelected(self, long index) -> bool""" |
54f9ee45 | 4739 | return _controls_.ListView_IsSelected(*args, **kwargs) |
e811c8ce RD |
4740 | |
4741 | def SetColumnImage(*args, **kwargs): | |
a95a7133 | 4742 | """SetColumnImage(self, int col, int image)""" |
54f9ee45 | 4743 | return _controls_.ListView_SetColumnImage(*args, **kwargs) |
e811c8ce RD |
4744 | |
4745 | def ClearColumnImage(*args, **kwargs): | |
a95a7133 | 4746 | """ClearColumnImage(self, int col)""" |
54f9ee45 | 4747 | return _controls_.ListView_ClearColumnImage(*args, **kwargs) |
e811c8ce | 4748 | |
0085ce49 RD |
4749 | ListView_swigregister = _controls_.ListView_swigregister |
4750 | ListView_swigregister(ListView) | |
f6bcfd97 | 4751 | |
d14a1e28 | 4752 | def PreListView(*args, **kwargs): |
e811c8ce | 4753 | """PreListView() -> ListView""" |
54f9ee45 | 4754 | val = _controls_.new_PreListView(*args, **kwargs) |
aa2a5b86 RD |
4755 | return val |
4756 | ||
d14a1e28 RD |
4757 | #--------------------------------------------------------------------------- |
4758 | ||
54f9ee45 RD |
4759 | TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS |
4760 | TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS | |
4761 | TR_NO_LINES = _controls_.TR_NO_LINES | |
4762 | TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT | |
4763 | TR_SINGLE = _controls_.TR_SINGLE | |
4764 | TR_MULTIPLE = _controls_.TR_MULTIPLE | |
4765 | TR_EXTENDED = _controls_.TR_EXTENDED | |
4766 | TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT | |
4767 | TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS | |
4768 | TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT | |
4769 | TR_ROW_LINES = _controls_.TR_ROW_LINES | |
4770 | TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT | |
4771 | TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE | |
4772 | TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS | |
e9d6f3a4 RD |
4773 | # obsolete |
4774 | TR_MAC_BUTTONS = 0 | |
4775 | wxTR_AQUA_BUTTONS = 0 | |
4776 | ||
54f9ee45 RD |
4777 | TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal |
4778 | TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected | |
4779 | TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded | |
4780 | TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded | |
4781 | TreeItemIcon_Max = _controls_.TreeItemIcon_Max | |
4782 | TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE | |
4783 | TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW | |
4784 | TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE | |
4785 | TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON | |
4786 | TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON | |
4787 | TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT | |
4788 | TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL | |
4789 | TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT | |
4790 | TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON | |
4791 | TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT | |
4792 | TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT | |
4793 | TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART | |
4794 | TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART | |
4795 | TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM | |
d14a1e28 RD |
4796 | #--------------------------------------------------------------------------- |
4797 | ||
4798 | class TreeItemId(object): | |
093d3ff1 | 4799 | """Proxy of C++ TreeItemId class""" |
0085ce49 RD |
4800 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4801 | __repr__ = _swig_repr | |
4802 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4803 | """__init__(self) -> TreeItemId""" |
0085ce49 RD |
4804 | _controls_.TreeItemId_swiginit(self,_controls_.new_TreeItemId(*args, **kwargs)) |
4805 | __swig_destroy__ = _controls_.delete_TreeItemId | |
4806 | __del__ = lambda self : None; | |
e811c8ce | 4807 | def IsOk(*args, **kwargs): |
a95a7133 | 4808 | """IsOk(self) -> bool""" |
54f9ee45 | 4809 | return _controls_.TreeItemId_IsOk(*args, **kwargs) |
e811c8ce RD |
4810 | |
4811 | def __eq__(*args, **kwargs): | |
a95a7133 | 4812 | """__eq__(self, TreeItemId other) -> bool""" |
54f9ee45 | 4813 | return _controls_.TreeItemId___eq__(*args, **kwargs) |
e811c8ce RD |
4814 | |
4815 | def __ne__(*args, **kwargs): | |
a95a7133 | 4816 | """__ne__(self, TreeItemId other) -> bool""" |
54f9ee45 | 4817 | return _controls_.TreeItemId___ne__(*args, **kwargs) |
e811c8ce | 4818 | |
54f9ee45 | 4819 | m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set) |
d14a1e28 RD |
4820 | Ok = IsOk |
4821 | def __nonzero__(self): return self.IsOk() | |
0085ce49 RD |
4822 | TreeItemId_swigregister = _controls_.TreeItemId_swigregister |
4823 | TreeItemId_swigregister(TreeItemId) | |
b2dc1044 | 4824 | TreeCtrlNameStr = cvar.TreeCtrlNameStr |
d14a1e28 RD |
4825 | |
4826 | class TreeItemData(object): | |
093d3ff1 | 4827 | """Proxy of C++ TreeItemData class""" |
0085ce49 RD |
4828 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4829 | __repr__ = _swig_repr | |
4830 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4831 | """__init__(self, PyObject obj=None) -> TreeItemData""" |
0085ce49 RD |
4832 | _controls_.TreeItemData_swiginit(self,_controls_.new_TreeItemData(*args, **kwargs)) |
4833 | __swig_destroy__ = _controls_.delete_TreeItemData | |
4834 | __del__ = lambda self : None; | |
e811c8ce | 4835 | def GetData(*args, **kwargs): |
a95a7133 | 4836 | """GetData(self) -> PyObject""" |
54f9ee45 | 4837 | return _controls_.TreeItemData_GetData(*args, **kwargs) |
e811c8ce RD |
4838 | |
4839 | def SetData(*args, **kwargs): | |
a95a7133 | 4840 | """SetData(self, PyObject obj)""" |
54f9ee45 | 4841 | return _controls_.TreeItemData_SetData(*args, **kwargs) |
e811c8ce RD |
4842 | |
4843 | def GetId(*args, **kwargs): | |
a95a7133 | 4844 | """GetId(self) -> TreeItemId""" |
54f9ee45 | 4845 | return _controls_.TreeItemData_GetId(*args, **kwargs) |
e811c8ce RD |
4846 | |
4847 | def SetId(*args, **kwargs): | |
a95a7133 | 4848 | """SetId(self, TreeItemId id)""" |
54f9ee45 | 4849 | return _controls_.TreeItemData_SetId(*args, **kwargs) |
e811c8ce RD |
4850 | |
4851 | def Destroy(*args, **kwargs): | |
a95a7133 | 4852 | """Destroy(self)""" |
7e08d4ef RD |
4853 | val = _controls_.TreeItemData_Destroy(*args, **kwargs) |
4854 | args[0].thisown = 0 | |
4855 | return val | |
e811c8ce | 4856 | |
0085ce49 RD |
4857 | TreeItemData_swigregister = _controls_.TreeItemData_swigregister |
4858 | TreeItemData_swigregister(TreeItemData) | |
d14a1e28 RD |
4859 | |
4860 | #--------------------------------------------------------------------------- | |
4861 | ||
54f9ee45 RD |
4862 | wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG |
4863 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
4864 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
4865 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
4866 | wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM | |
4867 | wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO | |
4868 | wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO | |
4869 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
4870 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
4871 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
4872 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
4873 | wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED | |
4874 | wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING | |
4875 | wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN | |
4876 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
4877 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
4878 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
4879 | wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG | |
4880 | wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK | |
4881 | wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP | |
e505d15e | 4882 | wxEVT_COMMAND_TREE_ITEM_MENU = _controls_.wxEVT_COMMAND_TREE_ITEM_MENU |
d14a1e28 RD |
4883 | EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) |
4884 | EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) | |
4885 | EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) | |
4886 | EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) | |
4887 | EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) | |
4888 | EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) | |
4889 | EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) | |
4890 | EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) | |
4891 | EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) | |
4892 | EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) | |
4893 | EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) | |
4894 | EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) | |
4895 | EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) | |
4896 | EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) | |
4897 | EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) | |
4898 | EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) | |
4899 | EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) | |
4900 | EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) | |
4901 | EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) | |
c9c7117a | 4902 | EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) |
a3957d3d | 4903 | EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, 1) |
d14a1e28 | 4904 | |
54f9ee45 | 4905 | class TreeEvent(_core.NotifyEvent): |
093d3ff1 | 4906 | """Proxy of C++ TreeEvent class""" |
0085ce49 RD |
4907 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4908 | __repr__ = _swig_repr | |
4909 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4910 | """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" |
0085ce49 | 4911 | _controls_.TreeEvent_swiginit(self,_controls_.new_TreeEvent(*args, **kwargs)) |
e811c8ce | 4912 | def GetItem(*args, **kwargs): |
a95a7133 | 4913 | """GetItem(self) -> TreeItemId""" |
54f9ee45 | 4914 | return _controls_.TreeEvent_GetItem(*args, **kwargs) |
e811c8ce RD |
4915 | |
4916 | def SetItem(*args, **kwargs): | |
a95a7133 | 4917 | """SetItem(self, TreeItemId item)""" |
54f9ee45 | 4918 | return _controls_.TreeEvent_SetItem(*args, **kwargs) |
e811c8ce RD |
4919 | |
4920 | def GetOldItem(*args, **kwargs): | |
a95a7133 | 4921 | """GetOldItem(self) -> TreeItemId""" |
54f9ee45 | 4922 | return _controls_.TreeEvent_GetOldItem(*args, **kwargs) |
e811c8ce RD |
4923 | |
4924 | def SetOldItem(*args, **kwargs): | |
a95a7133 | 4925 | """SetOldItem(self, TreeItemId item)""" |
54f9ee45 | 4926 | return _controls_.TreeEvent_SetOldItem(*args, **kwargs) |
e811c8ce RD |
4927 | |
4928 | def GetPoint(*args, **kwargs): | |
a95a7133 | 4929 | """GetPoint(self) -> Point""" |
54f9ee45 | 4930 | return _controls_.TreeEvent_GetPoint(*args, **kwargs) |
e811c8ce RD |
4931 | |
4932 | def SetPoint(*args, **kwargs): | |
a95a7133 | 4933 | """SetPoint(self, Point pt)""" |
54f9ee45 | 4934 | return _controls_.TreeEvent_SetPoint(*args, **kwargs) |
e811c8ce RD |
4935 | |
4936 | def GetKeyEvent(*args, **kwargs): | |
a95a7133 | 4937 | """GetKeyEvent(self) -> KeyEvent""" |
54f9ee45 | 4938 | return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs) |
e811c8ce RD |
4939 | |
4940 | def GetKeyCode(*args, **kwargs): | |
a95a7133 | 4941 | """GetKeyCode(self) -> int""" |
54f9ee45 | 4942 | return _controls_.TreeEvent_GetKeyCode(*args, **kwargs) |
e811c8ce RD |
4943 | |
4944 | def SetKeyEvent(*args, **kwargs): | |
a95a7133 | 4945 | """SetKeyEvent(self, KeyEvent evt)""" |
54f9ee45 | 4946 | return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs) |
e811c8ce RD |
4947 | |
4948 | def GetLabel(*args, **kwargs): | |
a95a7133 | 4949 | """GetLabel(self) -> String""" |
54f9ee45 | 4950 | return _controls_.TreeEvent_GetLabel(*args, **kwargs) |
e811c8ce RD |
4951 | |
4952 | def SetLabel(*args, **kwargs): | |
a95a7133 | 4953 | """SetLabel(self, String label)""" |
54f9ee45 | 4954 | return _controls_.TreeEvent_SetLabel(*args, **kwargs) |
e811c8ce RD |
4955 | |
4956 | def IsEditCancelled(*args, **kwargs): | |
a95a7133 | 4957 | """IsEditCancelled(self) -> bool""" |
54f9ee45 | 4958 | return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs) |
e811c8ce RD |
4959 | |
4960 | def SetEditCanceled(*args, **kwargs): | |
a95a7133 | 4961 | """SetEditCanceled(self, bool editCancelled)""" |
54f9ee45 | 4962 | return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs) |
e811c8ce | 4963 | |
c9c7117a | 4964 | def SetToolTip(*args, **kwargs): |
a95a7133 | 4965 | """SetToolTip(self, String toolTip)""" |
54f9ee45 | 4966 | return _controls_.TreeEvent_SetToolTip(*args, **kwargs) |
c9c7117a | 4967 | |
562ecc31 RD |
4968 | def GetToolTip(*args, **kwargs): |
4969 | """GetToolTip(self) -> String""" | |
4970 | return _controls_.TreeEvent_GetToolTip(*args, **kwargs) | |
4971 | ||
0085ce49 RD |
4972 | TreeEvent_swigregister = _controls_.TreeEvent_swigregister |
4973 | TreeEvent_swigregister(TreeEvent) | |
d14a1e28 RD |
4974 | |
4975 | #--------------------------------------------------------------------------- | |
70551f47 | 4976 | |
54f9ee45 | 4977 | class TreeCtrl(_core.Control): |
093d3ff1 | 4978 | """Proxy of C++ TreeCtrl class""" |
0085ce49 RD |
4979 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4980 | __repr__ = _swig_repr | |
4981 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4982 | """ |
a95a7133 | 4983 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
4984 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, |
4985 | Validator validator=DefaultValidator, | |
b2dc1044 | 4986 | String name=TreeCtrlNameStr) -> TreeCtrl |
0df68c9f | 4987 | """ |
0085ce49 | 4988 | _controls_.TreeCtrl_swiginit(self,_controls_.new_TreeCtrl(*args, **kwargs)) |
d14a1e28 | 4989 | self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) |
e811c8ce RD |
4990 | |
4991 | def Create(*args, **kwargs): | |
0df68c9f | 4992 | """ |
a95a7133 | 4993 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
4994 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, |
4995 | Validator validator=DefaultValidator, | |
b2dc1044 | 4996 | String name=TreeCtrlNameStr) -> bool |
15afbcd0 RD |
4997 | |
4998 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 4999 | """ |
54f9ee45 | 5000 | return _controls_.TreeCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5001 | |
5002 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5003 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5004 | return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
5005 | |
5006 | def GetCount(*args, **kwargs): | |
e9d6f3a4 | 5007 | """GetCount(self) -> unsigned int""" |
54f9ee45 | 5008 | return _controls_.TreeCtrl_GetCount(*args, **kwargs) |
e811c8ce RD |
5009 | |
5010 | def GetIndent(*args, **kwargs): | |
a95a7133 | 5011 | """GetIndent(self) -> unsigned int""" |
54f9ee45 | 5012 | return _controls_.TreeCtrl_GetIndent(*args, **kwargs) |
e811c8ce RD |
5013 | |
5014 | def SetIndent(*args, **kwargs): | |
a95a7133 | 5015 | """SetIndent(self, unsigned int indent)""" |
54f9ee45 | 5016 | return _controls_.TreeCtrl_SetIndent(*args, **kwargs) |
e811c8ce RD |
5017 | |
5018 | def GetSpacing(*args, **kwargs): | |
a95a7133 | 5019 | """GetSpacing(self) -> unsigned int""" |
54f9ee45 | 5020 | return _controls_.TreeCtrl_GetSpacing(*args, **kwargs) |
e811c8ce RD |
5021 | |
5022 | def SetSpacing(*args, **kwargs): | |
a95a7133 | 5023 | """SetSpacing(self, unsigned int spacing)""" |
54f9ee45 | 5024 | return _controls_.TreeCtrl_SetSpacing(*args, **kwargs) |
e811c8ce RD |
5025 | |
5026 | def GetImageList(*args, **kwargs): | |
a95a7133 | 5027 | """GetImageList(self) -> ImageList""" |
54f9ee45 | 5028 | return _controls_.TreeCtrl_GetImageList(*args, **kwargs) |
e811c8ce RD |
5029 | |
5030 | def GetStateImageList(*args, **kwargs): | |
a95a7133 | 5031 | """GetStateImageList(self) -> ImageList""" |
54f9ee45 | 5032 | return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs) |
e811c8ce RD |
5033 | |
5034 | def SetImageList(*args, **kwargs): | |
a95a7133 | 5035 | """SetImageList(self, ImageList imageList)""" |
54f9ee45 | 5036 | return _controls_.TreeCtrl_SetImageList(*args, **kwargs) |
e811c8ce RD |
5037 | |
5038 | def SetStateImageList(*args, **kwargs): | |
a95a7133 | 5039 | """SetStateImageList(self, ImageList imageList)""" |
54f9ee45 | 5040 | return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs) |
e811c8ce RD |
5041 | |
5042 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 5043 | """AssignImageList(self, ImageList imageList)""" |
54f9ee45 | 5044 | return _controls_.TreeCtrl_AssignImageList(*args, **kwargs) |
e811c8ce RD |
5045 | |
5046 | def AssignStateImageList(*args, **kwargs): | |
a95a7133 | 5047 | """AssignStateImageList(self, ImageList imageList)""" |
54f9ee45 | 5048 | return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs) |
e811c8ce RD |
5049 | |
5050 | def GetItemText(*args, **kwargs): | |
a95a7133 | 5051 | """GetItemText(self, TreeItemId item) -> String""" |
54f9ee45 | 5052 | return _controls_.TreeCtrl_GetItemText(*args, **kwargs) |
e811c8ce RD |
5053 | |
5054 | def GetItemImage(*args, **kwargs): | |
a95a7133 | 5055 | """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" |
54f9ee45 | 5056 | return _controls_.TreeCtrl_GetItemImage(*args, **kwargs) |
e811c8ce RD |
5057 | |
5058 | def GetItemData(*args, **kwargs): | |
a95a7133 | 5059 | """GetItemData(self, TreeItemId item) -> TreeItemData""" |
54f9ee45 | 5060 | return _controls_.TreeCtrl_GetItemData(*args, **kwargs) |
e811c8ce RD |
5061 | |
5062 | def GetItemPyData(*args, **kwargs): | |
a95a7133 | 5063 | """GetItemPyData(self, TreeItemId item) -> PyObject""" |
54f9ee45 | 5064 | return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs) |
e811c8ce | 5065 | |
d14a1e28 | 5066 | GetPyData = GetItemPyData |
e811c8ce | 5067 | def GetItemTextColour(*args, **kwargs): |
a95a7133 | 5068 | """GetItemTextColour(self, TreeItemId item) -> Colour""" |
54f9ee45 | 5069 | return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs) |
e811c8ce RD |
5070 | |
5071 | def GetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 5072 | """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" |
54f9ee45 | 5073 | return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
5074 | |
5075 | def GetItemFont(*args, **kwargs): | |
a95a7133 | 5076 | """GetItemFont(self, TreeItemId item) -> Font""" |
54f9ee45 | 5077 | return _controls_.TreeCtrl_GetItemFont(*args, **kwargs) |
e811c8ce RD |
5078 | |
5079 | def SetItemText(*args, **kwargs): | |
a95a7133 | 5080 | """SetItemText(self, TreeItemId item, String text)""" |
54f9ee45 | 5081 | return _controls_.TreeCtrl_SetItemText(*args, **kwargs) |
e811c8ce RD |
5082 | |
5083 | def SetItemImage(*args, **kwargs): | |
a95a7133 | 5084 | """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" |
54f9ee45 | 5085 | return _controls_.TreeCtrl_SetItemImage(*args, **kwargs) |
e811c8ce RD |
5086 | |
5087 | def SetItemData(*args, **kwargs): | |
a95a7133 | 5088 | """SetItemData(self, TreeItemId item, TreeItemData data)""" |
54f9ee45 | 5089 | return _controls_.TreeCtrl_SetItemData(*args, **kwargs) |
e811c8ce RD |
5090 | |
5091 | def SetItemPyData(*args, **kwargs): | |
a95a7133 | 5092 | """SetItemPyData(self, TreeItemId item, PyObject obj)""" |
54f9ee45 | 5093 | return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs) |
e811c8ce | 5094 | |
d14a1e28 | 5095 | SetPyData = SetItemPyData |
e811c8ce | 5096 | def SetItemHasChildren(*args, **kwargs): |
a95a7133 | 5097 | """SetItemHasChildren(self, TreeItemId item, bool has=True)""" |
54f9ee45 | 5098 | return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs) |
e811c8ce RD |
5099 | |
5100 | def SetItemBold(*args, **kwargs): | |
a95a7133 | 5101 | """SetItemBold(self, TreeItemId item, bool bold=True)""" |
54f9ee45 | 5102 | return _controls_.TreeCtrl_SetItemBold(*args, **kwargs) |
e811c8ce | 5103 | |
fef4c27a RD |
5104 | def SetItemDropHighlight(*args, **kwargs): |
5105 | """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)""" | |
5106 | return _controls_.TreeCtrl_SetItemDropHighlight(*args, **kwargs) | |
5107 | ||
e811c8ce | 5108 | def SetItemTextColour(*args, **kwargs): |
a95a7133 | 5109 | """SetItemTextColour(self, TreeItemId item, Colour col)""" |
54f9ee45 | 5110 | return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs) |
e811c8ce RD |
5111 | |
5112 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 5113 | """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" |
54f9ee45 | 5114 | return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
5115 | |
5116 | def SetItemFont(*args, **kwargs): | |
a95a7133 | 5117 | """SetItemFont(self, TreeItemId item, Font font)""" |
54f9ee45 | 5118 | return _controls_.TreeCtrl_SetItemFont(*args, **kwargs) |
e811c8ce RD |
5119 | |
5120 | def IsVisible(*args, **kwargs): | |
a95a7133 | 5121 | """IsVisible(self, TreeItemId item) -> bool""" |
54f9ee45 | 5122 | return _controls_.TreeCtrl_IsVisible(*args, **kwargs) |
e811c8ce RD |
5123 | |
5124 | def ItemHasChildren(*args, **kwargs): | |
a95a7133 | 5125 | """ItemHasChildren(self, TreeItemId item) -> bool""" |
54f9ee45 | 5126 | return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs) |
e811c8ce RD |
5127 | |
5128 | def IsExpanded(*args, **kwargs): | |
a95a7133 | 5129 | """IsExpanded(self, TreeItemId item) -> bool""" |
54f9ee45 | 5130 | return _controls_.TreeCtrl_IsExpanded(*args, **kwargs) |
e811c8ce RD |
5131 | |
5132 | def IsSelected(*args, **kwargs): | |
a95a7133 | 5133 | """IsSelected(self, TreeItemId item) -> bool""" |
54f9ee45 | 5134 | return _controls_.TreeCtrl_IsSelected(*args, **kwargs) |
e811c8ce RD |
5135 | |
5136 | def IsBold(*args, **kwargs): | |
a95a7133 | 5137 | """IsBold(self, TreeItemId item) -> bool""" |
54f9ee45 | 5138 | return _controls_.TreeCtrl_IsBold(*args, **kwargs) |
e811c8ce RD |
5139 | |
5140 | def GetChildrenCount(*args, **kwargs): | |
a95a7133 | 5141 | """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" |
54f9ee45 | 5142 | return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs) |
e811c8ce RD |
5143 | |
5144 | def GetRootItem(*args, **kwargs): | |
a95a7133 | 5145 | """GetRootItem(self) -> TreeItemId""" |
54f9ee45 | 5146 | return _controls_.TreeCtrl_GetRootItem(*args, **kwargs) |
e811c8ce RD |
5147 | |
5148 | def GetSelection(*args, **kwargs): | |
a95a7133 | 5149 | """GetSelection(self) -> TreeItemId""" |
54f9ee45 | 5150 | return _controls_.TreeCtrl_GetSelection(*args, **kwargs) |
e811c8ce RD |
5151 | |
5152 | def GetSelections(*args, **kwargs): | |
a95a7133 | 5153 | """GetSelections(self) -> PyObject""" |
54f9ee45 | 5154 | return _controls_.TreeCtrl_GetSelections(*args, **kwargs) |
e811c8ce RD |
5155 | |
5156 | def GetItemParent(*args, **kwargs): | |
a95a7133 | 5157 | """GetItemParent(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5158 | return _controls_.TreeCtrl_GetItemParent(*args, **kwargs) |
e811c8ce RD |
5159 | |
5160 | def GetFirstChild(*args, **kwargs): | |
a95a7133 | 5161 | """GetFirstChild(self, TreeItemId item) -> PyObject""" |
54f9ee45 | 5162 | return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs) |
e811c8ce RD |
5163 | |
5164 | def GetNextChild(*args, **kwargs): | |
a95a7133 | 5165 | """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" |
54f9ee45 | 5166 | return _controls_.TreeCtrl_GetNextChild(*args, **kwargs) |
e811c8ce RD |
5167 | |
5168 | def GetLastChild(*args, **kwargs): | |
a95a7133 | 5169 | """GetLastChild(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5170 | return _controls_.TreeCtrl_GetLastChild(*args, **kwargs) |
e811c8ce RD |
5171 | |
5172 | def GetNextSibling(*args, **kwargs): | |
a95a7133 | 5173 | """GetNextSibling(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5174 | return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs) |
e811c8ce RD |
5175 | |
5176 | def GetPrevSibling(*args, **kwargs): | |
a95a7133 | 5177 | """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5178 | return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs) |
e811c8ce RD |
5179 | |
5180 | def GetFirstVisibleItem(*args, **kwargs): | |
a95a7133 | 5181 | """GetFirstVisibleItem(self) -> TreeItemId""" |
54f9ee45 | 5182 | return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) |
e811c8ce RD |
5183 | |
5184 | def GetNextVisible(*args, **kwargs): | |
a95a7133 | 5185 | """GetNextVisible(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5186 | return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs) |
e811c8ce RD |
5187 | |
5188 | def GetPrevVisible(*args, **kwargs): | |
a95a7133 | 5189 | """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5190 | return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs) |
e811c8ce RD |
5191 | |
5192 | def AddRoot(*args, **kwargs): | |
a95a7133 | 5193 | """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" |
54f9ee45 | 5194 | return _controls_.TreeCtrl_AddRoot(*args, **kwargs) |
e811c8ce RD |
5195 | |
5196 | def PrependItem(*args, **kwargs): | |
0df68c9f | 5197 | """ |
a95a7133 | 5198 | PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, |
0df68c9f RD |
5199 | TreeItemData data=None) -> TreeItemId |
5200 | """ | |
54f9ee45 | 5201 | return _controls_.TreeCtrl_PrependItem(*args, **kwargs) |
e811c8ce RD |
5202 | |
5203 | def InsertItem(*args, **kwargs): | |
0df68c9f | 5204 | """ |
a95a7133 | 5205 | InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, |
0df68c9f RD |
5206 | int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId |
5207 | """ | |
54f9ee45 | 5208 | return _controls_.TreeCtrl_InsertItem(*args, **kwargs) |
e811c8ce RD |
5209 | |
5210 | def InsertItemBefore(*args, **kwargs): | |
0df68c9f | 5211 | """ |
a95a7133 | 5212 | InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, |
0df68c9f RD |
5213 | int selectedImage=-1, TreeItemData data=None) -> TreeItemId |
5214 | """ | |
54f9ee45 | 5215 | return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs) |
e811c8ce RD |
5216 | |
5217 | def AppendItem(*args, **kwargs): | |
0df68c9f | 5218 | """ |
a95a7133 | 5219 | AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, |
0df68c9f RD |
5220 | TreeItemData data=None) -> TreeItemId |
5221 | """ | |
54f9ee45 | 5222 | return _controls_.TreeCtrl_AppendItem(*args, **kwargs) |
e811c8ce RD |
5223 | |
5224 | def Delete(*args, **kwargs): | |
a95a7133 | 5225 | """Delete(self, TreeItemId item)""" |
54f9ee45 | 5226 | return _controls_.TreeCtrl_Delete(*args, **kwargs) |
e811c8ce RD |
5227 | |
5228 | def DeleteChildren(*args, **kwargs): | |
a95a7133 | 5229 | """DeleteChildren(self, TreeItemId item)""" |
54f9ee45 | 5230 | return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs) |
e811c8ce RD |
5231 | |
5232 | def DeleteAllItems(*args, **kwargs): | |
a95a7133 | 5233 | """DeleteAllItems(self)""" |
54f9ee45 | 5234 | return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs) |
e811c8ce RD |
5235 | |
5236 | def Expand(*args, **kwargs): | |
a95a7133 | 5237 | """Expand(self, TreeItemId item)""" |
54f9ee45 | 5238 | return _controls_.TreeCtrl_Expand(*args, **kwargs) |
e811c8ce RD |
5239 | |
5240 | def Collapse(*args, **kwargs): | |
a95a7133 | 5241 | """Collapse(self, TreeItemId item)""" |
54f9ee45 | 5242 | return _controls_.TreeCtrl_Collapse(*args, **kwargs) |
e811c8ce RD |
5243 | |
5244 | def CollapseAndReset(*args, **kwargs): | |
a95a7133 | 5245 | """CollapseAndReset(self, TreeItemId item)""" |
54f9ee45 | 5246 | return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs) |
e811c8ce RD |
5247 | |
5248 | def Toggle(*args, **kwargs): | |
a95a7133 | 5249 | """Toggle(self, TreeItemId item)""" |
54f9ee45 | 5250 | return _controls_.TreeCtrl_Toggle(*args, **kwargs) |
e811c8ce RD |
5251 | |
5252 | def Unselect(*args, **kwargs): | |
a95a7133 | 5253 | """Unselect(self)""" |
54f9ee45 | 5254 | return _controls_.TreeCtrl_Unselect(*args, **kwargs) |
e811c8ce | 5255 | |
3adfb63b | 5256 | def UnselectItem(*args, **kwargs): |
a95a7133 | 5257 | """UnselectItem(self, TreeItemId item)""" |
54f9ee45 | 5258 | return _controls_.TreeCtrl_UnselectItem(*args, **kwargs) |
3adfb63b | 5259 | |
e811c8ce | 5260 | def UnselectAll(*args, **kwargs): |
a95a7133 | 5261 | """UnselectAll(self)""" |
54f9ee45 | 5262 | return _controls_.TreeCtrl_UnselectAll(*args, **kwargs) |
e811c8ce RD |
5263 | |
5264 | def SelectItem(*args, **kwargs): | |
a95a7133 | 5265 | """SelectItem(self, TreeItemId item, bool select=True)""" |
54f9ee45 | 5266 | return _controls_.TreeCtrl_SelectItem(*args, **kwargs) |
3adfb63b RD |
5267 | |
5268 | def ToggleItemSelection(*args, **kwargs): | |
a95a7133 | 5269 | """ToggleItemSelection(self, TreeItemId item)""" |
54f9ee45 | 5270 | return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs) |
e811c8ce RD |
5271 | |
5272 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 5273 | """EnsureVisible(self, TreeItemId item)""" |
54f9ee45 | 5274 | return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
5275 | |
5276 | def ScrollTo(*args, **kwargs): | |
a95a7133 | 5277 | """ScrollTo(self, TreeItemId item)""" |
54f9ee45 | 5278 | return _controls_.TreeCtrl_ScrollTo(*args, **kwargs) |
e811c8ce RD |
5279 | |
5280 | def EditLabel(*args, **kwargs): | |
a95a7133 | 5281 | """EditLabel(self, TreeItemId item)""" |
54f9ee45 | 5282 | return _controls_.TreeCtrl_EditLabel(*args, **kwargs) |
e811c8ce RD |
5283 | |
5284 | def GetEditControl(*args, **kwargs): | |
a95a7133 | 5285 | """GetEditControl(self) -> TextCtrl""" |
54f9ee45 | 5286 | return _controls_.TreeCtrl_GetEditControl(*args, **kwargs) |
e811c8ce RD |
5287 | |
5288 | def SortChildren(*args, **kwargs): | |
a95a7133 | 5289 | """SortChildren(self, TreeItemId item)""" |
54f9ee45 | 5290 | return _controls_.TreeCtrl_SortChildren(*args, **kwargs) |
e811c8ce RD |
5291 | |
5292 | def HitTest(*args, **kwargs): | |
fd2dc343 RD |
5293 | """ |
5294 | HitTest(Point point) -> (item, where) | |
5295 | ||
5296 | Determine which item (if any) belongs the given point. The coordinates | |
5297 | specified are relative to the client area of tree ctrl and the where return | |
5298 | value is set to a bitmask of wxTREE_HITTEST_xxx constants. | |
5299 | ||
5300 | """ | |
54f9ee45 | 5301 | return _controls_.TreeCtrl_HitTest(*args, **kwargs) |
e811c8ce RD |
5302 | |
5303 | def GetBoundingRect(*args, **kwargs): | |
a95a7133 | 5304 | """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" |
54f9ee45 | 5305 | return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs) |
e811c8ce | 5306 | |
74a57fcd | 5307 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
5308 | """ |
5309 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
5310 | ||
5311 | Get the default attributes for this class. This is useful if you want | |
5312 | to use the same font or colour in your own control as in a standard | |
5313 | control -- which is a much better idea than hard coding specific | |
5314 | colours or fonts which might look completely out of place on the | |
5315 | user's system, especially if it uses themes. | |
5316 | ||
5317 | The variant parameter is only relevant under Mac currently and is | |
5318 | ignore under other platforms. Under Mac, it will change the size of | |
5319 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5320 | this. | |
5321 | """ | |
54f9ee45 | 5322 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
5323 | |
5324 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
0085ce49 RD |
5325 | TreeCtrl_swigregister = _controls_.TreeCtrl_swigregister |
5326 | TreeCtrl_swigregister(TreeCtrl) | |
70551f47 | 5327 | |
d14a1e28 | 5328 | def PreTreeCtrl(*args, **kwargs): |
e811c8ce | 5329 | """PreTreeCtrl() -> TreeCtrl""" |
54f9ee45 | 5330 | val = _controls_.new_PreTreeCtrl(*args, **kwargs) |
aa2a5b86 RD |
5331 | return val |
5332 | ||
74a57fcd | 5333 | def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 5334 | """ |
110da5b0 RD |
5335 | TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
5336 | ||
5337 | Get the default attributes for this class. This is useful if you want | |
5338 | to use the same font or colour in your own control as in a standard | |
5339 | control -- which is a much better idea than hard coding specific | |
5340 | colours or fonts which might look completely out of place on the | |
5341 | user's system, especially if it uses themes. | |
5342 | ||
5343 | The variant parameter is only relevant under Mac currently and is | |
5344 | ignore under other platforms. Under Mac, it will change the size of | |
5345 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5346 | this. | |
5347 | """ | |
0085ce49 | 5348 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 5349 | |
d14a1e28 RD |
5350 | #--------------------------------------------------------------------------- |
5351 | ||
54f9ee45 RD |
5352 | DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY |
5353 | DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST | |
5354 | DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS | |
5355 | DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL | |
5356 | DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS | |
5357 | class GenericDirCtrl(_core.Control): | |
093d3ff1 | 5358 | """Proxy of C++ GenericDirCtrl class""" |
0085ce49 RD |
5359 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5360 | __repr__ = _swig_repr | |
5361 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5362 | """ |
a95a7133 | 5363 | __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, |
196addbf RD |
5364 | Point pos=DefaultPosition, Size size=DefaultSize, |
5365 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5366 | String filter=EmptyString, | |
b2dc1044 | 5367 | int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl |
0df68c9f | 5368 | """ |
0085ce49 | 5369 | _controls_.GenericDirCtrl_swiginit(self,_controls_.new_GenericDirCtrl(*args, **kwargs)) |
d14a1e28 | 5370 | self._setOORInfo(self) |
e811c8ce RD |
5371 | |
5372 | def Create(*args, **kwargs): | |
0df68c9f | 5373 | """ |
a95a7133 | 5374 | Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, |
196addbf RD |
5375 | Point pos=DefaultPosition, Size size=DefaultSize, |
5376 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5377 | String filter=EmptyString, | |
b2dc1044 | 5378 | int defaultFilter=0, String name=TreeCtrlNameStr) -> bool |
0df68c9f | 5379 | """ |
54f9ee45 | 5380 | return _controls_.GenericDirCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5381 | |
5382 | def ExpandPath(*args, **kwargs): | |
a95a7133 | 5383 | """ExpandPath(self, String path) -> bool""" |
54f9ee45 | 5384 | return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs) |
e811c8ce RD |
5385 | |
5386 | def GetDefaultPath(*args, **kwargs): | |
a95a7133 | 5387 | """GetDefaultPath(self) -> String""" |
54f9ee45 | 5388 | return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs) |
e811c8ce RD |
5389 | |
5390 | def SetDefaultPath(*args, **kwargs): | |
a95a7133 | 5391 | """SetDefaultPath(self, String path)""" |
54f9ee45 | 5392 | return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs) |
e811c8ce RD |
5393 | |
5394 | def GetPath(*args, **kwargs): | |
a95a7133 | 5395 | """GetPath(self) -> String""" |
54f9ee45 | 5396 | return _controls_.GenericDirCtrl_GetPath(*args, **kwargs) |
e811c8ce RD |
5397 | |
5398 | def GetFilePath(*args, **kwargs): | |
a95a7133 | 5399 | """GetFilePath(self) -> String""" |
54f9ee45 | 5400 | return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs) |
e811c8ce RD |
5401 | |
5402 | def SetPath(*args, **kwargs): | |
a95a7133 | 5403 | """SetPath(self, String path)""" |
54f9ee45 | 5404 | return _controls_.GenericDirCtrl_SetPath(*args, **kwargs) |
e811c8ce RD |
5405 | |
5406 | def ShowHidden(*args, **kwargs): | |
a95a7133 | 5407 | """ShowHidden(self, bool show)""" |
54f9ee45 | 5408 | return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs) |
e811c8ce RD |
5409 | |
5410 | def GetShowHidden(*args, **kwargs): | |
a95a7133 | 5411 | """GetShowHidden(self) -> bool""" |
54f9ee45 | 5412 | return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs) |
e811c8ce RD |
5413 | |
5414 | def GetFilter(*args, **kwargs): | |
a95a7133 | 5415 | """GetFilter(self) -> String""" |
54f9ee45 | 5416 | return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs) |
e811c8ce RD |
5417 | |
5418 | def SetFilter(*args, **kwargs): | |
a95a7133 | 5419 | """SetFilter(self, String filter)""" |
54f9ee45 | 5420 | return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs) |
e811c8ce RD |
5421 | |
5422 | def GetFilterIndex(*args, **kwargs): | |
a95a7133 | 5423 | """GetFilterIndex(self) -> int""" |
54f9ee45 | 5424 | return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs) |
e811c8ce RD |
5425 | |
5426 | def SetFilterIndex(*args, **kwargs): | |
a95a7133 | 5427 | """SetFilterIndex(self, int n)""" |
54f9ee45 | 5428 | return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs) |
e811c8ce RD |
5429 | |
5430 | def GetRootId(*args, **kwargs): | |
a95a7133 | 5431 | """GetRootId(self) -> TreeItemId""" |
54f9ee45 | 5432 | return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs) |
e811c8ce RD |
5433 | |
5434 | def GetTreeCtrl(*args, **kwargs): | |
a95a7133 | 5435 | """GetTreeCtrl(self) -> TreeCtrl""" |
54f9ee45 | 5436 | return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) |
e811c8ce RD |
5437 | |
5438 | def GetFilterListCtrl(*args, **kwargs): | |
a95a7133 | 5439 | """GetFilterListCtrl(self) -> DirFilterListCtrl""" |
54f9ee45 | 5440 | return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) |
e811c8ce RD |
5441 | |
5442 | def FindChild(*args, **kwargs): | |
fd2dc343 RD |
5443 | """ |
5444 | FindChild(wxTreeItemId parentId, wxString path) -> (item, done) | |
5445 | ||
5446 | Find the child that matches the first part of 'path'. E.g. if a child | |
5447 | path is "/usr" and 'path' is "/usr/include" then the child for | |
5448 | /usr is returned. If the path string has been used (we're at the | |
5449 | leaf), done is set to True. | |
5450 | ||
5451 | """ | |
54f9ee45 | 5452 | return _controls_.GenericDirCtrl_FindChild(*args, **kwargs) |
e811c8ce RD |
5453 | |
5454 | def DoResize(*args, **kwargs): | |
a95a7133 | 5455 | """DoResize(self)""" |
54f9ee45 | 5456 | return _controls_.GenericDirCtrl_DoResize(*args, **kwargs) |
e811c8ce RD |
5457 | |
5458 | def ReCreateTree(*args, **kwargs): | |
a95a7133 | 5459 | """ReCreateTree(self)""" |
54f9ee45 | 5460 | return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs) |
e811c8ce | 5461 | |
0085ce49 RD |
5462 | GenericDirCtrl_swigregister = _controls_.GenericDirCtrl_swigregister |
5463 | GenericDirCtrl_swigregister(GenericDirCtrl) | |
b2dc1044 | 5464 | DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr |
d14a1e28 RD |
5465 | |
5466 | def PreGenericDirCtrl(*args, **kwargs): | |
e811c8ce | 5467 | """PreGenericDirCtrl() -> GenericDirCtrl""" |
54f9ee45 | 5468 | val = _controls_.new_PreGenericDirCtrl(*args, **kwargs) |
d14a1e28 RD |
5469 | return val |
5470 | ||
5471 | class DirFilterListCtrl(Choice): | |
093d3ff1 | 5472 | """Proxy of C++ DirFilterListCtrl class""" |
0085ce49 RD |
5473 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5474 | __repr__ = _swig_repr | |
5475 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5476 | """ |
a95a7133 | 5477 | __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5478 | Size size=DefaultSize, long style=0) -> DirFilterListCtrl |
5479 | """ | |
0085ce49 | 5480 | _controls_.DirFilterListCtrl_swiginit(self,_controls_.new_DirFilterListCtrl(*args, **kwargs)) |
0220cbc1 | 5481 | self._setOORInfo(self) |
e811c8ce RD |
5482 | |
5483 | def Create(*args, **kwargs): | |
0df68c9f | 5484 | """ |
a95a7133 | 5485 | Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5486 | Size size=DefaultSize, long style=0) -> bool |
5487 | """ | |
54f9ee45 | 5488 | return _controls_.DirFilterListCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5489 | |
5490 | def FillFilterList(*args, **kwargs): | |
a95a7133 | 5491 | """FillFilterList(self, String filter, int defaultFilter)""" |
54f9ee45 | 5492 | return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs) |
e811c8ce | 5493 | |
0085ce49 RD |
5494 | DirFilterListCtrl_swigregister = _controls_.DirFilterListCtrl_swigregister |
5495 | DirFilterListCtrl_swigregister(DirFilterListCtrl) | |
7a446686 | 5496 | |
d14a1e28 | 5497 | def PreDirFilterListCtrl(*args, **kwargs): |
e811c8ce | 5498 | """PreDirFilterListCtrl() -> DirFilterListCtrl""" |
54f9ee45 | 5499 | val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs) |
aa2a5b86 RD |
5500 | return val |
5501 | ||
d14a1e28 | 5502 | #--------------------------------------------------------------------------- |
7a446686 | 5503 | |
54f9ee45 | 5504 | class PyControl(_core.Control): |
093d3ff1 | 5505 | """Proxy of C++ PyControl class""" |
0085ce49 RD |
5506 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5507 | __repr__ = _swig_repr | |
5508 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5509 | """ |
248ed943 RD |
5510 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
5511 | Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, | |
b2dc1044 | 5512 | String name=ControlNameStr) -> PyControl |
0df68c9f | 5513 | """ |
0085ce49 | 5514 | _controls_.PyControl_swiginit(self,_controls_.new_PyControl(*args, **kwargs)) |
d14a1e28 | 5515 | self._setOORInfo(self); self._setCallbackInfo(self, PyControl) |
e811c8ce RD |
5516 | |
5517 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5518 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5519 | return _controls_.PyControl__setCallbackInfo(*args, **kwargs) |
e811c8ce | 5520 | |
db3e571a RD |
5521 | def SetBestSize(*args, **kwargs): |
5522 | """SetBestSize(self, Size size)""" | |
5523 | return _controls_.PyControl_SetBestSize(*args, **kwargs) | |
5524 | ||
976dbff5 RD |
5525 | def DoEraseBackground(*args, **kwargs): |
5526 | """DoEraseBackground(self, DC dc) -> bool""" | |
5527 | return _controls_.PyControl_DoEraseBackground(*args, **kwargs) | |
5528 | ||
c26d9ab4 RD |
5529 | def DoMoveWindow(*args, **kwargs): |
5530 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
5531 | return _controls_.PyControl_DoMoveWindow(*args, **kwargs) | |
e811c8ce | 5532 | |
c26d9ab4 RD |
5533 | def DoSetSize(*args, **kwargs): |
5534 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
5535 | return _controls_.PyControl_DoSetSize(*args, **kwargs) | |
e811c8ce | 5536 | |
c26d9ab4 RD |
5537 | def DoSetClientSize(*args, **kwargs): |
5538 | """DoSetClientSize(self, int width, int height)""" | |
5539 | return _controls_.PyControl_DoSetClientSize(*args, **kwargs) | |
e811c8ce | 5540 | |
c26d9ab4 RD |
5541 | def DoSetVirtualSize(*args, **kwargs): |
5542 | """DoSetVirtualSize(self, int x, int y)""" | |
5543 | return _controls_.PyControl_DoSetVirtualSize(*args, **kwargs) | |
e811c8ce | 5544 | |
c26d9ab4 RD |
5545 | def DoGetSize(*args, **kwargs): |
5546 | """DoGetSize() -> (width, height)""" | |
5547 | return _controls_.PyControl_DoGetSize(*args, **kwargs) | |
e811c8ce | 5548 | |
c26d9ab4 RD |
5549 | def DoGetClientSize(*args, **kwargs): |
5550 | """DoGetClientSize() -> (width, height)""" | |
5551 | return _controls_.PyControl_DoGetClientSize(*args, **kwargs) | |
e811c8ce | 5552 | |
c26d9ab4 RD |
5553 | def DoGetPosition(*args, **kwargs): |
5554 | """DoGetPosition() -> (x,y)""" | |
5555 | return _controls_.PyControl_DoGetPosition(*args, **kwargs) | |
e811c8ce | 5556 | |
c26d9ab4 RD |
5557 | def DoGetVirtualSize(*args, **kwargs): |
5558 | """DoGetVirtualSize(self) -> Size""" | |
5559 | return _controls_.PyControl_DoGetVirtualSize(*args, **kwargs) | |
e811c8ce | 5560 | |
c26d9ab4 RD |
5561 | def DoGetBestSize(*args, **kwargs): |
5562 | """DoGetBestSize(self) -> Size""" | |
5563 | return _controls_.PyControl_DoGetBestSize(*args, **kwargs) | |
e811c8ce | 5564 | |
c26d9ab4 RD |
5565 | def GetDefaultAttributes(*args, **kwargs): |
5566 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
5567 | return _controls_.PyControl_GetDefaultAttributes(*args, **kwargs) | |
5568 | ||
5569 | def OnInternalIdle(*args, **kwargs): | |
5570 | """OnInternalIdle(self)""" | |
5571 | return _controls_.PyControl_OnInternalIdle(*args, **kwargs) | |
5572 | ||
5573 | def base_DoMoveWindow(*args, **kw): | |
5574 | return PyScrolledWindow.DoMoveWindow(*args, **kw) | |
5575 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
5576 | "Please use PyScrolledWindow.DoMoveWindow instead.") | |
5577 | ||
5578 | def base_DoSetSize(*args, **kw): | |
5579 | return PyScrolledWindow.DoSetSize(*args, **kw) | |
5580 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
5581 | "Please use PyScrolledWindow.DoSetSize instead.") | |
e811c8ce | 5582 | |
c26d9ab4 RD |
5583 | def base_DoSetClientSize(*args, **kw): |
5584 | return PyScrolledWindow.DoSetClientSize(*args, **kw) | |
5585 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
5586 | "Please use PyScrolledWindow.DoSetClientSize instead.") | |
e811c8ce | 5587 | |
c26d9ab4 RD |
5588 | def base_DoSetVirtualSize(*args, **kw): |
5589 | return PyScrolledWindow.DoSetVirtualSize(*args, **kw) | |
5590 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
5591 | "Please use PyScrolledWindow.DoSetVirtualSize instead.") | |
e811c8ce | 5592 | |
c26d9ab4 RD |
5593 | def base_DoGetSize(*args, **kw): |
5594 | return PyScrolledWindow.DoGetSize(*args, **kw) | |
5595 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
5596 | "Please use PyScrolledWindow.DoGetSize instead.") | |
e811c8ce | 5597 | |
c26d9ab4 RD |
5598 | def base_DoGetClientSize(*args, **kw): |
5599 | return PyScrolledWindow.DoGetClientSize(*args, **kw) | |
5600 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
5601 | "Please use PyScrolledWindow.DoGetClientSize instead.") | |
e811c8ce | 5602 | |
c26d9ab4 RD |
5603 | def base_DoGetPosition(*args, **kw): |
5604 | return PyScrolledWindow.DoGetPosition(*args, **kw) | |
5605 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
5606 | "Please use PyScrolledWindow.DoGetPosition instead.") | |
e811c8ce | 5607 | |
c26d9ab4 RD |
5608 | def base_DoGetVirtualSize(*args, **kw): |
5609 | return PyScrolledWindow.DoGetVirtualSize(*args, **kw) | |
5610 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
5611 | "Please use PyScrolledWindow.DoGetVirtualSize instead.") | |
e811c8ce | 5612 | |
c26d9ab4 RD |
5613 | def base_DoGetBestSize(*args, **kw): |
5614 | return PyScrolledWindow.DoGetBestSize(*args, **kw) | |
5615 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
5616 | "Please use PyScrolledWindow.DoGetBestSize instead.") | |
e811c8ce | 5617 | |
c26d9ab4 RD |
5618 | def base_InitDialog(*args, **kw): |
5619 | return PyScrolledWindow.InitDialog(*args, **kw) | |
5620 | base_InitDialog = wx._deprecated(base_InitDialog, | |
5621 | "Please use PyScrolledWindow.InitDialog instead.") | |
e811c8ce | 5622 | |
c26d9ab4 RD |
5623 | def base_TransferDataToWindow(*args, **kw): |
5624 | return PyScrolledWindow.TransferDataToWindow(*args, **kw) | |
5625 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
5626 | "Please use PyScrolledWindow.TransferDataToWindow instead.") | |
1cb4a8aa | 5627 | |
c26d9ab4 RD |
5628 | def base_TransferDataFromWindow(*args, **kw): |
5629 | return PyScrolledWindow.TransferDataFromWindow(*args, **kw) | |
5630 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
5631 | "Please use PyScrolledWindow.TransferDataFromWindow instead.") | |
db3e571a | 5632 | |
c26d9ab4 RD |
5633 | def base_Validate(*args, **kw): |
5634 | return PyScrolledWindow.Validate(*args, **kw) | |
5635 | base_Validate = wx._deprecated(base_Validate, | |
5636 | "Please use PyScrolledWindow.Validate instead.") | |
5637 | ||
5638 | def base_AcceptsFocus(*args, **kw): | |
5639 | return PyScrolledWindow.AcceptsFocus(*args, **kw) | |
5640 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
5641 | "Please use PyScrolledWindow.AcceptsFocus instead.") | |
5642 | ||
5643 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
5644 | return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
5645 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
5646 | "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.") | |
5647 | ||
5648 | def base_GetMaxSize(*args, **kw): | |
5649 | return PyScrolledWindow.GetMaxSize(*args, **kw) | |
5650 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
5651 | "Please use PyScrolledWindow.GetMaxSize instead.") | |
5652 | ||
5653 | def base_AddChild(*args, **kw): | |
5654 | return PyScrolledWindow.AddChild(*args, **kw) | |
5655 | base_AddChild = wx._deprecated(base_AddChild, | |
5656 | "Please use PyScrolledWindow.AddChild instead.") | |
5657 | ||
5658 | def base_RemoveChild(*args, **kw): | |
5659 | return PyScrolledWindow.RemoveChild(*args, **kw) | |
5660 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
5661 | "Please use PyScrolledWindow.RemoveChild instead.") | |
5662 | ||
5663 | def base_ShouldInheritColours(*args, **kw): | |
5664 | return PyScrolledWindow.ShouldInheritColours(*args, **kw) | |
5665 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
5666 | "Please use PyScrolledWindow.ShouldInheritColours instead.") | |
5667 | ||
5668 | def base_GetDefaultAttributes(*args, **kw): | |
5669 | return PyScrolledWindow.GetDefaultAttributes(*args, **kw) | |
5670 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
5671 | "Please use PyScrolledWindow.GetDefaultAttributes instead.") | |
5672 | ||
5673 | def base_OnInternalIdle(*args, **kw): | |
5674 | return PyScrolledWindow.OnInternalIdle(*args, **kw) | |
5675 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
5676 | "Please use PyScrolledWindow.OnInternalIdle instead.") | |
8d38bd1d | 5677 | |
0085ce49 RD |
5678 | PyControl_swigregister = _controls_.PyControl_swigregister |
5679 | PyControl_swigregister(PyControl) | |
d14a1e28 | 5680 | |
1cb4a8aa RD |
5681 | def PrePyControl(*args, **kwargs): |
5682 | """PrePyControl() -> PyControl""" | |
54f9ee45 | 5683 | val = _controls_.new_PrePyControl(*args, **kwargs) |
1cb4a8aa RD |
5684 | return val |
5685 | ||
d14a1e28 RD |
5686 | #--------------------------------------------------------------------------- |
5687 | ||
54f9ee45 RD |
5688 | FRAME_EX_CONTEXTHELP = _controls_.FRAME_EX_CONTEXTHELP |
5689 | DIALOG_EX_CONTEXTHELP = _controls_.DIALOG_EX_CONTEXTHELP | |
5690 | wxEVT_HELP = _controls_.wxEVT_HELP | |
5691 | wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP | |
d14a1e28 RD |
5692 | EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) |
5693 | EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) | |
5694 | EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) | |
5695 | EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) | |
5696 | ||
54f9ee45 | 5697 | class HelpEvent(_core.CommandEvent): |
15afbcd0 | 5698 | """ |
41e2b43e RD |
5699 | A help event is sent when the user has requested context-sensitive |
5700 | help. This can either be caused by the application requesting | |
5701 | context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by | |
5702 | the system generating a WM_HELP message when the user pressed F1 or | |
5703 | clicked on the query button in a dialog caption. | |
5704 | ||
5705 | A help event is sent to the window that the user clicked on, and is | |
5706 | propagated up the window hierarchy until the event is processed or | |
5707 | there are no more event handlers. The application should call | |
5708 | event.GetId to check the identity of the clicked-on window, and then | |
5709 | either show some suitable help or call event.Skip if the identifier is | |
5710 | unrecognised. Calling Skip is important because it allows wxWindows to | |
5711 | generate further events for ancestors of the clicked-on | |
5712 | window. Otherwise it would be impossible to show help for container | |
5713 | windows, since processing would stop after the first window found. | |
15afbcd0 | 5714 | """ |
0085ce49 RD |
5715 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5716 | __repr__ = _swig_repr | |
5717 | def __init__(self, *args, **kwargs): | |
a95a7133 | 5718 | """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" |
0085ce49 | 5719 | _controls_.HelpEvent_swiginit(self,_controls_.new_HelpEvent(*args, **kwargs)) |
e811c8ce | 5720 | def GetPosition(*args, **kwargs): |
15afbcd0 | 5721 | """ |
a95a7133 | 5722 | GetPosition(self) -> Point |
15afbcd0 RD |
5723 | |
5724 | Returns the left-click position of the mouse, in screen | |
5725 | coordinates. This allows the application to position the help | |
5726 | appropriately. | |
5727 | """ | |
54f9ee45 | 5728 | return _controls_.HelpEvent_GetPosition(*args, **kwargs) |
e811c8ce RD |
5729 | |
5730 | def SetPosition(*args, **kwargs): | |
15afbcd0 | 5731 | """ |
a95a7133 | 5732 | SetPosition(self, Point pos) |
15afbcd0 RD |
5733 | |
5734 | Sets the left-click position of the mouse, in screen coordinates. | |
5735 | """ | |
54f9ee45 | 5736 | return _controls_.HelpEvent_SetPosition(*args, **kwargs) |
e811c8ce RD |
5737 | |
5738 | def GetLink(*args, **kwargs): | |
15afbcd0 | 5739 | """ |
a95a7133 | 5740 | GetLink(self) -> String |
15afbcd0 RD |
5741 | |
5742 | Get an optional link to further help | |
5743 | """ | |
54f9ee45 | 5744 | return _controls_.HelpEvent_GetLink(*args, **kwargs) |
e811c8ce RD |
5745 | |
5746 | def SetLink(*args, **kwargs): | |
15afbcd0 | 5747 | """ |
a95a7133 | 5748 | SetLink(self, String link) |
15afbcd0 RD |
5749 | |
5750 | Set an optional link to further help | |
5751 | """ | |
54f9ee45 | 5752 | return _controls_.HelpEvent_SetLink(*args, **kwargs) |
e811c8ce RD |
5753 | |
5754 | def GetTarget(*args, **kwargs): | |
15afbcd0 | 5755 | """ |
a95a7133 | 5756 | GetTarget(self) -> String |
15afbcd0 RD |
5757 | |
5758 | Get an optional target to display help in. E.g. a window specification | |
5759 | """ | |
54f9ee45 | 5760 | return _controls_.HelpEvent_GetTarget(*args, **kwargs) |
e811c8ce RD |
5761 | |
5762 | def SetTarget(*args, **kwargs): | |
15afbcd0 | 5763 | """ |
a95a7133 | 5764 | SetTarget(self, String target) |
15afbcd0 RD |
5765 | |
5766 | Set an optional target to display help in. E.g. a window specification | |
5767 | """ | |
54f9ee45 | 5768 | return _controls_.HelpEvent_SetTarget(*args, **kwargs) |
e811c8ce | 5769 | |
0085ce49 RD |
5770 | HelpEvent_swigregister = _controls_.HelpEvent_swigregister |
5771 | HelpEvent_swigregister(HelpEvent) | |
d14a1e28 | 5772 | |
54f9ee45 | 5773 | class ContextHelp(_core.Object): |
15afbcd0 | 5774 | """ |
41e2b43e RD |
5775 | This class changes the cursor to a query and puts the application into |
5776 | a 'context-sensitive help mode'. When the user left-clicks on a window | |
5777 | within the specified window, a ``EVT_HELP`` event is sent to that | |
5778 | control, and the application may respond to it by popping up some | |
5779 | help. | |
15afbcd0 RD |
5780 | |
5781 | There are a couple of ways to invoke this behaviour implicitly: | |
5782 | ||
41e2b43e RD |
5783 | * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog |
5784 | (Windows only). This will put a question mark in the titlebar, | |
5785 | and Windows will put the application into context-sensitive help | |
5786 | mode automatically, with further programming. | |
5787 | ||
5788 | * Create a `wx.ContextHelpButton`, whose predefined behaviour is | |
5789 | to create a context help object. Normally you will write your | |
5790 | application so that this button is only added to a dialog for | |
5791 | non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on | |
5792 | Windows). | |
15afbcd0 | 5793 | |
41e2b43e | 5794 | :see: `wx.ContextHelpButton` |
15afbcd0 RD |
5795 | |
5796 | """ | |
0085ce49 RD |
5797 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5798 | __repr__ = _swig_repr | |
5799 | def __init__(self, *args, **kwargs): | |
15afbcd0 | 5800 | """ |
a95a7133 | 5801 | __init__(self, Window window=None, bool doNow=True) -> ContextHelp |
15afbcd0 | 5802 | |
41e2b43e RD |
5803 | Constructs a context help object, calling BeginContextHelp if doNow is |
5804 | true (the default). | |
15afbcd0 RD |
5805 | |
5806 | If window is None, the top window is used. | |
5807 | """ | |
0085ce49 RD |
5808 | _controls_.ContextHelp_swiginit(self,_controls_.new_ContextHelp(*args, **kwargs)) |
5809 | __swig_destroy__ = _controls_.delete_ContextHelp | |
5810 | __del__ = lambda self : None; | |
e811c8ce | 5811 | def BeginContextHelp(*args, **kwargs): |
15afbcd0 | 5812 | """ |
a95a7133 | 5813 | BeginContextHelp(self, Window window=None) -> bool |
15afbcd0 | 5814 | |
41e2b43e RD |
5815 | Puts the application into context-sensitive help mode. window is the |
5816 | window which will be used to catch events; if NULL, the top window | |
5817 | will be used. | |
15afbcd0 RD |
5818 | |
5819 | Returns true if the application was successfully put into | |
41e2b43e RD |
5820 | context-sensitive help mode. This function only returns when the event |
5821 | loop has finished. | |
15afbcd0 | 5822 | """ |
54f9ee45 | 5823 | return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs) |
e811c8ce RD |
5824 | |
5825 | def EndContextHelp(*args, **kwargs): | |
15afbcd0 | 5826 | """ |
a95a7133 | 5827 | EndContextHelp(self) -> bool |
15afbcd0 RD |
5828 | |
5829 | Ends context-sensitive help mode. Not normally called by the | |
5830 | application. | |
5831 | """ | |
54f9ee45 | 5832 | return _controls_.ContextHelp_EndContextHelp(*args, **kwargs) |
e811c8ce | 5833 | |
0085ce49 RD |
5834 | ContextHelp_swigregister = _controls_.ContextHelp_swigregister |
5835 | ContextHelp_swigregister(ContextHelp) | |
d14a1e28 RD |
5836 | |
5837 | class ContextHelpButton(BitmapButton): | |
15afbcd0 | 5838 | """ |
41e2b43e RD |
5839 | Instances of this class may be used to add a question mark button that |
5840 | when pressed, puts the application into context-help mode. It does | |
5841 | this by creating a wx.ContextHelp object which itself generates a | |
5842 | ``EVT_HELP`` event when the user clicks on a window. | |
5843 | ||
5844 | On Windows, you may add a question-mark icon to a dialog by use of the | |
5845 | ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you | |
5846 | will have to add a button explicitly, usually next to OK, Cancel or | |
5847 | similar buttons. | |
15afbcd0 | 5848 | |
41e2b43e | 5849 | :see: `wx.ContextHelp`, `wx.ContextHelpButton` |
15afbcd0 RD |
5850 | |
5851 | """ | |
0085ce49 RD |
5852 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5853 | __repr__ = _swig_repr | |
5854 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5855 | """ |
a95a7133 | 5856 | __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, |
0df68c9f | 5857 | Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton |
15afbcd0 RD |
5858 | |
5859 | Constructor, creating and showing a context help button. | |
0df68c9f | 5860 | """ |
0085ce49 | 5861 | _controls_.ContextHelpButton_swiginit(self,_controls_.new_ContextHelpButton(*args, **kwargs)) |
d14a1e28 | 5862 | self._setOORInfo(self) |
e811c8ce | 5863 | |
0085ce49 RD |
5864 | ContextHelpButton_swigregister = _controls_.ContextHelpButton_swigregister |
5865 | ContextHelpButton_swigregister(ContextHelpButton) | |
d14a1e28 RD |
5866 | |
5867 | class HelpProvider(object): | |
15afbcd0 RD |
5868 | """ |
5869 | wx.HelpProvider is an abstract class used by a program | |
5870 | implementing context-sensitive help to show the help text for the | |
5871 | given window. | |
5872 | ||
5873 | The current help provider must be explicitly set by the | |
5874 | application using wx.HelpProvider.Set(). | |
5875 | """ | |
0085ce49 RD |
5876 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5877 | def __init__(self): raise AttributeError, "No constructor defined" | |
5878 | __repr__ = _swig_repr | |
f52cbe90 RD |
5879 | __swig_destroy__ = _controls_.delete_HelpProvider |
5880 | __del__ = lambda self : None; | |
e811c8ce | 5881 | def Set(*args, **kwargs): |
15afbcd0 | 5882 | """ |
66c033b4 | 5883 | Set(HelpProvider helpProvider) -> HelpProvider |
15afbcd0 | 5884 | |
41e2b43e RD |
5885 | Sset the current, application-wide help provider. Returns the previous |
5886 | one. Unlike some other classes, the help provider is not created on | |
5887 | demand. This must be explicitly done by the application. | |
15afbcd0 | 5888 | """ |
54f9ee45 | 5889 | return _controls_.HelpProvider_Set(*args, **kwargs) |
e811c8ce RD |
5890 | |
5891 | Set = staticmethod(Set) | |
5892 | def Get(*args, **kwargs): | |
15afbcd0 | 5893 | """ |
66c033b4 | 5894 | Get() -> HelpProvider |
15afbcd0 RD |
5895 | |
5896 | Return the current application-wide help provider. | |
5897 | """ | |
54f9ee45 | 5898 | return _controls_.HelpProvider_Get(*args, **kwargs) |
e811c8ce RD |
5899 | |
5900 | Get = staticmethod(Get) | |
5901 | def GetHelp(*args, **kwargs): | |
15afbcd0 | 5902 | """ |
a95a7133 | 5903 | GetHelp(self, Window window) -> String |
15afbcd0 | 5904 | |
41e2b43e RD |
5905 | Gets the help string for this window. Its interpretation is dependent |
5906 | on the help provider except that empty string always means that no | |
5907 | help is associated with the window. | |
15afbcd0 | 5908 | """ |
54f9ee45 | 5909 | return _controls_.HelpProvider_GetHelp(*args, **kwargs) |
e811c8ce RD |
5910 | |
5911 | def ShowHelp(*args, **kwargs): | |
15afbcd0 | 5912 | """ |
a95a7133 | 5913 | ShowHelp(self, Window window) -> bool |
15afbcd0 RD |
5914 | |
5915 | Shows help for the given window. Uses GetHelp internally if | |
41e2b43e RD |
5916 | applicable. Returns True if it was done, or False if no help was |
5917 | available for this window. | |
15afbcd0 | 5918 | """ |
54f9ee45 | 5919 | return _controls_.HelpProvider_ShowHelp(*args, **kwargs) |
e811c8ce RD |
5920 | |
5921 | def AddHelp(*args, **kwargs): | |
15afbcd0 | 5922 | """ |
a95a7133 | 5923 | AddHelp(self, Window window, String text) |
15afbcd0 RD |
5924 | |
5925 | Associates the text with the given window. | |
5926 | """ | |
54f9ee45 | 5927 | return _controls_.HelpProvider_AddHelp(*args, **kwargs) |
e811c8ce RD |
5928 | |
5929 | def AddHelpById(*args, **kwargs): | |
15afbcd0 | 5930 | """ |
a95a7133 | 5931 | AddHelpById(self, int id, String text) |
15afbcd0 RD |
5932 | |
5933 | This version associates the given text with all windows with this | |
41e2b43e RD |
5934 | id. May be used to set the same help string for all Cancel buttons in |
5935 | the application, for example. | |
15afbcd0 | 5936 | """ |
54f9ee45 | 5937 | return _controls_.HelpProvider_AddHelpById(*args, **kwargs) |
e811c8ce | 5938 | |
15afbcd0 RD |
5939 | def RemoveHelp(*args, **kwargs): |
5940 | """ | |
a95a7133 | 5941 | RemoveHelp(self, Window window) |
15afbcd0 RD |
5942 | |
5943 | Removes the association between the window pointer and the help | |
41e2b43e RD |
5944 | text. This is called by the wx.Window destructor. Without this, the |
5945 | table of help strings will fill up and when window pointers are | |
5946 | reused, the wrong help string will be found. | |
15afbcd0 | 5947 | """ |
54f9ee45 | 5948 | return _controls_.HelpProvider_RemoveHelp(*args, **kwargs) |
15afbcd0 | 5949 | |
e811c8ce | 5950 | def Destroy(*args, **kwargs): |
a95a7133 | 5951 | """Destroy(self)""" |
7e08d4ef RD |
5952 | val = _controls_.HelpProvider_Destroy(*args, **kwargs) |
5953 | args[0].thisown = 0 | |
5954 | return val | |
e811c8ce | 5955 | |
0085ce49 RD |
5956 | HelpProvider_swigregister = _controls_.HelpProvider_swigregister |
5957 | HelpProvider_swigregister(HelpProvider) | |
d14a1e28 | 5958 | |
e811c8ce | 5959 | def HelpProvider_Set(*args, **kwargs): |
0085ce49 | 5960 | """ |
15afbcd0 RD |
5961 | HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider |
5962 | ||
41e2b43e RD |
5963 | Sset the current, application-wide help provider. Returns the previous |
5964 | one. Unlike some other classes, the help provider is not created on | |
5965 | demand. This must be explicitly done by the application. | |
15afbcd0 | 5966 | """ |
0085ce49 | 5967 | return _controls_.HelpProvider_Set(*args, **kwargs) |
7a9b33db | 5968 | |
0085ce49 RD |
5969 | def HelpProvider_Get(*args): |
5970 | """ | |
15afbcd0 RD |
5971 | HelpProvider_Get() -> HelpProvider |
5972 | ||
5973 | Return the current application-wide help provider. | |
5974 | """ | |
0085ce49 | 5975 | return _controls_.HelpProvider_Get(*args) |
d14a1e28 RD |
5976 | |
5977 | class SimpleHelpProvider(HelpProvider): | |
15afbcd0 | 5978 | """ |
41e2b43e RD |
5979 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
5980 | supports only plain text help strings, and shows the string associated | |
5981 | with the control (if any) in a tooltip. | |
15afbcd0 | 5982 | """ |
0085ce49 RD |
5983 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5984 | __repr__ = _swig_repr | |
5985 | def __init__(self, *args, **kwargs): | |
15afbcd0 | 5986 | """ |
a95a7133 | 5987 | __init__(self) -> SimpleHelpProvider |
15afbcd0 | 5988 | |
41e2b43e RD |
5989 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
5990 | supports only plain text help strings, and shows the string associated | |
5991 | with the control (if any) in a tooltip. | |
15afbcd0 | 5992 | """ |
0085ce49 RD |
5993 | _controls_.SimpleHelpProvider_swiginit(self,_controls_.new_SimpleHelpProvider(*args, **kwargs)) |
5994 | SimpleHelpProvider_swigregister = _controls_.SimpleHelpProvider_swigregister | |
5995 | SimpleHelpProvider_swigregister(SimpleHelpProvider) | |
70551f47 | 5996 | |
e811c8ce RD |
5997 | #--------------------------------------------------------------------------- |
5998 | ||
54f9ee45 | 5999 | class DragImage(_core.Object): |
093d3ff1 | 6000 | """Proxy of C++ DragImage class""" |
0085ce49 RD |
6001 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6002 | __repr__ = _swig_repr | |
6003 | def __init__(self, *args, **kwargs): | |
a95a7133 | 6004 | """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" |
0085ce49 RD |
6005 | _controls_.DragImage_swiginit(self,_controls_.new_DragImage(*args, **kwargs)) |
6006 | __swig_destroy__ = _controls_.delete_DragImage | |
6007 | __del__ = lambda self : None; | |
e811c8ce | 6008 | def SetBackingBitmap(*args, **kwargs): |
a95a7133 | 6009 | """SetBackingBitmap(self, Bitmap bitmap)""" |
54f9ee45 | 6010 | return _controls_.DragImage_SetBackingBitmap(*args, **kwargs) |
e811c8ce RD |
6011 | |
6012 | def BeginDrag(*args, **kwargs): | |
0df68c9f | 6013 | """ |
a95a7133 | 6014 | BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, |
0df68c9f RD |
6015 | Rect rect=None) -> bool |
6016 | """ | |
54f9ee45 | 6017 | return _controls_.DragImage_BeginDrag(*args, **kwargs) |
e811c8ce RD |
6018 | |
6019 | def BeginDragBounded(*args, **kwargs): | |
a95a7133 | 6020 | """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" |
54f9ee45 | 6021 | return _controls_.DragImage_BeginDragBounded(*args, **kwargs) |
e811c8ce RD |
6022 | |
6023 | def EndDrag(*args, **kwargs): | |
a95a7133 | 6024 | """EndDrag(self) -> bool""" |
54f9ee45 | 6025 | return _controls_.DragImage_EndDrag(*args, **kwargs) |
e811c8ce RD |
6026 | |
6027 | def Move(*args, **kwargs): | |
a95a7133 | 6028 | """Move(self, Point pt) -> bool""" |
54f9ee45 | 6029 | return _controls_.DragImage_Move(*args, **kwargs) |
e811c8ce RD |
6030 | |
6031 | def Show(*args, **kwargs): | |
a95a7133 | 6032 | """Show(self) -> bool""" |
54f9ee45 | 6033 | return _controls_.DragImage_Show(*args, **kwargs) |
e811c8ce RD |
6034 | |
6035 | def Hide(*args, **kwargs): | |
a95a7133 | 6036 | """Hide(self) -> bool""" |
54f9ee45 | 6037 | return _controls_.DragImage_Hide(*args, **kwargs) |
e811c8ce RD |
6038 | |
6039 | def GetImageRect(*args, **kwargs): | |
a95a7133 | 6040 | """GetImageRect(self, Point pos) -> Rect""" |
54f9ee45 | 6041 | return _controls_.DragImage_GetImageRect(*args, **kwargs) |
e811c8ce RD |
6042 | |
6043 | def DoDrawImage(*args, **kwargs): | |
a95a7133 | 6044 | """DoDrawImage(self, DC dc, Point pos) -> bool""" |
54f9ee45 | 6045 | return _controls_.DragImage_DoDrawImage(*args, **kwargs) |
e811c8ce RD |
6046 | |
6047 | def UpdateBackingFromWindow(*args, **kwargs): | |
a95a7133 | 6048 | """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" |
54f9ee45 | 6049 | return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs) |
e811c8ce RD |
6050 | |
6051 | def RedrawImage(*args, **kwargs): | |
a95a7133 | 6052 | """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" |
54f9ee45 | 6053 | return _controls_.DragImage_RedrawImage(*args, **kwargs) |
e811c8ce | 6054 | |
0085ce49 RD |
6055 | DragImage_swigregister = _controls_.DragImage_swigregister |
6056 | DragImage_swigregister(DragImage) | |
e811c8ce RD |
6057 | |
6058 | def DragIcon(*args, **kwargs): | |
b2dc1044 | 6059 | """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" |
54f9ee45 | 6060 | val = _controls_.new_DragIcon(*args, **kwargs) |
e811c8ce RD |
6061 | return val |
6062 | ||
6063 | def DragString(*args, **kwargs): | |
196addbf | 6064 | """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" |
54f9ee45 | 6065 | val = _controls_.new_DragString(*args, **kwargs) |
e811c8ce RD |
6066 | return val |
6067 | ||
6068 | def DragTreeItem(*args, **kwargs): | |
6069 | """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" | |
54f9ee45 | 6070 | val = _controls_.new_DragTreeItem(*args, **kwargs) |
e811c8ce RD |
6071 | return val |
6072 | ||
6073 | def DragListItem(*args, **kwargs): | |
6074 | """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" | |
54f9ee45 | 6075 | val = _controls_.new_DragListItem(*args, **kwargs) |
e811c8ce RD |
6076 | return val |
6077 | ||
53aa7709 RD |
6078 | #--------------------------------------------------------------------------- |
6079 | ||
6080 | DP_DEFAULT = _controls_.DP_DEFAULT | |
6081 | DP_SPIN = _controls_.DP_SPIN | |
6082 | DP_DROPDOWN = _controls_.DP_DROPDOWN | |
6083 | DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY | |
6084 | DP_ALLOWNONE = _controls_.DP_ALLOWNONE | |
6085 | class DatePickerCtrl(_core.Control): | |
6086 | """ | |
6087 | This control allows the user to select a date. Unlike | |
6088 | `wx.calendar.CalendarCtrl`, which is a relatively big control, | |
6089 | `wx.DatePickerCtrl` is implemented as a small window showing the | |
6090 | currently selected date. The control can be edited using the keyboard, | |
6091 | and can also display a popup window for more user-friendly date | |
6092 | selection, depending on the styles used and the platform. | |
6093 | """ | |
0085ce49 RD |
6094 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6095 | __repr__ = _swig_repr | |
6096 | def __init__(self, *args, **kwargs): | |
53aa7709 RD |
6097 | """ |
6098 | __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6099 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6100 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6101 | Validator validator=DefaultValidator, | |
6102 | String name=DatePickerCtrlNameStr) -> DatePickerCtrl | |
6103 | ||
6104 | Create a new DatePickerCtrl. | |
6105 | """ | |
0085ce49 | 6106 | _controls_.DatePickerCtrl_swiginit(self,_controls_.new_DatePickerCtrl(*args, **kwargs)) |
53aa7709 RD |
6107 | self._setOORInfo(self) |
6108 | ||
6109 | def Create(*args, **kwargs): | |
6110 | """ | |
6111 | Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6112 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6113 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6114 | Validator validator=DefaultValidator, | |
6115 | String name=DatePickerCtrlNameStr) -> bool | |
6116 | ||
6117 | Create the GUI parts of the DatePickerCtrl, for use in 2-phase | |
6118 | creation. | |
6119 | """ | |
6120 | return _controls_.DatePickerCtrl_Create(*args, **kwargs) | |
6121 | ||
6122 | def SetValue(*args, **kwargs): | |
6123 | """ | |
6124 | SetValue(self, DateTime dt) | |
6125 | ||
6126 | Changes the current value of the control. The date should be valid and | |
6127 | included in the currently selected range, if any. | |
6128 | ||
6129 | Calling this method does not result in a date change event. | |
6130 | """ | |
6131 | return _controls_.DatePickerCtrl_SetValue(*args, **kwargs) | |
6132 | ||
6133 | def GetValue(*args, **kwargs): | |
6134 | """ | |
6135 | GetValue(self) -> DateTime | |
6136 | ||
6137 | Returns the currently selected date. If there is no selection or the | |
6138 | selection is outside of the current range, an invalid `wx.DateTime` | |
6139 | object is returned. | |
6140 | """ | |
6141 | return _controls_.DatePickerCtrl_GetValue(*args, **kwargs) | |
6142 | ||
6143 | def SetRange(*args, **kwargs): | |
6144 | """ | |
6145 | SetRange(self, DateTime dt1, DateTime dt2) | |
6146 | ||
6147 | Sets the valid range for the date selection. If dt1 is valid, it | |
6148 | becomes the earliest date (inclusive) accepted by the control. If dt2 | |
6149 | is valid, it becomes the latest possible date. | |
6150 | ||
6151 | If the current value of the control is outside of the newly set range | |
6152 | bounds, the behaviour is undefined. | |
6153 | """ | |
6154 | return _controls_.DatePickerCtrl_SetRange(*args, **kwargs) | |
6155 | ||
6156 | def GetLowerLimit(*args, **kwargs): | |
6157 | """ | |
6158 | GetLowerLimit(self) -> DateTime | |
6159 | ||
6160 | Get the lower limit of the valid range for the date selection, if any. | |
6161 | If there is no range or there is no lower limit, then the | |
6162 | `wx.DateTime` value returned will be invalid. | |
6163 | """ | |
6164 | return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs) | |
6165 | ||
6166 | def GetUpperLimit(*args, **kwargs): | |
6167 | """ | |
6168 | GetUpperLimit(self) -> DateTime | |
6169 | ||
6170 | Get the upper limit of the valid range for the date selection, if any. | |
6171 | If there is no range or there is no upper limit, then the | |
6172 | `wx.DateTime` value returned will be invalid. | |
6173 | """ | |
6174 | return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs) | |
6175 | ||
0085ce49 RD |
6176 | DatePickerCtrl_swigregister = _controls_.DatePickerCtrl_swigregister |
6177 | DatePickerCtrl_swigregister(DatePickerCtrl) | |
53aa7709 RD |
6178 | DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr |
6179 | ||
6180 | def PreDatePickerCtrl(*args, **kwargs): | |
6181 | """ | |
6182 | PreDatePickerCtrl() -> DatePickerCtrl | |
6183 | ||
6184 | Precreate a DatePickerCtrl for use in 2-phase creation. | |
6185 | """ | |
6186 | val = _controls_.new_PreDatePickerCtrl(*args, **kwargs) | |
53aa7709 RD |
6187 | return val |
6188 | ||
70551f47 | 6189 | |
32fe5131 | 6190 |