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