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