]>
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 | ||
b02396e8 RD |
1754 | def SetModified(*args, **kwargs): |
1755 | """SetModified(self, bool modified)""" | |
1756 | return _controls_.TextCtrl_SetModified(*args, **kwargs) | |
1757 | ||
d55e5bfc RD |
1758 | def SetMaxLength(*args, **kwargs): |
1759 | """SetMaxLength(self, unsigned long len)""" | |
1760 | return _controls_.TextCtrl_SetMaxLength(*args, **kwargs) | |
1761 | ||
1762 | def WriteText(*args, **kwargs): | |
1763 | """WriteText(self, String text)""" | |
1764 | return _controls_.TextCtrl_WriteText(*args, **kwargs) | |
1765 | ||
1766 | def AppendText(*args, **kwargs): | |
1767 | """AppendText(self, String text)""" | |
1768 | return _controls_.TextCtrl_AppendText(*args, **kwargs) | |
1769 | ||
1770 | def EmulateKeyPress(*args, **kwargs): | |
1771 | """EmulateKeyPress(self, KeyEvent event) -> bool""" | |
1772 | return _controls_.TextCtrl_EmulateKeyPress(*args, **kwargs) | |
1773 | ||
1774 | def SetStyle(*args, **kwargs): | |
1775 | """SetStyle(self, long start, long end, TextAttr style) -> bool""" | |
1776 | return _controls_.TextCtrl_SetStyle(*args, **kwargs) | |
1777 | ||
1778 | def GetStyle(*args, **kwargs): | |
1779 | """GetStyle(self, long position, TextAttr style) -> bool""" | |
1780 | return _controls_.TextCtrl_GetStyle(*args, **kwargs) | |
1781 | ||
1782 | def SetDefaultStyle(*args, **kwargs): | |
1783 | """SetDefaultStyle(self, TextAttr style) -> bool""" | |
1784 | return _controls_.TextCtrl_SetDefaultStyle(*args, **kwargs) | |
1785 | ||
1786 | def GetDefaultStyle(*args, **kwargs): | |
1787 | """GetDefaultStyle(self) -> TextAttr""" | |
1788 | return _controls_.TextCtrl_GetDefaultStyle(*args, **kwargs) | |
1789 | ||
1790 | def XYToPosition(*args, **kwargs): | |
1791 | """XYToPosition(self, long x, long y) -> long""" | |
1792 | return _controls_.TextCtrl_XYToPosition(*args, **kwargs) | |
1793 | ||
1794 | def PositionToXY(*args, **kwargs): | |
1795 | """PositionToXY(long pos) -> (x, y)""" | |
1796 | return _controls_.TextCtrl_PositionToXY(*args, **kwargs) | |
1797 | ||
1798 | def ShowPosition(*args, **kwargs): | |
1799 | """ShowPosition(self, long pos)""" | |
1800 | return _controls_.TextCtrl_ShowPosition(*args, **kwargs) | |
1801 | ||
1802 | def HitTest(*args, **kwargs): | |
a001823c | 1803 | """ |
51b83b37 | 1804 | HitTest(Point pt) -> (result, col, row) |
a001823c | 1805 | |
4896ac9e RD |
1806 | Find the row, col coresponding to the character at the point given in |
1807 | pixels. NB: pt is in device coords but is not adjusted for the client | |
1808 | area origin nor scrolling. | |
a001823c | 1809 | """ |
d55e5bfc RD |
1810 | return _controls_.TextCtrl_HitTest(*args, **kwargs) |
1811 | ||
4896ac9e RD |
1812 | def HitTestPos(*args, **kwargs): |
1813 | """ | |
1814 | HitTestPos(Point pt) -> (result, position) | |
1815 | ||
1816 | Find the character position in the text coresponding to the point | |
1817 | given in pixels. NB: pt is in device coords but is not adjusted for | |
1818 | the client area origin nor scrolling. | |
1819 | """ | |
1820 | return _controls_.TextCtrl_HitTestPos(*args, **kwargs) | |
1821 | ||
d55e5bfc RD |
1822 | def Copy(*args, **kwargs): |
1823 | """Copy(self)""" | |
1824 | return _controls_.TextCtrl_Copy(*args, **kwargs) | |
1825 | ||
1826 | def Cut(*args, **kwargs): | |
1827 | """Cut(self)""" | |
1828 | return _controls_.TextCtrl_Cut(*args, **kwargs) | |
1829 | ||
1830 | def Paste(*args, **kwargs): | |
1831 | """Paste(self)""" | |
1832 | return _controls_.TextCtrl_Paste(*args, **kwargs) | |
1833 | ||
1834 | def CanCopy(*args, **kwargs): | |
1835 | """CanCopy(self) -> bool""" | |
1836 | return _controls_.TextCtrl_CanCopy(*args, **kwargs) | |
1837 | ||
1838 | def CanCut(*args, **kwargs): | |
1839 | """CanCut(self) -> bool""" | |
1840 | return _controls_.TextCtrl_CanCut(*args, **kwargs) | |
1841 | ||
1842 | def CanPaste(*args, **kwargs): | |
1843 | """CanPaste(self) -> bool""" | |
1844 | return _controls_.TextCtrl_CanPaste(*args, **kwargs) | |
1845 | ||
1846 | def Undo(*args, **kwargs): | |
1847 | """Undo(self)""" | |
1848 | return _controls_.TextCtrl_Undo(*args, **kwargs) | |
1849 | ||
1850 | def Redo(*args, **kwargs): | |
1851 | """Redo(self)""" | |
1852 | return _controls_.TextCtrl_Redo(*args, **kwargs) | |
1853 | ||
1854 | def CanUndo(*args, **kwargs): | |
1855 | """CanUndo(self) -> bool""" | |
1856 | return _controls_.TextCtrl_CanUndo(*args, **kwargs) | |
1857 | ||
1858 | def CanRedo(*args, **kwargs): | |
1859 | """CanRedo(self) -> bool""" | |
1860 | return _controls_.TextCtrl_CanRedo(*args, **kwargs) | |
1861 | ||
1862 | def SetInsertionPoint(*args, **kwargs): | |
1863 | """SetInsertionPoint(self, long pos)""" | |
1864 | return _controls_.TextCtrl_SetInsertionPoint(*args, **kwargs) | |
1865 | ||
1866 | def SetInsertionPointEnd(*args, **kwargs): | |
1867 | """SetInsertionPointEnd(self)""" | |
1868 | return _controls_.TextCtrl_SetInsertionPointEnd(*args, **kwargs) | |
1869 | ||
1870 | def GetInsertionPoint(*args, **kwargs): | |
1871 | """GetInsertionPoint(self) -> long""" | |
1872 | return _controls_.TextCtrl_GetInsertionPoint(*args, **kwargs) | |
1873 | ||
1874 | def GetLastPosition(*args, **kwargs): | |
1875 | """GetLastPosition(self) -> long""" | |
1876 | return _controls_.TextCtrl_GetLastPosition(*args, **kwargs) | |
1877 | ||
1878 | def SetSelection(*args, **kwargs): | |
1879 | """SetSelection(self, long from, long to)""" | |
1880 | return _controls_.TextCtrl_SetSelection(*args, **kwargs) | |
1881 | ||
1882 | def SelectAll(*args, **kwargs): | |
1883 | """SelectAll(self)""" | |
1884 | return _controls_.TextCtrl_SelectAll(*args, **kwargs) | |
1885 | ||
1886 | def SetEditable(*args, **kwargs): | |
1887 | """SetEditable(self, bool editable)""" | |
1888 | return _controls_.TextCtrl_SetEditable(*args, **kwargs) | |
1889 | ||
1890 | def ShowNativeCaret(*args, **kwargs): | |
1891 | """ShowNativeCaret(self, bool show=True) -> bool""" | |
1892 | return _controls_.TextCtrl_ShowNativeCaret(*args, **kwargs) | |
1893 | ||
1894 | def HideNativeCaret(*args, **kwargs): | |
1895 | """HideNativeCaret(self) -> bool""" | |
1896 | return _controls_.TextCtrl_HideNativeCaret(*args, **kwargs) | |
1897 | ||
1898 | def write(*args, **kwargs): | |
1899 | """write(self, String text)""" | |
1900 | return _controls_.TextCtrl_write(*args, **kwargs) | |
1901 | ||
1902 | def GetString(*args, **kwargs): | |
1903 | """GetString(self, long from, long to) -> String""" | |
1904 | return _controls_.TextCtrl_GetString(*args, **kwargs) | |
1905 | ||
f20a2e1f | 1906 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
1907 | """ |
1908 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1909 | ||
1910 | Get the default attributes for this class. This is useful if you want | |
1911 | to use the same font or colour in your own control as in a standard | |
1912 | control -- which is a much better idea than hard coding specific | |
1913 | colours or fonts which might look completely out of place on the | |
1914 | user's system, especially if it uses themes. | |
1915 | ||
1916 | The variant parameter is only relevant under Mac currently and is | |
1917 | ignore under other platforms. Under Mac, it will change the size of | |
1918 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1919 | this. | |
1920 | """ | |
f20a2e1f RD |
1921 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
1922 | ||
1923 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1924 | _controls_.TextCtrl_swigregister(TextCtrl) |
d55e5bfc RD |
1925 | |
1926 | def PreTextCtrl(*args, **kwargs): | |
1927 | """PreTextCtrl() -> TextCtrl""" | |
1928 | val = _controls_.new_PreTextCtrl(*args, **kwargs) | |
d55e5bfc RD |
1929 | return val |
1930 | ||
f20a2e1f | 1931 | def TextCtrl_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 1932 | """ |
19272049 RD |
1933 | TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1934 | ||
1935 | Get the default attributes for this class. This is useful if you want | |
1936 | to use the same font or colour in your own control as in a standard | |
1937 | control -- which is a much better idea than hard coding specific | |
1938 | colours or fonts which might look completely out of place on the | |
1939 | user's system, especially if it uses themes. | |
1940 | ||
1941 | The variant parameter is only relevant under Mac currently and is | |
1942 | ignore under other platforms. Under Mac, it will change the size of | |
1943 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1944 | this. | |
1945 | """ | |
554f62e9 | 1946 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 1947 | |
d55e5bfc RD |
1948 | wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED |
1949 | wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER | |
1950 | wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL | |
1951 | wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN | |
1952 | class TextUrlEvent(_core.CommandEvent): | |
093d3ff1 | 1953 | """Proxy of C++ TextUrlEvent class""" |
554f62e9 RD |
1954 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1955 | __repr__ = _swig_repr | |
1956 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1957 | """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" |
554f62e9 | 1958 | _controls_.TextUrlEvent_swiginit(self,_controls_.new_TextUrlEvent(*args, **kwargs)) |
d55e5bfc RD |
1959 | def GetMouseEvent(*args, **kwargs): |
1960 | """GetMouseEvent(self) -> MouseEvent""" | |
1961 | return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs) | |
1962 | ||
1963 | def GetURLStart(*args, **kwargs): | |
1964 | """GetURLStart(self) -> long""" | |
1965 | return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs) | |
1966 | ||
1967 | def GetURLEnd(*args, **kwargs): | |
1968 | """GetURLEnd(self) -> long""" | |
1969 | return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs) | |
1970 | ||
2131d850 | 1971 | _controls_.TextUrlEvent_swigregister(TextUrlEvent) |
d55e5bfc RD |
1972 | |
1973 | EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) | |
1974 | EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) | |
1975 | EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) | |
1976 | EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) | |
1977 | ||
1978 | #--------------------------------------------------------------------------- | |
1979 | ||
1980 | class ScrollBar(_core.Control): | |
093d3ff1 | 1981 | """Proxy of C++ ScrollBar class""" |
554f62e9 RD |
1982 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1983 | __repr__ = _swig_repr | |
1984 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
1985 | """ |
1986 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1987 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1988 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar | |
1989 | """ | |
554f62e9 | 1990 | _controls_.ScrollBar_swiginit(self,_controls_.new_ScrollBar(*args, **kwargs)) |
d55e5bfc RD |
1991 | self._setOORInfo(self) |
1992 | ||
1993 | def Create(*args, **kwargs): | |
1994 | """ | |
1995 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1996 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1997 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool | |
1998 | ||
1999 | Do the 2nd phase and create the GUI control. | |
2000 | """ | |
2001 | return _controls_.ScrollBar_Create(*args, **kwargs) | |
2002 | ||
2003 | def GetThumbPosition(*args, **kwargs): | |
2004 | """GetThumbPosition(self) -> int""" | |
2005 | return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs) | |
2006 | ||
2007 | def GetThumbSize(*args, **kwargs): | |
2008 | """GetThumbSize(self) -> int""" | |
2009 | return _controls_.ScrollBar_GetThumbSize(*args, **kwargs) | |
2010 | ||
2011 | GetThumbLength = GetThumbSize | |
2012 | def GetPageSize(*args, **kwargs): | |
2013 | """GetPageSize(self) -> int""" | |
2014 | return _controls_.ScrollBar_GetPageSize(*args, **kwargs) | |
2015 | ||
2016 | def GetRange(*args, **kwargs): | |
2017 | """GetRange(self) -> int""" | |
2018 | return _controls_.ScrollBar_GetRange(*args, **kwargs) | |
2019 | ||
2020 | def IsVertical(*args, **kwargs): | |
2021 | """IsVertical(self) -> bool""" | |
2022 | return _controls_.ScrollBar_IsVertical(*args, **kwargs) | |
2023 | ||
2024 | def SetThumbPosition(*args, **kwargs): | |
2025 | """SetThumbPosition(self, int viewStart)""" | |
2026 | return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs) | |
2027 | ||
f20a2e1f | 2028 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2029 | """ |
2030 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2031 | ||
2032 | Get the default attributes for this class. This is useful if you want | |
2033 | to use the same font or colour in your own control as in a standard | |
2034 | control -- which is a much better idea than hard coding specific | |
2035 | colours or fonts which might look completely out of place on the | |
2036 | user's system, especially if it uses themes. | |
2037 | ||
2038 | The variant parameter is only relevant under Mac currently and is | |
2039 | ignore under other platforms. Under Mac, it will change the size of | |
2040 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2041 | this. | |
2042 | """ | |
f20a2e1f RD |
2043 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
2044 | ||
2045 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2046 | _controls_.ScrollBar_swigregister(ScrollBar) |
d55e5bfc RD |
2047 | ScrollBarNameStr = cvar.ScrollBarNameStr |
2048 | ||
2049 | def PreScrollBar(*args, **kwargs): | |
2050 | """PreScrollBar() -> ScrollBar""" | |
2051 | val = _controls_.new_PreScrollBar(*args, **kwargs) | |
d55e5bfc RD |
2052 | return val |
2053 | ||
f20a2e1f | 2054 | def ScrollBar_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2055 | """ |
19272049 RD |
2056 | ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2057 | ||
2058 | Get the default attributes for this class. This is useful if you want | |
2059 | to use the same font or colour in your own control as in a standard | |
2060 | control -- which is a much better idea than hard coding specific | |
2061 | colours or fonts which might look completely out of place on the | |
2062 | user's system, especially if it uses themes. | |
2063 | ||
2064 | The variant parameter is only relevant under Mac currently and is | |
2065 | ignore under other platforms. Under Mac, it will change the size of | |
2066 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2067 | this. | |
2068 | """ | |
554f62e9 | 2069 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2070 | |
d55e5bfc RD |
2071 | #--------------------------------------------------------------------------- |
2072 | ||
2073 | SP_HORIZONTAL = _controls_.SP_HORIZONTAL | |
2074 | SP_VERTICAL = _controls_.SP_VERTICAL | |
2075 | SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS | |
2076 | SP_WRAP = _controls_.SP_WRAP | |
2077 | class SpinButton(_core.Control): | |
093d3ff1 | 2078 | """Proxy of C++ SpinButton class""" |
554f62e9 RD |
2079 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2080 | __repr__ = _swig_repr | |
2081 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2082 | """ |
2083 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2084 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
2085 | String name=SPIN_BUTTON_NAME) -> SpinButton | |
2086 | """ | |
554f62e9 | 2087 | _controls_.SpinButton_swiginit(self,_controls_.new_SpinButton(*args, **kwargs)) |
d55e5bfc RD |
2088 | self._setOORInfo(self) |
2089 | ||
2090 | def Create(*args, **kwargs): | |
2091 | """ | |
2092 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2093 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
2094 | String name=SPIN_BUTTON_NAME) -> bool | |
2095 | """ | |
2096 | return _controls_.SpinButton_Create(*args, **kwargs) | |
2097 | ||
2098 | def GetValue(*args, **kwargs): | |
2099 | """GetValue(self) -> int""" | |
2100 | return _controls_.SpinButton_GetValue(*args, **kwargs) | |
2101 | ||
2102 | def GetMin(*args, **kwargs): | |
2103 | """GetMin(self) -> int""" | |
2104 | return _controls_.SpinButton_GetMin(*args, **kwargs) | |
2105 | ||
2106 | def GetMax(*args, **kwargs): | |
2107 | """GetMax(self) -> int""" | |
2108 | return _controls_.SpinButton_GetMax(*args, **kwargs) | |
2109 | ||
2110 | def SetValue(*args, **kwargs): | |
2111 | """SetValue(self, int val)""" | |
2112 | return _controls_.SpinButton_SetValue(*args, **kwargs) | |
2113 | ||
2114 | def SetMin(*args, **kwargs): | |
2115 | """SetMin(self, int minVal)""" | |
2116 | return _controls_.SpinButton_SetMin(*args, **kwargs) | |
2117 | ||
2118 | def SetMax(*args, **kwargs): | |
2119 | """SetMax(self, int maxVal)""" | |
2120 | return _controls_.SpinButton_SetMax(*args, **kwargs) | |
2121 | ||
2122 | def SetRange(*args, **kwargs): | |
2123 | """SetRange(self, int minVal, int maxVal)""" | |
2124 | return _controls_.SpinButton_SetRange(*args, **kwargs) | |
2125 | ||
f20a2e1f RD |
2126 | def IsVertical(*args, **kwargs): |
2127 | """IsVertical(self) -> bool""" | |
2128 | return _controls_.SpinButton_IsVertical(*args, **kwargs) | |
2129 | ||
2130 | def GetClassDefaultAttributes(*args, **kwargs): | |
19272049 RD |
2131 | """ |
2132 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2133 | ||
2134 | Get the default attributes for this class. This is useful if you want | |
2135 | to use the same font or colour in your own control as in a standard | |
2136 | control -- which is a much better idea than hard coding specific | |
2137 | colours or fonts which might look completely out of place on the | |
2138 | user's system, especially if it uses themes. | |
2139 | ||
2140 | The variant parameter is only relevant under Mac currently and is | |
2141 | ignore under other platforms. Under Mac, it will change the size of | |
2142 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2143 | this. | |
2144 | """ | |
f20a2e1f | 2145 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
d55e5bfc | 2146 | |
f20a2e1f | 2147 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) |
2131d850 | 2148 | _controls_.SpinButton_swigregister(SpinButton) |
d55e5bfc RD |
2149 | SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME |
2150 | SpinCtrlNameStr = cvar.SpinCtrlNameStr | |
2151 | ||
2152 | def PreSpinButton(*args, **kwargs): | |
2153 | """PreSpinButton() -> SpinButton""" | |
2154 | val = _controls_.new_PreSpinButton(*args, **kwargs) | |
d55e5bfc RD |
2155 | return val |
2156 | ||
f20a2e1f | 2157 | def SpinButton_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2158 | """ |
19272049 RD |
2159 | SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2160 | ||
2161 | Get the default attributes for this class. This is useful if you want | |
2162 | to use the same font or colour in your own control as in a standard | |
2163 | control -- which is a much better idea than hard coding specific | |
2164 | colours or fonts which might look completely out of place on the | |
2165 | user's system, especially if it uses themes. | |
2166 | ||
2167 | The variant parameter is only relevant under Mac currently and is | |
2168 | ignore under other platforms. Under Mac, it will change the size of | |
2169 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2170 | this. | |
2171 | """ | |
554f62e9 | 2172 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2173 | |
d55e5bfc | 2174 | class SpinCtrl(_core.Control): |
093d3ff1 | 2175 | """Proxy of C++ SpinCtrl class""" |
554f62e9 RD |
2176 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2177 | __repr__ = _swig_repr | |
2178 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2179 | """ |
2180 | __init__(self, Window parent, int id=-1, String value=EmptyString, | |
2181 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2182 | long style=SP_ARROW_KEYS, int min=0, int max=100, | |
2183 | int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl | |
2184 | """ | |
554f62e9 | 2185 | _controls_.SpinCtrl_swiginit(self,_controls_.new_SpinCtrl(*args, **kwargs)) |
d55e5bfc RD |
2186 | self._setOORInfo(self) |
2187 | ||
2188 | def Create(*args, **kwargs): | |
2189 | """ | |
2190 | Create(self, Window parent, int id=-1, String value=EmptyString, | |
2191 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2192 | long style=SP_ARROW_KEYS, int min=0, int max=100, | |
2193 | int initial=0, String name=SpinCtrlNameStr) -> bool | |
2194 | """ | |
2195 | return _controls_.SpinCtrl_Create(*args, **kwargs) | |
2196 | ||
2197 | def GetValue(*args, **kwargs): | |
2198 | """GetValue(self) -> int""" | |
2199 | return _controls_.SpinCtrl_GetValue(*args, **kwargs) | |
2200 | ||
2201 | def SetValue(*args, **kwargs): | |
2202 | """SetValue(self, int value)""" | |
2203 | return _controls_.SpinCtrl_SetValue(*args, **kwargs) | |
2204 | ||
2205 | def SetValueString(*args, **kwargs): | |
2206 | """SetValueString(self, String text)""" | |
2207 | return _controls_.SpinCtrl_SetValueString(*args, **kwargs) | |
2208 | ||
2209 | def SetRange(*args, **kwargs): | |
2210 | """SetRange(self, int minVal, int maxVal)""" | |
2211 | return _controls_.SpinCtrl_SetRange(*args, **kwargs) | |
2212 | ||
2213 | def GetMin(*args, **kwargs): | |
2214 | """GetMin(self) -> int""" | |
2215 | return _controls_.SpinCtrl_GetMin(*args, **kwargs) | |
2216 | ||
2217 | def GetMax(*args, **kwargs): | |
2218 | """GetMax(self) -> int""" | |
2219 | return _controls_.SpinCtrl_GetMax(*args, **kwargs) | |
2220 | ||
2221 | def SetSelection(*args, **kwargs): | |
2222 | """SetSelection(self, long from, long to)""" | |
2223 | return _controls_.SpinCtrl_SetSelection(*args, **kwargs) | |
2224 | ||
f20a2e1f | 2225 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2226 | """ |
2227 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2228 | ||
2229 | Get the default attributes for this class. This is useful if you want | |
2230 | to use the same font or colour in your own control as in a standard | |
2231 | control -- which is a much better idea than hard coding specific | |
2232 | colours or fonts which might look completely out of place on the | |
2233 | user's system, especially if it uses themes. | |
2234 | ||
2235 | The variant parameter is only relevant under Mac currently and is | |
2236 | ignore under other platforms. Under Mac, it will change the size of | |
2237 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2238 | this. | |
2239 | """ | |
f20a2e1f RD |
2240 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
2241 | ||
2242 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2243 | _controls_.SpinCtrl_swigregister(SpinCtrl) |
d55e5bfc RD |
2244 | |
2245 | def PreSpinCtrl(*args, **kwargs): | |
2246 | """PreSpinCtrl() -> SpinCtrl""" | |
2247 | val = _controls_.new_PreSpinCtrl(*args, **kwargs) | |
d55e5bfc RD |
2248 | return val |
2249 | ||
f20a2e1f | 2250 | def SpinCtrl_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2251 | """ |
19272049 RD |
2252 | SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2253 | ||
2254 | Get the default attributes for this class. This is useful if you want | |
2255 | to use the same font or colour in your own control as in a standard | |
2256 | control -- which is a much better idea than hard coding specific | |
2257 | colours or fonts which might look completely out of place on the | |
2258 | user's system, especially if it uses themes. | |
2259 | ||
2260 | The variant parameter is only relevant under Mac currently and is | |
2261 | ignore under other platforms. Under Mac, it will change the size of | |
2262 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2263 | this. | |
2264 | """ | |
554f62e9 | 2265 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2266 | |
d55e5bfc | 2267 | class SpinEvent(_core.NotifyEvent): |
093d3ff1 | 2268 | """Proxy of C++ SpinEvent class""" |
554f62e9 RD |
2269 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2270 | __repr__ = _swig_repr | |
2271 | def __init__(self, *args, **kwargs): | |
f460c29d | 2272 | """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" |
554f62e9 | 2273 | _controls_.SpinEvent_swiginit(self,_controls_.new_SpinEvent(*args, **kwargs)) |
d55e5bfc RD |
2274 | def GetPosition(*args, **kwargs): |
2275 | """GetPosition(self) -> int""" | |
2276 | return _controls_.SpinEvent_GetPosition(*args, **kwargs) | |
2277 | ||
2278 | def SetPosition(*args, **kwargs): | |
2279 | """SetPosition(self, int pos)""" | |
2280 | return _controls_.SpinEvent_SetPosition(*args, **kwargs) | |
2281 | ||
2131d850 | 2282 | _controls_.SpinEvent_swigregister(SpinEvent) |
d55e5bfc RD |
2283 | |
2284 | wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED | |
2285 | EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) | |
2286 | EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) | |
2287 | EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) | |
2288 | EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) | |
2289 | ||
2290 | #--------------------------------------------------------------------------- | |
2291 | ||
2292 | class RadioBox(_core.Control): | |
093d3ff1 | 2293 | """Proxy of C++ RadioBox class""" |
554f62e9 RD |
2294 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2295 | __repr__ = _swig_repr | |
2296 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2297 | """ |
248ed943 RD |
2298 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2299 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2300 | wxArrayString choices=wxPyEmptyStringArray, | |
2301 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2302 | Validator validator=DefaultValidator, | |
d55e5bfc RD |
2303 | String name=RadioBoxNameStr) -> RadioBox |
2304 | """ | |
2305 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
554f62e9 | 2306 | _controls_.RadioBox_swiginit(self,_controls_.new_RadioBox(*args, **kwargs)) |
d55e5bfc RD |
2307 | self._setOORInfo(self) |
2308 | ||
2309 | def Create(*args, **kwargs): | |
2310 | """ | |
248ed943 RD |
2311 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2312 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2313 | wxArrayString choices=wxPyEmptyStringArray, | |
2314 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2315 | Validator validator=DefaultValidator, | |
d55e5bfc RD |
2316 | String name=RadioBoxNameStr) -> bool |
2317 | """ | |
2318 | return _controls_.RadioBox_Create(*args, **kwargs) | |
2319 | ||
2320 | def SetSelection(*args, **kwargs): | |
2321 | """SetSelection(self, int n)""" | |
2322 | return _controls_.RadioBox_SetSelection(*args, **kwargs) | |
2323 | ||
2324 | def GetSelection(*args, **kwargs): | |
2325 | """GetSelection(self) -> int""" | |
2326 | return _controls_.RadioBox_GetSelection(*args, **kwargs) | |
2327 | ||
2328 | def GetStringSelection(*args, **kwargs): | |
2329 | """GetStringSelection(self) -> String""" | |
2330 | return _controls_.RadioBox_GetStringSelection(*args, **kwargs) | |
2331 | ||
2332 | def SetStringSelection(*args, **kwargs): | |
2333 | """SetStringSelection(self, String s) -> bool""" | |
2334 | return _controls_.RadioBox_SetStringSelection(*args, **kwargs) | |
2335 | ||
2336 | def GetCount(*args, **kwargs): | |
1c71765a | 2337 | """GetCount(self) -> size_t""" |
d55e5bfc RD |
2338 | return _controls_.RadioBox_GetCount(*args, **kwargs) |
2339 | ||
2340 | def FindString(*args, **kwargs): | |
2341 | """FindString(self, String s) -> int""" | |
2342 | return _controls_.RadioBox_FindString(*args, **kwargs) | |
2343 | ||
2344 | def GetString(*args, **kwargs): | |
2345 | """GetString(self, int n) -> String""" | |
2346 | return _controls_.RadioBox_GetString(*args, **kwargs) | |
2347 | ||
2348 | def SetString(*args, **kwargs): | |
2349 | """SetString(self, int n, String label)""" | |
2350 | return _controls_.RadioBox_SetString(*args, **kwargs) | |
2351 | ||
2352 | GetItemLabel = GetString | |
2353 | SetItemLabel = SetString | |
2354 | def EnableItem(*args, **kwargs): | |
50f151d7 | 2355 | """EnableItem(self, unsigned int n, bool enable=True)""" |
d55e5bfc RD |
2356 | return _controls_.RadioBox_EnableItem(*args, **kwargs) |
2357 | ||
2358 | def ShowItem(*args, **kwargs): | |
50f151d7 | 2359 | """ShowItem(self, unsigned int n, bool show=True)""" |
d55e5bfc RD |
2360 | return _controls_.RadioBox_ShowItem(*args, **kwargs) |
2361 | ||
50f151d7 RD |
2362 | def IsItemEnabled(*args, **kwargs): |
2363 | """IsItemEnabled(self, unsigned int n) -> bool""" | |
2364 | return _controls_.RadioBox_IsItemEnabled(*args, **kwargs) | |
2365 | ||
2366 | def IsItemShown(*args, **kwargs): | |
2367 | """IsItemShown(self, unsigned int n) -> bool""" | |
2368 | return _controls_.RadioBox_IsItemShown(*args, **kwargs) | |
2369 | ||
d55e5bfc | 2370 | def GetColumnCount(*args, **kwargs): |
50f151d7 | 2371 | """GetColumnCount(self) -> unsigned int""" |
d55e5bfc RD |
2372 | return _controls_.RadioBox_GetColumnCount(*args, **kwargs) |
2373 | ||
2374 | def GetRowCount(*args, **kwargs): | |
50f151d7 | 2375 | """GetRowCount(self) -> unsigned int""" |
d55e5bfc RD |
2376 | return _controls_.RadioBox_GetRowCount(*args, **kwargs) |
2377 | ||
2378 | def GetNextItem(*args, **kwargs): | |
2379 | """GetNextItem(self, int item, int dir, long style) -> int""" | |
2380 | return _controls_.RadioBox_GetNextItem(*args, **kwargs) | |
2381 | ||
f460c29d RD |
2382 | def SetItemToolTip(*args, **kwargs): |
2383 | """SetItemToolTip(self, unsigned int item, String text)""" | |
2384 | return _controls_.RadioBox_SetItemToolTip(*args, **kwargs) | |
2385 | ||
2386 | def GetItemToolTip(*args, **kwargs): | |
2387 | """GetItemToolTip(self, unsigned int item) -> ToolTip""" | |
2388 | return _controls_.RadioBox_GetItemToolTip(*args, **kwargs) | |
2389 | ||
b850e7f3 RD |
2390 | def SetItemHelpText(*args, **kwargs): |
2391 | """SetItemHelpText(self, unsigned int n, String helpText)""" | |
2392 | return _controls_.RadioBox_SetItemHelpText(*args, **kwargs) | |
2393 | ||
2394 | def GetItemHelpText(*args, **kwargs): | |
2395 | """GetItemHelpText(self, unsigned int n) -> String""" | |
2396 | return _controls_.RadioBox_GetItemHelpText(*args, **kwargs) | |
2397 | ||
f20a2e1f | 2398 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2399 | """ |
2400 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2401 | ||
2402 | Get the default attributes for this class. This is useful if you want | |
2403 | to use the same font or colour in your own control as in a standard | |
2404 | control -- which is a much better idea than hard coding specific | |
2405 | colours or fonts which might look completely out of place on the | |
2406 | user's system, especially if it uses themes. | |
2407 | ||
2408 | The variant parameter is only relevant under Mac currently and is | |
2409 | ignore under other platforms. Under Mac, it will change the size of | |
2410 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2411 | this. | |
2412 | """ | |
f20a2e1f RD |
2413 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
2414 | ||
2415 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2416 | _controls_.RadioBox_swigregister(RadioBox) |
d55e5bfc RD |
2417 | RadioBoxNameStr = cvar.RadioBoxNameStr |
2418 | RadioButtonNameStr = cvar.RadioButtonNameStr | |
2419 | ||
2420 | def PreRadioBox(*args, **kwargs): | |
2421 | """PreRadioBox() -> RadioBox""" | |
2422 | val = _controls_.new_PreRadioBox(*args, **kwargs) | |
d55e5bfc RD |
2423 | return val |
2424 | ||
f20a2e1f | 2425 | def RadioBox_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2426 | """ |
19272049 RD |
2427 | RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2428 | ||
2429 | Get the default attributes for this class. This is useful if you want | |
2430 | to use the same font or colour in your own control as in a standard | |
2431 | control -- which is a much better idea than hard coding specific | |
2432 | colours or fonts which might look completely out of place on the | |
2433 | user's system, especially if it uses themes. | |
2434 | ||
2435 | The variant parameter is only relevant under Mac currently and is | |
2436 | ignore under other platforms. Under Mac, it will change the size of | |
2437 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2438 | this. | |
2439 | """ | |
554f62e9 | 2440 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2441 | |
d55e5bfc RD |
2442 | #--------------------------------------------------------------------------- |
2443 | ||
2444 | class RadioButton(_core.Control): | |
093d3ff1 | 2445 | """Proxy of C++ RadioButton class""" |
554f62e9 RD |
2446 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2447 | __repr__ = _swig_repr | |
2448 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2449 | """ |
248ed943 RD |
2450 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2451 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2452 | long style=0, Validator validator=DefaultValidator, | |
2453 | String name=RadioButtonNameStr) -> RadioButton | |
d55e5bfc | 2454 | """ |
554f62e9 | 2455 | _controls_.RadioButton_swiginit(self,_controls_.new_RadioButton(*args, **kwargs)) |
d55e5bfc RD |
2456 | self._setOORInfo(self) |
2457 | ||
2458 | def Create(*args, **kwargs): | |
2459 | """ | |
248ed943 RD |
2460 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2461 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2462 | long style=0, Validator validator=DefaultValidator, | |
2463 | String name=RadioButtonNameStr) -> bool | |
d55e5bfc RD |
2464 | """ |
2465 | return _controls_.RadioButton_Create(*args, **kwargs) | |
2466 | ||
2467 | def GetValue(*args, **kwargs): | |
2468 | """GetValue(self) -> bool""" | |
2469 | return _controls_.RadioButton_GetValue(*args, **kwargs) | |
2470 | ||
2471 | def SetValue(*args, **kwargs): | |
2472 | """SetValue(self, bool value)""" | |
2473 | return _controls_.RadioButton_SetValue(*args, **kwargs) | |
2474 | ||
f20a2e1f | 2475 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2476 | """ |
2477 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2478 | ||
2479 | Get the default attributes for this class. This is useful if you want | |
2480 | to use the same font or colour in your own control as in a standard | |
2481 | control -- which is a much better idea than hard coding specific | |
2482 | colours or fonts which might look completely out of place on the | |
2483 | user's system, especially if it uses themes. | |
2484 | ||
2485 | The variant parameter is only relevant under Mac currently and is | |
2486 | ignore under other platforms. Under Mac, it will change the size of | |
2487 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2488 | this. | |
2489 | """ | |
f20a2e1f RD |
2490 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
2491 | ||
2492 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2493 | _controls_.RadioButton_swigregister(RadioButton) |
d55e5bfc RD |
2494 | |
2495 | def PreRadioButton(*args, **kwargs): | |
2496 | """PreRadioButton() -> RadioButton""" | |
2497 | val = _controls_.new_PreRadioButton(*args, **kwargs) | |
d55e5bfc RD |
2498 | return val |
2499 | ||
f20a2e1f | 2500 | def RadioButton_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2501 | """ |
19272049 RD |
2502 | RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2503 | ||
2504 | Get the default attributes for this class. This is useful if you want | |
2505 | to use the same font or colour in your own control as in a standard | |
2506 | control -- which is a much better idea than hard coding specific | |
2507 | colours or fonts which might look completely out of place on the | |
2508 | user's system, especially if it uses themes. | |
2509 | ||
2510 | The variant parameter is only relevant under Mac currently and is | |
2511 | ignore under other platforms. Under Mac, it will change the size of | |
2512 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2513 | this. | |
2514 | """ | |
554f62e9 | 2515 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2516 | |
d55e5bfc RD |
2517 | #--------------------------------------------------------------------------- |
2518 | ||
fef4c27a RD |
2519 | SL_HORIZONTAL = _controls_.SL_HORIZONTAL |
2520 | SL_VERTICAL = _controls_.SL_VERTICAL | |
70b7a5fe | 2521 | SL_TICKS = _controls_.SL_TICKS |
fef4c27a RD |
2522 | SL_AUTOTICKS = _controls_.SL_AUTOTICKS |
2523 | SL_LABELS = _controls_.SL_LABELS | |
2524 | SL_LEFT = _controls_.SL_LEFT | |
2525 | SL_TOP = _controls_.SL_TOP | |
2526 | SL_RIGHT = _controls_.SL_RIGHT | |
2527 | SL_BOTTOM = _controls_.SL_BOTTOM | |
2528 | SL_BOTH = _controls_.SL_BOTH | |
2529 | SL_SELRANGE = _controls_.SL_SELRANGE | |
2530 | SL_INVERSE = _controls_.SL_INVERSE | |
d55e5bfc | 2531 | class Slider(_core.Control): |
093d3ff1 | 2532 | """Proxy of C++ Slider class""" |
554f62e9 RD |
2533 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2534 | __repr__ = _swig_repr | |
2535 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2536 | """ |
248ed943 RD |
2537 | __init__(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) -> Slider |
2542 | """ | |
2543 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
554f62e9 | 2544 | _controls_.Slider_swiginit(self,_controls_.new_Slider(*args, **kwargs)) |
d55e5bfc RD |
2545 | self._setOORInfo(self) |
2546 | ||
2547 | def Create(*args, **kwargs): | |
2548 | """ | |
248ed943 RD |
2549 | Create(self, Window parent, int id=-1, int value=0, int minValue=0, |
2550 | int maxValue=100, Point pos=DefaultPosition, | |
2551 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2552 | Validator validator=DefaultValidator, | |
d55e5bfc RD |
2553 | String name=SliderNameStr) -> bool |
2554 | """ | |
2555 | return _controls_.Slider_Create(*args, **kwargs) | |
2556 | ||
2557 | def GetValue(*args, **kwargs): | |
2558 | """GetValue(self) -> int""" | |
2559 | return _controls_.Slider_GetValue(*args, **kwargs) | |
2560 | ||
2561 | def SetValue(*args, **kwargs): | |
2562 | """SetValue(self, int value)""" | |
2563 | return _controls_.Slider_SetValue(*args, **kwargs) | |
2564 | ||
2565 | def SetRange(*args, **kwargs): | |
2566 | """SetRange(self, int minValue, int maxValue)""" | |
2567 | return _controls_.Slider_SetRange(*args, **kwargs) | |
2568 | ||
2569 | def GetMin(*args, **kwargs): | |
2570 | """GetMin(self) -> int""" | |
2571 | return _controls_.Slider_GetMin(*args, **kwargs) | |
2572 | ||
2573 | def GetMax(*args, **kwargs): | |
2574 | """GetMax(self) -> int""" | |
2575 | return _controls_.Slider_GetMax(*args, **kwargs) | |
2576 | ||
2577 | def SetMin(*args, **kwargs): | |
2578 | """SetMin(self, int minValue)""" | |
2579 | return _controls_.Slider_SetMin(*args, **kwargs) | |
2580 | ||
2581 | def SetMax(*args, **kwargs): | |
2582 | """SetMax(self, int maxValue)""" | |
2583 | return _controls_.Slider_SetMax(*args, **kwargs) | |
2584 | ||
2585 | def SetLineSize(*args, **kwargs): | |
2586 | """SetLineSize(self, int lineSize)""" | |
2587 | return _controls_.Slider_SetLineSize(*args, **kwargs) | |
2588 | ||
2589 | def SetPageSize(*args, **kwargs): | |
2590 | """SetPageSize(self, int pageSize)""" | |
2591 | return _controls_.Slider_SetPageSize(*args, **kwargs) | |
2592 | ||
2593 | def GetLineSize(*args, **kwargs): | |
2594 | """GetLineSize(self) -> int""" | |
2595 | return _controls_.Slider_GetLineSize(*args, **kwargs) | |
2596 | ||
2597 | def GetPageSize(*args, **kwargs): | |
2598 | """GetPageSize(self) -> int""" | |
2599 | return _controls_.Slider_GetPageSize(*args, **kwargs) | |
2600 | ||
2601 | def SetThumbLength(*args, **kwargs): | |
2602 | """SetThumbLength(self, int lenPixels)""" | |
2603 | return _controls_.Slider_SetThumbLength(*args, **kwargs) | |
2604 | ||
2605 | def GetThumbLength(*args, **kwargs): | |
2606 | """GetThumbLength(self) -> int""" | |
2607 | return _controls_.Slider_GetThumbLength(*args, **kwargs) | |
2608 | ||
2609 | def SetTickFreq(*args, **kwargs): | |
2610 | """SetTickFreq(self, int n, int pos=1)""" | |
2611 | return _controls_.Slider_SetTickFreq(*args, **kwargs) | |
2612 | ||
2613 | def GetTickFreq(*args, **kwargs): | |
2614 | """GetTickFreq(self) -> int""" | |
2615 | return _controls_.Slider_GetTickFreq(*args, **kwargs) | |
2616 | ||
2617 | def ClearTicks(*args, **kwargs): | |
2618 | """ClearTicks(self)""" | |
2619 | return _controls_.Slider_ClearTicks(*args, **kwargs) | |
2620 | ||
2621 | def SetTick(*args, **kwargs): | |
2622 | """SetTick(self, int tickPos)""" | |
2623 | return _controls_.Slider_SetTick(*args, **kwargs) | |
2624 | ||
2625 | def ClearSel(*args, **kwargs): | |
2626 | """ClearSel(self)""" | |
2627 | return _controls_.Slider_ClearSel(*args, **kwargs) | |
2628 | ||
2629 | def GetSelEnd(*args, **kwargs): | |
2630 | """GetSelEnd(self) -> int""" | |
2631 | return _controls_.Slider_GetSelEnd(*args, **kwargs) | |
2632 | ||
2633 | def GetSelStart(*args, **kwargs): | |
2634 | """GetSelStart(self) -> int""" | |
2635 | return _controls_.Slider_GetSelStart(*args, **kwargs) | |
2636 | ||
2637 | def SetSelection(*args, **kwargs): | |
2638 | """SetSelection(self, int min, int max)""" | |
2639 | return _controls_.Slider_SetSelection(*args, **kwargs) | |
2640 | ||
f20a2e1f | 2641 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2642 | """ |
2643 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2644 | ||
2645 | Get the default attributes for this class. This is useful if you want | |
2646 | to use the same font or colour in your own control as in a standard | |
2647 | control -- which is a much better idea than hard coding specific | |
2648 | colours or fonts which might look completely out of place on the | |
2649 | user's system, especially if it uses themes. | |
2650 | ||
2651 | The variant parameter is only relevant under Mac currently and is | |
2652 | ignore under other platforms. Under Mac, it will change the size of | |
2653 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2654 | this. | |
2655 | """ | |
f20a2e1f RD |
2656 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
2657 | ||
2658 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2659 | _controls_.Slider_swigregister(Slider) |
d55e5bfc RD |
2660 | SliderNameStr = cvar.SliderNameStr |
2661 | ||
2662 | def PreSlider(*args, **kwargs): | |
2663 | """PreSlider() -> Slider""" | |
2664 | val = _controls_.new_PreSlider(*args, **kwargs) | |
d55e5bfc RD |
2665 | return val |
2666 | ||
f20a2e1f | 2667 | def Slider_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2668 | """ |
19272049 RD |
2669 | Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2670 | ||
2671 | Get the default attributes for this class. This is useful if you want | |
2672 | to use the same font or colour in your own control as in a standard | |
2673 | control -- which is a much better idea than hard coding specific | |
2674 | colours or fonts which might look completely out of place on the | |
2675 | user's system, especially if it uses themes. | |
2676 | ||
2677 | The variant parameter is only relevant under Mac currently and is | |
2678 | ignore under other platforms. Under Mac, it will change the size of | |
2679 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2680 | this. | |
2681 | """ | |
554f62e9 | 2682 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2683 | |
d55e5bfc RD |
2684 | #--------------------------------------------------------------------------- |
2685 | ||
2686 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED | |
2687 | EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) | |
2688 | ||
2689 | class ToggleButton(_core.Control): | |
093d3ff1 | 2690 | """Proxy of C++ ToggleButton class""" |
554f62e9 RD |
2691 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2692 | __repr__ = _swig_repr | |
2693 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2694 | """ |
248ed943 RD |
2695 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2696 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2697 | long style=0, Validator validator=DefaultValidator, | |
2698 | String name=ToggleButtonNameStr) -> ToggleButton | |
d55e5bfc | 2699 | """ |
554f62e9 | 2700 | _controls_.ToggleButton_swiginit(self,_controls_.new_ToggleButton(*args, **kwargs)) |
d55e5bfc RD |
2701 | self._setOORInfo(self) |
2702 | ||
2703 | def Create(*args, **kwargs): | |
2704 | """ | |
248ed943 RD |
2705 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2706 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2707 | long style=0, Validator validator=DefaultValidator, | |
2708 | String name=ToggleButtonNameStr) -> bool | |
d55e5bfc RD |
2709 | """ |
2710 | return _controls_.ToggleButton_Create(*args, **kwargs) | |
2711 | ||
2712 | def SetValue(*args, **kwargs): | |
2713 | """SetValue(self, bool value)""" | |
2714 | return _controls_.ToggleButton_SetValue(*args, **kwargs) | |
2715 | ||
2716 | def GetValue(*args, **kwargs): | |
2717 | """GetValue(self) -> bool""" | |
2718 | return _controls_.ToggleButton_GetValue(*args, **kwargs) | |
2719 | ||
f20a2e1f | 2720 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2721 | """ |
2722 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2723 | ||
2724 | Get the default attributes for this class. This is useful if you want | |
2725 | to use the same font or colour in your own control as in a standard | |
2726 | control -- which is a much better idea than hard coding specific | |
2727 | colours or fonts which might look completely out of place on the | |
2728 | user's system, especially if it uses themes. | |
2729 | ||
2730 | The variant parameter is only relevant under Mac currently and is | |
2731 | ignore under other platforms. Under Mac, it will change the size of | |
2732 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2733 | this. | |
2734 | """ | |
f20a2e1f RD |
2735 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
2736 | ||
2737 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2738 | _controls_.ToggleButton_swigregister(ToggleButton) |
d55e5bfc RD |
2739 | ToggleButtonNameStr = cvar.ToggleButtonNameStr |
2740 | ||
2741 | def PreToggleButton(*args, **kwargs): | |
2742 | """PreToggleButton() -> ToggleButton""" | |
2743 | val = _controls_.new_PreToggleButton(*args, **kwargs) | |
d55e5bfc RD |
2744 | return val |
2745 | ||
f20a2e1f | 2746 | def ToggleButton_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2747 | """ |
19272049 RD |
2748 | ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2749 | ||
2750 | Get the default attributes for this class. This is useful if you want | |
2751 | to use the same font or colour in your own control as in a standard | |
2752 | control -- which is a much better idea than hard coding specific | |
2753 | colours or fonts which might look completely out of place on the | |
2754 | user's system, especially if it uses themes. | |
2755 | ||
2756 | The variant parameter is only relevant under Mac currently and is | |
2757 | ignore under other platforms. Under Mac, it will change the size of | |
2758 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2759 | this. | |
2760 | """ | |
554f62e9 | 2761 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2762 | |
d55e5bfc RD |
2763 | #--------------------------------------------------------------------------- |
2764 | ||
7e08d4ef RD |
2765 | BK_DEFAULT = _controls_.BK_DEFAULT |
2766 | BK_TOP = _controls_.BK_TOP | |
2767 | BK_BOTTOM = _controls_.BK_BOTTOM | |
2768 | BK_LEFT = _controls_.BK_LEFT | |
2769 | BK_RIGHT = _controls_.BK_RIGHT | |
2770 | BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK | |
e9d6f3a4 | 2771 | BK_BUTTONBAR = _controls_.BK_BUTTONBAR |
110fa173 RD |
2772 | BK_HITTEST_NOWHERE = _controls_.BK_HITTEST_NOWHERE |
2773 | BK_HITTEST_ONICON = _controls_.BK_HITTEST_ONICON | |
2774 | BK_HITTEST_ONLABEL = _controls_.BK_HITTEST_ONLABEL | |
2775 | BK_HITTEST_ONITEM = _controls_.BK_HITTEST_ONITEM | |
2776 | BK_HITTEST_ONPAGE = _controls_.BK_HITTEST_ONPAGE | |
8ac8dba0 | 2777 | class BookCtrlBase(_core.Control): |
093d3ff1 | 2778 | """Proxy of C++ BookCtrlBase class""" |
554f62e9 RD |
2779 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2780 | def __init__(self): raise AttributeError, "No constructor defined" | |
2781 | __repr__ = _swig_repr | |
d55e5bfc RD |
2782 | def GetPageCount(*args, **kwargs): |
2783 | """GetPageCount(self) -> size_t""" | |
8ac8dba0 | 2784 | return _controls_.BookCtrlBase_GetPageCount(*args, **kwargs) |
d55e5bfc RD |
2785 | |
2786 | def GetPage(*args, **kwargs): | |
2787 | """GetPage(self, size_t n) -> Window""" | |
8ac8dba0 | 2788 | return _controls_.BookCtrlBase_GetPage(*args, **kwargs) |
d55e5bfc | 2789 | |
8fb0e70a RD |
2790 | def GetCurrentPage(*args, **kwargs): |
2791 | """GetCurrentPage(self) -> Window""" | |
8ac8dba0 | 2792 | return _controls_.BookCtrlBase_GetCurrentPage(*args, **kwargs) |
8fb0e70a | 2793 | |
d55e5bfc RD |
2794 | def GetSelection(*args, **kwargs): |
2795 | """GetSelection(self) -> int""" | |
8ac8dba0 | 2796 | return _controls_.BookCtrlBase_GetSelection(*args, **kwargs) |
d55e5bfc RD |
2797 | |
2798 | def SetPageText(*args, **kwargs): | |
2799 | """SetPageText(self, size_t n, String strText) -> bool""" | |
8ac8dba0 | 2800 | return _controls_.BookCtrlBase_SetPageText(*args, **kwargs) |
d55e5bfc RD |
2801 | |
2802 | def GetPageText(*args, **kwargs): | |
2803 | """GetPageText(self, size_t n) -> String""" | |
8ac8dba0 | 2804 | return _controls_.BookCtrlBase_GetPageText(*args, **kwargs) |
d55e5bfc RD |
2805 | |
2806 | def SetImageList(*args, **kwargs): | |
2807 | """SetImageList(self, ImageList imageList)""" | |
8ac8dba0 | 2808 | return _controls_.BookCtrlBase_SetImageList(*args, **kwargs) |
d55e5bfc RD |
2809 | |
2810 | def AssignImageList(*args, **kwargs): | |
2811 | """AssignImageList(self, ImageList imageList)""" | |
8ac8dba0 | 2812 | return _controls_.BookCtrlBase_AssignImageList(*args, **kwargs) |
d55e5bfc RD |
2813 | |
2814 | def GetImageList(*args, **kwargs): | |
2815 | """GetImageList(self) -> ImageList""" | |
8ac8dba0 | 2816 | return _controls_.BookCtrlBase_GetImageList(*args, **kwargs) |
d55e5bfc RD |
2817 | |
2818 | def GetPageImage(*args, **kwargs): | |
2819 | """GetPageImage(self, size_t n) -> int""" | |
8ac8dba0 | 2820 | return _controls_.BookCtrlBase_GetPageImage(*args, **kwargs) |
d55e5bfc RD |
2821 | |
2822 | def SetPageImage(*args, **kwargs): | |
2823 | """SetPageImage(self, size_t n, int imageId) -> bool""" | |
8ac8dba0 | 2824 | return _controls_.BookCtrlBase_SetPageImage(*args, **kwargs) |
d55e5bfc RD |
2825 | |
2826 | def SetPageSize(*args, **kwargs): | |
2827 | """SetPageSize(self, Size size)""" | |
8ac8dba0 | 2828 | return _controls_.BookCtrlBase_SetPageSize(*args, **kwargs) |
d55e5bfc RD |
2829 | |
2830 | def CalcSizeFromPage(*args, **kwargs): | |
2831 | """CalcSizeFromPage(self, Size sizePage) -> Size""" | |
8ac8dba0 | 2832 | return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs) |
d55e5bfc | 2833 | |
7e08d4ef | 2834 | def GetInternalBorder(*args, **kwargs): |
e9d6f3a4 | 2835 | """GetInternalBorder(self) -> unsigned int""" |
7e08d4ef RD |
2836 | return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs) |
2837 | ||
2838 | def SetInternalBorder(*args, **kwargs): | |
e9d6f3a4 | 2839 | """SetInternalBorder(self, unsigned int internalBorder)""" |
7e08d4ef RD |
2840 | return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs) |
2841 | ||
2842 | def IsVertical(*args, **kwargs): | |
2843 | """IsVertical(self) -> bool""" | |
2844 | return _controls_.BookCtrlBase_IsVertical(*args, **kwargs) | |
2845 | ||
e9d6f3a4 RD |
2846 | def SetControlMargin(*args, **kwargs): |
2847 | """SetControlMargin(self, int margin)""" | |
2848 | return _controls_.BookCtrlBase_SetControlMargin(*args, **kwargs) | |
2849 | ||
2850 | def GetControlMargin(*args, **kwargs): | |
2851 | """GetControlMargin(self) -> int""" | |
2852 | return _controls_.BookCtrlBase_GetControlMargin(*args, **kwargs) | |
2853 | ||
b06b3e70 RD |
2854 | def SetFitToCurrentPage(*args, **kwargs): |
2855 | """SetFitToCurrentPage(self, bool fit)""" | |
2856 | return _controls_.BookCtrlBase_SetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2857 | |
b06b3e70 RD |
2858 | def GetFitToCurrentPage(*args, **kwargs): |
2859 | """GetFitToCurrentPage(self) -> bool""" | |
2860 | return _controls_.BookCtrlBase_GetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2861 | |
e9d6f3a4 RD |
2862 | def GetControlSizer(*args, **kwargs): |
2863 | """GetControlSizer(self) -> Sizer""" | |
2864 | return _controls_.BookCtrlBase_GetControlSizer(*args, **kwargs) | |
2865 | ||
d55e5bfc RD |
2866 | def DeletePage(*args, **kwargs): |
2867 | """DeletePage(self, size_t n) -> bool""" | |
8ac8dba0 | 2868 | return _controls_.BookCtrlBase_DeletePage(*args, **kwargs) |
d55e5bfc RD |
2869 | |
2870 | def RemovePage(*args, **kwargs): | |
2871 | """RemovePage(self, size_t n) -> bool""" | |
8ac8dba0 | 2872 | return _controls_.BookCtrlBase_RemovePage(*args, **kwargs) |
d55e5bfc RD |
2873 | |
2874 | def DeleteAllPages(*args, **kwargs): | |
2875 | """DeleteAllPages(self) -> bool""" | |
8ac8dba0 | 2876 | return _controls_.BookCtrlBase_DeleteAllPages(*args, **kwargs) |
d55e5bfc RD |
2877 | |
2878 | def AddPage(*args, **kwargs): | |
2879 | """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" | |
8ac8dba0 | 2880 | return _controls_.BookCtrlBase_AddPage(*args, **kwargs) |
d55e5bfc RD |
2881 | |
2882 | def InsertPage(*args, **kwargs): | |
2883 | """ | |
2884 | InsertPage(self, size_t n, Window page, String text, bool select=False, | |
2885 | int imageId=-1) -> bool | |
2886 | """ | |
8ac8dba0 | 2887 | return _controls_.BookCtrlBase_InsertPage(*args, **kwargs) |
d55e5bfc RD |
2888 | |
2889 | def SetSelection(*args, **kwargs): | |
2890 | """SetSelection(self, size_t n) -> int""" | |
8ac8dba0 | 2891 | return _controls_.BookCtrlBase_SetSelection(*args, **kwargs) |
d55e5bfc RD |
2892 | |
2893 | def AdvanceSelection(*args, **kwargs): | |
2894 | """AdvanceSelection(self, bool forward=True)""" | |
8ac8dba0 | 2895 | return _controls_.BookCtrlBase_AdvanceSelection(*args, **kwargs) |
d55e5bfc | 2896 | |
704eda0c RD |
2897 | def HitTest(*args, **kwargs): |
2898 | """ | |
2899 | HitTest(Point pt) -> (tab, where) | |
2900 | ||
2901 | Returns the page/tab which is hit, and flags indicating where using | |
2902 | wx.NB_HITTEST flags. | |
2903 | """ | |
2904 | return _controls_.BookCtrlBase_HitTest(*args, **kwargs) | |
2905 | ||
f20a2e1f | 2906 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
2907 | """ |
2908 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2909 | ||
2910 | Get the default attributes for this class. This is useful if you want | |
2911 | to use the same font or colour in your own control as in a standard | |
2912 | control -- which is a much better idea than hard coding specific | |
2913 | colours or fonts which might look completely out of place on the | |
2914 | user's system, especially if it uses themes. | |
2915 | ||
2916 | The variant parameter is only relevant under Mac currently and is | |
2917 | ignore under other platforms. Under Mac, it will change the size of | |
2918 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2919 | this. | |
2920 | """ | |
8ac8dba0 | 2921 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f RD |
2922 | |
2923 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 2924 | _controls_.BookCtrlBase_swigregister(BookCtrlBase) |
51b83b37 | 2925 | NotebookNameStr = cvar.NotebookNameStr |
d55e5bfc | 2926 | |
8ac8dba0 | 2927 | def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 2928 | """ |
8ac8dba0 | 2929 | BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
19272049 RD |
2930 | |
2931 | Get the default attributes for this class. This is useful if you want | |
2932 | to use the same font or colour in your own control as in a standard | |
2933 | control -- which is a much better idea than hard coding specific | |
2934 | colours or fonts which might look completely out of place on the | |
2935 | user's system, especially if it uses themes. | |
2936 | ||
2937 | The variant parameter is only relevant under Mac currently and is | |
2938 | ignore under other platforms. Under Mac, it will change the size of | |
2939 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2940 | this. | |
2941 | """ | |
554f62e9 | 2942 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 2943 | |
8ac8dba0 | 2944 | class BookCtrlBaseEvent(_core.NotifyEvent): |
093d3ff1 | 2945 | """Proxy of C++ BookCtrlBaseEvent class""" |
554f62e9 RD |
2946 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2947 | __repr__ = _swig_repr | |
2948 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2949 | """ |
f460c29d | 2950 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
8ac8dba0 | 2951 | int nOldSel=-1) -> BookCtrlBaseEvent |
d55e5bfc | 2952 | """ |
554f62e9 | 2953 | _controls_.BookCtrlBaseEvent_swiginit(self,_controls_.new_BookCtrlBaseEvent(*args, **kwargs)) |
d55e5bfc | 2954 | def GetSelection(*args, **kwargs): |
7a27cf7c RD |
2955 | """ |
2956 | GetSelection(self) -> int | |
2957 | ||
2958 | Returns item index for a listbox or choice selection event (not valid | |
2959 | for a deselection). | |
2960 | """ | |
8ac8dba0 | 2961 | return _controls_.BookCtrlBaseEvent_GetSelection(*args, **kwargs) |
d55e5bfc RD |
2962 | |
2963 | def SetSelection(*args, **kwargs): | |
2964 | """SetSelection(self, int nSel)""" | |
8ac8dba0 | 2965 | return _controls_.BookCtrlBaseEvent_SetSelection(*args, **kwargs) |
d55e5bfc RD |
2966 | |
2967 | def GetOldSelection(*args, **kwargs): | |
2968 | """GetOldSelection(self) -> int""" | |
8ac8dba0 | 2969 | return _controls_.BookCtrlBaseEvent_GetOldSelection(*args, **kwargs) |
d55e5bfc RD |
2970 | |
2971 | def SetOldSelection(*args, **kwargs): | |
2972 | """SetOldSelection(self, int nOldSel)""" | |
8ac8dba0 | 2973 | return _controls_.BookCtrlBaseEvent_SetOldSelection(*args, **kwargs) |
d55e5bfc | 2974 | |
2131d850 | 2975 | _controls_.BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent) |
d55e5bfc RD |
2976 | |
2977 | #--------------------------------------------------------------------------- | |
2978 | ||
2979 | NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH | |
2980 | NB_TOP = _controls_.NB_TOP | |
2981 | NB_LEFT = _controls_.NB_LEFT | |
2982 | NB_RIGHT = _controls_.NB_RIGHT | |
2983 | NB_BOTTOM = _controls_.NB_BOTTOM | |
2984 | NB_MULTILINE = _controls_.NB_MULTILINE | |
091fdbfa | 2985 | NB_NOPAGETHEME = _controls_.NB_NOPAGETHEME |
d55e5bfc RD |
2986 | NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE |
2987 | NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON | |
2988 | NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL | |
2989 | NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM | |
b02396e8 | 2990 | NB_HITTEST_ONPAGE = _controls_.NB_HITTEST_ONPAGE |
8ac8dba0 | 2991 | class Notebook(BookCtrlBase): |
093d3ff1 | 2992 | """Proxy of C++ Notebook class""" |
554f62e9 RD |
2993 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2994 | __repr__ = _swig_repr | |
2995 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2996 | """ |
2997 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
51b83b37 | 2998 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook |
d55e5bfc | 2999 | """ |
554f62e9 | 3000 | _controls_.Notebook_swiginit(self,_controls_.new_Notebook(*args, **kwargs)) |
d55e5bfc RD |
3001 | self._setOORInfo(self) |
3002 | ||
3003 | def Create(*args, **kwargs): | |
3004 | """ | |
248ed943 | 3005 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
51b83b37 | 3006 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool |
d55e5bfc RD |
3007 | """ |
3008 | return _controls_.Notebook_Create(*args, **kwargs) | |
3009 | ||
3010 | def GetRowCount(*args, **kwargs): | |
3011 | """GetRowCount(self) -> int""" | |
3012 | return _controls_.Notebook_GetRowCount(*args, **kwargs) | |
3013 | ||
3014 | def SetPadding(*args, **kwargs): | |
3015 | """SetPadding(self, Size padding)""" | |
3016 | return _controls_.Notebook_SetPadding(*args, **kwargs) | |
3017 | ||
3018 | def SetTabSize(*args, **kwargs): | |
3019 | """SetTabSize(self, Size sz)""" | |
3020 | return _controls_.Notebook_SetTabSize(*args, **kwargs) | |
3021 | ||
091fdbfa RD |
3022 | def GetThemeBackgroundColour(*args, **kwargs): |
3023 | """GetThemeBackgroundColour(self) -> Colour""" | |
3024 | return _controls_.Notebook_GetThemeBackgroundColour(*args, **kwargs) | |
3025 | ||
f20a2e1f | 3026 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
3027 | """ |
3028 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3029 | ||
3030 | Get the default attributes for this class. This is useful if you want | |
3031 | to use the same font or colour in your own control as in a standard | |
3032 | control -- which is a much better idea than hard coding specific | |
3033 | colours or fonts which might look completely out of place on the | |
3034 | user's system, especially if it uses themes. | |
3035 | ||
3036 | The variant parameter is only relevant under Mac currently and is | |
3037 | ignore under other platforms. Under Mac, it will change the size of | |
3038 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3039 | this. | |
3040 | """ | |
f20a2e1f RD |
3041 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
3042 | ||
3043 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 3044 | _controls_.Notebook_swigregister(Notebook) |
d55e5bfc RD |
3045 | |
3046 | def PreNotebook(*args, **kwargs): | |
3047 | """PreNotebook() -> Notebook""" | |
3048 | val = _controls_.new_PreNotebook(*args, **kwargs) | |
d55e5bfc RD |
3049 | return val |
3050 | ||
f20a2e1f | 3051 | def Notebook_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 3052 | """ |
19272049 RD |
3053 | Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
3054 | ||
3055 | Get the default attributes for this class. This is useful if you want | |
3056 | to use the same font or colour in your own control as in a standard | |
3057 | control -- which is a much better idea than hard coding specific | |
3058 | colours or fonts which might look completely out of place on the | |
3059 | user's system, especially if it uses themes. | |
3060 | ||
3061 | The variant parameter is only relevant under Mac currently and is | |
3062 | ignore under other platforms. Under Mac, it will change the size of | |
3063 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3064 | this. | |
3065 | """ | |
554f62e9 | 3066 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 3067 | |
8ac8dba0 | 3068 | class NotebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3069 | """Proxy of C++ NotebookEvent class""" |
554f62e9 RD |
3070 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3071 | __repr__ = _swig_repr | |
3072 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3073 | """ |
f460c29d | 3074 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
d55e5bfc RD |
3075 | int nOldSel=-1) -> NotebookEvent |
3076 | """ | |
554f62e9 | 3077 | _controls_.NotebookEvent_swiginit(self,_controls_.new_NotebookEvent(*args, **kwargs)) |
2131d850 | 3078 | _controls_.NotebookEvent_swigregister(NotebookEvent) |
d55e5bfc RD |
3079 | |
3080 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED | |
3081 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
3082 | # wxNotebook events | |
3083 | EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) | |
3084 | EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) | |
3085 | ||
3086 | #---------------------------------------------------------------------------- | |
3087 | ||
3088 | class NotebookPage(wx.Panel): | |
3089 | """ | |
3090 | There is an old (and apparently unsolvable) bug when placing a | |
fef4c27a | 3091 | window with a nonstandard background colour in a wx.Notebook on |
70b7a5fe | 3092 | wxGTK1, as the notbooks's background colour would always be used |
d55e5bfc RD |
3093 | when the window is refreshed. The solution is to place a panel in |
3094 | the notbook and the coloured window on the panel, sized to cover | |
3095 | the panel. This simple class does that for you, just put an | |
3096 | instance of this in the notebook and make your regular window a | |
3097 | child of this one and it will handle the resize for you. | |
3098 | """ | |
3099 | def __init__(self, parent, id=-1, | |
3100 | pos=wx.DefaultPosition, size=wx.DefaultSize, | |
3101 | style=wx.TAB_TRAVERSAL, name="panel"): | |
3102 | wx.Panel.__init__(self, parent, id, pos, size, style, name) | |
3103 | self.child = None | |
fef4c27a | 3104 | self.Bind(wx.EVT_SIZE, self.OnSize) |
ae8162c8 | 3105 | |
d55e5bfc RD |
3106 | def OnSize(self, evt): |
3107 | if self.child is None: | |
3108 | children = self.GetChildren() | |
3109 | if len(children): | |
3110 | self.child = children[0] | |
3111 | if self.child: | |
3112 | self.child.SetPosition((0,0)) | |
3113 | self.child.SetSize(self.GetSize()) | |
3114 | ||
3115 | ||
3116 | #--------------------------------------------------------------------------- | |
3117 | ||
3118 | LB_DEFAULT = _controls_.LB_DEFAULT | |
3119 | LB_TOP = _controls_.LB_TOP | |
3120 | LB_BOTTOM = _controls_.LB_BOTTOM | |
3121 | LB_LEFT = _controls_.LB_LEFT | |
3122 | LB_RIGHT = _controls_.LB_RIGHT | |
3123 | LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK | |
8ac8dba0 | 3124 | class Listbook(BookCtrlBase): |
093d3ff1 | 3125 | """Proxy of C++ Listbook class""" |
554f62e9 RD |
3126 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3127 | __repr__ = _swig_repr | |
3128 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
3129 | """ |
3130 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
3131 | Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook | |
3132 | """ | |
554f62e9 | 3133 | _controls_.Listbook_swiginit(self,_controls_.new_Listbook(*args, **kwargs)) |
d55e5bfc RD |
3134 | self._setOORInfo(self) |
3135 | ||
3136 | def Create(*args, **kwargs): | |
3137 | """ | |
248ed943 RD |
3138 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3139 | Size size=DefaultSize, long style=0, String name=EmptyString) -> bool | |
d55e5bfc RD |
3140 | """ |
3141 | return _controls_.Listbook_Create(*args, **kwargs) | |
3142 | ||
1fbf26be RD |
3143 | def GetListView(*args, **kwargs): |
3144 | """GetListView(self) -> ListView""" | |
3145 | return _controls_.Listbook_GetListView(*args, **kwargs) | |
3146 | ||
2131d850 | 3147 | _controls_.Listbook_swigregister(Listbook) |
d55e5bfc RD |
3148 | |
3149 | def PreListbook(*args, **kwargs): | |
3150 | """PreListbook() -> Listbook""" | |
3151 | val = _controls_.new_PreListbook(*args, **kwargs) | |
d55e5bfc RD |
3152 | return val |
3153 | ||
8ac8dba0 | 3154 | class ListbookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3155 | """Proxy of C++ ListbookEvent class""" |
554f62e9 RD |
3156 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3157 | __repr__ = _swig_repr | |
3158 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3159 | """ |
f460c29d | 3160 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
d55e5bfc RD |
3161 | int nOldSel=-1) -> ListbookEvent |
3162 | """ | |
554f62e9 | 3163 | _controls_.ListbookEvent_swiginit(self,_controls_.new_ListbookEvent(*args, **kwargs)) |
2131d850 | 3164 | _controls_.ListbookEvent_swigregister(ListbookEvent) |
d55e5bfc RD |
3165 | |
3166 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED | |
3167 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING | |
3168 | EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) | |
3169 | EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) | |
3170 | ||
ae8162c8 RD |
3171 | CHB_DEFAULT = _controls_.CHB_DEFAULT |
3172 | CHB_TOP = _controls_.CHB_TOP | |
3173 | CHB_BOTTOM = _controls_.CHB_BOTTOM | |
3174 | CHB_LEFT = _controls_.CHB_LEFT | |
3175 | CHB_RIGHT = _controls_.CHB_RIGHT | |
3176 | CHB_ALIGN_MASK = _controls_.CHB_ALIGN_MASK | |
8ac8dba0 | 3177 | class Choicebook(BookCtrlBase): |
093d3ff1 | 3178 | """Proxy of C++ Choicebook class""" |
554f62e9 RD |
3179 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3180 | __repr__ = _swig_repr | |
3181 | def __init__(self, *args, **kwargs): | |
ae8162c8 RD |
3182 | """ |
3183 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3184 | long style=0, String name=EmptyString) -> Choicebook | |
3185 | """ | |
554f62e9 | 3186 | _controls_.Choicebook_swiginit(self,_controls_.new_Choicebook(*args, **kwargs)) |
ae8162c8 RD |
3187 | self._setOORInfo(self) |
3188 | ||
3189 | def Create(*args, **kwargs): | |
3190 | """ | |
3191 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3192 | long style=0, String name=EmptyString) -> bool | |
3193 | """ | |
3194 | return _controls_.Choicebook_Create(*args, **kwargs) | |
3195 | ||
70b7a5fe RD |
3196 | def GetChoiceCtrl(*args, **kwargs): |
3197 | """GetChoiceCtrl(self) -> Choice""" | |
3198 | return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs) | |
3199 | ||
2131d850 | 3200 | _controls_.Choicebook_swigregister(Choicebook) |
ae8162c8 RD |
3201 | |
3202 | def PreChoicebook(*args, **kwargs): | |
3203 | """PreChoicebook() -> Choicebook""" | |
3204 | val = _controls_.new_PreChoicebook(*args, **kwargs) | |
ae8162c8 RD |
3205 | return val |
3206 | ||
8ac8dba0 | 3207 | class ChoicebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3208 | """Proxy of C++ ChoicebookEvent class""" |
554f62e9 RD |
3209 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3210 | __repr__ = _swig_repr | |
3211 | def __init__(self, *args, **kwargs): | |
ae8162c8 | 3212 | """ |
f460c29d | 3213 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
ae8162c8 RD |
3214 | int nOldSel=-1) -> ChoicebookEvent |
3215 | """ | |
554f62e9 | 3216 | _controls_.ChoicebookEvent_swiginit(self,_controls_.new_ChoicebookEvent(*args, **kwargs)) |
2131d850 | 3217 | _controls_.ChoicebookEvent_swigregister(ChoicebookEvent) |
ae8162c8 RD |
3218 | |
3219 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED | |
3220 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING | |
3221 | EVT_CHOICEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, 1 ) | |
3222 | EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, 1 ) | |
3223 | ||
d55e5bfc RD |
3224 | #--------------------------------------------------------------------------- |
3225 | ||
7e08d4ef RD |
3226 | class Treebook(BookCtrlBase): |
3227 | """Proxy of C++ Treebook class""" | |
554f62e9 RD |
3228 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3229 | __repr__ = _swig_repr | |
3230 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3231 | """ |
3232 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3233 | long style=BK_DEFAULT, | |
3234 | String name=EmptyString) -> Treebook | |
3235 | """ | |
554f62e9 | 3236 | _controls_.Treebook_swiginit(self,_controls_.new_Treebook(*args, **kwargs)) |
7e08d4ef RD |
3237 | self._setOORInfo(self) |
3238 | ||
3239 | def Create(*args, **kwargs): | |
3240 | """ | |
3241 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3242 | long style=BK_DEFAULT, | |
3243 | String name=EmptyString) -> bool | |
3244 | """ | |
3245 | return _controls_.Treebook_Create(*args, **kwargs) | |
3246 | ||
7e08d4ef RD |
3247 | def InsertSubPage(*args, **kwargs): |
3248 | """ | |
3249 | InsertSubPage(self, size_t pos, Window page, String text, bool select=False, | |
3250 | int imageId=NOT_FOUND) -> bool | |
3251 | """ | |
3252 | return _controls_.Treebook_InsertSubPage(*args, **kwargs) | |
3253 | ||
7e08d4ef RD |
3254 | def AddSubPage(*args, **kwargs): |
3255 | """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool""" | |
3256 | return _controls_.Treebook_AddSubPage(*args, **kwargs) | |
3257 | ||
7e08d4ef RD |
3258 | def IsNodeExpanded(*args, **kwargs): |
3259 | """IsNodeExpanded(self, size_t pos) -> bool""" | |
3260 | return _controls_.Treebook_IsNodeExpanded(*args, **kwargs) | |
3261 | ||
3262 | def ExpandNode(*args, **kwargs): | |
3263 | """ExpandNode(self, size_t pos, bool expand=True) -> bool""" | |
3264 | return _controls_.Treebook_ExpandNode(*args, **kwargs) | |
3265 | ||
3266 | def CollapseNode(*args, **kwargs): | |
3267 | """CollapseNode(self, size_t pos) -> bool""" | |
3268 | return _controls_.Treebook_CollapseNode(*args, **kwargs) | |
3269 | ||
3270 | def GetPageParent(*args, **kwargs): | |
3271 | """GetPageParent(self, size_t pos) -> int""" | |
3272 | return _controls_.Treebook_GetPageParent(*args, **kwargs) | |
3273 | ||
3274 | def GetTreeCtrl(*args, **kwargs): | |
3275 | """GetTreeCtrl(self) -> wxTreeCtrl""" | |
3276 | return _controls_.Treebook_GetTreeCtrl(*args, **kwargs) | |
3277 | ||
2131d850 | 3278 | _controls_.Treebook_swigregister(Treebook) |
7e08d4ef RD |
3279 | |
3280 | def PreTreebook(*args, **kwargs): | |
3281 | """PreTreebook() -> Treebook""" | |
3282 | val = _controls_.new_PreTreebook(*args, **kwargs) | |
7e08d4ef RD |
3283 | return val |
3284 | ||
3285 | class TreebookEvent(BookCtrlBaseEvent): | |
3286 | """Proxy of C++ TreebookEvent class""" | |
554f62e9 RD |
3287 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3288 | __repr__ = _swig_repr | |
3289 | def __init__(self, *args, **kwargs): | |
7e08d4ef | 3290 | """ |
f460c29d | 3291 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, |
7e08d4ef RD |
3292 | int nOldSel=NOT_FOUND) -> TreebookEvent |
3293 | """ | |
554f62e9 | 3294 | _controls_.TreebookEvent_swiginit(self,_controls_.new_TreebookEvent(*args, **kwargs)) |
2131d850 | 3295 | _controls_.TreebookEvent_swigregister(TreebookEvent) |
7e08d4ef RD |
3296 | |
3297 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED | |
3298 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING | |
3299 | wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED | |
3300 | wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED | |
3301 | EVT_TREEBOOK_PAGE_CHANGED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, 1 ) | |
3302 | EVT_TREEBOOK_PAGE_CHANGING= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING, 1) | |
3303 | EVT_TREEBOOK_NODE_COLLAPSED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED, 1 ) | |
3304 | EVT_TREEBOOK_NODE_EXPANDED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED, 1 ) | |
3305 | ||
3306 | #--------------------------------------------------------------------------- | |
3307 | ||
3308 | class Toolbook(BookCtrlBase): | |
3309 | """Proxy of C++ Toolbook class""" | |
554f62e9 RD |
3310 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3311 | __repr__ = _swig_repr | |
3312 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3313 | """ |
3314 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3315 | long style=BK_DEFAULT, | |
3316 | String name=EmptyString) -> Toolbook | |
3317 | """ | |
554f62e9 | 3318 | _controls_.Toolbook_swiginit(self,_controls_.new_Toolbook(*args, **kwargs)) |
7e08d4ef RD |
3319 | self._setOORInfo(self) |
3320 | ||
3321 | def Create(*args, **kwargs): | |
3322 | """ | |
3323 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3324 | long style=0, String name=wxEmptyString) -> bool | |
3325 | """ | |
3326 | return _controls_.Toolbook_Create(*args, **kwargs) | |
3327 | ||
3328 | def GetToolBar(*args, **kwargs): | |
3329 | """GetToolBar(self) -> ToolBarBase""" | |
3330 | return _controls_.Toolbook_GetToolBar(*args, **kwargs) | |
3331 | ||
3332 | def Realize(*args, **kwargs): | |
3333 | """Realize(self)""" | |
3334 | return _controls_.Toolbook_Realize(*args, **kwargs) | |
3335 | ||
2131d850 | 3336 | _controls_.Toolbook_swigregister(Toolbook) |
7e08d4ef RD |
3337 | |
3338 | def PreToolbook(*args, **kwargs): | |
3339 | """PreToolbook() -> Toolbook""" | |
3340 | val = _controls_.new_PreToolbook(*args, **kwargs) | |
7e08d4ef RD |
3341 | return val |
3342 | ||
3343 | class ToolbookEvent(BookCtrlBaseEvent): | |
3344 | """Proxy of C++ ToolbookEvent class""" | |
554f62e9 RD |
3345 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3346 | __repr__ = _swig_repr | |
3347 | def __init__(self, *args, **kwargs): | |
7e08d4ef | 3348 | """ |
f460c29d | 3349 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, |
7e08d4ef RD |
3350 | int nOldSel=NOT_FOUND) -> ToolbookEvent |
3351 | """ | |
554f62e9 | 3352 | _controls_.ToolbookEvent_swiginit(self,_controls_.new_ToolbookEvent(*args, **kwargs)) |
2131d850 | 3353 | _controls_.ToolbookEvent_swigregister(ToolbookEvent) |
7e08d4ef RD |
3354 | |
3355 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED | |
3356 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING | |
3357 | EVT_TOOLBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED, 1) | |
3358 | EVT_TOOLBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, 1) | |
3359 | ||
d55e5bfc RD |
3360 | #--------------------------------------------------------------------------- |
3361 | ||
3362 | TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON | |
3363 | TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR | |
3364 | TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL | |
3365 | TB_HORIZONTAL = _controls_.TB_HORIZONTAL | |
3366 | TB_VERTICAL = _controls_.TB_VERTICAL | |
3367 | TB_3DBUTTONS = _controls_.TB_3DBUTTONS | |
3368 | TB_FLAT = _controls_.TB_FLAT | |
3369 | TB_DOCKABLE = _controls_.TB_DOCKABLE | |
3370 | TB_NOICONS = _controls_.TB_NOICONS | |
3371 | TB_TEXT = _controls_.TB_TEXT | |
3372 | TB_NODIVIDER = _controls_.TB_NODIVIDER | |
3373 | TB_NOALIGN = _controls_.TB_NOALIGN | |
3374 | TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT | |
3375 | TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT | |
704eda0c | 3376 | TB_NO_TOOLTIPS = _controls_.TB_NO_TOOLTIPS |
d55e5bfc | 3377 | class ToolBarToolBase(_core.Object): |
093d3ff1 | 3378 | """Proxy of C++ ToolBarToolBase class""" |
554f62e9 RD |
3379 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3380 | def __init__(self): raise AttributeError, "No constructor defined" | |
3381 | __repr__ = _swig_repr | |
d55e5bfc RD |
3382 | def GetId(*args, **kwargs): |
3383 | """GetId(self) -> int""" | |
3384 | return _controls_.ToolBarToolBase_GetId(*args, **kwargs) | |
3385 | ||
3386 | def GetControl(*args, **kwargs): | |
3387 | """GetControl(self) -> Control""" | |
3388 | return _controls_.ToolBarToolBase_GetControl(*args, **kwargs) | |
3389 | ||
3390 | def GetToolBar(*args, **kwargs): | |
3391 | """GetToolBar(self) -> ToolBarBase""" | |
3392 | return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs) | |
3393 | ||
3394 | def IsButton(*args, **kwargs): | |
3395 | """IsButton(self) -> int""" | |
3396 | return _controls_.ToolBarToolBase_IsButton(*args, **kwargs) | |
3397 | ||
3398 | def IsControl(*args, **kwargs): | |
3399 | """IsControl(self) -> int""" | |
3400 | return _controls_.ToolBarToolBase_IsControl(*args, **kwargs) | |
3401 | ||
3402 | def IsSeparator(*args, **kwargs): | |
3403 | """IsSeparator(self) -> int""" | |
3404 | return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs) | |
3405 | ||
3406 | def GetStyle(*args, **kwargs): | |
3407 | """GetStyle(self) -> int""" | |
3408 | return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs) | |
3409 | ||
3410 | def GetKind(*args, **kwargs): | |
3411 | """GetKind(self) -> int""" | |
3412 | return _controls_.ToolBarToolBase_GetKind(*args, **kwargs) | |
3413 | ||
3414 | def IsEnabled(*args, **kwargs): | |
3415 | """IsEnabled(self) -> bool""" | |
3416 | return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs) | |
3417 | ||
3418 | def IsToggled(*args, **kwargs): | |
3419 | """IsToggled(self) -> bool""" | |
3420 | return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs) | |
3421 | ||
3422 | def CanBeToggled(*args, **kwargs): | |
3423 | """CanBeToggled(self) -> bool""" | |
3424 | return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs) | |
3425 | ||
3426 | def GetNormalBitmap(*args, **kwargs): | |
3427 | """GetNormalBitmap(self) -> Bitmap""" | |
3428 | return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) | |
3429 | ||
3430 | def GetDisabledBitmap(*args, **kwargs): | |
3431 | """GetDisabledBitmap(self) -> Bitmap""" | |
3432 | return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) | |
3433 | ||
3434 | def GetBitmap(*args, **kwargs): | |
3435 | """GetBitmap(self) -> Bitmap""" | |
3436 | return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs) | |
3437 | ||
3438 | def GetLabel(*args, **kwargs): | |
3439 | """GetLabel(self) -> String""" | |
3440 | return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs) | |
3441 | ||
3442 | def GetShortHelp(*args, **kwargs): | |
3443 | """GetShortHelp(self) -> String""" | |
3444 | return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs) | |
3445 | ||
3446 | def GetLongHelp(*args, **kwargs): | |
3447 | """GetLongHelp(self) -> String""" | |
3448 | return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs) | |
3449 | ||
3450 | def Enable(*args, **kwargs): | |
3451 | """Enable(self, bool enable) -> bool""" | |
3452 | return _controls_.ToolBarToolBase_Enable(*args, **kwargs) | |
3453 | ||
3454 | def Toggle(*args, **kwargs): | |
3455 | """Toggle(self)""" | |
3456 | return _controls_.ToolBarToolBase_Toggle(*args, **kwargs) | |
3457 | ||
3458 | def SetToggle(*args, **kwargs): | |
3459 | """SetToggle(self, bool toggle) -> bool""" | |
3460 | return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs) | |
3461 | ||
3462 | def SetShortHelp(*args, **kwargs): | |
3463 | """SetShortHelp(self, String help) -> bool""" | |
3464 | return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs) | |
3465 | ||
3466 | def SetLongHelp(*args, **kwargs): | |
3467 | """SetLongHelp(self, String help) -> bool""" | |
3468 | return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs) | |
3469 | ||
3470 | def SetNormalBitmap(*args, **kwargs): | |
3471 | """SetNormalBitmap(self, Bitmap bmp)""" | |
3472 | return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) | |
3473 | ||
3474 | def SetDisabledBitmap(*args, **kwargs): | |
3475 | """SetDisabledBitmap(self, Bitmap bmp)""" | |
3476 | return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) | |
3477 | ||
3478 | def SetLabel(*args, **kwargs): | |
3479 | """SetLabel(self, String label)""" | |
3480 | return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs) | |
3481 | ||
3482 | def Detach(*args, **kwargs): | |
3483 | """Detach(self)""" | |
3484 | return _controls_.ToolBarToolBase_Detach(*args, **kwargs) | |
3485 | ||
3486 | def Attach(*args, **kwargs): | |
3487 | """Attach(self, ToolBarBase tbar)""" | |
3488 | return _controls_.ToolBarToolBase_Attach(*args, **kwargs) | |
3489 | ||
3490 | def GetClientData(*args, **kwargs): | |
3491 | """GetClientData(self) -> PyObject""" | |
3492 | return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs) | |
3493 | ||
3494 | def SetClientData(*args, **kwargs): | |
3495 | """SetClientData(self, PyObject clientData)""" | |
3496 | return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs) | |
3497 | ||
3498 | GetBitmap1 = GetNormalBitmap | |
3499 | GetBitmap2 = GetDisabledBitmap | |
3500 | SetBitmap1 = SetNormalBitmap | |
3501 | SetBitmap2 = SetDisabledBitmap | |
3502 | ||
2131d850 | 3503 | _controls_.ToolBarToolBase_swigregister(ToolBarToolBase) |
d55e5bfc RD |
3504 | |
3505 | class ToolBarBase(_core.Control): | |
093d3ff1 | 3506 | """Proxy of C++ ToolBarBase class""" |
554f62e9 RD |
3507 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3508 | def __init__(self): raise AttributeError, "No constructor defined" | |
3509 | __repr__ = _swig_repr | |
d55e5bfc RD |
3510 | def DoAddTool(*args, **kwargs): |
3511 | """ | |
3512 | DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, | |
3513 | int kind=ITEM_NORMAL, String shortHelp=EmptyString, | |
3514 | String longHelp=EmptyString, | |
3515 | PyObject clientData=None) -> ToolBarToolBase | |
3516 | """ | |
3517 | return _controls_.ToolBarBase_DoAddTool(*args, **kwargs) | |
3518 | ||
3519 | def DoInsertTool(*args, **kwargs): | |
3520 | """ | |
3521 | DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, | |
3522 | int kind=ITEM_NORMAL, | |
3523 | String shortHelp=EmptyString, String longHelp=EmptyString, | |
3524 | PyObject clientData=None) -> ToolBarToolBase | |
3525 | """ | |
3526 | return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs) | |
3527 | ||
3528 | # These match the original Add methods for this class, kept for | |
3529 | # backwards compatibility with versions < 2.3.3. | |
3530 | ||
3531 | ||
3532 | def AddTool(self, id, bitmap, | |
3533 | pushedBitmap = wx.NullBitmap, | |
3534 | isToggle = 0, | |
3535 | clientData = None, | |
3536 | shortHelpString = '', | |
3537 | longHelpString = '') : | |
3538 | '''Old style method to add a tool to the toolbar.''' | |
3539 | kind = wx.ITEM_NORMAL | |
3540 | if isToggle: kind = wx.ITEM_CHECK | |
3541 | return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, | |
3542 | shortHelpString, longHelpString, clientData) | |
3543 | ||
3544 | def AddSimpleTool(self, id, bitmap, | |
3545 | shortHelpString = '', | |
3546 | longHelpString = '', | |
3547 | isToggle = 0): | |
3548 | '''Old style method to add a tool to the toolbar.''' | |
3549 | kind = wx.ITEM_NORMAL | |
3550 | if isToggle: kind = wx.ITEM_CHECK | |
3551 | return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, | |
3552 | shortHelpString, longHelpString, None) | |
3553 | ||
3554 | def InsertTool(self, pos, id, bitmap, | |
3555 | pushedBitmap = wx.NullBitmap, | |
3556 | isToggle = 0, | |
3557 | clientData = None, | |
3558 | shortHelpString = '', | |
3559 | longHelpString = ''): | |
3560 | '''Old style method to insert a tool in the toolbar.''' | |
3561 | kind = wx.ITEM_NORMAL | |
3562 | if isToggle: kind = wx.ITEM_CHECK | |
3563 | return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, | |
3564 | shortHelpString, longHelpString, clientData) | |
3565 | ||
3566 | def InsertSimpleTool(self, pos, id, bitmap, | |
3567 | shortHelpString = '', | |
3568 | longHelpString = '', | |
3569 | isToggle = 0): | |
3570 | '''Old style method to insert a tool in the toolbar.''' | |
3571 | kind = wx.ITEM_NORMAL | |
3572 | if isToggle: kind = wx.ITEM_CHECK | |
3573 | return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, | |
3574 | shortHelpString, longHelpString, None) | |
3575 | ||
3576 | ||
3577 | # The following are the new toolbar Add methods starting with | |
3578 | # 2.3.3. They are renamed to have 'Label' in the name so as to be | |
3579 | # able to keep backwards compatibility with using the above | |
3580 | # methods. Eventually these should migrate to be the methods used | |
3581 | # primarily and lose the 'Label' in the name... | |
3582 | ||
3583 | def AddLabelTool(self, id, label, bitmap, | |
3584 | bmpDisabled = wx.NullBitmap, | |
3585 | kind = wx.ITEM_NORMAL, | |
3586 | shortHelp = '', longHelp = '', | |
3587 | clientData = None): | |
3588 | ''' | |
3589 | The full AddTool() function. | |
3590 | ||
3591 | If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap | |
3592 | is created and used as the disabled image. | |
3593 | ''' | |
3594 | return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, | |
3595 | shortHelp, longHelp, clientData) | |
3596 | ||
3597 | ||
3598 | def InsertLabelTool(self, pos, id, label, bitmap, | |
3599 | bmpDisabled = wx.NullBitmap, | |
3600 | kind = wx.ITEM_NORMAL, | |
3601 | shortHelp = '', longHelp = '', | |
3602 | clientData = None): | |
3603 | ''' | |
3604 | Insert the new tool at the given position, if pos == GetToolsCount(), it | |
3605 | is equivalent to AddTool() | |
3606 | ''' | |
3607 | return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
3608 | shortHelp, longHelp, clientData) | |
3609 | ||
3610 | def AddCheckLabelTool(self, id, label, bitmap, | |
3611 | bmpDisabled = wx.NullBitmap, | |
3612 | shortHelp = '', longHelp = '', | |
3613 | clientData = None): | |
3614 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3615 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3616 | shortHelp, longHelp, clientData) | |
3617 | ||
3618 | def AddRadioLabelTool(self, id, label, bitmap, | |
3619 | bmpDisabled = wx.NullBitmap, | |
3620 | shortHelp = '', longHelp = '', | |
3621 | clientData = None): | |
3622 | ''' | |
3623 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3624 | other toggled radio tools in the same group when it happens | |
3625 | ''' | |
3626 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3627 | shortHelp, longHelp, clientData) | |
3628 | ||
3629 | ||
3630 | # For consistency with the backwards compatible methods above, here are | |
3631 | # some non-'Label' versions of the Check and Radio methods | |
248ed943 | 3632 | |
d55e5bfc RD |
3633 | def AddCheckTool(self, id, bitmap, |
3634 | bmpDisabled = wx.NullBitmap, | |
3635 | shortHelp = '', longHelp = '', | |
3636 | clientData = None): | |
3637 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3638 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3639 | shortHelp, longHelp, clientData) | |
3640 | ||
3641 | def AddRadioTool(self, id, bitmap, | |
3642 | bmpDisabled = wx.NullBitmap, | |
3643 | shortHelp = '', longHelp = '', | |
3644 | clientData = None): | |
3645 | ''' | |
3646 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3647 | other toggled radio tools in the same group when it happens | |
3648 | ''' | |
3649 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3650 | shortHelp, longHelp, clientData) | |
3651 | ||
3652 | def AddToolItem(*args, **kwargs): | |
3653 | """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" | |
3654 | return _controls_.ToolBarBase_AddToolItem(*args, **kwargs) | |
3655 | ||
3656 | def InsertToolItem(*args, **kwargs): | |
3657 | """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" | |
3658 | return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs) | |
3659 | ||
3660 | def AddControl(*args, **kwargs): | |
3661 | """AddControl(self, Control control) -> ToolBarToolBase""" | |
3662 | return _controls_.ToolBarBase_AddControl(*args, **kwargs) | |
3663 | ||
3664 | def InsertControl(*args, **kwargs): | |
3665 | """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" | |
3666 | return _controls_.ToolBarBase_InsertControl(*args, **kwargs) | |
3667 | ||
3668 | def FindControl(*args, **kwargs): | |
3669 | """FindControl(self, int id) -> Control""" | |
3670 | return _controls_.ToolBarBase_FindControl(*args, **kwargs) | |
3671 | ||
3672 | def AddSeparator(*args, **kwargs): | |
3673 | """AddSeparator(self) -> ToolBarToolBase""" | |
3674 | return _controls_.ToolBarBase_AddSeparator(*args, **kwargs) | |
3675 | ||
3676 | def InsertSeparator(*args, **kwargs): | |
3677 | """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" | |
3678 | return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs) | |
3679 | ||
3680 | def RemoveTool(*args, **kwargs): | |
3681 | """RemoveTool(self, int id) -> ToolBarToolBase""" | |
3682 | return _controls_.ToolBarBase_RemoveTool(*args, **kwargs) | |
3683 | ||
3684 | def DeleteToolByPos(*args, **kwargs): | |
3685 | """DeleteToolByPos(self, size_t pos) -> bool""" | |
3686 | return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs) | |
3687 | ||
3688 | def DeleteTool(*args, **kwargs): | |
3689 | """DeleteTool(self, int id) -> bool""" | |
3690 | return _controls_.ToolBarBase_DeleteTool(*args, **kwargs) | |
3691 | ||
3692 | def ClearTools(*args, **kwargs): | |
3693 | """ClearTools(self)""" | |
3694 | return _controls_.ToolBarBase_ClearTools(*args, **kwargs) | |
3695 | ||
3696 | def Realize(*args, **kwargs): | |
3697 | """Realize(self) -> bool""" | |
3698 | return _controls_.ToolBarBase_Realize(*args, **kwargs) | |
3699 | ||
3700 | def EnableTool(*args, **kwargs): | |
3701 | """EnableTool(self, int id, bool enable)""" | |
3702 | return _controls_.ToolBarBase_EnableTool(*args, **kwargs) | |
3703 | ||
3704 | def ToggleTool(*args, **kwargs): | |
3705 | """ToggleTool(self, int id, bool toggle)""" | |
3706 | return _controls_.ToolBarBase_ToggleTool(*args, **kwargs) | |
3707 | ||
3708 | def SetToggle(*args, **kwargs): | |
3709 | """SetToggle(self, int id, bool toggle)""" | |
3710 | return _controls_.ToolBarBase_SetToggle(*args, **kwargs) | |
3711 | ||
3712 | def GetToolClientData(*args, **kwargs): | |
3713 | """GetToolClientData(self, int id) -> PyObject""" | |
3714 | return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs) | |
3715 | ||
3716 | def SetToolClientData(*args, **kwargs): | |
3717 | """SetToolClientData(self, int id, PyObject clientData)""" | |
3718 | return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs) | |
3719 | ||
3720 | def GetToolPos(*args, **kwargs): | |
3721 | """GetToolPos(self, int id) -> int""" | |
3722 | return _controls_.ToolBarBase_GetToolPos(*args, **kwargs) | |
3723 | ||
3724 | def GetToolState(*args, **kwargs): | |
3725 | """GetToolState(self, int id) -> bool""" | |
3726 | return _controls_.ToolBarBase_GetToolState(*args, **kwargs) | |
3727 | ||
3728 | def GetToolEnabled(*args, **kwargs): | |
3729 | """GetToolEnabled(self, int id) -> bool""" | |
3730 | return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs) | |
3731 | ||
3732 | def SetToolShortHelp(*args, **kwargs): | |
3733 | """SetToolShortHelp(self, int id, String helpString)""" | |
3734 | return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs) | |
3735 | ||
3736 | def GetToolShortHelp(*args, **kwargs): | |
3737 | """GetToolShortHelp(self, int id) -> String""" | |
3738 | return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs) | |
3739 | ||
3740 | def SetToolLongHelp(*args, **kwargs): | |
3741 | """SetToolLongHelp(self, int id, String helpString)""" | |
3742 | return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs) | |
3743 | ||
3744 | def GetToolLongHelp(*args, **kwargs): | |
3745 | """GetToolLongHelp(self, int id) -> String""" | |
3746 | return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs) | |
3747 | ||
3748 | def SetMarginsXY(*args, **kwargs): | |
3749 | """SetMarginsXY(self, int x, int y)""" | |
3750 | return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs) | |
3751 | ||
3752 | def SetMargins(*args, **kwargs): | |
3753 | """SetMargins(self, Size size)""" | |
3754 | return _controls_.ToolBarBase_SetMargins(*args, **kwargs) | |
3755 | ||
3756 | def SetToolPacking(*args, **kwargs): | |
3757 | """SetToolPacking(self, int packing)""" | |
3758 | return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs) | |
3759 | ||
3760 | def SetToolSeparation(*args, **kwargs): | |
3761 | """SetToolSeparation(self, int separation)""" | |
3762 | return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs) | |
3763 | ||
3764 | def GetToolMargins(*args, **kwargs): | |
3765 | """GetToolMargins(self) -> Size""" | |
3766 | return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs) | |
3767 | ||
3768 | def GetMargins(*args, **kwargs): | |
3769 | """GetMargins(self) -> Size""" | |
3770 | return _controls_.ToolBarBase_GetMargins(*args, **kwargs) | |
3771 | ||
3772 | def GetToolPacking(*args, **kwargs): | |
3773 | """GetToolPacking(self) -> int""" | |
3774 | return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs) | |
3775 | ||
3776 | def GetToolSeparation(*args, **kwargs): | |
3777 | """GetToolSeparation(self) -> int""" | |
3778 | return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs) | |
3779 | ||
3780 | def SetRows(*args, **kwargs): | |
3781 | """SetRows(self, int nRows)""" | |
3782 | return _controls_.ToolBarBase_SetRows(*args, **kwargs) | |
3783 | ||
3784 | def SetMaxRowsCols(*args, **kwargs): | |
3785 | """SetMaxRowsCols(self, int rows, int cols)""" | |
3786 | return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs) | |
3787 | ||
3788 | def GetMaxRows(*args, **kwargs): | |
3789 | """GetMaxRows(self) -> int""" | |
3790 | return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs) | |
3791 | ||
3792 | def GetMaxCols(*args, **kwargs): | |
3793 | """GetMaxCols(self) -> int""" | |
3794 | return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs) | |
3795 | ||
3796 | def SetToolBitmapSize(*args, **kwargs): | |
3797 | """SetToolBitmapSize(self, Size size)""" | |
3798 | return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs) | |
3799 | ||
3800 | def GetToolBitmapSize(*args, **kwargs): | |
3801 | """GetToolBitmapSize(self) -> Size""" | |
3802 | return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs) | |
3803 | ||
3804 | def GetToolSize(*args, **kwargs): | |
3805 | """GetToolSize(self) -> Size""" | |
3806 | return _controls_.ToolBarBase_GetToolSize(*args, **kwargs) | |
3807 | ||
3808 | def FindToolForPosition(*args, **kwargs): | |
3809 | """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" | |
3810 | return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs) | |
3811 | ||
3812 | def FindById(*args, **kwargs): | |
3813 | """FindById(self, int toolid) -> ToolBarToolBase""" | |
3814 | return _controls_.ToolBarBase_FindById(*args, **kwargs) | |
3815 | ||
3816 | def IsVertical(*args, **kwargs): | |
3817 | """IsVertical(self) -> bool""" | |
3818 | return _controls_.ToolBarBase_IsVertical(*args, **kwargs) | |
3819 | ||
554f62e9 RD |
3820 | def GetToolsCount(*args, **kwargs): |
3821 | """GetToolsCount(self) -> size_t""" | |
3822 | return _controls_.ToolBarBase_GetToolsCount(*args, **kwargs) | |
d55e5bfc | 3823 | |
2131d850 | 3824 | _controls_.ToolBarBase_swigregister(ToolBarBase) |
d55e5bfc RD |
3825 | |
3826 | class ToolBar(ToolBarBase): | |
093d3ff1 | 3827 | """Proxy of C++ ToolBar class""" |
554f62e9 RD |
3828 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3829 | __repr__ = _swig_repr | |
3830 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3831 | """ |
248ed943 RD |
3832 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3833 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
d55e5bfc RD |
3834 | String name=wxPyToolBarNameStr) -> ToolBar |
3835 | """ | |
554f62e9 | 3836 | _controls_.ToolBar_swiginit(self,_controls_.new_ToolBar(*args, **kwargs)) |
d55e5bfc RD |
3837 | self._setOORInfo(self) |
3838 | ||
3839 | def Create(*args, **kwargs): | |
3840 | """ | |
248ed943 RD |
3841 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3842 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
d55e5bfc RD |
3843 | String name=wxPyToolBarNameStr) -> bool |
3844 | """ | |
3845 | return _controls_.ToolBar_Create(*args, **kwargs) | |
3846 | ||
f20a2e1f | 3847 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
3848 | """ |
3849 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3850 | ||
3851 | Get the default attributes for this class. This is useful if you want | |
3852 | to use the same font or colour in your own control as in a standard | |
3853 | control -- which is a much better idea than hard coding specific | |
3854 | colours or fonts which might look completely out of place on the | |
3855 | user's system, especially if it uses themes. | |
3856 | ||
3857 | The variant parameter is only relevant under Mac currently and is | |
3858 | ignore under other platforms. Under Mac, it will change the size of | |
3859 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3860 | this. | |
3861 | """ | |
f20a2e1f RD |
3862 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
3863 | ||
3864 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 3865 | _controls_.ToolBar_swigregister(ToolBar) |
d55e5bfc RD |
3866 | |
3867 | def PreToolBar(*args, **kwargs): | |
3868 | """PreToolBar() -> ToolBar""" | |
3869 | val = _controls_.new_PreToolBar(*args, **kwargs) | |
d55e5bfc RD |
3870 | return val |
3871 | ||
f20a2e1f | 3872 | def ToolBar_GetClassDefaultAttributes(*args, **kwargs): |
554f62e9 | 3873 | """ |
19272049 RD |
3874 | ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
3875 | ||
3876 | Get the default attributes for this class. This is useful if you want | |
3877 | to use the same font or colour in your own control as in a standard | |
3878 | control -- which is a much better idea than hard coding specific | |
3879 | colours or fonts which might look completely out of place on the | |
3880 | user's system, especially if it uses themes. | |
3881 | ||
3882 | The variant parameter is only relevant under Mac currently and is | |
3883 | ignore under other platforms. Under Mac, it will change the size of | |
3884 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3885 | this. | |
3886 | """ | |
554f62e9 | 3887 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 3888 | |
d55e5bfc RD |
3889 | #--------------------------------------------------------------------------- |
3890 | ||
3891 | LC_VRULES = _controls_.LC_VRULES | |
3892 | LC_HRULES = _controls_.LC_HRULES | |
3893 | LC_ICON = _controls_.LC_ICON | |
3894 | LC_SMALL_ICON = _controls_.LC_SMALL_ICON | |
3895 | LC_LIST = _controls_.LC_LIST | |
3896 | LC_REPORT = _controls_.LC_REPORT | |
3897 | LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP | |
3898 | LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT | |
3899 | LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE | |
3900 | LC_VIRTUAL = _controls_.LC_VIRTUAL | |
3901 | LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS | |
3902 | LC_NO_HEADER = _controls_.LC_NO_HEADER | |
3903 | LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER | |
3904 | LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL | |
3905 | LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING | |
3906 | LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING | |
3907 | LC_MASK_TYPE = _controls_.LC_MASK_TYPE | |
3908 | LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN | |
3909 | LC_MASK_SORT = _controls_.LC_MASK_SORT | |
3910 | LIST_MASK_STATE = _controls_.LIST_MASK_STATE | |
3911 | LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT | |
3912 | LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE | |
3913 | LIST_MASK_DATA = _controls_.LIST_MASK_DATA | |
3914 | LIST_SET_ITEM = _controls_.LIST_SET_ITEM | |
3915 | LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH | |
3916 | LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT | |
3917 | LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE | |
3918 | LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED | |
3919 | LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED | |
3920 | LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED | |
3921 | LIST_STATE_CUT = _controls_.LIST_STATE_CUT | |
3922 | LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED | |
3923 | LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED | |
3924 | LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE | |
3925 | LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED | |
3926 | LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE | |
3927 | LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE | |
3928 | LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW | |
3929 | LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE | |
3930 | LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON | |
3931 | LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL | |
3932 | LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT | |
3933 | LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON | |
3934 | LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT | |
3935 | LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT | |
3936 | LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM | |
704eda0c | 3937 | LIST_GETSUBITEMRECT_WHOLEITEM = _controls_.LIST_GETSUBITEMRECT_WHOLEITEM |
d55e5bfc RD |
3938 | LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE |
3939 | LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL | |
3940 | LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW | |
3941 | LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT | |
3942 | LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT | |
3943 | LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT | |
3944 | LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT | |
3945 | LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP | |
3946 | LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID | |
3947 | LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT | |
3948 | LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT | |
3949 | LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE | |
3950 | LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER | |
3951 | LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE | |
3952 | LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER | |
3953 | LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS | |
3954 | LIST_RECT_ICON = _controls_.LIST_RECT_ICON | |
3955 | LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL | |
3956 | LIST_FIND_UP = _controls_.LIST_FIND_UP | |
3957 | LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN | |
3958 | LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT | |
3959 | LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT | |
3960 | #--------------------------------------------------------------------------- | |
3961 | ||
3962 | class ListItemAttr(object): | |
093d3ff1 | 3963 | """Proxy of C++ ListItemAttr class""" |
554f62e9 RD |
3964 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3965 | __repr__ = _swig_repr | |
3966 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
3967 | """ |
3968 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, | |
3969 | Font font=wxNullFont) -> ListItemAttr | |
3970 | """ | |
554f62e9 RD |
3971 | _controls_.ListItemAttr_swiginit(self,_controls_.new_ListItemAttr(*args, **kwargs)) |
3972 | __swig_destroy__ = _controls_.delete_ListItemAttr | |
3973 | __del__ = lambda self : None; | |
d55e5bfc RD |
3974 | def SetTextColour(*args, **kwargs): |
3975 | """SetTextColour(self, Colour colText)""" | |
3976 | return _controls_.ListItemAttr_SetTextColour(*args, **kwargs) | |
3977 | ||
3978 | def SetBackgroundColour(*args, **kwargs): | |
3979 | """SetBackgroundColour(self, Colour colBack)""" | |
3980 | return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs) | |
3981 | ||
3982 | def SetFont(*args, **kwargs): | |
3983 | """SetFont(self, Font font)""" | |
3984 | return _controls_.ListItemAttr_SetFont(*args, **kwargs) | |
3985 | ||
3986 | def HasTextColour(*args, **kwargs): | |
3987 | """HasTextColour(self) -> bool""" | |
3988 | return _controls_.ListItemAttr_HasTextColour(*args, **kwargs) | |
3989 | ||
3990 | def HasBackgroundColour(*args, **kwargs): | |
3991 | """HasBackgroundColour(self) -> bool""" | |
3992 | return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs) | |
3993 | ||
3994 | def HasFont(*args, **kwargs): | |
3995 | """HasFont(self) -> bool""" | |
3996 | return _controls_.ListItemAttr_HasFont(*args, **kwargs) | |
3997 | ||
3998 | def GetTextColour(*args, **kwargs): | |
3999 | """GetTextColour(self) -> Colour""" | |
4000 | return _controls_.ListItemAttr_GetTextColour(*args, **kwargs) | |
4001 | ||
4002 | def GetBackgroundColour(*args, **kwargs): | |
4003 | """GetBackgroundColour(self) -> Colour""" | |
4004 | return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs) | |
4005 | ||
4006 | def GetFont(*args, **kwargs): | |
4007 | """GetFont(self) -> Font""" | |
4008 | return _controls_.ListItemAttr_GetFont(*args, **kwargs) | |
4009 | ||
7e08d4ef RD |
4010 | def AssignFrom(*args, **kwargs): |
4011 | """AssignFrom(self, ListItemAttr source)""" | |
4012 | return _controls_.ListItemAttr_AssignFrom(*args, **kwargs) | |
4013 | ||
d55e5bfc RD |
4014 | def Destroy(*args, **kwargs): |
4015 | """Destroy(self)""" | |
7e08d4ef RD |
4016 | val = _controls_.ListItemAttr_Destroy(*args, **kwargs) |
4017 | args[0].thisown = 0 | |
4018 | return val | |
d55e5bfc | 4019 | |
2131d850 | 4020 | _controls_.ListItemAttr_swigregister(ListItemAttr) |
d55e5bfc RD |
4021 | ListCtrlNameStr = cvar.ListCtrlNameStr |
4022 | ||
4023 | #--------------------------------------------------------------------------- | |
4024 | ||
4025 | class ListItem(_core.Object): | |
093d3ff1 | 4026 | """Proxy of C++ ListItem class""" |
554f62e9 RD |
4027 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4028 | __repr__ = _swig_repr | |
4029 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4030 | """__init__(self) -> ListItem""" |
554f62e9 RD |
4031 | _controls_.ListItem_swiginit(self,_controls_.new_ListItem(*args, **kwargs)) |
4032 | __swig_destroy__ = _controls_.delete_ListItem | |
4033 | __del__ = lambda self : None; | |
d55e5bfc RD |
4034 | def Clear(*args, **kwargs): |
4035 | """Clear(self)""" | |
4036 | return _controls_.ListItem_Clear(*args, **kwargs) | |
4037 | ||
4038 | def ClearAttributes(*args, **kwargs): | |
4039 | """ClearAttributes(self)""" | |
4040 | return _controls_.ListItem_ClearAttributes(*args, **kwargs) | |
4041 | ||
4042 | def SetMask(*args, **kwargs): | |
4043 | """SetMask(self, long mask)""" | |
4044 | return _controls_.ListItem_SetMask(*args, **kwargs) | |
4045 | ||
4046 | def SetId(*args, **kwargs): | |
4047 | """SetId(self, long id)""" | |
4048 | return _controls_.ListItem_SetId(*args, **kwargs) | |
4049 | ||
4050 | def SetColumn(*args, **kwargs): | |
4051 | """SetColumn(self, int col)""" | |
4052 | return _controls_.ListItem_SetColumn(*args, **kwargs) | |
4053 | ||
4054 | def SetState(*args, **kwargs): | |
4055 | """SetState(self, long state)""" | |
4056 | return _controls_.ListItem_SetState(*args, **kwargs) | |
4057 | ||
4058 | def SetStateMask(*args, **kwargs): | |
4059 | """SetStateMask(self, long stateMask)""" | |
4060 | return _controls_.ListItem_SetStateMask(*args, **kwargs) | |
4061 | ||
4062 | def SetText(*args, **kwargs): | |
4063 | """SetText(self, String text)""" | |
4064 | return _controls_.ListItem_SetText(*args, **kwargs) | |
4065 | ||
4066 | def SetImage(*args, **kwargs): | |
4067 | """SetImage(self, int image)""" | |
4068 | return _controls_.ListItem_SetImage(*args, **kwargs) | |
4069 | ||
4070 | def SetData(*args, **kwargs): | |
4071 | """SetData(self, long data)""" | |
4072 | return _controls_.ListItem_SetData(*args, **kwargs) | |
4073 | ||
4074 | def SetWidth(*args, **kwargs): | |
4075 | """SetWidth(self, int width)""" | |
4076 | return _controls_.ListItem_SetWidth(*args, **kwargs) | |
4077 | ||
4078 | def SetAlign(*args, **kwargs): | |
4079 | """SetAlign(self, int align)""" | |
4080 | return _controls_.ListItem_SetAlign(*args, **kwargs) | |
4081 | ||
4082 | def SetTextColour(*args, **kwargs): | |
4083 | """SetTextColour(self, Colour colText)""" | |
4084 | return _controls_.ListItem_SetTextColour(*args, **kwargs) | |
4085 | ||
4086 | def SetBackgroundColour(*args, **kwargs): | |
4087 | """SetBackgroundColour(self, Colour colBack)""" | |
4088 | return _controls_.ListItem_SetBackgroundColour(*args, **kwargs) | |
4089 | ||
4090 | def SetFont(*args, **kwargs): | |
4091 | """SetFont(self, Font font)""" | |
4092 | return _controls_.ListItem_SetFont(*args, **kwargs) | |
4093 | ||
4094 | def GetMask(*args, **kwargs): | |
4095 | """GetMask(self) -> long""" | |
4096 | return _controls_.ListItem_GetMask(*args, **kwargs) | |
4097 | ||
4098 | def GetId(*args, **kwargs): | |
4099 | """GetId(self) -> long""" | |
4100 | return _controls_.ListItem_GetId(*args, **kwargs) | |
4101 | ||
4102 | def GetColumn(*args, **kwargs): | |
4103 | """GetColumn(self) -> int""" | |
4104 | return _controls_.ListItem_GetColumn(*args, **kwargs) | |
4105 | ||
4106 | def GetState(*args, **kwargs): | |
4107 | """GetState(self) -> long""" | |
4108 | return _controls_.ListItem_GetState(*args, **kwargs) | |
4109 | ||
4110 | def GetText(*args, **kwargs): | |
4111 | """GetText(self) -> String""" | |
4112 | return _controls_.ListItem_GetText(*args, **kwargs) | |
4113 | ||
4114 | def GetImage(*args, **kwargs): | |
4115 | """GetImage(self) -> int""" | |
4116 | return _controls_.ListItem_GetImage(*args, **kwargs) | |
4117 | ||
4118 | def GetData(*args, **kwargs): | |
4119 | """GetData(self) -> long""" | |
4120 | return _controls_.ListItem_GetData(*args, **kwargs) | |
4121 | ||
4122 | def GetWidth(*args, **kwargs): | |
4123 | """GetWidth(self) -> int""" | |
4124 | return _controls_.ListItem_GetWidth(*args, **kwargs) | |
4125 | ||
4126 | def GetAlign(*args, **kwargs): | |
4127 | """GetAlign(self) -> int""" | |
4128 | return _controls_.ListItem_GetAlign(*args, **kwargs) | |
4129 | ||
4130 | def GetAttributes(*args, **kwargs): | |
4131 | """GetAttributes(self) -> ListItemAttr""" | |
4132 | return _controls_.ListItem_GetAttributes(*args, **kwargs) | |
4133 | ||
4134 | def HasAttributes(*args, **kwargs): | |
4135 | """HasAttributes(self) -> bool""" | |
4136 | return _controls_.ListItem_HasAttributes(*args, **kwargs) | |
4137 | ||
4138 | def GetTextColour(*args, **kwargs): | |
4139 | """GetTextColour(self) -> Colour""" | |
4140 | return _controls_.ListItem_GetTextColour(*args, **kwargs) | |
4141 | ||
4142 | def GetBackgroundColour(*args, **kwargs): | |
4143 | """GetBackgroundColour(self) -> Colour""" | |
4144 | return _controls_.ListItem_GetBackgroundColour(*args, **kwargs) | |
4145 | ||
4146 | def GetFont(*args, **kwargs): | |
4147 | """GetFont(self) -> Font""" | |
4148 | return _controls_.ListItem_GetFont(*args, **kwargs) | |
4149 | ||
4150 | m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set) | |
4151 | m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set) | |
4152 | m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set) | |
4153 | m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set) | |
4154 | m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set) | |
4155 | m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set) | |
4156 | m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set) | |
4157 | m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set) | |
4158 | m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set) | |
4159 | m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set) | |
2131d850 | 4160 | _controls_.ListItem_swigregister(ListItem) |
d55e5bfc RD |
4161 | |
4162 | #--------------------------------------------------------------------------- | |
4163 | ||
4164 | class ListEvent(_core.NotifyEvent): | |
093d3ff1 | 4165 | """Proxy of C++ ListEvent class""" |
554f62e9 RD |
4166 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4167 | __repr__ = _swig_repr | |
4168 | def __init__(self, *args, **kwargs): | |
f460c29d | 4169 | """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" |
554f62e9 | 4170 | _controls_.ListEvent_swiginit(self,_controls_.new_ListEvent(*args, **kwargs)) |
d55e5bfc RD |
4171 | m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set) |
4172 | m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set) | |
4173 | m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set) | |
4174 | m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set) | |
4175 | m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set) | |
4176 | m_item = property(_controls_.ListEvent_m_item_get) | |
4177 | def GetKeyCode(*args, **kwargs): | |
4178 | """GetKeyCode(self) -> int""" | |
4179 | return _controls_.ListEvent_GetKeyCode(*args, **kwargs) | |
4180 | ||
4181 | GetCode = GetKeyCode | |
4182 | def GetIndex(*args, **kwargs): | |
4183 | """GetIndex(self) -> long""" | |
4184 | return _controls_.ListEvent_GetIndex(*args, **kwargs) | |
4185 | ||
4186 | def GetColumn(*args, **kwargs): | |
4187 | """GetColumn(self) -> int""" | |
4188 | return _controls_.ListEvent_GetColumn(*args, **kwargs) | |
4189 | ||
4190 | def GetPoint(*args, **kwargs): | |
4191 | """GetPoint(self) -> Point""" | |
4192 | return _controls_.ListEvent_GetPoint(*args, **kwargs) | |
4193 | ||
4194 | GetPosition = GetPoint | |
4195 | def GetLabel(*args, **kwargs): | |
4196 | """GetLabel(self) -> String""" | |
4197 | return _controls_.ListEvent_GetLabel(*args, **kwargs) | |
4198 | ||
4199 | def GetText(*args, **kwargs): | |
4200 | """GetText(self) -> String""" | |
4201 | return _controls_.ListEvent_GetText(*args, **kwargs) | |
4202 | ||
4203 | def GetImage(*args, **kwargs): | |
4204 | """GetImage(self) -> int""" | |
4205 | return _controls_.ListEvent_GetImage(*args, **kwargs) | |
4206 | ||
4207 | def GetData(*args, **kwargs): | |
4208 | """GetData(self) -> long""" | |
4209 | return _controls_.ListEvent_GetData(*args, **kwargs) | |
4210 | ||
4211 | def GetMask(*args, **kwargs): | |
4212 | """GetMask(self) -> long""" | |
4213 | return _controls_.ListEvent_GetMask(*args, **kwargs) | |
4214 | ||
4215 | def GetItem(*args, **kwargs): | |
4216 | """GetItem(self) -> ListItem""" | |
4217 | return _controls_.ListEvent_GetItem(*args, **kwargs) | |
4218 | ||
4219 | def GetCacheFrom(*args, **kwargs): | |
4220 | """GetCacheFrom(self) -> long""" | |
4221 | return _controls_.ListEvent_GetCacheFrom(*args, **kwargs) | |
4222 | ||
4223 | def GetCacheTo(*args, **kwargs): | |
4224 | """GetCacheTo(self) -> long""" | |
4225 | return _controls_.ListEvent_GetCacheTo(*args, **kwargs) | |
4226 | ||
4227 | def IsEditCancelled(*args, **kwargs): | |
4228 | """IsEditCancelled(self) -> bool""" | |
4229 | return _controls_.ListEvent_IsEditCancelled(*args, **kwargs) | |
4230 | ||
4231 | def SetEditCanceled(*args, **kwargs): | |
4232 | """SetEditCanceled(self, bool editCancelled)""" | |
4233 | return _controls_.ListEvent_SetEditCanceled(*args, **kwargs) | |
4234 | ||
2131d850 | 4235 | _controls_.ListEvent_swigregister(ListEvent) |
d55e5bfc RD |
4236 | |
4237 | wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
4238 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
4239 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
4240 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
4241 | wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM | |
4242 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
d55e5bfc RD |
4243 | wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED |
4244 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
4245 | wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN | |
4246 | wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM | |
4247 | wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK | |
4248 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
4249 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
4250 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
4251 | wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT | |
4252 | wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK | |
4253 | wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG | |
4254 | wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING | |
4255 | wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG | |
4256 | wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED | |
4257 | EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) | |
4258 | EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) | |
4259 | EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) | |
4260 | EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) | |
4261 | EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) | |
4262 | EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) | |
2f91e3df KO |
4263 | |
4264 | ||
4265 | ||
4266 | ||
d55e5bfc RD |
4267 | EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) |
4268 | EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) | |
4269 | EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) | |
4270 | EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) | |
4271 | EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) | |
4272 | EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) | |
4273 | EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) | |
4274 | EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) | |
4275 | EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) | |
4276 | EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) | |
4277 | EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) | |
4278 | EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) | |
4279 | EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) | |
4280 | EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) | |
4281 | ||
2f91e3df KO |
4282 | |
4283 | ||
4284 | ||
84f85550 | 4285 | |
d55e5bfc RD |
4286 | #--------------------------------------------------------------------------- |
4287 | ||
4288 | class ListCtrl(_core.Control): | |
093d3ff1 | 4289 | """Proxy of C++ ListCtrl class""" |
554f62e9 RD |
4290 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4291 | __repr__ = _swig_repr | |
4292 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4293 | """ |
4294 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4295 | Size size=DefaultSize, long style=LC_ICON, | |
4296 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl | |
4297 | """ | |
554f62e9 | 4298 | _controls_.ListCtrl_swiginit(self,_controls_.new_ListCtrl(*args, **kwargs)) |
d55e5bfc RD |
4299 | self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) |
4300 | ||
4301 | def Create(*args, **kwargs): | |
4302 | """ | |
4303 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4304 | Size size=DefaultSize, long style=LC_ICON, | |
4305 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool | |
4306 | ||
4307 | Do the 2nd phase and create the GUI control. | |
4308 | """ | |
4309 | return _controls_.ListCtrl_Create(*args, **kwargs) | |
4310 | ||
4311 | def _setCallbackInfo(*args, **kwargs): | |
4312 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4313 | return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs) | |
4314 | ||
d55e5bfc RD |
4315 | def GetColumn(*args, **kwargs): |
4316 | """GetColumn(self, int col) -> ListItem""" | |
4317 | val = _controls_.ListCtrl_GetColumn(*args, **kwargs) | |
4318 | if val is not None: val.thisown = 1 | |
4319 | return val | |
4320 | ||
4321 | def SetColumn(*args, **kwargs): | |
4322 | """SetColumn(self, int col, ListItem item) -> bool""" | |
4323 | return _controls_.ListCtrl_SetColumn(*args, **kwargs) | |
4324 | ||
4325 | def GetColumnWidth(*args, **kwargs): | |
4326 | """GetColumnWidth(self, int col) -> int""" | |
4327 | return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs) | |
4328 | ||
4329 | def SetColumnWidth(*args, **kwargs): | |
4330 | """SetColumnWidth(self, int col, int width) -> bool""" | |
4331 | return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs) | |
4332 | ||
4333 | def GetCountPerPage(*args, **kwargs): | |
4334 | """GetCountPerPage(self) -> int""" | |
4335 | return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs) | |
4336 | ||
4337 | def GetViewRect(*args, **kwargs): | |
4338 | """GetViewRect(self) -> Rect""" | |
4339 | return _controls_.ListCtrl_GetViewRect(*args, **kwargs) | |
4340 | ||
4341 | def GetEditControl(*args, **kwargs): | |
4342 | """GetEditControl(self) -> TextCtrl""" | |
4343 | return _controls_.ListCtrl_GetEditControl(*args, **kwargs) | |
4344 | ||
4345 | def GetItem(*args, **kwargs): | |
4346 | """GetItem(self, long itemId, int col=0) -> ListItem""" | |
4347 | val = _controls_.ListCtrl_GetItem(*args, **kwargs) | |
4348 | if val is not None: val.thisown = 1 | |
4349 | return val | |
4350 | ||
4351 | def SetItem(*args, **kwargs): | |
4352 | """SetItem(self, ListItem info) -> bool""" | |
4353 | return _controls_.ListCtrl_SetItem(*args, **kwargs) | |
4354 | ||
4355 | def SetStringItem(*args, **kwargs): | |
4356 | """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" | |
4357 | return _controls_.ListCtrl_SetStringItem(*args, **kwargs) | |
4358 | ||
4359 | def GetItemState(*args, **kwargs): | |
4360 | """GetItemState(self, long item, long stateMask) -> int""" | |
4361 | return _controls_.ListCtrl_GetItemState(*args, **kwargs) | |
4362 | ||
4363 | def SetItemState(*args, **kwargs): | |
4364 | """SetItemState(self, long item, long state, long stateMask) -> bool""" | |
4365 | return _controls_.ListCtrl_SetItemState(*args, **kwargs) | |
4366 | ||
4367 | def SetItemImage(*args, **kwargs): | |
84f85550 | 4368 | """SetItemImage(self, long item, int image, int selImage=-1) -> bool""" |
d55e5bfc RD |
4369 | return _controls_.ListCtrl_SetItemImage(*args, **kwargs) |
4370 | ||
554f62e9 RD |
4371 | def SetItemColumnImage(*args, **kwargs): |
4372 | """SetItemColumnImage(self, long item, long column, int image) -> bool""" | |
4373 | return _controls_.ListCtrl_SetItemColumnImage(*args, **kwargs) | |
4374 | ||
d55e5bfc RD |
4375 | def GetItemText(*args, **kwargs): |
4376 | """GetItemText(self, long item) -> String""" | |
4377 | return _controls_.ListCtrl_GetItemText(*args, **kwargs) | |
4378 | ||
4379 | def SetItemText(*args, **kwargs): | |
4380 | """SetItemText(self, long item, String str)""" | |
4381 | return _controls_.ListCtrl_SetItemText(*args, **kwargs) | |
4382 | ||
4383 | def GetItemData(*args, **kwargs): | |
4384 | """GetItemData(self, long item) -> long""" | |
4385 | return _controls_.ListCtrl_GetItemData(*args, **kwargs) | |
4386 | ||
4387 | def SetItemData(*args, **kwargs): | |
4388 | """SetItemData(self, long item, long data) -> bool""" | |
4389 | return _controls_.ListCtrl_SetItemData(*args, **kwargs) | |
4390 | ||
4391 | def GetItemPosition(*args, **kwargs): | |
4392 | """GetItemPosition(self, long item) -> Point""" | |
4393 | return _controls_.ListCtrl_GetItemPosition(*args, **kwargs) | |
4394 | ||
4395 | def GetItemRect(*args, **kwargs): | |
4396 | """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" | |
4397 | return _controls_.ListCtrl_GetItemRect(*args, **kwargs) | |
4398 | ||
4399 | def SetItemPosition(*args, **kwargs): | |
4400 | """SetItemPosition(self, long item, Point pos) -> bool""" | |
4401 | return _controls_.ListCtrl_SetItemPosition(*args, **kwargs) | |
4402 | ||
4403 | def GetItemCount(*args, **kwargs): | |
4404 | """GetItemCount(self) -> int""" | |
4405 | return _controls_.ListCtrl_GetItemCount(*args, **kwargs) | |
4406 | ||
4407 | def GetColumnCount(*args, **kwargs): | |
4408 | """GetColumnCount(self) -> int""" | |
4409 | return _controls_.ListCtrl_GetColumnCount(*args, **kwargs) | |
4410 | ||
4411 | def GetItemSpacing(*args, **kwargs): | |
4412 | """GetItemSpacing(self) -> Size""" | |
4413 | return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) | |
4414 | ||
e9d6f3a4 | 4415 | GetItemSpacing = wx._deprecated(GetItemSpacing) |
d55e5bfc RD |
4416 | def GetSelectedItemCount(*args, **kwargs): |
4417 | """GetSelectedItemCount(self) -> int""" | |
4418 | return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) | |
4419 | ||
4420 | def GetTextColour(*args, **kwargs): | |
4421 | """GetTextColour(self) -> Colour""" | |
4422 | return _controls_.ListCtrl_GetTextColour(*args, **kwargs) | |
4423 | ||
4424 | def SetTextColour(*args, **kwargs): | |
4425 | """SetTextColour(self, Colour col)""" | |
4426 | return _controls_.ListCtrl_SetTextColour(*args, **kwargs) | |
4427 | ||
4428 | def GetTopItem(*args, **kwargs): | |
4429 | """GetTopItem(self) -> long""" | |
4430 | return _controls_.ListCtrl_GetTopItem(*args, **kwargs) | |
4431 | ||
4432 | def SetSingleStyle(*args, **kwargs): | |
4433 | """SetSingleStyle(self, long style, bool add=True)""" | |
4434 | return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs) | |
4435 | ||
d55e5bfc RD |
4436 | def GetNextItem(*args, **kwargs): |
4437 | """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" | |
4438 | return _controls_.ListCtrl_GetNextItem(*args, **kwargs) | |
4439 | ||
4440 | def GetImageList(*args, **kwargs): | |
4441 | """GetImageList(self, int which) -> ImageList""" | |
4442 | return _controls_.ListCtrl_GetImageList(*args, **kwargs) | |
4443 | ||
4444 | def SetImageList(*args, **kwargs): | |
4445 | """SetImageList(self, ImageList imageList, int which)""" | |
4446 | return _controls_.ListCtrl_SetImageList(*args, **kwargs) | |
4447 | ||
4448 | def AssignImageList(*args, **kwargs): | |
4449 | """AssignImageList(self, ImageList imageList, int which)""" | |
4450 | return _controls_.ListCtrl_AssignImageList(*args, **kwargs) | |
4451 | ||
4452 | def InReportView(*args, **kwargs): | |
4453 | """InReportView(self) -> bool""" | |
4454 | return _controls_.ListCtrl_InReportView(*args, **kwargs) | |
4455 | ||
4456 | def IsVirtual(*args, **kwargs): | |
4457 | """IsVirtual(self) -> bool""" | |
4458 | return _controls_.ListCtrl_IsVirtual(*args, **kwargs) | |
4459 | ||
4460 | def RefreshItem(*args, **kwargs): | |
4461 | """RefreshItem(self, long item)""" | |
4462 | return _controls_.ListCtrl_RefreshItem(*args, **kwargs) | |
4463 | ||
4464 | def RefreshItems(*args, **kwargs): | |
4465 | """RefreshItems(self, long itemFrom, long itemTo)""" | |
4466 | return _controls_.ListCtrl_RefreshItems(*args, **kwargs) | |
4467 | ||
4468 | def Arrange(*args, **kwargs): | |
4469 | """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" | |
4470 | return _controls_.ListCtrl_Arrange(*args, **kwargs) | |
4471 | ||
4472 | def DeleteItem(*args, **kwargs): | |
4473 | """DeleteItem(self, long item) -> bool""" | |
4474 | return _controls_.ListCtrl_DeleteItem(*args, **kwargs) | |
4475 | ||
4476 | def DeleteAllItems(*args, **kwargs): | |
4477 | """DeleteAllItems(self) -> bool""" | |
4478 | return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs) | |
4479 | ||
4480 | def DeleteColumn(*args, **kwargs): | |
4481 | """DeleteColumn(self, int col) -> bool""" | |
4482 | return _controls_.ListCtrl_DeleteColumn(*args, **kwargs) | |
4483 | ||
4484 | def DeleteAllColumns(*args, **kwargs): | |
4485 | """DeleteAllColumns(self) -> bool""" | |
4486 | return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs) | |
4487 | ||
4488 | def ClearAll(*args, **kwargs): | |
4489 | """ClearAll(self)""" | |
4490 | return _controls_.ListCtrl_ClearAll(*args, **kwargs) | |
4491 | ||
4492 | def EditLabel(*args, **kwargs): | |
4493 | """EditLabel(self, long item) -> TextCtrl""" | |
4494 | return _controls_.ListCtrl_EditLabel(*args, **kwargs) | |
4495 | ||
4496 | def EndEditLabel(*args, **kwargs): | |
4497 | """EndEditLabel(self, bool cancel) -> bool""" | |
4498 | return _controls_.ListCtrl_EndEditLabel(*args, **kwargs) | |
4499 | ||
4500 | def EnsureVisible(*args, **kwargs): | |
4501 | """EnsureVisible(self, long item) -> bool""" | |
4502 | return _controls_.ListCtrl_EnsureVisible(*args, **kwargs) | |
4503 | ||
4504 | def FindItem(*args, **kwargs): | |
4505 | """FindItem(self, long start, String str, bool partial=False) -> long""" | |
4506 | return _controls_.ListCtrl_FindItem(*args, **kwargs) | |
4507 | ||
4508 | def FindItemData(*args, **kwargs): | |
4509 | """FindItemData(self, long start, long data) -> long""" | |
4510 | return _controls_.ListCtrl_FindItemData(*args, **kwargs) | |
4511 | ||
4512 | def FindItemAtPos(*args, **kwargs): | |
4513 | """FindItemAtPos(self, long start, Point pt, int direction) -> long""" | |
4514 | return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs) | |
4515 | ||
4516 | def HitTest(*args, **kwargs): | |
a001823c RD |
4517 | """ |
4518 | HitTest(Point point) -> (item, where) | |
4519 | ||
4520 | Determines which item (if any) is at the specified point, giving | |
53aa7709 | 4521 | in the second return value (see wx.LIST_HITTEST flags.) |
a001823c | 4522 | """ |
d55e5bfc RD |
4523 | return _controls_.ListCtrl_HitTest(*args, **kwargs) |
4524 | ||
704eda0c RD |
4525 | def HitTestSubItem(*args, **kwargs): |
4526 | """ | |
4527 | HitTestSubItem(Point point) -> (item, where, subItem) | |
4528 | ||
4529 | Determines which item (if any) is at the specified point, giving in | |
4530 | the second return value (see wx.LIST_HITTEST flags) and also the subItem, if | |
4531 | any. | |
4532 | """ | |
4533 | return _controls_.ListCtrl_HitTestSubItem(*args, **kwargs) | |
4534 | ||
d55e5bfc RD |
4535 | def InsertItem(*args, **kwargs): |
4536 | """InsertItem(self, ListItem info) -> long""" | |
4537 | return _controls_.ListCtrl_InsertItem(*args, **kwargs) | |
4538 | ||
4539 | def InsertStringItem(*args, **kwargs): | |
7449af73 | 4540 | """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long""" |
d55e5bfc RD |
4541 | return _controls_.ListCtrl_InsertStringItem(*args, **kwargs) |
4542 | ||
4543 | def InsertImageItem(*args, **kwargs): | |
4544 | """InsertImageItem(self, long index, int imageIndex) -> long""" | |
4545 | return _controls_.ListCtrl_InsertImageItem(*args, **kwargs) | |
4546 | ||
4547 | def InsertImageStringItem(*args, **kwargs): | |
4548 | """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" | |
4549 | return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs) | |
4550 | ||
a3957d3d RD |
4551 | def InsertColumnItem(*args, **kwargs): |
4552 | """InsertColumnItem(self, long col, ListItem info) -> long""" | |
4553 | return _controls_.ListCtrl_InsertColumnItem(*args, **kwargs) | |
d55e5bfc | 4554 | |
a3957d3d | 4555 | InsertColumnInfo = InsertColumnItem |
d55e5bfc RD |
4556 | def InsertColumn(*args, **kwargs): |
4557 | """ | |
4558 | InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, | |
4559 | int width=-1) -> long | |
4560 | """ | |
4561 | return _controls_.ListCtrl_InsertColumn(*args, **kwargs) | |
4562 | ||
4563 | def SetItemCount(*args, **kwargs): | |
4564 | """SetItemCount(self, long count)""" | |
4565 | return _controls_.ListCtrl_SetItemCount(*args, **kwargs) | |
4566 | ||
4567 | def ScrollList(*args, **kwargs): | |
4568 | """ScrollList(self, int dx, int dy) -> bool""" | |
4569 | return _controls_.ListCtrl_ScrollList(*args, **kwargs) | |
4570 | ||
4571 | def SetItemTextColour(*args, **kwargs): | |
4572 | """SetItemTextColour(self, long item, Colour col)""" | |
4573 | return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs) | |
4574 | ||
4575 | def GetItemTextColour(*args, **kwargs): | |
4576 | """GetItemTextColour(self, long item) -> Colour""" | |
4577 | return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs) | |
4578 | ||
4579 | def SetItemBackgroundColour(*args, **kwargs): | |
4580 | """SetItemBackgroundColour(self, long item, Colour col)""" | |
4581 | return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs) | |
4582 | ||
4583 | def GetItemBackgroundColour(*args, **kwargs): | |
4584 | """GetItemBackgroundColour(self, long item) -> Colour""" | |
4585 | return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs) | |
4586 | ||
9d7dfdff RD |
4587 | def SetItemFont(*args, **kwargs): |
4588 | """SetItemFont(self, long item, Font f)""" | |
4589 | return _controls_.ListCtrl_SetItemFont(*args, **kwargs) | |
4590 | ||
4591 | def GetItemFont(*args, **kwargs): | |
4592 | """GetItemFont(self, long item) -> Font""" | |
4593 | return _controls_.ListCtrl_GetItemFont(*args, **kwargs) | |
4594 | ||
d55e5bfc RD |
4595 | # |
4596 | # Some helpers... | |
4597 | def Select(self, idx, on=1): | |
4598 | '''[de]select an item''' | |
4599 | if on: state = wx.LIST_STATE_SELECTED | |
4600 | else: state = 0 | |
4601 | self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) | |
4602 | ||
4603 | def Focus(self, idx): | |
4604 | '''Focus and show the given item''' | |
4605 | self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) | |
4606 | self.EnsureVisible(idx) | |
4607 | ||
4608 | def GetFocusedItem(self): | |
4609 | '''get the currently focused item or -1 if none''' | |
4610 | return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) | |
4611 | ||
4612 | def GetFirstSelected(self, *args): | |
4613 | '''return first selected item, or -1 when none''' | |
4614 | return self.GetNextSelected(-1) | |
4615 | ||
4616 | def GetNextSelected(self, item): | |
4617 | '''return subsequent selected items, or -1 when no more''' | |
4618 | return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) | |
4619 | ||
4620 | def IsSelected(self, idx): | |
4621 | '''return True if the item is selected''' | |
38aff7bb | 4622 | return (self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED) != 0 |
d55e5bfc RD |
4623 | |
4624 | def SetColumnImage(self, col, image): | |
4625 | item = self.GetColumn(col) | |
4626 | # preserve all other attributes too | |
4627 | item.SetMask( wx.LIST_MASK_STATE | | |
4628 | wx.LIST_MASK_TEXT | | |
4629 | wx.LIST_MASK_IMAGE | | |
4630 | wx.LIST_MASK_DATA | | |
4631 | wx.LIST_SET_ITEM | | |
4632 | wx.LIST_MASK_WIDTH | | |
4633 | wx.LIST_MASK_FORMAT ) | |
4634 | item.SetImage(image) | |
4635 | self.SetColumn(col, item) | |
4636 | ||
4637 | def ClearColumnImage(self, col): | |
4638 | self.SetColumnImage(col, -1) | |
4639 | ||
4640 | def Append(self, entry): | |
4641 | '''Append an item to the list control. The entry parameter should be a | |
4642 | sequence with an item for each column''' | |
4643 | if len(entry): | |
4644 | if wx.USE_UNICODE: | |
4645 | cvtfunc = unicode | |
4646 | else: | |
4647 | cvtfunc = str | |
4648 | pos = self.GetItemCount() | |
4649 | self.InsertStringItem(pos, cvtfunc(entry[0])) | |
4650 | for i in range(1, len(entry)): | |
4651 | self.SetStringItem(pos, i, cvtfunc(entry[i])) | |
4652 | return pos | |
4653 | ||
4654 | def SortItems(*args, **kwargs): | |
4655 | """SortItems(self, PyObject func) -> bool""" | |
4656 | return _controls_.ListCtrl_SortItems(*args, **kwargs) | |
4657 | ||
4658 | def GetMainWindow(*args, **kwargs): | |
4659 | """GetMainWindow(self) -> Window""" | |
4660 | return _controls_.ListCtrl_GetMainWindow(*args, **kwargs) | |
4661 | ||
4662 | def GetClassDefaultAttributes(*args, **kwargs): | |
19272049 RD |
4663 | """ |
4664 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4665 | ||
4666 | Get the default attributes for this class. This is useful if you want | |
4667 | to use the same font or colour in your own control as in a standard | |
4668 | control -- which is a much better idea than hard coding specific | |
4669 | colours or fonts which might look completely out of place on the | |
4670 | user's system, especially if it uses themes. | |
4671 | ||
4672 | The variant parameter is only relevant under Mac currently and is | |
4673 | ignore under other platforms. Under Mac, it will change the size of | |
4674 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4675 | this. | |
4676 | """ | |
d55e5bfc RD |
4677 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
4678 | ||
4679 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 4680 | _controls_.ListCtrl_swigregister(ListCtrl) |
d55e5bfc RD |
4681 | |
4682 | def PreListCtrl(*args, **kwargs): | |
4683 | """PreListCtrl() -> ListCtrl""" | |
4684 | val = _controls_.new_PreListCtrl(*args, **kwargs) | |
d55e5bfc RD |
4685 | return val |
4686 | ||
4687 | def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
554f62e9 | 4688 | """ |
19272049 RD |
4689 | ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
4690 | ||
4691 | Get the default attributes for this class. This is useful if you want | |
4692 | to use the same font or colour in your own control as in a standard | |
4693 | control -- which is a much better idea than hard coding specific | |
4694 | colours or fonts which might look completely out of place on the | |
4695 | user's system, especially if it uses themes. | |
4696 | ||
4697 | The variant parameter is only relevant under Mac currently and is | |
4698 | ignore under other platforms. Under Mac, it will change the size of | |
4699 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4700 | this. | |
4701 | """ | |
554f62e9 | 4702 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
d55e5bfc RD |
4703 | |
4704 | #--------------------------------------------------------------------------- | |
4705 | ||
4706 | class ListView(ListCtrl): | |
093d3ff1 | 4707 | """Proxy of C++ ListView class""" |
554f62e9 RD |
4708 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4709 | __repr__ = _swig_repr | |
4710 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4711 | """ |
4712 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4713 | Size size=DefaultSize, long style=LC_REPORT, | |
4714 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView | |
4715 | """ | |
554f62e9 | 4716 | _controls_.ListView_swiginit(self,_controls_.new_ListView(*args, **kwargs)) |
d55e5bfc RD |
4717 | self._setOORInfo(self) |
4718 | ||
4719 | def Create(*args, **kwargs): | |
4720 | """ | |
4721 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4722 | Size size=DefaultSize, long style=LC_REPORT, | |
4723 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool | |
4724 | ||
4725 | Do the 2nd phase and create the GUI control. | |
4726 | """ | |
4727 | return _controls_.ListView_Create(*args, **kwargs) | |
4728 | ||
4729 | def Select(*args, **kwargs): | |
4730 | """Select(self, long n, bool on=True)""" | |
4731 | return _controls_.ListView_Select(*args, **kwargs) | |
4732 | ||
4733 | def Focus(*args, **kwargs): | |
4734 | """Focus(self, long index)""" | |
4735 | return _controls_.ListView_Focus(*args, **kwargs) | |
4736 | ||
4737 | def GetFocusedItem(*args, **kwargs): | |
4738 | """GetFocusedItem(self) -> long""" | |
4739 | return _controls_.ListView_GetFocusedItem(*args, **kwargs) | |
4740 | ||
4741 | def GetNextSelected(*args, **kwargs): | |
4742 | """GetNextSelected(self, long item) -> long""" | |
4743 | return _controls_.ListView_GetNextSelected(*args, **kwargs) | |
4744 | ||
4745 | def GetFirstSelected(*args, **kwargs): | |
4746 | """GetFirstSelected(self) -> long""" | |
4747 | return _controls_.ListView_GetFirstSelected(*args, **kwargs) | |
4748 | ||
4749 | def IsSelected(*args, **kwargs): | |
4750 | """IsSelected(self, long index) -> bool""" | |
4751 | return _controls_.ListView_IsSelected(*args, **kwargs) | |
4752 | ||
4753 | def SetColumnImage(*args, **kwargs): | |
4754 | """SetColumnImage(self, int col, int image)""" | |
4755 | return _controls_.ListView_SetColumnImage(*args, **kwargs) | |
4756 | ||
4757 | def ClearColumnImage(*args, **kwargs): | |
4758 | """ClearColumnImage(self, int col)""" | |
4759 | return _controls_.ListView_ClearColumnImage(*args, **kwargs) | |
4760 | ||
2131d850 | 4761 | _controls_.ListView_swigregister(ListView) |
d55e5bfc RD |
4762 | |
4763 | def PreListView(*args, **kwargs): | |
4764 | """PreListView() -> ListView""" | |
4765 | val = _controls_.new_PreListView(*args, **kwargs) | |
d55e5bfc RD |
4766 | return val |
4767 | ||
4768 | #--------------------------------------------------------------------------- | |
4769 | ||
4770 | TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS | |
4771 | TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS | |
4772 | TR_NO_LINES = _controls_.TR_NO_LINES | |
4773 | TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT | |
4774 | TR_SINGLE = _controls_.TR_SINGLE | |
4775 | TR_MULTIPLE = _controls_.TR_MULTIPLE | |
4776 | TR_EXTENDED = _controls_.TR_EXTENDED | |
4777 | TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT | |
4778 | TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS | |
4779 | TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT | |
4780 | TR_ROW_LINES = _controls_.TR_ROW_LINES | |
4781 | TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT | |
4782 | TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE | |
4783 | TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS | |
e9d6f3a4 RD |
4784 | # obsolete |
4785 | TR_MAC_BUTTONS = 0 | |
4786 | wxTR_AQUA_BUTTONS = 0 | |
4787 | ||
d55e5bfc RD |
4788 | TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal |
4789 | TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected | |
4790 | TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded | |
4791 | TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded | |
4792 | TreeItemIcon_Max = _controls_.TreeItemIcon_Max | |
4793 | TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE | |
4794 | TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW | |
4795 | TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE | |
4796 | TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON | |
4797 | TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON | |
4798 | TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT | |
4799 | TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL | |
4800 | TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT | |
4801 | TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON | |
4802 | TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT | |
4803 | TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT | |
4804 | TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART | |
4805 | TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART | |
4806 | TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM | |
4807 | #--------------------------------------------------------------------------- | |
4808 | ||
4809 | class TreeItemId(object): | |
093d3ff1 | 4810 | """Proxy of C++ TreeItemId class""" |
554f62e9 RD |
4811 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4812 | __repr__ = _swig_repr | |
4813 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4814 | """__init__(self) -> TreeItemId""" |
554f62e9 RD |
4815 | _controls_.TreeItemId_swiginit(self,_controls_.new_TreeItemId(*args, **kwargs)) |
4816 | __swig_destroy__ = _controls_.delete_TreeItemId | |
4817 | __del__ = lambda self : None; | |
d55e5bfc RD |
4818 | def IsOk(*args, **kwargs): |
4819 | """IsOk(self) -> bool""" | |
4820 | return _controls_.TreeItemId_IsOk(*args, **kwargs) | |
4821 | ||
4822 | def __eq__(*args, **kwargs): | |
4823 | """__eq__(self, TreeItemId other) -> bool""" | |
4824 | return _controls_.TreeItemId___eq__(*args, **kwargs) | |
4825 | ||
4826 | def __ne__(*args, **kwargs): | |
4827 | """__ne__(self, TreeItemId other) -> bool""" | |
4828 | return _controls_.TreeItemId___ne__(*args, **kwargs) | |
4829 | ||
4830 | m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set) | |
4831 | Ok = IsOk | |
4832 | def __nonzero__(self): return self.IsOk() | |
2131d850 | 4833 | _controls_.TreeItemId_swigregister(TreeItemId) |
d55e5bfc RD |
4834 | TreeCtrlNameStr = cvar.TreeCtrlNameStr |
4835 | ||
4836 | class TreeItemData(object): | |
093d3ff1 | 4837 | """Proxy of C++ TreeItemData class""" |
554f62e9 RD |
4838 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4839 | __repr__ = _swig_repr | |
4840 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4841 | """__init__(self, PyObject obj=None) -> TreeItemData""" |
554f62e9 RD |
4842 | _controls_.TreeItemData_swiginit(self,_controls_.new_TreeItemData(*args, **kwargs)) |
4843 | __swig_destroy__ = _controls_.delete_TreeItemData | |
4844 | __del__ = lambda self : None; | |
d55e5bfc RD |
4845 | def GetData(*args, **kwargs): |
4846 | """GetData(self) -> PyObject""" | |
4847 | return _controls_.TreeItemData_GetData(*args, **kwargs) | |
4848 | ||
4849 | def SetData(*args, **kwargs): | |
4850 | """SetData(self, PyObject obj)""" | |
4851 | return _controls_.TreeItemData_SetData(*args, **kwargs) | |
4852 | ||
4853 | def GetId(*args, **kwargs): | |
4854 | """GetId(self) -> TreeItemId""" | |
4855 | return _controls_.TreeItemData_GetId(*args, **kwargs) | |
4856 | ||
4857 | def SetId(*args, **kwargs): | |
4858 | """SetId(self, TreeItemId id)""" | |
4859 | return _controls_.TreeItemData_SetId(*args, **kwargs) | |
4860 | ||
4861 | def Destroy(*args, **kwargs): | |
4862 | """Destroy(self)""" | |
7e08d4ef RD |
4863 | val = _controls_.TreeItemData_Destroy(*args, **kwargs) |
4864 | args[0].thisown = 0 | |
4865 | return val | |
d55e5bfc | 4866 | |
2131d850 | 4867 | _controls_.TreeItemData_swigregister(TreeItemData) |
d55e5bfc RD |
4868 | |
4869 | #--------------------------------------------------------------------------- | |
4870 | ||
4871 | wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG | |
4872 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
4873 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
4874 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
4875 | wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM | |
4876 | wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO | |
4877 | wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO | |
4878 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
4879 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
4880 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
4881 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
4882 | wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED | |
4883 | wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING | |
4884 | wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN | |
4885 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
4886 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
4887 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
4888 | wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG | |
4889 | wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK | |
4890 | wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP | |
62d32a5f | 4891 | wxEVT_COMMAND_TREE_ITEM_MENU = _controls_.wxEVT_COMMAND_TREE_ITEM_MENU |
d55e5bfc RD |
4892 | EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) |
4893 | EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) | |
4894 | EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) | |
4895 | EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) | |
4896 | EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) | |
4897 | EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) | |
4898 | EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) | |
4899 | EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) | |
4900 | EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) | |
4901 | EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) | |
4902 | EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) | |
4903 | EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) | |
4904 | EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) | |
4905 | EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) | |
4906 | EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) | |
4907 | EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) | |
4908 | EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) | |
4909 | EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) | |
4910 | EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) | |
4911 | EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) | |
f05326ba | 4912 | EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, 1) |
d55e5bfc RD |
4913 | |
4914 | class TreeEvent(_core.NotifyEvent): | |
093d3ff1 | 4915 | """Proxy of C++ TreeEvent class""" |
554f62e9 RD |
4916 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4917 | __repr__ = _swig_repr | |
b02396e8 RD |
4918 | def __init__(self, *args): |
4919 | """ | |
4920 | __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> TreeEvent | |
4921 | __init__(self, EventType commandType, TreeCtrl tree, TreeItemId item=NullTreeItemId) -> TreeEvent | |
4922 | """ | |
4923 | _controls_.TreeEvent_swiginit(self,_controls_.new_TreeEvent(*args)) | |
d55e5bfc RD |
4924 | def GetItem(*args, **kwargs): |
4925 | """GetItem(self) -> TreeItemId""" | |
4926 | return _controls_.TreeEvent_GetItem(*args, **kwargs) | |
4927 | ||
4928 | def SetItem(*args, **kwargs): | |
4929 | """SetItem(self, TreeItemId item)""" | |
4930 | return _controls_.TreeEvent_SetItem(*args, **kwargs) | |
4931 | ||
4932 | def GetOldItem(*args, **kwargs): | |
4933 | """GetOldItem(self) -> TreeItemId""" | |
4934 | return _controls_.TreeEvent_GetOldItem(*args, **kwargs) | |
4935 | ||
4936 | def SetOldItem(*args, **kwargs): | |
4937 | """SetOldItem(self, TreeItemId item)""" | |
4938 | return _controls_.TreeEvent_SetOldItem(*args, **kwargs) | |
4939 | ||
4940 | def GetPoint(*args, **kwargs): | |
4941 | """GetPoint(self) -> Point""" | |
4942 | return _controls_.TreeEvent_GetPoint(*args, **kwargs) | |
4943 | ||
4944 | def SetPoint(*args, **kwargs): | |
4945 | """SetPoint(self, Point pt)""" | |
4946 | return _controls_.TreeEvent_SetPoint(*args, **kwargs) | |
4947 | ||
4948 | def GetKeyEvent(*args, **kwargs): | |
4949 | """GetKeyEvent(self) -> KeyEvent""" | |
4950 | return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs) | |
4951 | ||
4952 | def GetKeyCode(*args, **kwargs): | |
4953 | """GetKeyCode(self) -> int""" | |
4954 | return _controls_.TreeEvent_GetKeyCode(*args, **kwargs) | |
4955 | ||
4956 | def SetKeyEvent(*args, **kwargs): | |
4957 | """SetKeyEvent(self, KeyEvent evt)""" | |
4958 | return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs) | |
4959 | ||
4960 | def GetLabel(*args, **kwargs): | |
4961 | """GetLabel(self) -> String""" | |
4962 | return _controls_.TreeEvent_GetLabel(*args, **kwargs) | |
4963 | ||
4964 | def SetLabel(*args, **kwargs): | |
4965 | """SetLabel(self, String label)""" | |
4966 | return _controls_.TreeEvent_SetLabel(*args, **kwargs) | |
4967 | ||
4968 | def IsEditCancelled(*args, **kwargs): | |
4969 | """IsEditCancelled(self) -> bool""" | |
4970 | return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs) | |
4971 | ||
4972 | def SetEditCanceled(*args, **kwargs): | |
4973 | """SetEditCanceled(self, bool editCancelled)""" | |
4974 | return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs) | |
4975 | ||
4976 | def SetToolTip(*args, **kwargs): | |
4977 | """SetToolTip(self, String toolTip)""" | |
4978 | return _controls_.TreeEvent_SetToolTip(*args, **kwargs) | |
4979 | ||
dcb8fc74 RD |
4980 | def GetToolTip(*args, **kwargs): |
4981 | """GetToolTip(self) -> String""" | |
4982 | return _controls_.TreeEvent_GetToolTip(*args, **kwargs) | |
4983 | ||
2131d850 | 4984 | _controls_.TreeEvent_swigregister(TreeEvent) |
d55e5bfc RD |
4985 | |
4986 | #--------------------------------------------------------------------------- | |
4987 | ||
4988 | class TreeCtrl(_core.Control): | |
093d3ff1 | 4989 | """Proxy of C++ TreeCtrl class""" |
554f62e9 RD |
4990 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4991 | __repr__ = _swig_repr | |
4992 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4993 | """ |
4994 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4995 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, | |
4996 | Validator validator=DefaultValidator, | |
4997 | String name=TreeCtrlNameStr) -> TreeCtrl | |
4998 | """ | |
554f62e9 | 4999 | _controls_.TreeCtrl_swiginit(self,_controls_.new_TreeCtrl(*args, **kwargs)) |
d55e5bfc RD |
5000 | self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) |
5001 | ||
5002 | def Create(*args, **kwargs): | |
5003 | """ | |
5004 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
5005 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, | |
5006 | Validator validator=DefaultValidator, | |
5007 | String name=TreeCtrlNameStr) -> bool | |
5008 | ||
5009 | Do the 2nd phase and create the GUI control. | |
5010 | """ | |
5011 | return _controls_.TreeCtrl_Create(*args, **kwargs) | |
5012 | ||
5013 | def _setCallbackInfo(*args, **kwargs): | |
5014 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5015 | return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) | |
5016 | ||
5017 | def GetCount(*args, **kwargs): | |
e9d6f3a4 | 5018 | """GetCount(self) -> unsigned int""" |
d55e5bfc RD |
5019 | return _controls_.TreeCtrl_GetCount(*args, **kwargs) |
5020 | ||
5021 | def GetIndent(*args, **kwargs): | |
5022 | """GetIndent(self) -> unsigned int""" | |
5023 | return _controls_.TreeCtrl_GetIndent(*args, **kwargs) | |
5024 | ||
5025 | def SetIndent(*args, **kwargs): | |
5026 | """SetIndent(self, unsigned int indent)""" | |
5027 | return _controls_.TreeCtrl_SetIndent(*args, **kwargs) | |
5028 | ||
5029 | def GetSpacing(*args, **kwargs): | |
5030 | """GetSpacing(self) -> unsigned int""" | |
5031 | return _controls_.TreeCtrl_GetSpacing(*args, **kwargs) | |
5032 | ||
5033 | def SetSpacing(*args, **kwargs): | |
5034 | """SetSpacing(self, unsigned int spacing)""" | |
5035 | return _controls_.TreeCtrl_SetSpacing(*args, **kwargs) | |
5036 | ||
5037 | def GetImageList(*args, **kwargs): | |
5038 | """GetImageList(self) -> ImageList""" | |
5039 | return _controls_.TreeCtrl_GetImageList(*args, **kwargs) | |
5040 | ||
5041 | def GetStateImageList(*args, **kwargs): | |
5042 | """GetStateImageList(self) -> ImageList""" | |
5043 | return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs) | |
5044 | ||
5045 | def SetImageList(*args, **kwargs): | |
5046 | """SetImageList(self, ImageList imageList)""" | |
5047 | return _controls_.TreeCtrl_SetImageList(*args, **kwargs) | |
5048 | ||
5049 | def SetStateImageList(*args, **kwargs): | |
5050 | """SetStateImageList(self, ImageList imageList)""" | |
5051 | return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs) | |
5052 | ||
5053 | def AssignImageList(*args, **kwargs): | |
5054 | """AssignImageList(self, ImageList imageList)""" | |
5055 | return _controls_.TreeCtrl_AssignImageList(*args, **kwargs) | |
5056 | ||
5057 | def AssignStateImageList(*args, **kwargs): | |
5058 | """AssignStateImageList(self, ImageList imageList)""" | |
5059 | return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs) | |
5060 | ||
5061 | def GetItemText(*args, **kwargs): | |
5062 | """GetItemText(self, TreeItemId item) -> String""" | |
5063 | return _controls_.TreeCtrl_GetItemText(*args, **kwargs) | |
5064 | ||
5065 | def GetItemImage(*args, **kwargs): | |
5066 | """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" | |
5067 | return _controls_.TreeCtrl_GetItemImage(*args, **kwargs) | |
5068 | ||
5069 | def GetItemData(*args, **kwargs): | |
5070 | """GetItemData(self, TreeItemId item) -> TreeItemData""" | |
5071 | return _controls_.TreeCtrl_GetItemData(*args, **kwargs) | |
5072 | ||
5073 | def GetItemPyData(*args, **kwargs): | |
5074 | """GetItemPyData(self, TreeItemId item) -> PyObject""" | |
5075 | return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs) | |
5076 | ||
5077 | GetPyData = GetItemPyData | |
5078 | def GetItemTextColour(*args, **kwargs): | |
5079 | """GetItemTextColour(self, TreeItemId item) -> Colour""" | |
5080 | return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs) | |
5081 | ||
5082 | def GetItemBackgroundColour(*args, **kwargs): | |
5083 | """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" | |
5084 | return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) | |
5085 | ||
5086 | def GetItemFont(*args, **kwargs): | |
5087 | """GetItemFont(self, TreeItemId item) -> Font""" | |
5088 | return _controls_.TreeCtrl_GetItemFont(*args, **kwargs) | |
5089 | ||
5090 | def SetItemText(*args, **kwargs): | |
5091 | """SetItemText(self, TreeItemId item, String text)""" | |
5092 | return _controls_.TreeCtrl_SetItemText(*args, **kwargs) | |
5093 | ||
5094 | def SetItemImage(*args, **kwargs): | |
5095 | """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" | |
5096 | return _controls_.TreeCtrl_SetItemImage(*args, **kwargs) | |
5097 | ||
5098 | def SetItemData(*args, **kwargs): | |
5099 | """SetItemData(self, TreeItemId item, TreeItemData data)""" | |
5100 | return _controls_.TreeCtrl_SetItemData(*args, **kwargs) | |
5101 | ||
5102 | def SetItemPyData(*args, **kwargs): | |
5103 | """SetItemPyData(self, TreeItemId item, PyObject obj)""" | |
5104 | return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs) | |
5105 | ||
5106 | SetPyData = SetItemPyData | |
5107 | def SetItemHasChildren(*args, **kwargs): | |
5108 | """SetItemHasChildren(self, TreeItemId item, bool has=True)""" | |
5109 | return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs) | |
5110 | ||
5111 | def SetItemBold(*args, **kwargs): | |
5112 | """SetItemBold(self, TreeItemId item, bool bold=True)""" | |
5113 | return _controls_.TreeCtrl_SetItemBold(*args, **kwargs) | |
5114 | ||
5115 | def SetItemDropHighlight(*args, **kwargs): | |
5116 | """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)""" | |
5117 | return _controls_.TreeCtrl_SetItemDropHighlight(*args, **kwargs) | |
5118 | ||
5119 | def SetItemTextColour(*args, **kwargs): | |
5120 | """SetItemTextColour(self, TreeItemId item, Colour col)""" | |
5121 | return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs) | |
5122 | ||
5123 | def SetItemBackgroundColour(*args, **kwargs): | |
5124 | """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" | |
5125 | return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) | |
5126 | ||
5127 | def SetItemFont(*args, **kwargs): | |
5128 | """SetItemFont(self, TreeItemId item, Font font)""" | |
5129 | return _controls_.TreeCtrl_SetItemFont(*args, **kwargs) | |
5130 | ||
5131 | def IsVisible(*args, **kwargs): | |
5132 | """IsVisible(self, TreeItemId item) -> bool""" | |
5133 | return _controls_.TreeCtrl_IsVisible(*args, **kwargs) | |
5134 | ||
5135 | def ItemHasChildren(*args, **kwargs): | |
5136 | """ItemHasChildren(self, TreeItemId item) -> bool""" | |
5137 | return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs) | |
5138 | ||
5139 | def IsExpanded(*args, **kwargs): | |
5140 | """IsExpanded(self, TreeItemId item) -> bool""" | |
5141 | return _controls_.TreeCtrl_IsExpanded(*args, **kwargs) | |
5142 | ||
5143 | def IsSelected(*args, **kwargs): | |
5144 | """IsSelected(self, TreeItemId item) -> bool""" | |
5145 | return _controls_.TreeCtrl_IsSelected(*args, **kwargs) | |
5146 | ||
5147 | def IsBold(*args, **kwargs): | |
5148 | """IsBold(self, TreeItemId item) -> bool""" | |
5149 | return _controls_.TreeCtrl_IsBold(*args, **kwargs) | |
5150 | ||
5151 | def GetChildrenCount(*args, **kwargs): | |
5152 | """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" | |
5153 | return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs) | |
5154 | ||
5155 | def GetRootItem(*args, **kwargs): | |
5156 | """GetRootItem(self) -> TreeItemId""" | |
5157 | return _controls_.TreeCtrl_GetRootItem(*args, **kwargs) | |
5158 | ||
5159 | def GetSelection(*args, **kwargs): | |
5160 | """GetSelection(self) -> TreeItemId""" | |
5161 | return _controls_.TreeCtrl_GetSelection(*args, **kwargs) | |
5162 | ||
5163 | def GetSelections(*args, **kwargs): | |
5164 | """GetSelections(self) -> PyObject""" | |
5165 | return _controls_.TreeCtrl_GetSelections(*args, **kwargs) | |
5166 | ||
5167 | def GetItemParent(*args, **kwargs): | |
5168 | """GetItemParent(self, TreeItemId item) -> TreeItemId""" | |
5169 | return _controls_.TreeCtrl_GetItemParent(*args, **kwargs) | |
5170 | ||
5171 | def GetFirstChild(*args, **kwargs): | |
5172 | """GetFirstChild(self, TreeItemId item) -> PyObject""" | |
5173 | return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs) | |
5174 | ||
5175 | def GetNextChild(*args, **kwargs): | |
5176 | """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" | |
5177 | return _controls_.TreeCtrl_GetNextChild(*args, **kwargs) | |
5178 | ||
5179 | def GetLastChild(*args, **kwargs): | |
5180 | """GetLastChild(self, TreeItemId item) -> TreeItemId""" | |
5181 | return _controls_.TreeCtrl_GetLastChild(*args, **kwargs) | |
5182 | ||
5183 | def GetNextSibling(*args, **kwargs): | |
5184 | """GetNextSibling(self, TreeItemId item) -> TreeItemId""" | |
5185 | return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs) | |
5186 | ||
5187 | def GetPrevSibling(*args, **kwargs): | |
5188 | """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" | |
5189 | return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs) | |
5190 | ||
5191 | def GetFirstVisibleItem(*args, **kwargs): | |
5192 | """GetFirstVisibleItem(self) -> TreeItemId""" | |
5193 | return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) | |
5194 | ||
5195 | def GetNextVisible(*args, **kwargs): | |
5196 | """GetNextVisible(self, TreeItemId item) -> TreeItemId""" | |
5197 | return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs) | |
5198 | ||
5199 | def GetPrevVisible(*args, **kwargs): | |
5200 | """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" | |
5201 | return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs) | |
5202 | ||
5203 | def AddRoot(*args, **kwargs): | |
5204 | """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" | |
5205 | return _controls_.TreeCtrl_AddRoot(*args, **kwargs) | |
5206 | ||
5207 | def PrependItem(*args, **kwargs): | |
5208 | """ | |
5209 | PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, | |
5210 | TreeItemData data=None) -> TreeItemId | |
5211 | """ | |
5212 | return _controls_.TreeCtrl_PrependItem(*args, **kwargs) | |
5213 | ||
5214 | def InsertItem(*args, **kwargs): | |
5215 | """ | |
5216 | InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, | |
5217 | int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId | |
5218 | """ | |
5219 | return _controls_.TreeCtrl_InsertItem(*args, **kwargs) | |
5220 | ||
5221 | def InsertItemBefore(*args, **kwargs): | |
5222 | """ | |
5223 | InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, | |
5224 | int selectedImage=-1, TreeItemData data=None) -> TreeItemId | |
5225 | """ | |
5226 | return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs) | |
5227 | ||
5228 | def AppendItem(*args, **kwargs): | |
5229 | """ | |
5230 | AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, | |
5231 | TreeItemData data=None) -> TreeItemId | |
5232 | """ | |
5233 | return _controls_.TreeCtrl_AppendItem(*args, **kwargs) | |
5234 | ||
5235 | def Delete(*args, **kwargs): | |
5236 | """Delete(self, TreeItemId item)""" | |
5237 | return _controls_.TreeCtrl_Delete(*args, **kwargs) | |
5238 | ||
5239 | def DeleteChildren(*args, **kwargs): | |
5240 | """DeleteChildren(self, TreeItemId item)""" | |
5241 | return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs) | |
5242 | ||
5243 | def DeleteAllItems(*args, **kwargs): | |
5244 | """DeleteAllItems(self)""" | |
5245 | return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs) | |
5246 | ||
5247 | def Expand(*args, **kwargs): | |
5248 | """Expand(self, TreeItemId item)""" | |
5249 | return _controls_.TreeCtrl_Expand(*args, **kwargs) | |
5250 | ||
453fb36b RD |
5251 | def ExpandAllChildren(*args, **kwargs): |
5252 | """ExpandAllChildren(self, TreeItemId item)""" | |
5253 | return _controls_.TreeCtrl_ExpandAllChildren(*args, **kwargs) | |
5254 | ||
5255 | def ExpandAll(*args, **kwargs): | |
5256 | """ExpandAll(self)""" | |
5257 | return _controls_.TreeCtrl_ExpandAll(*args, **kwargs) | |
5258 | ||
d55e5bfc RD |
5259 | def Collapse(*args, **kwargs): |
5260 | """Collapse(self, TreeItemId item)""" | |
5261 | return _controls_.TreeCtrl_Collapse(*args, **kwargs) | |
5262 | ||
5263 | def CollapseAndReset(*args, **kwargs): | |
5264 | """CollapseAndReset(self, TreeItemId item)""" | |
5265 | return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs) | |
5266 | ||
5267 | def Toggle(*args, **kwargs): | |
5268 | """Toggle(self, TreeItemId item)""" | |
5269 | return _controls_.TreeCtrl_Toggle(*args, **kwargs) | |
5270 | ||
5271 | def Unselect(*args, **kwargs): | |
5272 | """Unselect(self)""" | |
5273 | return _controls_.TreeCtrl_Unselect(*args, **kwargs) | |
5274 | ||
5275 | def UnselectItem(*args, **kwargs): | |
5276 | """UnselectItem(self, TreeItemId item)""" | |
5277 | return _controls_.TreeCtrl_UnselectItem(*args, **kwargs) | |
5278 | ||
5279 | def UnselectAll(*args, **kwargs): | |
5280 | """UnselectAll(self)""" | |
5281 | return _controls_.TreeCtrl_UnselectAll(*args, **kwargs) | |
5282 | ||
5283 | def SelectItem(*args, **kwargs): | |
5284 | """SelectItem(self, TreeItemId item, bool select=True)""" | |
5285 | return _controls_.TreeCtrl_SelectItem(*args, **kwargs) | |
5286 | ||
5287 | def ToggleItemSelection(*args, **kwargs): | |
5288 | """ToggleItemSelection(self, TreeItemId item)""" | |
5289 | return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs) | |
5290 | ||
5291 | def EnsureVisible(*args, **kwargs): | |
5292 | """EnsureVisible(self, TreeItemId item)""" | |
5293 | return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs) | |
5294 | ||
5295 | def ScrollTo(*args, **kwargs): | |
5296 | """ScrollTo(self, TreeItemId item)""" | |
5297 | return _controls_.TreeCtrl_ScrollTo(*args, **kwargs) | |
5298 | ||
5299 | def EditLabel(*args, **kwargs): | |
5300 | """EditLabel(self, TreeItemId item)""" | |
5301 | return _controls_.TreeCtrl_EditLabel(*args, **kwargs) | |
5302 | ||
5303 | def GetEditControl(*args, **kwargs): | |
5304 | """GetEditControl(self) -> TextCtrl""" | |
5305 | return _controls_.TreeCtrl_GetEditControl(*args, **kwargs) | |
5306 | ||
5307 | def EndEditLabel(*args, **kwargs): | |
5308 | """EndEditLabel(self, TreeItemId item, bool discardChanges=False)""" | |
5309 | return _controls_.TreeCtrl_EndEditLabel(*args, **kwargs) | |
5310 | ||
5311 | def SortChildren(*args, **kwargs): | |
5312 | """SortChildren(self, TreeItemId item)""" | |
5313 | return _controls_.TreeCtrl_SortChildren(*args, **kwargs) | |
5314 | ||
5315 | def HitTest(*args, **kwargs): | |
a001823c RD |
5316 | """ |
5317 | HitTest(Point point) -> (item, where) | |
5318 | ||
5319 | Determine which item (if any) belongs the given point. The coordinates | |
5320 | specified are relative to the client area of tree ctrl and the where return | |
5321 | value is set to a bitmask of wxTREE_HITTEST_xxx constants. | |
5322 | ||
5323 | """ | |
d55e5bfc RD |
5324 | return _controls_.TreeCtrl_HitTest(*args, **kwargs) |
5325 | ||
5326 | def GetBoundingRect(*args, **kwargs): | |
5327 | """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" | |
5328 | return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs) | |
5329 | ||
110da5b0 RD |
5330 | def SetState(*args, **kwargs): |
5331 | """SetState(self, TreeItemId node, int state)""" | |
5332 | return _controls_.TreeCtrl_SetState(*args, **kwargs) | |
5333 | ||
5334 | def GetState(*args, **kwargs): | |
5335 | """GetState(self, TreeItemId node) -> int""" | |
5336 | return _controls_.TreeCtrl_GetState(*args, **kwargs) | |
5337 | ||
d55e5bfc | 5338 | def GetClassDefaultAttributes(*args, **kwargs): |
19272049 RD |
5339 | """ |
5340 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
5341 | ||
5342 | Get the default attributes for this class. This is useful if you want | |
5343 | to use the same font or colour in your own control as in a standard | |
5344 | control -- which is a much better idea than hard coding specific | |
5345 | colours or fonts which might look completely out of place on the | |
5346 | user's system, especially if it uses themes. | |
5347 | ||
5348 | The variant parameter is only relevant under Mac currently and is | |
5349 | ignore under other platforms. Under Mac, it will change the size of | |
5350 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5351 | this. | |
5352 | """ | |
d55e5bfc RD |
5353 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
5354 | ||
5355 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 RD |
5356 | def SetQuickBestSize(*args, **kwargs): |
5357 | """SetQuickBestSize(self, bool q)""" | |
5358 | return _controls_.TreeCtrl_SetQuickBestSize(*args, **kwargs) | |
5359 | ||
5360 | def GetQuickBestSize(*args, **kwargs): | |
5361 | """GetQuickBestSize(self) -> bool""" | |
5362 | return _controls_.TreeCtrl_GetQuickBestSize(*args, **kwargs) | |
5363 | ||
5364 | _controls_.TreeCtrl_swigregister(TreeCtrl) | |
d55e5bfc RD |
5365 | |
5366 | def PreTreeCtrl(*args, **kwargs): | |
5367 | """PreTreeCtrl() -> TreeCtrl""" | |
5368 | val = _controls_.new_PreTreeCtrl(*args, **kwargs) | |
d55e5bfc RD |
5369 | return val |
5370 | ||
5371 | def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
554f62e9 | 5372 | """ |
19272049 RD |
5373 | TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
5374 | ||
5375 | Get the default attributes for this class. This is useful if you want | |
5376 | to use the same font or colour in your own control as in a standard | |
5377 | control -- which is a much better idea than hard coding specific | |
5378 | colours or fonts which might look completely out of place on the | |
5379 | user's system, especially if it uses themes. | |
5380 | ||
5381 | The variant parameter is only relevant under Mac currently and is | |
5382 | ignore under other platforms. Under Mac, it will change the size of | |
5383 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5384 | this. | |
5385 | """ | |
554f62e9 | 5386 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
d55e5bfc RD |
5387 | |
5388 | #--------------------------------------------------------------------------- | |
5389 | ||
5390 | DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY | |
5391 | DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST | |
5392 | DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS | |
5393 | DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL | |
5394 | DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS | |
5395 | class GenericDirCtrl(_core.Control): | |
093d3ff1 | 5396 | """Proxy of C++ GenericDirCtrl class""" |
554f62e9 RD |
5397 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5398 | __repr__ = _swig_repr | |
5399 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5400 | """ |
5401 | __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, | |
5402 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5403 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5404 | String filter=EmptyString, | |
5405 | int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl | |
5406 | """ | |
554f62e9 | 5407 | _controls_.GenericDirCtrl_swiginit(self,_controls_.new_GenericDirCtrl(*args, **kwargs)) |
d55e5bfc RD |
5408 | self._setOORInfo(self) |
5409 | ||
5410 | def Create(*args, **kwargs): | |
5411 | """ | |
5412 | Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, | |
5413 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5414 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5415 | String filter=EmptyString, | |
5416 | int defaultFilter=0, String name=TreeCtrlNameStr) -> bool | |
5417 | """ | |
5418 | return _controls_.GenericDirCtrl_Create(*args, **kwargs) | |
5419 | ||
5420 | def ExpandPath(*args, **kwargs): | |
5421 | """ExpandPath(self, String path) -> bool""" | |
5422 | return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs) | |
5423 | ||
704eda0c RD |
5424 | def CollapsePath(*args, **kwargs): |
5425 | """CollapsePath(self, String path) -> bool""" | |
5426 | return _controls_.GenericDirCtrl_CollapsePath(*args, **kwargs) | |
5427 | ||
d55e5bfc RD |
5428 | def GetDefaultPath(*args, **kwargs): |
5429 | """GetDefaultPath(self) -> String""" | |
5430 | return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs) | |
5431 | ||
5432 | def SetDefaultPath(*args, **kwargs): | |
5433 | """SetDefaultPath(self, String path)""" | |
5434 | return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs) | |
5435 | ||
5436 | def GetPath(*args, **kwargs): | |
5437 | """GetPath(self) -> String""" | |
5438 | return _controls_.GenericDirCtrl_GetPath(*args, **kwargs) | |
5439 | ||
5440 | def GetFilePath(*args, **kwargs): | |
5441 | """GetFilePath(self) -> String""" | |
5442 | return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs) | |
5443 | ||
5444 | def SetPath(*args, **kwargs): | |
5445 | """SetPath(self, String path)""" | |
5446 | return _controls_.GenericDirCtrl_SetPath(*args, **kwargs) | |
5447 | ||
5448 | def ShowHidden(*args, **kwargs): | |
5449 | """ShowHidden(self, bool show)""" | |
5450 | return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs) | |
5451 | ||
5452 | def GetShowHidden(*args, **kwargs): | |
5453 | """GetShowHidden(self) -> bool""" | |
5454 | return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs) | |
5455 | ||
5456 | def GetFilter(*args, **kwargs): | |
5457 | """GetFilter(self) -> String""" | |
5458 | return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs) | |
5459 | ||
5460 | def SetFilter(*args, **kwargs): | |
5461 | """SetFilter(self, String filter)""" | |
5462 | return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs) | |
5463 | ||
5464 | def GetFilterIndex(*args, **kwargs): | |
5465 | """GetFilterIndex(self) -> int""" | |
5466 | return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs) | |
5467 | ||
5468 | def SetFilterIndex(*args, **kwargs): | |
5469 | """SetFilterIndex(self, int n)""" | |
5470 | return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs) | |
5471 | ||
5472 | def GetRootId(*args, **kwargs): | |
5473 | """GetRootId(self) -> TreeItemId""" | |
5474 | return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs) | |
5475 | ||
5476 | def GetTreeCtrl(*args, **kwargs): | |
5477 | """GetTreeCtrl(self) -> TreeCtrl""" | |
5478 | return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) | |
5479 | ||
5480 | def GetFilterListCtrl(*args, **kwargs): | |
5481 | """GetFilterListCtrl(self) -> DirFilterListCtrl""" | |
5482 | return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) | |
5483 | ||
5484 | def FindChild(*args, **kwargs): | |
a001823c RD |
5485 | """ |
5486 | FindChild(wxTreeItemId parentId, wxString path) -> (item, done) | |
5487 | ||
5488 | Find the child that matches the first part of 'path'. E.g. if a child | |
5489 | path is "/usr" and 'path' is "/usr/include" then the child for | |
5490 | /usr is returned. If the path string has been used (we're at the | |
5491 | leaf), done is set to True. | |
5492 | ||
5493 | """ | |
d55e5bfc RD |
5494 | return _controls_.GenericDirCtrl_FindChild(*args, **kwargs) |
5495 | ||
5496 | def DoResize(*args, **kwargs): | |
5497 | """DoResize(self)""" | |
5498 | return _controls_.GenericDirCtrl_DoResize(*args, **kwargs) | |
5499 | ||
5500 | def ReCreateTree(*args, **kwargs): | |
5501 | """ReCreateTree(self)""" | |
5502 | return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs) | |
5503 | ||
2131d850 | 5504 | _controls_.GenericDirCtrl_swigregister(GenericDirCtrl) |
d55e5bfc RD |
5505 | DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr |
5506 | ||
5507 | def PreGenericDirCtrl(*args, **kwargs): | |
5508 | """PreGenericDirCtrl() -> GenericDirCtrl""" | |
5509 | val = _controls_.new_PreGenericDirCtrl(*args, **kwargs) | |
d55e5bfc RD |
5510 | return val |
5511 | ||
5512 | class DirFilterListCtrl(Choice): | |
093d3ff1 | 5513 | """Proxy of C++ DirFilterListCtrl class""" |
554f62e9 RD |
5514 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5515 | __repr__ = _swig_repr | |
5516 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5517 | """ |
5518 | __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
5519 | Size size=DefaultSize, long style=0) -> DirFilterListCtrl | |
5520 | """ | |
554f62e9 | 5521 | _controls_.DirFilterListCtrl_swiginit(self,_controls_.new_DirFilterListCtrl(*args, **kwargs)) |
d55e5bfc RD |
5522 | self._setOORInfo(self) |
5523 | ||
5524 | def Create(*args, **kwargs): | |
5525 | """ | |
5526 | Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
5527 | Size size=DefaultSize, long style=0) -> bool | |
5528 | """ | |
5529 | return _controls_.DirFilterListCtrl_Create(*args, **kwargs) | |
5530 | ||
5531 | def FillFilterList(*args, **kwargs): | |
5532 | """FillFilterList(self, String filter, int defaultFilter)""" | |
5533 | return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs) | |
5534 | ||
2131d850 | 5535 | _controls_.DirFilterListCtrl_swigregister(DirFilterListCtrl) |
d55e5bfc RD |
5536 | |
5537 | def PreDirFilterListCtrl(*args, **kwargs): | |
5538 | """PreDirFilterListCtrl() -> DirFilterListCtrl""" | |
5539 | val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs) | |
d55e5bfc RD |
5540 | return val |
5541 | ||
5542 | #--------------------------------------------------------------------------- | |
5543 | ||
5544 | class PyControl(_core.Control): | |
093d3ff1 | 5545 | """Proxy of C++ PyControl class""" |
554f62e9 RD |
5546 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5547 | __repr__ = _swig_repr | |
5548 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 5549 | """ |
248ed943 RD |
5550 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
5551 | Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, | |
d55e5bfc RD |
5552 | String name=ControlNameStr) -> PyControl |
5553 | """ | |
554f62e9 | 5554 | _controls_.PyControl_swiginit(self,_controls_.new_PyControl(*args, **kwargs)) |
d55e5bfc RD |
5555 | self._setOORInfo(self); self._setCallbackInfo(self, PyControl) |
5556 | ||
5557 | def _setCallbackInfo(*args, **kwargs): | |
5558 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5559 | return _controls_.PyControl__setCallbackInfo(*args, **kwargs) | |
5560 | ||
caef1a4d RD |
5561 | def SetBestSize(*args, **kwargs): |
5562 | """SetBestSize(self, Size size)""" | |
5563 | return _controls_.PyControl_SetBestSize(*args, **kwargs) | |
5564 | ||
60d5fcc1 RD |
5565 | def DoEraseBackground(*args, **kwargs): |
5566 | """DoEraseBackground(self, DC dc) -> bool""" | |
5567 | return _controls_.PyControl_DoEraseBackground(*args, **kwargs) | |
5568 | ||
b06b3e70 RD |
5569 | def DoMoveWindow(*args, **kwargs): |
5570 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
5571 | return _controls_.PyControl_DoMoveWindow(*args, **kwargs) | |
d55e5bfc | 5572 | |
b06b3e70 RD |
5573 | def DoSetSize(*args, **kwargs): |
5574 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
5575 | return _controls_.PyControl_DoSetSize(*args, **kwargs) | |
d55e5bfc | 5576 | |
b06b3e70 RD |
5577 | def DoSetClientSize(*args, **kwargs): |
5578 | """DoSetClientSize(self, int width, int height)""" | |
5579 | return _controls_.PyControl_DoSetClientSize(*args, **kwargs) | |
d55e5bfc | 5580 | |
b06b3e70 RD |
5581 | def DoSetVirtualSize(*args, **kwargs): |
5582 | """DoSetVirtualSize(self, int x, int y)""" | |
5583 | return _controls_.PyControl_DoSetVirtualSize(*args, **kwargs) | |
d55e5bfc | 5584 | |
b06b3e70 RD |
5585 | def DoGetSize(*args, **kwargs): |
5586 | """DoGetSize() -> (width, height)""" | |
5587 | return _controls_.PyControl_DoGetSize(*args, **kwargs) | |
d55e5bfc | 5588 | |
b06b3e70 RD |
5589 | def DoGetClientSize(*args, **kwargs): |
5590 | """DoGetClientSize() -> (width, height)""" | |
5591 | return _controls_.PyControl_DoGetClientSize(*args, **kwargs) | |
d55e5bfc | 5592 | |
b06b3e70 RD |
5593 | def DoGetPosition(*args, **kwargs): |
5594 | """DoGetPosition() -> (x,y)""" | |
5595 | return _controls_.PyControl_DoGetPosition(*args, **kwargs) | |
d55e5bfc | 5596 | |
b06b3e70 RD |
5597 | def DoGetVirtualSize(*args, **kwargs): |
5598 | """DoGetVirtualSize(self) -> Size""" | |
5599 | return _controls_.PyControl_DoGetVirtualSize(*args, **kwargs) | |
d55e5bfc | 5600 | |
b06b3e70 RD |
5601 | def DoGetBestSize(*args, **kwargs): |
5602 | """DoGetBestSize(self) -> Size""" | |
5603 | return _controls_.PyControl_DoGetBestSize(*args, **kwargs) | |
d55e5bfc | 5604 | |
b06b3e70 RD |
5605 | def GetDefaultAttributes(*args, **kwargs): |
5606 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
5607 | return _controls_.PyControl_GetDefaultAttributes(*args, **kwargs) | |
5608 | ||
5609 | def OnInternalIdle(*args, **kwargs): | |
5610 | """OnInternalIdle(self)""" | |
5611 | return _controls_.PyControl_OnInternalIdle(*args, **kwargs) | |
5612 | ||
5613 | def base_DoMoveWindow(*args, **kw): | |
5614 | return PyScrolledWindow.DoMoveWindow(*args, **kw) | |
5615 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
5616 | "Please use PyScrolledWindow.DoMoveWindow instead.") | |
5617 | ||
5618 | def base_DoSetSize(*args, **kw): | |
5619 | return PyScrolledWindow.DoSetSize(*args, **kw) | |
5620 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
5621 | "Please use PyScrolledWindow.DoSetSize instead.") | |
d55e5bfc | 5622 | |
b06b3e70 RD |
5623 | def base_DoSetClientSize(*args, **kw): |
5624 | return PyScrolledWindow.DoSetClientSize(*args, **kw) | |
5625 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
5626 | "Please use PyScrolledWindow.DoSetClientSize instead.") | |
d55e5bfc | 5627 | |
b06b3e70 RD |
5628 | def base_DoSetVirtualSize(*args, **kw): |
5629 | return PyScrolledWindow.DoSetVirtualSize(*args, **kw) | |
5630 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
5631 | "Please use PyScrolledWindow.DoSetVirtualSize instead.") | |
d55e5bfc | 5632 | |
b06b3e70 RD |
5633 | def base_DoGetSize(*args, **kw): |
5634 | return PyScrolledWindow.DoGetSize(*args, **kw) | |
5635 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
5636 | "Please use PyScrolledWindow.DoGetSize instead.") | |
d55e5bfc | 5637 | |
b06b3e70 RD |
5638 | def base_DoGetClientSize(*args, **kw): |
5639 | return PyScrolledWindow.DoGetClientSize(*args, **kw) | |
5640 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
5641 | "Please use PyScrolledWindow.DoGetClientSize instead.") | |
d55e5bfc | 5642 | |
b06b3e70 RD |
5643 | def base_DoGetPosition(*args, **kw): |
5644 | return PyScrolledWindow.DoGetPosition(*args, **kw) | |
5645 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
5646 | "Please use PyScrolledWindow.DoGetPosition instead.") | |
d55e5bfc | 5647 | |
b06b3e70 RD |
5648 | def base_DoGetVirtualSize(*args, **kw): |
5649 | return PyScrolledWindow.DoGetVirtualSize(*args, **kw) | |
5650 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
5651 | "Please use PyScrolledWindow.DoGetVirtualSize instead.") | |
d55e5bfc | 5652 | |
b06b3e70 RD |
5653 | def base_DoGetBestSize(*args, **kw): |
5654 | return PyScrolledWindow.DoGetBestSize(*args, **kw) | |
5655 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
5656 | "Please use PyScrolledWindow.DoGetBestSize instead.") | |
d55e5bfc | 5657 | |
b06b3e70 RD |
5658 | def base_InitDialog(*args, **kw): |
5659 | return PyScrolledWindow.InitDialog(*args, **kw) | |
5660 | base_InitDialog = wx._deprecated(base_InitDialog, | |
5661 | "Please use PyScrolledWindow.InitDialog instead.") | |
d55e5bfc | 5662 | |
b06b3e70 RD |
5663 | def base_TransferDataToWindow(*args, **kw): |
5664 | return PyScrolledWindow.TransferDataToWindow(*args, **kw) | |
5665 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
5666 | "Please use PyScrolledWindow.TransferDataToWindow instead.") | |
d55e5bfc | 5667 | |
b06b3e70 RD |
5668 | def base_TransferDataFromWindow(*args, **kw): |
5669 | return PyScrolledWindow.TransferDataFromWindow(*args, **kw) | |
5670 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
5671 | "Please use PyScrolledWindow.TransferDataFromWindow instead.") | |
caef1a4d | 5672 | |
b06b3e70 RD |
5673 | def base_Validate(*args, **kw): |
5674 | return PyScrolledWindow.Validate(*args, **kw) | |
5675 | base_Validate = wx._deprecated(base_Validate, | |
5676 | "Please use PyScrolledWindow.Validate instead.") | |
5677 | ||
5678 | def base_AcceptsFocus(*args, **kw): | |
5679 | return PyScrolledWindow.AcceptsFocus(*args, **kw) | |
5680 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
5681 | "Please use PyScrolledWindow.AcceptsFocus instead.") | |
5682 | ||
5683 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
5684 | return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
5685 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
5686 | "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.") | |
5687 | ||
5688 | def base_GetMaxSize(*args, **kw): | |
5689 | return PyScrolledWindow.GetMaxSize(*args, **kw) | |
5690 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
5691 | "Please use PyScrolledWindow.GetMaxSize instead.") | |
5692 | ||
5693 | def base_AddChild(*args, **kw): | |
5694 | return PyScrolledWindow.AddChild(*args, **kw) | |
5695 | base_AddChild = wx._deprecated(base_AddChild, | |
5696 | "Please use PyScrolledWindow.AddChild instead.") | |
5697 | ||
5698 | def base_RemoveChild(*args, **kw): | |
5699 | return PyScrolledWindow.RemoveChild(*args, **kw) | |
5700 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
5701 | "Please use PyScrolledWindow.RemoveChild instead.") | |
5702 | ||
5703 | def base_ShouldInheritColours(*args, **kw): | |
5704 | return PyScrolledWindow.ShouldInheritColours(*args, **kw) | |
5705 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
5706 | "Please use PyScrolledWindow.ShouldInheritColours instead.") | |
5707 | ||
5708 | def base_GetDefaultAttributes(*args, **kw): | |
5709 | return PyScrolledWindow.GetDefaultAttributes(*args, **kw) | |
5710 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
5711 | "Please use PyScrolledWindow.GetDefaultAttributes instead.") | |
5712 | ||
5713 | def base_OnInternalIdle(*args, **kw): | |
5714 | return PyScrolledWindow.OnInternalIdle(*args, **kw) | |
5715 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
5716 | "Please use PyScrolledWindow.OnInternalIdle instead.") | |
8d38bd1d | 5717 | |
2131d850 | 5718 | _controls_.PyControl_swigregister(PyControl) |
d55e5bfc RD |
5719 | |
5720 | def PrePyControl(*args, **kwargs): | |
5721 | """PrePyControl() -> PyControl""" | |
5722 | val = _controls_.new_PrePyControl(*args, **kwargs) | |
d55e5bfc RD |
5723 | return val |
5724 | ||
5725 | #--------------------------------------------------------------------------- | |
5726 | ||
5727 | FRAME_EX_CONTEXTHELP = _controls_.FRAME_EX_CONTEXTHELP | |
5728 | DIALOG_EX_CONTEXTHELP = _controls_.DIALOG_EX_CONTEXTHELP | |
5729 | wxEVT_HELP = _controls_.wxEVT_HELP | |
5730 | wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP | |
5731 | EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) | |
5732 | EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) | |
5733 | EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) | |
5734 | EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) | |
5735 | ||
5736 | class HelpEvent(_core.CommandEvent): | |
5737 | """ | |
79fccf9d RD |
5738 | A help event is sent when the user has requested context-sensitive |
5739 | help. This can either be caused by the application requesting | |
5740 | context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by | |
5741 | the system generating a WM_HELP message when the user pressed F1 or | |
5742 | clicked on the query button in a dialog caption. | |
5743 | ||
5744 | A help event is sent to the window that the user clicked on, and is | |
5745 | propagated up the window hierarchy until the event is processed or | |
5746 | there are no more event handlers. The application should call | |
5747 | event.GetId to check the identity of the clicked-on window, and then | |
5748 | either show some suitable help or call event.Skip if the identifier is | |
5749 | unrecognised. Calling Skip is important because it allows wxWindows to | |
5750 | generate further events for ancestors of the clicked-on | |
5751 | window. Otherwise it would be impossible to show help for container | |
5752 | windows, since processing would stop after the first window found. | |
d55e5bfc | 5753 | """ |
554f62e9 RD |
5754 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5755 | __repr__ = _swig_repr | |
704eda0c RD |
5756 | Origin_Unknown = _controls_.HelpEvent_Origin_Unknown |
5757 | Origin_Keyboard = _controls_.HelpEvent_Origin_Keyboard | |
5758 | Origin_HelpButton = _controls_.HelpEvent_Origin_HelpButton | |
554f62e9 | 5759 | def __init__(self, *args, **kwargs): |
704eda0c RD |
5760 | """ |
5761 | __init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition, | |
5762 | int origin=Origin_Unknown) -> HelpEvent | |
5763 | """ | |
554f62e9 | 5764 | _controls_.HelpEvent_swiginit(self,_controls_.new_HelpEvent(*args, **kwargs)) |
d55e5bfc RD |
5765 | def GetPosition(*args, **kwargs): |
5766 | """ | |
5767 | GetPosition(self) -> Point | |
5768 | ||
5769 | Returns the left-click position of the mouse, in screen | |
5770 | coordinates. This allows the application to position the help | |
5771 | appropriately. | |
5772 | """ | |
5773 | return _controls_.HelpEvent_GetPosition(*args, **kwargs) | |
5774 | ||
5775 | def SetPosition(*args, **kwargs): | |
5776 | """ | |
5777 | SetPosition(self, Point pos) | |
5778 | ||
5779 | Sets the left-click position of the mouse, in screen coordinates. | |
5780 | """ | |
5781 | return _controls_.HelpEvent_SetPosition(*args, **kwargs) | |
5782 | ||
5783 | def GetLink(*args, **kwargs): | |
5784 | """ | |
5785 | GetLink(self) -> String | |
5786 | ||
5787 | Get an optional link to further help | |
5788 | """ | |
5789 | return _controls_.HelpEvent_GetLink(*args, **kwargs) | |
5790 | ||
5791 | def SetLink(*args, **kwargs): | |
5792 | """ | |
5793 | SetLink(self, String link) | |
5794 | ||
5795 | Set an optional link to further help | |
5796 | """ | |
5797 | return _controls_.HelpEvent_SetLink(*args, **kwargs) | |
5798 | ||
5799 | def GetTarget(*args, **kwargs): | |
5800 | """ | |
5801 | GetTarget(self) -> String | |
5802 | ||
5803 | Get an optional target to display help in. E.g. a window specification | |
5804 | """ | |
5805 | return _controls_.HelpEvent_GetTarget(*args, **kwargs) | |
5806 | ||
5807 | def SetTarget(*args, **kwargs): | |
5808 | """ | |
5809 | SetTarget(self, String target) | |
5810 | ||
5811 | Set an optional target to display help in. E.g. a window specification | |
5812 | """ | |
5813 | return _controls_.HelpEvent_SetTarget(*args, **kwargs) | |
5814 | ||
704eda0c RD |
5815 | def GetOrigin(*args, **kwargs): |
5816 | """ | |
5817 | GetOrigin(self) -> int | |
5818 | ||
5819 | Optiononal indication of the source of the event. | |
5820 | """ | |
5821 | return _controls_.HelpEvent_GetOrigin(*args, **kwargs) | |
5822 | ||
5823 | def SetOrigin(*args, **kwargs): | |
5824 | """SetOrigin(self, int origin)""" | |
5825 | return _controls_.HelpEvent_SetOrigin(*args, **kwargs) | |
5826 | ||
2131d850 | 5827 | _controls_.HelpEvent_swigregister(HelpEvent) |
d55e5bfc RD |
5828 | |
5829 | class ContextHelp(_core.Object): | |
5830 | """ | |
79fccf9d RD |
5831 | This class changes the cursor to a query and puts the application into |
5832 | a 'context-sensitive help mode'. When the user left-clicks on a window | |
5833 | within the specified window, a ``EVT_HELP`` event is sent to that | |
5834 | control, and the application may respond to it by popping up some | |
5835 | help. | |
d55e5bfc RD |
5836 | |
5837 | There are a couple of ways to invoke this behaviour implicitly: | |
5838 | ||
79fccf9d RD |
5839 | * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog |
5840 | (Windows only). This will put a question mark in the titlebar, | |
5841 | and Windows will put the application into context-sensitive help | |
5842 | mode automatically, with further programming. | |
5843 | ||
5844 | * Create a `wx.ContextHelpButton`, whose predefined behaviour is | |
5845 | to create a context help object. Normally you will write your | |
5846 | application so that this button is only added to a dialog for | |
5847 | non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on | |
5848 | Windows). | |
d55e5bfc | 5849 | |
79fccf9d | 5850 | :see: `wx.ContextHelpButton` |
d55e5bfc RD |
5851 | |
5852 | """ | |
554f62e9 RD |
5853 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5854 | __repr__ = _swig_repr | |
5855 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5856 | """ |
5857 | __init__(self, Window window=None, bool doNow=True) -> ContextHelp | |
5858 | ||
79fccf9d RD |
5859 | Constructs a context help object, calling BeginContextHelp if doNow is |
5860 | true (the default). | |
d55e5bfc RD |
5861 | |
5862 | If window is None, the top window is used. | |
5863 | """ | |
554f62e9 RD |
5864 | _controls_.ContextHelp_swiginit(self,_controls_.new_ContextHelp(*args, **kwargs)) |
5865 | __swig_destroy__ = _controls_.delete_ContextHelp | |
5866 | __del__ = lambda self : None; | |
d55e5bfc RD |
5867 | def BeginContextHelp(*args, **kwargs): |
5868 | """ | |
5869 | BeginContextHelp(self, Window window=None) -> bool | |
5870 | ||
79fccf9d RD |
5871 | Puts the application into context-sensitive help mode. window is the |
5872 | window which will be used to catch events; if NULL, the top window | |
5873 | will be used. | |
d55e5bfc RD |
5874 | |
5875 | Returns true if the application was successfully put into | |
79fccf9d RD |
5876 | context-sensitive help mode. This function only returns when the event |
5877 | loop has finished. | |
d55e5bfc RD |
5878 | """ |
5879 | return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs) | |
5880 | ||
5881 | def EndContextHelp(*args, **kwargs): | |
5882 | """ | |
5883 | EndContextHelp(self) -> bool | |
5884 | ||
5885 | Ends context-sensitive help mode. Not normally called by the | |
5886 | application. | |
5887 | """ | |
5888 | return _controls_.ContextHelp_EndContextHelp(*args, **kwargs) | |
5889 | ||
2131d850 | 5890 | _controls_.ContextHelp_swigregister(ContextHelp) |
d55e5bfc RD |
5891 | |
5892 | class ContextHelpButton(BitmapButton): | |
5893 | """ | |
79fccf9d RD |
5894 | Instances of this class may be used to add a question mark button that |
5895 | when pressed, puts the application into context-help mode. It does | |
5896 | this by creating a wx.ContextHelp object which itself generates a | |
5897 | ``EVT_HELP`` event when the user clicks on a window. | |
5898 | ||
5899 | On Windows, you may add a question-mark icon to a dialog by use of the | |
5900 | ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you | |
5901 | will have to add a button explicitly, usually next to OK, Cancel or | |
5902 | similar buttons. | |
d55e5bfc | 5903 | |
79fccf9d | 5904 | :see: `wx.ContextHelp`, `wx.ContextHelpButton` |
d55e5bfc RD |
5905 | |
5906 | """ | |
554f62e9 RD |
5907 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5908 | __repr__ = _swig_repr | |
5909 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
5910 | """ |
5911 | __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, | |
5912 | Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton | |
5913 | ||
5914 | Constructor, creating and showing a context help button. | |
5915 | """ | |
554f62e9 | 5916 | _controls_.ContextHelpButton_swiginit(self,_controls_.new_ContextHelpButton(*args, **kwargs)) |
d55e5bfc RD |
5917 | self._setOORInfo(self) |
5918 | ||
2131d850 | 5919 | _controls_.ContextHelpButton_swigregister(ContextHelpButton) |
d55e5bfc RD |
5920 | |
5921 | class HelpProvider(object): | |
5922 | """ | |
5923 | wx.HelpProvider is an abstract class used by a program | |
5924 | implementing context-sensitive help to show the help text for the | |
5925 | given window. | |
5926 | ||
5927 | The current help provider must be explicitly set by the | |
5928 | application using wx.HelpProvider.Set(). | |
5929 | """ | |
554f62e9 RD |
5930 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5931 | def __init__(self): raise AttributeError, "No constructor defined" | |
5932 | __repr__ = _swig_repr | |
f52cbe90 RD |
5933 | __swig_destroy__ = _controls_.delete_HelpProvider |
5934 | __del__ = lambda self : None; | |
d55e5bfc RD |
5935 | def Set(*args, **kwargs): |
5936 | """ | |
c24da6d6 | 5937 | Set(HelpProvider helpProvider) -> HelpProvider |
d55e5bfc | 5938 | |
79fccf9d RD |
5939 | Sset the current, application-wide help provider. Returns the previous |
5940 | one. Unlike some other classes, the help provider is not created on | |
5941 | demand. This must be explicitly done by the application. | |
d55e5bfc RD |
5942 | """ |
5943 | return _controls_.HelpProvider_Set(*args, **kwargs) | |
5944 | ||
5945 | Set = staticmethod(Set) | |
5946 | def Get(*args, **kwargs): | |
5947 | """ | |
c24da6d6 | 5948 | Get() -> HelpProvider |
d55e5bfc RD |
5949 | |
5950 | Return the current application-wide help provider. | |
5951 | """ | |
5952 | return _controls_.HelpProvider_Get(*args, **kwargs) | |
5953 | ||
5954 | Get = staticmethod(Get) | |
5955 | def GetHelp(*args, **kwargs): | |
5956 | """ | |
5957 | GetHelp(self, Window window) -> String | |
5958 | ||
79fccf9d RD |
5959 | Gets the help string for this window. Its interpretation is dependent |
5960 | on the help provider except that empty string always means that no | |
5961 | help is associated with the window. | |
d55e5bfc RD |
5962 | """ |
5963 | return _controls_.HelpProvider_GetHelp(*args, **kwargs) | |
5964 | ||
5965 | def ShowHelp(*args, **kwargs): | |
5966 | """ | |
5967 | ShowHelp(self, Window window) -> bool | |
5968 | ||
5969 | Shows help for the given window. Uses GetHelp internally if | |
79fccf9d RD |
5970 | applicable. Returns True if it was done, or False if no help was |
5971 | available for this window. | |
d55e5bfc RD |
5972 | """ |
5973 | return _controls_.HelpProvider_ShowHelp(*args, **kwargs) | |
5974 | ||
b850e7f3 RD |
5975 | def ShowHelpAtPoint(*args, **kwargs): |
5976 | """ | |
5977 | ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool | |
5978 | ||
5979 | Show help for the given window (uses window.GetHelpAtPoint() | |
5980 | internally if applicable), return true if it was done or false if no | |
5981 | help available for this window. | |
5982 | """ | |
5983 | return _controls_.HelpProvider_ShowHelpAtPoint(*args, **kwargs) | |
5984 | ||
d55e5bfc RD |
5985 | def AddHelp(*args, **kwargs): |
5986 | """ | |
5987 | AddHelp(self, Window window, String text) | |
5988 | ||
5989 | Associates the text with the given window. | |
5990 | """ | |
5991 | return _controls_.HelpProvider_AddHelp(*args, **kwargs) | |
5992 | ||
5993 | def AddHelpById(*args, **kwargs): | |
5994 | """ | |
5995 | AddHelpById(self, int id, String text) | |
5996 | ||
5997 | This version associates the given text with all windows with this | |
79fccf9d RD |
5998 | id. May be used to set the same help string for all Cancel buttons in |
5999 | the application, for example. | |
d55e5bfc RD |
6000 | """ |
6001 | return _controls_.HelpProvider_AddHelpById(*args, **kwargs) | |
6002 | ||
6003 | def RemoveHelp(*args, **kwargs): | |
6004 | """ | |
6005 | RemoveHelp(self, Window window) | |
6006 | ||
6007 | Removes the association between the window pointer and the help | |
79fccf9d RD |
6008 | text. This is called by the wx.Window destructor. Without this, the |
6009 | table of help strings will fill up and when window pointers are | |
6010 | reused, the wrong help string will be found. | |
d55e5bfc RD |
6011 | """ |
6012 | return _controls_.HelpProvider_RemoveHelp(*args, **kwargs) | |
6013 | ||
6014 | def Destroy(*args, **kwargs): | |
6015 | """Destroy(self)""" | |
7e08d4ef RD |
6016 | val = _controls_.HelpProvider_Destroy(*args, **kwargs) |
6017 | args[0].thisown = 0 | |
6018 | return val | |
d55e5bfc | 6019 | |
2131d850 | 6020 | _controls_.HelpProvider_swigregister(HelpProvider) |
d55e5bfc RD |
6021 | |
6022 | def HelpProvider_Set(*args, **kwargs): | |
554f62e9 | 6023 | """ |
d55e5bfc RD |
6024 | HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider |
6025 | ||
79fccf9d RD |
6026 | Sset the current, application-wide help provider. Returns the previous |
6027 | one. Unlike some other classes, the help provider is not created on | |
6028 | demand. This must be explicitly done by the application. | |
d55e5bfc | 6029 | """ |
554f62e9 | 6030 | return _controls_.HelpProvider_Set(*args, **kwargs) |
d55e5bfc | 6031 | |
554f62e9 RD |
6032 | def HelpProvider_Get(*args): |
6033 | """ | |
d55e5bfc RD |
6034 | HelpProvider_Get() -> HelpProvider |
6035 | ||
6036 | Return the current application-wide help provider. | |
6037 | """ | |
554f62e9 | 6038 | return _controls_.HelpProvider_Get(*args) |
d55e5bfc RD |
6039 | |
6040 | class SimpleHelpProvider(HelpProvider): | |
6041 | """ | |
79fccf9d RD |
6042 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
6043 | supports only plain text help strings, and shows the string associated | |
6044 | with the control (if any) in a tooltip. | |
d55e5bfc | 6045 | """ |
554f62e9 RD |
6046 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6047 | __repr__ = _swig_repr | |
6048 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
6049 | """ |
6050 | __init__(self) -> SimpleHelpProvider | |
6051 | ||
79fccf9d RD |
6052 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
6053 | supports only plain text help strings, and shows the string associated | |
6054 | with the control (if any) in a tooltip. | |
d55e5bfc | 6055 | """ |
554f62e9 | 6056 | _controls_.SimpleHelpProvider_swiginit(self,_controls_.new_SimpleHelpProvider(*args, **kwargs)) |
2131d850 | 6057 | _controls_.SimpleHelpProvider_swigregister(SimpleHelpProvider) |
d55e5bfc RD |
6058 | |
6059 | #--------------------------------------------------------------------------- | |
6060 | ||
6061 | class DragImage(_core.Object): | |
093d3ff1 | 6062 | """Proxy of C++ DragImage class""" |
554f62e9 RD |
6063 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6064 | __repr__ = _swig_repr | |
6065 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 6066 | """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" |
554f62e9 RD |
6067 | _controls_.DragImage_swiginit(self,_controls_.new_DragImage(*args, **kwargs)) |
6068 | __swig_destroy__ = _controls_.delete_DragImage | |
6069 | __del__ = lambda self : None; | |
d55e5bfc RD |
6070 | def SetBackingBitmap(*args, **kwargs): |
6071 | """SetBackingBitmap(self, Bitmap bitmap)""" | |
6072 | return _controls_.DragImage_SetBackingBitmap(*args, **kwargs) | |
6073 | ||
6074 | def BeginDrag(*args, **kwargs): | |
6075 | """ | |
6076 | BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, | |
6077 | Rect rect=None) -> bool | |
6078 | """ | |
6079 | return _controls_.DragImage_BeginDrag(*args, **kwargs) | |
6080 | ||
6081 | def BeginDragBounded(*args, **kwargs): | |
6082 | """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" | |
6083 | return _controls_.DragImage_BeginDragBounded(*args, **kwargs) | |
6084 | ||
6085 | def EndDrag(*args, **kwargs): | |
6086 | """EndDrag(self) -> bool""" | |
6087 | return _controls_.DragImage_EndDrag(*args, **kwargs) | |
6088 | ||
6089 | def Move(*args, **kwargs): | |
6090 | """Move(self, Point pt) -> bool""" | |
6091 | return _controls_.DragImage_Move(*args, **kwargs) | |
6092 | ||
6093 | def Show(*args, **kwargs): | |
6094 | """Show(self) -> bool""" | |
6095 | return _controls_.DragImage_Show(*args, **kwargs) | |
6096 | ||
6097 | def Hide(*args, **kwargs): | |
6098 | """Hide(self) -> bool""" | |
6099 | return _controls_.DragImage_Hide(*args, **kwargs) | |
6100 | ||
6101 | def GetImageRect(*args, **kwargs): | |
6102 | """GetImageRect(self, Point pos) -> Rect""" | |
6103 | return _controls_.DragImage_GetImageRect(*args, **kwargs) | |
6104 | ||
6105 | def DoDrawImage(*args, **kwargs): | |
6106 | """DoDrawImage(self, DC dc, Point pos) -> bool""" | |
6107 | return _controls_.DragImage_DoDrawImage(*args, **kwargs) | |
6108 | ||
6109 | def UpdateBackingFromWindow(*args, **kwargs): | |
6110 | """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" | |
6111 | return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs) | |
6112 | ||
6113 | def RedrawImage(*args, **kwargs): | |
6114 | """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" | |
6115 | return _controls_.DragImage_RedrawImage(*args, **kwargs) | |
6116 | ||
2131d850 | 6117 | _controls_.DragImage_swigregister(DragImage) |
d55e5bfc RD |
6118 | |
6119 | def DragIcon(*args, **kwargs): | |
6120 | """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" | |
6121 | val = _controls_.new_DragIcon(*args, **kwargs) | |
d55e5bfc RD |
6122 | return val |
6123 | ||
6124 | def DragString(*args, **kwargs): | |
6125 | """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" | |
6126 | val = _controls_.new_DragString(*args, **kwargs) | |
d55e5bfc RD |
6127 | return val |
6128 | ||
6129 | def DragTreeItem(*args, **kwargs): | |
6130 | """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" | |
6131 | val = _controls_.new_DragTreeItem(*args, **kwargs) | |
d55e5bfc RD |
6132 | return val |
6133 | ||
6134 | def DragListItem(*args, **kwargs): | |
6135 | """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" | |
6136 | val = _controls_.new_DragListItem(*args, **kwargs) | |
d55e5bfc RD |
6137 | return val |
6138 | ||
53aa7709 RD |
6139 | #--------------------------------------------------------------------------- |
6140 | ||
6141 | DP_DEFAULT = _controls_.DP_DEFAULT | |
6142 | DP_SPIN = _controls_.DP_SPIN | |
6143 | DP_DROPDOWN = _controls_.DP_DROPDOWN | |
6144 | DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY | |
6145 | DP_ALLOWNONE = _controls_.DP_ALLOWNONE | |
6146 | class DatePickerCtrl(_core.Control): | |
6147 | """ | |
6148 | This control allows the user to select a date. Unlike | |
6149 | `wx.calendar.CalendarCtrl`, which is a relatively big control, | |
6150 | `wx.DatePickerCtrl` is implemented as a small window showing the | |
6151 | currently selected date. The control can be edited using the keyboard, | |
6152 | and can also display a popup window for more user-friendly date | |
6153 | selection, depending on the styles used and the platform. | |
6154 | """ | |
554f62e9 RD |
6155 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6156 | __repr__ = _swig_repr | |
6157 | def __init__(self, *args, **kwargs): | |
53aa7709 RD |
6158 | """ |
6159 | __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6160 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6161 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6162 | Validator validator=DefaultValidator, | |
6163 | String name=DatePickerCtrlNameStr) -> DatePickerCtrl | |
6164 | ||
6165 | Create a new DatePickerCtrl. | |
6166 | """ | |
554f62e9 | 6167 | _controls_.DatePickerCtrl_swiginit(self,_controls_.new_DatePickerCtrl(*args, **kwargs)) |
53aa7709 RD |
6168 | self._setOORInfo(self) |
6169 | ||
6170 | def Create(*args, **kwargs): | |
6171 | """ | |
6172 | Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6173 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6174 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6175 | Validator validator=DefaultValidator, | |
6176 | String name=DatePickerCtrlNameStr) -> bool | |
6177 | ||
6178 | Create the GUI parts of the DatePickerCtrl, for use in 2-phase | |
6179 | creation. | |
6180 | """ | |
6181 | return _controls_.DatePickerCtrl_Create(*args, **kwargs) | |
6182 | ||
6183 | def SetValue(*args, **kwargs): | |
6184 | """ | |
6185 | SetValue(self, DateTime dt) | |
6186 | ||
6187 | Changes the current value of the control. The date should be valid and | |
6188 | included in the currently selected range, if any. | |
6189 | ||
6190 | Calling this method does not result in a date change event. | |
6191 | """ | |
6192 | return _controls_.DatePickerCtrl_SetValue(*args, **kwargs) | |
6193 | ||
6194 | def GetValue(*args, **kwargs): | |
6195 | """ | |
6196 | GetValue(self) -> DateTime | |
6197 | ||
6198 | Returns the currently selected date. If there is no selection or the | |
6199 | selection is outside of the current range, an invalid `wx.DateTime` | |
6200 | object is returned. | |
6201 | """ | |
6202 | return _controls_.DatePickerCtrl_GetValue(*args, **kwargs) | |
6203 | ||
6204 | def SetRange(*args, **kwargs): | |
6205 | """ | |
6206 | SetRange(self, DateTime dt1, DateTime dt2) | |
6207 | ||
6208 | Sets the valid range for the date selection. If dt1 is valid, it | |
6209 | becomes the earliest date (inclusive) accepted by the control. If dt2 | |
6210 | is valid, it becomes the latest possible date. | |
6211 | ||
6212 | If the current value of the control is outside of the newly set range | |
6213 | bounds, the behaviour is undefined. | |
6214 | """ | |
6215 | return _controls_.DatePickerCtrl_SetRange(*args, **kwargs) | |
6216 | ||
6217 | def GetLowerLimit(*args, **kwargs): | |
6218 | """ | |
6219 | GetLowerLimit(self) -> DateTime | |
6220 | ||
6221 | Get the lower limit of the valid range for the date selection, if any. | |
6222 | If there is no range or there is no lower limit, then the | |
6223 | `wx.DateTime` value returned will be invalid. | |
6224 | """ | |
6225 | return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs) | |
6226 | ||
6227 | def GetUpperLimit(*args, **kwargs): | |
6228 | """ | |
6229 | GetUpperLimit(self) -> DateTime | |
6230 | ||
6231 | Get the upper limit of the valid range for the date selection, if any. | |
6232 | If there is no range or there is no upper limit, then the | |
6233 | `wx.DateTime` value returned will be invalid. | |
6234 | """ | |
6235 | return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs) | |
6236 | ||
2131d850 | 6237 | _controls_.DatePickerCtrl_swigregister(DatePickerCtrl) |
53aa7709 RD |
6238 | DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr |
6239 | ||
6240 | def PreDatePickerCtrl(*args, **kwargs): | |
6241 | """ | |
6242 | PreDatePickerCtrl() -> DatePickerCtrl | |
6243 | ||
6244 | Precreate a DatePickerCtrl for use in 2-phase creation. | |
6245 | """ | |
6246 | val = _controls_.new_PreDatePickerCtrl(*args, **kwargs) | |
53aa7709 RD |
6247 | return val |
6248 | ||
704eda0c RD |
6249 | HL_CONTEXTMENU = _controls_.HL_CONTEXTMENU |
6250 | HL_DEFAULT_STYLE = _controls_.HL_DEFAULT_STYLE | |
6251 | #--------------------------------------------------------------------------- | |
6252 | ||
6253 | class HyperlinkCtrl(_core.Control): | |
6254 | """ | |
6255 | A static text control that emulates a hyperlink. The link is displayed | |
6256 | in an appropriate text style, derived from the control's normal font. | |
6257 | When the mouse rolls over the link, the cursor changes to a hand and | |
6258 | the link's color changes to the active color. | |
6259 | ||
6260 | Clicking on the link does not launch a web browser; instead, a | |
6261 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6262 | events. | |
6263 | ||
6264 | """ | |
6265 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6266 | __repr__ = _swig_repr | |
6267 | def __init__(self, *args, **kwargs): | |
6268 | """ | |
6269 | __init__(self, Window parent, int id, String label, String url, Point pos=DefaultPosition, | |
6270 | Size size=DefaultSize, | |
6271 | long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> HyperlinkCtrl | |
6272 | ||
6273 | A static text control that emulates a hyperlink. The link is displayed | |
6274 | in an appropriate text style, derived from the control's normal font. | |
6275 | When the mouse rolls over the link, the cursor changes to a hand and | |
6276 | the link's color changes to the active color. | |
6277 | ||
6278 | Clicking on the link does not launch a web browser; instead, a | |
6279 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6280 | events. | |
6281 | ||
6282 | """ | |
6283 | _controls_.HyperlinkCtrl_swiginit(self,_controls_.new_HyperlinkCtrl(*args, **kwargs)) | |
6284 | self._setOORInfo(self) | |
6285 | ||
6286 | def Create(*args, **kwargs): | |
6287 | """ | |
6288 | Create(self, Window parent, int id, String label, String url, Point pos=DefaultPosition, | |
6289 | Size size=DefaultSize, | |
6290 | long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> bool | |
6291 | """ | |
6292 | return _controls_.HyperlinkCtrl_Create(*args, **kwargs) | |
6293 | ||
6294 | def GetHoverColour(*args, **kwargs): | |
6295 | """GetHoverColour(self) -> Colour""" | |
6296 | return _controls_.HyperlinkCtrl_GetHoverColour(*args, **kwargs) | |
6297 | ||
6298 | def SetHoverColour(*args, **kwargs): | |
6299 | """SetHoverColour(self, Colour colour)""" | |
6300 | return _controls_.HyperlinkCtrl_SetHoverColour(*args, **kwargs) | |
6301 | ||
6302 | def GetNormalColour(*args, **kwargs): | |
6303 | """GetNormalColour(self) -> Colour""" | |
6304 | return _controls_.HyperlinkCtrl_GetNormalColour(*args, **kwargs) | |
6305 | ||
6306 | def SetNormalColour(*args, **kwargs): | |
6307 | """SetNormalColour(self, Colour colour)""" | |
6308 | return _controls_.HyperlinkCtrl_SetNormalColour(*args, **kwargs) | |
6309 | ||
6310 | def GetVisitedColour(*args, **kwargs): | |
6311 | """GetVisitedColour(self) -> Colour""" | |
6312 | return _controls_.HyperlinkCtrl_GetVisitedColour(*args, **kwargs) | |
6313 | ||
6314 | def SetVisitedColour(*args, **kwargs): | |
6315 | """SetVisitedColour(self, Colour colour)""" | |
6316 | return _controls_.HyperlinkCtrl_SetVisitedColour(*args, **kwargs) | |
6317 | ||
6318 | def GetURL(*args, **kwargs): | |
6319 | """GetURL(self) -> String""" | |
6320 | return _controls_.HyperlinkCtrl_GetURL(*args, **kwargs) | |
6321 | ||
6322 | def SetURL(*args, **kwargs): | |
6323 | """SetURL(self, String url)""" | |
6324 | return _controls_.HyperlinkCtrl_SetURL(*args, **kwargs) | |
6325 | ||
6326 | def SetVisited(*args, **kwargs): | |
6327 | """SetVisited(self, bool visited=True)""" | |
6328 | return _controls_.HyperlinkCtrl_SetVisited(*args, **kwargs) | |
6329 | ||
6330 | def GetVisited(*args, **kwargs): | |
6331 | """GetVisited(self) -> bool""" | |
6332 | return _controls_.HyperlinkCtrl_GetVisited(*args, **kwargs) | |
6333 | ||
6334 | _controls_.HyperlinkCtrl_swigregister(HyperlinkCtrl) | |
6335 | HyperlinkCtrlNameStr = cvar.HyperlinkCtrlNameStr | |
6336 | ||
6337 | def PreHyperlinkCtrl(*args, **kwargs): | |
6338 | """ | |
6339 | PreHyperlinkCtrl() -> HyperlinkCtrl | |
6340 | ||
6341 | A static text control that emulates a hyperlink. The link is displayed | |
6342 | in an appropriate text style, derived from the control's normal font. | |
6343 | When the mouse rolls over the link, the cursor changes to a hand and | |
6344 | the link's color changes to the active color. | |
6345 | ||
6346 | Clicking on the link does not launch a web browser; instead, a | |
6347 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6348 | events. | |
6349 | ||
6350 | """ | |
6351 | val = _controls_.new_PreHyperlinkCtrl(*args, **kwargs) | |
6352 | return val | |
6353 | ||
6354 | wxEVT_COMMAND_HYPERLINK = _controls_.wxEVT_COMMAND_HYPERLINK | |
6355 | class HyperlinkEvent(_core.CommandEvent): | |
6356 | """Proxy of C++ HyperlinkEvent class""" | |
6357 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6358 | __repr__ = _swig_repr | |
6359 | def __init__(self, *args, **kwargs): | |
6360 | """__init__(self, Object generator, int id, String url) -> HyperlinkEvent""" | |
6361 | _controls_.HyperlinkEvent_swiginit(self,_controls_.new_HyperlinkEvent(*args, **kwargs)) | |
6362 | def GetURL(*args, **kwargs): | |
6363 | """GetURL(self) -> String""" | |
6364 | return _controls_.HyperlinkEvent_GetURL(*args, **kwargs) | |
6365 | ||
6366 | def SetURL(*args, **kwargs): | |
6367 | """SetURL(self, String url)""" | |
6368 | return _controls_.HyperlinkEvent_SetURL(*args, **kwargs) | |
6369 | ||
6370 | _controls_.HyperlinkEvent_swigregister(HyperlinkEvent) | |
6371 | ||
6372 | EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 ) | |
6373 | ||
b850e7f3 RD |
6374 | #--------------------------------------------------------------------------- |
6375 | ||
6376 | PB_USE_TEXTCTRL = _controls_.PB_USE_TEXTCTRL | |
6377 | class PickerBase(_core.Control): | |
6378 | """ | |
6379 | Base abstract class for all pickers which support an auxiliary text | |
6380 | control. This class handles all positioning and sizing of the text | |
6381 | control like a an horizontal `wx.BoxSizer` would do, with the text | |
6382 | control on the left of the picker button and the proportion of the | |
6383 | picker fixed to value 1. | |
6384 | """ | |
6385 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6386 | def __init__(self): raise AttributeError, "No constructor defined" | |
6387 | __repr__ = _swig_repr | |
6388 | def CreateBase(*args, **kwargs): | |
6389 | """ | |
6390 | CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition, | |
6391 | Size size=DefaultSize, | |
6392 | long style=0, Validator validator=DefaultValidator, | |
6393 | String name=wxButtonNameStr) -> bool | |
6394 | """ | |
6395 | return _controls_.PickerBase_CreateBase(*args, **kwargs) | |
6396 | ||
6397 | def SetInternalMargin(*args, **kwargs): | |
6398 | """ | |
6399 | SetInternalMargin(self, int newmargin) | |
6400 | ||
6401 | Sets the margin (in pixels) between the picker and the text control. | |
6402 | """ | |
6403 | return _controls_.PickerBase_SetInternalMargin(*args, **kwargs) | |
6404 | ||
6405 | def GetInternalMargin(*args, **kwargs): | |
6406 | """ | |
6407 | GetInternalMargin(self) -> int | |
6408 | ||
6409 | Returns the margin (in pixels) between the picker and the text | |
6410 | control. | |
6411 | """ | |
6412 | return _controls_.PickerBase_GetInternalMargin(*args, **kwargs) | |
6413 | ||
6414 | def SetTextCtrlProportion(*args, **kwargs): | |
6415 | """ | |
6416 | SetTextCtrlProportion(self, int prop) | |
6417 | ||
6418 | Sets the proportion between the text control and the picker button. | |
6419 | This is used to set relative sizes of the text contorl and the picker. | |
6420 | The value passed to this function must be >= 1. | |
6421 | """ | |
6422 | return _controls_.PickerBase_SetTextCtrlProportion(*args, **kwargs) | |
6423 | ||
6424 | def GetTextCtrlProportion(*args, **kwargs): | |
6425 | """ | |
6426 | GetTextCtrlProportion(self) -> int | |
6427 | ||
6428 | Returns the proportion between the text control and the picker. | |
6429 | """ | |
6430 | return _controls_.PickerBase_GetTextCtrlProportion(*args, **kwargs) | |
6431 | ||
b02396e8 RD |
6432 | def IsTextCtrlGrowable(*args, **kwargs): |
6433 | """IsTextCtrlGrowable(self) -> bool""" | |
6434 | return _controls_.PickerBase_IsTextCtrlGrowable(*args, **kwargs) | |
6435 | ||
6436 | def SetTextCtrlGrowable(*args, **kwargs): | |
6437 | """SetTextCtrlGrowable(self, bool grow=True)""" | |
6438 | return _controls_.PickerBase_SetTextCtrlGrowable(*args, **kwargs) | |
6439 | ||
6440 | def IsPickerCtrlGrowable(*args, **kwargs): | |
6441 | """IsPickerCtrlGrowable(self) -> bool""" | |
6442 | return _controls_.PickerBase_IsPickerCtrlGrowable(*args, **kwargs) | |
6443 | ||
6444 | def SetPickerCtrlGrowable(*args, **kwargs): | |
6445 | """SetPickerCtrlGrowable(self, bool grow=True)""" | |
6446 | return _controls_.PickerBase_SetPickerCtrlGrowable(*args, **kwargs) | |
6447 | ||
b850e7f3 RD |
6448 | def HasTextCtrl(*args, **kwargs): |
6449 | """ | |
6450 | HasTextCtrl(self) -> bool | |
6451 | ||
6452 | Returns true if this class has a valid text control (i.e. if the | |
6453 | wx.PB_USE_TEXTCTRL style was given when creating this control). | |
6454 | """ | |
6455 | return _controls_.PickerBase_HasTextCtrl(*args, **kwargs) | |
6456 | ||
6457 | def GetTextCtrl(*args, **kwargs): | |
6458 | """ | |
6459 | GetTextCtrl(self) -> TextCtrl | |
6460 | ||
6461 | Returns a pointer to the text control handled by this class or None if | |
6462 | the wx.PB_USE_TEXTCTRL style was not specified when this control was | |
6463 | created. | |
6464 | ||
6465 | Very important: the contents of the text control could be containing | |
6466 | an invalid representation of the entity which can be chosen through | |
6467 | the picker (e.g. the user entered an invalid colour syntax because of | |
6468 | a typo). Thus you should never parse the content of the textctrl to | |
6469 | get the user's input; rather use the derived-class getter | |
6470 | (e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`, | |
6471 | etc). | |
6472 | """ | |
6473 | return _controls_.PickerBase_GetTextCtrl(*args, **kwargs) | |
6474 | ||
6475 | def GetPickerCtrl(*args, **kwargs): | |
6476 | """GetPickerCtrl(self) -> Control""" | |
6477 | return _controls_.PickerBase_GetPickerCtrl(*args, **kwargs) | |
6478 | ||
6479 | _controls_.PickerBase_swigregister(PickerBase) | |
6480 | ||
6481 | #--------------------------------------------------------------------------- | |
6482 | ||
6483 | CLRP_SHOW_LABEL = _controls_.CLRP_SHOW_LABEL | |
6484 | CLRP_USE_TEXTCTRL = _controls_.CLRP_USE_TEXTCTRL | |
6485 | CLRP_DEFAULT_STYLE = _controls_.CLRP_DEFAULT_STYLE | |
6486 | class ColourPickerCtrl(PickerBase): | |
6487 | """ | |
6488 | This control allows the user to select a colour. The generic | |
6489 | implementation is a button which brings up a `wx.ColourDialog` when | |
6490 | clicked. Native implementations may differ but this is usually a | |
6491 | (small) widget which give access to the colour-chooser dialog. | |
6492 | """ | |
6493 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6494 | __repr__ = _swig_repr | |
6495 | def __init__(self, *args, **kwargs): | |
6496 | """ | |
6497 | __init__(self, Window parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition, | |
6498 | Size size=DefaultSize, | |
6499 | long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6500 | String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl | |
6501 | ||
6502 | This control allows the user to select a colour. The generic | |
6503 | implementation is a button which brings up a `wx.ColourDialog` when | |
6504 | clicked. Native implementations may differ but this is usually a | |
6505 | (small) widget which give access to the colour-chooser dialog. | |
6506 | """ | |
6507 | _controls_.ColourPickerCtrl_swiginit(self,_controls_.new_ColourPickerCtrl(*args, **kwargs)) | |
6508 | self._setOORInfo(self) | |
6509 | ||
6510 | def Create(*args, **kwargs): | |
6511 | """ | |
6512 | Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition, | |
6513 | Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE, | |
6514 | Validator validator=DefaultValidator, | |
6515 | String name=ColourPickerCtrlNameStr) -> bool | |
6516 | """ | |
6517 | return _controls_.ColourPickerCtrl_Create(*args, **kwargs) | |
6518 | ||
6519 | def GetColour(*args, **kwargs): | |
6520 | """ | |
6521 | GetColour(self) -> Colour | |
6522 | ||
6523 | Returns the currently selected colour. | |
6524 | """ | |
6525 | return _controls_.ColourPickerCtrl_GetColour(*args, **kwargs) | |
6526 | ||
6527 | def SetColour(*args, **kwargs): | |
6528 | """ | |
6529 | SetColour(self, Colour col) | |
6530 | ||
6531 | Set the displayed colour. | |
6532 | """ | |
6533 | return _controls_.ColourPickerCtrl_SetColour(*args, **kwargs) | |
6534 | ||
6535 | _controls_.ColourPickerCtrl_swigregister(ColourPickerCtrl) | |
6536 | ColourPickerCtrlNameStr = cvar.ColourPickerCtrlNameStr | |
6537 | ||
6538 | def PreColourPickerCtrl(*args, **kwargs): | |
6539 | """ | |
6540 | PreColourPickerCtrl() -> ColourPickerCtrl | |
6541 | ||
6542 | This control allows the user to select a colour. The generic | |
6543 | implementation is a button which brings up a `wx.ColourDialog` when | |
6544 | clicked. Native implementations may differ but this is usually a | |
6545 | (small) widget which give access to the colour-chooser dialog. | |
6546 | """ | |
6547 | val = _controls_.new_PreColourPickerCtrl(*args, **kwargs) | |
6548 | return val | |
6549 | ||
6550 | wxEVT_COMMAND_COLOURPICKER_CHANGED = _controls_.wxEVT_COMMAND_COLOURPICKER_CHANGED | |
6551 | EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED, 1 ) | |
6552 | ||
6553 | class ColourPickerEvent(_core.CommandEvent): | |
6554 | """Proxy of C++ ColourPickerEvent class""" | |
6555 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6556 | __repr__ = _swig_repr | |
6557 | def __init__(self, *args, **kwargs): | |
6558 | """__init__(self, Object generator, int id, Colour col) -> ColourPickerEvent""" | |
6559 | _controls_.ColourPickerEvent_swiginit(self,_controls_.new_ColourPickerEvent(*args, **kwargs)) | |
6560 | def GetColour(*args, **kwargs): | |
6561 | """GetColour(self) -> Colour""" | |
6562 | return _controls_.ColourPickerEvent_GetColour(*args, **kwargs) | |
6563 | ||
6564 | def SetColour(*args, **kwargs): | |
6565 | """SetColour(self, Colour c)""" | |
6566 | return _controls_.ColourPickerEvent_SetColour(*args, **kwargs) | |
6567 | ||
6568 | _controls_.ColourPickerEvent_swigregister(ColourPickerEvent) | |
6569 | ||
6570 | #--------------------------------------------------------------------------- | |
6571 | ||
6572 | FLP_OPEN = _controls_.FLP_OPEN | |
6573 | FLP_SAVE = _controls_.FLP_SAVE | |
6574 | FLP_OVERWRITE_PROMPT = _controls_.FLP_OVERWRITE_PROMPT | |
6575 | FLP_FILE_MUST_EXIST = _controls_.FLP_FILE_MUST_EXIST | |
6576 | FLP_CHANGE_DIR = _controls_.FLP_CHANGE_DIR | |
6577 | DIRP_DIR_MUST_EXIST = _controls_.DIRP_DIR_MUST_EXIST | |
6578 | DIRP_CHANGE_DIR = _controls_.DIRP_CHANGE_DIR | |
6579 | FLP_USE_TEXTCTRL = _controls_.FLP_USE_TEXTCTRL | |
6580 | FLP_DEFAULT_STYLE = _controls_.FLP_DEFAULT_STYLE | |
6581 | DIRP_USE_TEXTCTRL = _controls_.DIRP_USE_TEXTCTRL | |
6582 | DIRP_DEFAULT_STYLE = _controls_.DIRP_DEFAULT_STYLE | |
6583 | class FilePickerCtrl(PickerBase): | |
6584 | """Proxy of C++ FilePickerCtrl class""" | |
6585 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6586 | __repr__ = _swig_repr | |
6587 | def __init__(self, *args, **kwargs): | |
6588 | """ | |
6589 | __init__(self, Window parent, int id=-1, String path=EmptyString, | |
6590 | String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr, | |
6591 | Point pos=DefaultPosition, | |
6592 | Size size=DefaultSize, | |
6593 | long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6594 | String name=FilePickerCtrlNameStr) -> FilePickerCtrl | |
6595 | """ | |
6596 | _controls_.FilePickerCtrl_swiginit(self,_controls_.new_FilePickerCtrl(*args, **kwargs)) | |
6597 | self._setOORInfo(self) | |
6598 | ||
6599 | def Create(*args, **kwargs): | |
6600 | """ | |
6601 | Create(self, Window parent, int id=-1, String path=EmptyString, | |
6602 | String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr, | |
6603 | Point pos=DefaultPosition, | |
6604 | Size size=DefaultSize, | |
6605 | long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6606 | String name=FilePickerCtrlNameStr) -> bool | |
6607 | """ | |
6608 | return _controls_.FilePickerCtrl_Create(*args, **kwargs) | |
6609 | ||
6610 | def GetPath(*args, **kwargs): | |
6611 | """GetPath(self) -> String""" | |
6612 | return _controls_.FilePickerCtrl_GetPath(*args, **kwargs) | |
6613 | ||
6614 | def SetPath(*args, **kwargs): | |
6615 | """SetPath(self, String str)""" | |
6616 | return _controls_.FilePickerCtrl_SetPath(*args, **kwargs) | |
6617 | ||
b02396e8 RD |
6618 | def CheckPath(*args, **kwargs): |
6619 | """CheckPath(self, String path) -> bool""" | |
6620 | return _controls_.FilePickerCtrl_CheckPath(*args, **kwargs) | |
6621 | ||
6622 | def GetTextCtrlValue(*args, **kwargs): | |
6623 | """GetTextCtrlValue(self) -> String""" | |
6624 | return _controls_.FilePickerCtrl_GetTextCtrlValue(*args, **kwargs) | |
6625 | ||
b850e7f3 RD |
6626 | _controls_.FilePickerCtrl_swigregister(FilePickerCtrl) |
6627 | FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr | |
6628 | FileSelectorPromptStr = cvar.FileSelectorPromptStr | |
6629 | DirPickerCtrlNameStr = cvar.DirPickerCtrlNameStr | |
6630 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
6631 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
6632 | ||
6633 | def PreFilePickerCtrl(*args, **kwargs): | |
6634 | """PreFilePickerCtrl() -> FilePickerCtrl""" | |
6635 | val = _controls_.new_PreFilePickerCtrl(*args, **kwargs) | |
6636 | return val | |
6637 | ||
6638 | class DirPickerCtrl(PickerBase): | |
6639 | """Proxy of C++ DirPickerCtrl class""" | |
6640 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6641 | __repr__ = _swig_repr | |
6642 | def __init__(self, *args, **kwargs): | |
6643 | """ | |
6644 | __init__(self, Window parent, int id=-1, String path=EmptyString, | |
6645 | String message=DirSelectorPromptStr, Point pos=DefaultPosition, | |
6646 | Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE, | |
6647 | Validator validator=DefaultValidator, | |
6648 | String name=DirPickerCtrlNameStr) -> DirPickerCtrl | |
6649 | """ | |
6650 | _controls_.DirPickerCtrl_swiginit(self,_controls_.new_DirPickerCtrl(*args, **kwargs)) | |
6651 | self._setOORInfo(self) | |
6652 | ||
6653 | def Create(*args, **kwargs): | |
6654 | """ | |
6655 | Create(self, Window parent, int id=-1, String path=EmptyString, | |
6656 | String message=DirSelectorPromptStr, Point pos=DefaultPosition, | |
6657 | Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE, | |
6658 | Validator validator=DefaultValidator, | |
6659 | String name=DirPickerCtrlNameStr) -> bool | |
6660 | """ | |
6661 | return _controls_.DirPickerCtrl_Create(*args, **kwargs) | |
6662 | ||
6663 | def GetPath(*args, **kwargs): | |
6664 | """GetPath(self) -> String""" | |
6665 | return _controls_.DirPickerCtrl_GetPath(*args, **kwargs) | |
6666 | ||
6667 | def SetPath(*args, **kwargs): | |
6668 | """SetPath(self, String str)""" | |
6669 | return _controls_.DirPickerCtrl_SetPath(*args, **kwargs) | |
6670 | ||
b02396e8 RD |
6671 | def CheckPath(*args, **kwargs): |
6672 | """CheckPath(self, String path) -> bool""" | |
6673 | return _controls_.DirPickerCtrl_CheckPath(*args, **kwargs) | |
6674 | ||
6675 | def GetTextCtrlValue(*args, **kwargs): | |
6676 | """GetTextCtrlValue(self) -> String""" | |
6677 | return _controls_.DirPickerCtrl_GetTextCtrlValue(*args, **kwargs) | |
6678 | ||
b850e7f3 RD |
6679 | _controls_.DirPickerCtrl_swigregister(DirPickerCtrl) |
6680 | ||
6681 | def PreDirPickerCtrl(*args, **kwargs): | |
6682 | """PreDirPickerCtrl() -> DirPickerCtrl""" | |
6683 | val = _controls_.new_PreDirPickerCtrl(*args, **kwargs) | |
6684 | return val | |
6685 | ||
6686 | wxEVT_COMMAND_FILEPICKER_CHANGED = _controls_.wxEVT_COMMAND_FILEPICKER_CHANGED | |
6687 | wxEVT_COMMAND_DIRPICKER_CHANGED = _controls_.wxEVT_COMMAND_DIRPICKER_CHANGED | |
6688 | EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED, 1 ) | |
6689 | EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED, 1 ) | |
6690 | ||
6691 | class FileDirPickerEvent(_core.CommandEvent): | |
6692 | """Proxy of C++ FileDirPickerEvent class""" | |
6693 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6694 | __repr__ = _swig_repr | |
6695 | def __init__(self, *args, **kwargs): | |
6696 | """__init__(self, EventType type, Object generator, int id, String path) -> FileDirPickerEvent""" | |
6697 | _controls_.FileDirPickerEvent_swiginit(self,_controls_.new_FileDirPickerEvent(*args, **kwargs)) | |
6698 | def GetPath(*args, **kwargs): | |
6699 | """GetPath(self) -> String""" | |
6700 | return _controls_.FileDirPickerEvent_GetPath(*args, **kwargs) | |
6701 | ||
6702 | def SetPath(*args, **kwargs): | |
6703 | """SetPath(self, String p)""" | |
6704 | return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs) | |
6705 | ||
6706 | _controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent) | |
6707 | ||
6708 | #--------------------------------------------------------------------------- | |
6709 | ||
6710 | FNTP_FONTDESC_AS_LABEL = _controls_.FNTP_FONTDESC_AS_LABEL | |
6711 | FNTP_USEFONT_FOR_LABEL = _controls_.FNTP_USEFONT_FOR_LABEL | |
6712 | FNTP_USE_TEXTCTRL = _controls_.FNTP_USE_TEXTCTRL | |
6713 | FNTP_DEFAULT_STYLE = _controls_.FNTP_DEFAULT_STYLE | |
6714 | class FontPickerCtrl(PickerBase): | |
6715 | """Proxy of C++ FontPickerCtrl class""" | |
6716 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6717 | __repr__ = _swig_repr | |
6718 | def __init__(self, *args, **kwargs): | |
6719 | """ | |
6720 | __init__(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT, | |
6721 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6722 | long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6723 | String name=FontPickerCtrlNameStr) -> FontPickerCtrl | |
6724 | """ | |
6725 | _controls_.FontPickerCtrl_swiginit(self,_controls_.new_FontPickerCtrl(*args, **kwargs)) | |
6726 | self._setOORInfo(self) | |
6727 | ||
6728 | def Create(*args, **kwargs): | |
6729 | """ | |
6730 | Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT, | |
6731 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6732 | long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6733 | String name=FontPickerCtrlNameStr) -> bool | |
6734 | """ | |
6735 | return _controls_.FontPickerCtrl_Create(*args, **kwargs) | |
6736 | ||
6737 | def GetSelectedFont(*args, **kwargs): | |
6738 | """GetSelectedFont(self) -> Font""" | |
6739 | return _controls_.FontPickerCtrl_GetSelectedFont(*args, **kwargs) | |
6740 | ||
6741 | def SetSelectedFont(*args, **kwargs): | |
6742 | """SetSelectedFont(self, Font f)""" | |
6743 | return _controls_.FontPickerCtrl_SetSelectedFont(*args, **kwargs) | |
6744 | ||
6745 | def SetMaxPointSize(*args, **kwargs): | |
6746 | """SetMaxPointSize(self, unsigned int max)""" | |
6747 | return _controls_.FontPickerCtrl_SetMaxPointSize(*args, **kwargs) | |
6748 | ||
6749 | def GetMaxPointSize(*args, **kwargs): | |
6750 | """GetMaxPointSize(self) -> unsigned int""" | |
6751 | return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs) | |
6752 | ||
6753 | _controls_.FontPickerCtrl_swigregister(FontPickerCtrl) | |
6754 | FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr | |
6755 | ||
6756 | def PreFontPickerCtrl(*args, **kwargs): | |
6757 | """PreFontPickerCtrl() -> FontPickerCtrl""" | |
6758 | val = _controls_.new_PreFontPickerCtrl(*args, **kwargs) | |
6759 | return val | |
6760 | ||
6761 | wxEVT_COMMAND_FONTPICKER_CHANGED = _controls_.wxEVT_COMMAND_FONTPICKER_CHANGED | |
6762 | EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED, 1 ) | |
6763 | ||
6764 | class FontPickerEvent(_core.CommandEvent): | |
6765 | """Proxy of C++ FontPickerEvent class""" | |
6766 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6767 | __repr__ = _swig_repr | |
6768 | def __init__(self, *args, **kwargs): | |
6769 | """__init__(self, Object generator, int id, Font f) -> FontPickerEvent""" | |
6770 | _controls_.FontPickerEvent_swiginit(self,_controls_.new_FontPickerEvent(*args, **kwargs)) | |
6771 | def GetFont(*args, **kwargs): | |
6772 | """GetFont(self) -> Font""" | |
6773 | return _controls_.FontPickerEvent_GetFont(*args, **kwargs) | |
6774 | ||
6775 | def SetFont(*args, **kwargs): | |
6776 | """SetFont(self, Font c)""" | |
6777 | return _controls_.FontPickerEvent_SetFont(*args, **kwargs) | |
6778 | ||
6779 | _controls_.FontPickerEvent_swigregister(FontPickerEvent) | |
6780 | ||
d55e5bfc | 6781 | |
7449af73 | 6782 |