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