]>
Commit | Line | Data |
---|---|---|
0085ce49 | 1 | # This file was created automatically by SWIG 1.3.29. |
d14a1e28 RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
54f9ee45 | 4 | import _controls_ |
0085ce49 RD |
5 | import new |
6 | new_instancemethod = new.instancemethod | |
093d3ff1 | 7 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
0085ce49 | 8 | if (name == "thisown"): return self.this.own(value) |
093d3ff1 | 9 | if (name == "this"): |
0085ce49 RD |
10 | if type(value).__name__ == 'PySwigObject': |
11 | self.__dict__[name] = value | |
093d3ff1 RD |
12 | return |
13 | method = class_type.__swig_setmethods__.get(name,None) | |
14 | if method: return method(self,value) | |
0085ce49 | 15 | if (not static) or hasattr(self,name): |
093d3ff1 RD |
16 | self.__dict__[name] = value |
17 | else: | |
18 | raise AttributeError("You cannot add attributes to %s" % self) | |
19 | ||
20 | def _swig_setattr(self,class_type,name,value): | |
21 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
22 | ||
23 | def _swig_getattr(self,class_type,name): | |
0085ce49 | 24 | if (name == "thisown"): return self.this.own() |
093d3ff1 RD |
25 | method = class_type.__swig_getmethods__.get(name,None) |
26 | if method: return method(self) | |
27 | raise AttributeError,name | |
28 | ||
0085ce49 RD |
29 | def _swig_repr(self): |
30 | try: strthis = "proxy of " + self.this.__repr__() | |
31 | except: strthis = "" | |
32 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
33 | ||
093d3ff1 RD |
34 | import types |
35 | try: | |
36 | _object = types.ObjectType | |
37 | _newclass = 1 | |
38 | except AttributeError: | |
39 | class _object : pass | |
40 | _newclass = 0 | |
41 | del types | |
42 | ||
43 | ||
44 | def _swig_setattr_nondynamic_method(set): | |
45 | def set_attr(self,name,value): | |
0085ce49 RD |
46 | if (name == "thisown"): return self.this.own(value) |
47 | if hasattr(self,name) or (name == "this"): | |
093d3ff1 RD |
48 | set(self,name,value) |
49 | else: | |
50 | raise AttributeError("You cannot add attributes to %s" % self) | |
51 | return set_attr | |
52 | ||
53 | ||
54f9ee45 RD |
54 | import _core |
55 | wx = _core | |
d14a1e28 RD |
56 | #--------------------------------------------------------------------------- |
57 | ||
54f9ee45 RD |
58 | BU_LEFT = _controls_.BU_LEFT |
59 | BU_TOP = _controls_.BU_TOP | |
60 | BU_RIGHT = _controls_.BU_RIGHT | |
61 | BU_BOTTOM = _controls_.BU_BOTTOM | |
8fb0e70a | 62 | BU_ALIGN_MASK = _controls_.BU_ALIGN_MASK |
54f9ee45 RD |
63 | BU_EXACTFIT = _controls_.BU_EXACTFIT |
64 | BU_AUTODRAW = _controls_.BU_AUTODRAW | |
65 | class Button(_core.Control): | |
0df68c9f RD |
66 | """ |
67 | A button is a control that contains a text string, and is one of the most | |
68 | common elements of a GUI. It may be placed on a dialog box or panel, or | |
69 | indeed almost any other window. | |
70 | """ | |
0085ce49 RD |
71 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
72 | __repr__ = _swig_repr | |
73 | def __init__(self, *args, **kwargs): | |
0df68c9f | 74 | """ |
248ed943 RD |
75 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
76 | Point pos=DefaultPosition, Size size=DefaultSize, | |
77 | long style=0, Validator validator=DefaultValidator, | |
78 | String name=ButtonNameStr) -> Button | |
0df68c9f | 79 | |
7bc1e663 RD |
80 | Create and show a button. The preferred way to create standard |
81 | buttons is to use a standard ID and an empty label. In this case | |
82 | wxWigets will automatically use a stock label that coresponds to the | |
83 | ID given. In additon, the button will be decorated with stock icons | |
84 | under GTK+ 2. | |
0df68c9f | 85 | """ |
0085ce49 | 86 | _controls_.Button_swiginit(self,_controls_.new_Button(*args, **kwargs)) |
d14a1e28 | 87 | self._setOORInfo(self) |
e811c8ce RD |
88 | |
89 | def Create(*args, **kwargs): | |
0df68c9f | 90 | """ |
248ed943 RD |
91 | Create(self, Window parent, int id=-1, String label=EmptyString, |
92 | Point pos=DefaultPosition, Size size=DefaultSize, | |
93 | long style=0, Validator validator=DefaultValidator, | |
94 | String name=ButtonNameStr) -> bool | |
0df68c9f RD |
95 | |
96 | Acutally create the GUI Button for 2-phase creation. | |
97 | """ | |
54f9ee45 | 98 | return _controls_.Button_Create(*args, **kwargs) |
e811c8ce RD |
99 | |
100 | def SetDefault(*args, **kwargs): | |
0df68c9f | 101 | """ |
a95a7133 | 102 | SetDefault(self) |
1e0c8722 | 103 | |
0df68c9f RD |
104 | This sets the button to be the default item for the panel or dialog box. |
105 | """ | |
54f9ee45 | 106 | return _controls_.Button_SetDefault(*args, **kwargs) |
e811c8ce RD |
107 | |
108 | def GetDefaultSize(*args, **kwargs): | |
66c033b4 RD |
109 | """ |
110 | GetDefaultSize() -> Size | |
111 | ||
112 | Returns the default button size for this platform. | |
113 | """ | |
54f9ee45 | 114 | return _controls_.Button_GetDefaultSize(*args, **kwargs) |
e811c8ce RD |
115 | |
116 | GetDefaultSize = staticmethod(GetDefaultSize) | |
22bfe96c | 117 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
118 | """ |
119 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
120 | ||
121 | Get the default attributes for this class. This is useful if you want | |
122 | to use the same font or colour in your own control as in a standard | |
123 | control -- which is a much better idea than hard coding specific | |
124 | colours or fonts which might look completely out of place on the | |
125 | user's system, especially if it uses themes. | |
126 | ||
127 | The variant parameter is only relevant under Mac currently and is | |
128 | ignore under other platforms. Under Mac, it will change the size of | |
129 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
130 | this. | |
131 | """ | |
22bfe96c RD |
132 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) |
133 | ||
134 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 135 | _controls_.Button_swigregister(Button) |
54f9ee45 | 136 | cvar = _controls_.cvar |
b2dc1044 | 137 | ButtonNameStr = cvar.ButtonNameStr |
70551f47 | 138 | |
d14a1e28 | 139 | def PreButton(*args, **kwargs): |
0df68c9f RD |
140 | """ |
141 | PreButton() -> Button | |
1e0c8722 | 142 | |
0df68c9f RD |
143 | Precreate a Button for 2-phase creation. |
144 | """ | |
54f9ee45 | 145 | val = _controls_.new_PreButton(*args, **kwargs) |
d14a1e28 | 146 | return val |
70551f47 | 147 | |
0085ce49 RD |
148 | def Button_GetDefaultSize(*args): |
149 | """ | |
66c033b4 RD |
150 | Button_GetDefaultSize() -> Size |
151 | ||
152 | Returns the default button size for this platform. | |
153 | """ | |
0085ce49 | 154 | return _controls_.Button_GetDefaultSize(*args) |
a323d3bd | 155 | |
22bfe96c | 156 | def Button_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 157 | """ |
110da5b0 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 | """ | |
0085ce49 | 171 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 172 | |
d14a1e28 | 173 | class BitmapButton(Button): |
98e665d3 RD |
174 | """ |
175 | A Button that contains a bitmap. A bitmap button can be supplied with a | |
66c033b4 | 176 | single bitmap, and wxWidgets will draw all button states using this bitmap. If |
98e665d3 RD |
177 | the application needs more control, additional bitmaps for the selected state, |
178 | unpressed focused state, and greyed-out state may be supplied. | |
98e665d3 | 179 | """ |
0085ce49 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): | |
0df68c9f | 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, | |
b2dc1044 | 187 | String name=ButtonNameStr) -> BitmapButton |
0df68c9f | 188 | |
98e665d3 | 189 | Create and show a button with a bitmap for the label. |
0df68c9f | 190 | """ |
0085ce49 | 191 | _controls_.BitmapButton_swiginit(self,_controls_.new_BitmapButton(*args, **kwargs)) |
d14a1e28 | 192 | self._setOORInfo(self) |
e811c8ce RD |
193 | |
194 | def Create(*args, **kwargs): | |
0df68c9f | 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, | |
b2dc1044 | 199 | String name=ButtonNameStr) -> bool |
0df68c9f RD |
200 | |
201 | Acutally create the GUI BitmapButton for 2-phase creation. | |
202 | """ | |
54f9ee45 | 203 | return _controls_.BitmapButton_Create(*args, **kwargs) |
e811c8ce RD |
204 | |
205 | def GetBitmapLabel(*args, **kwargs): | |
0df68c9f | 206 | """ |
a95a7133 | 207 | GetBitmapLabel(self) -> Bitmap |
1e0c8722 | 208 | |
0df68c9f RD |
209 | Returns the label bitmap (the one passed to the constructor). |
210 | """ | |
54f9ee45 | 211 | return _controls_.BitmapButton_GetBitmapLabel(*args, **kwargs) |
e811c8ce RD |
212 | |
213 | def GetBitmapDisabled(*args, **kwargs): | |
0df68c9f | 214 | """ |
a95a7133 | 215 | GetBitmapDisabled(self) -> Bitmap |
1e0c8722 | 216 | |
0df68c9f RD |
217 | Returns the bitmap for the disabled state. |
218 | """ | |
54f9ee45 | 219 | return _controls_.BitmapButton_GetBitmapDisabled(*args, **kwargs) |
e811c8ce RD |
220 | |
221 | def GetBitmapFocus(*args, **kwargs): | |
0df68c9f | 222 | """ |
a95a7133 | 223 | GetBitmapFocus(self) -> Bitmap |
1e0c8722 | 224 | |
0df68c9f RD |
225 | Returns the bitmap for the focused state. |
226 | """ | |
54f9ee45 | 227 | return _controls_.BitmapButton_GetBitmapFocus(*args, **kwargs) |
e811c8ce RD |
228 | |
229 | def GetBitmapSelected(*args, **kwargs): | |
0df68c9f | 230 | """ |
a95a7133 | 231 | GetBitmapSelected(self) -> Bitmap |
1e0c8722 | 232 | |
0df68c9f RD |
233 | Returns the bitmap for the selected state. |
234 | """ | |
54f9ee45 | 235 | return _controls_.BitmapButton_GetBitmapSelected(*args, **kwargs) |
e811c8ce | 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 | ||
e811c8ce | 245 | def SetBitmapDisabled(*args, **kwargs): |
0df68c9f | 246 | """ |
a95a7133 | 247 | SetBitmapDisabled(self, Bitmap bitmap) |
1e0c8722 | 248 | |
0df68c9f RD |
249 | Sets the bitmap for the disabled button appearance. |
250 | """ | |
54f9ee45 | 251 | return _controls_.BitmapButton_SetBitmapDisabled(*args, **kwargs) |
e811c8ce RD |
252 | |
253 | def SetBitmapFocus(*args, **kwargs): | |
0df68c9f | 254 | """ |
a95a7133 | 255 | SetBitmapFocus(self, Bitmap bitmap) |
1e0c8722 | 256 | |
0df68c9f RD |
257 | Sets the bitmap for the button appearance when it has the keyboard focus. |
258 | """ | |
54f9ee45 | 259 | return _controls_.BitmapButton_SetBitmapFocus(*args, **kwargs) |
e811c8ce RD |
260 | |
261 | def SetBitmapSelected(*args, **kwargs): | |
0df68c9f | 262 | """ |
a95a7133 | 263 | SetBitmapSelected(self, Bitmap bitmap) |
1e0c8722 | 264 | |
0df68c9f RD |
265 | Sets the bitmap for the selected (depressed) button appearance. |
266 | """ | |
54f9ee45 | 267 | return _controls_.BitmapButton_SetBitmapSelected(*args, **kwargs) |
e811c8ce RD |
268 | |
269 | def SetBitmapLabel(*args, **kwargs): | |
0df68c9f | 270 | """ |
a95a7133 | 271 | SetBitmapLabel(self, Bitmap bitmap) |
1e0c8722 | 272 | |
0df68c9f RD |
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 | """ | |
54f9ee45 | 276 | return _controls_.BitmapButton_SetBitmapLabel(*args, **kwargs) |
e811c8ce | 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 | ||
e811c8ce | 288 | def SetMargins(*args, **kwargs): |
a95a7133 | 289 | """SetMargins(self, int x, int y)""" |
54f9ee45 | 290 | return _controls_.BitmapButton_SetMargins(*args, **kwargs) |
e811c8ce RD |
291 | |
292 | def GetMarginX(*args, **kwargs): | |
a95a7133 | 293 | """GetMarginX(self) -> int""" |
54f9ee45 | 294 | return _controls_.BitmapButton_GetMarginX(*args, **kwargs) |
e811c8ce RD |
295 | |
296 | def GetMarginY(*args, **kwargs): | |
a95a7133 | 297 | """GetMarginY(self) -> int""" |
54f9ee45 | 298 | return _controls_.BitmapButton_GetMarginY(*args, **kwargs) |
e811c8ce | 299 | |
2bf58437 RD |
300 | BitmapDisabled = property(GetBitmapDisabled,SetBitmapDisabled,doc="See `GetBitmapDisabled` and `SetBitmapDisabled`") |
301 | BitmapFocus = property(GetBitmapFocus,SetBitmapFocus,doc="See `GetBitmapFocus` and `SetBitmapFocus`") | |
302 | BitmapHover = property(GetBitmapHover,SetBitmapHover,doc="See `GetBitmapHover` and `SetBitmapHover`") | |
303 | BitmapLabel = property(GetBitmapLabel,SetBitmapLabel,doc="See `GetBitmapLabel` and `SetBitmapLabel`") | |
304 | BitmapSelected = property(GetBitmapSelected,SetBitmapSelected,doc="See `GetBitmapSelected` and `SetBitmapSelected`") | |
305 | MarginX = property(GetMarginX,doc="See `GetMarginX`") | |
306 | MarginY = property(GetMarginY,doc="See `GetMarginY`") | |
2131d850 | 307 | _controls_.BitmapButton_swigregister(BitmapButton) |
d14a1e28 RD |
308 | |
309 | def PreBitmapButton(*args, **kwargs): | |
0df68c9f RD |
310 | """ |
311 | PreBitmapButton() -> BitmapButton | |
1e0c8722 | 312 | |
0df68c9f RD |
313 | Precreate a BitmapButton for 2-phase creation. |
314 | """ | |
54f9ee45 | 315 | val = _controls_.new_PreBitmapButton(*args, **kwargs) |
d14a1e28 RD |
316 | return val |
317 | ||
318 | #--------------------------------------------------------------------------- | |
319 | ||
54f9ee45 RD |
320 | CHK_2STATE = _controls_.CHK_2STATE |
321 | CHK_3STATE = _controls_.CHK_3STATE | |
322 | CHK_ALLOW_3RD_STATE_FOR_USER = _controls_.CHK_ALLOW_3RD_STATE_FOR_USER | |
323 | CHK_UNCHECKED = _controls_.CHK_UNCHECKED | |
324 | CHK_CHECKED = _controls_.CHK_CHECKED | |
325 | CHK_UNDETERMINED = _controls_.CHK_UNDETERMINED | |
326 | class CheckBox(_core.Control): | |
fcafa8a9 | 327 | """ |
66c033b4 RD |
328 | A checkbox is a labelled box which by default is either on (the |
329 | checkmark is visible) or off (no checkmark). Optionally (When the | |
330 | wx.CHK_3STATE style flag is set) it can have a third state, called the | |
331 | mixed or undetermined state. Often this is used as a "Does Not | |
332 | Apply" state. | |
fcafa8a9 | 333 | """ |
0085ce49 RD |
334 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
335 | __repr__ = _swig_repr | |
336 | def __init__(self, *args, **kwargs): | |
0df68c9f | 337 | """ |
248ed943 RD |
338 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
339 | Point pos=DefaultPosition, Size size=DefaultSize, | |
340 | long style=0, Validator validator=DefaultValidator, | |
341 | String name=CheckBoxNameStr) -> CheckBox | |
fcafa8a9 RD |
342 | |
343 | Creates and shows a CheckBox control | |
0df68c9f | 344 | """ |
0085ce49 | 345 | _controls_.CheckBox_swiginit(self,_controls_.new_CheckBox(*args, **kwargs)) |
0220cbc1 | 346 | self._setOORInfo(self) |
e811c8ce RD |
347 | |
348 | def Create(*args, **kwargs): | |
0df68c9f | 349 | """ |
248ed943 RD |
350 | Create(self, Window parent, int id=-1, String label=EmptyString, |
351 | Point pos=DefaultPosition, Size size=DefaultSize, | |
352 | long style=0, Validator validator=DefaultValidator, | |
353 | String name=CheckBoxNameStr) -> bool | |
fcafa8a9 RD |
354 | |
355 | Actually create the GUI CheckBox for 2-phase creation. | |
0df68c9f | 356 | """ |
54f9ee45 | 357 | return _controls_.CheckBox_Create(*args, **kwargs) |
e811c8ce RD |
358 | |
359 | def GetValue(*args, **kwargs): | |
fcafa8a9 | 360 | """ |
a95a7133 | 361 | GetValue(self) -> bool |
fcafa8a9 RD |
362 | |
363 | Gets the state of a 2-state CheckBox. Returns True if it is checked, | |
364 | False otherwise. | |
365 | """ | |
54f9ee45 | 366 | return _controls_.CheckBox_GetValue(*args, **kwargs) |
e811c8ce RD |
367 | |
368 | def IsChecked(*args, **kwargs): | |
fcafa8a9 | 369 | """ |
a95a7133 | 370 | IsChecked(self) -> bool |
fcafa8a9 | 371 | |
66c033b4 RD |
372 | Similar to GetValue, but raises an exception if it is not a 2-state |
373 | CheckBox. | |
fcafa8a9 | 374 | """ |
54f9ee45 | 375 | return _controls_.CheckBox_IsChecked(*args, **kwargs) |
e811c8ce RD |
376 | |
377 | def SetValue(*args, **kwargs): | |
fcafa8a9 | 378 | """ |
a95a7133 | 379 | SetValue(self, bool state) |
fcafa8a9 | 380 | |
66c033b4 RD |
381 | Set the state of a 2-state CheckBox. Pass True for checked, False for |
382 | unchecked. | |
fcafa8a9 | 383 | """ |
54f9ee45 | 384 | return _controls_.CheckBox_SetValue(*args, **kwargs) |
e811c8ce RD |
385 | |
386 | def Get3StateValue(*args, **kwargs): | |
fcafa8a9 | 387 | """ |
a95a7133 | 388 | Get3StateValue(self) -> int |
fcafa8a9 | 389 | |
66c033b4 RD |
390 | Returns wx.CHK_UNCHECKED when the CheckBox is unchecked, |
391 | wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in | |
392 | the undetermined state. Raises an exceptiion when the function is | |
393 | used with a 2-state CheckBox. | |
fcafa8a9 | 394 | """ |
54f9ee45 | 395 | return _controls_.CheckBox_Get3StateValue(*args, **kwargs) |
e811c8ce RD |
396 | |
397 | def Set3StateValue(*args, **kwargs): | |
fcafa8a9 | 398 | """ |
a95a7133 | 399 | Set3StateValue(self, int state) |
fcafa8a9 | 400 | |
66c033b4 RD |
401 | Sets the CheckBox to the given state. The state parameter can be one |
402 | of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the | |
403 | Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an | |
404 | exception when the CheckBox is a 2-state checkbox and setting the | |
405 | state to wx.CHK_UNDETERMINED. | |
fcafa8a9 | 406 | """ |
54f9ee45 | 407 | return _controls_.CheckBox_Set3StateValue(*args, **kwargs) |
e811c8ce RD |
408 | |
409 | def Is3State(*args, **kwargs): | |
fcafa8a9 | 410 | """ |
a95a7133 | 411 | Is3State(self) -> bool |
fcafa8a9 RD |
412 | |
413 | Returns whether or not the CheckBox is a 3-state CheckBox. | |
414 | """ | |
54f9ee45 | 415 | return _controls_.CheckBox_Is3State(*args, **kwargs) |
e811c8ce RD |
416 | |
417 | def Is3rdStateAllowedForUser(*args, **kwargs): | |
fcafa8a9 | 418 | """ |
a95a7133 | 419 | Is3rdStateAllowedForUser(self) -> bool |
fcafa8a9 | 420 | |
66c033b4 RD |
421 | Returns whether or not the user can set the CheckBox to the third |
422 | state. | |
fcafa8a9 | 423 | """ |
54f9ee45 | 424 | return _controls_.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) |
e811c8ce | 425 | |
22bfe96c | 426 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
427 | """ |
428 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
429 | ||
430 | Get the default attributes for this class. This is useful if you want | |
431 | to use the same font or colour in your own control as in a standard | |
432 | control -- which is a much better idea than hard coding specific | |
433 | colours or fonts which might look completely out of place on the | |
434 | user's system, especially if it uses themes. | |
435 | ||
436 | The variant parameter is only relevant under Mac currently and is | |
437 | ignore under other platforms. Under Mac, it will change the size of | |
438 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
439 | this. | |
440 | """ | |
22bfe96c RD |
441 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) |
442 | ||
443 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2bf58437 RD |
444 | ThreeStateValue = property(Get3StateValue,Set3StateValue,doc="See `Get3StateValue` and `Set3StateValue`") |
445 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 446 | _controls_.CheckBox_swigregister(CheckBox) |
b2dc1044 | 447 | CheckBoxNameStr = cvar.CheckBoxNameStr |
70551f47 | 448 | |
d14a1e28 | 449 | def PreCheckBox(*args, **kwargs): |
fcafa8a9 RD |
450 | """ |
451 | PreCheckBox() -> CheckBox | |
452 | ||
453 | Precreate a CheckBox for 2-phase creation. | |
454 | """ | |
54f9ee45 | 455 | val = _controls_.new_PreCheckBox(*args, **kwargs) |
aa2a5b86 RD |
456 | return val |
457 | ||
22bfe96c | 458 | def CheckBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 459 | """ |
110da5b0 RD |
460 | CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
461 | ||
462 | Get the default attributes for this class. This is useful if you want | |
463 | to use the same font or colour in your own control as in a standard | |
464 | control -- which is a much better idea than hard coding specific | |
465 | colours or fonts which might look completely out of place on the | |
466 | user's system, especially if it uses themes. | |
467 | ||
468 | The variant parameter is only relevant under Mac currently and is | |
469 | ignore under other platforms. Under Mac, it will change the size of | |
470 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
471 | this. | |
472 | """ | |
0085ce49 | 473 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 474 | |
d14a1e28 | 475 | #--------------------------------------------------------------------------- |
70551f47 | 476 | |
54f9ee45 | 477 | class Choice(_core.ControlWithItems): |
fcafa8a9 | 478 | """ |
66c033b4 RD |
479 | A Choice control is used to select one of a list of strings. |
480 | Unlike a `wx.ListBox`, only the selection is visible until the | |
481 | user pulls down the menu of choices. | |
fcafa8a9 | 482 | """ |
0085ce49 RD |
483 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
484 | __repr__ = _swig_repr | |
485 | def __init__(self, *args, **kwargs): | |
0df68c9f | 486 | """ |
fcafa8a9 | 487 | __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 488 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 489 | String name=ChoiceNameStr) -> Choice |
fcafa8a9 RD |
490 | |
491 | Create and show a Choice control | |
0df68c9f | 492 | """ |
0085ce49 | 493 | _controls_.Choice_swiginit(self,_controls_.new_Choice(*args, **kwargs)) |
d14a1e28 | 494 | self._setOORInfo(self) |
e811c8ce RD |
495 | |
496 | def Create(*args, **kwargs): | |
0df68c9f | 497 | """ |
fcafa8a9 | 498 | Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 499 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 500 | String name=ChoiceNameStr) -> bool |
fd2dc343 RD |
501 | |
502 | Actually create the GUI Choice control for 2-phase creation | |
0df68c9f | 503 | """ |
54f9ee45 | 504 | return _controls_.Choice_Create(*args, **kwargs) |
e811c8ce | 505 | |
943e8dfd RD |
506 | def GetCurrentSelection(*args, **kwargs): |
507 | """ | |
508 | GetCurrentSelection(self) -> int | |
509 | ||
510 | Unlike `GetSelection` which only returns the accepted selection value, | |
511 | i.e. the selection in the control once the user closes the dropdown | |
512 | list, this function returns the current selection. That is, while the | |
513 | dropdown list is shown, it returns the currently selected item in | |
514 | it. When it is not shown, its result is the same as for the other | |
515 | function. | |
516 | """ | |
517 | return _controls_.Choice_GetCurrentSelection(*args, **kwargs) | |
518 | ||
22bfe96c | 519 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
520 | """ |
521 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
522 | ||
523 | Get the default attributes for this class. This is useful if you want | |
524 | to use the same font or colour in your own control as in a standard | |
525 | control -- which is a much better idea than hard coding specific | |
526 | colours or fonts which might look completely out of place on the | |
527 | user's system, especially if it uses themes. | |
528 | ||
529 | The variant parameter is only relevant under Mac currently and is | |
530 | ignore under other platforms. Under Mac, it will change the size of | |
531 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
532 | this. | |
533 | """ | |
22bfe96c RD |
534 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) |
535 | ||
536 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2bf58437 | 537 | CurrentSelection = property(GetCurrentSelection,doc="See `GetCurrentSelection`") |
2131d850 | 538 | _controls_.Choice_swigregister(Choice) |
b2dc1044 | 539 | ChoiceNameStr = cvar.ChoiceNameStr |
65191ae8 | 540 | |
d14a1e28 | 541 | def PreChoice(*args, **kwargs): |
fcafa8a9 RD |
542 | """ |
543 | PreChoice() -> Choice | |
544 | ||
545 | Precreate a Choice control for 2-phase creation. | |
546 | """ | |
54f9ee45 | 547 | val = _controls_.new_PreChoice(*args, **kwargs) |
d14a1e28 | 548 | return val |
65191ae8 | 549 | |
22bfe96c | 550 | def Choice_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 551 | """ |
110da5b0 RD |
552 | Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
553 | ||
554 | Get the default attributes for this class. This is useful if you want | |
555 | to use the same font or colour in your own control as in a standard | |
556 | control -- which is a much better idea than hard coding specific | |
557 | colours or fonts which might look completely out of place on the | |
558 | user's system, especially if it uses themes. | |
559 | ||
560 | The variant parameter is only relevant under Mac currently and is | |
561 | ignore under other platforms. Under Mac, it will change the size of | |
562 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
563 | this. | |
564 | """ | |
0085ce49 | 565 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 566 | |
d14a1e28 | 567 | #--------------------------------------------------------------------------- |
65191ae8 | 568 | |
54f9ee45 | 569 | class ComboBox(_core.Control,_core.ItemContainer): |
b88bce5f | 570 | """ |
41e2b43e RD |
571 | A combobox is like a combination of an edit control and a |
572 | listbox. It can be displayed as static list with editable or | |
573 | read-only text field; or a drop-down list with text field. | |
574 | ||
575 | A combobox permits a single selection only. Combobox items are | |
576 | numbered from zero. | |
b88bce5f | 577 | """ |
0085ce49 RD |
578 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
579 | __repr__ = _swig_repr | |
580 | def __init__(self, *args, **kwargs): | |
0df68c9f | 581 | """ |
4976f996 | 582 | __init__(Window parent, int id=-1, String value=EmptyString, |
b88bce5f | 583 | Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 584 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
41e2b43e | 585 | String name=ComboBoxNameStr) -> ComboBox |
b88bce5f RD |
586 | |
587 | Constructor, creates and shows a ComboBox control. | |
0df68c9f | 588 | """ |
0085ce49 | 589 | _controls_.ComboBox_swiginit(self,_controls_.new_ComboBox(*args, **kwargs)) |
0220cbc1 | 590 | self._setOORInfo(self) |
e811c8ce RD |
591 | |
592 | def Create(*args, **kwargs): | |
0df68c9f | 593 | """ |
4976f996 | 594 | Create(Window parent, int id=-1, String value=EmptyString, |
b88bce5f | 595 | Point pos=DefaultPosition, Size size=DefaultSize, |
5dce5a9a | 596 | List choices=EmptyList, long style=0, Validator validator=DefaultValidator, |
b88bce5f | 597 | String name=ChoiceNameStr) -> bool |
fd2dc343 RD |
598 | |
599 | Actually create the GUI wxComboBox control for 2-phase creation | |
0df68c9f | 600 | """ |
54f9ee45 | 601 | return _controls_.ComboBox_Create(*args, **kwargs) |
e811c8ce RD |
602 | |
603 | def GetValue(*args, **kwargs): | |
b88bce5f | 604 | """ |
a95a7133 | 605 | GetValue(self) -> String |
b88bce5f RD |
606 | |
607 | Returns the current value in the combobox text field. | |
608 | """ | |
54f9ee45 | 609 | return _controls_.ComboBox_GetValue(*args, **kwargs) |
e811c8ce RD |
610 | |
611 | def SetValue(*args, **kwargs): | |
a95a7133 | 612 | """SetValue(self, String value)""" |
54f9ee45 | 613 | return _controls_.ComboBox_SetValue(*args, **kwargs) |
e811c8ce RD |
614 | |
615 | def Copy(*args, **kwargs): | |
b88bce5f | 616 | """ |
a95a7133 | 617 | Copy(self) |
b88bce5f RD |
618 | |
619 | Copies the selected text to the clipboard. | |
620 | """ | |
54f9ee45 | 621 | return _controls_.ComboBox_Copy(*args, **kwargs) |
e811c8ce RD |
622 | |
623 | def Cut(*args, **kwargs): | |
b88bce5f | 624 | """ |
a95a7133 | 625 | Cut(self) |
b88bce5f RD |
626 | |
627 | Copies the selected text to the clipboard and removes the selection. | |
628 | """ | |
54f9ee45 | 629 | return _controls_.ComboBox_Cut(*args, **kwargs) |
e811c8ce RD |
630 | |
631 | def Paste(*args, **kwargs): | |
b88bce5f | 632 | """ |
a95a7133 | 633 | Paste(self) |
b88bce5f RD |
634 | |
635 | Pastes text from the clipboard to the text field. | |
636 | """ | |
54f9ee45 | 637 | return _controls_.ComboBox_Paste(*args, **kwargs) |
e811c8ce RD |
638 | |
639 | def SetInsertionPoint(*args, **kwargs): | |
b88bce5f | 640 | """ |
a95a7133 | 641 | SetInsertionPoint(self, long pos) |
b88bce5f RD |
642 | |
643 | Sets the insertion point in the combobox text field. | |
644 | """ | |
54f9ee45 | 645 | return _controls_.ComboBox_SetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
646 | |
647 | def GetInsertionPoint(*args, **kwargs): | |
b88bce5f | 648 | """ |
a95a7133 | 649 | GetInsertionPoint(self) -> long |
b88bce5f RD |
650 | |
651 | Returns the insertion point for the combobox's text field. | |
652 | """ | |
54f9ee45 | 653 | return _controls_.ComboBox_GetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
654 | |
655 | def GetLastPosition(*args, **kwargs): | |
b88bce5f | 656 | """ |
a95a7133 | 657 | GetLastPosition(self) -> long |
b88bce5f RD |
658 | |
659 | Returns the last position in the combobox text field. | |
660 | """ | |
54f9ee45 | 661 | return _controls_.ComboBox_GetLastPosition(*args, **kwargs) |
e811c8ce RD |
662 | |
663 | def Replace(*args, **kwargs): | |
b88bce5f | 664 | """ |
a95a7133 | 665 | Replace(self, long from, long to, String value) |
b88bce5f RD |
666 | |
667 | Replaces the text between two positions with the given text, in the | |
668 | combobox text field. | |
669 | """ | |
54f9ee45 | 670 | return _controls_.ComboBox_Replace(*args, **kwargs) |
fd3f2efe | 671 | |
e811c8ce | 672 | def SetMark(*args, **kwargs): |
121b9a67 RD |
673 | """ |
674 | SetMark(self, long from, long to) | |
675 | ||
676 | Selects the text between the two positions in the combobox text field. | |
677 | """ | |
54f9ee45 | 678 | return _controls_.ComboBox_SetMark(*args, **kwargs) |
e811c8ce | 679 | |
b9d6a5f3 RD |
680 | def GetMark(*args, **kwargs): |
681 | """ | |
682 | GetMark(self) -> (from, to) | |
683 | ||
684 | Gets the positions of the begining and ending of the selection mark in | |
685 | the combobox text field. | |
686 | """ | |
687 | return _controls_.ComboBox_GetMark(*args, **kwargs) | |
688 | ||
943e8dfd RD |
689 | def GetCurrentSelection(*args, **kwargs): |
690 | """ | |
691 | GetCurrentSelection(self) -> int | |
692 | ||
693 | Unlike `GetSelection` which only returns the accepted selection value, | |
694 | i.e. the selection in the control once the user closes the dropdown | |
695 | list, this function returns the current selection. That is, while the | |
696 | dropdown list is shown, it returns the currently selected item in | |
697 | it. When it is not shown, its result is the same as for the other | |
698 | function. | |
699 | """ | |
700 | return _controls_.ComboBox_GetCurrentSelection(*args, **kwargs) | |
701 | ||
121b9a67 RD |
702 | def SetStringSelection(*args, **kwargs): |
703 | """ | |
704 | SetStringSelection(self, String string) -> bool | |
705 | ||
706 | Select the item with the specifed string | |
707 | """ | |
708 | return _controls_.ComboBox_SetStringSelection(*args, **kwargs) | |
709 | ||
e811c8ce | 710 | def SetEditable(*args, **kwargs): |
a95a7133 | 711 | """SetEditable(self, bool editable)""" |
54f9ee45 | 712 | return _controls_.ComboBox_SetEditable(*args, **kwargs) |
e811c8ce RD |
713 | |
714 | def SetInsertionPointEnd(*args, **kwargs): | |
b88bce5f | 715 | """ |
a95a7133 | 716 | SetInsertionPointEnd(self) |
b88bce5f RD |
717 | |
718 | Sets the insertion point at the end of the combobox text field. | |
719 | """ | |
54f9ee45 | 720 | return _controls_.ComboBox_SetInsertionPointEnd(*args, **kwargs) |
e811c8ce RD |
721 | |
722 | def Remove(*args, **kwargs): | |
b88bce5f | 723 | """ |
a95a7133 | 724 | Remove(self, long from, long to) |
b88bce5f RD |
725 | |
726 | Removes the text between the two positions in the combobox text field. | |
727 | """ | |
54f9ee45 | 728 | return _controls_.ComboBox_Remove(*args, **kwargs) |
e811c8ce | 729 | |
5cbf236d RD |
730 | def IsEditable(*args, **kwargs): |
731 | """ | |
732 | IsEditable(self) -> bool | |
733 | ||
734 | Returns True if the combo is ediatable (not read-only.) | |
735 | """ | |
736 | return _controls_.ComboBox_IsEditable(*args, **kwargs) | |
737 | ||
738 | def Undo(*args, **kwargs): | |
739 | """ | |
740 | Undo(self) | |
741 | ||
742 | Redoes the last undo in the text field. Windows only. | |
743 | """ | |
744 | return _controls_.ComboBox_Undo(*args, **kwargs) | |
745 | ||
746 | def Redo(*args, **kwargs): | |
747 | """ | |
748 | Redo(self) | |
749 | ||
750 | Undoes the last edit in the text field. Windows only. | |
751 | """ | |
752 | return _controls_.ComboBox_Redo(*args, **kwargs) | |
753 | ||
754 | def SelectAll(*args, **kwargs): | |
755 | """ | |
756 | SelectAll(self) | |
757 | ||
758 | Select all the text in the combo's text field. | |
759 | """ | |
760 | return _controls_.ComboBox_SelectAll(*args, **kwargs) | |
761 | ||
762 | def CanCopy(*args, **kwargs): | |
763 | """ | |
764 | CanCopy(self) -> bool | |
765 | ||
766 | Returns True if the combobox is editable and there is a text selection | |
767 | to copy to the clipboard. Only available on Windows. | |
768 | """ | |
769 | return _controls_.ComboBox_CanCopy(*args, **kwargs) | |
770 | ||
771 | def CanCut(*args, **kwargs): | |
772 | """ | |
773 | CanCut(self) -> bool | |
774 | ||
775 | Returns True if the combobox is editable and there is a text selection | |
776 | to copy to the clipboard. Only available on Windows. | |
777 | """ | |
778 | return _controls_.ComboBox_CanCut(*args, **kwargs) | |
779 | ||
780 | def CanPaste(*args, **kwargs): | |
781 | """ | |
782 | CanPaste(self) -> bool | |
783 | ||
784 | Returns True if the combobox is editable and there is text on the | |
785 | clipboard that can be pasted into the text field. Only available on | |
786 | Windows. | |
787 | """ | |
788 | return _controls_.ComboBox_CanPaste(*args, **kwargs) | |
789 | ||
790 | def CanUndo(*args, **kwargs): | |
791 | """ | |
792 | CanUndo(self) -> bool | |
793 | ||
794 | Returns True if the combobox is editable and the last edit can be | |
795 | undone. Only available on Windows. | |
796 | """ | |
797 | return _controls_.ComboBox_CanUndo(*args, **kwargs) | |
798 | ||
799 | def CanRedo(*args, **kwargs): | |
800 | """ | |
801 | CanRedo(self) -> bool | |
802 | ||
803 | Returns True if the combobox is editable and the last undo can be | |
804 | redone. Only available on Windows. | |
805 | """ | |
806 | return _controls_.ComboBox_CanRedo(*args, **kwargs) | |
807 | ||
22bfe96c | 808 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
809 | """ |
810 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
811 | ||
812 | Get the default attributes for this class. This is useful if you want | |
813 | to use the same font or colour in your own control as in a standard | |
814 | control -- which is a much better idea than hard coding specific | |
815 | colours or fonts which might look completely out of place on the | |
816 | user's system, especially if it uses themes. | |
817 | ||
818 | The variant parameter is only relevant under Mac currently and is | |
819 | ignore under other platforms. Under Mac, it will change the size of | |
820 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
821 | this. | |
822 | """ | |
22bfe96c RD |
823 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) |
824 | ||
825 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2bf58437 RD |
826 | CurrentSelection = property(GetCurrentSelection,doc="See `GetCurrentSelection`") |
827 | InsertionPoint = property(GetInsertionPoint,SetInsertionPoint,doc="See `GetInsertionPoint` and `SetInsertionPoint`") | |
828 | LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") | |
829 | Mark = property(GetMark,SetMark,doc="See `GetMark` and `SetMark`") | |
830 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 831 | _controls_.ComboBox_swigregister(ComboBox) |
b2dc1044 | 832 | ComboBoxNameStr = cvar.ComboBoxNameStr |
70551f47 | 833 | |
d14a1e28 | 834 | def PreComboBox(*args, **kwargs): |
b88bce5f RD |
835 | """ |
836 | PreComboBox() -> ComboBox | |
837 | ||
838 | Precreate a ComboBox control for 2-phase creation. | |
839 | """ | |
54f9ee45 | 840 | val = _controls_.new_PreComboBox(*args, **kwargs) |
aa2a5b86 RD |
841 | return val |
842 | ||
22bfe96c | 843 | def ComboBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 844 | """ |
110da5b0 RD |
845 | ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
846 | ||
847 | Get the default attributes for this class. This is useful if you want | |
848 | to use the same font or colour in your own control as in a standard | |
849 | control -- which is a much better idea than hard coding specific | |
850 | colours or fonts which might look completely out of place on the | |
851 | user's system, especially if it uses themes. | |
852 | ||
853 | The variant parameter is only relevant under Mac currently and is | |
854 | ignore under other platforms. Under Mac, it will change the size of | |
855 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
856 | this. | |
857 | """ | |
0085ce49 | 858 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 859 | |
d14a1e28 | 860 | #--------------------------------------------------------------------------- |
70551f47 | 861 | |
54f9ee45 RD |
862 | GA_HORIZONTAL = _controls_.GA_HORIZONTAL |
863 | GA_VERTICAL = _controls_.GA_VERTICAL | |
864 | GA_SMOOTH = _controls_.GA_SMOOTH | |
e9d6f3a4 | 865 | GA_PROGRESSBAR = 0 # obsolete |
54f9ee45 | 866 | class Gauge(_core.Control): |
093d3ff1 | 867 | """Proxy of C++ Gauge class""" |
0085ce49 RD |
868 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
869 | __repr__ = _swig_repr | |
870 | def __init__(self, *args, **kwargs): | |
0df68c9f | 871 | """ |
248ed943 | 872 | __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, |
0df68c9f RD |
873 | Size size=DefaultSize, long style=GA_HORIZONTAL, |
874 | Validator validator=DefaultValidator, | |
b2dc1044 | 875 | String name=GaugeNameStr) -> Gauge |
0df68c9f | 876 | """ |
0085ce49 | 877 | _controls_.Gauge_swiginit(self,_controls_.new_Gauge(*args, **kwargs)) |
0220cbc1 | 878 | self._setOORInfo(self) |
e811c8ce RD |
879 | |
880 | def Create(*args, **kwargs): | |
0df68c9f | 881 | """ |
248ed943 | 882 | Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, |
0df68c9f RD |
883 | Size size=DefaultSize, long style=GA_HORIZONTAL, |
884 | Validator validator=DefaultValidator, | |
b2dc1044 | 885 | String name=GaugeNameStr) -> bool |
0df68c9f | 886 | """ |
54f9ee45 | 887 | return _controls_.Gauge_Create(*args, **kwargs) |
e811c8ce RD |
888 | |
889 | def SetRange(*args, **kwargs): | |
a95a7133 | 890 | """SetRange(self, int range)""" |
54f9ee45 | 891 | return _controls_.Gauge_SetRange(*args, **kwargs) |
e811c8ce RD |
892 | |
893 | def GetRange(*args, **kwargs): | |
a95a7133 | 894 | """GetRange(self) -> int""" |
54f9ee45 | 895 | return _controls_.Gauge_GetRange(*args, **kwargs) |
e811c8ce RD |
896 | |
897 | def SetValue(*args, **kwargs): | |
a95a7133 | 898 | """SetValue(self, int pos)""" |
54f9ee45 | 899 | return _controls_.Gauge_SetValue(*args, **kwargs) |
e811c8ce RD |
900 | |
901 | def GetValue(*args, **kwargs): | |
a95a7133 | 902 | """GetValue(self) -> int""" |
54f9ee45 | 903 | return _controls_.Gauge_GetValue(*args, **kwargs) |
e811c8ce | 904 | |
ae5bc7f3 RD |
905 | def Pulse(*args, **kwargs): |
906 | """Pulse(self)""" | |
907 | return _controls_.Gauge_Pulse(*args, **kwargs) | |
908 | ||
e811c8ce | 909 | def IsVertical(*args, **kwargs): |
a95a7133 | 910 | """IsVertical(self) -> bool""" |
54f9ee45 | 911 | return _controls_.Gauge_IsVertical(*args, **kwargs) |
e811c8ce RD |
912 | |
913 | def SetShadowWidth(*args, **kwargs): | |
a95a7133 | 914 | """SetShadowWidth(self, int w)""" |
54f9ee45 | 915 | return _controls_.Gauge_SetShadowWidth(*args, **kwargs) |
e811c8ce RD |
916 | |
917 | def GetShadowWidth(*args, **kwargs): | |
a95a7133 | 918 | """GetShadowWidth(self) -> int""" |
54f9ee45 | 919 | return _controls_.Gauge_GetShadowWidth(*args, **kwargs) |
e811c8ce RD |
920 | |
921 | def SetBezelFace(*args, **kwargs): | |
a95a7133 | 922 | """SetBezelFace(self, int w)""" |
54f9ee45 | 923 | return _controls_.Gauge_SetBezelFace(*args, **kwargs) |
e811c8ce RD |
924 | |
925 | def GetBezelFace(*args, **kwargs): | |
a95a7133 | 926 | """GetBezelFace(self) -> int""" |
54f9ee45 | 927 | return _controls_.Gauge_GetBezelFace(*args, **kwargs) |
e811c8ce | 928 | |
22bfe96c | 929 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
930 | """ |
931 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
932 | ||
933 | Get the default attributes for this class. This is useful if you want | |
934 | to use the same font or colour in your own control as in a standard | |
935 | control -- which is a much better idea than hard coding specific | |
936 | colours or fonts which might look completely out of place on the | |
937 | user's system, especially if it uses themes. | |
938 | ||
939 | The variant parameter is only relevant under Mac currently and is | |
940 | ignore under other platforms. Under Mac, it will change the size of | |
941 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
942 | this. | |
943 | """ | |
22bfe96c RD |
944 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) |
945 | ||
946 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
97ab0f6a RD |
947 | BezelFace = property(GetBezelFace,SetBezelFace,doc="See `GetBezelFace` and `SetBezelFace`") |
948 | Range = property(GetRange,SetRange,doc="See `GetRange` and `SetRange`") | |
949 | ShadowWidth = property(GetShadowWidth,SetShadowWidth,doc="See `GetShadowWidth` and `SetShadowWidth`") | |
950 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 951 | _controls_.Gauge_swigregister(Gauge) |
b2dc1044 | 952 | GaugeNameStr = cvar.GaugeNameStr |
70551f47 | 953 | |
d14a1e28 | 954 | def PreGauge(*args, **kwargs): |
e811c8ce | 955 | """PreGauge() -> Gauge""" |
54f9ee45 | 956 | val = _controls_.new_PreGauge(*args, **kwargs) |
aa2a5b86 RD |
957 | return val |
958 | ||
22bfe96c | 959 | def Gauge_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 960 | """ |
110da5b0 RD |
961 | Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
962 | ||
963 | Get the default attributes for this class. This is useful if you want | |
964 | to use the same font or colour in your own control as in a standard | |
965 | control -- which is a much better idea than hard coding specific | |
966 | colours or fonts which might look completely out of place on the | |
967 | user's system, especially if it uses themes. | |
968 | ||
969 | The variant parameter is only relevant under Mac currently and is | |
970 | ignore under other platforms. Under Mac, it will change the size of | |
971 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
972 | this. | |
973 | """ | |
0085ce49 | 974 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 975 | |
d14a1e28 | 976 | #--------------------------------------------------------------------------- |
70551f47 | 977 | |
54f9ee45 | 978 | class StaticBox(_core.Control): |
093d3ff1 | 979 | """Proxy of C++ StaticBox class""" |
0085ce49 RD |
980 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
981 | __repr__ = _swig_repr | |
982 | def __init__(self, *args, **kwargs): | |
0df68c9f | 983 | """ |
248ed943 RD |
984 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
985 | Point pos=DefaultPosition, Size size=DefaultSize, | |
986 | long style=0, String name=StaticBoxNameStr) -> StaticBox | |
0df68c9f | 987 | """ |
0085ce49 | 988 | _controls_.StaticBox_swiginit(self,_controls_.new_StaticBox(*args, **kwargs)) |
0220cbc1 | 989 | self._setOORInfo(self) |
e811c8ce RD |
990 | |
991 | def Create(*args, **kwargs): | |
0df68c9f | 992 | """ |
248ed943 RD |
993 | Create(self, Window parent, int id=-1, String label=EmptyString, |
994 | Point pos=DefaultPosition, Size size=DefaultSize, | |
995 | long style=0, String name=StaticBoxNameStr) -> bool | |
0df68c9f | 996 | """ |
54f9ee45 | 997 | return _controls_.StaticBox_Create(*args, **kwargs) |
e811c8ce | 998 | |
22bfe96c | 999 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1000 | """ |
1001 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1002 | ||
1003 | Get the default attributes for this class. This is useful if you want | |
1004 | to use the same font or colour in your own control as in a standard | |
1005 | control -- which is a much better idea than hard coding specific | |
1006 | colours or fonts which might look completely out of place on the | |
1007 | user's system, especially if it uses themes. | |
1008 | ||
1009 | The variant parameter is only relevant under Mac currently and is | |
1010 | ignore under other platforms. Under Mac, it will change the size of | |
1011 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1012 | this. | |
1013 | """ | |
22bfe96c RD |
1014 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) |
1015 | ||
1016 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1017 | _controls_.StaticBox_swigregister(StaticBox) |
b2dc1044 RD |
1018 | StaticBitmapNameStr = cvar.StaticBitmapNameStr |
1019 | StaticBoxNameStr = cvar.StaticBoxNameStr | |
1020 | StaticTextNameStr = cvar.StaticTextNameStr | |
3f7f284d | 1021 | StaticLineNameStr = cvar.StaticLineNameStr |
70551f47 | 1022 | |
d14a1e28 | 1023 | def PreStaticBox(*args, **kwargs): |
e811c8ce | 1024 | """PreStaticBox() -> StaticBox""" |
54f9ee45 | 1025 | val = _controls_.new_PreStaticBox(*args, **kwargs) |
aa2a5b86 RD |
1026 | return val |
1027 | ||
22bfe96c | 1028 | def StaticBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1029 | """ |
110da5b0 RD |
1030 | StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1031 | ||
1032 | Get the default attributes for this class. This is useful if you want | |
1033 | to use the same font or colour in your own control as in a standard | |
1034 | control -- which is a much better idea than hard coding specific | |
1035 | colours or fonts which might look completely out of place on the | |
1036 | user's system, especially if it uses themes. | |
1037 | ||
1038 | The variant parameter is only relevant under Mac currently and is | |
1039 | ignore under other platforms. Under Mac, it will change the size of | |
1040 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1041 | this. | |
1042 | """ | |
0085ce49 | 1043 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1044 | |
d14a1e28 | 1045 | #--------------------------------------------------------------------------- |
70551f47 | 1046 | |
54f9ee45 | 1047 | class StaticLine(_core.Control): |
093d3ff1 | 1048 | """Proxy of C++ StaticLine class""" |
0085ce49 RD |
1049 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1050 | __repr__ = _swig_repr | |
1051 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1052 | """ |
248ed943 RD |
1053 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1054 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
3f7f284d | 1055 | String name=StaticLineNameStr) -> StaticLine |
0df68c9f | 1056 | """ |
0085ce49 | 1057 | _controls_.StaticLine_swiginit(self,_controls_.new_StaticLine(*args, **kwargs)) |
0220cbc1 | 1058 | self._setOORInfo(self) |
e811c8ce RD |
1059 | |
1060 | def Create(*args, **kwargs): | |
0df68c9f | 1061 | """ |
248ed943 RD |
1062 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1063 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
3f7f284d | 1064 | String name=StaticLineNameStr) -> bool |
0df68c9f | 1065 | """ |
54f9ee45 | 1066 | return _controls_.StaticLine_Create(*args, **kwargs) |
e811c8ce RD |
1067 | |
1068 | def IsVertical(*args, **kwargs): | |
a95a7133 | 1069 | """IsVertical(self) -> bool""" |
54f9ee45 | 1070 | return _controls_.StaticLine_IsVertical(*args, **kwargs) |
e811c8ce RD |
1071 | |
1072 | def GetDefaultSize(*args, **kwargs): | |
66c033b4 | 1073 | """GetDefaultSize() -> int""" |
54f9ee45 | 1074 | return _controls_.StaticLine_GetDefaultSize(*args, **kwargs) |
e811c8ce RD |
1075 | |
1076 | GetDefaultSize = staticmethod(GetDefaultSize) | |
22bfe96c | 1077 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1078 | """ |
1079 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1080 | ||
1081 | Get the default attributes for this class. This is useful if you want | |
1082 | to use the same font or colour in your own control as in a standard | |
1083 | control -- which is a much better idea than hard coding specific | |
1084 | colours or fonts which might look completely out of place on the | |
1085 | user's system, especially if it uses themes. | |
1086 | ||
1087 | The variant parameter is only relevant under Mac currently and is | |
1088 | ignore under other platforms. Under Mac, it will change the size of | |
1089 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1090 | this. | |
1091 | """ | |
22bfe96c RD |
1092 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) |
1093 | ||
1094 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1095 | _controls_.StaticLine_swigregister(StaticLine) |
70551f47 | 1096 | |
d14a1e28 | 1097 | def PreStaticLine(*args, **kwargs): |
e811c8ce | 1098 | """PreStaticLine() -> StaticLine""" |
54f9ee45 | 1099 | val = _controls_.new_PreStaticLine(*args, **kwargs) |
aa2a5b86 RD |
1100 | return val |
1101 | ||
0085ce49 RD |
1102 | def StaticLine_GetDefaultSize(*args): |
1103 | """StaticLine_GetDefaultSize() -> int""" | |
1104 | return _controls_.StaticLine_GetDefaultSize(*args) | |
70551f47 | 1105 | |
22bfe96c | 1106 | def StaticLine_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1107 | """ |
110da5b0 RD |
1108 | StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1109 | ||
1110 | Get the default attributes for this class. This is useful if you want | |
1111 | to use the same font or colour in your own control as in a standard | |
1112 | control -- which is a much better idea than hard coding specific | |
1113 | colours or fonts which might look completely out of place on the | |
1114 | user's system, especially if it uses themes. | |
1115 | ||
1116 | The variant parameter is only relevant under Mac currently and is | |
1117 | ignore under other platforms. Under Mac, it will change the size of | |
1118 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1119 | this. | |
1120 | """ | |
0085ce49 | 1121 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1122 | |
d14a1e28 RD |
1123 | #--------------------------------------------------------------------------- |
1124 | ||
ddeca22c RD |
1125 | ST_NO_AUTORESIZE = _controls_.ST_NO_AUTORESIZE |
1126 | ST_MARKUP = _controls_.ST_MARKUP | |
1127 | ST_ELLIPSIZE_START = _controls_.ST_ELLIPSIZE_START | |
1128 | ST_ELLIPSIZE_MIDDLE = _controls_.ST_ELLIPSIZE_MIDDLE | |
1129 | ST_ELLIPSIZE_END = _controls_.ST_ELLIPSIZE_END | |
54f9ee45 | 1130 | class StaticText(_core.Control): |
093d3ff1 | 1131 | """Proxy of C++ StaticText class""" |
0085ce49 RD |
1132 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1133 | __repr__ = _swig_repr | |
1134 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1135 | """ |
248ed943 RD |
1136 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
1137 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1138 | long style=0, String name=StaticTextNameStr) -> StaticText | |
0df68c9f | 1139 | """ |
0085ce49 | 1140 | _controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args, **kwargs)) |
0220cbc1 | 1141 | self._setOORInfo(self) |
e811c8ce RD |
1142 | |
1143 | def Create(*args, **kwargs): | |
0df68c9f | 1144 | """ |
248ed943 RD |
1145 | Create(self, Window parent, int id=-1, String label=EmptyString, |
1146 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1147 | long style=0, String name=StaticTextNameStr) -> bool | |
0df68c9f | 1148 | """ |
54f9ee45 | 1149 | return _controls_.StaticText_Create(*args, **kwargs) |
e811c8ce | 1150 | |
943e8dfd RD |
1151 | def Wrap(*args, **kwargs): |
1152 | """ | |
1153 | Wrap(self, int width) | |
1154 | ||
1155 | This functions wraps the control's label so that each of its lines | |
1156 | becomes at most ``width`` pixels wide if possible (the lines are | |
1157 | broken at words boundaries so it might not be the case if words are | |
1158 | too long). If ``width`` is negative, no wrapping is done. | |
1159 | """ | |
1160 | return _controls_.StaticText_Wrap(*args, **kwargs) | |
1161 | ||
ddeca22c RD |
1162 | def IsEllipsized(*args, **kwargs): |
1163 | """IsEllipsized(self) -> bool""" | |
1164 | return _controls_.StaticText_IsEllipsized(*args, **kwargs) | |
1165 | ||
1166 | def RemoveMarkup(*args, **kwargs): | |
1167 | """ | |
1168 | RemoveMarkup(String str) -> String | |
1169 | ||
1170 | Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is | |
1171 | used, and then returns the cleaned string. | |
1172 | ||
1173 | """ | |
1174 | return _controls_.StaticText_RemoveMarkup(*args, **kwargs) | |
1175 | ||
1176 | RemoveMarkup = staticmethod(RemoveMarkup) | |
1177 | def EscapeMarkup(*args, **kwargs): | |
1178 | """ | |
1179 | EscapeMarkup(String str) -> String | |
1180 | ||
1181 | Escapes the alls special symbols (<>"'&) present inside the given | |
1182 | string using the corresponding entities (< > " ' | |
1183 | &) | |
1184 | """ | |
1185 | return _controls_.StaticText_EscapeMarkup(*args, **kwargs) | |
1186 | ||
1187 | EscapeMarkup = staticmethod(EscapeMarkup) | |
22bfe96c | 1188 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1189 | """ |
1190 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1191 | ||
1192 | Get the default attributes for this class. This is useful if you want | |
1193 | to use the same font or colour in your own control as in a standard | |
1194 | control -- which is a much better idea than hard coding specific | |
1195 | colours or fonts which might look completely out of place on the | |
1196 | user's system, especially if it uses themes. | |
1197 | ||
1198 | The variant parameter is only relevant under Mac currently and is | |
1199 | ignore under other platforms. Under Mac, it will change the size of | |
1200 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1201 | this. | |
1202 | """ | |
22bfe96c RD |
1203 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) |
1204 | ||
1205 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1206 | _controls_.StaticText_swigregister(StaticText) |
70551f47 | 1207 | |
d14a1e28 | 1208 | def PreStaticText(*args, **kwargs): |
e811c8ce | 1209 | """PreStaticText() -> StaticText""" |
54f9ee45 | 1210 | val = _controls_.new_PreStaticText(*args, **kwargs) |
aa2a5b86 RD |
1211 | return val |
1212 | ||
ddeca22c RD |
1213 | def StaticText_RemoveMarkup(*args, **kwargs): |
1214 | """ | |
1215 | StaticText_RemoveMarkup(String str) -> String | |
1216 | ||
1217 | Removes the markup accepted by wx.StaticText when wx.ST_MARKUP is | |
1218 | used, and then returns the cleaned string. | |
1219 | ||
1220 | """ | |
1221 | return _controls_.StaticText_RemoveMarkup(*args, **kwargs) | |
1222 | ||
1223 | def StaticText_EscapeMarkup(*args, **kwargs): | |
1224 | """ | |
1225 | StaticText_EscapeMarkup(String str) -> String | |
1226 | ||
1227 | Escapes the alls special symbols (<>"'&) present inside the given | |
1228 | string using the corresponding entities (< > " ' | |
1229 | &) | |
1230 | """ | |
1231 | return _controls_.StaticText_EscapeMarkup(*args, **kwargs) | |
1232 | ||
22bfe96c | 1233 | def StaticText_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1234 | """ |
110da5b0 RD |
1235 | StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1236 | ||
1237 | Get the default attributes for this class. This is useful if you want | |
1238 | to use the same font or colour in your own control as in a standard | |
1239 | control -- which is a much better idea than hard coding specific | |
1240 | colours or fonts which might look completely out of place on the | |
1241 | user's system, especially if it uses themes. | |
1242 | ||
1243 | The variant parameter is only relevant under Mac currently and is | |
1244 | ignore under other platforms. Under Mac, it will change the size of | |
1245 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1246 | this. | |
1247 | """ | |
0085ce49 | 1248 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1249 | |
d14a1e28 | 1250 | #--------------------------------------------------------------------------- |
70551f47 | 1251 | |
54f9ee45 | 1252 | class StaticBitmap(_core.Control): |
093d3ff1 | 1253 | """Proxy of C++ StaticBitmap class""" |
0085ce49 RD |
1254 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1255 | __repr__ = _swig_repr | |
1256 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1257 | """ |
248ed943 RD |
1258 | __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
1259 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1260 | long style=0, String name=StaticBitmapNameStr) -> StaticBitmap | |
0df68c9f | 1261 | """ |
0085ce49 | 1262 | _controls_.StaticBitmap_swiginit(self,_controls_.new_StaticBitmap(*args, **kwargs)) |
4f89f6a3 RD |
1263 | self._setOORInfo(self) |
1264 | ||
e811c8ce | 1265 | def Create(*args, **kwargs): |
0df68c9f | 1266 | """ |
248ed943 RD |
1267 | Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap, |
1268 | Point pos=DefaultPosition, Size size=DefaultSize, | |
1269 | long style=0, String name=StaticBitmapNameStr) -> bool | |
0df68c9f | 1270 | """ |
54f9ee45 | 1271 | return _controls_.StaticBitmap_Create(*args, **kwargs) |
e811c8ce RD |
1272 | |
1273 | def GetBitmap(*args, **kwargs): | |
a95a7133 | 1274 | """GetBitmap(self) -> Bitmap""" |
54f9ee45 | 1275 | return _controls_.StaticBitmap_GetBitmap(*args, **kwargs) |
e811c8ce RD |
1276 | |
1277 | def SetBitmap(*args, **kwargs): | |
a95a7133 | 1278 | """SetBitmap(self, Bitmap bitmap)""" |
54f9ee45 | 1279 | return _controls_.StaticBitmap_SetBitmap(*args, **kwargs) |
e811c8ce RD |
1280 | |
1281 | def SetIcon(*args, **kwargs): | |
a95a7133 | 1282 | """SetIcon(self, Icon icon)""" |
54f9ee45 | 1283 | return _controls_.StaticBitmap_SetIcon(*args, **kwargs) |
e811c8ce | 1284 | |
22bfe96c | 1285 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1286 | """ |
1287 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1288 | ||
1289 | Get the default attributes for this class. This is useful if you want | |
1290 | to use the same font or colour in your own control as in a standard | |
1291 | control -- which is a much better idea than hard coding specific | |
1292 | colours or fonts which might look completely out of place on the | |
1293 | user's system, especially if it uses themes. | |
1294 | ||
1295 | The variant parameter is only relevant under Mac currently and is | |
1296 | ignore under other platforms. Under Mac, it will change the size of | |
1297 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1298 | this. | |
1299 | """ | |
22bfe96c RD |
1300 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) |
1301 | ||
1302 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1303 | _controls_.StaticBitmap_swigregister(StaticBitmap) |
70551f47 | 1304 | |
d14a1e28 | 1305 | def PreStaticBitmap(*args, **kwargs): |
e811c8ce | 1306 | """PreStaticBitmap() -> StaticBitmap""" |
54f9ee45 | 1307 | val = _controls_.new_PreStaticBitmap(*args, **kwargs) |
aa2a5b86 RD |
1308 | return val |
1309 | ||
22bfe96c | 1310 | def StaticBitmap_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1311 | """ |
110da5b0 RD |
1312 | StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1313 | ||
1314 | Get the default attributes for this class. This is useful if you want | |
1315 | to use the same font or colour in your own control as in a standard | |
1316 | control -- which is a much better idea than hard coding specific | |
1317 | colours or fonts which might look completely out of place on the | |
1318 | user's system, especially if it uses themes. | |
1319 | ||
1320 | The variant parameter is only relevant under Mac currently and is | |
1321 | ignore under other platforms. Under Mac, it will change the size of | |
1322 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1323 | this. | |
1324 | """ | |
0085ce49 | 1325 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 1326 | |
d14a1e28 | 1327 | #--------------------------------------------------------------------------- |
70551f47 | 1328 | |
54f9ee45 | 1329 | class ListBox(_core.ControlWithItems): |
093d3ff1 | 1330 | """Proxy of C++ ListBox class""" |
0085ce49 RD |
1331 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1332 | __repr__ = _swig_repr | |
1333 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1334 | """ |
248ed943 RD |
1335 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1336 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1337 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1338 | String name=ListBoxNameStr) -> ListBox |
0df68c9f | 1339 | """ |
0085ce49 | 1340 | _controls_.ListBox_swiginit(self,_controls_.new_ListBox(*args, **kwargs)) |
0220cbc1 | 1341 | self._setOORInfo(self) |
e811c8ce RD |
1342 | |
1343 | def Create(*args, **kwargs): | |
0df68c9f | 1344 | """ |
248ed943 RD |
1345 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1346 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1347 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1348 | String name=ListBoxNameStr) -> bool |
0df68c9f | 1349 | """ |
54f9ee45 | 1350 | return _controls_.ListBox_Create(*args, **kwargs) |
e811c8ce RD |
1351 | |
1352 | def Insert(*args, **kwargs): | |
15afbcd0 | 1353 | """ |
a95a7133 | 1354 | Insert(self, String item, int pos, PyObject clientData=None) |
15afbcd0 | 1355 | |
41e2b43e | 1356 | Insert an item into the control before the item at the ``pos`` index, |
15afbcd0 RD |
1357 | optionally associating some data object with the item. |
1358 | """ | |
54f9ee45 | 1359 | return _controls_.ListBox_Insert(*args, **kwargs) |
e811c8ce RD |
1360 | |
1361 | def InsertItems(*args, **kwargs): | |
50f151d7 | 1362 | """InsertItems(self, wxArrayString items, unsigned int pos)""" |
54f9ee45 | 1363 | return _controls_.ListBox_InsertItems(*args, **kwargs) |
e811c8ce RD |
1364 | |
1365 | def Set(*args, **kwargs): | |
a95a7133 | 1366 | """Set(self, wxArrayString items)""" |
54f9ee45 | 1367 | return _controls_.ListBox_Set(*args, **kwargs) |
e811c8ce RD |
1368 | |
1369 | def IsSelected(*args, **kwargs): | |
a95a7133 | 1370 | """IsSelected(self, int n) -> bool""" |
54f9ee45 | 1371 | return _controls_.ListBox_IsSelected(*args, **kwargs) |
e811c8ce RD |
1372 | |
1373 | def SetSelection(*args, **kwargs): | |
a95a7133 | 1374 | """SetSelection(self, int n, bool select=True)""" |
54f9ee45 | 1375 | return _controls_.ListBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
1376 | |
1377 | def Select(*args, **kwargs): | |
15afbcd0 | 1378 | """ |
a95a7133 | 1379 | Select(self, int n) |
15afbcd0 | 1380 | |
53aa7709 RD |
1381 | This is the same as `SetSelection` and exists only because it is |
1382 | slightly more natural for controls which support multiple selection. | |
15afbcd0 | 1383 | """ |
54f9ee45 | 1384 | return _controls_.ListBox_Select(*args, **kwargs) |
e811c8ce RD |
1385 | |
1386 | def Deselect(*args, **kwargs): | |
a95a7133 | 1387 | """Deselect(self, int n)""" |
54f9ee45 | 1388 | return _controls_.ListBox_Deselect(*args, **kwargs) |
e811c8ce RD |
1389 | |
1390 | def DeselectAll(*args, **kwargs): | |
a95a7133 | 1391 | """DeselectAll(self, int itemToLeaveSelected=-1)""" |
54f9ee45 | 1392 | return _controls_.ListBox_DeselectAll(*args, **kwargs) |
e811c8ce RD |
1393 | |
1394 | def SetStringSelection(*args, **kwargs): | |
a95a7133 | 1395 | """SetStringSelection(self, String s, bool select=True) -> bool""" |
54f9ee45 | 1396 | return _controls_.ListBox_SetStringSelection(*args, **kwargs) |
e811c8ce RD |
1397 | |
1398 | def GetSelections(*args, **kwargs): | |
a95a7133 | 1399 | """GetSelections(self) -> PyObject""" |
54f9ee45 | 1400 | return _controls_.ListBox_GetSelections(*args, **kwargs) |
e811c8ce RD |
1401 | |
1402 | def SetFirstItem(*args, **kwargs): | |
a95a7133 | 1403 | """SetFirstItem(self, int n)""" |
54f9ee45 | 1404 | return _controls_.ListBox_SetFirstItem(*args, **kwargs) |
e811c8ce RD |
1405 | |
1406 | def SetFirstItemStr(*args, **kwargs): | |
a95a7133 | 1407 | """SetFirstItemStr(self, String s)""" |
54f9ee45 | 1408 | return _controls_.ListBox_SetFirstItemStr(*args, **kwargs) |
e811c8ce RD |
1409 | |
1410 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 1411 | """EnsureVisible(self, int n)""" |
54f9ee45 | 1412 | return _controls_.ListBox_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
1413 | |
1414 | def AppendAndEnsureVisible(*args, **kwargs): | |
a95a7133 | 1415 | """AppendAndEnsureVisible(self, String s)""" |
54f9ee45 | 1416 | return _controls_.ListBox_AppendAndEnsureVisible(*args, **kwargs) |
e811c8ce RD |
1417 | |
1418 | def IsSorted(*args, **kwargs): | |
a95a7133 | 1419 | """IsSorted(self) -> bool""" |
54f9ee45 | 1420 | return _controls_.ListBox_IsSorted(*args, **kwargs) |
e811c8ce | 1421 | |
0085ce49 RD |
1422 | def HitTest(*args, **kwargs): |
1423 | """ | |
1424 | HitTest(self, Point pt) -> int | |
1425 | ||
1426 | Test where the given (in client coords) point lies | |
1427 | """ | |
1428 | return _controls_.ListBox_HitTest(*args, **kwargs) | |
1429 | ||
c3eb6258 | 1430 | def SetItemForegroundColour(*args, **kwargs): |
a95a7133 | 1431 | """SetItemForegroundColour(self, int item, Colour c)""" |
54f9ee45 | 1432 | return _controls_.ListBox_SetItemForegroundColour(*args, **kwargs) |
c3eb6258 RD |
1433 | |
1434 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 1435 | """SetItemBackgroundColour(self, int item, Colour c)""" |
54f9ee45 | 1436 | return _controls_.ListBox_SetItemBackgroundColour(*args, **kwargs) |
c3eb6258 RD |
1437 | |
1438 | def SetItemFont(*args, **kwargs): | |
a95a7133 | 1439 | """SetItemFont(self, int item, Font f)""" |
54f9ee45 | 1440 | return _controls_.ListBox_SetItemFont(*args, **kwargs) |
c3eb6258 | 1441 | |
74a57fcd | 1442 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1443 | """ |
1444 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1445 | ||
1446 | Get the default attributes for this class. This is useful if you want | |
1447 | to use the same font or colour in your own control as in a standard | |
1448 | control -- which is a much better idea than hard coding specific | |
1449 | colours or fonts which might look completely out of place on the | |
1450 | user's system, especially if it uses themes. | |
1451 | ||
1452 | The variant parameter is only relevant under Mac currently and is | |
1453 | ignore under other platforms. Under Mac, it will change the size of | |
1454 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1455 | this. | |
1456 | """ | |
54f9ee45 | 1457 | return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
1458 | |
1459 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
97ab0f6a | 1460 | Selections = property(GetSelections,doc="See `GetSelections`") |
2131d850 | 1461 | _controls_.ListBox_swigregister(ListBox) |
b2dc1044 | 1462 | ListBoxNameStr = cvar.ListBoxNameStr |
70551f47 | 1463 | |
d14a1e28 | 1464 | def PreListBox(*args, **kwargs): |
e811c8ce | 1465 | """PreListBox() -> ListBox""" |
54f9ee45 | 1466 | val = _controls_.new_PreListBox(*args, **kwargs) |
aa2a5b86 RD |
1467 | return val |
1468 | ||
74a57fcd | 1469 | def ListBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 1470 | """ |
110da5b0 RD |
1471 | ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1472 | ||
1473 | Get the default attributes for this class. This is useful if you want | |
1474 | to use the same font or colour in your own control as in a standard | |
1475 | control -- which is a much better idea than hard coding specific | |
1476 | colours or fonts which might look completely out of place on the | |
1477 | user's system, especially if it uses themes. | |
1478 | ||
1479 | The variant parameter is only relevant under Mac currently and is | |
1480 | ignore under other platforms. Under Mac, it will change the size of | |
1481 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1482 | this. | |
1483 | """ | |
0085ce49 | 1484 | return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 1485 | |
d14a1e28 | 1486 | #--------------------------------------------------------------------------- |
70551f47 | 1487 | |
d14a1e28 | 1488 | class CheckListBox(ListBox): |
093d3ff1 | 1489 | """Proxy of C++ CheckListBox class""" |
0085ce49 RD |
1490 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1491 | __repr__ = _swig_repr | |
1492 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1493 | """ |
248ed943 RD |
1494 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1495 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1496 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1497 | String name=ListBoxNameStr) -> CheckListBox |
0df68c9f | 1498 | """ |
0085ce49 | 1499 | _controls_.CheckListBox_swiginit(self,_controls_.new_CheckListBox(*args, **kwargs)) |
33b885b9 RD |
1500 | self._setOORInfo(self) |
1501 | ||
e811c8ce | 1502 | def Create(*args, **kwargs): |
0df68c9f | 1503 | """ |
248ed943 RD |
1504 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1505 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
0df68c9f | 1506 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1507 | String name=ListBoxNameStr) -> bool |
0df68c9f | 1508 | """ |
54f9ee45 | 1509 | return _controls_.CheckListBox_Create(*args, **kwargs) |
e811c8ce RD |
1510 | |
1511 | def IsChecked(*args, **kwargs): | |
50f151d7 | 1512 | """IsChecked(self, unsigned int index) -> bool""" |
54f9ee45 | 1513 | return _controls_.CheckListBox_IsChecked(*args, **kwargs) |
e811c8ce RD |
1514 | |
1515 | def Check(*args, **kwargs): | |
50f151d7 | 1516 | """Check(self, unsigned int index, int check=True)""" |
54f9ee45 | 1517 | return _controls_.CheckListBox_Check(*args, **kwargs) |
e811c8ce RD |
1518 | |
1519 | def GetItemHeight(*args, **kwargs): | |
a95a7133 | 1520 | """GetItemHeight(self) -> int""" |
54f9ee45 | 1521 | return _controls_.CheckListBox_GetItemHeight(*args, **kwargs) |
e811c8ce | 1522 | |
2bf58437 | 1523 | ItemHeight = property(GetItemHeight,doc="See `GetItemHeight`") |
2131d850 | 1524 | _controls_.CheckListBox_swigregister(CheckListBox) |
d14a1e28 RD |
1525 | |
1526 | def PreCheckListBox(*args, **kwargs): | |
e811c8ce | 1527 | """PreCheckListBox() -> CheckListBox""" |
54f9ee45 | 1528 | val = _controls_.new_PreCheckListBox(*args, **kwargs) |
d14a1e28 RD |
1529 | return val |
1530 | ||
1531 | #--------------------------------------------------------------------------- | |
1532 | ||
54f9ee45 RD |
1533 | TE_NO_VSCROLL = _controls_.TE_NO_VSCROLL |
1534 | TE_AUTO_SCROLL = _controls_.TE_AUTO_SCROLL | |
1535 | TE_READONLY = _controls_.TE_READONLY | |
1536 | TE_MULTILINE = _controls_.TE_MULTILINE | |
1537 | TE_PROCESS_TAB = _controls_.TE_PROCESS_TAB | |
1538 | TE_LEFT = _controls_.TE_LEFT | |
1539 | TE_CENTER = _controls_.TE_CENTER | |
1540 | TE_RIGHT = _controls_.TE_RIGHT | |
1541 | TE_CENTRE = _controls_.TE_CENTRE | |
1542 | TE_RICH = _controls_.TE_RICH | |
1543 | TE_PROCESS_ENTER = _controls_.TE_PROCESS_ENTER | |
1544 | TE_PASSWORD = _controls_.TE_PASSWORD | |
1545 | TE_AUTO_URL = _controls_.TE_AUTO_URL | |
1546 | TE_NOHIDESEL = _controls_.TE_NOHIDESEL | |
1547 | TE_DONTWRAP = _controls_.TE_DONTWRAP | |
08d9e66e | 1548 | TE_CHARWRAP = _controls_.TE_CHARWRAP |
54f9ee45 | 1549 | TE_WORDWRAP = _controls_.TE_WORDWRAP |
08d9e66e | 1550 | TE_BESTWRAP = _controls_.TE_BESTWRAP |
54f9ee45 | 1551 | TE_RICH2 = _controls_.TE_RICH2 |
88c6b281 | 1552 | TE_CAPITALIZE = _controls_.TE_CAPITALIZE |
e9d6f3a4 | 1553 | TE_LINEWRAP = TE_CHARWRAP |
cbfc9df6 RD |
1554 | PROCESS_ENTER = TE_PROCESS_ENTER |
1555 | PASSWORD = TE_PASSWORD | |
1556 | ||
54f9ee45 RD |
1557 | TEXT_ALIGNMENT_DEFAULT = _controls_.TEXT_ALIGNMENT_DEFAULT |
1558 | TEXT_ALIGNMENT_LEFT = _controls_.TEXT_ALIGNMENT_LEFT | |
1559 | TEXT_ALIGNMENT_CENTRE = _controls_.TEXT_ALIGNMENT_CENTRE | |
1560 | TEXT_ALIGNMENT_CENTER = _controls_.TEXT_ALIGNMENT_CENTER | |
1561 | TEXT_ALIGNMENT_RIGHT = _controls_.TEXT_ALIGNMENT_RIGHT | |
1562 | TEXT_ALIGNMENT_JUSTIFIED = _controls_.TEXT_ALIGNMENT_JUSTIFIED | |
1563 | TEXT_ATTR_TEXT_COLOUR = _controls_.TEXT_ATTR_TEXT_COLOUR | |
1564 | TEXT_ATTR_BACKGROUND_COLOUR = _controls_.TEXT_ATTR_BACKGROUND_COLOUR | |
1565 | TEXT_ATTR_FONT_FACE = _controls_.TEXT_ATTR_FONT_FACE | |
1566 | TEXT_ATTR_FONT_SIZE = _controls_.TEXT_ATTR_FONT_SIZE | |
1567 | TEXT_ATTR_FONT_WEIGHT = _controls_.TEXT_ATTR_FONT_WEIGHT | |
1568 | TEXT_ATTR_FONT_ITALIC = _controls_.TEXT_ATTR_FONT_ITALIC | |
1569 | TEXT_ATTR_FONT_UNDERLINE = _controls_.TEXT_ATTR_FONT_UNDERLINE | |
1570 | TEXT_ATTR_FONT = _controls_.TEXT_ATTR_FONT | |
1571 | TEXT_ATTR_ALIGNMENT = _controls_.TEXT_ATTR_ALIGNMENT | |
1572 | TEXT_ATTR_LEFT_INDENT = _controls_.TEXT_ATTR_LEFT_INDENT | |
1573 | TEXT_ATTR_RIGHT_INDENT = _controls_.TEXT_ATTR_RIGHT_INDENT | |
1574 | TEXT_ATTR_TABS = _controls_.TEXT_ATTR_TABS | |
1575 | TE_HT_UNKNOWN = _controls_.TE_HT_UNKNOWN | |
1576 | TE_HT_BEFORE = _controls_.TE_HT_BEFORE | |
1577 | TE_HT_ON_TEXT = _controls_.TE_HT_ON_TEXT | |
1578 | TE_HT_BELOW = _controls_.TE_HT_BELOW | |
1579 | TE_HT_BEYOND = _controls_.TE_HT_BEYOND | |
7557b9b5 RD |
1580 | OutOfRangeTextCoord = _controls_.OutOfRangeTextCoord |
1581 | InvalidTextCoord = _controls_.InvalidTextCoord | |
f5263701 | 1582 | TEXT_TYPE_ANY = _controls_.TEXT_TYPE_ANY |
d14a1e28 | 1583 | class TextAttr(object): |
093d3ff1 | 1584 | """Proxy of C++ TextAttr class""" |
0085ce49 RD |
1585 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1586 | __repr__ = _swig_repr | |
1587 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1588 | """ |
908b74cd RD |
1589 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, |
1590 | Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr | |
0df68c9f | 1591 | """ |
0085ce49 RD |
1592 | _controls_.TextAttr_swiginit(self,_controls_.new_TextAttr(*args, **kwargs)) |
1593 | __swig_destroy__ = _controls_.delete_TextAttr | |
1594 | __del__ = lambda self : None; | |
e811c8ce | 1595 | def Init(*args, **kwargs): |
a95a7133 | 1596 | """Init(self)""" |
54f9ee45 | 1597 | return _controls_.TextAttr_Init(*args, **kwargs) |
e811c8ce | 1598 | |
01f6b6d3 RD |
1599 | def Merge(*args, **kwargs): |
1600 | """Merge(TextAttr base, TextAttr overlay) -> TextAttr""" | |
1601 | return _controls_.TextAttr_Merge(*args, **kwargs) | |
1602 | ||
1603 | Merge = staticmethod(Merge) | |
e811c8ce | 1604 | def SetTextColour(*args, **kwargs): |
a95a7133 | 1605 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 1606 | return _controls_.TextAttr_SetTextColour(*args, **kwargs) |
e811c8ce RD |
1607 | |
1608 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 1609 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 1610 | return _controls_.TextAttr_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1611 | |
1612 | def SetFont(*args, **kwargs): | |
a95a7133 | 1613 | """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)""" |
54f9ee45 | 1614 | return _controls_.TextAttr_SetFont(*args, **kwargs) |
e811c8ce RD |
1615 | |
1616 | def SetAlignment(*args, **kwargs): | |
a95a7133 | 1617 | """SetAlignment(self, int alignment)""" |
54f9ee45 | 1618 | return _controls_.TextAttr_SetAlignment(*args, **kwargs) |
e811c8ce RD |
1619 | |
1620 | def SetTabs(*args, **kwargs): | |
a95a7133 | 1621 | """SetTabs(self, wxArrayInt tabs)""" |
54f9ee45 | 1622 | return _controls_.TextAttr_SetTabs(*args, **kwargs) |
e811c8ce RD |
1623 | |
1624 | def SetLeftIndent(*args, **kwargs): | |
5e4ca4a8 | 1625 | """SetLeftIndent(self, int indent, int subIndent=0)""" |
54f9ee45 | 1626 | return _controls_.TextAttr_SetLeftIndent(*args, **kwargs) |
e811c8ce RD |
1627 | |
1628 | def SetRightIndent(*args, **kwargs): | |
a95a7133 | 1629 | """SetRightIndent(self, int indent)""" |
54f9ee45 | 1630 | return _controls_.TextAttr_SetRightIndent(*args, **kwargs) |
e811c8ce RD |
1631 | |
1632 | def SetFlags(*args, **kwargs): | |
a95a7133 | 1633 | """SetFlags(self, long flags)""" |
54f9ee45 | 1634 | return _controls_.TextAttr_SetFlags(*args, **kwargs) |
e811c8ce RD |
1635 | |
1636 | def HasTextColour(*args, **kwargs): | |
a95a7133 | 1637 | """HasTextColour(self) -> bool""" |
54f9ee45 | 1638 | return _controls_.TextAttr_HasTextColour(*args, **kwargs) |
e811c8ce RD |
1639 | |
1640 | def HasBackgroundColour(*args, **kwargs): | |
a95a7133 | 1641 | """HasBackgroundColour(self) -> bool""" |
54f9ee45 | 1642 | return _controls_.TextAttr_HasBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1643 | |
1644 | def HasFont(*args, **kwargs): | |
a95a7133 | 1645 | """HasFont(self) -> bool""" |
54f9ee45 | 1646 | return _controls_.TextAttr_HasFont(*args, **kwargs) |
e811c8ce RD |
1647 | |
1648 | def HasAlignment(*args, **kwargs): | |
a95a7133 | 1649 | """HasAlignment(self) -> bool""" |
54f9ee45 | 1650 | return _controls_.TextAttr_HasAlignment(*args, **kwargs) |
e811c8ce RD |
1651 | |
1652 | def HasTabs(*args, **kwargs): | |
a95a7133 | 1653 | """HasTabs(self) -> bool""" |
54f9ee45 | 1654 | return _controls_.TextAttr_HasTabs(*args, **kwargs) |
e811c8ce RD |
1655 | |
1656 | def HasLeftIndent(*args, **kwargs): | |
a95a7133 | 1657 | """HasLeftIndent(self) -> bool""" |
54f9ee45 | 1658 | return _controls_.TextAttr_HasLeftIndent(*args, **kwargs) |
e811c8ce RD |
1659 | |
1660 | def HasRightIndent(*args, **kwargs): | |
a95a7133 | 1661 | """HasRightIndent(self) -> bool""" |
54f9ee45 | 1662 | return _controls_.TextAttr_HasRightIndent(*args, **kwargs) |
e811c8ce RD |
1663 | |
1664 | def HasFlag(*args, **kwargs): | |
a95a7133 | 1665 | """HasFlag(self, long flag) -> bool""" |
54f9ee45 | 1666 | return _controls_.TextAttr_HasFlag(*args, **kwargs) |
e811c8ce RD |
1667 | |
1668 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 1669 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 1670 | return _controls_.TextAttr_GetTextColour(*args, **kwargs) |
e811c8ce RD |
1671 | |
1672 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 1673 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 1674 | return _controls_.TextAttr_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
1675 | |
1676 | def GetFont(*args, **kwargs): | |
a95a7133 | 1677 | """GetFont(self) -> Font""" |
54f9ee45 | 1678 | return _controls_.TextAttr_GetFont(*args, **kwargs) |
e811c8ce RD |
1679 | |
1680 | def GetAlignment(*args, **kwargs): | |
a95a7133 | 1681 | """GetAlignment(self) -> int""" |
54f9ee45 | 1682 | return _controls_.TextAttr_GetAlignment(*args, **kwargs) |
e811c8ce RD |
1683 | |
1684 | def GetTabs(*args, **kwargs): | |
a95a7133 | 1685 | """GetTabs(self) -> wxArrayInt""" |
54f9ee45 | 1686 | return _controls_.TextAttr_GetTabs(*args, **kwargs) |
e811c8ce RD |
1687 | |
1688 | def GetLeftIndent(*args, **kwargs): | |
a95a7133 | 1689 | """GetLeftIndent(self) -> long""" |
54f9ee45 | 1690 | return _controls_.TextAttr_GetLeftIndent(*args, **kwargs) |
5e4ca4a8 RD |
1691 | |
1692 | def GetLeftSubIndent(*args, **kwargs): | |
1693 | """GetLeftSubIndent(self) -> long""" | |
1694 | return _controls_.TextAttr_GetLeftSubIndent(*args, **kwargs) | |
e811c8ce RD |
1695 | |
1696 | def GetRightIndent(*args, **kwargs): | |
a95a7133 | 1697 | """GetRightIndent(self) -> long""" |
54f9ee45 | 1698 | return _controls_.TextAttr_GetRightIndent(*args, **kwargs) |
e811c8ce RD |
1699 | |
1700 | def GetFlags(*args, **kwargs): | |
a95a7133 | 1701 | """GetFlags(self) -> long""" |
54f9ee45 | 1702 | return _controls_.TextAttr_GetFlags(*args, **kwargs) |
e811c8ce RD |
1703 | |
1704 | def IsDefault(*args, **kwargs): | |
a95a7133 | 1705 | """IsDefault(self) -> bool""" |
54f9ee45 | 1706 | return _controls_.TextAttr_IsDefault(*args, **kwargs) |
e811c8ce RD |
1707 | |
1708 | def Combine(*args, **kwargs): | |
66c033b4 | 1709 | """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" |
54f9ee45 | 1710 | return _controls_.TextAttr_Combine(*args, **kwargs) |
e811c8ce RD |
1711 | |
1712 | Combine = staticmethod(Combine) | |
994453b8 RD |
1713 | Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") |
1714 | BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") | |
1715 | Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") | |
1716 | Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") | |
1717 | LeftIndent = property(GetLeftIndent,SetLeftIndent,doc="See `GetLeftIndent` and `SetLeftIndent`") | |
1718 | LeftSubIndent = property(GetLeftSubIndent,doc="See `GetLeftSubIndent`") | |
1719 | RightIndent = property(GetRightIndent,SetRightIndent,doc="See `GetRightIndent` and `SetRightIndent`") | |
1720 | Tabs = property(GetTabs,SetTabs,doc="See `GetTabs` and `SetTabs`") | |
1721 | TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") | |
2131d850 | 1722 | _controls_.TextAttr_swigregister(TextAttr) |
b2dc1044 | 1723 | TextCtrlNameStr = cvar.TextCtrlNameStr |
d14a1e28 | 1724 | |
01f6b6d3 RD |
1725 | def TextAttr_Merge(*args, **kwargs): |
1726 | """TextAttr_Merge(TextAttr base, TextAttr overlay) -> TextAttr""" | |
1727 | return _controls_.TextAttr_Merge(*args, **kwargs) | |
1728 | ||
e811c8ce | 1729 | def TextAttr_Combine(*args, **kwargs): |
0085ce49 RD |
1730 | """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" |
1731 | return _controls_.TextAttr_Combine(*args, **kwargs) | |
d14a1e28 | 1732 | |
54f9ee45 | 1733 | class TextCtrl(_core.Control): |
093d3ff1 | 1734 | """Proxy of C++ TextCtrl class""" |
0085ce49 RD |
1735 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1736 | __repr__ = _swig_repr | |
1737 | def __init__(self, *args, **kwargs): | |
0df68c9f | 1738 | """ |
248ed943 RD |
1739 | __init__(self, Window parent, int id=-1, String value=EmptyString, |
1740 | Point pos=DefaultPosition, Size size=DefaultSize, | |
0df68c9f | 1741 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1742 | String name=TextCtrlNameStr) -> TextCtrl |
0df68c9f | 1743 | """ |
0085ce49 | 1744 | _controls_.TextCtrl_swiginit(self,_controls_.new_TextCtrl(*args, **kwargs)) |
0220cbc1 | 1745 | self._setOORInfo(self) |
e811c8ce RD |
1746 | |
1747 | def Create(*args, **kwargs): | |
0df68c9f | 1748 | """ |
248ed943 RD |
1749 | Create(self, Window parent, int id=-1, String value=EmptyString, |
1750 | Point pos=DefaultPosition, Size size=DefaultSize, | |
0df68c9f | 1751 | long style=0, Validator validator=DefaultValidator, |
b2dc1044 | 1752 | String name=TextCtrlNameStr) -> bool |
0df68c9f | 1753 | """ |
54f9ee45 | 1754 | return _controls_.TextCtrl_Create(*args, **kwargs) |
e811c8ce RD |
1755 | |
1756 | def GetValue(*args, **kwargs): | |
a95a7133 | 1757 | """GetValue(self) -> String""" |
54f9ee45 | 1758 | return _controls_.TextCtrl_GetValue(*args, **kwargs) |
e811c8ce RD |
1759 | |
1760 | def SetValue(*args, **kwargs): | |
a95a7133 | 1761 | """SetValue(self, String value)""" |
54f9ee45 | 1762 | return _controls_.TextCtrl_SetValue(*args, **kwargs) |
e811c8ce | 1763 | |
b39fe951 RD |
1764 | def IsEmpty(*args, **kwargs): |
1765 | """IsEmpty(self) -> bool""" | |
1766 | return _controls_.TextCtrl_IsEmpty(*args, **kwargs) | |
1767 | ||
1768 | def ChangeValue(*args, **kwargs): | |
1769 | """ChangeValue(self, String value)""" | |
1770 | return _controls_.TextCtrl_ChangeValue(*args, **kwargs) | |
1771 | ||
e811c8ce | 1772 | def GetRange(*args, **kwargs): |
a95a7133 | 1773 | """GetRange(self, long from, long to) -> String""" |
54f9ee45 | 1774 | return _controls_.TextCtrl_GetRange(*args, **kwargs) |
e811c8ce RD |
1775 | |
1776 | def GetLineLength(*args, **kwargs): | |
a95a7133 | 1777 | """GetLineLength(self, long lineNo) -> int""" |
54f9ee45 | 1778 | return _controls_.TextCtrl_GetLineLength(*args, **kwargs) |
e811c8ce RD |
1779 | |
1780 | def GetLineText(*args, **kwargs): | |
a95a7133 | 1781 | """GetLineText(self, long lineNo) -> String""" |
54f9ee45 | 1782 | return _controls_.TextCtrl_GetLineText(*args, **kwargs) |
e811c8ce RD |
1783 | |
1784 | def GetNumberOfLines(*args, **kwargs): | |
a95a7133 | 1785 | """GetNumberOfLines(self) -> int""" |
54f9ee45 | 1786 | return _controls_.TextCtrl_GetNumberOfLines(*args, **kwargs) |
e811c8ce RD |
1787 | |
1788 | def IsModified(*args, **kwargs): | |
a95a7133 | 1789 | """IsModified(self) -> bool""" |
54f9ee45 | 1790 | return _controls_.TextCtrl_IsModified(*args, **kwargs) |
e811c8ce RD |
1791 | |
1792 | def IsEditable(*args, **kwargs): | |
a95a7133 | 1793 | """IsEditable(self) -> bool""" |
54f9ee45 | 1794 | return _controls_.TextCtrl_IsEditable(*args, **kwargs) |
e811c8ce RD |
1795 | |
1796 | def IsSingleLine(*args, **kwargs): | |
a95a7133 | 1797 | """IsSingleLine(self) -> bool""" |
54f9ee45 | 1798 | return _controls_.TextCtrl_IsSingleLine(*args, **kwargs) |
e811c8ce RD |
1799 | |
1800 | def IsMultiLine(*args, **kwargs): | |
a95a7133 | 1801 | """IsMultiLine(self) -> bool""" |
54f9ee45 | 1802 | return _controls_.TextCtrl_IsMultiLine(*args, **kwargs) |
e811c8ce RD |
1803 | |
1804 | def GetSelection(*args, **kwargs): | |
fd2dc343 RD |
1805 | """ |
1806 | GetSelection() -> (from, to) | |
1807 | ||
1808 | If the return values from and to are the same, there is no selection. | |
1809 | """ | |
54f9ee45 | 1810 | return _controls_.TextCtrl_GetSelection(*args, **kwargs) |
e811c8ce RD |
1811 | |
1812 | def GetStringSelection(*args, **kwargs): | |
a95a7133 | 1813 | """GetStringSelection(self) -> String""" |
54f9ee45 | 1814 | return _controls_.TextCtrl_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
1815 | |
1816 | def Clear(*args, **kwargs): | |
a95a7133 | 1817 | """Clear(self)""" |
54f9ee45 | 1818 | return _controls_.TextCtrl_Clear(*args, **kwargs) |
e811c8ce RD |
1819 | |
1820 | def Replace(*args, **kwargs): | |
a95a7133 | 1821 | """Replace(self, long from, long to, String value)""" |
54f9ee45 | 1822 | return _controls_.TextCtrl_Replace(*args, **kwargs) |
e811c8ce RD |
1823 | |
1824 | def Remove(*args, **kwargs): | |
a95a7133 | 1825 | """Remove(self, long from, long to)""" |
54f9ee45 | 1826 | return _controls_.TextCtrl_Remove(*args, **kwargs) |
e811c8ce RD |
1827 | |
1828 | def LoadFile(*args, **kwargs): | |
f5263701 | 1829 | """LoadFile(self, String file, int fileType=TEXT_TYPE_ANY) -> bool""" |
54f9ee45 | 1830 | return _controls_.TextCtrl_LoadFile(*args, **kwargs) |
e811c8ce RD |
1831 | |
1832 | def SaveFile(*args, **kwargs): | |
f5263701 | 1833 | """SaveFile(self, String file=EmptyString, int fileType=TEXT_TYPE_ANY) -> bool""" |
54f9ee45 | 1834 | return _controls_.TextCtrl_SaveFile(*args, **kwargs) |
e811c8ce RD |
1835 | |
1836 | def MarkDirty(*args, **kwargs): | |
a95a7133 | 1837 | """MarkDirty(self)""" |
54f9ee45 | 1838 | return _controls_.TextCtrl_MarkDirty(*args, **kwargs) |
e811c8ce RD |
1839 | |
1840 | def DiscardEdits(*args, **kwargs): | |
a95a7133 | 1841 | """DiscardEdits(self)""" |
54f9ee45 | 1842 | return _controls_.TextCtrl_DiscardEdits(*args, **kwargs) |
e811c8ce | 1843 | |
b02396e8 RD |
1844 | def SetModified(*args, **kwargs): |
1845 | """SetModified(self, bool modified)""" | |
1846 | return _controls_.TextCtrl_SetModified(*args, **kwargs) | |
1847 | ||
e811c8ce | 1848 | def SetMaxLength(*args, **kwargs): |
a95a7133 | 1849 | """SetMaxLength(self, unsigned long len)""" |
54f9ee45 | 1850 | return _controls_.TextCtrl_SetMaxLength(*args, **kwargs) |
e811c8ce RD |
1851 | |
1852 | def WriteText(*args, **kwargs): | |
a95a7133 | 1853 | """WriteText(self, String text)""" |
54f9ee45 | 1854 | return _controls_.TextCtrl_WriteText(*args, **kwargs) |
e811c8ce RD |
1855 | |
1856 | def AppendText(*args, **kwargs): | |
a95a7133 | 1857 | """AppendText(self, String text)""" |
54f9ee45 | 1858 | return _controls_.TextCtrl_AppendText(*args, **kwargs) |
e811c8ce RD |
1859 | |
1860 | def EmulateKeyPress(*args, **kwargs): | |
a95a7133 | 1861 | """EmulateKeyPress(self, KeyEvent event) -> bool""" |
54f9ee45 | 1862 | return _controls_.TextCtrl_EmulateKeyPress(*args, **kwargs) |
e811c8ce RD |
1863 | |
1864 | def SetStyle(*args, **kwargs): | |
a95a7133 | 1865 | """SetStyle(self, long start, long end, TextAttr style) -> bool""" |
54f9ee45 | 1866 | return _controls_.TextCtrl_SetStyle(*args, **kwargs) |
e811c8ce RD |
1867 | |
1868 | def GetStyle(*args, **kwargs): | |
a95a7133 | 1869 | """GetStyle(self, long position, TextAttr style) -> bool""" |
54f9ee45 | 1870 | return _controls_.TextCtrl_GetStyle(*args, **kwargs) |
e811c8ce RD |
1871 | |
1872 | def SetDefaultStyle(*args, **kwargs): | |
a95a7133 | 1873 | """SetDefaultStyle(self, TextAttr style) -> bool""" |
54f9ee45 | 1874 | return _controls_.TextCtrl_SetDefaultStyle(*args, **kwargs) |
e811c8ce RD |
1875 | |
1876 | def GetDefaultStyle(*args, **kwargs): | |
a95a7133 | 1877 | """GetDefaultStyle(self) -> TextAttr""" |
54f9ee45 | 1878 | return _controls_.TextCtrl_GetDefaultStyle(*args, **kwargs) |
e811c8ce RD |
1879 | |
1880 | def XYToPosition(*args, **kwargs): | |
a95a7133 | 1881 | """XYToPosition(self, long x, long y) -> long""" |
54f9ee45 | 1882 | return _controls_.TextCtrl_XYToPosition(*args, **kwargs) |
e811c8ce RD |
1883 | |
1884 | def PositionToXY(*args, **kwargs): | |
322913ce | 1885 | """PositionToXY(long pos) -> (x, y)""" |
54f9ee45 | 1886 | return _controls_.TextCtrl_PositionToXY(*args, **kwargs) |
e811c8ce RD |
1887 | |
1888 | def ShowPosition(*args, **kwargs): | |
a95a7133 | 1889 | """ShowPosition(self, long pos)""" |
54f9ee45 | 1890 | return _controls_.TextCtrl_ShowPosition(*args, **kwargs) |
e811c8ce | 1891 | |
4d5c3d91 | 1892 | def HitTest(*args, **kwargs): |
fd2dc343 | 1893 | """ |
51b83b37 | 1894 | HitTest(Point pt) -> (result, col, row) |
fd2dc343 | 1895 | |
4896ac9e RD |
1896 | Find the row, col coresponding to the character at the point given in |
1897 | pixels. NB: pt is in device coords but is not adjusted for the client | |
1898 | area origin nor scrolling. | |
fd2dc343 | 1899 | """ |
54f9ee45 | 1900 | return _controls_.TextCtrl_HitTest(*args, **kwargs) |
4d5c3d91 | 1901 | |
4896ac9e RD |
1902 | def HitTestPos(*args, **kwargs): |
1903 | """ | |
1904 | HitTestPos(Point pt) -> (result, position) | |
1905 | ||
1906 | Find the character position in the text coresponding to the point | |
1907 | given in pixels. NB: pt is in device coords but is not adjusted for | |
1908 | the client area origin nor scrolling. | |
1909 | """ | |
1910 | return _controls_.TextCtrl_HitTestPos(*args, **kwargs) | |
1911 | ||
e811c8ce | 1912 | def Copy(*args, **kwargs): |
a95a7133 | 1913 | """Copy(self)""" |
54f9ee45 | 1914 | return _controls_.TextCtrl_Copy(*args, **kwargs) |
e811c8ce RD |
1915 | |
1916 | def Cut(*args, **kwargs): | |
a95a7133 | 1917 | """Cut(self)""" |
54f9ee45 | 1918 | return _controls_.TextCtrl_Cut(*args, **kwargs) |
e811c8ce RD |
1919 | |
1920 | def Paste(*args, **kwargs): | |
a95a7133 | 1921 | """Paste(self)""" |
54f9ee45 | 1922 | return _controls_.TextCtrl_Paste(*args, **kwargs) |
e811c8ce RD |
1923 | |
1924 | def CanCopy(*args, **kwargs): | |
a95a7133 | 1925 | """CanCopy(self) -> bool""" |
54f9ee45 | 1926 | return _controls_.TextCtrl_CanCopy(*args, **kwargs) |
e811c8ce RD |
1927 | |
1928 | def CanCut(*args, **kwargs): | |
a95a7133 | 1929 | """CanCut(self) -> bool""" |
54f9ee45 | 1930 | return _controls_.TextCtrl_CanCut(*args, **kwargs) |
e811c8ce RD |
1931 | |
1932 | def CanPaste(*args, **kwargs): | |
a95a7133 | 1933 | """CanPaste(self) -> bool""" |
54f9ee45 | 1934 | return _controls_.TextCtrl_CanPaste(*args, **kwargs) |
e811c8ce RD |
1935 | |
1936 | def Undo(*args, **kwargs): | |
a95a7133 | 1937 | """Undo(self)""" |
54f9ee45 | 1938 | return _controls_.TextCtrl_Undo(*args, **kwargs) |
e811c8ce RD |
1939 | |
1940 | def Redo(*args, **kwargs): | |
a95a7133 | 1941 | """Redo(self)""" |
54f9ee45 | 1942 | return _controls_.TextCtrl_Redo(*args, **kwargs) |
e811c8ce RD |
1943 | |
1944 | def CanUndo(*args, **kwargs): | |
a95a7133 | 1945 | """CanUndo(self) -> bool""" |
54f9ee45 | 1946 | return _controls_.TextCtrl_CanUndo(*args, **kwargs) |
e811c8ce RD |
1947 | |
1948 | def CanRedo(*args, **kwargs): | |
a95a7133 | 1949 | """CanRedo(self) -> bool""" |
54f9ee45 | 1950 | return _controls_.TextCtrl_CanRedo(*args, **kwargs) |
e811c8ce RD |
1951 | |
1952 | def SetInsertionPoint(*args, **kwargs): | |
a95a7133 | 1953 | """SetInsertionPoint(self, long pos)""" |
54f9ee45 | 1954 | return _controls_.TextCtrl_SetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
1955 | |
1956 | def SetInsertionPointEnd(*args, **kwargs): | |
a95a7133 | 1957 | """SetInsertionPointEnd(self)""" |
54f9ee45 | 1958 | return _controls_.TextCtrl_SetInsertionPointEnd(*args, **kwargs) |
e811c8ce RD |
1959 | |
1960 | def GetInsertionPoint(*args, **kwargs): | |
a95a7133 | 1961 | """GetInsertionPoint(self) -> long""" |
54f9ee45 | 1962 | return _controls_.TextCtrl_GetInsertionPoint(*args, **kwargs) |
e811c8ce RD |
1963 | |
1964 | def GetLastPosition(*args, **kwargs): | |
a95a7133 | 1965 | """GetLastPosition(self) -> long""" |
54f9ee45 | 1966 | return _controls_.TextCtrl_GetLastPosition(*args, **kwargs) |
e811c8ce RD |
1967 | |
1968 | def SetSelection(*args, **kwargs): | |
a95a7133 | 1969 | """SetSelection(self, long from, long to)""" |
54f9ee45 | 1970 | return _controls_.TextCtrl_SetSelection(*args, **kwargs) |
e811c8ce RD |
1971 | |
1972 | def SelectAll(*args, **kwargs): | |
a95a7133 | 1973 | """SelectAll(self)""" |
54f9ee45 | 1974 | return _controls_.TextCtrl_SelectAll(*args, **kwargs) |
e811c8ce RD |
1975 | |
1976 | def SetEditable(*args, **kwargs): | |
a95a7133 | 1977 | """SetEditable(self, bool editable)""" |
54f9ee45 | 1978 | return _controls_.TextCtrl_SetEditable(*args, **kwargs) |
e811c8ce | 1979 | |
d7645bfd VZ |
1980 | def MacCheckSpelling(*args, **kwargs): |
1981 | """MacCheckSpelling(self, bool check)""" | |
1982 | return _controls_.TextCtrl_MacCheckSpelling(*args, **kwargs) | |
1983 | ||
b39fe951 RD |
1984 | def SendTextUpdatedEvent(*args, **kwargs): |
1985 | """SendTextUpdatedEvent(self)""" | |
1986 | return _controls_.TextCtrl_SendTextUpdatedEvent(*args, **kwargs) | |
1987 | ||
e811c8ce | 1988 | def write(*args, **kwargs): |
a95a7133 | 1989 | """write(self, String text)""" |
54f9ee45 | 1990 | return _controls_.TextCtrl_write(*args, **kwargs) |
e811c8ce RD |
1991 | |
1992 | def GetString(*args, **kwargs): | |
a95a7133 | 1993 | """GetString(self, long from, long to) -> String""" |
54f9ee45 | 1994 | return _controls_.TextCtrl_GetString(*args, **kwargs) |
e811c8ce | 1995 | |
22bfe96c | 1996 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
1997 | """ |
1998 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1999 | ||
2000 | Get the default attributes for this class. This is useful if you want | |
2001 | to use the same font or colour in your own control as in a standard | |
2002 | control -- which is a much better idea than hard coding specific | |
2003 | colours or fonts which might look completely out of place on the | |
2004 | user's system, especially if it uses themes. | |
2005 | ||
2006 | The variant parameter is only relevant under Mac currently and is | |
2007 | ignore under other platforms. Under Mac, it will change the size of | |
2008 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2009 | this. | |
2010 | """ | |
22bfe96c RD |
2011 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
2012 | ||
2013 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
994453b8 RD |
2014 | DefaultStyle = property(GetDefaultStyle,SetDefaultStyle,doc="See `GetDefaultStyle` and `SetDefaultStyle`") |
2015 | InsertionPoint = property(GetInsertionPoint,SetInsertionPoint,doc="See `GetInsertionPoint` and `SetInsertionPoint`") | |
2016 | LastPosition = property(GetLastPosition,doc="See `GetLastPosition`") | |
2017 | NumberOfLines = property(GetNumberOfLines,doc="See `GetNumberOfLines`") | |
2018 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
2019 | StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") | |
2020 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 2021 | _controls_.TextCtrl_swigregister(TextCtrl) |
d24a34bb | 2022 | |
d14a1e28 | 2023 | def PreTextCtrl(*args, **kwargs): |
e811c8ce | 2024 | """PreTextCtrl() -> TextCtrl""" |
54f9ee45 | 2025 | val = _controls_.new_PreTextCtrl(*args, **kwargs) |
aa2a5b86 RD |
2026 | return val |
2027 | ||
22bfe96c | 2028 | def TextCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2029 | """ |
110da5b0 RD |
2030 | TextCtrl_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 | """ | |
0085ce49 | 2043 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2044 | |
54f9ee45 RD |
2045 | wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED |
2046 | wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER | |
2047 | wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL | |
2048 | wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN | |
2049 | class TextUrlEvent(_core.CommandEvent): | |
093d3ff1 | 2050 | """Proxy of C++ TextUrlEvent class""" |
0085ce49 RD |
2051 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2052 | __repr__ = _swig_repr | |
2053 | def __init__(self, *args, **kwargs): | |
a95a7133 | 2054 | """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" |
0085ce49 | 2055 | _controls_.TextUrlEvent_swiginit(self,_controls_.new_TextUrlEvent(*args, **kwargs)) |
e811c8ce | 2056 | def GetMouseEvent(*args, **kwargs): |
a95a7133 | 2057 | """GetMouseEvent(self) -> MouseEvent""" |
54f9ee45 | 2058 | return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs) |
e811c8ce RD |
2059 | |
2060 | def GetURLStart(*args, **kwargs): | |
a95a7133 | 2061 | """GetURLStart(self) -> long""" |
54f9ee45 | 2062 | return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs) |
e811c8ce RD |
2063 | |
2064 | def GetURLEnd(*args, **kwargs): | |
a95a7133 | 2065 | """GetURLEnd(self) -> long""" |
54f9ee45 | 2066 | return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs) |
e811c8ce | 2067 | |
994453b8 RD |
2068 | MouseEvent = property(GetMouseEvent,doc="See `GetMouseEvent`") |
2069 | URLEnd = property(GetURLEnd,doc="See `GetURLEnd`") | |
2070 | URLStart = property(GetURLStart,doc="See `GetURLStart`") | |
2131d850 | 2071 | _controls_.TextUrlEvent_swigregister(TextUrlEvent) |
d14a1e28 RD |
2072 | |
2073 | EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) | |
2074 | EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) | |
2075 | EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) | |
2076 | EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) | |
2077 | ||
2078 | #--------------------------------------------------------------------------- | |
2079 | ||
54f9ee45 | 2080 | class ScrollBar(_core.Control): |
093d3ff1 | 2081 | """Proxy of C++ ScrollBar class""" |
0085ce49 RD |
2082 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2083 | __repr__ = _swig_repr | |
2084 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2085 | """ |
a95a7133 | 2086 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2087 | Size size=DefaultSize, long style=SB_HORIZONTAL, |
b2dc1044 | 2088 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar |
0df68c9f | 2089 | """ |
0085ce49 | 2090 | _controls_.ScrollBar_swiginit(self,_controls_.new_ScrollBar(*args, **kwargs)) |
0220cbc1 | 2091 | self._setOORInfo(self) |
e811c8ce RD |
2092 | |
2093 | def Create(*args, **kwargs): | |
0df68c9f | 2094 | """ |
a95a7133 | 2095 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2096 | Size size=DefaultSize, long style=SB_HORIZONTAL, |
b2dc1044 | 2097 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool |
15afbcd0 RD |
2098 | |
2099 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 2100 | """ |
54f9ee45 | 2101 | return _controls_.ScrollBar_Create(*args, **kwargs) |
e811c8ce RD |
2102 | |
2103 | def GetThumbPosition(*args, **kwargs): | |
a95a7133 | 2104 | """GetThumbPosition(self) -> int""" |
54f9ee45 | 2105 | return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs) |
e811c8ce RD |
2106 | |
2107 | def GetThumbSize(*args, **kwargs): | |
a95a7133 | 2108 | """GetThumbSize(self) -> int""" |
54f9ee45 | 2109 | return _controls_.ScrollBar_GetThumbSize(*args, **kwargs) |
e811c8ce | 2110 | |
d14a1e28 | 2111 | GetThumbLength = GetThumbSize |
e811c8ce | 2112 | def GetPageSize(*args, **kwargs): |
a95a7133 | 2113 | """GetPageSize(self) -> int""" |
54f9ee45 | 2114 | return _controls_.ScrollBar_GetPageSize(*args, **kwargs) |
e811c8ce RD |
2115 | |
2116 | def GetRange(*args, **kwargs): | |
a95a7133 | 2117 | """GetRange(self) -> int""" |
54f9ee45 | 2118 | return _controls_.ScrollBar_GetRange(*args, **kwargs) |
e811c8ce RD |
2119 | |
2120 | def IsVertical(*args, **kwargs): | |
a95a7133 | 2121 | """IsVertical(self) -> bool""" |
54f9ee45 | 2122 | return _controls_.ScrollBar_IsVertical(*args, **kwargs) |
e811c8ce RD |
2123 | |
2124 | def SetThumbPosition(*args, **kwargs): | |
a95a7133 | 2125 | """SetThumbPosition(self, int viewStart)""" |
54f9ee45 | 2126 | return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs) |
e811c8ce | 2127 | |
22bfe96c | 2128 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2129 | """ |
2130 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2131 | ||
2132 | Get the default attributes for this class. This is useful if you want | |
2133 | to use the same font or colour in your own control as in a standard | |
2134 | control -- which is a much better idea than hard coding specific | |
2135 | colours or fonts which might look completely out of place on the | |
2136 | user's system, especially if it uses themes. | |
2137 | ||
2138 | The variant parameter is only relevant under Mac currently and is | |
2139 | ignore under other platforms. Under Mac, it will change the size of | |
2140 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2141 | this. | |
2142 | """ | |
22bfe96c RD |
2143 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
2144 | ||
2145 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
33d6fd3b RD |
2146 | PageSize = property(GetPageSize,doc="See `GetPageSize`") |
2147 | Range = property(GetRange,doc="See `GetRange`") | |
2148 | ThumbPosition = property(GetThumbPosition,SetThumbPosition,doc="See `GetThumbPosition` and `SetThumbPosition`") | |
2149 | ThumbSize = property(GetThumbSize,doc="See `GetThumbSize`") | |
2131d850 | 2150 | _controls_.ScrollBar_swigregister(ScrollBar) |
b2dc1044 | 2151 | ScrollBarNameStr = cvar.ScrollBarNameStr |
70551f47 | 2152 | |
d14a1e28 | 2153 | def PreScrollBar(*args, **kwargs): |
e811c8ce | 2154 | """PreScrollBar() -> ScrollBar""" |
54f9ee45 | 2155 | val = _controls_.new_PreScrollBar(*args, **kwargs) |
aa2a5b86 RD |
2156 | return val |
2157 | ||
22bfe96c | 2158 | def ScrollBar_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2159 | """ |
110da5b0 RD |
2160 | ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2161 | ||
2162 | Get the default attributes for this class. This is useful if you want | |
2163 | to use the same font or colour in your own control as in a standard | |
2164 | control -- which is a much better idea than hard coding specific | |
2165 | colours or fonts which might look completely out of place on the | |
2166 | user's system, especially if it uses themes. | |
2167 | ||
2168 | The variant parameter is only relevant under Mac currently and is | |
2169 | ignore under other platforms. Under Mac, it will change the size of | |
2170 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2171 | this. | |
2172 | """ | |
0085ce49 | 2173 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2174 | |
d14a1e28 | 2175 | #--------------------------------------------------------------------------- |
70551f47 | 2176 | |
54f9ee45 RD |
2177 | SP_HORIZONTAL = _controls_.SP_HORIZONTAL |
2178 | SP_VERTICAL = _controls_.SP_VERTICAL | |
2179 | SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS | |
2180 | SP_WRAP = _controls_.SP_WRAP | |
2181 | class SpinButton(_core.Control): | |
093d3ff1 | 2182 | """Proxy of C++ SpinButton class""" |
0085ce49 RD |
2183 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2184 | __repr__ = _swig_repr | |
2185 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2186 | """ |
a95a7133 | 2187 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2188 | Size size=DefaultSize, long style=SP_HORIZONTAL, |
b2dc1044 | 2189 | String name=SPIN_BUTTON_NAME) -> SpinButton |
0df68c9f | 2190 | """ |
0085ce49 | 2191 | _controls_.SpinButton_swiginit(self,_controls_.new_SpinButton(*args, **kwargs)) |
0220cbc1 | 2192 | self._setOORInfo(self) |
70551f47 | 2193 | |
e811c8ce | 2194 | def Create(*args, **kwargs): |
0df68c9f | 2195 | """ |
a95a7133 | 2196 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 2197 | Size size=DefaultSize, long style=SP_HORIZONTAL, |
b2dc1044 | 2198 | String name=SPIN_BUTTON_NAME) -> bool |
0df68c9f | 2199 | """ |
54f9ee45 | 2200 | return _controls_.SpinButton_Create(*args, **kwargs) |
e811c8ce RD |
2201 | |
2202 | def GetValue(*args, **kwargs): | |
a95a7133 | 2203 | """GetValue(self) -> int""" |
54f9ee45 | 2204 | return _controls_.SpinButton_GetValue(*args, **kwargs) |
e811c8ce RD |
2205 | |
2206 | def GetMin(*args, **kwargs): | |
a95a7133 | 2207 | """GetMin(self) -> int""" |
54f9ee45 | 2208 | return _controls_.SpinButton_GetMin(*args, **kwargs) |
e811c8ce RD |
2209 | |
2210 | def GetMax(*args, **kwargs): | |
a95a7133 | 2211 | """GetMax(self) -> int""" |
54f9ee45 | 2212 | return _controls_.SpinButton_GetMax(*args, **kwargs) |
e811c8ce RD |
2213 | |
2214 | def SetValue(*args, **kwargs): | |
a95a7133 | 2215 | """SetValue(self, int val)""" |
54f9ee45 | 2216 | return _controls_.SpinButton_SetValue(*args, **kwargs) |
e811c8ce RD |
2217 | |
2218 | def SetMin(*args, **kwargs): | |
a95a7133 | 2219 | """SetMin(self, int minVal)""" |
54f9ee45 | 2220 | return _controls_.SpinButton_SetMin(*args, **kwargs) |
e811c8ce RD |
2221 | |
2222 | def SetMax(*args, **kwargs): | |
a95a7133 | 2223 | """SetMax(self, int maxVal)""" |
54f9ee45 | 2224 | return _controls_.SpinButton_SetMax(*args, **kwargs) |
e811c8ce RD |
2225 | |
2226 | def SetRange(*args, **kwargs): | |
a95a7133 | 2227 | """SetRange(self, int minVal, int maxVal)""" |
54f9ee45 | 2228 | return _controls_.SpinButton_SetRange(*args, **kwargs) |
e811c8ce | 2229 | |
22bfe96c RD |
2230 | def IsVertical(*args, **kwargs): |
2231 | """IsVertical(self) -> bool""" | |
2232 | return _controls_.SpinButton_IsVertical(*args, **kwargs) | |
2233 | ||
2234 | def GetClassDefaultAttributes(*args, **kwargs): | |
110da5b0 RD |
2235 | """ |
2236 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2237 | ||
2238 | Get the default attributes for this class. This is useful if you want | |
2239 | to use the same font or colour in your own control as in a standard | |
2240 | control -- which is a much better idea than hard coding specific | |
2241 | colours or fonts which might look completely out of place on the | |
2242 | user's system, especially if it uses themes. | |
2243 | ||
2244 | The variant parameter is only relevant under Mac currently and is | |
2245 | ignore under other platforms. Under Mac, it will change the size of | |
2246 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2247 | this. | |
2248 | """ | |
22bfe96c | 2249 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
e811c8ce | 2250 | |
22bfe96c | 2251 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) |
33d6fd3b RD |
2252 | Max = property(GetMax,SetMax,doc="See `GetMax` and `SetMax`") |
2253 | Min = property(GetMin,SetMin,doc="See `GetMin` and `SetMin`") | |
2254 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 2255 | _controls_.SpinButton_swigregister(SpinButton) |
b2dc1044 RD |
2256 | SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME |
2257 | SpinCtrlNameStr = cvar.SpinCtrlNameStr | |
70551f47 | 2258 | |
d14a1e28 | 2259 | def PreSpinButton(*args, **kwargs): |
e811c8ce | 2260 | """PreSpinButton() -> SpinButton""" |
54f9ee45 | 2261 | val = _controls_.new_PreSpinButton(*args, **kwargs) |
aa2a5b86 RD |
2262 | return val |
2263 | ||
22bfe96c | 2264 | def SpinButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2265 | """ |
110da5b0 RD |
2266 | SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2267 | ||
2268 | Get the default attributes for this class. This is useful if you want | |
2269 | to use the same font or colour in your own control as in a standard | |
2270 | control -- which is a much better idea than hard coding specific | |
2271 | colours or fonts which might look completely out of place on the | |
2272 | user's system, especially if it uses themes. | |
2273 | ||
2274 | The variant parameter is only relevant under Mac currently and is | |
2275 | ignore under other platforms. Under Mac, it will change the size of | |
2276 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2277 | this. | |
2278 | """ | |
0085ce49 | 2279 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2280 | |
54f9ee45 | 2281 | class SpinCtrl(_core.Control): |
093d3ff1 | 2282 | """Proxy of C++ SpinCtrl class""" |
0085ce49 RD |
2283 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2284 | __repr__ = _swig_repr | |
2285 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2286 | """ |
a95a7133 | 2287 | __init__(self, Window parent, int id=-1, String value=EmptyString, |
0df68c9f | 2288 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 2289 | long style=SP_ARROW_KEYS, int min=0, int max=100, |
b2dc1044 | 2290 | int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl |
0df68c9f | 2291 | """ |
0085ce49 | 2292 | _controls_.SpinCtrl_swiginit(self,_controls_.new_SpinCtrl(*args, **kwargs)) |
d14a1e28 | 2293 | self._setOORInfo(self) |
e811c8ce RD |
2294 | |
2295 | def Create(*args, **kwargs): | |
0df68c9f | 2296 | """ |
a95a7133 | 2297 | Create(self, Window parent, int id=-1, String value=EmptyString, |
0df68c9f | 2298 | Point pos=DefaultPosition, Size size=DefaultSize, |
196addbf | 2299 | long style=SP_ARROW_KEYS, int min=0, int max=100, |
b2dc1044 | 2300 | int initial=0, String name=SpinCtrlNameStr) -> bool |
0df68c9f | 2301 | """ |
54f9ee45 | 2302 | return _controls_.SpinCtrl_Create(*args, **kwargs) |
e811c8ce RD |
2303 | |
2304 | def GetValue(*args, **kwargs): | |
a95a7133 | 2305 | """GetValue(self) -> int""" |
54f9ee45 | 2306 | return _controls_.SpinCtrl_GetValue(*args, **kwargs) |
e811c8ce RD |
2307 | |
2308 | def SetValue(*args, **kwargs): | |
a95a7133 | 2309 | """SetValue(self, int value)""" |
54f9ee45 | 2310 | return _controls_.SpinCtrl_SetValue(*args, **kwargs) |
e811c8ce RD |
2311 | |
2312 | def SetValueString(*args, **kwargs): | |
a95a7133 | 2313 | """SetValueString(self, String text)""" |
54f9ee45 | 2314 | return _controls_.SpinCtrl_SetValueString(*args, **kwargs) |
e811c8ce RD |
2315 | |
2316 | def SetRange(*args, **kwargs): | |
a95a7133 | 2317 | """SetRange(self, int minVal, int maxVal)""" |
54f9ee45 | 2318 | return _controls_.SpinCtrl_SetRange(*args, **kwargs) |
e811c8ce RD |
2319 | |
2320 | def GetMin(*args, **kwargs): | |
a95a7133 | 2321 | """GetMin(self) -> int""" |
54f9ee45 | 2322 | return _controls_.SpinCtrl_GetMin(*args, **kwargs) |
e811c8ce RD |
2323 | |
2324 | def GetMax(*args, **kwargs): | |
a95a7133 | 2325 | """GetMax(self) -> int""" |
54f9ee45 | 2326 | return _controls_.SpinCtrl_GetMax(*args, **kwargs) |
e811c8ce RD |
2327 | |
2328 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2329 | """SetSelection(self, long from, long to)""" |
54f9ee45 | 2330 | return _controls_.SpinCtrl_SetSelection(*args, **kwargs) |
e811c8ce | 2331 | |
22bfe96c | 2332 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2333 | """ |
2334 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2335 | ||
2336 | Get the default attributes for this class. This is useful if you want | |
2337 | to use the same font or colour in your own control as in a standard | |
2338 | control -- which is a much better idea than hard coding specific | |
2339 | colours or fonts which might look completely out of place on the | |
2340 | user's system, especially if it uses themes. | |
2341 | ||
2342 | The variant parameter is only relevant under Mac currently and is | |
2343 | ignore under other platforms. Under Mac, it will change the size of | |
2344 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2345 | this. | |
2346 | """ | |
22bfe96c RD |
2347 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
2348 | ||
2349 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
33d6fd3b RD |
2350 | Max = property(GetMax,doc="See `GetMax`") |
2351 | Min = property(GetMin,doc="See `GetMin`") | |
2352 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 2353 | _controls_.SpinCtrl_swigregister(SpinCtrl) |
d14a1e28 RD |
2354 | |
2355 | def PreSpinCtrl(*args, **kwargs): | |
e811c8ce | 2356 | """PreSpinCtrl() -> SpinCtrl""" |
54f9ee45 | 2357 | val = _controls_.new_PreSpinCtrl(*args, **kwargs) |
d14a1e28 RD |
2358 | return val |
2359 | ||
22bfe96c | 2360 | def SpinCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2361 | """ |
110da5b0 RD |
2362 | SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2363 | ||
2364 | Get the default attributes for this class. This is useful if you want | |
2365 | to use the same font or colour in your own control as in a standard | |
2366 | control -- which is a much better idea than hard coding specific | |
2367 | colours or fonts which might look completely out of place on the | |
2368 | user's system, especially if it uses themes. | |
2369 | ||
2370 | The variant parameter is only relevant under Mac currently and is | |
2371 | ignore under other platforms. Under Mac, it will change the size of | |
2372 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2373 | this. | |
2374 | """ | |
0085ce49 | 2375 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2376 | |
54f9ee45 | 2377 | class SpinEvent(_core.NotifyEvent): |
093d3ff1 | 2378 | """Proxy of C++ SpinEvent class""" |
0085ce49 RD |
2379 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2380 | __repr__ = _swig_repr | |
2381 | def __init__(self, *args, **kwargs): | |
2131d850 | 2382 | """__init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" |
0085ce49 | 2383 | _controls_.SpinEvent_swiginit(self,_controls_.new_SpinEvent(*args, **kwargs)) |
d1e20054 | 2384 | def GetPosition(*args, **kwargs): |
a95a7133 | 2385 | """GetPosition(self) -> int""" |
54f9ee45 | 2386 | return _controls_.SpinEvent_GetPosition(*args, **kwargs) |
d1e20054 RD |
2387 | |
2388 | def SetPosition(*args, **kwargs): | |
a95a7133 | 2389 | """SetPosition(self, int pos)""" |
54f9ee45 | 2390 | return _controls_.SpinEvent_SetPosition(*args, **kwargs) |
d1e20054 | 2391 | |
33d6fd3b | 2392 | Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`") |
2131d850 | 2393 | _controls_.SpinEvent_swigregister(SpinEvent) |
d1e20054 | 2394 | |
54f9ee45 | 2395 | wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED |
d1e20054 RD |
2396 | EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) |
2397 | EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) | |
2398 | EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) | |
2399 | EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) | |
d14a1e28 RD |
2400 | |
2401 | #--------------------------------------------------------------------------- | |
2402 | ||
54f9ee45 | 2403 | class RadioBox(_core.Control): |
093d3ff1 | 2404 | """Proxy of C++ RadioBox class""" |
0085ce49 RD |
2405 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2406 | __repr__ = _swig_repr | |
2407 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2408 | """ |
248ed943 RD |
2409 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2410 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2411 | wxArrayString choices=wxPyEmptyStringArray, | |
2412 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2413 | Validator validator=DefaultValidator, | |
b2dc1044 | 2414 | String name=RadioBoxNameStr) -> RadioBox |
0df68c9f | 2415 | """ |
69223c70 | 2416 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] |
0085ce49 | 2417 | _controls_.RadioBox_swiginit(self,_controls_.new_RadioBox(*args, **kwargs)) |
0220cbc1 | 2418 | self._setOORInfo(self) |
e811c8ce RD |
2419 | |
2420 | def Create(*args, **kwargs): | |
0df68c9f | 2421 | """ |
248ed943 RD |
2422 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2423 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2424 | wxArrayString choices=wxPyEmptyStringArray, | |
2425 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2426 | Validator validator=DefaultValidator, | |
b2dc1044 | 2427 | String name=RadioBoxNameStr) -> bool |
0df68c9f | 2428 | """ |
54f9ee45 | 2429 | return _controls_.RadioBox_Create(*args, **kwargs) |
e811c8ce RD |
2430 | |
2431 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2432 | """SetSelection(self, int n)""" |
54f9ee45 | 2433 | return _controls_.RadioBox_SetSelection(*args, **kwargs) |
e811c8ce RD |
2434 | |
2435 | def GetSelection(*args, **kwargs): | |
a95a7133 | 2436 | """GetSelection(self) -> int""" |
54f9ee45 | 2437 | return _controls_.RadioBox_GetSelection(*args, **kwargs) |
e811c8ce RD |
2438 | |
2439 | def GetStringSelection(*args, **kwargs): | |
a95a7133 | 2440 | """GetStringSelection(self) -> String""" |
54f9ee45 | 2441 | return _controls_.RadioBox_GetStringSelection(*args, **kwargs) |
e811c8ce RD |
2442 | |
2443 | def SetStringSelection(*args, **kwargs): | |
a95a7133 | 2444 | """SetStringSelection(self, String s) -> bool""" |
54f9ee45 | 2445 | return _controls_.RadioBox_SetStringSelection(*args, **kwargs) |
e811c8ce RD |
2446 | |
2447 | def GetCount(*args, **kwargs): | |
75219dcb | 2448 | """GetCount(self) -> size_t""" |
54f9ee45 | 2449 | return _controls_.RadioBox_GetCount(*args, **kwargs) |
e811c8ce RD |
2450 | |
2451 | def FindString(*args, **kwargs): | |
a95a7133 | 2452 | """FindString(self, String s) -> int""" |
54f9ee45 | 2453 | return _controls_.RadioBox_FindString(*args, **kwargs) |
e811c8ce RD |
2454 | |
2455 | def GetString(*args, **kwargs): | |
a95a7133 | 2456 | """GetString(self, int n) -> String""" |
54f9ee45 | 2457 | return _controls_.RadioBox_GetString(*args, **kwargs) |
e811c8ce RD |
2458 | |
2459 | def SetString(*args, **kwargs): | |
a95a7133 | 2460 | """SetString(self, int n, String label)""" |
54f9ee45 | 2461 | return _controls_.RadioBox_SetString(*args, **kwargs) |
e811c8ce | 2462 | |
d14a1e28 RD |
2463 | GetItemLabel = GetString |
2464 | SetItemLabel = SetString | |
e811c8ce | 2465 | def EnableItem(*args, **kwargs): |
50f151d7 | 2466 | """EnableItem(self, unsigned int n, bool enable=True)""" |
54f9ee45 | 2467 | return _controls_.RadioBox_EnableItem(*args, **kwargs) |
e811c8ce RD |
2468 | |
2469 | def ShowItem(*args, **kwargs): | |
50f151d7 | 2470 | """ShowItem(self, unsigned int n, bool show=True)""" |
54f9ee45 | 2471 | return _controls_.RadioBox_ShowItem(*args, **kwargs) |
e811c8ce | 2472 | |
50f151d7 RD |
2473 | def IsItemEnabled(*args, **kwargs): |
2474 | """IsItemEnabled(self, unsigned int n) -> bool""" | |
2475 | return _controls_.RadioBox_IsItemEnabled(*args, **kwargs) | |
2476 | ||
2477 | def IsItemShown(*args, **kwargs): | |
2478 | """IsItemShown(self, unsigned int n) -> bool""" | |
2479 | return _controls_.RadioBox_IsItemShown(*args, **kwargs) | |
2480 | ||
e811c8ce | 2481 | def GetColumnCount(*args, **kwargs): |
50f151d7 | 2482 | """GetColumnCount(self) -> unsigned int""" |
54f9ee45 | 2483 | return _controls_.RadioBox_GetColumnCount(*args, **kwargs) |
e811c8ce RD |
2484 | |
2485 | def GetRowCount(*args, **kwargs): | |
50f151d7 | 2486 | """GetRowCount(self) -> unsigned int""" |
54f9ee45 | 2487 | return _controls_.RadioBox_GetRowCount(*args, **kwargs) |
e811c8ce RD |
2488 | |
2489 | def GetNextItem(*args, **kwargs): | |
a95a7133 | 2490 | """GetNextItem(self, int item, int dir, long style) -> int""" |
54f9ee45 | 2491 | return _controls_.RadioBox_GetNextItem(*args, **kwargs) |
e811c8ce | 2492 | |
01f6b6d3 RD |
2493 | def SetItemToolTip(*args, **kwargs): |
2494 | """SetItemToolTip(self, unsigned int item, String text)""" | |
2495 | return _controls_.RadioBox_SetItemToolTip(*args, **kwargs) | |
2496 | ||
2497 | def GetItemToolTip(*args, **kwargs): | |
2498 | """GetItemToolTip(self, unsigned int item) -> ToolTip""" | |
2499 | return _controls_.RadioBox_GetItemToolTip(*args, **kwargs) | |
2500 | ||
b850e7f3 RD |
2501 | def SetItemHelpText(*args, **kwargs): |
2502 | """SetItemHelpText(self, unsigned int n, String helpText)""" | |
2503 | return _controls_.RadioBox_SetItemHelpText(*args, **kwargs) | |
2504 | ||
2505 | def GetItemHelpText(*args, **kwargs): | |
2506 | """GetItemHelpText(self, unsigned int n) -> String""" | |
2507 | return _controls_.RadioBox_GetItemHelpText(*args, **kwargs) | |
2508 | ||
22bfe96c | 2509 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2510 | """ |
2511 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2512 | ||
2513 | Get the default attributes for this class. This is useful if you want | |
2514 | to use the same font or colour in your own control as in a standard | |
2515 | control -- which is a much better idea than hard coding specific | |
2516 | colours or fonts which might look completely out of place on the | |
2517 | user's system, especially if it uses themes. | |
2518 | ||
2519 | The variant parameter is only relevant under Mac currently and is | |
2520 | ignore under other platforms. Under Mac, it will change the size of | |
2521 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2522 | this. | |
2523 | """ | |
22bfe96c RD |
2524 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
2525 | ||
2526 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
33d6fd3b RD |
2527 | ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`") |
2528 | Count = property(GetCount,doc="See `GetCount`") | |
2529 | RowCount = property(GetRowCount,doc="See `GetRowCount`") | |
2530 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
2531 | StringSelection = property(GetStringSelection,SetStringSelection,doc="See `GetStringSelection` and `SetStringSelection`") | |
2131d850 | 2532 | _controls_.RadioBox_swigregister(RadioBox) |
b2dc1044 RD |
2533 | RadioBoxNameStr = cvar.RadioBoxNameStr |
2534 | RadioButtonNameStr = cvar.RadioButtonNameStr | |
c95e68d8 | 2535 | |
d14a1e28 | 2536 | def PreRadioBox(*args, **kwargs): |
e811c8ce | 2537 | """PreRadioBox() -> RadioBox""" |
54f9ee45 | 2538 | val = _controls_.new_PreRadioBox(*args, **kwargs) |
aa2a5b86 RD |
2539 | return val |
2540 | ||
22bfe96c | 2541 | def RadioBox_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2542 | """ |
110da5b0 RD |
2543 | RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2544 | ||
2545 | Get the default attributes for this class. This is useful if you want | |
2546 | to use the same font or colour in your own control as in a standard | |
2547 | control -- which is a much better idea than hard coding specific | |
2548 | colours or fonts which might look completely out of place on the | |
2549 | user's system, especially if it uses themes. | |
2550 | ||
2551 | The variant parameter is only relevant under Mac currently and is | |
2552 | ignore under other platforms. Under Mac, it will change the size of | |
2553 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2554 | this. | |
2555 | """ | |
0085ce49 | 2556 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2557 | |
d14a1e28 | 2558 | #--------------------------------------------------------------------------- |
c95e68d8 | 2559 | |
54f9ee45 | 2560 | class RadioButton(_core.Control): |
093d3ff1 | 2561 | """Proxy of C++ RadioButton class""" |
0085ce49 RD |
2562 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2563 | __repr__ = _swig_repr | |
2564 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2565 | """ |
248ed943 RD |
2566 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2567 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2568 | long style=0, Validator validator=DefaultValidator, | |
2569 | String name=RadioButtonNameStr) -> RadioButton | |
0df68c9f | 2570 | """ |
0085ce49 | 2571 | _controls_.RadioButton_swiginit(self,_controls_.new_RadioButton(*args, **kwargs)) |
d14a1e28 | 2572 | self._setOORInfo(self) |
e811c8ce RD |
2573 | |
2574 | def Create(*args, **kwargs): | |
0df68c9f | 2575 | """ |
248ed943 RD |
2576 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2577 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2578 | long style=0, Validator validator=DefaultValidator, | |
2579 | String name=RadioButtonNameStr) -> bool | |
0df68c9f | 2580 | """ |
54f9ee45 | 2581 | return _controls_.RadioButton_Create(*args, **kwargs) |
e811c8ce RD |
2582 | |
2583 | def GetValue(*args, **kwargs): | |
a95a7133 | 2584 | """GetValue(self) -> bool""" |
54f9ee45 | 2585 | return _controls_.RadioButton_GetValue(*args, **kwargs) |
e811c8ce RD |
2586 | |
2587 | def SetValue(*args, **kwargs): | |
a95a7133 | 2588 | """SetValue(self, bool value)""" |
54f9ee45 | 2589 | return _controls_.RadioButton_SetValue(*args, **kwargs) |
e811c8ce | 2590 | |
22bfe96c | 2591 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2592 | """ |
2593 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2594 | ||
2595 | Get the default attributes for this class. This is useful if you want | |
2596 | to use the same font or colour in your own control as in a standard | |
2597 | control -- which is a much better idea than hard coding specific | |
2598 | colours or fonts which might look completely out of place on the | |
2599 | user's system, especially if it uses themes. | |
2600 | ||
2601 | The variant parameter is only relevant under Mac currently and is | |
2602 | ignore under other platforms. Under Mac, it will change the size of | |
2603 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2604 | this. | |
2605 | """ | |
22bfe96c RD |
2606 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
2607 | ||
2608 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
33d6fd3b | 2609 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") |
2131d850 | 2610 | _controls_.RadioButton_swigregister(RadioButton) |
9d6da64a | 2611 | |
d14a1e28 | 2612 | def PreRadioButton(*args, **kwargs): |
e811c8ce | 2613 | """PreRadioButton() -> RadioButton""" |
54f9ee45 | 2614 | val = _controls_.new_PreRadioButton(*args, **kwargs) |
d14a1e28 | 2615 | return val |
9d6da64a | 2616 | |
22bfe96c | 2617 | def RadioButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2618 | """ |
110da5b0 RD |
2619 | RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2620 | ||
2621 | Get the default attributes for this class. This is useful if you want | |
2622 | to use the same font or colour in your own control as in a standard | |
2623 | control -- which is a much better idea than hard coding specific | |
2624 | colours or fonts which might look completely out of place on the | |
2625 | user's system, especially if it uses themes. | |
2626 | ||
2627 | The variant parameter is only relevant under Mac currently and is | |
2628 | ignore under other platforms. Under Mac, it will change the size of | |
2629 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2630 | this. | |
2631 | """ | |
0085ce49 | 2632 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2633 | |
d14a1e28 | 2634 | #--------------------------------------------------------------------------- |
9d6da64a | 2635 | |
7557b9b5 RD |
2636 | SL_HORIZONTAL = _controls_.SL_HORIZONTAL |
2637 | SL_VERTICAL = _controls_.SL_VERTICAL | |
70b7a5fe | 2638 | SL_TICKS = _controls_.SL_TICKS |
7557b9b5 RD |
2639 | SL_AUTOTICKS = _controls_.SL_AUTOTICKS |
2640 | SL_LABELS = _controls_.SL_LABELS | |
2641 | SL_LEFT = _controls_.SL_LEFT | |
2642 | SL_TOP = _controls_.SL_TOP | |
2643 | SL_RIGHT = _controls_.SL_RIGHT | |
2644 | SL_BOTTOM = _controls_.SL_BOTTOM | |
2645 | SL_BOTH = _controls_.SL_BOTH | |
2646 | SL_SELRANGE = _controls_.SL_SELRANGE | |
2647 | SL_INVERSE = _controls_.SL_INVERSE | |
54f9ee45 | 2648 | class Slider(_core.Control): |
093d3ff1 | 2649 | """Proxy of C++ Slider class""" |
0085ce49 RD |
2650 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2651 | __repr__ = _swig_repr | |
2652 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2653 | """ |
248ed943 RD |
2654 | __init__(self, Window parent, int id=-1, int value=0, int minValue=0, |
2655 | int maxValue=100, Point pos=DefaultPosition, | |
2656 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2657 | Validator validator=DefaultValidator, | |
b2dc1044 | 2658 | String name=SliderNameStr) -> Slider |
0df68c9f | 2659 | """ |
69223c70 | 2660 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] |
0085ce49 | 2661 | _controls_.Slider_swiginit(self,_controls_.new_Slider(*args, **kwargs)) |
0220cbc1 | 2662 | self._setOORInfo(self) |
e811c8ce RD |
2663 | |
2664 | def Create(*args, **kwargs): | |
0df68c9f | 2665 | """ |
248ed943 RD |
2666 | Create(self, Window parent, int id=-1, int value=0, int minValue=0, |
2667 | int maxValue=100, Point pos=DefaultPosition, | |
2668 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2669 | Validator validator=DefaultValidator, | |
b2dc1044 | 2670 | String name=SliderNameStr) -> bool |
0df68c9f | 2671 | """ |
54f9ee45 | 2672 | return _controls_.Slider_Create(*args, **kwargs) |
e811c8ce RD |
2673 | |
2674 | def GetValue(*args, **kwargs): | |
a95a7133 | 2675 | """GetValue(self) -> int""" |
54f9ee45 | 2676 | return _controls_.Slider_GetValue(*args, **kwargs) |
e811c8ce RD |
2677 | |
2678 | def SetValue(*args, **kwargs): | |
a95a7133 | 2679 | """SetValue(self, int value)""" |
54f9ee45 | 2680 | return _controls_.Slider_SetValue(*args, **kwargs) |
e811c8ce RD |
2681 | |
2682 | def SetRange(*args, **kwargs): | |
a95a7133 | 2683 | """SetRange(self, int minValue, int maxValue)""" |
54f9ee45 | 2684 | return _controls_.Slider_SetRange(*args, **kwargs) |
e811c8ce RD |
2685 | |
2686 | def GetMin(*args, **kwargs): | |
a95a7133 | 2687 | """GetMin(self) -> int""" |
54f9ee45 | 2688 | return _controls_.Slider_GetMin(*args, **kwargs) |
e811c8ce RD |
2689 | |
2690 | def GetMax(*args, **kwargs): | |
a95a7133 | 2691 | """GetMax(self) -> int""" |
54f9ee45 | 2692 | return _controls_.Slider_GetMax(*args, **kwargs) |
e811c8ce RD |
2693 | |
2694 | def SetMin(*args, **kwargs): | |
a95a7133 | 2695 | """SetMin(self, int minValue)""" |
54f9ee45 | 2696 | return _controls_.Slider_SetMin(*args, **kwargs) |
e811c8ce RD |
2697 | |
2698 | def SetMax(*args, **kwargs): | |
a95a7133 | 2699 | """SetMax(self, int maxValue)""" |
54f9ee45 | 2700 | return _controls_.Slider_SetMax(*args, **kwargs) |
e811c8ce RD |
2701 | |
2702 | def SetLineSize(*args, **kwargs): | |
a95a7133 | 2703 | """SetLineSize(self, int lineSize)""" |
54f9ee45 | 2704 | return _controls_.Slider_SetLineSize(*args, **kwargs) |
e811c8ce RD |
2705 | |
2706 | def SetPageSize(*args, **kwargs): | |
a95a7133 | 2707 | """SetPageSize(self, int pageSize)""" |
54f9ee45 | 2708 | return _controls_.Slider_SetPageSize(*args, **kwargs) |
e811c8ce RD |
2709 | |
2710 | def GetLineSize(*args, **kwargs): | |
a95a7133 | 2711 | """GetLineSize(self) -> int""" |
54f9ee45 | 2712 | return _controls_.Slider_GetLineSize(*args, **kwargs) |
e811c8ce RD |
2713 | |
2714 | def GetPageSize(*args, **kwargs): | |
a95a7133 | 2715 | """GetPageSize(self) -> int""" |
54f9ee45 | 2716 | return _controls_.Slider_GetPageSize(*args, **kwargs) |
e811c8ce RD |
2717 | |
2718 | def SetThumbLength(*args, **kwargs): | |
a95a7133 | 2719 | """SetThumbLength(self, int lenPixels)""" |
54f9ee45 | 2720 | return _controls_.Slider_SetThumbLength(*args, **kwargs) |
e811c8ce RD |
2721 | |
2722 | def GetThumbLength(*args, **kwargs): | |
a95a7133 | 2723 | """GetThumbLength(self) -> int""" |
54f9ee45 | 2724 | return _controls_.Slider_GetThumbLength(*args, **kwargs) |
e811c8ce RD |
2725 | |
2726 | def SetTickFreq(*args, **kwargs): | |
a95a7133 | 2727 | """SetTickFreq(self, int n, int pos=1)""" |
54f9ee45 | 2728 | return _controls_.Slider_SetTickFreq(*args, **kwargs) |
e811c8ce RD |
2729 | |
2730 | def GetTickFreq(*args, **kwargs): | |
a95a7133 | 2731 | """GetTickFreq(self) -> int""" |
54f9ee45 | 2732 | return _controls_.Slider_GetTickFreq(*args, **kwargs) |
e811c8ce RD |
2733 | |
2734 | def ClearTicks(*args, **kwargs): | |
a95a7133 | 2735 | """ClearTicks(self)""" |
54f9ee45 | 2736 | return _controls_.Slider_ClearTicks(*args, **kwargs) |
e811c8ce RD |
2737 | |
2738 | def SetTick(*args, **kwargs): | |
a95a7133 | 2739 | """SetTick(self, int tickPos)""" |
54f9ee45 | 2740 | return _controls_.Slider_SetTick(*args, **kwargs) |
e811c8ce RD |
2741 | |
2742 | def ClearSel(*args, **kwargs): | |
a95a7133 | 2743 | """ClearSel(self)""" |
54f9ee45 | 2744 | return _controls_.Slider_ClearSel(*args, **kwargs) |
e811c8ce RD |
2745 | |
2746 | def GetSelEnd(*args, **kwargs): | |
a95a7133 | 2747 | """GetSelEnd(self) -> int""" |
54f9ee45 | 2748 | return _controls_.Slider_GetSelEnd(*args, **kwargs) |
e811c8ce RD |
2749 | |
2750 | def GetSelStart(*args, **kwargs): | |
a95a7133 | 2751 | """GetSelStart(self) -> int""" |
54f9ee45 | 2752 | return _controls_.Slider_GetSelStart(*args, **kwargs) |
e811c8ce RD |
2753 | |
2754 | def SetSelection(*args, **kwargs): | |
a95a7133 | 2755 | """SetSelection(self, int min, int max)""" |
54f9ee45 | 2756 | return _controls_.Slider_SetSelection(*args, **kwargs) |
e811c8ce | 2757 | |
22bfe96c | 2758 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2759 | """ |
2760 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2761 | ||
2762 | Get the default attributes for this class. This is useful if you want | |
2763 | to use the same font or colour in your own control as in a standard | |
2764 | control -- which is a much better idea than hard coding specific | |
2765 | colours or fonts which might look completely out of place on the | |
2766 | user's system, especially if it uses themes. | |
2767 | ||
2768 | The variant parameter is only relevant under Mac currently and is | |
2769 | ignore under other platforms. Under Mac, it will change the size of | |
2770 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2771 | this. | |
2772 | """ | |
22bfe96c RD |
2773 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
2774 | ||
2775 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
33d6fd3b RD |
2776 | LineSize = property(GetLineSize,SetLineSize,doc="See `GetLineSize` and `SetLineSize`") |
2777 | Max = property(GetMax,SetMax,doc="See `GetMax` and `SetMax`") | |
2778 | Min = property(GetMin,SetMin,doc="See `GetMin` and `SetMin`") | |
2779 | PageSize = property(GetPageSize,SetPageSize,doc="See `GetPageSize` and `SetPageSize`") | |
2780 | SelEnd = property(GetSelEnd,doc="See `GetSelEnd`") | |
2781 | SelStart = property(GetSelStart,doc="See `GetSelStart`") | |
2782 | ThumbLength = property(GetThumbLength,SetThumbLength,doc="See `GetThumbLength` and `SetThumbLength`") | |
2783 | TickFreq = property(GetTickFreq,SetTickFreq,doc="See `GetTickFreq` and `SetTickFreq`") | |
2784 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 2785 | _controls_.Slider_swigregister(Slider) |
b2dc1044 | 2786 | SliderNameStr = cvar.SliderNameStr |
70551f47 | 2787 | |
d14a1e28 | 2788 | def PreSlider(*args, **kwargs): |
e811c8ce | 2789 | """PreSlider() -> Slider""" |
54f9ee45 | 2790 | val = _controls_.new_PreSlider(*args, **kwargs) |
aa2a5b86 RD |
2791 | return val |
2792 | ||
22bfe96c | 2793 | def Slider_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2794 | """ |
110da5b0 RD |
2795 | Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2796 | ||
2797 | Get the default attributes for this class. This is useful if you want | |
2798 | to use the same font or colour in your own control as in a standard | |
2799 | control -- which is a much better idea than hard coding specific | |
2800 | colours or fonts which might look completely out of place on the | |
2801 | user's system, especially if it uses themes. | |
2802 | ||
2803 | The variant parameter is only relevant under Mac currently and is | |
2804 | ignore under other platforms. Under Mac, it will change the size of | |
2805 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2806 | this. | |
2807 | """ | |
0085ce49 | 2808 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2809 | |
d14a1e28 | 2810 | #--------------------------------------------------------------------------- |
70551f47 | 2811 | |
54f9ee45 | 2812 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED |
d14a1e28 RD |
2813 | EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) |
2814 | ||
54f9ee45 | 2815 | class ToggleButton(_core.Control): |
093d3ff1 | 2816 | """Proxy of C++ ToggleButton class""" |
0085ce49 RD |
2817 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2818 | __repr__ = _swig_repr | |
2819 | def __init__(self, *args, **kwargs): | |
0df68c9f | 2820 | """ |
248ed943 RD |
2821 | __init__(self, Window parent, int id=-1, String label=EmptyString, |
2822 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2823 | long style=0, Validator validator=DefaultValidator, | |
2824 | String name=ToggleButtonNameStr) -> ToggleButton | |
0df68c9f | 2825 | """ |
0085ce49 | 2826 | _controls_.ToggleButton_swiginit(self,_controls_.new_ToggleButton(*args, **kwargs)) |
0220cbc1 | 2827 | self._setOORInfo(self) |
e811c8ce RD |
2828 | |
2829 | def Create(*args, **kwargs): | |
0df68c9f | 2830 | """ |
248ed943 RD |
2831 | Create(self, Window parent, int id=-1, String label=EmptyString, |
2832 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2833 | long style=0, Validator validator=DefaultValidator, | |
2834 | String name=ToggleButtonNameStr) -> bool | |
0df68c9f | 2835 | """ |
54f9ee45 | 2836 | return _controls_.ToggleButton_Create(*args, **kwargs) |
e811c8ce RD |
2837 | |
2838 | def SetValue(*args, **kwargs): | |
a95a7133 | 2839 | """SetValue(self, bool value)""" |
54f9ee45 | 2840 | return _controls_.ToggleButton_SetValue(*args, **kwargs) |
e811c8ce RD |
2841 | |
2842 | def GetValue(*args, **kwargs): | |
a95a7133 | 2843 | """GetValue(self) -> bool""" |
54f9ee45 | 2844 | return _controls_.ToggleButton_GetValue(*args, **kwargs) |
e811c8ce | 2845 | |
22bfe96c | 2846 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
2847 | """ |
2848 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2849 | ||
2850 | Get the default attributes for this class. This is useful if you want | |
2851 | to use the same font or colour in your own control as in a standard | |
2852 | control -- which is a much better idea than hard coding specific | |
2853 | colours or fonts which might look completely out of place on the | |
2854 | user's system, especially if it uses themes. | |
2855 | ||
2856 | The variant parameter is only relevant under Mac currently and is | |
2857 | ignore under other platforms. Under Mac, it will change the size of | |
2858 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2859 | this. | |
2860 | """ | |
22bfe96c RD |
2861 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
2862 | ||
2863 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
994453b8 | 2864 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") |
2131d850 | 2865 | _controls_.ToggleButton_swigregister(ToggleButton) |
b2dc1044 | 2866 | ToggleButtonNameStr = cvar.ToggleButtonNameStr |
70551f47 | 2867 | |
d14a1e28 | 2868 | def PreToggleButton(*args, **kwargs): |
e811c8ce | 2869 | """PreToggleButton() -> ToggleButton""" |
54f9ee45 | 2870 | val = _controls_.new_PreToggleButton(*args, **kwargs) |
aa2a5b86 RD |
2871 | return val |
2872 | ||
22bfe96c | 2873 | def ToggleButton_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 2874 | """ |
110da5b0 RD |
2875 | ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
2876 | ||
2877 | Get the default attributes for this class. This is useful if you want | |
2878 | to use the same font or colour in your own control as in a standard | |
2879 | control -- which is a much better idea than hard coding specific | |
2880 | colours or fonts which might look completely out of place on the | |
2881 | user's system, especially if it uses themes. | |
2882 | ||
2883 | The variant parameter is only relevant under Mac currently and is | |
2884 | ignore under other platforms. Under Mac, it will change the size of | |
2885 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2886 | this. | |
2887 | """ | |
0085ce49 | 2888 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 2889 | |
d14a1e28 RD |
2890 | #--------------------------------------------------------------------------- |
2891 | ||
7e08d4ef RD |
2892 | BK_DEFAULT = _controls_.BK_DEFAULT |
2893 | BK_TOP = _controls_.BK_TOP | |
2894 | BK_BOTTOM = _controls_.BK_BOTTOM | |
2895 | BK_LEFT = _controls_.BK_LEFT | |
2896 | BK_RIGHT = _controls_.BK_RIGHT | |
2897 | BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK | |
e9d6f3a4 | 2898 | BK_BUTTONBAR = _controls_.BK_BUTTONBAR |
110fa173 RD |
2899 | BK_HITTEST_NOWHERE = _controls_.BK_HITTEST_NOWHERE |
2900 | BK_HITTEST_ONICON = _controls_.BK_HITTEST_ONICON | |
2901 | BK_HITTEST_ONLABEL = _controls_.BK_HITTEST_ONLABEL | |
2902 | BK_HITTEST_ONITEM = _controls_.BK_HITTEST_ONITEM | |
2903 | BK_HITTEST_ONPAGE = _controls_.BK_HITTEST_ONPAGE | |
8ac8dba0 | 2904 | class BookCtrlBase(_core.Control): |
093d3ff1 | 2905 | """Proxy of C++ BookCtrlBase class""" |
0085ce49 RD |
2906 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2907 | def __init__(self): raise AttributeError, "No constructor defined" | |
2908 | __repr__ = _swig_repr | |
e811c8ce | 2909 | def GetPageCount(*args, **kwargs): |
a95a7133 | 2910 | """GetPageCount(self) -> size_t""" |
8ac8dba0 | 2911 | return _controls_.BookCtrlBase_GetPageCount(*args, **kwargs) |
e811c8ce RD |
2912 | |
2913 | def GetPage(*args, **kwargs): | |
a95a7133 | 2914 | """GetPage(self, size_t n) -> Window""" |
8ac8dba0 | 2915 | return _controls_.BookCtrlBase_GetPage(*args, **kwargs) |
e811c8ce | 2916 | |
8fb0e70a RD |
2917 | def GetCurrentPage(*args, **kwargs): |
2918 | """GetCurrentPage(self) -> Window""" | |
8ac8dba0 | 2919 | return _controls_.BookCtrlBase_GetCurrentPage(*args, **kwargs) |
8fb0e70a | 2920 | |
e811c8ce | 2921 | def GetSelection(*args, **kwargs): |
a95a7133 | 2922 | """GetSelection(self) -> int""" |
8ac8dba0 | 2923 | return _controls_.BookCtrlBase_GetSelection(*args, **kwargs) |
e811c8ce RD |
2924 | |
2925 | def SetPageText(*args, **kwargs): | |
a95a7133 | 2926 | """SetPageText(self, size_t n, String strText) -> bool""" |
8ac8dba0 | 2927 | return _controls_.BookCtrlBase_SetPageText(*args, **kwargs) |
e811c8ce RD |
2928 | |
2929 | def GetPageText(*args, **kwargs): | |
a95a7133 | 2930 | """GetPageText(self, size_t n) -> String""" |
8ac8dba0 | 2931 | return _controls_.BookCtrlBase_GetPageText(*args, **kwargs) |
e811c8ce RD |
2932 | |
2933 | def SetImageList(*args, **kwargs): | |
a95a7133 | 2934 | """SetImageList(self, ImageList imageList)""" |
8ac8dba0 | 2935 | return _controls_.BookCtrlBase_SetImageList(*args, **kwargs) |
e811c8ce RD |
2936 | |
2937 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 2938 | """AssignImageList(self, ImageList imageList)""" |
8ac8dba0 | 2939 | return _controls_.BookCtrlBase_AssignImageList(*args, **kwargs) |
e811c8ce RD |
2940 | |
2941 | def GetImageList(*args, **kwargs): | |
a95a7133 | 2942 | """GetImageList(self) -> ImageList""" |
8ac8dba0 | 2943 | return _controls_.BookCtrlBase_GetImageList(*args, **kwargs) |
e811c8ce RD |
2944 | |
2945 | def GetPageImage(*args, **kwargs): | |
a95a7133 | 2946 | """GetPageImage(self, size_t n) -> int""" |
8ac8dba0 | 2947 | return _controls_.BookCtrlBase_GetPageImage(*args, **kwargs) |
e811c8ce RD |
2948 | |
2949 | def SetPageImage(*args, **kwargs): | |
a95a7133 | 2950 | """SetPageImage(self, size_t n, int imageId) -> bool""" |
8ac8dba0 | 2951 | return _controls_.BookCtrlBase_SetPageImage(*args, **kwargs) |
e811c8ce RD |
2952 | |
2953 | def SetPageSize(*args, **kwargs): | |
a95a7133 | 2954 | """SetPageSize(self, Size size)""" |
8ac8dba0 | 2955 | return _controls_.BookCtrlBase_SetPageSize(*args, **kwargs) |
e811c8ce RD |
2956 | |
2957 | def CalcSizeFromPage(*args, **kwargs): | |
a95a7133 | 2958 | """CalcSizeFromPage(self, Size sizePage) -> Size""" |
8ac8dba0 | 2959 | return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs) |
e811c8ce | 2960 | |
7e08d4ef | 2961 | def GetInternalBorder(*args, **kwargs): |
e9d6f3a4 | 2962 | """GetInternalBorder(self) -> unsigned int""" |
7e08d4ef RD |
2963 | return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs) |
2964 | ||
2965 | def SetInternalBorder(*args, **kwargs): | |
e9d6f3a4 | 2966 | """SetInternalBorder(self, unsigned int internalBorder)""" |
7e08d4ef RD |
2967 | return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs) |
2968 | ||
2969 | def IsVertical(*args, **kwargs): | |
2970 | """IsVertical(self) -> bool""" | |
2971 | return _controls_.BookCtrlBase_IsVertical(*args, **kwargs) | |
2972 | ||
e9d6f3a4 RD |
2973 | def SetControlMargin(*args, **kwargs): |
2974 | """SetControlMargin(self, int margin)""" | |
2975 | return _controls_.BookCtrlBase_SetControlMargin(*args, **kwargs) | |
2976 | ||
2977 | def GetControlMargin(*args, **kwargs): | |
2978 | """GetControlMargin(self) -> int""" | |
2979 | return _controls_.BookCtrlBase_GetControlMargin(*args, **kwargs) | |
2980 | ||
c26d9ab4 RD |
2981 | def SetFitToCurrentPage(*args, **kwargs): |
2982 | """SetFitToCurrentPage(self, bool fit)""" | |
2983 | return _controls_.BookCtrlBase_SetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2984 | |
c26d9ab4 RD |
2985 | def GetFitToCurrentPage(*args, **kwargs): |
2986 | """GetFitToCurrentPage(self) -> bool""" | |
2987 | return _controls_.BookCtrlBase_GetFitToCurrentPage(*args, **kwargs) | |
7e08d4ef | 2988 | |
e9d6f3a4 RD |
2989 | def GetControlSizer(*args, **kwargs): |
2990 | """GetControlSizer(self) -> Sizer""" | |
2991 | return _controls_.BookCtrlBase_GetControlSizer(*args, **kwargs) | |
2992 | ||
e811c8ce | 2993 | def DeletePage(*args, **kwargs): |
a95a7133 | 2994 | """DeletePage(self, size_t n) -> bool""" |
8ac8dba0 | 2995 | return _controls_.BookCtrlBase_DeletePage(*args, **kwargs) |
e811c8ce RD |
2996 | |
2997 | def RemovePage(*args, **kwargs): | |
a95a7133 | 2998 | """RemovePage(self, size_t n) -> bool""" |
8ac8dba0 | 2999 | return _controls_.BookCtrlBase_RemovePage(*args, **kwargs) |
e811c8ce RD |
3000 | |
3001 | def DeleteAllPages(*args, **kwargs): | |
a95a7133 | 3002 | """DeleteAllPages(self) -> bool""" |
8ac8dba0 | 3003 | return _controls_.BookCtrlBase_DeleteAllPages(*args, **kwargs) |
e811c8ce RD |
3004 | |
3005 | def AddPage(*args, **kwargs): | |
a95a7133 | 3006 | """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" |
8ac8dba0 | 3007 | return _controls_.BookCtrlBase_AddPage(*args, **kwargs) |
e811c8ce RD |
3008 | |
3009 | def InsertPage(*args, **kwargs): | |
0df68c9f | 3010 | """ |
a95a7133 | 3011 | InsertPage(self, size_t n, Window page, String text, bool select=False, |
0df68c9f RD |
3012 | int imageId=-1) -> bool |
3013 | """ | |
8ac8dba0 | 3014 | return _controls_.BookCtrlBase_InsertPage(*args, **kwargs) |
e811c8ce RD |
3015 | |
3016 | def SetSelection(*args, **kwargs): | |
a95a7133 | 3017 | """SetSelection(self, size_t n) -> int""" |
8ac8dba0 | 3018 | return _controls_.BookCtrlBase_SetSelection(*args, **kwargs) |
e811c8ce | 3019 | |
b39fe951 RD |
3020 | def ChangeSelection(*args, **kwargs): |
3021 | """ChangeSelection(self, size_t n) -> int""" | |
3022 | return _controls_.BookCtrlBase_ChangeSelection(*args, **kwargs) | |
3023 | ||
e811c8ce | 3024 | def AdvanceSelection(*args, **kwargs): |
a95a7133 | 3025 | """AdvanceSelection(self, bool forward=True)""" |
8ac8dba0 | 3026 | return _controls_.BookCtrlBase_AdvanceSelection(*args, **kwargs) |
e811c8ce | 3027 | |
704eda0c RD |
3028 | def HitTest(*args, **kwargs): |
3029 | """ | |
3030 | HitTest(Point pt) -> (tab, where) | |
3031 | ||
3032 | Returns the page/tab which is hit, and flags indicating where using | |
3033 | wx.NB_HITTEST flags. | |
3034 | """ | |
3035 | return _controls_.BookCtrlBase_HitTest(*args, **kwargs) | |
3036 | ||
22bfe96c | 3037 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
3038 | """ |
3039 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3040 | ||
3041 | Get the default attributes for this class. This is useful if you want | |
3042 | to use the same font or colour in your own control as in a standard | |
3043 | control -- which is a much better idea than hard coding specific | |
3044 | colours or fonts which might look completely out of place on the | |
3045 | user's system, especially if it uses themes. | |
3046 | ||
3047 | The variant parameter is only relevant under Mac currently and is | |
3048 | ignore under other platforms. Under Mac, it will change the size of | |
3049 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3050 | this. | |
3051 | """ | |
8ac8dba0 | 3052 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c RD |
3053 | |
3054 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2bf58437 RD |
3055 | ControlMargin = property(GetControlMargin,SetControlMargin,doc="See `GetControlMargin` and `SetControlMargin`") |
3056 | ControlSizer = property(GetControlSizer,doc="See `GetControlSizer`") | |
3057 | CurrentPage = property(GetCurrentPage,doc="See `GetCurrentPage`") | |
3058 | FitToCurrentPage = property(GetFitToCurrentPage,SetFitToCurrentPage,doc="See `GetFitToCurrentPage` and `SetFitToCurrentPage`") | |
3059 | ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`") | |
3060 | InternalBorder = property(GetInternalBorder,SetInternalBorder,doc="See `GetInternalBorder` and `SetInternalBorder`") | |
3061 | Page = property(GetPage,doc="See `GetPage`") | |
3062 | PageCount = property(GetPageCount,doc="See `GetPageCount`") | |
3063 | PageImage = property(GetPageImage,SetPageImage,doc="See `GetPageImage` and `SetPageImage`") | |
3064 | PageText = property(GetPageText,SetPageText,doc="See `GetPageText` and `SetPageText`") | |
3065 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
2131d850 | 3066 | _controls_.BookCtrlBase_swigregister(BookCtrlBase) |
51b83b37 | 3067 | NotebookNameStr = cvar.NotebookNameStr |
d14a1e28 | 3068 | |
8ac8dba0 | 3069 | def BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 3070 | """ |
8ac8dba0 | 3071 | BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
110da5b0 RD |
3072 | |
3073 | Get the default attributes for this class. This is useful if you want | |
3074 | to use the same font or colour in your own control as in a standard | |
3075 | control -- which is a much better idea than hard coding specific | |
3076 | colours or fonts which might look completely out of place on the | |
3077 | user's system, especially if it uses themes. | |
3078 | ||
3079 | The variant parameter is only relevant under Mac currently and is | |
3080 | ignore under other platforms. Under Mac, it will change the size of | |
3081 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3082 | this. | |
3083 | """ | |
0085ce49 | 3084 | return _controls_.BookCtrlBase_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 3085 | |
8ac8dba0 | 3086 | class BookCtrlBaseEvent(_core.NotifyEvent): |
093d3ff1 | 3087 | """Proxy of C++ BookCtrlBaseEvent class""" |
0085ce49 RD |
3088 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3089 | __repr__ = _swig_repr | |
3090 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3091 | """ |
2131d850 | 3092 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
8ac8dba0 | 3093 | int nOldSel=-1) -> BookCtrlBaseEvent |
0df68c9f | 3094 | """ |
0085ce49 | 3095 | _controls_.BookCtrlBaseEvent_swiginit(self,_controls_.new_BookCtrlBaseEvent(*args, **kwargs)) |
e811c8ce | 3096 | def GetSelection(*args, **kwargs): |
27fb7603 RD |
3097 | """ |
3098 | GetSelection(self) -> int | |
3099 | ||
3100 | Returns item index for a listbox or choice selection event (not valid | |
3101 | for a deselection). | |
3102 | """ | |
8ac8dba0 | 3103 | return _controls_.BookCtrlBaseEvent_GetSelection(*args, **kwargs) |
e811c8ce RD |
3104 | |
3105 | def SetSelection(*args, **kwargs): | |
a95a7133 | 3106 | """SetSelection(self, int nSel)""" |
8ac8dba0 | 3107 | return _controls_.BookCtrlBaseEvent_SetSelection(*args, **kwargs) |
e811c8ce RD |
3108 | |
3109 | def GetOldSelection(*args, **kwargs): | |
a95a7133 | 3110 | """GetOldSelection(self) -> int""" |
8ac8dba0 | 3111 | return _controls_.BookCtrlBaseEvent_GetOldSelection(*args, **kwargs) |
e811c8ce RD |
3112 | |
3113 | def SetOldSelection(*args, **kwargs): | |
a95a7133 | 3114 | """SetOldSelection(self, int nOldSel)""" |
8ac8dba0 | 3115 | return _controls_.BookCtrlBaseEvent_SetOldSelection(*args, **kwargs) |
e811c8ce | 3116 | |
2bf58437 RD |
3117 | OldSelection = property(GetOldSelection,SetOldSelection,doc="See `GetOldSelection` and `SetOldSelection`") |
3118 | Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") | |
2131d850 | 3119 | _controls_.BookCtrlBaseEvent_swigregister(BookCtrlBaseEvent) |
d14a1e28 RD |
3120 | |
3121 | #--------------------------------------------------------------------------- | |
3122 | ||
54f9ee45 RD |
3123 | NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH |
3124 | NB_TOP = _controls_.NB_TOP | |
3125 | NB_LEFT = _controls_.NB_LEFT | |
3126 | NB_RIGHT = _controls_.NB_RIGHT | |
3127 | NB_BOTTOM = _controls_.NB_BOTTOM | |
3128 | NB_MULTILINE = _controls_.NB_MULTILINE | |
8e738329 | 3129 | NB_NOPAGETHEME = _controls_.NB_NOPAGETHEME |
54f9ee45 RD |
3130 | NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE |
3131 | NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON | |
3132 | NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL | |
3133 | NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM | |
b02396e8 | 3134 | NB_HITTEST_ONPAGE = _controls_.NB_HITTEST_ONPAGE |
8ac8dba0 | 3135 | class Notebook(BookCtrlBase): |
093d3ff1 | 3136 | """Proxy of C++ Notebook class""" |
0085ce49 RD |
3137 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3138 | __repr__ = _swig_repr | |
3139 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3140 | """ |
a95a7133 | 3141 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
51b83b37 | 3142 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook |
0df68c9f | 3143 | """ |
0085ce49 | 3144 | _controls_.Notebook_swiginit(self,_controls_.new_Notebook(*args, **kwargs)) |
0220cbc1 | 3145 | self._setOORInfo(self) |
e811c8ce RD |
3146 | |
3147 | def Create(*args, **kwargs): | |
0df68c9f | 3148 | """ |
248ed943 | 3149 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
51b83b37 | 3150 | Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool |
0df68c9f | 3151 | """ |
54f9ee45 | 3152 | return _controls_.Notebook_Create(*args, **kwargs) |
e811c8ce RD |
3153 | |
3154 | def GetRowCount(*args, **kwargs): | |
a95a7133 | 3155 | """GetRowCount(self) -> int""" |
54f9ee45 | 3156 | return _controls_.Notebook_GetRowCount(*args, **kwargs) |
e811c8ce RD |
3157 | |
3158 | def SetPadding(*args, **kwargs): | |
a95a7133 | 3159 | """SetPadding(self, Size padding)""" |
54f9ee45 | 3160 | return _controls_.Notebook_SetPadding(*args, **kwargs) |
e811c8ce RD |
3161 | |
3162 | def SetTabSize(*args, **kwargs): | |
a95a7133 | 3163 | """SetTabSize(self, Size sz)""" |
54f9ee45 | 3164 | return _controls_.Notebook_SetTabSize(*args, **kwargs) |
e811c8ce | 3165 | |
8e738329 RD |
3166 | def GetThemeBackgroundColour(*args, **kwargs): |
3167 | """GetThemeBackgroundColour(self) -> Colour""" | |
3168 | return _controls_.Notebook_GetThemeBackgroundColour(*args, **kwargs) | |
3169 | ||
22bfe96c | 3170 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
3171 | """ |
3172 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3173 | ||
3174 | Get the default attributes for this class. This is useful if you want | |
3175 | to use the same font or colour in your own control as in a standard | |
3176 | control -- which is a much better idea than hard coding specific | |
3177 | colours or fonts which might look completely out of place on the | |
3178 | user's system, especially if it uses themes. | |
3179 | ||
3180 | The variant parameter is only relevant under Mac currently and is | |
3181 | ignore under other platforms. Under Mac, it will change the size of | |
3182 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3183 | this. | |
3184 | """ | |
22bfe96c RD |
3185 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
3186 | ||
3187 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
b39fe951 RD |
3188 | def SendPageChangingEvent(*args, **kwargs): |
3189 | """SendPageChangingEvent(self, int nPage) -> bool""" | |
3190 | return _controls_.Notebook_SendPageChangingEvent(*args, **kwargs) | |
3191 | ||
3192 | def SendPageChangedEvent(*args, **kwargs): | |
3193 | """SendPageChangedEvent(self, int nPageOld, int nPageNew=-1)""" | |
3194 | return _controls_.Notebook_SendPageChangedEvent(*args, **kwargs) | |
3195 | ||
57332a5a RD |
3196 | RowCount = property(GetRowCount,doc="See `GetRowCount`") |
3197 | ThemeBackgroundColour = property(GetThemeBackgroundColour,doc="See `GetThemeBackgroundColour`") | |
2131d850 | 3198 | _controls_.Notebook_swigregister(Notebook) |
62bd0874 | 3199 | |
d14a1e28 | 3200 | def PreNotebook(*args, **kwargs): |
e811c8ce | 3201 | """PreNotebook() -> Notebook""" |
54f9ee45 | 3202 | val = _controls_.new_PreNotebook(*args, **kwargs) |
aa2a5b86 RD |
3203 | return val |
3204 | ||
22bfe96c | 3205 | def Notebook_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 3206 | """ |
110da5b0 RD |
3207 | Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
3208 | ||
3209 | Get the default attributes for this class. This is useful if you want | |
3210 | to use the same font or colour in your own control as in a standard | |
3211 | control -- which is a much better idea than hard coding specific | |
3212 | colours or fonts which might look completely out of place on the | |
3213 | user's system, especially if it uses themes. | |
3214 | ||
3215 | The variant parameter is only relevant under Mac currently and is | |
3216 | ignore under other platforms. Under Mac, it will change the size of | |
3217 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3218 | this. | |
3219 | """ | |
0085ce49 | 3220 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 3221 | |
8ac8dba0 | 3222 | class NotebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3223 | """Proxy of C++ NotebookEvent class""" |
0085ce49 RD |
3224 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3225 | __repr__ = _swig_repr | |
3226 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3227 | """ |
2131d850 | 3228 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
0df68c9f RD |
3229 | int nOldSel=-1) -> NotebookEvent |
3230 | """ | |
0085ce49 | 3231 | _controls_.NotebookEvent_swiginit(self,_controls_.new_NotebookEvent(*args, **kwargs)) |
2131d850 | 3232 | _controls_.NotebookEvent_swigregister(NotebookEvent) |
d14a1e28 | 3233 | |
54f9ee45 RD |
3234 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED |
3235 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
d14a1e28 RD |
3236 | # wxNotebook events |
3237 | EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) | |
3238 | EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) | |
3239 | ||
3240 | #---------------------------------------------------------------------------- | |
3241 | ||
3242 | class NotebookPage(wx.Panel): | |
3243 | """ | |
3244 | There is an old (and apparently unsolvable) bug when placing a | |
7557b9b5 | 3245 | window with a nonstandard background colour in a wx.Notebook on |
70b7a5fe | 3246 | wxGTK1, as the notbooks's background colour would always be used |
d14a1e28 RD |
3247 | when the window is refreshed. The solution is to place a panel in |
3248 | the notbook and the coloured window on the panel, sized to cover | |
3249 | the panel. This simple class does that for you, just put an | |
3250 | instance of this in the notebook and make your regular window a | |
3251 | child of this one and it will handle the resize for you. | |
3252 | """ | |
3253 | def __init__(self, parent, id=-1, | |
3254 | pos=wx.DefaultPosition, size=wx.DefaultSize, | |
3255 | style=wx.TAB_TRAVERSAL, name="panel"): | |
3256 | wx.Panel.__init__(self, parent, id, pos, size, style, name) | |
3257 | self.child = None | |
7557b9b5 | 3258 | self.Bind(wx.EVT_SIZE, self.OnSize) |
2ef75293 | 3259 | |
d14a1e28 RD |
3260 | def OnSize(self, evt): |
3261 | if self.child is None: | |
3262 | children = self.GetChildren() | |
3263 | if len(children): | |
3264 | self.child = children[0] | |
3265 | if self.child: | |
3266 | self.child.SetPosition((0,0)) | |
3267 | self.child.SetSize(self.GetSize()) | |
3268 | ||
3269 | ||
3270 | #--------------------------------------------------------------------------- | |
3271 | ||
54f9ee45 RD |
3272 | LB_DEFAULT = _controls_.LB_DEFAULT |
3273 | LB_TOP = _controls_.LB_TOP | |
3274 | LB_BOTTOM = _controls_.LB_BOTTOM | |
3275 | LB_LEFT = _controls_.LB_LEFT | |
3276 | LB_RIGHT = _controls_.LB_RIGHT | |
3277 | LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK | |
8ac8dba0 | 3278 | class Listbook(BookCtrlBase): |
093d3ff1 | 3279 | """Proxy of C++ Listbook class""" |
0085ce49 RD |
3280 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3281 | __repr__ = _swig_repr | |
3282 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3283 | """ |
a95a7133 | 3284 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
4f89f6a3 | 3285 | Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook |
0df68c9f | 3286 | """ |
0085ce49 | 3287 | _controls_.Listbook_swiginit(self,_controls_.new_Listbook(*args, **kwargs)) |
0220cbc1 | 3288 | self._setOORInfo(self) |
e811c8ce RD |
3289 | |
3290 | def Create(*args, **kwargs): | |
0df68c9f | 3291 | """ |
248ed943 RD |
3292 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3293 | Size size=DefaultSize, long style=0, String name=EmptyString) -> bool | |
0df68c9f | 3294 | """ |
54f9ee45 | 3295 | return _controls_.Listbook_Create(*args, **kwargs) |
e811c8ce | 3296 | |
1fbf26be RD |
3297 | def GetListView(*args, **kwargs): |
3298 | """GetListView(self) -> ListView""" | |
3299 | return _controls_.Listbook_GetListView(*args, **kwargs) | |
3300 | ||
97ab0f6a | 3301 | ListView = property(GetListView,doc="See `GetListView`") |
2131d850 | 3302 | _controls_.Listbook_swigregister(Listbook) |
70551f47 | 3303 | |
d14a1e28 | 3304 | def PreListbook(*args, **kwargs): |
e811c8ce | 3305 | """PreListbook() -> Listbook""" |
54f9ee45 | 3306 | val = _controls_.new_PreListbook(*args, **kwargs) |
aa2a5b86 RD |
3307 | return val |
3308 | ||
8ac8dba0 | 3309 | class ListbookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3310 | """Proxy of C++ ListbookEvent class""" |
0085ce49 RD |
3311 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3312 | __repr__ = _swig_repr | |
3313 | def __init__(self, *args, **kwargs): | |
0df68c9f | 3314 | """ |
2131d850 | 3315 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
0df68c9f RD |
3316 | int nOldSel=-1) -> ListbookEvent |
3317 | """ | |
0085ce49 | 3318 | _controls_.ListbookEvent_swiginit(self,_controls_.new_ListbookEvent(*args, **kwargs)) |
2131d850 | 3319 | _controls_.ListbookEvent_swigregister(ListbookEvent) |
d14a1e28 | 3320 | |
54f9ee45 RD |
3321 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED |
3322 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING | |
d14a1e28 RD |
3323 | EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) |
3324 | EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) | |
3325 | ||
2ef75293 RD |
3326 | CHB_DEFAULT = _controls_.CHB_DEFAULT |
3327 | CHB_TOP = _controls_.CHB_TOP | |
3328 | CHB_BOTTOM = _controls_.CHB_BOTTOM | |
3329 | CHB_LEFT = _controls_.CHB_LEFT | |
3330 | CHB_RIGHT = _controls_.CHB_RIGHT | |
3331 | CHB_ALIGN_MASK = _controls_.CHB_ALIGN_MASK | |
8ac8dba0 | 3332 | class Choicebook(BookCtrlBase): |
093d3ff1 | 3333 | """Proxy of C++ Choicebook class""" |
0085ce49 RD |
3334 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3335 | __repr__ = _swig_repr | |
3336 | def __init__(self, *args, **kwargs): | |
2ef75293 RD |
3337 | """ |
3338 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3339 | long style=0, String name=EmptyString) -> Choicebook | |
3340 | """ | |
0085ce49 | 3341 | _controls_.Choicebook_swiginit(self,_controls_.new_Choicebook(*args, **kwargs)) |
2ef75293 RD |
3342 | self._setOORInfo(self) |
3343 | ||
3344 | def Create(*args, **kwargs): | |
3345 | """ | |
3346 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3347 | long style=0, String name=EmptyString) -> bool | |
3348 | """ | |
3349 | return _controls_.Choicebook_Create(*args, **kwargs) | |
3350 | ||
70b7a5fe RD |
3351 | def GetChoiceCtrl(*args, **kwargs): |
3352 | """GetChoiceCtrl(self) -> Choice""" | |
3353 | return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs) | |
3354 | ||
2bf58437 | 3355 | ChoiceCtrl = property(GetChoiceCtrl,doc="See `GetChoiceCtrl`") |
2131d850 | 3356 | _controls_.Choicebook_swigregister(Choicebook) |
2ef75293 RD |
3357 | |
3358 | def PreChoicebook(*args, **kwargs): | |
3359 | """PreChoicebook() -> Choicebook""" | |
3360 | val = _controls_.new_PreChoicebook(*args, **kwargs) | |
2ef75293 RD |
3361 | return val |
3362 | ||
8ac8dba0 | 3363 | class ChoicebookEvent(BookCtrlBaseEvent): |
093d3ff1 | 3364 | """Proxy of C++ ChoicebookEvent class""" |
0085ce49 RD |
3365 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3366 | __repr__ = _swig_repr | |
3367 | def __init__(self, *args, **kwargs): | |
2ef75293 | 3368 | """ |
2131d850 | 3369 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=-1, |
2ef75293 RD |
3370 | int nOldSel=-1) -> ChoicebookEvent |
3371 | """ | |
0085ce49 | 3372 | _controls_.ChoicebookEvent_swiginit(self,_controls_.new_ChoicebookEvent(*args, **kwargs)) |
2131d850 | 3373 | _controls_.ChoicebookEvent_swigregister(ChoicebookEvent) |
2ef75293 RD |
3374 | |
3375 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED | |
3376 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING | |
3377 | EVT_CHOICEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, 1 ) | |
3378 | EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, 1 ) | |
3379 | ||
d14a1e28 RD |
3380 | #--------------------------------------------------------------------------- |
3381 | ||
7e08d4ef RD |
3382 | class Treebook(BookCtrlBase): |
3383 | """Proxy of C++ Treebook class""" | |
0085ce49 RD |
3384 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3385 | __repr__ = _swig_repr | |
3386 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3387 | """ |
3388 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3389 | long style=BK_DEFAULT, | |
3390 | String name=EmptyString) -> Treebook | |
3391 | """ | |
0085ce49 | 3392 | _controls_.Treebook_swiginit(self,_controls_.new_Treebook(*args, **kwargs)) |
7e08d4ef RD |
3393 | self._setOORInfo(self) |
3394 | ||
3395 | def Create(*args, **kwargs): | |
3396 | """ | |
3397 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3398 | long style=BK_DEFAULT, | |
3399 | String name=EmptyString) -> bool | |
3400 | """ | |
3401 | return _controls_.Treebook_Create(*args, **kwargs) | |
3402 | ||
7e08d4ef RD |
3403 | def InsertSubPage(*args, **kwargs): |
3404 | """ | |
3405 | InsertSubPage(self, size_t pos, Window page, String text, bool select=False, | |
3406 | int imageId=NOT_FOUND) -> bool | |
3407 | """ | |
3408 | return _controls_.Treebook_InsertSubPage(*args, **kwargs) | |
3409 | ||
7e08d4ef RD |
3410 | def AddSubPage(*args, **kwargs): |
3411 | """AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool""" | |
3412 | return _controls_.Treebook_AddSubPage(*args, **kwargs) | |
3413 | ||
7e08d4ef RD |
3414 | def IsNodeExpanded(*args, **kwargs): |
3415 | """IsNodeExpanded(self, size_t pos) -> bool""" | |
3416 | return _controls_.Treebook_IsNodeExpanded(*args, **kwargs) | |
3417 | ||
3418 | def ExpandNode(*args, **kwargs): | |
3419 | """ExpandNode(self, size_t pos, bool expand=True) -> bool""" | |
3420 | return _controls_.Treebook_ExpandNode(*args, **kwargs) | |
3421 | ||
3422 | def CollapseNode(*args, **kwargs): | |
3423 | """CollapseNode(self, size_t pos) -> bool""" | |
3424 | return _controls_.Treebook_CollapseNode(*args, **kwargs) | |
3425 | ||
3426 | def GetPageParent(*args, **kwargs): | |
3427 | """GetPageParent(self, size_t pos) -> int""" | |
3428 | return _controls_.Treebook_GetPageParent(*args, **kwargs) | |
3429 | ||
3430 | def GetTreeCtrl(*args, **kwargs): | |
10044bf1 | 3431 | """GetTreeCtrl(self) -> TreeCtrl""" |
7e08d4ef RD |
3432 | return _controls_.Treebook_GetTreeCtrl(*args, **kwargs) |
3433 | ||
994453b8 | 3434 | TreeCtrl = property(GetTreeCtrl,doc="See `GetTreeCtrl`") |
2131d850 | 3435 | _controls_.Treebook_swigregister(Treebook) |
7e08d4ef RD |
3436 | |
3437 | def PreTreebook(*args, **kwargs): | |
3438 | """PreTreebook() -> Treebook""" | |
3439 | val = _controls_.new_PreTreebook(*args, **kwargs) | |
7e08d4ef RD |
3440 | return val |
3441 | ||
3442 | class TreebookEvent(BookCtrlBaseEvent): | |
3443 | """Proxy of C++ TreebookEvent class""" | |
0085ce49 RD |
3444 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3445 | __repr__ = _swig_repr | |
3446 | def __init__(self, *args, **kwargs): | |
7e08d4ef | 3447 | """ |
2131d850 | 3448 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, |
7e08d4ef RD |
3449 | int nOldSel=NOT_FOUND) -> TreebookEvent |
3450 | """ | |
0085ce49 | 3451 | _controls_.TreebookEvent_swiginit(self,_controls_.new_TreebookEvent(*args, **kwargs)) |
2131d850 | 3452 | _controls_.TreebookEvent_swigregister(TreebookEvent) |
7e08d4ef RD |
3453 | |
3454 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED | |
3455 | wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING | |
3456 | wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED | |
3457 | wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED | |
3458 | EVT_TREEBOOK_PAGE_CHANGED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, 1 ) | |
3459 | EVT_TREEBOOK_PAGE_CHANGING= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING, 1) | |
3460 | EVT_TREEBOOK_NODE_COLLAPSED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED, 1 ) | |
3461 | EVT_TREEBOOK_NODE_EXPANDED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED, 1 ) | |
3462 | ||
3463 | #--------------------------------------------------------------------------- | |
3464 | ||
3465 | class Toolbook(BookCtrlBase): | |
3466 | """Proxy of C++ Toolbook class""" | |
0085ce49 RD |
3467 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3468 | __repr__ = _swig_repr | |
3469 | def __init__(self, *args, **kwargs): | |
7e08d4ef RD |
3470 | """ |
3471 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3472 | long style=BK_DEFAULT, | |
3473 | String name=EmptyString) -> Toolbook | |
3474 | """ | |
0085ce49 | 3475 | _controls_.Toolbook_swiginit(self,_controls_.new_Toolbook(*args, **kwargs)) |
7e08d4ef RD |
3476 | self._setOORInfo(self) |
3477 | ||
3478 | def Create(*args, **kwargs): | |
3479 | """ | |
3480 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3481 | long style=0, String name=wxEmptyString) -> bool | |
3482 | """ | |
3483 | return _controls_.Toolbook_Create(*args, **kwargs) | |
3484 | ||
3485 | def GetToolBar(*args, **kwargs): | |
3486 | """GetToolBar(self) -> ToolBarBase""" | |
3487 | return _controls_.Toolbook_GetToolBar(*args, **kwargs) | |
3488 | ||
3489 | def Realize(*args, **kwargs): | |
3490 | """Realize(self)""" | |
3491 | return _controls_.Toolbook_Realize(*args, **kwargs) | |
3492 | ||
994453b8 | 3493 | ToolBar = property(GetToolBar,doc="See `GetToolBar`") |
2131d850 | 3494 | _controls_.Toolbook_swigregister(Toolbook) |
7e08d4ef RD |
3495 | |
3496 | def PreToolbook(*args, **kwargs): | |
3497 | """PreToolbook() -> Toolbook""" | |
3498 | val = _controls_.new_PreToolbook(*args, **kwargs) | |
7e08d4ef RD |
3499 | return val |
3500 | ||
3501 | class ToolbookEvent(BookCtrlBaseEvent): | |
3502 | """Proxy of C++ ToolbookEvent class""" | |
0085ce49 RD |
3503 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3504 | __repr__ = _swig_repr | |
3505 | def __init__(self, *args, **kwargs): | |
7e08d4ef | 3506 | """ |
2131d850 | 3507 | __init__(self, EventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND, |
7e08d4ef RD |
3508 | int nOldSel=NOT_FOUND) -> ToolbookEvent |
3509 | """ | |
0085ce49 | 3510 | _controls_.ToolbookEvent_swiginit(self,_controls_.new_ToolbookEvent(*args, **kwargs)) |
2131d850 | 3511 | _controls_.ToolbookEvent_swigregister(ToolbookEvent) |
7e08d4ef RD |
3512 | |
3513 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED | |
3514 | wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING | |
3515 | EVT_TOOLBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED, 1) | |
3516 | EVT_TOOLBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, 1) | |
3517 | ||
d14a1e28 RD |
3518 | #--------------------------------------------------------------------------- |
3519 | ||
54f9ee45 RD |
3520 | TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON |
3521 | TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR | |
3522 | TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL | |
3523 | TB_HORIZONTAL = _controls_.TB_HORIZONTAL | |
3524 | TB_VERTICAL = _controls_.TB_VERTICAL | |
8f514ab4 RD |
3525 | TB_TOP = _controls_.TB_TOP |
3526 | TB_LEFT = _controls_.TB_LEFT | |
3527 | TB_BOTTOM = _controls_.TB_BOTTOM | |
3528 | TB_RIGHT = _controls_.TB_RIGHT | |
54f9ee45 RD |
3529 | TB_3DBUTTONS = _controls_.TB_3DBUTTONS |
3530 | TB_FLAT = _controls_.TB_FLAT | |
3531 | TB_DOCKABLE = _controls_.TB_DOCKABLE | |
3532 | TB_NOICONS = _controls_.TB_NOICONS | |
3533 | TB_TEXT = _controls_.TB_TEXT | |
3534 | TB_NODIVIDER = _controls_.TB_NODIVIDER | |
3535 | TB_NOALIGN = _controls_.TB_NOALIGN | |
3536 | TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT | |
3537 | TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT | |
704eda0c | 3538 | TB_NO_TOOLTIPS = _controls_.TB_NO_TOOLTIPS |
54f9ee45 | 3539 | class ToolBarToolBase(_core.Object): |
093d3ff1 | 3540 | """Proxy of C++ ToolBarToolBase class""" |
0085ce49 RD |
3541 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3542 | def __init__(self): raise AttributeError, "No constructor defined" | |
3543 | __repr__ = _swig_repr | |
e811c8ce | 3544 | def GetId(*args, **kwargs): |
a95a7133 | 3545 | """GetId(self) -> int""" |
54f9ee45 | 3546 | return _controls_.ToolBarToolBase_GetId(*args, **kwargs) |
e811c8ce RD |
3547 | |
3548 | def GetControl(*args, **kwargs): | |
a95a7133 | 3549 | """GetControl(self) -> Control""" |
54f9ee45 | 3550 | return _controls_.ToolBarToolBase_GetControl(*args, **kwargs) |
e811c8ce RD |
3551 | |
3552 | def GetToolBar(*args, **kwargs): | |
a95a7133 | 3553 | """GetToolBar(self) -> ToolBarBase""" |
54f9ee45 | 3554 | return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs) |
e811c8ce RD |
3555 | |
3556 | def IsButton(*args, **kwargs): | |
a95a7133 | 3557 | """IsButton(self) -> int""" |
54f9ee45 | 3558 | return _controls_.ToolBarToolBase_IsButton(*args, **kwargs) |
e811c8ce RD |
3559 | |
3560 | def IsControl(*args, **kwargs): | |
a95a7133 | 3561 | """IsControl(self) -> int""" |
54f9ee45 | 3562 | return _controls_.ToolBarToolBase_IsControl(*args, **kwargs) |
e811c8ce RD |
3563 | |
3564 | def IsSeparator(*args, **kwargs): | |
a95a7133 | 3565 | """IsSeparator(self) -> int""" |
54f9ee45 | 3566 | return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs) |
e811c8ce RD |
3567 | |
3568 | def GetStyle(*args, **kwargs): | |
a95a7133 | 3569 | """GetStyle(self) -> int""" |
54f9ee45 | 3570 | return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs) |
e811c8ce RD |
3571 | |
3572 | def GetKind(*args, **kwargs): | |
a95a7133 | 3573 | """GetKind(self) -> int""" |
54f9ee45 | 3574 | return _controls_.ToolBarToolBase_GetKind(*args, **kwargs) |
e811c8ce RD |
3575 | |
3576 | def IsEnabled(*args, **kwargs): | |
a95a7133 | 3577 | """IsEnabled(self) -> bool""" |
54f9ee45 | 3578 | return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs) |
e811c8ce RD |
3579 | |
3580 | def IsToggled(*args, **kwargs): | |
a95a7133 | 3581 | """IsToggled(self) -> bool""" |
54f9ee45 | 3582 | return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs) |
e811c8ce RD |
3583 | |
3584 | def CanBeToggled(*args, **kwargs): | |
a95a7133 | 3585 | """CanBeToggled(self) -> bool""" |
54f9ee45 | 3586 | return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs) |
e811c8ce RD |
3587 | |
3588 | def GetNormalBitmap(*args, **kwargs): | |
a95a7133 | 3589 | """GetNormalBitmap(self) -> Bitmap""" |
54f9ee45 | 3590 | return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) |
e811c8ce RD |
3591 | |
3592 | def GetDisabledBitmap(*args, **kwargs): | |
a95a7133 | 3593 | """GetDisabledBitmap(self) -> Bitmap""" |
54f9ee45 | 3594 | return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) |
e811c8ce RD |
3595 | |
3596 | def GetBitmap(*args, **kwargs): | |
a95a7133 | 3597 | """GetBitmap(self) -> Bitmap""" |
54f9ee45 | 3598 | return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs) |
e811c8ce RD |
3599 | |
3600 | def GetLabel(*args, **kwargs): | |
a95a7133 | 3601 | """GetLabel(self) -> String""" |
54f9ee45 | 3602 | return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs) |
e811c8ce RD |
3603 | |
3604 | def GetShortHelp(*args, **kwargs): | |
a95a7133 | 3605 | """GetShortHelp(self) -> String""" |
54f9ee45 | 3606 | return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs) |
e811c8ce RD |
3607 | |
3608 | def GetLongHelp(*args, **kwargs): | |
a95a7133 | 3609 | """GetLongHelp(self) -> String""" |
54f9ee45 | 3610 | return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs) |
e811c8ce RD |
3611 | |
3612 | def Enable(*args, **kwargs): | |
a95a7133 | 3613 | """Enable(self, bool enable) -> bool""" |
54f9ee45 | 3614 | return _controls_.ToolBarToolBase_Enable(*args, **kwargs) |
e811c8ce RD |
3615 | |
3616 | def Toggle(*args, **kwargs): | |
a95a7133 | 3617 | """Toggle(self)""" |
54f9ee45 | 3618 | return _controls_.ToolBarToolBase_Toggle(*args, **kwargs) |
e811c8ce RD |
3619 | |
3620 | def SetToggle(*args, **kwargs): | |
a95a7133 | 3621 | """SetToggle(self, bool toggle) -> bool""" |
54f9ee45 | 3622 | return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs) |
e811c8ce RD |
3623 | |
3624 | def SetShortHelp(*args, **kwargs): | |
a95a7133 | 3625 | """SetShortHelp(self, String help) -> bool""" |
54f9ee45 | 3626 | return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs) |
e811c8ce RD |
3627 | |
3628 | def SetLongHelp(*args, **kwargs): | |
a95a7133 | 3629 | """SetLongHelp(self, String help) -> bool""" |
54f9ee45 | 3630 | return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs) |
e811c8ce RD |
3631 | |
3632 | def SetNormalBitmap(*args, **kwargs): | |
a95a7133 | 3633 | """SetNormalBitmap(self, Bitmap bmp)""" |
54f9ee45 | 3634 | return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) |
e811c8ce RD |
3635 | |
3636 | def SetDisabledBitmap(*args, **kwargs): | |
a95a7133 | 3637 | """SetDisabledBitmap(self, Bitmap bmp)""" |
54f9ee45 | 3638 | return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) |
e811c8ce RD |
3639 | |
3640 | def SetLabel(*args, **kwargs): | |
a95a7133 | 3641 | """SetLabel(self, String label)""" |
54f9ee45 | 3642 | return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs) |
e811c8ce RD |
3643 | |
3644 | def Detach(*args, **kwargs): | |
a95a7133 | 3645 | """Detach(self)""" |
54f9ee45 | 3646 | return _controls_.ToolBarToolBase_Detach(*args, **kwargs) |
e811c8ce RD |
3647 | |
3648 | def Attach(*args, **kwargs): | |
a95a7133 | 3649 | """Attach(self, ToolBarBase tbar)""" |
54f9ee45 | 3650 | return _controls_.ToolBarToolBase_Attach(*args, **kwargs) |
e811c8ce RD |
3651 | |
3652 | def GetClientData(*args, **kwargs): | |
a95a7133 | 3653 | """GetClientData(self) -> PyObject""" |
54f9ee45 | 3654 | return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs) |
e811c8ce RD |
3655 | |
3656 | def SetClientData(*args, **kwargs): | |
a95a7133 | 3657 | """SetClientData(self, PyObject clientData)""" |
54f9ee45 | 3658 | return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs) |
e811c8ce | 3659 | |
d14a1e28 RD |
3660 | GetBitmap1 = GetNormalBitmap |
3661 | GetBitmap2 = GetDisabledBitmap | |
3662 | SetBitmap1 = SetNormalBitmap | |
3663 | SetBitmap2 = SetDisabledBitmap | |
3664 | ||
994453b8 RD |
3665 | Bitmap = property(GetBitmap,doc="See `GetBitmap`") |
3666 | ClientData = property(GetClientData,SetClientData,doc="See `GetClientData` and `SetClientData`") | |
3667 | Control = property(GetControl,doc="See `GetControl`") | |
3668 | DisabledBitmap = property(GetDisabledBitmap,SetDisabledBitmap,doc="See `GetDisabledBitmap` and `SetDisabledBitmap`") | |
3669 | Id = property(GetId,doc="See `GetId`") | |
3670 | Kind = property(GetKind,doc="See `GetKind`") | |
3671 | Label = property(GetLabel,SetLabel,doc="See `GetLabel` and `SetLabel`") | |
3672 | LongHelp = property(GetLongHelp,SetLongHelp,doc="See `GetLongHelp` and `SetLongHelp`") | |
3673 | NormalBitmap = property(GetNormalBitmap,SetNormalBitmap,doc="See `GetNormalBitmap` and `SetNormalBitmap`") | |
3674 | ShortHelp = property(GetShortHelp,SetShortHelp,doc="See `GetShortHelp` and `SetShortHelp`") | |
3675 | Style = property(GetStyle,doc="See `GetStyle`") | |
3676 | ToolBar = property(GetToolBar,doc="See `GetToolBar`") | |
2131d850 | 3677 | _controls_.ToolBarToolBase_swigregister(ToolBarToolBase) |
d14a1e28 | 3678 | |
54f9ee45 | 3679 | class ToolBarBase(_core.Control): |
093d3ff1 | 3680 | """Proxy of C++ ToolBarBase class""" |
0085ce49 RD |
3681 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3682 | def __init__(self): raise AttributeError, "No constructor defined" | |
3683 | __repr__ = _swig_repr | |
e811c8ce | 3684 | def DoAddTool(*args, **kwargs): |
0df68c9f | 3685 | """ |
a95a7133 | 3686 | DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, |
196addbf RD |
3687 | int kind=ITEM_NORMAL, String shortHelp=EmptyString, |
3688 | String longHelp=EmptyString, | |
3689 | PyObject clientData=None) -> ToolBarToolBase | |
0df68c9f | 3690 | """ |
54f9ee45 | 3691 | return _controls_.ToolBarBase_DoAddTool(*args, **kwargs) |
e811c8ce RD |
3692 | |
3693 | def DoInsertTool(*args, **kwargs): | |
0df68c9f | 3694 | """ |
a95a7133 | 3695 | DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, |
196addbf RD |
3696 | int kind=ITEM_NORMAL, |
3697 | String shortHelp=EmptyString, String longHelp=EmptyString, | |
0df68c9f RD |
3698 | PyObject clientData=None) -> ToolBarToolBase |
3699 | """ | |
54f9ee45 | 3700 | return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs) |
e811c8ce | 3701 | |
d14a1e28 RD |
3702 | # These match the original Add methods for this class, kept for |
3703 | # backwards compatibility with versions < 2.3.3. | |
3704 | ||
3705 | ||
3706 | def AddTool(self, id, bitmap, | |
3707 | pushedBitmap = wx.NullBitmap, | |
3708 | isToggle = 0, | |
3709 | clientData = None, | |
3710 | shortHelpString = '', | |
3711 | longHelpString = '') : | |
3712 | '''Old style method to add a tool to the toolbar.''' | |
3713 | kind = wx.ITEM_NORMAL | |
3714 | if isToggle: kind = wx.ITEM_CHECK | |
3715 | return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, | |
3716 | shortHelpString, longHelpString, clientData) | |
3717 | ||
3718 | def AddSimpleTool(self, id, bitmap, | |
3719 | shortHelpString = '', | |
3720 | longHelpString = '', | |
3721 | isToggle = 0): | |
3722 | '''Old style method to add a tool to the toolbar.''' | |
3723 | kind = wx.ITEM_NORMAL | |
3724 | if isToggle: kind = wx.ITEM_CHECK | |
3725 | return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, | |
3726 | shortHelpString, longHelpString, None) | |
3727 | ||
3728 | def InsertTool(self, pos, id, bitmap, | |
3729 | pushedBitmap = wx.NullBitmap, | |
3730 | isToggle = 0, | |
3731 | clientData = None, | |
3732 | shortHelpString = '', | |
3733 | longHelpString = ''): | |
3734 | '''Old style method to insert a tool in the toolbar.''' | |
3735 | kind = wx.ITEM_NORMAL | |
3736 | if isToggle: kind = wx.ITEM_CHECK | |
3737 | return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, | |
3738 | shortHelpString, longHelpString, clientData) | |
3739 | ||
3740 | def InsertSimpleTool(self, pos, id, bitmap, | |
3741 | shortHelpString = '', | |
3742 | longHelpString = '', | |
3743 | isToggle = 0): | |
3744 | '''Old style method to insert a tool in the toolbar.''' | |
3745 | kind = wx.ITEM_NORMAL | |
3746 | if isToggle: kind = wx.ITEM_CHECK | |
3747 | return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, | |
3748 | shortHelpString, longHelpString, None) | |
3749 | ||
3750 | ||
3751 | # The following are the new toolbar Add methods starting with | |
3752 | # 2.3.3. They are renamed to have 'Label' in the name so as to be | |
3753 | # able to keep backwards compatibility with using the above | |
3754 | # methods. Eventually these should migrate to be the methods used | |
3755 | # primarily and lose the 'Label' in the name... | |
3756 | ||
3757 | def AddLabelTool(self, id, label, bitmap, | |
3758 | bmpDisabled = wx.NullBitmap, | |
3759 | kind = wx.ITEM_NORMAL, | |
3760 | shortHelp = '', longHelp = '', | |
3761 | clientData = None): | |
3762 | ''' | |
3763 | The full AddTool() function. | |
3764 | ||
3765 | If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap | |
3766 | is created and used as the disabled image. | |
3767 | ''' | |
3768 | return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, | |
3769 | shortHelp, longHelp, clientData) | |
3770 | ||
3771 | ||
3772 | def InsertLabelTool(self, pos, id, label, bitmap, | |
3773 | bmpDisabled = wx.NullBitmap, | |
3774 | kind = wx.ITEM_NORMAL, | |
3775 | shortHelp = '', longHelp = '', | |
3776 | clientData = None): | |
3777 | ''' | |
3778 | Insert the new tool at the given position, if pos == GetToolsCount(), it | |
3779 | is equivalent to AddTool() | |
3780 | ''' | |
3781 | return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
3782 | shortHelp, longHelp, clientData) | |
3783 | ||
3784 | def AddCheckLabelTool(self, id, label, bitmap, | |
3785 | bmpDisabled = wx.NullBitmap, | |
3786 | shortHelp = '', longHelp = '', | |
3787 | clientData = None): | |
3788 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3789 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3790 | shortHelp, longHelp, clientData) | |
3791 | ||
3792 | def AddRadioLabelTool(self, id, label, bitmap, | |
3793 | bmpDisabled = wx.NullBitmap, | |
3794 | shortHelp = '', longHelp = '', | |
3795 | clientData = None): | |
3796 | ''' | |
3797 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3798 | other toggled radio tools in the same group when it happens | |
3799 | ''' | |
3800 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3801 | shortHelp, longHelp, clientData) | |
3802 | ||
3803 | ||
3804 | # For consistency with the backwards compatible methods above, here are | |
3805 | # some non-'Label' versions of the Check and Radio methods | |
248ed943 | 3806 | |
d14a1e28 RD |
3807 | def AddCheckTool(self, id, bitmap, |
3808 | bmpDisabled = wx.NullBitmap, | |
3809 | shortHelp = '', longHelp = '', | |
3810 | clientData = None): | |
3811 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3812 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3813 | shortHelp, longHelp, clientData) | |
3814 | ||
3815 | def AddRadioTool(self, id, bitmap, | |
3816 | bmpDisabled = wx.NullBitmap, | |
3817 | shortHelp = '', longHelp = '', | |
3818 | clientData = None): | |
3819 | ''' | |
3820 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3821 | other toggled radio tools in the same group when it happens | |
3822 | ''' | |
3823 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3824 | shortHelp, longHelp, clientData) | |
3825 | ||
3a04f143 | 3826 | def AddToolItem(*args, **kwargs): |
a95a7133 | 3827 | """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" |
54f9ee45 | 3828 | return _controls_.ToolBarBase_AddToolItem(*args, **kwargs) |
3a04f143 RD |
3829 | |
3830 | def InsertToolItem(*args, **kwargs): | |
a95a7133 | 3831 | """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" |
54f9ee45 | 3832 | return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs) |
3a04f143 | 3833 | |
e811c8ce | 3834 | def AddControl(*args, **kwargs): |
cbfc9df6 | 3835 | """AddControl(self, Control control, String label=wxEmptyString) -> ToolBarToolBase""" |
54f9ee45 | 3836 | return _controls_.ToolBarBase_AddControl(*args, **kwargs) |
e811c8ce RD |
3837 | |
3838 | def InsertControl(*args, **kwargs): | |
cbfc9df6 | 3839 | """InsertControl(self, size_t pos, Control control, String label=wxEmptyString) -> ToolBarToolBase""" |
54f9ee45 | 3840 | return _controls_.ToolBarBase_InsertControl(*args, **kwargs) |
e811c8ce RD |
3841 | |
3842 | def FindControl(*args, **kwargs): | |
a95a7133 | 3843 | """FindControl(self, int id) -> Control""" |
54f9ee45 | 3844 | return _controls_.ToolBarBase_FindControl(*args, **kwargs) |
e811c8ce RD |
3845 | |
3846 | def AddSeparator(*args, **kwargs): | |
a95a7133 | 3847 | """AddSeparator(self) -> ToolBarToolBase""" |
54f9ee45 | 3848 | return _controls_.ToolBarBase_AddSeparator(*args, **kwargs) |
e811c8ce RD |
3849 | |
3850 | def InsertSeparator(*args, **kwargs): | |
a95a7133 | 3851 | """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" |
54f9ee45 | 3852 | return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs) |
e811c8ce RD |
3853 | |
3854 | def RemoveTool(*args, **kwargs): | |
a95a7133 | 3855 | """RemoveTool(self, int id) -> ToolBarToolBase""" |
54f9ee45 | 3856 | return _controls_.ToolBarBase_RemoveTool(*args, **kwargs) |
e811c8ce RD |
3857 | |
3858 | def DeleteToolByPos(*args, **kwargs): | |
a95a7133 | 3859 | """DeleteToolByPos(self, size_t pos) -> bool""" |
54f9ee45 | 3860 | return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs) |
e811c8ce RD |
3861 | |
3862 | def DeleteTool(*args, **kwargs): | |
a95a7133 | 3863 | """DeleteTool(self, int id) -> bool""" |
54f9ee45 | 3864 | return _controls_.ToolBarBase_DeleteTool(*args, **kwargs) |
e811c8ce RD |
3865 | |
3866 | def ClearTools(*args, **kwargs): | |
a95a7133 | 3867 | """ClearTools(self)""" |
54f9ee45 | 3868 | return _controls_.ToolBarBase_ClearTools(*args, **kwargs) |
e811c8ce RD |
3869 | |
3870 | def Realize(*args, **kwargs): | |
a95a7133 | 3871 | """Realize(self) -> bool""" |
54f9ee45 | 3872 | return _controls_.ToolBarBase_Realize(*args, **kwargs) |
e811c8ce RD |
3873 | |
3874 | def EnableTool(*args, **kwargs): | |
a95a7133 | 3875 | """EnableTool(self, int id, bool enable)""" |
54f9ee45 | 3876 | return _controls_.ToolBarBase_EnableTool(*args, **kwargs) |
e811c8ce RD |
3877 | |
3878 | def ToggleTool(*args, **kwargs): | |
a95a7133 | 3879 | """ToggleTool(self, int id, bool toggle)""" |
54f9ee45 | 3880 | return _controls_.ToolBarBase_ToggleTool(*args, **kwargs) |
e811c8ce RD |
3881 | |
3882 | def SetToggle(*args, **kwargs): | |
a95a7133 | 3883 | """SetToggle(self, int id, bool toggle)""" |
54f9ee45 | 3884 | return _controls_.ToolBarBase_SetToggle(*args, **kwargs) |
e811c8ce RD |
3885 | |
3886 | def GetToolClientData(*args, **kwargs): | |
a95a7133 | 3887 | """GetToolClientData(self, int id) -> PyObject""" |
54f9ee45 | 3888 | return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs) |
e811c8ce RD |
3889 | |
3890 | def SetToolClientData(*args, **kwargs): | |
a95a7133 | 3891 | """SetToolClientData(self, int id, PyObject clientData)""" |
54f9ee45 | 3892 | return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs) |
e811c8ce RD |
3893 | |
3894 | def GetToolPos(*args, **kwargs): | |
a95a7133 | 3895 | """GetToolPos(self, int id) -> int""" |
54f9ee45 | 3896 | return _controls_.ToolBarBase_GetToolPos(*args, **kwargs) |
e811c8ce RD |
3897 | |
3898 | def GetToolState(*args, **kwargs): | |
a95a7133 | 3899 | """GetToolState(self, int id) -> bool""" |
54f9ee45 | 3900 | return _controls_.ToolBarBase_GetToolState(*args, **kwargs) |
e811c8ce RD |
3901 | |
3902 | def GetToolEnabled(*args, **kwargs): | |
a95a7133 | 3903 | """GetToolEnabled(self, int id) -> bool""" |
54f9ee45 | 3904 | return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs) |
e811c8ce RD |
3905 | |
3906 | def SetToolShortHelp(*args, **kwargs): | |
a95a7133 | 3907 | """SetToolShortHelp(self, int id, String helpString)""" |
54f9ee45 | 3908 | return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs) |
e811c8ce RD |
3909 | |
3910 | def GetToolShortHelp(*args, **kwargs): | |
a95a7133 | 3911 | """GetToolShortHelp(self, int id) -> String""" |
54f9ee45 | 3912 | return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs) |
e811c8ce RD |
3913 | |
3914 | def SetToolLongHelp(*args, **kwargs): | |
a95a7133 | 3915 | """SetToolLongHelp(self, int id, String helpString)""" |
54f9ee45 | 3916 | return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs) |
e811c8ce RD |
3917 | |
3918 | def GetToolLongHelp(*args, **kwargs): | |
a95a7133 | 3919 | """GetToolLongHelp(self, int id) -> String""" |
54f9ee45 | 3920 | return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs) |
e811c8ce RD |
3921 | |
3922 | def SetMarginsXY(*args, **kwargs): | |
a95a7133 | 3923 | """SetMarginsXY(self, int x, int y)""" |
54f9ee45 | 3924 | return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs) |
e811c8ce RD |
3925 | |
3926 | def SetMargins(*args, **kwargs): | |
a95a7133 | 3927 | """SetMargins(self, Size size)""" |
54f9ee45 | 3928 | return _controls_.ToolBarBase_SetMargins(*args, **kwargs) |
e811c8ce RD |
3929 | |
3930 | def SetToolPacking(*args, **kwargs): | |
a95a7133 | 3931 | """SetToolPacking(self, int packing)""" |
54f9ee45 | 3932 | return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs) |
e811c8ce RD |
3933 | |
3934 | def SetToolSeparation(*args, **kwargs): | |
a95a7133 | 3935 | """SetToolSeparation(self, int separation)""" |
54f9ee45 | 3936 | return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs) |
e811c8ce RD |
3937 | |
3938 | def GetToolMargins(*args, **kwargs): | |
a95a7133 | 3939 | """GetToolMargins(self) -> Size""" |
54f9ee45 | 3940 | return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs) |
e811c8ce RD |
3941 | |
3942 | def GetMargins(*args, **kwargs): | |
a95a7133 | 3943 | """GetMargins(self) -> Size""" |
54f9ee45 | 3944 | return _controls_.ToolBarBase_GetMargins(*args, **kwargs) |
e811c8ce RD |
3945 | |
3946 | def GetToolPacking(*args, **kwargs): | |
a95a7133 | 3947 | """GetToolPacking(self) -> int""" |
54f9ee45 | 3948 | return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs) |
e811c8ce RD |
3949 | |
3950 | def GetToolSeparation(*args, **kwargs): | |
a95a7133 | 3951 | """GetToolSeparation(self) -> int""" |
54f9ee45 | 3952 | return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs) |
e811c8ce RD |
3953 | |
3954 | def SetRows(*args, **kwargs): | |
a95a7133 | 3955 | """SetRows(self, int nRows)""" |
54f9ee45 | 3956 | return _controls_.ToolBarBase_SetRows(*args, **kwargs) |
e811c8ce RD |
3957 | |
3958 | def SetMaxRowsCols(*args, **kwargs): | |
a95a7133 | 3959 | """SetMaxRowsCols(self, int rows, int cols)""" |
54f9ee45 | 3960 | return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs) |
e811c8ce RD |
3961 | |
3962 | def GetMaxRows(*args, **kwargs): | |
a95a7133 | 3963 | """GetMaxRows(self) -> int""" |
54f9ee45 | 3964 | return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs) |
e811c8ce RD |
3965 | |
3966 | def GetMaxCols(*args, **kwargs): | |
a95a7133 | 3967 | """GetMaxCols(self) -> int""" |
54f9ee45 | 3968 | return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs) |
e811c8ce RD |
3969 | |
3970 | def SetToolBitmapSize(*args, **kwargs): | |
a95a7133 | 3971 | """SetToolBitmapSize(self, Size size)""" |
54f9ee45 | 3972 | return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs) |
e811c8ce RD |
3973 | |
3974 | def GetToolBitmapSize(*args, **kwargs): | |
a95a7133 | 3975 | """GetToolBitmapSize(self) -> Size""" |
54f9ee45 | 3976 | return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs) |
e811c8ce RD |
3977 | |
3978 | def GetToolSize(*args, **kwargs): | |
a95a7133 | 3979 | """GetToolSize(self) -> Size""" |
54f9ee45 | 3980 | return _controls_.ToolBarBase_GetToolSize(*args, **kwargs) |
e811c8ce RD |
3981 | |
3982 | def FindToolForPosition(*args, **kwargs): | |
a95a7133 | 3983 | """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" |
54f9ee45 | 3984 | return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs) |
e811c8ce | 3985 | |
3a04f143 | 3986 | def FindById(*args, **kwargs): |
a95a7133 | 3987 | """FindById(self, int toolid) -> ToolBarToolBase""" |
54f9ee45 | 3988 | return _controls_.ToolBarBase_FindById(*args, **kwargs) |
3a04f143 | 3989 | |
e811c8ce | 3990 | def IsVertical(*args, **kwargs): |
a95a7133 | 3991 | """IsVertical(self) -> bool""" |
54f9ee45 | 3992 | return _controls_.ToolBarBase_IsVertical(*args, **kwargs) |
e811c8ce | 3993 | |
0085ce49 RD |
3994 | def GetToolsCount(*args, **kwargs): |
3995 | """GetToolsCount(self) -> size_t""" | |
3996 | return _controls_.ToolBarBase_GetToolsCount(*args, **kwargs) | |
d14a1e28 | 3997 | |
994453b8 RD |
3998 | Margins = property(GetMargins,SetMargins,doc="See `GetMargins` and `SetMargins`") |
3999 | MaxCols = property(GetMaxCols,doc="See `GetMaxCols`") | |
4000 | MaxRows = property(GetMaxRows,doc="See `GetMaxRows`") | |
4001 | ToolBitmapSize = property(GetToolBitmapSize,SetToolBitmapSize,doc="See `GetToolBitmapSize` and `SetToolBitmapSize`") | |
4002 | ToolMargins = property(GetToolMargins,doc="See `GetToolMargins`") | |
4003 | ToolPacking = property(GetToolPacking,SetToolPacking,doc="See `GetToolPacking` and `SetToolPacking`") | |
4004 | ToolSeparation = property(GetToolSeparation,SetToolSeparation,doc="See `GetToolSeparation` and `SetToolSeparation`") | |
4005 | ToolSize = property(GetToolSize,doc="See `GetToolSize`") | |
4006 | ToolsCount = property(GetToolsCount,doc="See `GetToolsCount`") | |
2131d850 | 4007 | _controls_.ToolBarBase_swigregister(ToolBarBase) |
d14a1e28 RD |
4008 | |
4009 | class ToolBar(ToolBarBase): | |
093d3ff1 | 4010 | """Proxy of C++ ToolBar class""" |
0085ce49 RD |
4011 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4012 | __repr__ = _swig_repr | |
4013 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4014 | """ |
248ed943 RD |
4015 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
4016 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
196addbf | 4017 | String name=wxPyToolBarNameStr) -> ToolBar |
0df68c9f | 4018 | """ |
0085ce49 | 4019 | _controls_.ToolBar_swiginit(self,_controls_.new_ToolBar(*args, **kwargs)) |
d14a1e28 | 4020 | self._setOORInfo(self) |
e811c8ce RD |
4021 | |
4022 | def Create(*args, **kwargs): | |
0df68c9f | 4023 | """ |
248ed943 RD |
4024 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
4025 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
196addbf | 4026 | String name=wxPyToolBarNameStr) -> bool |
0df68c9f | 4027 | """ |
54f9ee45 | 4028 | return _controls_.ToolBar_Create(*args, **kwargs) |
e811c8ce | 4029 | |
4976f996 RD |
4030 | def SetToolNormalBitmap(*args, **kwargs): |
4031 | """SetToolNormalBitmap(self, int id, Bitmap bitmap)""" | |
4032 | return _controls_.ToolBar_SetToolNormalBitmap(*args, **kwargs) | |
4033 | ||
4034 | def SetToolDisabledBitmap(*args, **kwargs): | |
4035 | """SetToolDisabledBitmap(self, int id, Bitmap bitmap)""" | |
4036 | return _controls_.ToolBar_SetToolDisabledBitmap(*args, **kwargs) | |
4037 | ||
22bfe96c | 4038 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
4039 | """ |
4040 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4041 | ||
4042 | Get the default attributes for this class. This is useful if you want | |
4043 | to use the same font or colour in your own control as in a standard | |
4044 | control -- which is a much better idea than hard coding specific | |
4045 | colours or fonts which might look completely out of place on the | |
4046 | user's system, especially if it uses themes. | |
4047 | ||
4048 | The variant parameter is only relevant under Mac currently and is | |
4049 | ignore under other platforms. Under Mac, it will change the size of | |
4050 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4051 | this. | |
4052 | """ | |
22bfe96c RD |
4053 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
4054 | ||
4055 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 4056 | _controls_.ToolBar_swigregister(ToolBar) |
70551f47 | 4057 | |
d14a1e28 | 4058 | def PreToolBar(*args, **kwargs): |
e811c8ce | 4059 | """PreToolBar() -> ToolBar""" |
54f9ee45 | 4060 | val = _controls_.new_PreToolBar(*args, **kwargs) |
aa2a5b86 RD |
4061 | return val |
4062 | ||
22bfe96c | 4063 | def ToolBar_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 4064 | """ |
110da5b0 RD |
4065 | ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
4066 | ||
4067 | Get the default attributes for this class. This is useful if you want | |
4068 | to use the same font or colour in your own control as in a standard | |
4069 | control -- which is a much better idea than hard coding specific | |
4070 | colours or fonts which might look completely out of place on the | |
4071 | user's system, especially if it uses themes. | |
4072 | ||
4073 | The variant parameter is only relevant under Mac currently and is | |
4074 | ignore under other platforms. Under Mac, it will change the size of | |
4075 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4076 | this. | |
4077 | """ | |
0085ce49 | 4078 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) |
22bfe96c | 4079 | |
d14a1e28 RD |
4080 | #--------------------------------------------------------------------------- |
4081 | ||
54f9ee45 RD |
4082 | LC_VRULES = _controls_.LC_VRULES |
4083 | LC_HRULES = _controls_.LC_HRULES | |
4084 | LC_ICON = _controls_.LC_ICON | |
4085 | LC_SMALL_ICON = _controls_.LC_SMALL_ICON | |
4086 | LC_LIST = _controls_.LC_LIST | |
4087 | LC_REPORT = _controls_.LC_REPORT | |
4088 | LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP | |
4089 | LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT | |
4090 | LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE | |
4091 | LC_VIRTUAL = _controls_.LC_VIRTUAL | |
4092 | LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS | |
4093 | LC_NO_HEADER = _controls_.LC_NO_HEADER | |
4094 | LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER | |
4095 | LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL | |
4096 | LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING | |
4097 | LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING | |
4098 | LC_MASK_TYPE = _controls_.LC_MASK_TYPE | |
4099 | LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN | |
4100 | LC_MASK_SORT = _controls_.LC_MASK_SORT | |
4101 | LIST_MASK_STATE = _controls_.LIST_MASK_STATE | |
4102 | LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT | |
4103 | LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE | |
4104 | LIST_MASK_DATA = _controls_.LIST_MASK_DATA | |
4105 | LIST_SET_ITEM = _controls_.LIST_SET_ITEM | |
4106 | LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH | |
4107 | LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT | |
4108 | LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE | |
4109 | LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED | |
4110 | LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED | |
4111 | LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED | |
4112 | LIST_STATE_CUT = _controls_.LIST_STATE_CUT | |
4113 | LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED | |
4114 | LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED | |
4115 | LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE | |
4116 | LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED | |
4117 | LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE | |
4118 | LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE | |
4119 | LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW | |
4120 | LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE | |
4121 | LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON | |
4122 | LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL | |
4123 | LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT | |
4124 | LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON | |
4125 | LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT | |
4126 | LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT | |
4127 | LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM | |
704eda0c | 4128 | LIST_GETSUBITEMRECT_WHOLEITEM = _controls_.LIST_GETSUBITEMRECT_WHOLEITEM |
54f9ee45 RD |
4129 | LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE |
4130 | LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL | |
4131 | LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW | |
4132 | LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT | |
4133 | LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT | |
4134 | LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT | |
4135 | LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT | |
4136 | LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP | |
4137 | LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID | |
4138 | LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT | |
4139 | LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT | |
4140 | LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE | |
4141 | LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER | |
4142 | LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE | |
4143 | LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER | |
4144 | LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS | |
4145 | LIST_RECT_ICON = _controls_.LIST_RECT_ICON | |
4146 | LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL | |
4147 | LIST_FIND_UP = _controls_.LIST_FIND_UP | |
4148 | LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN | |
4149 | LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT | |
4150 | LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT | |
d14a1e28 RD |
4151 | #--------------------------------------------------------------------------- |
4152 | ||
4153 | class ListItemAttr(object): | |
093d3ff1 | 4154 | """Proxy of C++ ListItemAttr class""" |
0085ce49 RD |
4155 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4156 | __repr__ = _swig_repr | |
4157 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4158 | """ |
a95a7133 | 4159 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, |
196addbf | 4160 | Font font=wxNullFont) -> ListItemAttr |
0df68c9f | 4161 | """ |
0085ce49 RD |
4162 | _controls_.ListItemAttr_swiginit(self,_controls_.new_ListItemAttr(*args, **kwargs)) |
4163 | __swig_destroy__ = _controls_.delete_ListItemAttr | |
4164 | __del__ = lambda self : None; | |
e811c8ce | 4165 | def SetTextColour(*args, **kwargs): |
a95a7133 | 4166 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 4167 | return _controls_.ListItemAttr_SetTextColour(*args, **kwargs) |
e811c8ce RD |
4168 | |
4169 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4170 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 4171 | return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4172 | |
4173 | def SetFont(*args, **kwargs): | |
a95a7133 | 4174 | """SetFont(self, Font font)""" |
54f9ee45 | 4175 | return _controls_.ListItemAttr_SetFont(*args, **kwargs) |
e811c8ce RD |
4176 | |
4177 | def HasTextColour(*args, **kwargs): | |
a95a7133 | 4178 | """HasTextColour(self) -> bool""" |
54f9ee45 | 4179 | return _controls_.ListItemAttr_HasTextColour(*args, **kwargs) |
e811c8ce RD |
4180 | |
4181 | def HasBackgroundColour(*args, **kwargs): | |
a95a7133 | 4182 | """HasBackgroundColour(self) -> bool""" |
54f9ee45 | 4183 | return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4184 | |
4185 | def HasFont(*args, **kwargs): | |
a95a7133 | 4186 | """HasFont(self) -> bool""" |
54f9ee45 | 4187 | return _controls_.ListItemAttr_HasFont(*args, **kwargs) |
e811c8ce RD |
4188 | |
4189 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 4190 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 4191 | return _controls_.ListItemAttr_GetTextColour(*args, **kwargs) |
e811c8ce RD |
4192 | |
4193 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4194 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 4195 | return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4196 | |
4197 | def GetFont(*args, **kwargs): | |
a95a7133 | 4198 | """GetFont(self) -> Font""" |
54f9ee45 | 4199 | return _controls_.ListItemAttr_GetFont(*args, **kwargs) |
e811c8ce | 4200 | |
7e08d4ef RD |
4201 | def AssignFrom(*args, **kwargs): |
4202 | """AssignFrom(self, ListItemAttr source)""" | |
4203 | return _controls_.ListItemAttr_AssignFrom(*args, **kwargs) | |
4204 | ||
e811c8ce | 4205 | def Destroy(*args, **kwargs): |
a95a7133 | 4206 | """Destroy(self)""" |
b39fe951 RD |
4207 | args[0].this.own(False) |
4208 | return _controls_.ListItemAttr_Destroy(*args, **kwargs) | |
e811c8ce | 4209 | |
97ab0f6a RD |
4210 | BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") |
4211 | Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") | |
4212 | TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") | |
2131d850 | 4213 | _controls_.ListItemAttr_swigregister(ListItemAttr) |
b2dc1044 | 4214 | ListCtrlNameStr = cvar.ListCtrlNameStr |
d14a1e28 RD |
4215 | |
4216 | #--------------------------------------------------------------------------- | |
4217 | ||
54f9ee45 | 4218 | class ListItem(_core.Object): |
093d3ff1 | 4219 | """Proxy of C++ ListItem class""" |
0085ce49 RD |
4220 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4221 | __repr__ = _swig_repr | |
4222 | def __init__(self, *args, **kwargs): | |
a95a7133 | 4223 | """__init__(self) -> ListItem""" |
0085ce49 RD |
4224 | _controls_.ListItem_swiginit(self,_controls_.new_ListItem(*args, **kwargs)) |
4225 | __swig_destroy__ = _controls_.delete_ListItem | |
4226 | __del__ = lambda self : None; | |
e811c8ce | 4227 | def Clear(*args, **kwargs): |
a95a7133 | 4228 | """Clear(self)""" |
54f9ee45 | 4229 | return _controls_.ListItem_Clear(*args, **kwargs) |
e811c8ce RD |
4230 | |
4231 | def ClearAttributes(*args, **kwargs): | |
a95a7133 | 4232 | """ClearAttributes(self)""" |
54f9ee45 | 4233 | return _controls_.ListItem_ClearAttributes(*args, **kwargs) |
e811c8ce RD |
4234 | |
4235 | def SetMask(*args, **kwargs): | |
a95a7133 | 4236 | """SetMask(self, long mask)""" |
54f9ee45 | 4237 | return _controls_.ListItem_SetMask(*args, **kwargs) |
e811c8ce RD |
4238 | |
4239 | def SetId(*args, **kwargs): | |
a95a7133 | 4240 | """SetId(self, long id)""" |
54f9ee45 | 4241 | return _controls_.ListItem_SetId(*args, **kwargs) |
e811c8ce RD |
4242 | |
4243 | def SetColumn(*args, **kwargs): | |
a95a7133 | 4244 | """SetColumn(self, int col)""" |
54f9ee45 | 4245 | return _controls_.ListItem_SetColumn(*args, **kwargs) |
e811c8ce RD |
4246 | |
4247 | def SetState(*args, **kwargs): | |
a95a7133 | 4248 | """SetState(self, long state)""" |
54f9ee45 | 4249 | return _controls_.ListItem_SetState(*args, **kwargs) |
e811c8ce RD |
4250 | |
4251 | def SetStateMask(*args, **kwargs): | |
a95a7133 | 4252 | """SetStateMask(self, long stateMask)""" |
54f9ee45 | 4253 | return _controls_.ListItem_SetStateMask(*args, **kwargs) |
e811c8ce RD |
4254 | |
4255 | def SetText(*args, **kwargs): | |
a95a7133 | 4256 | """SetText(self, String text)""" |
54f9ee45 | 4257 | return _controls_.ListItem_SetText(*args, **kwargs) |
e811c8ce RD |
4258 | |
4259 | def SetImage(*args, **kwargs): | |
a95a7133 | 4260 | """SetImage(self, int image)""" |
54f9ee45 | 4261 | return _controls_.ListItem_SetImage(*args, **kwargs) |
e811c8ce RD |
4262 | |
4263 | def SetData(*args, **kwargs): | |
a95a7133 | 4264 | """SetData(self, long data)""" |
54f9ee45 | 4265 | return _controls_.ListItem_SetData(*args, **kwargs) |
e811c8ce RD |
4266 | |
4267 | def SetWidth(*args, **kwargs): | |
a95a7133 | 4268 | """SetWidth(self, int width)""" |
54f9ee45 | 4269 | return _controls_.ListItem_SetWidth(*args, **kwargs) |
e811c8ce RD |
4270 | |
4271 | def SetAlign(*args, **kwargs): | |
a95a7133 | 4272 | """SetAlign(self, int align)""" |
54f9ee45 | 4273 | return _controls_.ListItem_SetAlign(*args, **kwargs) |
e811c8ce RD |
4274 | |
4275 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 4276 | """SetTextColour(self, Colour colText)""" |
54f9ee45 | 4277 | return _controls_.ListItem_SetTextColour(*args, **kwargs) |
e811c8ce RD |
4278 | |
4279 | def SetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4280 | """SetBackgroundColour(self, Colour colBack)""" |
54f9ee45 | 4281 | return _controls_.ListItem_SetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4282 | |
4283 | def SetFont(*args, **kwargs): | |
a95a7133 | 4284 | """SetFont(self, Font font)""" |
54f9ee45 | 4285 | return _controls_.ListItem_SetFont(*args, **kwargs) |
e811c8ce RD |
4286 | |
4287 | def GetMask(*args, **kwargs): | |
a95a7133 | 4288 | """GetMask(self) -> long""" |
54f9ee45 | 4289 | return _controls_.ListItem_GetMask(*args, **kwargs) |
e811c8ce RD |
4290 | |
4291 | def GetId(*args, **kwargs): | |
a95a7133 | 4292 | """GetId(self) -> long""" |
54f9ee45 | 4293 | return _controls_.ListItem_GetId(*args, **kwargs) |
e811c8ce RD |
4294 | |
4295 | def GetColumn(*args, **kwargs): | |
a95a7133 | 4296 | """GetColumn(self) -> int""" |
54f9ee45 | 4297 | return _controls_.ListItem_GetColumn(*args, **kwargs) |
e811c8ce RD |
4298 | |
4299 | def GetState(*args, **kwargs): | |
a95a7133 | 4300 | """GetState(self) -> long""" |
54f9ee45 | 4301 | return _controls_.ListItem_GetState(*args, **kwargs) |
e811c8ce RD |
4302 | |
4303 | def GetText(*args, **kwargs): | |
a95a7133 | 4304 | """GetText(self) -> String""" |
54f9ee45 | 4305 | return _controls_.ListItem_GetText(*args, **kwargs) |
e811c8ce RD |
4306 | |
4307 | def GetImage(*args, **kwargs): | |
a95a7133 | 4308 | """GetImage(self) -> int""" |
54f9ee45 | 4309 | return _controls_.ListItem_GetImage(*args, **kwargs) |
e811c8ce RD |
4310 | |
4311 | def GetData(*args, **kwargs): | |
a95a7133 | 4312 | """GetData(self) -> long""" |
54f9ee45 | 4313 | return _controls_.ListItem_GetData(*args, **kwargs) |
e811c8ce RD |
4314 | |
4315 | def GetWidth(*args, **kwargs): | |
a95a7133 | 4316 | """GetWidth(self) -> int""" |
54f9ee45 | 4317 | return _controls_.ListItem_GetWidth(*args, **kwargs) |
e811c8ce RD |
4318 | |
4319 | def GetAlign(*args, **kwargs): | |
a95a7133 | 4320 | """GetAlign(self) -> int""" |
54f9ee45 | 4321 | return _controls_.ListItem_GetAlign(*args, **kwargs) |
e811c8ce RD |
4322 | |
4323 | def GetAttributes(*args, **kwargs): | |
a95a7133 | 4324 | """GetAttributes(self) -> ListItemAttr""" |
54f9ee45 | 4325 | return _controls_.ListItem_GetAttributes(*args, **kwargs) |
e811c8ce RD |
4326 | |
4327 | def HasAttributes(*args, **kwargs): | |
a95a7133 | 4328 | """HasAttributes(self) -> bool""" |
54f9ee45 | 4329 | return _controls_.ListItem_HasAttributes(*args, **kwargs) |
e811c8ce RD |
4330 | |
4331 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 4332 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 4333 | return _controls_.ListItem_GetTextColour(*args, **kwargs) |
e811c8ce RD |
4334 | |
4335 | def GetBackgroundColour(*args, **kwargs): | |
a95a7133 | 4336 | """GetBackgroundColour(self) -> Colour""" |
54f9ee45 | 4337 | return _controls_.ListItem_GetBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4338 | |
4339 | def GetFont(*args, **kwargs): | |
a95a7133 | 4340 | """GetFont(self) -> Font""" |
54f9ee45 RD |
4341 | return _controls_.ListItem_GetFont(*args, **kwargs) |
4342 | ||
4343 | m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set) | |
4344 | m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set) | |
4345 | m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set) | |
4346 | m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set) | |
4347 | m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set) | |
4348 | m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set) | |
4349 | m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set) | |
4350 | m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set) | |
4351 | m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set) | |
4352 | m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set) | |
97ab0f6a RD |
4353 | Align = property(GetAlign,SetAlign,doc="See `GetAlign` and `SetAlign`") |
4354 | Attributes = property(GetAttributes,doc="See `GetAttributes`") | |
4355 | BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`") | |
4356 | Column = property(GetColumn,SetColumn,doc="See `GetColumn` and `SetColumn`") | |
4357 | Data = property(GetData,SetData,doc="See `GetData` and `SetData`") | |
4358 | Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") | |
4359 | Id = property(GetId,SetId,doc="See `GetId` and `SetId`") | |
4360 | Image = property(GetImage,SetImage,doc="See `GetImage` and `SetImage`") | |
4361 | Mask = property(GetMask,SetMask,doc="See `GetMask` and `SetMask`") | |
4362 | State = property(GetState,SetState,doc="See `GetState` and `SetState`") | |
4363 | Text = property(GetText,SetText,doc="See `GetText` and `SetText`") | |
4364 | TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") | |
4365 | Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`") | |
2131d850 | 4366 | _controls_.ListItem_swigregister(ListItem) |
d14a1e28 RD |
4367 | |
4368 | #--------------------------------------------------------------------------- | |
4369 | ||
54f9ee45 | 4370 | class ListEvent(_core.NotifyEvent): |
093d3ff1 | 4371 | """Proxy of C++ ListEvent class""" |
0085ce49 RD |
4372 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4373 | __repr__ = _swig_repr | |
4374 | def __init__(self, *args, **kwargs): | |
2131d850 | 4375 | """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" |
0085ce49 | 4376 | _controls_.ListEvent_swiginit(self,_controls_.new_ListEvent(*args, **kwargs)) |
54f9ee45 RD |
4377 | m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set) |
4378 | m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set) | |
4379 | m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set) | |
4380 | m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set) | |
4381 | m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set) | |
4382 | m_item = property(_controls_.ListEvent_m_item_get) | |
e811c8ce | 4383 | def GetKeyCode(*args, **kwargs): |
a95a7133 | 4384 | """GetKeyCode(self) -> int""" |
54f9ee45 | 4385 | return _controls_.ListEvent_GetKeyCode(*args, **kwargs) |
e811c8ce | 4386 | |
d14a1e28 | 4387 | GetCode = GetKeyCode |
e811c8ce | 4388 | def GetIndex(*args, **kwargs): |
a95a7133 | 4389 | """GetIndex(self) -> long""" |
54f9ee45 | 4390 | return _controls_.ListEvent_GetIndex(*args, **kwargs) |
e811c8ce RD |
4391 | |
4392 | def GetColumn(*args, **kwargs): | |
a95a7133 | 4393 | """GetColumn(self) -> int""" |
54f9ee45 | 4394 | return _controls_.ListEvent_GetColumn(*args, **kwargs) |
e811c8ce RD |
4395 | |
4396 | def GetPoint(*args, **kwargs): | |
a95a7133 | 4397 | """GetPoint(self) -> Point""" |
54f9ee45 | 4398 | return _controls_.ListEvent_GetPoint(*args, **kwargs) |
e811c8ce | 4399 | |
c9c7117a | 4400 | GetPosition = GetPoint |
e811c8ce | 4401 | def GetLabel(*args, **kwargs): |
a95a7133 | 4402 | """GetLabel(self) -> String""" |
54f9ee45 | 4403 | return _controls_.ListEvent_GetLabel(*args, **kwargs) |
e811c8ce RD |
4404 | |
4405 | def GetText(*args, **kwargs): | |
a95a7133 | 4406 | """GetText(self) -> String""" |
54f9ee45 | 4407 | return _controls_.ListEvent_GetText(*args, **kwargs) |
e811c8ce RD |
4408 | |
4409 | def GetImage(*args, **kwargs): | |
a95a7133 | 4410 | """GetImage(self) -> int""" |
54f9ee45 | 4411 | return _controls_.ListEvent_GetImage(*args, **kwargs) |
e811c8ce RD |
4412 | |
4413 | def GetData(*args, **kwargs): | |
a95a7133 | 4414 | """GetData(self) -> long""" |
54f9ee45 | 4415 | return _controls_.ListEvent_GetData(*args, **kwargs) |
e811c8ce RD |
4416 | |
4417 | def GetMask(*args, **kwargs): | |
a95a7133 | 4418 | """GetMask(self) -> long""" |
54f9ee45 | 4419 | return _controls_.ListEvent_GetMask(*args, **kwargs) |
e811c8ce RD |
4420 | |
4421 | def GetItem(*args, **kwargs): | |
a95a7133 | 4422 | """GetItem(self) -> ListItem""" |
54f9ee45 | 4423 | return _controls_.ListEvent_GetItem(*args, **kwargs) |
e811c8ce RD |
4424 | |
4425 | def GetCacheFrom(*args, **kwargs): | |
a95a7133 | 4426 | """GetCacheFrom(self) -> long""" |
54f9ee45 | 4427 | return _controls_.ListEvent_GetCacheFrom(*args, **kwargs) |
e811c8ce RD |
4428 | |
4429 | def GetCacheTo(*args, **kwargs): | |
a95a7133 | 4430 | """GetCacheTo(self) -> long""" |
54f9ee45 | 4431 | return _controls_.ListEvent_GetCacheTo(*args, **kwargs) |
e811c8ce RD |
4432 | |
4433 | def IsEditCancelled(*args, **kwargs): | |
a95a7133 | 4434 | """IsEditCancelled(self) -> bool""" |
54f9ee45 | 4435 | return _controls_.ListEvent_IsEditCancelled(*args, **kwargs) |
e811c8ce RD |
4436 | |
4437 | def SetEditCanceled(*args, **kwargs): | |
a95a7133 | 4438 | """SetEditCanceled(self, bool editCancelled)""" |
54f9ee45 | 4439 | return _controls_.ListEvent_SetEditCanceled(*args, **kwargs) |
e811c8ce | 4440 | |
97ab0f6a RD |
4441 | CacheFrom = property(GetCacheFrom,doc="See `GetCacheFrom`") |
4442 | CacheTo = property(GetCacheTo,doc="See `GetCacheTo`") | |
4443 | Column = property(GetColumn,doc="See `GetColumn`") | |
4444 | Data = property(GetData,doc="See `GetData`") | |
4445 | Image = property(GetImage,doc="See `GetImage`") | |
4446 | Index = property(GetIndex,doc="See `GetIndex`") | |
4447 | Item = property(GetItem,doc="See `GetItem`") | |
4448 | KeyCode = property(GetKeyCode,doc="See `GetKeyCode`") | |
4449 | Label = property(GetLabel,doc="See `GetLabel`") | |
4450 | Mask = property(GetMask,doc="See `GetMask`") | |
4451 | Point = property(GetPoint,doc="See `GetPoint`") | |
4452 | Text = property(GetText,doc="See `GetText`") | |
2131d850 | 4453 | _controls_.ListEvent_swigregister(ListEvent) |
54f9ee45 RD |
4454 | |
4455 | wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
4456 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
4457 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
4458 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
4459 | wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM | |
4460 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
54f9ee45 RD |
4461 | wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED |
4462 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
4463 | wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN | |
4464 | wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM | |
4465 | wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK | |
4466 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
4467 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
4468 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
4469 | wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT | |
4470 | wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK | |
4471 | wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG | |
4472 | wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING | |
4473 | wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG | |
4474 | wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED | |
d14a1e28 RD |
4475 | EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) |
4476 | EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) | |
4477 | EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) | |
4478 | EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) | |
4479 | EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) | |
4480 | EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) | |
943e8dfd RD |
4481 | |
4482 | ||
4483 | ||
4484 | ||
d14a1e28 RD |
4485 | EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) |
4486 | EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) | |
4487 | EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) | |
4488 | EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) | |
4489 | EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) | |
4490 | EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) | |
4491 | EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) | |
4492 | EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) | |
4493 | EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) | |
4494 | EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) | |
4495 | EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) | |
4496 | EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) | |
4497 | EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) | |
4498 | EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) | |
4499 | ||
943e8dfd RD |
4500 | |
4501 | ||
4502 | ||
1fc3b23a | 4503 | |
d14a1e28 RD |
4504 | #--------------------------------------------------------------------------- |
4505 | ||
54f9ee45 | 4506 | class ListCtrl(_core.Control): |
093d3ff1 | 4507 | """Proxy of C++ ListCtrl class""" |
0085ce49 RD |
4508 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4509 | __repr__ = _swig_repr | |
4510 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4511 | """ |
a95a7133 | 4512 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4513 | Size size=DefaultSize, long style=LC_ICON, |
b2dc1044 | 4514 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl |
0df68c9f | 4515 | """ |
0085ce49 | 4516 | _controls_.ListCtrl_swiginit(self,_controls_.new_ListCtrl(*args, **kwargs)) |
c25f90f6 | 4517 | self._setOORInfo(self);ListCtrl._setCallbackInfo(self, self, ListCtrl) |
e811c8ce RD |
4518 | |
4519 | def Create(*args, **kwargs): | |
0df68c9f | 4520 | """ |
a95a7133 | 4521 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4522 | Size size=DefaultSize, long style=LC_ICON, |
b2dc1044 | 4523 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool |
15afbcd0 RD |
4524 | |
4525 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 4526 | """ |
54f9ee45 | 4527 | return _controls_.ListCtrl_Create(*args, **kwargs) |
e811c8ce RD |
4528 | |
4529 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 4530 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 4531 | return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs) |
e811c8ce | 4532 | |
e811c8ce | 4533 | def GetColumn(*args, **kwargs): |
a95a7133 | 4534 | """GetColumn(self, int col) -> ListItem""" |
54f9ee45 | 4535 | val = _controls_.ListCtrl_GetColumn(*args, **kwargs) |
d14a1e28 RD |
4536 | if val is not None: val.thisown = 1 |
4537 | return val | |
e811c8ce RD |
4538 | |
4539 | def SetColumn(*args, **kwargs): | |
a95a7133 | 4540 | """SetColumn(self, int col, ListItem item) -> bool""" |
54f9ee45 | 4541 | return _controls_.ListCtrl_SetColumn(*args, **kwargs) |
e811c8ce RD |
4542 | |
4543 | def GetColumnWidth(*args, **kwargs): | |
a95a7133 | 4544 | """GetColumnWidth(self, int col) -> int""" |
54f9ee45 | 4545 | return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs) |
e811c8ce RD |
4546 | |
4547 | def SetColumnWidth(*args, **kwargs): | |
a95a7133 | 4548 | """SetColumnWidth(self, int col, int width) -> bool""" |
54f9ee45 | 4549 | return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs) |
e811c8ce RD |
4550 | |
4551 | def GetCountPerPage(*args, **kwargs): | |
a95a7133 | 4552 | """GetCountPerPage(self) -> int""" |
54f9ee45 | 4553 | return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs) |
e811c8ce RD |
4554 | |
4555 | def GetViewRect(*args, **kwargs): | |
a95a7133 | 4556 | """GetViewRect(self) -> Rect""" |
54f9ee45 | 4557 | return _controls_.ListCtrl_GetViewRect(*args, **kwargs) |
e811c8ce | 4558 | |
0085ce49 RD |
4559 | def GetEditControl(*args, **kwargs): |
4560 | """GetEditControl(self) -> TextCtrl""" | |
4561 | return _controls_.ListCtrl_GetEditControl(*args, **kwargs) | |
4562 | ||
e811c8ce | 4563 | def GetItem(*args, **kwargs): |
a95a7133 | 4564 | """GetItem(self, long itemId, int col=0) -> ListItem""" |
54f9ee45 | 4565 | val = _controls_.ListCtrl_GetItem(*args, **kwargs) |
d14a1e28 RD |
4566 | if val is not None: val.thisown = 1 |
4567 | return val | |
e811c8ce RD |
4568 | |
4569 | def SetItem(*args, **kwargs): | |
a95a7133 | 4570 | """SetItem(self, ListItem info) -> bool""" |
54f9ee45 | 4571 | return _controls_.ListCtrl_SetItem(*args, **kwargs) |
e811c8ce RD |
4572 | |
4573 | def SetStringItem(*args, **kwargs): | |
a95a7133 | 4574 | """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" |
54f9ee45 | 4575 | return _controls_.ListCtrl_SetStringItem(*args, **kwargs) |
e811c8ce RD |
4576 | |
4577 | def GetItemState(*args, **kwargs): | |
a95a7133 | 4578 | """GetItemState(self, long item, long stateMask) -> int""" |
54f9ee45 | 4579 | return _controls_.ListCtrl_GetItemState(*args, **kwargs) |
e811c8ce RD |
4580 | |
4581 | def SetItemState(*args, **kwargs): | |
a95a7133 | 4582 | """SetItemState(self, long item, long state, long stateMask) -> bool""" |
54f9ee45 | 4583 | return _controls_.ListCtrl_SetItemState(*args, **kwargs) |
e811c8ce RD |
4584 | |
4585 | def SetItemImage(*args, **kwargs): | |
1fc3b23a | 4586 | """SetItemImage(self, long item, int image, int selImage=-1) -> bool""" |
54f9ee45 | 4587 | return _controls_.ListCtrl_SetItemImage(*args, **kwargs) |
e811c8ce | 4588 | |
0085ce49 RD |
4589 | def SetItemColumnImage(*args, **kwargs): |
4590 | """SetItemColumnImage(self, long item, long column, int image) -> bool""" | |
4591 | return _controls_.ListCtrl_SetItemColumnImage(*args, **kwargs) | |
4592 | ||
e811c8ce | 4593 | def GetItemText(*args, **kwargs): |
a95a7133 | 4594 | """GetItemText(self, long item) -> String""" |
54f9ee45 | 4595 | return _controls_.ListCtrl_GetItemText(*args, **kwargs) |
e811c8ce RD |
4596 | |
4597 | def SetItemText(*args, **kwargs): | |
a95a7133 | 4598 | """SetItemText(self, long item, String str)""" |
54f9ee45 | 4599 | return _controls_.ListCtrl_SetItemText(*args, **kwargs) |
e811c8ce RD |
4600 | |
4601 | def GetItemData(*args, **kwargs): | |
a95a7133 | 4602 | """GetItemData(self, long item) -> long""" |
54f9ee45 | 4603 | return _controls_.ListCtrl_GetItemData(*args, **kwargs) |
e811c8ce RD |
4604 | |
4605 | def SetItemData(*args, **kwargs): | |
a95a7133 | 4606 | """SetItemData(self, long item, long data) -> bool""" |
54f9ee45 | 4607 | return _controls_.ListCtrl_SetItemData(*args, **kwargs) |
e811c8ce RD |
4608 | |
4609 | def GetItemPosition(*args, **kwargs): | |
a95a7133 | 4610 | """GetItemPosition(self, long item) -> Point""" |
54f9ee45 | 4611 | return _controls_.ListCtrl_GetItemPosition(*args, **kwargs) |
e811c8ce RD |
4612 | |
4613 | def GetItemRect(*args, **kwargs): | |
a95a7133 | 4614 | """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" |
54f9ee45 | 4615 | return _controls_.ListCtrl_GetItemRect(*args, **kwargs) |
e811c8ce RD |
4616 | |
4617 | def SetItemPosition(*args, **kwargs): | |
a95a7133 | 4618 | """SetItemPosition(self, long item, Point pos) -> bool""" |
54f9ee45 | 4619 | return _controls_.ListCtrl_SetItemPosition(*args, **kwargs) |
e811c8ce RD |
4620 | |
4621 | def GetItemCount(*args, **kwargs): | |
a95a7133 | 4622 | """GetItemCount(self) -> int""" |
54f9ee45 | 4623 | return _controls_.ListCtrl_GetItemCount(*args, **kwargs) |
e811c8ce RD |
4624 | |
4625 | def GetColumnCount(*args, **kwargs): | |
a95a7133 | 4626 | """GetColumnCount(self) -> int""" |
54f9ee45 | 4627 | return _controls_.ListCtrl_GetColumnCount(*args, **kwargs) |
e811c8ce RD |
4628 | |
4629 | def GetItemSpacing(*args, **kwargs): | |
a95a7133 | 4630 | """GetItemSpacing(self) -> Size""" |
54f9ee45 | 4631 | return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) |
e811c8ce | 4632 | |
e9d6f3a4 | 4633 | GetItemSpacing = wx._deprecated(GetItemSpacing) |
e811c8ce | 4634 | def SetItemSpacing(*args, **kwargs): |
a95a7133 | 4635 | """SetItemSpacing(self, int spacing, bool isSmall=False)""" |
54f9ee45 | 4636 | return _controls_.ListCtrl_SetItemSpacing(*args, **kwargs) |
e811c8ce | 4637 | |
e9d6f3a4 | 4638 | SetItemSpacing = wx._deprecated(SetItemSpacing) |
e811c8ce | 4639 | def GetSelectedItemCount(*args, **kwargs): |
a95a7133 | 4640 | """GetSelectedItemCount(self) -> int""" |
54f9ee45 | 4641 | return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) |
e811c8ce RD |
4642 | |
4643 | def GetTextColour(*args, **kwargs): | |
a95a7133 | 4644 | """GetTextColour(self) -> Colour""" |
54f9ee45 | 4645 | return _controls_.ListCtrl_GetTextColour(*args, **kwargs) |
e811c8ce RD |
4646 | |
4647 | def SetTextColour(*args, **kwargs): | |
a95a7133 | 4648 | """SetTextColour(self, Colour col)""" |
54f9ee45 | 4649 | return _controls_.ListCtrl_SetTextColour(*args, **kwargs) |
e811c8ce RD |
4650 | |
4651 | def GetTopItem(*args, **kwargs): | |
a95a7133 | 4652 | """GetTopItem(self) -> long""" |
54f9ee45 | 4653 | return _controls_.ListCtrl_GetTopItem(*args, **kwargs) |
e811c8ce RD |
4654 | |
4655 | def SetSingleStyle(*args, **kwargs): | |
a95a7133 | 4656 | """SetSingleStyle(self, long style, bool add=True)""" |
54f9ee45 | 4657 | return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs) |
e811c8ce | 4658 | |
e811c8ce | 4659 | def GetNextItem(*args, **kwargs): |
a95a7133 | 4660 | """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" |
54f9ee45 | 4661 | return _controls_.ListCtrl_GetNextItem(*args, **kwargs) |
e811c8ce RD |
4662 | |
4663 | def GetImageList(*args, **kwargs): | |
a95a7133 | 4664 | """GetImageList(self, int which) -> ImageList""" |
54f9ee45 | 4665 | return _controls_.ListCtrl_GetImageList(*args, **kwargs) |
e811c8ce RD |
4666 | |
4667 | def SetImageList(*args, **kwargs): | |
a95a7133 | 4668 | """SetImageList(self, ImageList imageList, int which)""" |
54f9ee45 | 4669 | return _controls_.ListCtrl_SetImageList(*args, **kwargs) |
e811c8ce RD |
4670 | |
4671 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 4672 | """AssignImageList(self, ImageList imageList, int which)""" |
54f9ee45 | 4673 | return _controls_.ListCtrl_AssignImageList(*args, **kwargs) |
e811c8ce | 4674 | |
4276dc52 | 4675 | def InReportView(*args, **kwargs): |
a95a7133 | 4676 | """InReportView(self) -> bool""" |
54f9ee45 | 4677 | return _controls_.ListCtrl_InReportView(*args, **kwargs) |
4276dc52 | 4678 | |
e811c8ce | 4679 | def IsVirtual(*args, **kwargs): |
a95a7133 | 4680 | """IsVirtual(self) -> bool""" |
54f9ee45 | 4681 | return _controls_.ListCtrl_IsVirtual(*args, **kwargs) |
e811c8ce RD |
4682 | |
4683 | def RefreshItem(*args, **kwargs): | |
a95a7133 | 4684 | """RefreshItem(self, long item)""" |
54f9ee45 | 4685 | return _controls_.ListCtrl_RefreshItem(*args, **kwargs) |
e811c8ce RD |
4686 | |
4687 | def RefreshItems(*args, **kwargs): | |
a95a7133 | 4688 | """RefreshItems(self, long itemFrom, long itemTo)""" |
54f9ee45 | 4689 | return _controls_.ListCtrl_RefreshItems(*args, **kwargs) |
e811c8ce RD |
4690 | |
4691 | def Arrange(*args, **kwargs): | |
a95a7133 | 4692 | """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" |
54f9ee45 | 4693 | return _controls_.ListCtrl_Arrange(*args, **kwargs) |
e811c8ce RD |
4694 | |
4695 | def DeleteItem(*args, **kwargs): | |
a95a7133 | 4696 | """DeleteItem(self, long item) -> bool""" |
54f9ee45 | 4697 | return _controls_.ListCtrl_DeleteItem(*args, **kwargs) |
e811c8ce RD |
4698 | |
4699 | def DeleteAllItems(*args, **kwargs): | |
a95a7133 | 4700 | """DeleteAllItems(self) -> bool""" |
54f9ee45 | 4701 | return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs) |
e811c8ce RD |
4702 | |
4703 | def DeleteColumn(*args, **kwargs): | |
a95a7133 | 4704 | """DeleteColumn(self, int col) -> bool""" |
54f9ee45 | 4705 | return _controls_.ListCtrl_DeleteColumn(*args, **kwargs) |
e811c8ce RD |
4706 | |
4707 | def DeleteAllColumns(*args, **kwargs): | |
a95a7133 | 4708 | """DeleteAllColumns(self) -> bool""" |
54f9ee45 | 4709 | return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs) |
e811c8ce RD |
4710 | |
4711 | def ClearAll(*args, **kwargs): | |
a95a7133 | 4712 | """ClearAll(self)""" |
54f9ee45 | 4713 | return _controls_.ListCtrl_ClearAll(*args, **kwargs) |
e811c8ce RD |
4714 | |
4715 | def EditLabel(*args, **kwargs): | |
a95a7133 | 4716 | """EditLabel(self, long item)""" |
54f9ee45 | 4717 | return _controls_.ListCtrl_EditLabel(*args, **kwargs) |
e811c8ce RD |
4718 | |
4719 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 4720 | """EnsureVisible(self, long item) -> bool""" |
54f9ee45 | 4721 | return _controls_.ListCtrl_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
4722 | |
4723 | def FindItem(*args, **kwargs): | |
a95a7133 | 4724 | """FindItem(self, long start, String str, bool partial=False) -> long""" |
54f9ee45 | 4725 | return _controls_.ListCtrl_FindItem(*args, **kwargs) |
e811c8ce RD |
4726 | |
4727 | def FindItemData(*args, **kwargs): | |
a95a7133 | 4728 | """FindItemData(self, long start, long data) -> long""" |
54f9ee45 | 4729 | return _controls_.ListCtrl_FindItemData(*args, **kwargs) |
e811c8ce RD |
4730 | |
4731 | def FindItemAtPos(*args, **kwargs): | |
a95a7133 | 4732 | """FindItemAtPos(self, long start, Point pt, int direction) -> long""" |
54f9ee45 | 4733 | return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs) |
e811c8ce RD |
4734 | |
4735 | def HitTest(*args, **kwargs): | |
fd2dc343 RD |
4736 | """ |
4737 | HitTest(Point point) -> (item, where) | |
4738 | ||
4739 | Determines which item (if any) is at the specified point, giving | |
53aa7709 | 4740 | in the second return value (see wx.LIST_HITTEST flags.) |
fd2dc343 | 4741 | """ |
54f9ee45 | 4742 | return _controls_.ListCtrl_HitTest(*args, **kwargs) |
e811c8ce | 4743 | |
704eda0c RD |
4744 | def HitTestSubItem(*args, **kwargs): |
4745 | """ | |
4746 | HitTestSubItem(Point point) -> (item, where, subItem) | |
4747 | ||
4748 | Determines which item (if any) is at the specified point, giving in | |
4749 | the second return value (see wx.LIST_HITTEST flags) and also the subItem, if | |
4750 | any. | |
4751 | """ | |
4752 | return _controls_.ListCtrl_HitTestSubItem(*args, **kwargs) | |
4753 | ||
e811c8ce | 4754 | def InsertItem(*args, **kwargs): |
a95a7133 | 4755 | """InsertItem(self, ListItem info) -> long""" |
54f9ee45 | 4756 | return _controls_.ListCtrl_InsertItem(*args, **kwargs) |
e811c8ce RD |
4757 | |
4758 | def InsertStringItem(*args, **kwargs): | |
32fe5131 | 4759 | """InsertStringItem(self, long index, String label, int imageIndex=-1) -> long""" |
54f9ee45 | 4760 | return _controls_.ListCtrl_InsertStringItem(*args, **kwargs) |
e811c8ce RD |
4761 | |
4762 | def InsertImageItem(*args, **kwargs): | |
a95a7133 | 4763 | """InsertImageItem(self, long index, int imageIndex) -> long""" |
54f9ee45 | 4764 | return _controls_.ListCtrl_InsertImageItem(*args, **kwargs) |
e811c8ce RD |
4765 | |
4766 | def InsertImageStringItem(*args, **kwargs): | |
a95a7133 | 4767 | """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" |
54f9ee45 | 4768 | return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs) |
e811c8ce | 4769 | |
a3957d3d RD |
4770 | def InsertColumnItem(*args, **kwargs): |
4771 | """InsertColumnItem(self, long col, ListItem info) -> long""" | |
4772 | return _controls_.ListCtrl_InsertColumnItem(*args, **kwargs) | |
e811c8ce | 4773 | |
a3957d3d | 4774 | InsertColumnInfo = InsertColumnItem |
e811c8ce | 4775 | def InsertColumn(*args, **kwargs): |
0df68c9f | 4776 | """ |
a95a7133 | 4777 | InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, |
0df68c9f RD |
4778 | int width=-1) -> long |
4779 | """ | |
54f9ee45 | 4780 | return _controls_.ListCtrl_InsertColumn(*args, **kwargs) |
e811c8ce RD |
4781 | |
4782 | def SetItemCount(*args, **kwargs): | |
a95a7133 | 4783 | """SetItemCount(self, long count)""" |
54f9ee45 | 4784 | return _controls_.ListCtrl_SetItemCount(*args, **kwargs) |
e811c8ce RD |
4785 | |
4786 | def ScrollList(*args, **kwargs): | |
a95a7133 | 4787 | """ScrollList(self, int dx, int dy) -> bool""" |
54f9ee45 | 4788 | return _controls_.ListCtrl_ScrollList(*args, **kwargs) |
e811c8ce RD |
4789 | |
4790 | def SetItemTextColour(*args, **kwargs): | |
a95a7133 | 4791 | """SetItemTextColour(self, long item, Colour col)""" |
54f9ee45 | 4792 | return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs) |
e811c8ce RD |
4793 | |
4794 | def GetItemTextColour(*args, **kwargs): | |
a95a7133 | 4795 | """GetItemTextColour(self, long item) -> Colour""" |
54f9ee45 | 4796 | return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs) |
e811c8ce RD |
4797 | |
4798 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 4799 | """SetItemBackgroundColour(self, long item, Colour col)""" |
54f9ee45 | 4800 | return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
4801 | |
4802 | def GetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 4803 | """GetItemBackgroundColour(self, long item) -> Colour""" |
54f9ee45 | 4804 | return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs) |
e811c8ce | 4805 | |
943e8dfd RD |
4806 | def SetItemFont(*args, **kwargs): |
4807 | """SetItemFont(self, long item, Font f)""" | |
4808 | return _controls_.ListCtrl_SetItemFont(*args, **kwargs) | |
4809 | ||
4810 | def GetItemFont(*args, **kwargs): | |
4811 | """GetItemFont(self, long item) -> Font""" | |
4812 | return _controls_.ListCtrl_GetItemFont(*args, **kwargs) | |
4813 | ||
d14a1e28 RD |
4814 | # |
4815 | # Some helpers... | |
4816 | def Select(self, idx, on=1): | |
4817 | '''[de]select an item''' | |
e811c8ce | 4818 | if on: state = wx.LIST_STATE_SELECTED |
d14a1e28 | 4819 | else: state = 0 |
e811c8ce | 4820 | self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) |
d14a1e28 RD |
4821 | |
4822 | def Focus(self, idx): | |
4823 | '''Focus and show the given item''' | |
e811c8ce | 4824 | self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) |
d14a1e28 RD |
4825 | self.EnsureVisible(idx) |
4826 | ||
4827 | def GetFocusedItem(self): | |
4828 | '''get the currently focused item or -1 if none''' | |
e811c8ce | 4829 | return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) |
d14a1e28 RD |
4830 | |
4831 | def GetFirstSelected(self, *args): | |
4832 | '''return first selected item, or -1 when none''' | |
4833 | return self.GetNextSelected(-1) | |
4834 | ||
4835 | def GetNextSelected(self, item): | |
4836 | '''return subsequent selected items, or -1 when no more''' | |
e811c8ce | 4837 | return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) |
d14a1e28 RD |
4838 | |
4839 | def IsSelected(self, idx): | |
e811c8ce | 4840 | '''return True if the item is selected''' |
38aff7bb | 4841 | return (self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED) != 0 |
d14a1e28 RD |
4842 | |
4843 | def SetColumnImage(self, col, image): | |
4844 | item = self.GetColumn(col) | |
e811c8ce RD |
4845 | # preserve all other attributes too |
4846 | item.SetMask( wx.LIST_MASK_STATE | | |
4847 | wx.LIST_MASK_TEXT | | |
4848 | wx.LIST_MASK_IMAGE | | |
4849 | wx.LIST_MASK_DATA | | |
4850 | wx.LIST_SET_ITEM | | |
4851 | wx.LIST_MASK_WIDTH | | |
4852 | wx.LIST_MASK_FORMAT ) | |
d14a1e28 RD |
4853 | item.SetImage(image) |
4854 | self.SetColumn(col, item) | |
4855 | ||
4856 | def ClearColumnImage(self, col): | |
4857 | self.SetColumnImage(col, -1) | |
4858 | ||
4859 | def Append(self, entry): | |
4860 | '''Append an item to the list control. The entry parameter should be a | |
4861 | sequence with an item for each column''' | |
4862 | if len(entry): | |
e811c8ce | 4863 | if wx.USE_UNICODE: |
d14a1e28 RD |
4864 | cvtfunc = unicode |
4865 | else: | |
4866 | cvtfunc = str | |
4867 | pos = self.GetItemCount() | |
4868 | self.InsertStringItem(pos, cvtfunc(entry[0])) | |
4869 | for i in range(1, len(entry)): | |
4870 | self.SetStringItem(pos, i, cvtfunc(entry[i])) | |
4871 | return pos | |
4872 | ||
e811c8ce | 4873 | def SortItems(*args, **kwargs): |
a95a7133 | 4874 | """SortItems(self, PyObject func) -> bool""" |
54f9ee45 | 4875 | return _controls_.ListCtrl_SortItems(*args, **kwargs) |
e811c8ce RD |
4876 | |
4877 | def GetMainWindow(*args, **kwargs): | |
a95a7133 | 4878 | """GetMainWindow(self) -> Window""" |
54f9ee45 | 4879 | return _controls_.ListCtrl_GetMainWindow(*args, **kwargs) |
e811c8ce | 4880 | |
74a57fcd | 4881 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
4882 | """ |
4883 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4884 | ||
4885 | Get the default attributes for this class. This is useful if you want | |
4886 | to use the same font or colour in your own control as in a standard | |
4887 | control -- which is a much better idea than hard coding specific | |
4888 | colours or fonts which might look completely out of place on the | |
4889 | user's system, especially if it uses themes. | |
4890 | ||
4891 | The variant parameter is only relevant under Mac currently and is | |
4892 | ignore under other platforms. Under Mac, it will change the size of | |
4893 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4894 | this. | |
4895 | """ | |
54f9ee45 | 4896 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
4897 | |
4898 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
97ab0f6a RD |
4899 | ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`") |
4900 | CountPerPage = property(GetCountPerPage,doc="See `GetCountPerPage`") | |
4901 | EditControl = property(GetEditControl,doc="See `GetEditControl`") | |
4902 | FocusedItem = property(GetFocusedItem,doc="See `GetFocusedItem`") | |
97ab0f6a RD |
4903 | ItemCount = property(GetItemCount,SetItemCount,doc="See `GetItemCount` and `SetItemCount`") |
4904 | MainWindow = property(GetMainWindow,doc="See `GetMainWindow`") | |
4905 | SelectedItemCount = property(GetSelectedItemCount,doc="See `GetSelectedItemCount`") | |
4906 | TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`") | |
4907 | TopItem = property(GetTopItem,doc="See `GetTopItem`") | |
4908 | ViewRect = property(GetViewRect,doc="See `GetViewRect`") | |
2131d850 | 4909 | _controls_.ListCtrl_swigregister(ListCtrl) |
70551f47 | 4910 | |
d14a1e28 | 4911 | def PreListCtrl(*args, **kwargs): |
e811c8ce | 4912 | """PreListCtrl() -> ListCtrl""" |
54f9ee45 | 4913 | val = _controls_.new_PreListCtrl(*args, **kwargs) |
aa2a5b86 RD |
4914 | return val |
4915 | ||
74a57fcd | 4916 | def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 4917 | """ |
110da5b0 RD |
4918 | ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
4919 | ||
4920 | Get the default attributes for this class. This is useful if you want | |
4921 | to use the same font or colour in your own control as in a standard | |
4922 | control -- which is a much better idea than hard coding specific | |
4923 | colours or fonts which might look completely out of place on the | |
4924 | user's system, especially if it uses themes. | |
4925 | ||
4926 | The variant parameter is only relevant under Mac currently and is | |
4927 | ignore under other platforms. Under Mac, it will change the size of | |
4928 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4929 | this. | |
4930 | """ | |
0085ce49 | 4931 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 4932 | |
d14a1e28 | 4933 | #--------------------------------------------------------------------------- |
70551f47 | 4934 | |
d14a1e28 | 4935 | class ListView(ListCtrl): |
093d3ff1 | 4936 | """Proxy of C++ ListView class""" |
0085ce49 RD |
4937 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4938 | __repr__ = _swig_repr | |
4939 | def __init__(self, *args, **kwargs): | |
0df68c9f | 4940 | """ |
a95a7133 | 4941 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4942 | Size size=DefaultSize, long style=LC_REPORT, |
b2dc1044 | 4943 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView |
0df68c9f | 4944 | """ |
0085ce49 | 4945 | _controls_.ListView_swiginit(self,_controls_.new_ListView(*args, **kwargs)) |
0220cbc1 | 4946 | self._setOORInfo(self) |
e811c8ce RD |
4947 | |
4948 | def Create(*args, **kwargs): | |
0df68c9f | 4949 | """ |
a95a7133 | 4950 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f | 4951 | Size size=DefaultSize, long style=LC_REPORT, |
b2dc1044 | 4952 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool |
15afbcd0 RD |
4953 | |
4954 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 4955 | """ |
54f9ee45 | 4956 | return _controls_.ListView_Create(*args, **kwargs) |
e811c8ce RD |
4957 | |
4958 | def Select(*args, **kwargs): | |
a95a7133 | 4959 | """Select(self, long n, bool on=True)""" |
54f9ee45 | 4960 | return _controls_.ListView_Select(*args, **kwargs) |
e811c8ce RD |
4961 | |
4962 | def Focus(*args, **kwargs): | |
a95a7133 | 4963 | """Focus(self, long index)""" |
54f9ee45 | 4964 | return _controls_.ListView_Focus(*args, **kwargs) |
e811c8ce RD |
4965 | |
4966 | def GetFocusedItem(*args, **kwargs): | |
a95a7133 | 4967 | """GetFocusedItem(self) -> long""" |
54f9ee45 | 4968 | return _controls_.ListView_GetFocusedItem(*args, **kwargs) |
e811c8ce RD |
4969 | |
4970 | def GetNextSelected(*args, **kwargs): | |
a95a7133 | 4971 | """GetNextSelected(self, long item) -> long""" |
54f9ee45 | 4972 | return _controls_.ListView_GetNextSelected(*args, **kwargs) |
e811c8ce RD |
4973 | |
4974 | def GetFirstSelected(*args, **kwargs): | |
a95a7133 | 4975 | """GetFirstSelected(self) -> long""" |
54f9ee45 | 4976 | return _controls_.ListView_GetFirstSelected(*args, **kwargs) |
e811c8ce RD |
4977 | |
4978 | def IsSelected(*args, **kwargs): | |
a95a7133 | 4979 | """IsSelected(self, long index) -> bool""" |
54f9ee45 | 4980 | return _controls_.ListView_IsSelected(*args, **kwargs) |
e811c8ce RD |
4981 | |
4982 | def SetColumnImage(*args, **kwargs): | |
a95a7133 | 4983 | """SetColumnImage(self, int col, int image)""" |
54f9ee45 | 4984 | return _controls_.ListView_SetColumnImage(*args, **kwargs) |
e811c8ce RD |
4985 | |
4986 | def ClearColumnImage(*args, **kwargs): | |
a95a7133 | 4987 | """ClearColumnImage(self, int col)""" |
54f9ee45 | 4988 | return _controls_.ListView_ClearColumnImage(*args, **kwargs) |
e811c8ce | 4989 | |
97ab0f6a | 4990 | FocusedItem = property(GetFocusedItem,doc="See `GetFocusedItem`") |
2131d850 | 4991 | _controls_.ListView_swigregister(ListView) |
f6bcfd97 | 4992 | |
d14a1e28 | 4993 | def PreListView(*args, **kwargs): |
e811c8ce | 4994 | """PreListView() -> ListView""" |
54f9ee45 | 4995 | val = _controls_.new_PreListView(*args, **kwargs) |
aa2a5b86 RD |
4996 | return val |
4997 | ||
d14a1e28 RD |
4998 | #--------------------------------------------------------------------------- |
4999 | ||
54f9ee45 RD |
5000 | TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS |
5001 | TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS | |
5002 | TR_NO_LINES = _controls_.TR_NO_LINES | |
5003 | TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT | |
5004 | TR_SINGLE = _controls_.TR_SINGLE | |
5005 | TR_MULTIPLE = _controls_.TR_MULTIPLE | |
5006 | TR_EXTENDED = _controls_.TR_EXTENDED | |
5007 | TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT | |
5008 | TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS | |
5009 | TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT | |
5010 | TR_ROW_LINES = _controls_.TR_ROW_LINES | |
5011 | TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT | |
5012 | TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE | |
5013 | TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS | |
e9d6f3a4 RD |
5014 | # obsolete |
5015 | TR_MAC_BUTTONS = 0 | |
5016 | wxTR_AQUA_BUTTONS = 0 | |
5017 | ||
54f9ee45 RD |
5018 | TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal |
5019 | TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected | |
5020 | TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded | |
5021 | TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded | |
5022 | TreeItemIcon_Max = _controls_.TreeItemIcon_Max | |
5023 | TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE | |
5024 | TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW | |
5025 | TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE | |
5026 | TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON | |
5027 | TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON | |
5028 | TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT | |
5029 | TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL | |
5030 | TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT | |
5031 | TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON | |
5032 | TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT | |
5033 | TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT | |
5034 | TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART | |
5035 | TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART | |
5036 | TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM | |
d14a1e28 RD |
5037 | #--------------------------------------------------------------------------- |
5038 | ||
5039 | class TreeItemId(object): | |
093d3ff1 | 5040 | """Proxy of C++ TreeItemId class""" |
0085ce49 RD |
5041 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5042 | __repr__ = _swig_repr | |
5043 | def __init__(self, *args, **kwargs): | |
a95a7133 | 5044 | """__init__(self) -> TreeItemId""" |
0085ce49 RD |
5045 | _controls_.TreeItemId_swiginit(self,_controls_.new_TreeItemId(*args, **kwargs)) |
5046 | __swig_destroy__ = _controls_.delete_TreeItemId | |
5047 | __del__ = lambda self : None; | |
e811c8ce | 5048 | def IsOk(*args, **kwargs): |
a95a7133 | 5049 | """IsOk(self) -> bool""" |
54f9ee45 | 5050 | return _controls_.TreeItemId_IsOk(*args, **kwargs) |
e811c8ce RD |
5051 | |
5052 | def __eq__(*args, **kwargs): | |
a95a7133 | 5053 | """__eq__(self, TreeItemId other) -> bool""" |
54f9ee45 | 5054 | return _controls_.TreeItemId___eq__(*args, **kwargs) |
e811c8ce RD |
5055 | |
5056 | def __ne__(*args, **kwargs): | |
a95a7133 | 5057 | """__ne__(self, TreeItemId other) -> bool""" |
54f9ee45 | 5058 | return _controls_.TreeItemId___ne__(*args, **kwargs) |
e811c8ce | 5059 | |
54f9ee45 | 5060 | m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set) |
d14a1e28 RD |
5061 | Ok = IsOk |
5062 | def __nonzero__(self): return self.IsOk() | |
2131d850 | 5063 | _controls_.TreeItemId_swigregister(TreeItemId) |
b2dc1044 | 5064 | TreeCtrlNameStr = cvar.TreeCtrlNameStr |
d14a1e28 RD |
5065 | |
5066 | class TreeItemData(object): | |
093d3ff1 | 5067 | """Proxy of C++ TreeItemData class""" |
0085ce49 RD |
5068 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5069 | __repr__ = _swig_repr | |
5070 | def __init__(self, *args, **kwargs): | |
a95a7133 | 5071 | """__init__(self, PyObject obj=None) -> TreeItemData""" |
0085ce49 RD |
5072 | _controls_.TreeItemData_swiginit(self,_controls_.new_TreeItemData(*args, **kwargs)) |
5073 | __swig_destroy__ = _controls_.delete_TreeItemData | |
5074 | __del__ = lambda self : None; | |
e811c8ce | 5075 | def GetData(*args, **kwargs): |
a95a7133 | 5076 | """GetData(self) -> PyObject""" |
54f9ee45 | 5077 | return _controls_.TreeItemData_GetData(*args, **kwargs) |
e811c8ce RD |
5078 | |
5079 | def SetData(*args, **kwargs): | |
a95a7133 | 5080 | """SetData(self, PyObject obj)""" |
54f9ee45 | 5081 | return _controls_.TreeItemData_SetData(*args, **kwargs) |
e811c8ce RD |
5082 | |
5083 | def GetId(*args, **kwargs): | |
a95a7133 | 5084 | """GetId(self) -> TreeItemId""" |
54f9ee45 | 5085 | return _controls_.TreeItemData_GetId(*args, **kwargs) |
e811c8ce RD |
5086 | |
5087 | def SetId(*args, **kwargs): | |
a95a7133 | 5088 | """SetId(self, TreeItemId id)""" |
54f9ee45 | 5089 | return _controls_.TreeItemData_SetId(*args, **kwargs) |
e811c8ce RD |
5090 | |
5091 | def Destroy(*args, **kwargs): | |
a95a7133 | 5092 | """Destroy(self)""" |
b39fe951 RD |
5093 | args[0].this.own(False) |
5094 | return _controls_.TreeItemData_Destroy(*args, **kwargs) | |
e811c8ce | 5095 | |
994453b8 RD |
5096 | Data = property(GetData,SetData,doc="See `GetData` and `SetData`") |
5097 | Id = property(GetId,SetId,doc="See `GetId` and `SetId`") | |
2131d850 | 5098 | _controls_.TreeItemData_swigregister(TreeItemData) |
d14a1e28 RD |
5099 | |
5100 | #--------------------------------------------------------------------------- | |
5101 | ||
54f9ee45 RD |
5102 | wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG |
5103 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
5104 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
5105 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
5106 | wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM | |
5107 | wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO | |
5108 | wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO | |
5109 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
5110 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
5111 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
5112 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
5113 | wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED | |
5114 | wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING | |
5115 | wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN | |
5116 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
5117 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
5118 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
5119 | wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG | |
5120 | wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK | |
5121 | wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP | |
e505d15e | 5122 | wxEVT_COMMAND_TREE_ITEM_MENU = _controls_.wxEVT_COMMAND_TREE_ITEM_MENU |
d14a1e28 RD |
5123 | EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) |
5124 | EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) | |
5125 | EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) | |
5126 | EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) | |
5127 | EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) | |
5128 | EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) | |
5129 | EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) | |
5130 | EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) | |
5131 | EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) | |
5132 | EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) | |
5133 | EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) | |
5134 | EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) | |
5135 | EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) | |
5136 | EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) | |
5137 | EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) | |
5138 | EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) | |
5139 | EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) | |
5140 | EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) | |
5141 | EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) | |
c9c7117a | 5142 | EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) |
f05326ba | 5143 | EVT_TREE_ITEM_MENU = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU, 1) |
d14a1e28 | 5144 | |
54f9ee45 | 5145 | class TreeEvent(_core.NotifyEvent): |
093d3ff1 | 5146 | """Proxy of C++ TreeEvent class""" |
0085ce49 RD |
5147 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5148 | __repr__ = _swig_repr | |
b02396e8 RD |
5149 | def __init__(self, *args): |
5150 | """ | |
5151 | __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> TreeEvent | |
5152 | __init__(self, EventType commandType, TreeCtrl tree, TreeItemId item=NullTreeItemId) -> TreeEvent | |
5153 | """ | |
5154 | _controls_.TreeEvent_swiginit(self,_controls_.new_TreeEvent(*args)) | |
e811c8ce | 5155 | def GetItem(*args, **kwargs): |
a95a7133 | 5156 | """GetItem(self) -> TreeItemId""" |
54f9ee45 | 5157 | return _controls_.TreeEvent_GetItem(*args, **kwargs) |
e811c8ce RD |
5158 | |
5159 | def SetItem(*args, **kwargs): | |
a95a7133 | 5160 | """SetItem(self, TreeItemId item)""" |
54f9ee45 | 5161 | return _controls_.TreeEvent_SetItem(*args, **kwargs) |
e811c8ce RD |
5162 | |
5163 | def GetOldItem(*args, **kwargs): | |
a95a7133 | 5164 | """GetOldItem(self) -> TreeItemId""" |
54f9ee45 | 5165 | return _controls_.TreeEvent_GetOldItem(*args, **kwargs) |
e811c8ce RD |
5166 | |
5167 | def SetOldItem(*args, **kwargs): | |
a95a7133 | 5168 | """SetOldItem(self, TreeItemId item)""" |
54f9ee45 | 5169 | return _controls_.TreeEvent_SetOldItem(*args, **kwargs) |
e811c8ce RD |
5170 | |
5171 | def GetPoint(*args, **kwargs): | |
a95a7133 | 5172 | """GetPoint(self) -> Point""" |
54f9ee45 | 5173 | return _controls_.TreeEvent_GetPoint(*args, **kwargs) |
e811c8ce RD |
5174 | |
5175 | def SetPoint(*args, **kwargs): | |
a95a7133 | 5176 | """SetPoint(self, Point pt)""" |
54f9ee45 | 5177 | return _controls_.TreeEvent_SetPoint(*args, **kwargs) |
e811c8ce RD |
5178 | |
5179 | def GetKeyEvent(*args, **kwargs): | |
a95a7133 | 5180 | """GetKeyEvent(self) -> KeyEvent""" |
54f9ee45 | 5181 | return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs) |
e811c8ce RD |
5182 | |
5183 | def GetKeyCode(*args, **kwargs): | |
a95a7133 | 5184 | """GetKeyCode(self) -> int""" |
54f9ee45 | 5185 | return _controls_.TreeEvent_GetKeyCode(*args, **kwargs) |
e811c8ce RD |
5186 | |
5187 | def SetKeyEvent(*args, **kwargs): | |
a95a7133 | 5188 | """SetKeyEvent(self, KeyEvent evt)""" |
54f9ee45 | 5189 | return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs) |
e811c8ce RD |
5190 | |
5191 | def GetLabel(*args, **kwargs): | |
a95a7133 | 5192 | """GetLabel(self) -> String""" |
54f9ee45 | 5193 | return _controls_.TreeEvent_GetLabel(*args, **kwargs) |
e811c8ce RD |
5194 | |
5195 | def SetLabel(*args, **kwargs): | |
a95a7133 | 5196 | """SetLabel(self, String label)""" |
54f9ee45 | 5197 | return _controls_.TreeEvent_SetLabel(*args, **kwargs) |
e811c8ce RD |
5198 | |
5199 | def IsEditCancelled(*args, **kwargs): | |
a95a7133 | 5200 | """IsEditCancelled(self) -> bool""" |
54f9ee45 | 5201 | return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs) |
e811c8ce RD |
5202 | |
5203 | def SetEditCanceled(*args, **kwargs): | |
a95a7133 | 5204 | """SetEditCanceled(self, bool editCancelled)""" |
54f9ee45 | 5205 | return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs) |
e811c8ce | 5206 | |
c9c7117a | 5207 | def SetToolTip(*args, **kwargs): |
a95a7133 | 5208 | """SetToolTip(self, String toolTip)""" |
54f9ee45 | 5209 | return _controls_.TreeEvent_SetToolTip(*args, **kwargs) |
c9c7117a | 5210 | |
562ecc31 RD |
5211 | def GetToolTip(*args, **kwargs): |
5212 | """GetToolTip(self) -> String""" | |
5213 | return _controls_.TreeEvent_GetToolTip(*args, **kwargs) | |
5214 | ||
994453b8 RD |
5215 | Item = property(GetItem,SetItem,doc="See `GetItem` and `SetItem`") |
5216 | KeyCode = property(GetKeyCode,doc="See `GetKeyCode`") | |
5217 | KeyEvent = property(GetKeyEvent,SetKeyEvent,doc="See `GetKeyEvent` and `SetKeyEvent`") | |
5218 | Label = property(GetLabel,SetLabel,doc="See `GetLabel` and `SetLabel`") | |
5219 | OldItem = property(GetOldItem,SetOldItem,doc="See `GetOldItem` and `SetOldItem`") | |
5220 | Point = property(GetPoint,SetPoint,doc="See `GetPoint` and `SetPoint`") | |
5221 | ToolTip = property(GetToolTip,SetToolTip,doc="See `GetToolTip` and `SetToolTip`") | |
5222 | EditCancelled = property(IsEditCancelled,SetEditCanceled,doc="See `IsEditCancelled` and `SetEditCanceled`") | |
2131d850 | 5223 | _controls_.TreeEvent_swigregister(TreeEvent) |
d14a1e28 RD |
5224 | |
5225 | #--------------------------------------------------------------------------- | |
70551f47 | 5226 | |
54f9ee45 | 5227 | class TreeCtrl(_core.Control): |
093d3ff1 | 5228 | """Proxy of C++ TreeCtrl class""" |
0085ce49 RD |
5229 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5230 | __repr__ = _swig_repr | |
5231 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5232 | """ |
a95a7133 | 5233 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5234 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, |
5235 | Validator validator=DefaultValidator, | |
b2dc1044 | 5236 | String name=TreeCtrlNameStr) -> TreeCtrl |
0df68c9f | 5237 | """ |
0085ce49 | 5238 | _controls_.TreeCtrl_swiginit(self,_controls_.new_TreeCtrl(*args, **kwargs)) |
c25f90f6 | 5239 | self._setOORInfo(self);TreeCtrl._setCallbackInfo(self, self, TreeCtrl) |
e811c8ce RD |
5240 | |
5241 | def Create(*args, **kwargs): | |
0df68c9f | 5242 | """ |
a95a7133 | 5243 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5244 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, |
5245 | Validator validator=DefaultValidator, | |
b2dc1044 | 5246 | String name=TreeCtrlNameStr) -> bool |
15afbcd0 RD |
5247 | |
5248 | Do the 2nd phase and create the GUI control. | |
0df68c9f | 5249 | """ |
54f9ee45 | 5250 | return _controls_.TreeCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5251 | |
5252 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5253 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5254 | return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) |
e811c8ce RD |
5255 | |
5256 | def GetCount(*args, **kwargs): | |
e9d6f3a4 | 5257 | """GetCount(self) -> unsigned int""" |
54f9ee45 | 5258 | return _controls_.TreeCtrl_GetCount(*args, **kwargs) |
e811c8ce RD |
5259 | |
5260 | def GetIndent(*args, **kwargs): | |
a95a7133 | 5261 | """GetIndent(self) -> unsigned int""" |
54f9ee45 | 5262 | return _controls_.TreeCtrl_GetIndent(*args, **kwargs) |
e811c8ce RD |
5263 | |
5264 | def SetIndent(*args, **kwargs): | |
a95a7133 | 5265 | """SetIndent(self, unsigned int indent)""" |
54f9ee45 | 5266 | return _controls_.TreeCtrl_SetIndent(*args, **kwargs) |
e811c8ce RD |
5267 | |
5268 | def GetSpacing(*args, **kwargs): | |
a95a7133 | 5269 | """GetSpacing(self) -> unsigned int""" |
54f9ee45 | 5270 | return _controls_.TreeCtrl_GetSpacing(*args, **kwargs) |
e811c8ce RD |
5271 | |
5272 | def SetSpacing(*args, **kwargs): | |
a95a7133 | 5273 | """SetSpacing(self, unsigned int spacing)""" |
54f9ee45 | 5274 | return _controls_.TreeCtrl_SetSpacing(*args, **kwargs) |
e811c8ce RD |
5275 | |
5276 | def GetImageList(*args, **kwargs): | |
a95a7133 | 5277 | """GetImageList(self) -> ImageList""" |
54f9ee45 | 5278 | return _controls_.TreeCtrl_GetImageList(*args, **kwargs) |
e811c8ce RD |
5279 | |
5280 | def GetStateImageList(*args, **kwargs): | |
a95a7133 | 5281 | """GetStateImageList(self) -> ImageList""" |
54f9ee45 | 5282 | return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs) |
e811c8ce RD |
5283 | |
5284 | def SetImageList(*args, **kwargs): | |
a95a7133 | 5285 | """SetImageList(self, ImageList imageList)""" |
54f9ee45 | 5286 | return _controls_.TreeCtrl_SetImageList(*args, **kwargs) |
e811c8ce RD |
5287 | |
5288 | def SetStateImageList(*args, **kwargs): | |
a95a7133 | 5289 | """SetStateImageList(self, ImageList imageList)""" |
54f9ee45 | 5290 | return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs) |
e811c8ce RD |
5291 | |
5292 | def AssignImageList(*args, **kwargs): | |
a95a7133 | 5293 | """AssignImageList(self, ImageList imageList)""" |
54f9ee45 | 5294 | return _controls_.TreeCtrl_AssignImageList(*args, **kwargs) |
e811c8ce RD |
5295 | |
5296 | def AssignStateImageList(*args, **kwargs): | |
a95a7133 | 5297 | """AssignStateImageList(self, ImageList imageList)""" |
54f9ee45 | 5298 | return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs) |
e811c8ce RD |
5299 | |
5300 | def GetItemText(*args, **kwargs): | |
a95a7133 | 5301 | """GetItemText(self, TreeItemId item) -> String""" |
54f9ee45 | 5302 | return _controls_.TreeCtrl_GetItemText(*args, **kwargs) |
e811c8ce RD |
5303 | |
5304 | def GetItemImage(*args, **kwargs): | |
a95a7133 | 5305 | """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" |
54f9ee45 | 5306 | return _controls_.TreeCtrl_GetItemImage(*args, **kwargs) |
e811c8ce RD |
5307 | |
5308 | def GetItemData(*args, **kwargs): | |
a95a7133 | 5309 | """GetItemData(self, TreeItemId item) -> TreeItemData""" |
54f9ee45 | 5310 | return _controls_.TreeCtrl_GetItemData(*args, **kwargs) |
e811c8ce RD |
5311 | |
5312 | def GetItemPyData(*args, **kwargs): | |
a95a7133 | 5313 | """GetItemPyData(self, TreeItemId item) -> PyObject""" |
54f9ee45 | 5314 | return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs) |
e811c8ce | 5315 | |
d14a1e28 | 5316 | GetPyData = GetItemPyData |
e811c8ce | 5317 | def GetItemTextColour(*args, **kwargs): |
a95a7133 | 5318 | """GetItemTextColour(self, TreeItemId item) -> Colour""" |
54f9ee45 | 5319 | return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs) |
e811c8ce RD |
5320 | |
5321 | def GetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 5322 | """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" |
54f9ee45 | 5323 | return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
5324 | |
5325 | def GetItemFont(*args, **kwargs): | |
a95a7133 | 5326 | """GetItemFont(self, TreeItemId item) -> Font""" |
54f9ee45 | 5327 | return _controls_.TreeCtrl_GetItemFont(*args, **kwargs) |
e811c8ce RD |
5328 | |
5329 | def SetItemText(*args, **kwargs): | |
a95a7133 | 5330 | """SetItemText(self, TreeItemId item, String text)""" |
54f9ee45 | 5331 | return _controls_.TreeCtrl_SetItemText(*args, **kwargs) |
e811c8ce RD |
5332 | |
5333 | def SetItemImage(*args, **kwargs): | |
a95a7133 | 5334 | """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" |
54f9ee45 | 5335 | return _controls_.TreeCtrl_SetItemImage(*args, **kwargs) |
e811c8ce RD |
5336 | |
5337 | def SetItemData(*args, **kwargs): | |
a95a7133 | 5338 | """SetItemData(self, TreeItemId item, TreeItemData data)""" |
54f9ee45 | 5339 | return _controls_.TreeCtrl_SetItemData(*args, **kwargs) |
e811c8ce RD |
5340 | |
5341 | def SetItemPyData(*args, **kwargs): | |
a95a7133 | 5342 | """SetItemPyData(self, TreeItemId item, PyObject obj)""" |
54f9ee45 | 5343 | return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs) |
e811c8ce | 5344 | |
d14a1e28 | 5345 | SetPyData = SetItemPyData |
e811c8ce | 5346 | def SetItemHasChildren(*args, **kwargs): |
a95a7133 | 5347 | """SetItemHasChildren(self, TreeItemId item, bool has=True)""" |
54f9ee45 | 5348 | return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs) |
e811c8ce RD |
5349 | |
5350 | def SetItemBold(*args, **kwargs): | |
a95a7133 | 5351 | """SetItemBold(self, TreeItemId item, bool bold=True)""" |
54f9ee45 | 5352 | return _controls_.TreeCtrl_SetItemBold(*args, **kwargs) |
e811c8ce | 5353 | |
fef4c27a RD |
5354 | def SetItemDropHighlight(*args, **kwargs): |
5355 | """SetItemDropHighlight(self, TreeItemId item, bool highlight=True)""" | |
5356 | return _controls_.TreeCtrl_SetItemDropHighlight(*args, **kwargs) | |
5357 | ||
e811c8ce | 5358 | def SetItemTextColour(*args, **kwargs): |
a95a7133 | 5359 | """SetItemTextColour(self, TreeItemId item, Colour col)""" |
54f9ee45 | 5360 | return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs) |
e811c8ce RD |
5361 | |
5362 | def SetItemBackgroundColour(*args, **kwargs): | |
a95a7133 | 5363 | """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" |
54f9ee45 | 5364 | return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) |
e811c8ce RD |
5365 | |
5366 | def SetItemFont(*args, **kwargs): | |
a95a7133 | 5367 | """SetItemFont(self, TreeItemId item, Font font)""" |
54f9ee45 | 5368 | return _controls_.TreeCtrl_SetItemFont(*args, **kwargs) |
e811c8ce RD |
5369 | |
5370 | def IsVisible(*args, **kwargs): | |
a95a7133 | 5371 | """IsVisible(self, TreeItemId item) -> bool""" |
54f9ee45 | 5372 | return _controls_.TreeCtrl_IsVisible(*args, **kwargs) |
e811c8ce RD |
5373 | |
5374 | def ItemHasChildren(*args, **kwargs): | |
a95a7133 | 5375 | """ItemHasChildren(self, TreeItemId item) -> bool""" |
54f9ee45 | 5376 | return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs) |
e811c8ce RD |
5377 | |
5378 | def IsExpanded(*args, **kwargs): | |
a95a7133 | 5379 | """IsExpanded(self, TreeItemId item) -> bool""" |
54f9ee45 | 5380 | return _controls_.TreeCtrl_IsExpanded(*args, **kwargs) |
e811c8ce RD |
5381 | |
5382 | def IsSelected(*args, **kwargs): | |
a95a7133 | 5383 | """IsSelected(self, TreeItemId item) -> bool""" |
54f9ee45 | 5384 | return _controls_.TreeCtrl_IsSelected(*args, **kwargs) |
e811c8ce RD |
5385 | |
5386 | def IsBold(*args, **kwargs): | |
a95a7133 | 5387 | """IsBold(self, TreeItemId item) -> bool""" |
54f9ee45 | 5388 | return _controls_.TreeCtrl_IsBold(*args, **kwargs) |
e811c8ce | 5389 | |
1ceb4f4d RD |
5390 | def IsEmpty(*args, **kwargs): |
5391 | """IsEmpty(self) -> bool""" | |
5392 | return _controls_.TreeCtrl_IsEmpty(*args, **kwargs) | |
5393 | ||
e811c8ce | 5394 | def GetChildrenCount(*args, **kwargs): |
a95a7133 | 5395 | """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" |
54f9ee45 | 5396 | return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs) |
e811c8ce RD |
5397 | |
5398 | def GetRootItem(*args, **kwargs): | |
a95a7133 | 5399 | """GetRootItem(self) -> TreeItemId""" |
54f9ee45 | 5400 | return _controls_.TreeCtrl_GetRootItem(*args, **kwargs) |
e811c8ce RD |
5401 | |
5402 | def GetSelection(*args, **kwargs): | |
a95a7133 | 5403 | """GetSelection(self) -> TreeItemId""" |
54f9ee45 | 5404 | return _controls_.TreeCtrl_GetSelection(*args, **kwargs) |
e811c8ce RD |
5405 | |
5406 | def GetSelections(*args, **kwargs): | |
a95a7133 | 5407 | """GetSelections(self) -> PyObject""" |
54f9ee45 | 5408 | return _controls_.TreeCtrl_GetSelections(*args, **kwargs) |
e811c8ce RD |
5409 | |
5410 | def GetItemParent(*args, **kwargs): | |
a95a7133 | 5411 | """GetItemParent(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5412 | return _controls_.TreeCtrl_GetItemParent(*args, **kwargs) |
e811c8ce RD |
5413 | |
5414 | def GetFirstChild(*args, **kwargs): | |
a95a7133 | 5415 | """GetFirstChild(self, TreeItemId item) -> PyObject""" |
54f9ee45 | 5416 | return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs) |
e811c8ce RD |
5417 | |
5418 | def GetNextChild(*args, **kwargs): | |
a95a7133 | 5419 | """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" |
54f9ee45 | 5420 | return _controls_.TreeCtrl_GetNextChild(*args, **kwargs) |
e811c8ce RD |
5421 | |
5422 | def GetLastChild(*args, **kwargs): | |
a95a7133 | 5423 | """GetLastChild(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5424 | return _controls_.TreeCtrl_GetLastChild(*args, **kwargs) |
e811c8ce RD |
5425 | |
5426 | def GetNextSibling(*args, **kwargs): | |
a95a7133 | 5427 | """GetNextSibling(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5428 | return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs) |
e811c8ce RD |
5429 | |
5430 | def GetPrevSibling(*args, **kwargs): | |
a95a7133 | 5431 | """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5432 | return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs) |
e811c8ce RD |
5433 | |
5434 | def GetFirstVisibleItem(*args, **kwargs): | |
a95a7133 | 5435 | """GetFirstVisibleItem(self) -> TreeItemId""" |
54f9ee45 | 5436 | return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) |
e811c8ce RD |
5437 | |
5438 | def GetNextVisible(*args, **kwargs): | |
a95a7133 | 5439 | """GetNextVisible(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5440 | return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs) |
e811c8ce RD |
5441 | |
5442 | def GetPrevVisible(*args, **kwargs): | |
a95a7133 | 5443 | """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" |
54f9ee45 | 5444 | return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs) |
e811c8ce RD |
5445 | |
5446 | def AddRoot(*args, **kwargs): | |
a95a7133 | 5447 | """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" |
54f9ee45 | 5448 | return _controls_.TreeCtrl_AddRoot(*args, **kwargs) |
e811c8ce RD |
5449 | |
5450 | def PrependItem(*args, **kwargs): | |
0df68c9f | 5451 | """ |
a95a7133 | 5452 | PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, |
0df68c9f RD |
5453 | TreeItemData data=None) -> TreeItemId |
5454 | """ | |
54f9ee45 | 5455 | return _controls_.TreeCtrl_PrependItem(*args, **kwargs) |
e811c8ce RD |
5456 | |
5457 | def InsertItem(*args, **kwargs): | |
0df68c9f | 5458 | """ |
a95a7133 | 5459 | InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, |
0df68c9f RD |
5460 | int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId |
5461 | """ | |
54f9ee45 | 5462 | return _controls_.TreeCtrl_InsertItem(*args, **kwargs) |
e811c8ce RD |
5463 | |
5464 | def InsertItemBefore(*args, **kwargs): | |
0df68c9f | 5465 | """ |
a95a7133 | 5466 | InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, |
0df68c9f RD |
5467 | int selectedImage=-1, TreeItemData data=None) -> TreeItemId |
5468 | """ | |
54f9ee45 | 5469 | return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs) |
e811c8ce RD |
5470 | |
5471 | def AppendItem(*args, **kwargs): | |
0df68c9f | 5472 | """ |
a95a7133 | 5473 | AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, |
0df68c9f RD |
5474 | TreeItemData data=None) -> TreeItemId |
5475 | """ | |
54f9ee45 | 5476 | return _controls_.TreeCtrl_AppendItem(*args, **kwargs) |
e811c8ce RD |
5477 | |
5478 | def Delete(*args, **kwargs): | |
a95a7133 | 5479 | """Delete(self, TreeItemId item)""" |
54f9ee45 | 5480 | return _controls_.TreeCtrl_Delete(*args, **kwargs) |
e811c8ce RD |
5481 | |
5482 | def DeleteChildren(*args, **kwargs): | |
a95a7133 | 5483 | """DeleteChildren(self, TreeItemId item)""" |
54f9ee45 | 5484 | return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs) |
e811c8ce RD |
5485 | |
5486 | def DeleteAllItems(*args, **kwargs): | |
a95a7133 | 5487 | """DeleteAllItems(self)""" |
54f9ee45 | 5488 | return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs) |
e811c8ce RD |
5489 | |
5490 | def Expand(*args, **kwargs): | |
a95a7133 | 5491 | """Expand(self, TreeItemId item)""" |
54f9ee45 | 5492 | return _controls_.TreeCtrl_Expand(*args, **kwargs) |
e811c8ce | 5493 | |
453fb36b RD |
5494 | def ExpandAllChildren(*args, **kwargs): |
5495 | """ExpandAllChildren(self, TreeItemId item)""" | |
5496 | return _controls_.TreeCtrl_ExpandAllChildren(*args, **kwargs) | |
5497 | ||
5498 | def ExpandAll(*args, **kwargs): | |
5499 | """ExpandAll(self)""" | |
5500 | return _controls_.TreeCtrl_ExpandAll(*args, **kwargs) | |
5501 | ||
e811c8ce | 5502 | def Collapse(*args, **kwargs): |
a95a7133 | 5503 | """Collapse(self, TreeItemId item)""" |
54f9ee45 | 5504 | return _controls_.TreeCtrl_Collapse(*args, **kwargs) |
e811c8ce | 5505 | |
1ceb4f4d RD |
5506 | def CollapseAllChildren(*args, **kwargs): |
5507 | """CollapseAllChildren(self, TreeItemId item)""" | |
5508 | return _controls_.TreeCtrl_CollapseAllChildren(*args, **kwargs) | |
5509 | ||
5510 | def CollapseAll(*args, **kwargs): | |
5511 | """CollapseAll(self)""" | |
5512 | return _controls_.TreeCtrl_CollapseAll(*args, **kwargs) | |
5513 | ||
e811c8ce | 5514 | def CollapseAndReset(*args, **kwargs): |
a95a7133 | 5515 | """CollapseAndReset(self, TreeItemId item)""" |
54f9ee45 | 5516 | return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs) |
e811c8ce RD |
5517 | |
5518 | def Toggle(*args, **kwargs): | |
a95a7133 | 5519 | """Toggle(self, TreeItemId item)""" |
54f9ee45 | 5520 | return _controls_.TreeCtrl_Toggle(*args, **kwargs) |
e811c8ce RD |
5521 | |
5522 | def Unselect(*args, **kwargs): | |
a95a7133 | 5523 | """Unselect(self)""" |
54f9ee45 | 5524 | return _controls_.TreeCtrl_Unselect(*args, **kwargs) |
e811c8ce | 5525 | |
3adfb63b | 5526 | def UnselectItem(*args, **kwargs): |
a95a7133 | 5527 | """UnselectItem(self, TreeItemId item)""" |
54f9ee45 | 5528 | return _controls_.TreeCtrl_UnselectItem(*args, **kwargs) |
3adfb63b | 5529 | |
e811c8ce | 5530 | def UnselectAll(*args, **kwargs): |
a95a7133 | 5531 | """UnselectAll(self)""" |
54f9ee45 | 5532 | return _controls_.TreeCtrl_UnselectAll(*args, **kwargs) |
e811c8ce RD |
5533 | |
5534 | def SelectItem(*args, **kwargs): | |
a95a7133 | 5535 | """SelectItem(self, TreeItemId item, bool select=True)""" |
54f9ee45 | 5536 | return _controls_.TreeCtrl_SelectItem(*args, **kwargs) |
3adfb63b RD |
5537 | |
5538 | def ToggleItemSelection(*args, **kwargs): | |
a95a7133 | 5539 | """ToggleItemSelection(self, TreeItemId item)""" |
54f9ee45 | 5540 | return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs) |
e811c8ce RD |
5541 | |
5542 | def EnsureVisible(*args, **kwargs): | |
a95a7133 | 5543 | """EnsureVisible(self, TreeItemId item)""" |
54f9ee45 | 5544 | return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs) |
e811c8ce RD |
5545 | |
5546 | def ScrollTo(*args, **kwargs): | |
a95a7133 | 5547 | """ScrollTo(self, TreeItemId item)""" |
54f9ee45 | 5548 | return _controls_.TreeCtrl_ScrollTo(*args, **kwargs) |
e811c8ce RD |
5549 | |
5550 | def EditLabel(*args, **kwargs): | |
a95a7133 | 5551 | """EditLabel(self, TreeItemId item)""" |
54f9ee45 | 5552 | return _controls_.TreeCtrl_EditLabel(*args, **kwargs) |
e811c8ce RD |
5553 | |
5554 | def GetEditControl(*args, **kwargs): | |
a95a7133 | 5555 | """GetEditControl(self) -> TextCtrl""" |
54f9ee45 | 5556 | return _controls_.TreeCtrl_GetEditControl(*args, **kwargs) |
e811c8ce RD |
5557 | |
5558 | def SortChildren(*args, **kwargs): | |
a95a7133 | 5559 | """SortChildren(self, TreeItemId item)""" |
54f9ee45 | 5560 | return _controls_.TreeCtrl_SortChildren(*args, **kwargs) |
e811c8ce RD |
5561 | |
5562 | def HitTest(*args, **kwargs): | |
fd2dc343 RD |
5563 | """ |
5564 | HitTest(Point point) -> (item, where) | |
5565 | ||
5566 | Determine which item (if any) belongs the given point. The coordinates | |
5567 | specified are relative to the client area of tree ctrl and the where return | |
5568 | value is set to a bitmask of wxTREE_HITTEST_xxx constants. | |
5569 | ||
5570 | """ | |
54f9ee45 | 5571 | return _controls_.TreeCtrl_HitTest(*args, **kwargs) |
e811c8ce RD |
5572 | |
5573 | def GetBoundingRect(*args, **kwargs): | |
a95a7133 | 5574 | """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" |
54f9ee45 | 5575 | return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs) |
e811c8ce | 5576 | |
74a57fcd | 5577 | def GetClassDefaultAttributes(*args, **kwargs): |
110da5b0 RD |
5578 | """ |
5579 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
5580 | ||
5581 | Get the default attributes for this class. This is useful if you want | |
5582 | to use the same font or colour in your own control as in a standard | |
5583 | control -- which is a much better idea than hard coding specific | |
5584 | colours or fonts which might look completely out of place on the | |
5585 | user's system, especially if it uses themes. | |
5586 | ||
5587 | The variant parameter is only relevant under Mac currently and is | |
5588 | ignore under other platforms. Under Mac, it will change the size of | |
5589 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5590 | this. | |
5591 | """ | |
54f9ee45 | 5592 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd RD |
5593 | |
5594 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 RD |
5595 | def SetQuickBestSize(*args, **kwargs): |
5596 | """SetQuickBestSize(self, bool q)""" | |
5597 | return _controls_.TreeCtrl_SetQuickBestSize(*args, **kwargs) | |
5598 | ||
5599 | def GetQuickBestSize(*args, **kwargs): | |
5600 | """GetQuickBestSize(self) -> bool""" | |
5601 | return _controls_.TreeCtrl_GetQuickBestSize(*args, **kwargs) | |
5602 | ||
994453b8 RD |
5603 | Count = property(GetCount,doc="See `GetCount`") |
5604 | EditControl = property(GetEditControl,doc="See `GetEditControl`") | |
5605 | FirstVisibleItem = property(GetFirstVisibleItem,doc="See `GetFirstVisibleItem`") | |
5606 | ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`") | |
5607 | Indent = property(GetIndent,SetIndent,doc="See `GetIndent` and `SetIndent`") | |
5608 | QuickBestSize = property(GetQuickBestSize,SetQuickBestSize,doc="See `GetQuickBestSize` and `SetQuickBestSize`") | |
5609 | RootItem = property(GetRootItem,doc="See `GetRootItem`") | |
5610 | Selection = property(GetSelection,doc="See `GetSelection`") | |
5611 | Selections = property(GetSelections,doc="See `GetSelections`") | |
5612 | Spacing = property(GetSpacing,SetSpacing,doc="See `GetSpacing` and `SetSpacing`") | |
5613 | StateImageList = property(GetStateImageList,SetStateImageList,doc="See `GetStateImageList` and `SetStateImageList`") | |
2131d850 | 5614 | _controls_.TreeCtrl_swigregister(TreeCtrl) |
70551f47 | 5615 | |
d14a1e28 | 5616 | def PreTreeCtrl(*args, **kwargs): |
e811c8ce | 5617 | """PreTreeCtrl() -> TreeCtrl""" |
54f9ee45 | 5618 | val = _controls_.new_PreTreeCtrl(*args, **kwargs) |
aa2a5b86 RD |
5619 | return val |
5620 | ||
74a57fcd | 5621 | def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): |
0085ce49 | 5622 | """ |
110da5b0 RD |
5623 | TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
5624 | ||
5625 | Get the default attributes for this class. This is useful if you want | |
5626 | to use the same font or colour in your own control as in a standard | |
5627 | control -- which is a much better idea than hard coding specific | |
5628 | colours or fonts which might look completely out of place on the | |
5629 | user's system, especially if it uses themes. | |
5630 | ||
5631 | The variant parameter is only relevant under Mac currently and is | |
5632 | ignore under other platforms. Under Mac, it will change the size of | |
5633 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5634 | this. | |
5635 | """ | |
0085ce49 | 5636 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) |
74a57fcd | 5637 | |
d14a1e28 RD |
5638 | #--------------------------------------------------------------------------- |
5639 | ||
54f9ee45 RD |
5640 | DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY |
5641 | DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST | |
5642 | DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS | |
5643 | DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL | |
5644 | DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS | |
5645 | class GenericDirCtrl(_core.Control): | |
093d3ff1 | 5646 | """Proxy of C++ GenericDirCtrl class""" |
0085ce49 RD |
5647 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5648 | __repr__ = _swig_repr | |
5649 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5650 | """ |
a95a7133 | 5651 | __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, |
196addbf RD |
5652 | Point pos=DefaultPosition, Size size=DefaultSize, |
5653 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5654 | String filter=EmptyString, | |
b2dc1044 | 5655 | int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl |
0df68c9f | 5656 | """ |
0085ce49 | 5657 | _controls_.GenericDirCtrl_swiginit(self,_controls_.new_GenericDirCtrl(*args, **kwargs)) |
d14a1e28 | 5658 | self._setOORInfo(self) |
e811c8ce RD |
5659 | |
5660 | def Create(*args, **kwargs): | |
0df68c9f | 5661 | """ |
a95a7133 | 5662 | Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, |
196addbf RD |
5663 | Point pos=DefaultPosition, Size size=DefaultSize, |
5664 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5665 | String filter=EmptyString, | |
b2dc1044 | 5666 | int defaultFilter=0, String name=TreeCtrlNameStr) -> bool |
0df68c9f | 5667 | """ |
54f9ee45 | 5668 | return _controls_.GenericDirCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5669 | |
5670 | def ExpandPath(*args, **kwargs): | |
a95a7133 | 5671 | """ExpandPath(self, String path) -> bool""" |
54f9ee45 | 5672 | return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs) |
e811c8ce | 5673 | |
704eda0c RD |
5674 | def CollapsePath(*args, **kwargs): |
5675 | """CollapsePath(self, String path) -> bool""" | |
5676 | return _controls_.GenericDirCtrl_CollapsePath(*args, **kwargs) | |
5677 | ||
e811c8ce | 5678 | def GetDefaultPath(*args, **kwargs): |
a95a7133 | 5679 | """GetDefaultPath(self) -> String""" |
54f9ee45 | 5680 | return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs) |
e811c8ce RD |
5681 | |
5682 | def SetDefaultPath(*args, **kwargs): | |
a95a7133 | 5683 | """SetDefaultPath(self, String path)""" |
54f9ee45 | 5684 | return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs) |
e811c8ce RD |
5685 | |
5686 | def GetPath(*args, **kwargs): | |
a95a7133 | 5687 | """GetPath(self) -> String""" |
54f9ee45 | 5688 | return _controls_.GenericDirCtrl_GetPath(*args, **kwargs) |
e811c8ce RD |
5689 | |
5690 | def GetFilePath(*args, **kwargs): | |
a95a7133 | 5691 | """GetFilePath(self) -> String""" |
54f9ee45 | 5692 | return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs) |
e811c8ce RD |
5693 | |
5694 | def SetPath(*args, **kwargs): | |
a95a7133 | 5695 | """SetPath(self, String path)""" |
54f9ee45 | 5696 | return _controls_.GenericDirCtrl_SetPath(*args, **kwargs) |
e811c8ce RD |
5697 | |
5698 | def ShowHidden(*args, **kwargs): | |
a95a7133 | 5699 | """ShowHidden(self, bool show)""" |
54f9ee45 | 5700 | return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs) |
e811c8ce RD |
5701 | |
5702 | def GetShowHidden(*args, **kwargs): | |
a95a7133 | 5703 | """GetShowHidden(self) -> bool""" |
54f9ee45 | 5704 | return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs) |
e811c8ce RD |
5705 | |
5706 | def GetFilter(*args, **kwargs): | |
a95a7133 | 5707 | """GetFilter(self) -> String""" |
54f9ee45 | 5708 | return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs) |
e811c8ce RD |
5709 | |
5710 | def SetFilter(*args, **kwargs): | |
a95a7133 | 5711 | """SetFilter(self, String filter)""" |
54f9ee45 | 5712 | return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs) |
e811c8ce RD |
5713 | |
5714 | def GetFilterIndex(*args, **kwargs): | |
a95a7133 | 5715 | """GetFilterIndex(self) -> int""" |
54f9ee45 | 5716 | return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs) |
e811c8ce RD |
5717 | |
5718 | def SetFilterIndex(*args, **kwargs): | |
a95a7133 | 5719 | """SetFilterIndex(self, int n)""" |
54f9ee45 | 5720 | return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs) |
e811c8ce RD |
5721 | |
5722 | def GetRootId(*args, **kwargs): | |
a95a7133 | 5723 | """GetRootId(self) -> TreeItemId""" |
54f9ee45 | 5724 | return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs) |
e811c8ce RD |
5725 | |
5726 | def GetTreeCtrl(*args, **kwargs): | |
a95a7133 | 5727 | """GetTreeCtrl(self) -> TreeCtrl""" |
54f9ee45 | 5728 | return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) |
e811c8ce RD |
5729 | |
5730 | def GetFilterListCtrl(*args, **kwargs): | |
a95a7133 | 5731 | """GetFilterListCtrl(self) -> DirFilterListCtrl""" |
54f9ee45 | 5732 | return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) |
e811c8ce RD |
5733 | |
5734 | def FindChild(*args, **kwargs): | |
fd2dc343 RD |
5735 | """ |
5736 | FindChild(wxTreeItemId parentId, wxString path) -> (item, done) | |
5737 | ||
5738 | Find the child that matches the first part of 'path'. E.g. if a child | |
5739 | path is "/usr" and 'path' is "/usr/include" then the child for | |
5740 | /usr is returned. If the path string has been used (we're at the | |
5741 | leaf), done is set to True. | |
5742 | ||
5743 | """ | |
54f9ee45 | 5744 | return _controls_.GenericDirCtrl_FindChild(*args, **kwargs) |
e811c8ce RD |
5745 | |
5746 | def DoResize(*args, **kwargs): | |
a95a7133 | 5747 | """DoResize(self)""" |
54f9ee45 | 5748 | return _controls_.GenericDirCtrl_DoResize(*args, **kwargs) |
e811c8ce RD |
5749 | |
5750 | def ReCreateTree(*args, **kwargs): | |
a95a7133 | 5751 | """ReCreateTree(self)""" |
54f9ee45 | 5752 | return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs) |
e811c8ce | 5753 | |
97ab0f6a RD |
5754 | DefaultPath = property(GetDefaultPath,SetDefaultPath,doc="See `GetDefaultPath` and `SetDefaultPath`") |
5755 | FilePath = property(GetFilePath,doc="See `GetFilePath`") | |
5756 | Filter = property(GetFilter,SetFilter,doc="See `GetFilter` and `SetFilter`") | |
5757 | FilterIndex = property(GetFilterIndex,SetFilterIndex,doc="See `GetFilterIndex` and `SetFilterIndex`") | |
5758 | FilterListCtrl = property(GetFilterListCtrl,doc="See `GetFilterListCtrl`") | |
5759 | Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") | |
5760 | RootId = property(GetRootId,doc="See `GetRootId`") | |
97ab0f6a | 5761 | TreeCtrl = property(GetTreeCtrl,doc="See `GetTreeCtrl`") |
2131d850 | 5762 | _controls_.GenericDirCtrl_swigregister(GenericDirCtrl) |
b2dc1044 | 5763 | DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr |
d14a1e28 RD |
5764 | |
5765 | def PreGenericDirCtrl(*args, **kwargs): | |
e811c8ce | 5766 | """PreGenericDirCtrl() -> GenericDirCtrl""" |
54f9ee45 | 5767 | val = _controls_.new_PreGenericDirCtrl(*args, **kwargs) |
d14a1e28 RD |
5768 | return val |
5769 | ||
5770 | class DirFilterListCtrl(Choice): | |
093d3ff1 | 5771 | """Proxy of C++ DirFilterListCtrl class""" |
0085ce49 RD |
5772 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5773 | __repr__ = _swig_repr | |
5774 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5775 | """ |
a95a7133 | 5776 | __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5777 | Size size=DefaultSize, long style=0) -> DirFilterListCtrl |
5778 | """ | |
0085ce49 | 5779 | _controls_.DirFilterListCtrl_swiginit(self,_controls_.new_DirFilterListCtrl(*args, **kwargs)) |
0220cbc1 | 5780 | self._setOORInfo(self) |
e811c8ce RD |
5781 | |
5782 | def Create(*args, **kwargs): | |
0df68c9f | 5783 | """ |
a95a7133 | 5784 | Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, |
0df68c9f RD |
5785 | Size size=DefaultSize, long style=0) -> bool |
5786 | """ | |
54f9ee45 | 5787 | return _controls_.DirFilterListCtrl_Create(*args, **kwargs) |
e811c8ce RD |
5788 | |
5789 | def FillFilterList(*args, **kwargs): | |
a95a7133 | 5790 | """FillFilterList(self, String filter, int defaultFilter)""" |
54f9ee45 | 5791 | return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs) |
e811c8ce | 5792 | |
2131d850 | 5793 | _controls_.DirFilterListCtrl_swigregister(DirFilterListCtrl) |
7a446686 | 5794 | |
d14a1e28 | 5795 | def PreDirFilterListCtrl(*args, **kwargs): |
e811c8ce | 5796 | """PreDirFilterListCtrl() -> DirFilterListCtrl""" |
54f9ee45 | 5797 | val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs) |
aa2a5b86 RD |
5798 | return val |
5799 | ||
d14a1e28 | 5800 | #--------------------------------------------------------------------------- |
7a446686 | 5801 | |
54f9ee45 | 5802 | class PyControl(_core.Control): |
093d3ff1 | 5803 | """Proxy of C++ PyControl class""" |
0085ce49 RD |
5804 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
5805 | __repr__ = _swig_repr | |
5806 | def __init__(self, *args, **kwargs): | |
0df68c9f | 5807 | """ |
248ed943 RD |
5808 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
5809 | Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, | |
b2dc1044 | 5810 | String name=ControlNameStr) -> PyControl |
0df68c9f | 5811 | """ |
0085ce49 | 5812 | _controls_.PyControl_swiginit(self,_controls_.new_PyControl(*args, **kwargs)) |
c25f90f6 | 5813 | self._setOORInfo(self);PyControl._setCallbackInfo(self, self, PyControl) |
e811c8ce RD |
5814 | |
5815 | def _setCallbackInfo(*args, **kwargs): | |
a95a7133 | 5816 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" |
54f9ee45 | 5817 | return _controls_.PyControl__setCallbackInfo(*args, **kwargs) |
e811c8ce | 5818 | |
26c4d26f | 5819 | SetBestSize = wx.Window.SetInitialSize |
976dbff5 RD |
5820 | def DoEraseBackground(*args, **kwargs): |
5821 | """DoEraseBackground(self, DC dc) -> bool""" | |
5822 | return _controls_.PyControl_DoEraseBackground(*args, **kwargs) | |
5823 | ||
c26d9ab4 RD |
5824 | def DoMoveWindow(*args, **kwargs): |
5825 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
5826 | return _controls_.PyControl_DoMoveWindow(*args, **kwargs) | |
e811c8ce | 5827 | |
c26d9ab4 RD |
5828 | def DoSetSize(*args, **kwargs): |
5829 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
5830 | return _controls_.PyControl_DoSetSize(*args, **kwargs) | |
e811c8ce | 5831 | |
c26d9ab4 RD |
5832 | def DoSetClientSize(*args, **kwargs): |
5833 | """DoSetClientSize(self, int width, int height)""" | |
5834 | return _controls_.PyControl_DoSetClientSize(*args, **kwargs) | |
e811c8ce | 5835 | |
c26d9ab4 RD |
5836 | def DoSetVirtualSize(*args, **kwargs): |
5837 | """DoSetVirtualSize(self, int x, int y)""" | |
5838 | return _controls_.PyControl_DoSetVirtualSize(*args, **kwargs) | |
e811c8ce | 5839 | |
c26d9ab4 RD |
5840 | def DoGetSize(*args, **kwargs): |
5841 | """DoGetSize() -> (width, height)""" | |
5842 | return _controls_.PyControl_DoGetSize(*args, **kwargs) | |
e811c8ce | 5843 | |
c26d9ab4 RD |
5844 | def DoGetClientSize(*args, **kwargs): |
5845 | """DoGetClientSize() -> (width, height)""" | |
5846 | return _controls_.PyControl_DoGetClientSize(*args, **kwargs) | |
e811c8ce | 5847 | |
c26d9ab4 RD |
5848 | def DoGetPosition(*args, **kwargs): |
5849 | """DoGetPosition() -> (x,y)""" | |
5850 | return _controls_.PyControl_DoGetPosition(*args, **kwargs) | |
e811c8ce | 5851 | |
c26d9ab4 RD |
5852 | def DoGetVirtualSize(*args, **kwargs): |
5853 | """DoGetVirtualSize(self) -> Size""" | |
5854 | return _controls_.PyControl_DoGetVirtualSize(*args, **kwargs) | |
e811c8ce | 5855 | |
c26d9ab4 RD |
5856 | def DoGetBestSize(*args, **kwargs): |
5857 | """DoGetBestSize(self) -> Size""" | |
5858 | return _controls_.PyControl_DoGetBestSize(*args, **kwargs) | |
e811c8ce | 5859 | |
c26d9ab4 RD |
5860 | def GetDefaultAttributes(*args, **kwargs): |
5861 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
5862 | return _controls_.PyControl_GetDefaultAttributes(*args, **kwargs) | |
5863 | ||
5864 | def OnInternalIdle(*args, **kwargs): | |
5865 | """OnInternalIdle(self)""" | |
5866 | return _controls_.PyControl_OnInternalIdle(*args, **kwargs) | |
5867 | ||
5868 | def base_DoMoveWindow(*args, **kw): | |
5869 | return PyScrolledWindow.DoMoveWindow(*args, **kw) | |
5870 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
5871 | "Please use PyScrolledWindow.DoMoveWindow instead.") | |
5872 | ||
5873 | def base_DoSetSize(*args, **kw): | |
5874 | return PyScrolledWindow.DoSetSize(*args, **kw) | |
5875 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
5876 | "Please use PyScrolledWindow.DoSetSize instead.") | |
e811c8ce | 5877 | |
c26d9ab4 RD |
5878 | def base_DoSetClientSize(*args, **kw): |
5879 | return PyScrolledWindow.DoSetClientSize(*args, **kw) | |
5880 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
5881 | "Please use PyScrolledWindow.DoSetClientSize instead.") | |
e811c8ce | 5882 | |
c26d9ab4 RD |
5883 | def base_DoSetVirtualSize(*args, **kw): |
5884 | return PyScrolledWindow.DoSetVirtualSize(*args, **kw) | |
5885 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
5886 | "Please use PyScrolledWindow.DoSetVirtualSize instead.") | |
e811c8ce | 5887 | |
c26d9ab4 RD |
5888 | def base_DoGetSize(*args, **kw): |
5889 | return PyScrolledWindow.DoGetSize(*args, **kw) | |
5890 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
5891 | "Please use PyScrolledWindow.DoGetSize instead.") | |
e811c8ce | 5892 | |
c26d9ab4 RD |
5893 | def base_DoGetClientSize(*args, **kw): |
5894 | return PyScrolledWindow.DoGetClientSize(*args, **kw) | |
5895 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
5896 | "Please use PyScrolledWindow.DoGetClientSize instead.") | |
e811c8ce | 5897 | |
c26d9ab4 RD |
5898 | def base_DoGetPosition(*args, **kw): |
5899 | return PyScrolledWindow.DoGetPosition(*args, **kw) | |
5900 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
5901 | "Please use PyScrolledWindow.DoGetPosition instead.") | |
e811c8ce | 5902 | |
c26d9ab4 RD |
5903 | def base_DoGetVirtualSize(*args, **kw): |
5904 | return PyScrolledWindow.DoGetVirtualSize(*args, **kw) | |
5905 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
5906 | "Please use PyScrolledWindow.DoGetVirtualSize instead.") | |
e811c8ce | 5907 | |
c26d9ab4 RD |
5908 | def base_DoGetBestSize(*args, **kw): |
5909 | return PyScrolledWindow.DoGetBestSize(*args, **kw) | |
5910 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
5911 | "Please use PyScrolledWindow.DoGetBestSize instead.") | |
e811c8ce | 5912 | |
c26d9ab4 RD |
5913 | def base_InitDialog(*args, **kw): |
5914 | return PyScrolledWindow.InitDialog(*args, **kw) | |
5915 | base_InitDialog = wx._deprecated(base_InitDialog, | |
5916 | "Please use PyScrolledWindow.InitDialog instead.") | |
e811c8ce | 5917 | |
c26d9ab4 RD |
5918 | def base_TransferDataToWindow(*args, **kw): |
5919 | return PyScrolledWindow.TransferDataToWindow(*args, **kw) | |
5920 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
5921 | "Please use PyScrolledWindow.TransferDataToWindow instead.") | |
1cb4a8aa | 5922 | |
c26d9ab4 RD |
5923 | def base_TransferDataFromWindow(*args, **kw): |
5924 | return PyScrolledWindow.TransferDataFromWindow(*args, **kw) | |
5925 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
5926 | "Please use PyScrolledWindow.TransferDataFromWindow instead.") | |
db3e571a | 5927 | |
c26d9ab4 RD |
5928 | def base_Validate(*args, **kw): |
5929 | return PyScrolledWindow.Validate(*args, **kw) | |
5930 | base_Validate = wx._deprecated(base_Validate, | |
5931 | "Please use PyScrolledWindow.Validate instead.") | |
5932 | ||
5933 | def base_AcceptsFocus(*args, **kw): | |
5934 | return PyScrolledWindow.AcceptsFocus(*args, **kw) | |
5935 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
5936 | "Please use PyScrolledWindow.AcceptsFocus instead.") | |
5937 | ||
5938 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
5939 | return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
5940 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
5941 | "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.") | |
5942 | ||
5943 | def base_GetMaxSize(*args, **kw): | |
5944 | return PyScrolledWindow.GetMaxSize(*args, **kw) | |
5945 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
5946 | "Please use PyScrolledWindow.GetMaxSize instead.") | |
5947 | ||
5948 | def base_AddChild(*args, **kw): | |
5949 | return PyScrolledWindow.AddChild(*args, **kw) | |
5950 | base_AddChild = wx._deprecated(base_AddChild, | |
5951 | "Please use PyScrolledWindow.AddChild instead.") | |
5952 | ||
5953 | def base_RemoveChild(*args, **kw): | |
5954 | return PyScrolledWindow.RemoveChild(*args, **kw) | |
5955 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
5956 | "Please use PyScrolledWindow.RemoveChild instead.") | |
5957 | ||
5958 | def base_ShouldInheritColours(*args, **kw): | |
5959 | return PyScrolledWindow.ShouldInheritColours(*args, **kw) | |
5960 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
5961 | "Please use PyScrolledWindow.ShouldInheritColours instead.") | |
5962 | ||
5963 | def base_GetDefaultAttributes(*args, **kw): | |
5964 | return PyScrolledWindow.GetDefaultAttributes(*args, **kw) | |
5965 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
5966 | "Please use PyScrolledWindow.GetDefaultAttributes instead.") | |
5967 | ||
5968 | def base_OnInternalIdle(*args, **kw): | |
5969 | return PyScrolledWindow.OnInternalIdle(*args, **kw) | |
5970 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
5971 | "Please use PyScrolledWindow.OnInternalIdle instead.") | |
8d38bd1d | 5972 | |
2131d850 | 5973 | _controls_.PyControl_swigregister(PyControl) |
d14a1e28 | 5974 | |
1cb4a8aa RD |
5975 | def PrePyControl(*args, **kwargs): |
5976 | """PrePyControl() -> PyControl""" | |
54f9ee45 | 5977 | val = _controls_.new_PrePyControl(*args, **kwargs) |
1cb4a8aa RD |
5978 | return val |
5979 | ||
d14a1e28 RD |
5980 | #--------------------------------------------------------------------------- |
5981 | ||
54f9ee45 RD |
5982 | wxEVT_HELP = _controls_.wxEVT_HELP |
5983 | wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP | |
d14a1e28 RD |
5984 | EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) |
5985 | EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) | |
5986 | EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) | |
5987 | EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) | |
5988 | ||
54f9ee45 | 5989 | class HelpEvent(_core.CommandEvent): |
15afbcd0 | 5990 | """ |
41e2b43e RD |
5991 | A help event is sent when the user has requested context-sensitive |
5992 | help. This can either be caused by the application requesting | |
5993 | context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by | |
5994 | the system generating a WM_HELP message when the user pressed F1 or | |
5995 | clicked on the query button in a dialog caption. | |
5996 | ||
5997 | A help event is sent to the window that the user clicked on, and is | |
5998 | propagated up the window hierarchy until the event is processed or | |
5999 | there are no more event handlers. The application should call | |
6000 | event.GetId to check the identity of the clicked-on window, and then | |
6001 | either show some suitable help or call event.Skip if the identifier is | |
6002 | unrecognised. Calling Skip is important because it allows wxWindows to | |
6003 | generate further events for ancestors of the clicked-on | |
6004 | window. Otherwise it would be impossible to show help for container | |
6005 | windows, since processing would stop after the first window found. | |
15afbcd0 | 6006 | """ |
0085ce49 RD |
6007 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6008 | __repr__ = _swig_repr | |
704eda0c RD |
6009 | Origin_Unknown = _controls_.HelpEvent_Origin_Unknown |
6010 | Origin_Keyboard = _controls_.HelpEvent_Origin_Keyboard | |
6011 | Origin_HelpButton = _controls_.HelpEvent_Origin_HelpButton | |
0085ce49 | 6012 | def __init__(self, *args, **kwargs): |
704eda0c RD |
6013 | """ |
6014 | __init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition, | |
6015 | int origin=Origin_Unknown) -> HelpEvent | |
6016 | """ | |
0085ce49 | 6017 | _controls_.HelpEvent_swiginit(self,_controls_.new_HelpEvent(*args, **kwargs)) |
e811c8ce | 6018 | def GetPosition(*args, **kwargs): |
15afbcd0 | 6019 | """ |
a95a7133 | 6020 | GetPosition(self) -> Point |
15afbcd0 RD |
6021 | |
6022 | Returns the left-click position of the mouse, in screen | |
6023 | coordinates. This allows the application to position the help | |
6024 | appropriately. | |
6025 | """ | |
54f9ee45 | 6026 | return _controls_.HelpEvent_GetPosition(*args, **kwargs) |
e811c8ce RD |
6027 | |
6028 | def SetPosition(*args, **kwargs): | |
15afbcd0 | 6029 | """ |
a95a7133 | 6030 | SetPosition(self, Point pos) |
15afbcd0 RD |
6031 | |
6032 | Sets the left-click position of the mouse, in screen coordinates. | |
6033 | """ | |
54f9ee45 | 6034 | return _controls_.HelpEvent_SetPosition(*args, **kwargs) |
e811c8ce RD |
6035 | |
6036 | def GetLink(*args, **kwargs): | |
15afbcd0 | 6037 | """ |
a95a7133 | 6038 | GetLink(self) -> String |
15afbcd0 RD |
6039 | |
6040 | Get an optional link to further help | |
6041 | """ | |
54f9ee45 | 6042 | return _controls_.HelpEvent_GetLink(*args, **kwargs) |
e811c8ce RD |
6043 | |
6044 | def SetLink(*args, **kwargs): | |
15afbcd0 | 6045 | """ |
a95a7133 | 6046 | SetLink(self, String link) |
15afbcd0 RD |
6047 | |
6048 | Set an optional link to further help | |
6049 | """ | |
54f9ee45 | 6050 | return _controls_.HelpEvent_SetLink(*args, **kwargs) |
e811c8ce RD |
6051 | |
6052 | def GetTarget(*args, **kwargs): | |
15afbcd0 | 6053 | """ |
a95a7133 | 6054 | GetTarget(self) -> String |
15afbcd0 RD |
6055 | |
6056 | Get an optional target to display help in. E.g. a window specification | |
6057 | """ | |
54f9ee45 | 6058 | return _controls_.HelpEvent_GetTarget(*args, **kwargs) |
e811c8ce RD |
6059 | |
6060 | def SetTarget(*args, **kwargs): | |
15afbcd0 | 6061 | """ |
a95a7133 | 6062 | SetTarget(self, String target) |
15afbcd0 RD |
6063 | |
6064 | Set an optional target to display help in. E.g. a window specification | |
6065 | """ | |
54f9ee45 | 6066 | return _controls_.HelpEvent_SetTarget(*args, **kwargs) |
e811c8ce | 6067 | |
704eda0c RD |
6068 | def GetOrigin(*args, **kwargs): |
6069 | """ | |
6070 | GetOrigin(self) -> int | |
6071 | ||
6072 | Optiononal indication of the source of the event. | |
6073 | """ | |
6074 | return _controls_.HelpEvent_GetOrigin(*args, **kwargs) | |
6075 | ||
6076 | def SetOrigin(*args, **kwargs): | |
6077 | """SetOrigin(self, int origin)""" | |
6078 | return _controls_.HelpEvent_SetOrigin(*args, **kwargs) | |
6079 | ||
97ab0f6a RD |
6080 | Link = property(GetLink,SetLink,doc="See `GetLink` and `SetLink`") |
6081 | Origin = property(GetOrigin,SetOrigin,doc="See `GetOrigin` and `SetOrigin`") | |
6082 | Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`") | |
6083 | Target = property(GetTarget,SetTarget,doc="See `GetTarget` and `SetTarget`") | |
2131d850 | 6084 | _controls_.HelpEvent_swigregister(HelpEvent) |
d14a1e28 | 6085 | |
54f9ee45 | 6086 | class ContextHelp(_core.Object): |
15afbcd0 | 6087 | """ |
41e2b43e RD |
6088 | This class changes the cursor to a query and puts the application into |
6089 | a 'context-sensitive help mode'. When the user left-clicks on a window | |
6090 | within the specified window, a ``EVT_HELP`` event is sent to that | |
6091 | control, and the application may respond to it by popping up some | |
6092 | help. | |
15afbcd0 RD |
6093 | |
6094 | There are a couple of ways to invoke this behaviour implicitly: | |
6095 | ||
fc46b7f3 | 6096 | * Use the wx.WS_EX_CONTEXTHELP extended style for a dialog or frame |
41e2b43e RD |
6097 | (Windows only). This will put a question mark in the titlebar, |
6098 | and Windows will put the application into context-sensitive help | |
6099 | mode automatically, with further programming. | |
6100 | ||
6101 | * Create a `wx.ContextHelpButton`, whose predefined behaviour is | |
6102 | to create a context help object. Normally you will write your | |
6103 | application so that this button is only added to a dialog for | |
fc46b7f3 | 6104 | non-Windows platforms (use ``wx.WS_EX_CONTEXTHELP`` on |
41e2b43e | 6105 | Windows). |
15afbcd0 | 6106 | |
41e2b43e | 6107 | :see: `wx.ContextHelpButton` |
15afbcd0 RD |
6108 | |
6109 | """ | |
0085ce49 RD |
6110 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6111 | __repr__ = _swig_repr | |
6112 | def __init__(self, *args, **kwargs): | |
15afbcd0 | 6113 | """ |
a95a7133 | 6114 | __init__(self, Window window=None, bool doNow=True) -> ContextHelp |
15afbcd0 | 6115 | |
41e2b43e RD |
6116 | Constructs a context help object, calling BeginContextHelp if doNow is |
6117 | true (the default). | |
15afbcd0 RD |
6118 | |
6119 | If window is None, the top window is used. | |
6120 | """ | |
0085ce49 RD |
6121 | _controls_.ContextHelp_swiginit(self,_controls_.new_ContextHelp(*args, **kwargs)) |
6122 | __swig_destroy__ = _controls_.delete_ContextHelp | |
6123 | __del__ = lambda self : None; | |
e811c8ce | 6124 | def BeginContextHelp(*args, **kwargs): |
15afbcd0 | 6125 | """ |
a95a7133 | 6126 | BeginContextHelp(self, Window window=None) -> bool |
15afbcd0 | 6127 | |
41e2b43e RD |
6128 | Puts the application into context-sensitive help mode. window is the |
6129 | window which will be used to catch events; if NULL, the top window | |
6130 | will be used. | |
15afbcd0 RD |
6131 | |
6132 | Returns true if the application was successfully put into | |
41e2b43e RD |
6133 | context-sensitive help mode. This function only returns when the event |
6134 | loop has finished. | |
15afbcd0 | 6135 | """ |
54f9ee45 | 6136 | return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs) |
e811c8ce RD |
6137 | |
6138 | def EndContextHelp(*args, **kwargs): | |
15afbcd0 | 6139 | """ |
a95a7133 | 6140 | EndContextHelp(self) -> bool |
15afbcd0 RD |
6141 | |
6142 | Ends context-sensitive help mode. Not normally called by the | |
6143 | application. | |
6144 | """ | |
54f9ee45 | 6145 | return _controls_.ContextHelp_EndContextHelp(*args, **kwargs) |
e811c8ce | 6146 | |
2131d850 | 6147 | _controls_.ContextHelp_swigregister(ContextHelp) |
d14a1e28 RD |
6148 | |
6149 | class ContextHelpButton(BitmapButton): | |
15afbcd0 | 6150 | """ |
41e2b43e RD |
6151 | Instances of this class may be used to add a question mark button that |
6152 | when pressed, puts the application into context-help mode. It does | |
6153 | this by creating a wx.ContextHelp object which itself generates a | |
6154 | ``EVT_HELP`` event when the user clicks on a window. | |
6155 | ||
6156 | On Windows, you may add a question-mark icon to a dialog by use of the | |
6157 | ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you | |
6158 | will have to add a button explicitly, usually next to OK, Cancel or | |
6159 | similar buttons. | |
15afbcd0 | 6160 | |
41e2b43e | 6161 | :see: `wx.ContextHelp`, `wx.ContextHelpButton` |
15afbcd0 RD |
6162 | |
6163 | """ | |
0085ce49 RD |
6164 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6165 | __repr__ = _swig_repr | |
6166 | def __init__(self, *args, **kwargs): | |
0df68c9f | 6167 | """ |
a95a7133 | 6168 | __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, |
0df68c9f | 6169 | Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton |
15afbcd0 RD |
6170 | |
6171 | Constructor, creating and showing a context help button. | |
0df68c9f | 6172 | """ |
0085ce49 | 6173 | _controls_.ContextHelpButton_swiginit(self,_controls_.new_ContextHelpButton(*args, **kwargs)) |
d14a1e28 | 6174 | self._setOORInfo(self) |
e811c8ce | 6175 | |
2131d850 | 6176 | _controls_.ContextHelpButton_swigregister(ContextHelpButton) |
d14a1e28 RD |
6177 | |
6178 | class HelpProvider(object): | |
15afbcd0 RD |
6179 | """ |
6180 | wx.HelpProvider is an abstract class used by a program | |
6181 | implementing context-sensitive help to show the help text for the | |
6182 | given window. | |
6183 | ||
6184 | The current help provider must be explicitly set by the | |
6185 | application using wx.HelpProvider.Set(). | |
6186 | """ | |
0085ce49 RD |
6187 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6188 | def __init__(self): raise AttributeError, "No constructor defined" | |
6189 | __repr__ = _swig_repr | |
f52cbe90 RD |
6190 | __swig_destroy__ = _controls_.delete_HelpProvider |
6191 | __del__ = lambda self : None; | |
e811c8ce | 6192 | def Set(*args, **kwargs): |
15afbcd0 | 6193 | """ |
66c033b4 | 6194 | Set(HelpProvider helpProvider) -> HelpProvider |
15afbcd0 | 6195 | |
41e2b43e RD |
6196 | Sset the current, application-wide help provider. Returns the previous |
6197 | one. Unlike some other classes, the help provider is not created on | |
6198 | demand. This must be explicitly done by the application. | |
15afbcd0 | 6199 | """ |
54f9ee45 | 6200 | return _controls_.HelpProvider_Set(*args, **kwargs) |
e811c8ce RD |
6201 | |
6202 | Set = staticmethod(Set) | |
6203 | def Get(*args, **kwargs): | |
15afbcd0 | 6204 | """ |
66c033b4 | 6205 | Get() -> HelpProvider |
15afbcd0 RD |
6206 | |
6207 | Return the current application-wide help provider. | |
6208 | """ | |
54f9ee45 | 6209 | return _controls_.HelpProvider_Get(*args, **kwargs) |
e811c8ce RD |
6210 | |
6211 | Get = staticmethod(Get) | |
6212 | def GetHelp(*args, **kwargs): | |
15afbcd0 | 6213 | """ |
a95a7133 | 6214 | GetHelp(self, Window window) -> String |
15afbcd0 | 6215 | |
41e2b43e RD |
6216 | Gets the help string for this window. Its interpretation is dependent |
6217 | on the help provider except that empty string always means that no | |
6218 | help is associated with the window. | |
15afbcd0 | 6219 | """ |
54f9ee45 | 6220 | return _controls_.HelpProvider_GetHelp(*args, **kwargs) |
e811c8ce RD |
6221 | |
6222 | def ShowHelp(*args, **kwargs): | |
15afbcd0 | 6223 | """ |
a95a7133 | 6224 | ShowHelp(self, Window window) -> bool |
15afbcd0 RD |
6225 | |
6226 | Shows help for the given window. Uses GetHelp internally if | |
41e2b43e RD |
6227 | applicable. Returns True if it was done, or False if no help was |
6228 | available for this window. | |
15afbcd0 | 6229 | """ |
54f9ee45 | 6230 | return _controls_.HelpProvider_ShowHelp(*args, **kwargs) |
e811c8ce | 6231 | |
b850e7f3 RD |
6232 | def ShowHelpAtPoint(*args, **kwargs): |
6233 | """ | |
6234 | ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool | |
6235 | ||
6236 | Show help for the given window (uses window.GetHelpAtPoint() | |
6237 | internally if applicable), return true if it was done or false if no | |
6238 | help available for this window. | |
6239 | """ | |
6240 | return _controls_.HelpProvider_ShowHelpAtPoint(*args, **kwargs) | |
6241 | ||
e811c8ce | 6242 | def AddHelp(*args, **kwargs): |
15afbcd0 | 6243 | """ |
a95a7133 | 6244 | AddHelp(self, Window window, String text) |
15afbcd0 RD |
6245 | |
6246 | Associates the text with the given window. | |
6247 | """ | |
54f9ee45 | 6248 | return _controls_.HelpProvider_AddHelp(*args, **kwargs) |
e811c8ce RD |
6249 | |
6250 | def AddHelpById(*args, **kwargs): | |
15afbcd0 | 6251 | """ |
a95a7133 | 6252 | AddHelpById(self, int id, String text) |
15afbcd0 RD |
6253 | |
6254 | This version associates the given text with all windows with this | |
41e2b43e RD |
6255 | id. May be used to set the same help string for all Cancel buttons in |
6256 | the application, for example. | |
15afbcd0 | 6257 | """ |
54f9ee45 | 6258 | return _controls_.HelpProvider_AddHelpById(*args, **kwargs) |
e811c8ce | 6259 | |
15afbcd0 RD |
6260 | def RemoveHelp(*args, **kwargs): |
6261 | """ | |
a95a7133 | 6262 | RemoveHelp(self, Window window) |
15afbcd0 RD |
6263 | |
6264 | Removes the association between the window pointer and the help | |
41e2b43e RD |
6265 | text. This is called by the wx.Window destructor. Without this, the |
6266 | table of help strings will fill up and when window pointers are | |
6267 | reused, the wrong help string will be found. | |
15afbcd0 | 6268 | """ |
54f9ee45 | 6269 | return _controls_.HelpProvider_RemoveHelp(*args, **kwargs) |
15afbcd0 | 6270 | |
e811c8ce | 6271 | def Destroy(*args, **kwargs): |
a95a7133 | 6272 | """Destroy(self)""" |
b39fe951 RD |
6273 | args[0].this.own(False) |
6274 | return _controls_.HelpProvider_Destroy(*args, **kwargs) | |
e811c8ce | 6275 | |
2131d850 | 6276 | _controls_.HelpProvider_swigregister(HelpProvider) |
d14a1e28 | 6277 | |
e811c8ce | 6278 | def HelpProvider_Set(*args, **kwargs): |
0085ce49 | 6279 | """ |
15afbcd0 RD |
6280 | HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider |
6281 | ||
41e2b43e RD |
6282 | Sset the current, application-wide help provider. Returns the previous |
6283 | one. Unlike some other classes, the help provider is not created on | |
6284 | demand. This must be explicitly done by the application. | |
15afbcd0 | 6285 | """ |
0085ce49 | 6286 | return _controls_.HelpProvider_Set(*args, **kwargs) |
7a9b33db | 6287 | |
0085ce49 RD |
6288 | def HelpProvider_Get(*args): |
6289 | """ | |
15afbcd0 RD |
6290 | HelpProvider_Get() -> HelpProvider |
6291 | ||
6292 | Return the current application-wide help provider. | |
6293 | """ | |
0085ce49 | 6294 | return _controls_.HelpProvider_Get(*args) |
d14a1e28 RD |
6295 | |
6296 | class SimpleHelpProvider(HelpProvider): | |
15afbcd0 | 6297 | """ |
41e2b43e RD |
6298 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
6299 | supports only plain text help strings, and shows the string associated | |
6300 | with the control (if any) in a tooltip. | |
15afbcd0 | 6301 | """ |
0085ce49 RD |
6302 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6303 | __repr__ = _swig_repr | |
6304 | def __init__(self, *args, **kwargs): | |
15afbcd0 | 6305 | """ |
a95a7133 | 6306 | __init__(self) -> SimpleHelpProvider |
15afbcd0 | 6307 | |
41e2b43e RD |
6308 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which |
6309 | supports only plain text help strings, and shows the string associated | |
6310 | with the control (if any) in a tooltip. | |
15afbcd0 | 6311 | """ |
0085ce49 | 6312 | _controls_.SimpleHelpProvider_swiginit(self,_controls_.new_SimpleHelpProvider(*args, **kwargs)) |
2131d850 | 6313 | _controls_.SimpleHelpProvider_swigregister(SimpleHelpProvider) |
70551f47 | 6314 | |
e811c8ce RD |
6315 | #--------------------------------------------------------------------------- |
6316 | ||
54f9ee45 | 6317 | class DragImage(_core.Object): |
093d3ff1 | 6318 | """Proxy of C++ DragImage class""" |
0085ce49 RD |
6319 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6320 | __repr__ = _swig_repr | |
6321 | def __init__(self, *args, **kwargs): | |
a95a7133 | 6322 | """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" |
0085ce49 RD |
6323 | _controls_.DragImage_swiginit(self,_controls_.new_DragImage(*args, **kwargs)) |
6324 | __swig_destroy__ = _controls_.delete_DragImage | |
6325 | __del__ = lambda self : None; | |
e811c8ce | 6326 | def SetBackingBitmap(*args, **kwargs): |
a95a7133 | 6327 | """SetBackingBitmap(self, Bitmap bitmap)""" |
54f9ee45 | 6328 | return _controls_.DragImage_SetBackingBitmap(*args, **kwargs) |
e811c8ce RD |
6329 | |
6330 | def BeginDrag(*args, **kwargs): | |
0df68c9f | 6331 | """ |
a95a7133 | 6332 | BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, |
0df68c9f RD |
6333 | Rect rect=None) -> bool |
6334 | """ | |
54f9ee45 | 6335 | return _controls_.DragImage_BeginDrag(*args, **kwargs) |
e811c8ce RD |
6336 | |
6337 | def BeginDragBounded(*args, **kwargs): | |
a95a7133 | 6338 | """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" |
54f9ee45 | 6339 | return _controls_.DragImage_BeginDragBounded(*args, **kwargs) |
e811c8ce RD |
6340 | |
6341 | def EndDrag(*args, **kwargs): | |
a95a7133 | 6342 | """EndDrag(self) -> bool""" |
54f9ee45 | 6343 | return _controls_.DragImage_EndDrag(*args, **kwargs) |
e811c8ce RD |
6344 | |
6345 | def Move(*args, **kwargs): | |
a95a7133 | 6346 | """Move(self, Point pt) -> bool""" |
54f9ee45 | 6347 | return _controls_.DragImage_Move(*args, **kwargs) |
e811c8ce RD |
6348 | |
6349 | def Show(*args, **kwargs): | |
a95a7133 | 6350 | """Show(self) -> bool""" |
54f9ee45 | 6351 | return _controls_.DragImage_Show(*args, **kwargs) |
e811c8ce RD |
6352 | |
6353 | def Hide(*args, **kwargs): | |
a95a7133 | 6354 | """Hide(self) -> bool""" |
54f9ee45 | 6355 | return _controls_.DragImage_Hide(*args, **kwargs) |
e811c8ce RD |
6356 | |
6357 | def GetImageRect(*args, **kwargs): | |
a95a7133 | 6358 | """GetImageRect(self, Point pos) -> Rect""" |
54f9ee45 | 6359 | return _controls_.DragImage_GetImageRect(*args, **kwargs) |
e811c8ce RD |
6360 | |
6361 | def DoDrawImage(*args, **kwargs): | |
a95a7133 | 6362 | """DoDrawImage(self, DC dc, Point pos) -> bool""" |
54f9ee45 | 6363 | return _controls_.DragImage_DoDrawImage(*args, **kwargs) |
e811c8ce RD |
6364 | |
6365 | def UpdateBackingFromWindow(*args, **kwargs): | |
a95a7133 | 6366 | """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" |
54f9ee45 | 6367 | return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs) |
e811c8ce RD |
6368 | |
6369 | def RedrawImage(*args, **kwargs): | |
a95a7133 | 6370 | """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" |
54f9ee45 | 6371 | return _controls_.DragImage_RedrawImage(*args, **kwargs) |
e811c8ce | 6372 | |
2bf58437 | 6373 | ImageRect = property(GetImageRect,doc="See `GetImageRect`") |
2131d850 | 6374 | _controls_.DragImage_swigregister(DragImage) |
e811c8ce RD |
6375 | |
6376 | def DragIcon(*args, **kwargs): | |
b2dc1044 | 6377 | """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" |
54f9ee45 | 6378 | val = _controls_.new_DragIcon(*args, **kwargs) |
e811c8ce RD |
6379 | return val |
6380 | ||
6381 | def DragString(*args, **kwargs): | |
196addbf | 6382 | """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" |
54f9ee45 | 6383 | val = _controls_.new_DragString(*args, **kwargs) |
e811c8ce RD |
6384 | return val |
6385 | ||
6386 | def DragTreeItem(*args, **kwargs): | |
6387 | """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" | |
54f9ee45 | 6388 | val = _controls_.new_DragTreeItem(*args, **kwargs) |
e811c8ce RD |
6389 | return val |
6390 | ||
6391 | def DragListItem(*args, **kwargs): | |
6392 | """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" | |
54f9ee45 | 6393 | val = _controls_.new_DragListItem(*args, **kwargs) |
e811c8ce RD |
6394 | return val |
6395 | ||
53aa7709 RD |
6396 | #--------------------------------------------------------------------------- |
6397 | ||
6398 | DP_DEFAULT = _controls_.DP_DEFAULT | |
6399 | DP_SPIN = _controls_.DP_SPIN | |
6400 | DP_DROPDOWN = _controls_.DP_DROPDOWN | |
6401 | DP_SHOWCENTURY = _controls_.DP_SHOWCENTURY | |
6402 | DP_ALLOWNONE = _controls_.DP_ALLOWNONE | |
6403 | class DatePickerCtrl(_core.Control): | |
6404 | """ | |
6405 | This control allows the user to select a date. Unlike | |
6406 | `wx.calendar.CalendarCtrl`, which is a relatively big control, | |
6407 | `wx.DatePickerCtrl` is implemented as a small window showing the | |
6408 | currently selected date. The control can be edited using the keyboard, | |
6409 | and can also display a popup window for more user-friendly date | |
6410 | selection, depending on the styles used and the platform. | |
6411 | """ | |
0085ce49 RD |
6412 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
6413 | __repr__ = _swig_repr | |
6414 | def __init__(self, *args, **kwargs): | |
53aa7709 RD |
6415 | """ |
6416 | __init__(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6417 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6418 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6419 | Validator validator=DefaultValidator, | |
6420 | String name=DatePickerCtrlNameStr) -> DatePickerCtrl | |
6421 | ||
6422 | Create a new DatePickerCtrl. | |
6423 | """ | |
0085ce49 | 6424 | _controls_.DatePickerCtrl_swiginit(self,_controls_.new_DatePickerCtrl(*args, **kwargs)) |
53aa7709 RD |
6425 | self._setOORInfo(self) |
6426 | ||
6427 | def Create(*args, **kwargs): | |
6428 | """ | |
6429 | Create(self, Window parent, int id=-1, DateTime dt=wxDefaultDateTime, | |
6430 | Point pos=DefaultPosition, Size size=DefaultSize, | |
6431 | long style=wxDP_DEFAULT|wxDP_SHOWCENTURY, | |
6432 | Validator validator=DefaultValidator, | |
6433 | String name=DatePickerCtrlNameStr) -> bool | |
6434 | ||
6435 | Create the GUI parts of the DatePickerCtrl, for use in 2-phase | |
6436 | creation. | |
6437 | """ | |
6438 | return _controls_.DatePickerCtrl_Create(*args, **kwargs) | |
6439 | ||
6440 | def SetValue(*args, **kwargs): | |
6441 | """ | |
6442 | SetValue(self, DateTime dt) | |
6443 | ||
6444 | Changes the current value of the control. The date should be valid and | |
6445 | included in the currently selected range, if any. | |
6446 | ||
6447 | Calling this method does not result in a date change event. | |
6448 | """ | |
6449 | return _controls_.DatePickerCtrl_SetValue(*args, **kwargs) | |
6450 | ||
6451 | def GetValue(*args, **kwargs): | |
6452 | """ | |
6453 | GetValue(self) -> DateTime | |
6454 | ||
6455 | Returns the currently selected date. If there is no selection or the | |
6456 | selection is outside of the current range, an invalid `wx.DateTime` | |
6457 | object is returned. | |
6458 | """ | |
6459 | return _controls_.DatePickerCtrl_GetValue(*args, **kwargs) | |
6460 | ||
6461 | def SetRange(*args, **kwargs): | |
6462 | """ | |
6463 | SetRange(self, DateTime dt1, DateTime dt2) | |
6464 | ||
6465 | Sets the valid range for the date selection. If dt1 is valid, it | |
6466 | becomes the earliest date (inclusive) accepted by the control. If dt2 | |
6467 | is valid, it becomes the latest possible date. | |
6468 | ||
6469 | If the current value of the control is outside of the newly set range | |
6470 | bounds, the behaviour is undefined. | |
6471 | """ | |
6472 | return _controls_.DatePickerCtrl_SetRange(*args, **kwargs) | |
6473 | ||
6474 | def GetLowerLimit(*args, **kwargs): | |
6475 | """ | |
6476 | GetLowerLimit(self) -> DateTime | |
6477 | ||
6478 | Get the lower limit of the valid range for the date selection, if any. | |
6479 | If there is no range or there is no lower limit, then the | |
6480 | `wx.DateTime` value returned will be invalid. | |
6481 | """ | |
6482 | return _controls_.DatePickerCtrl_GetLowerLimit(*args, **kwargs) | |
6483 | ||
6484 | def GetUpperLimit(*args, **kwargs): | |
6485 | """ | |
6486 | GetUpperLimit(self) -> DateTime | |
6487 | ||
6488 | Get the upper limit of the valid range for the date selection, if any. | |
6489 | If there is no range or there is no upper limit, then the | |
6490 | `wx.DateTime` value returned will be invalid. | |
6491 | """ | |
6492 | return _controls_.DatePickerCtrl_GetUpperLimit(*args, **kwargs) | |
6493 | ||
2bf58437 RD |
6494 | LowerLimit = property(GetLowerLimit,doc="See `GetLowerLimit`") |
6495 | UpperLimit = property(GetUpperLimit,doc="See `GetUpperLimit`") | |
6496 | Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") | |
2131d850 | 6497 | _controls_.DatePickerCtrl_swigregister(DatePickerCtrl) |
53aa7709 RD |
6498 | DatePickerCtrlNameStr = cvar.DatePickerCtrlNameStr |
6499 | ||
6500 | def PreDatePickerCtrl(*args, **kwargs): | |
6501 | """ | |
6502 | PreDatePickerCtrl() -> DatePickerCtrl | |
6503 | ||
6504 | Precreate a DatePickerCtrl for use in 2-phase creation. | |
6505 | """ | |
6506 | val = _controls_.new_PreDatePickerCtrl(*args, **kwargs) | |
53aa7709 RD |
6507 | return val |
6508 | ||
704eda0c | 6509 | HL_CONTEXTMENU = _controls_.HL_CONTEXTMENU |
33d6fd3b RD |
6510 | HL_ALIGN_LEFT = _controls_.HL_ALIGN_LEFT |
6511 | HL_ALIGN_RIGHT = _controls_.HL_ALIGN_RIGHT | |
6512 | HL_ALIGN_CENTRE = _controls_.HL_ALIGN_CENTRE | |
704eda0c RD |
6513 | HL_DEFAULT_STYLE = _controls_.HL_DEFAULT_STYLE |
6514 | #--------------------------------------------------------------------------- | |
6515 | ||
6516 | class HyperlinkCtrl(_core.Control): | |
6517 | """ | |
6518 | A static text control that emulates a hyperlink. The link is displayed | |
6519 | in an appropriate text style, derived from the control's normal font. | |
6520 | When the mouse rolls over the link, the cursor changes to a hand and | |
6521 | the link's color changes to the active color. | |
6522 | ||
6523 | Clicking on the link does not launch a web browser; instead, a | |
6524 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6525 | events. | |
6526 | ||
6527 | """ | |
6528 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6529 | __repr__ = _swig_repr | |
6530 | def __init__(self, *args, **kwargs): | |
6531 | """ | |
6532 | __init__(self, Window parent, int id, String label, String url, Point pos=DefaultPosition, | |
6533 | Size size=DefaultSize, | |
6534 | long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> HyperlinkCtrl | |
6535 | ||
6536 | A static text control that emulates a hyperlink. The link is displayed | |
6537 | in an appropriate text style, derived from the control's normal font. | |
6538 | When the mouse rolls over the link, the cursor changes to a hand and | |
6539 | the link's color changes to the active color. | |
6540 | ||
6541 | Clicking on the link does not launch a web browser; instead, a | |
6542 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6543 | events. | |
6544 | ||
6545 | """ | |
6546 | _controls_.HyperlinkCtrl_swiginit(self,_controls_.new_HyperlinkCtrl(*args, **kwargs)) | |
6547 | self._setOORInfo(self) | |
6548 | ||
6549 | def Create(*args, **kwargs): | |
6550 | """ | |
6551 | Create(self, Window parent, int id, String label, String url, Point pos=DefaultPosition, | |
6552 | Size size=DefaultSize, | |
6553 | long style=HL_DEFAULT_STYLE, String name=HyperlinkCtrlNameStr) -> bool | |
6554 | """ | |
6555 | return _controls_.HyperlinkCtrl_Create(*args, **kwargs) | |
6556 | ||
6557 | def GetHoverColour(*args, **kwargs): | |
6558 | """GetHoverColour(self) -> Colour""" | |
6559 | return _controls_.HyperlinkCtrl_GetHoverColour(*args, **kwargs) | |
6560 | ||
6561 | def SetHoverColour(*args, **kwargs): | |
6562 | """SetHoverColour(self, Colour colour)""" | |
6563 | return _controls_.HyperlinkCtrl_SetHoverColour(*args, **kwargs) | |
6564 | ||
6565 | def GetNormalColour(*args, **kwargs): | |
6566 | """GetNormalColour(self) -> Colour""" | |
6567 | return _controls_.HyperlinkCtrl_GetNormalColour(*args, **kwargs) | |
6568 | ||
6569 | def SetNormalColour(*args, **kwargs): | |
6570 | """SetNormalColour(self, Colour colour)""" | |
6571 | return _controls_.HyperlinkCtrl_SetNormalColour(*args, **kwargs) | |
6572 | ||
6573 | def GetVisitedColour(*args, **kwargs): | |
6574 | """GetVisitedColour(self) -> Colour""" | |
6575 | return _controls_.HyperlinkCtrl_GetVisitedColour(*args, **kwargs) | |
6576 | ||
6577 | def SetVisitedColour(*args, **kwargs): | |
6578 | """SetVisitedColour(self, Colour colour)""" | |
6579 | return _controls_.HyperlinkCtrl_SetVisitedColour(*args, **kwargs) | |
6580 | ||
6581 | def GetURL(*args, **kwargs): | |
6582 | """GetURL(self) -> String""" | |
6583 | return _controls_.HyperlinkCtrl_GetURL(*args, **kwargs) | |
6584 | ||
6585 | def SetURL(*args, **kwargs): | |
6586 | """SetURL(self, String url)""" | |
6587 | return _controls_.HyperlinkCtrl_SetURL(*args, **kwargs) | |
6588 | ||
6589 | def SetVisited(*args, **kwargs): | |
6590 | """SetVisited(self, bool visited=True)""" | |
6591 | return _controls_.HyperlinkCtrl_SetVisited(*args, **kwargs) | |
6592 | ||
6593 | def GetVisited(*args, **kwargs): | |
6594 | """GetVisited(self) -> bool""" | |
6595 | return _controls_.HyperlinkCtrl_GetVisited(*args, **kwargs) | |
6596 | ||
97ab0f6a RD |
6597 | HoverColour = property(GetHoverColour,SetHoverColour,doc="See `GetHoverColour` and `SetHoverColour`") |
6598 | NormalColour = property(GetNormalColour,SetNormalColour,doc="See `GetNormalColour` and `SetNormalColour`") | |
6599 | URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`") | |
6600 | Visited = property(GetVisited,SetVisited,doc="See `GetVisited` and `SetVisited`") | |
6601 | VisitedColour = property(GetVisitedColour,SetVisitedColour,doc="See `GetVisitedColour` and `SetVisitedColour`") | |
704eda0c RD |
6602 | _controls_.HyperlinkCtrl_swigregister(HyperlinkCtrl) |
6603 | HyperlinkCtrlNameStr = cvar.HyperlinkCtrlNameStr | |
6604 | ||
6605 | def PreHyperlinkCtrl(*args, **kwargs): | |
6606 | """ | |
6607 | PreHyperlinkCtrl() -> HyperlinkCtrl | |
6608 | ||
6609 | A static text control that emulates a hyperlink. The link is displayed | |
6610 | in an appropriate text style, derived from the control's normal font. | |
6611 | When the mouse rolls over the link, the cursor changes to a hand and | |
6612 | the link's color changes to the active color. | |
6613 | ||
6614 | Clicking on the link does not launch a web browser; instead, a | |
6615 | wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link | |
6616 | events. | |
6617 | ||
6618 | """ | |
6619 | val = _controls_.new_PreHyperlinkCtrl(*args, **kwargs) | |
6620 | return val | |
6621 | ||
6622 | wxEVT_COMMAND_HYPERLINK = _controls_.wxEVT_COMMAND_HYPERLINK | |
6623 | class HyperlinkEvent(_core.CommandEvent): | |
6624 | """Proxy of C++ HyperlinkEvent class""" | |
6625 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6626 | __repr__ = _swig_repr | |
6627 | def __init__(self, *args, **kwargs): | |
6628 | """__init__(self, Object generator, int id, String url) -> HyperlinkEvent""" | |
6629 | _controls_.HyperlinkEvent_swiginit(self,_controls_.new_HyperlinkEvent(*args, **kwargs)) | |
6630 | def GetURL(*args, **kwargs): | |
6631 | """GetURL(self) -> String""" | |
6632 | return _controls_.HyperlinkEvent_GetURL(*args, **kwargs) | |
6633 | ||
6634 | def SetURL(*args, **kwargs): | |
6635 | """SetURL(self, String url)""" | |
6636 | return _controls_.HyperlinkEvent_SetURL(*args, **kwargs) | |
6637 | ||
97ab0f6a | 6638 | URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`") |
704eda0c RD |
6639 | _controls_.HyperlinkEvent_swigregister(HyperlinkEvent) |
6640 | ||
6641 | EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 ) | |
6642 | ||
b850e7f3 RD |
6643 | #--------------------------------------------------------------------------- |
6644 | ||
6645 | PB_USE_TEXTCTRL = _controls_.PB_USE_TEXTCTRL | |
6646 | class PickerBase(_core.Control): | |
6647 | """ | |
6648 | Base abstract class for all pickers which support an auxiliary text | |
6649 | control. This class handles all positioning and sizing of the text | |
6650 | control like a an horizontal `wx.BoxSizer` would do, with the text | |
6651 | control on the left of the picker button and the proportion of the | |
6652 | picker fixed to value 1. | |
6653 | """ | |
6654 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6655 | def __init__(self): raise AttributeError, "No constructor defined" | |
6656 | __repr__ = _swig_repr | |
6657 | def CreateBase(*args, **kwargs): | |
6658 | """ | |
6659 | CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition, | |
6660 | Size size=DefaultSize, | |
6661 | long style=0, Validator validator=DefaultValidator, | |
6662 | String name=wxButtonNameStr) -> bool | |
6663 | """ | |
6664 | return _controls_.PickerBase_CreateBase(*args, **kwargs) | |
6665 | ||
6666 | def SetInternalMargin(*args, **kwargs): | |
6667 | """ | |
6668 | SetInternalMargin(self, int newmargin) | |
6669 | ||
6670 | Sets the margin (in pixels) between the picker and the text control. | |
6671 | """ | |
6672 | return _controls_.PickerBase_SetInternalMargin(*args, **kwargs) | |
6673 | ||
6674 | def GetInternalMargin(*args, **kwargs): | |
6675 | """ | |
6676 | GetInternalMargin(self) -> int | |
6677 | ||
6678 | Returns the margin (in pixels) between the picker and the text | |
6679 | control. | |
6680 | """ | |
6681 | return _controls_.PickerBase_GetInternalMargin(*args, **kwargs) | |
6682 | ||
6683 | def SetTextCtrlProportion(*args, **kwargs): | |
6684 | """ | |
6685 | SetTextCtrlProportion(self, int prop) | |
6686 | ||
6687 | Sets the proportion between the text control and the picker button. | |
6688 | This is used to set relative sizes of the text contorl and the picker. | |
6689 | The value passed to this function must be >= 1. | |
6690 | """ | |
6691 | return _controls_.PickerBase_SetTextCtrlProportion(*args, **kwargs) | |
6692 | ||
6693 | def GetTextCtrlProportion(*args, **kwargs): | |
6694 | """ | |
6695 | GetTextCtrlProportion(self) -> int | |
6696 | ||
6697 | Returns the proportion between the text control and the picker. | |
6698 | """ | |
6699 | return _controls_.PickerBase_GetTextCtrlProportion(*args, **kwargs) | |
6700 | ||
10044bf1 RD |
6701 | def SetPickerCtrlProportion(*args, **kwargs): |
6702 | """ | |
6703 | SetPickerCtrlProportion(self, int prop) | |
6704 | ||
6705 | Sets the proportion value of the picker. | |
6706 | """ | |
6707 | return _controls_.PickerBase_SetPickerCtrlProportion(*args, **kwargs) | |
6708 | ||
6709 | def GetPickerCtrlProportion(*args, **kwargs): | |
6710 | """ | |
6711 | GetPickerCtrlProportion(self) -> int | |
6712 | ||
6713 | Gets the proportion value of the picker. | |
6714 | """ | |
6715 | return _controls_.PickerBase_GetPickerCtrlProportion(*args, **kwargs) | |
6716 | ||
b02396e8 RD |
6717 | def IsTextCtrlGrowable(*args, **kwargs): |
6718 | """IsTextCtrlGrowable(self) -> bool""" | |
6719 | return _controls_.PickerBase_IsTextCtrlGrowable(*args, **kwargs) | |
6720 | ||
6721 | def SetTextCtrlGrowable(*args, **kwargs): | |
6722 | """SetTextCtrlGrowable(self, bool grow=True)""" | |
6723 | return _controls_.PickerBase_SetTextCtrlGrowable(*args, **kwargs) | |
6724 | ||
6725 | def IsPickerCtrlGrowable(*args, **kwargs): | |
6726 | """IsPickerCtrlGrowable(self) -> bool""" | |
6727 | return _controls_.PickerBase_IsPickerCtrlGrowable(*args, **kwargs) | |
6728 | ||
6729 | def SetPickerCtrlGrowable(*args, **kwargs): | |
6730 | """SetPickerCtrlGrowable(self, bool grow=True)""" | |
6731 | return _controls_.PickerBase_SetPickerCtrlGrowable(*args, **kwargs) | |
6732 | ||
b850e7f3 RD |
6733 | def HasTextCtrl(*args, **kwargs): |
6734 | """ | |
6735 | HasTextCtrl(self) -> bool | |
6736 | ||
6737 | Returns true if this class has a valid text control (i.e. if the | |
6738 | wx.PB_USE_TEXTCTRL style was given when creating this control). | |
6739 | """ | |
6740 | return _controls_.PickerBase_HasTextCtrl(*args, **kwargs) | |
6741 | ||
6742 | def GetTextCtrl(*args, **kwargs): | |
6743 | """ | |
6744 | GetTextCtrl(self) -> TextCtrl | |
6745 | ||
6746 | Returns a pointer to the text control handled by this class or None if | |
6747 | the wx.PB_USE_TEXTCTRL style was not specified when this control was | |
6748 | created. | |
6749 | ||
6750 | Very important: the contents of the text control could be containing | |
6751 | an invalid representation of the entity which can be chosen through | |
6752 | the picker (e.g. the user entered an invalid colour syntax because of | |
6753 | a typo). Thus you should never parse the content of the textctrl to | |
6754 | get the user's input; rather use the derived-class getter | |
6755 | (e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`, | |
6756 | etc). | |
6757 | """ | |
6758 | return _controls_.PickerBase_GetTextCtrl(*args, **kwargs) | |
6759 | ||
6760 | def GetPickerCtrl(*args, **kwargs): | |
6761 | """GetPickerCtrl(self) -> Control""" | |
6762 | return _controls_.PickerBase_GetPickerCtrl(*args, **kwargs) | |
6763 | ||
33d6fd3b RD |
6764 | InternalMargin = property(GetInternalMargin,SetInternalMargin,doc="See `GetInternalMargin` and `SetInternalMargin`") |
6765 | PickerCtrl = property(GetPickerCtrl,doc="See `GetPickerCtrl`") | |
6766 | PickerCtrlProportion = property(GetPickerCtrlProportion,SetPickerCtrlProportion,doc="See `GetPickerCtrlProportion` and `SetPickerCtrlProportion`") | |
6767 | TextCtrl = property(GetTextCtrl,doc="See `GetTextCtrl`") | |
6768 | TextCtrlProportion = property(GetTextCtrlProportion,SetTextCtrlProportion,doc="See `GetTextCtrlProportion` and `SetTextCtrlProportion`") | |
6769 | TextCtrlGrowable = property(IsTextCtrlGrowable,SetTextCtrlGrowable,doc="See `IsTextCtrlGrowable` and `SetTextCtrlGrowable`") | |
6770 | PickerCtrlGrowable = property(IsPickerCtrlGrowable,SetPickerCtrlGrowable,doc="See `IsPickerCtrlGrowable` and `SetPickerCtrlGrowable`") | |
b850e7f3 RD |
6771 | _controls_.PickerBase_swigregister(PickerBase) |
6772 | ||
6773 | #--------------------------------------------------------------------------- | |
6774 | ||
6775 | CLRP_SHOW_LABEL = _controls_.CLRP_SHOW_LABEL | |
6776 | CLRP_USE_TEXTCTRL = _controls_.CLRP_USE_TEXTCTRL | |
6777 | CLRP_DEFAULT_STYLE = _controls_.CLRP_DEFAULT_STYLE | |
6778 | class ColourPickerCtrl(PickerBase): | |
6779 | """ | |
6780 | This control allows the user to select a colour. The generic | |
6781 | implementation is a button which brings up a `wx.ColourDialog` when | |
6782 | clicked. Native implementations may differ but this is usually a | |
6783 | (small) widget which give access to the colour-chooser dialog. | |
6784 | """ | |
6785 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6786 | __repr__ = _swig_repr | |
6787 | def __init__(self, *args, **kwargs): | |
6788 | """ | |
6789 | __init__(self, Window parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition, | |
6790 | Size size=DefaultSize, | |
6791 | long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6792 | String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl | |
6793 | ||
6794 | This control allows the user to select a colour. The generic | |
6795 | implementation is a button which brings up a `wx.ColourDialog` when | |
6796 | clicked. Native implementations may differ but this is usually a | |
6797 | (small) widget which give access to the colour-chooser dialog. | |
6798 | """ | |
6799 | _controls_.ColourPickerCtrl_swiginit(self,_controls_.new_ColourPickerCtrl(*args, **kwargs)) | |
6800 | self._setOORInfo(self) | |
6801 | ||
6802 | def Create(*args, **kwargs): | |
6803 | """ | |
6804 | Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition, | |
6805 | Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE, | |
6806 | Validator validator=DefaultValidator, | |
6807 | String name=ColourPickerCtrlNameStr) -> bool | |
6808 | """ | |
6809 | return _controls_.ColourPickerCtrl_Create(*args, **kwargs) | |
6810 | ||
6811 | def GetColour(*args, **kwargs): | |
6812 | """ | |
6813 | GetColour(self) -> Colour | |
6814 | ||
6815 | Returns the currently selected colour. | |
6816 | """ | |
6817 | return _controls_.ColourPickerCtrl_GetColour(*args, **kwargs) | |
6818 | ||
6819 | def SetColour(*args, **kwargs): | |
6820 | """ | |
6821 | SetColour(self, Colour col) | |
6822 | ||
6823 | Set the displayed colour. | |
6824 | """ | |
6825 | return _controls_.ColourPickerCtrl_SetColour(*args, **kwargs) | |
6826 | ||
2bf58437 | 6827 | Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") |
b850e7f3 RD |
6828 | _controls_.ColourPickerCtrl_swigregister(ColourPickerCtrl) |
6829 | ColourPickerCtrlNameStr = cvar.ColourPickerCtrlNameStr | |
6830 | ||
6831 | def PreColourPickerCtrl(*args, **kwargs): | |
6832 | """ | |
6833 | PreColourPickerCtrl() -> ColourPickerCtrl | |
6834 | ||
6835 | This control allows the user to select a colour. The generic | |
6836 | implementation is a button which brings up a `wx.ColourDialog` when | |
6837 | clicked. Native implementations may differ but this is usually a | |
6838 | (small) widget which give access to the colour-chooser dialog. | |
6839 | """ | |
6840 | val = _controls_.new_PreColourPickerCtrl(*args, **kwargs) | |
6841 | return val | |
6842 | ||
6843 | wxEVT_COMMAND_COLOURPICKER_CHANGED = _controls_.wxEVT_COMMAND_COLOURPICKER_CHANGED | |
6844 | EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED, 1 ) | |
6845 | ||
6846 | class ColourPickerEvent(_core.CommandEvent): | |
6847 | """Proxy of C++ ColourPickerEvent class""" | |
6848 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6849 | __repr__ = _swig_repr | |
6850 | def __init__(self, *args, **kwargs): | |
6851 | """__init__(self, Object generator, int id, Colour col) -> ColourPickerEvent""" | |
6852 | _controls_.ColourPickerEvent_swiginit(self,_controls_.new_ColourPickerEvent(*args, **kwargs)) | |
6853 | def GetColour(*args, **kwargs): | |
6854 | """GetColour(self) -> Colour""" | |
6855 | return _controls_.ColourPickerEvent_GetColour(*args, **kwargs) | |
6856 | ||
6857 | def SetColour(*args, **kwargs): | |
6858 | """SetColour(self, Colour c)""" | |
6859 | return _controls_.ColourPickerEvent_SetColour(*args, **kwargs) | |
6860 | ||
2bf58437 | 6861 | Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") |
b850e7f3 RD |
6862 | _controls_.ColourPickerEvent_swigregister(ColourPickerEvent) |
6863 | ||
6864 | #--------------------------------------------------------------------------- | |
6865 | ||
6866 | FLP_OPEN = _controls_.FLP_OPEN | |
6867 | FLP_SAVE = _controls_.FLP_SAVE | |
6868 | FLP_OVERWRITE_PROMPT = _controls_.FLP_OVERWRITE_PROMPT | |
6869 | FLP_FILE_MUST_EXIST = _controls_.FLP_FILE_MUST_EXIST | |
6870 | FLP_CHANGE_DIR = _controls_.FLP_CHANGE_DIR | |
6871 | DIRP_DIR_MUST_EXIST = _controls_.DIRP_DIR_MUST_EXIST | |
6872 | DIRP_CHANGE_DIR = _controls_.DIRP_CHANGE_DIR | |
6873 | FLP_USE_TEXTCTRL = _controls_.FLP_USE_TEXTCTRL | |
6874 | FLP_DEFAULT_STYLE = _controls_.FLP_DEFAULT_STYLE | |
6875 | DIRP_USE_TEXTCTRL = _controls_.DIRP_USE_TEXTCTRL | |
6876 | DIRP_DEFAULT_STYLE = _controls_.DIRP_DEFAULT_STYLE | |
6877 | class FilePickerCtrl(PickerBase): | |
6878 | """Proxy of C++ FilePickerCtrl class""" | |
6879 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6880 | __repr__ = _swig_repr | |
6881 | def __init__(self, *args, **kwargs): | |
6882 | """ | |
6883 | __init__(self, Window parent, int id=-1, String path=EmptyString, | |
6884 | String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr, | |
6885 | Point pos=DefaultPosition, | |
6886 | Size size=DefaultSize, | |
6887 | long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6888 | String name=FilePickerCtrlNameStr) -> FilePickerCtrl | |
6889 | """ | |
6890 | _controls_.FilePickerCtrl_swiginit(self,_controls_.new_FilePickerCtrl(*args, **kwargs)) | |
6891 | self._setOORInfo(self) | |
6892 | ||
6893 | def Create(*args, **kwargs): | |
6894 | """ | |
6895 | Create(self, Window parent, int id=-1, String path=EmptyString, | |
6896 | String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr, | |
6897 | Point pos=DefaultPosition, | |
6898 | Size size=DefaultSize, | |
6899 | long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
6900 | String name=FilePickerCtrlNameStr) -> bool | |
6901 | """ | |
6902 | return _controls_.FilePickerCtrl_Create(*args, **kwargs) | |
6903 | ||
6904 | def GetPath(*args, **kwargs): | |
6905 | """GetPath(self) -> String""" | |
6906 | return _controls_.FilePickerCtrl_GetPath(*args, **kwargs) | |
6907 | ||
6908 | def SetPath(*args, **kwargs): | |
6909 | """SetPath(self, String str)""" | |
6910 | return _controls_.FilePickerCtrl_SetPath(*args, **kwargs) | |
6911 | ||
b02396e8 RD |
6912 | def CheckPath(*args, **kwargs): |
6913 | """CheckPath(self, String path) -> bool""" | |
6914 | return _controls_.FilePickerCtrl_CheckPath(*args, **kwargs) | |
6915 | ||
6916 | def GetTextCtrlValue(*args, **kwargs): | |
6917 | """GetTextCtrlValue(self) -> String""" | |
6918 | return _controls_.FilePickerCtrl_GetTextCtrlValue(*args, **kwargs) | |
6919 | ||
97ab0f6a RD |
6920 | Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") |
6921 | TextCtrlValue = property(GetTextCtrlValue,doc="See `GetTextCtrlValue`") | |
b850e7f3 RD |
6922 | _controls_.FilePickerCtrl_swigregister(FilePickerCtrl) |
6923 | FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr | |
6924 | FileSelectorPromptStr = cvar.FileSelectorPromptStr | |
6925 | DirPickerCtrlNameStr = cvar.DirPickerCtrlNameStr | |
6926 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
6927 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
6928 | ||
6929 | def PreFilePickerCtrl(*args, **kwargs): | |
6930 | """PreFilePickerCtrl() -> FilePickerCtrl""" | |
6931 | val = _controls_.new_PreFilePickerCtrl(*args, **kwargs) | |
6932 | return val | |
6933 | ||
6934 | class DirPickerCtrl(PickerBase): | |
6935 | """Proxy of C++ DirPickerCtrl class""" | |
6936 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6937 | __repr__ = _swig_repr | |
6938 | def __init__(self, *args, **kwargs): | |
6939 | """ | |
6940 | __init__(self, Window parent, int id=-1, String path=EmptyString, | |
6941 | String message=DirSelectorPromptStr, Point pos=DefaultPosition, | |
6942 | Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE, | |
6943 | Validator validator=DefaultValidator, | |
6944 | String name=DirPickerCtrlNameStr) -> DirPickerCtrl | |
6945 | """ | |
6946 | _controls_.DirPickerCtrl_swiginit(self,_controls_.new_DirPickerCtrl(*args, **kwargs)) | |
6947 | self._setOORInfo(self) | |
6948 | ||
6949 | def Create(*args, **kwargs): | |
6950 | """ | |
6951 | Create(self, Window parent, int id=-1, String path=EmptyString, | |
6952 | String message=DirSelectorPromptStr, Point pos=DefaultPosition, | |
6953 | Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE, | |
6954 | Validator validator=DefaultValidator, | |
6955 | String name=DirPickerCtrlNameStr) -> bool | |
6956 | """ | |
6957 | return _controls_.DirPickerCtrl_Create(*args, **kwargs) | |
6958 | ||
6959 | def GetPath(*args, **kwargs): | |
6960 | """GetPath(self) -> String""" | |
6961 | return _controls_.DirPickerCtrl_GetPath(*args, **kwargs) | |
6962 | ||
6963 | def SetPath(*args, **kwargs): | |
6964 | """SetPath(self, String str)""" | |
6965 | return _controls_.DirPickerCtrl_SetPath(*args, **kwargs) | |
6966 | ||
b02396e8 RD |
6967 | def CheckPath(*args, **kwargs): |
6968 | """CheckPath(self, String path) -> bool""" | |
6969 | return _controls_.DirPickerCtrl_CheckPath(*args, **kwargs) | |
6970 | ||
6971 | def GetTextCtrlValue(*args, **kwargs): | |
6972 | """GetTextCtrlValue(self) -> String""" | |
6973 | return _controls_.DirPickerCtrl_GetTextCtrlValue(*args, **kwargs) | |
6974 | ||
2bf58437 RD |
6975 | Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") |
6976 | TextCtrlValue = property(GetTextCtrlValue,doc="See `GetTextCtrlValue`") | |
b850e7f3 RD |
6977 | _controls_.DirPickerCtrl_swigregister(DirPickerCtrl) |
6978 | ||
6979 | def PreDirPickerCtrl(*args, **kwargs): | |
6980 | """PreDirPickerCtrl() -> DirPickerCtrl""" | |
6981 | val = _controls_.new_PreDirPickerCtrl(*args, **kwargs) | |
6982 | return val | |
6983 | ||
6984 | wxEVT_COMMAND_FILEPICKER_CHANGED = _controls_.wxEVT_COMMAND_FILEPICKER_CHANGED | |
6985 | wxEVT_COMMAND_DIRPICKER_CHANGED = _controls_.wxEVT_COMMAND_DIRPICKER_CHANGED | |
6986 | EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED, 1 ) | |
6987 | EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED, 1 ) | |
6988 | ||
6989 | class FileDirPickerEvent(_core.CommandEvent): | |
6990 | """Proxy of C++ FileDirPickerEvent class""" | |
6991 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
6992 | __repr__ = _swig_repr | |
6993 | def __init__(self, *args, **kwargs): | |
6994 | """__init__(self, EventType type, Object generator, int id, String path) -> FileDirPickerEvent""" | |
6995 | _controls_.FileDirPickerEvent_swiginit(self,_controls_.new_FileDirPickerEvent(*args, **kwargs)) | |
6996 | def GetPath(*args, **kwargs): | |
6997 | """GetPath(self) -> String""" | |
6998 | return _controls_.FileDirPickerEvent_GetPath(*args, **kwargs) | |
6999 | ||
7000 | def SetPath(*args, **kwargs): | |
7001 | """SetPath(self, String p)""" | |
7002 | return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs) | |
7003 | ||
97ab0f6a | 7004 | Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") |
b850e7f3 RD |
7005 | _controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent) |
7006 | ||
7007 | #--------------------------------------------------------------------------- | |
7008 | ||
7009 | FNTP_FONTDESC_AS_LABEL = _controls_.FNTP_FONTDESC_AS_LABEL | |
7010 | FNTP_USEFONT_FOR_LABEL = _controls_.FNTP_USEFONT_FOR_LABEL | |
7011 | FNTP_USE_TEXTCTRL = _controls_.FNTP_USE_TEXTCTRL | |
7012 | FNTP_DEFAULT_STYLE = _controls_.FNTP_DEFAULT_STYLE | |
7013 | class FontPickerCtrl(PickerBase): | |
7014 | """Proxy of C++ FontPickerCtrl class""" | |
7015 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
7016 | __repr__ = _swig_repr | |
7017 | def __init__(self, *args, **kwargs): | |
7018 | """ | |
f89238b9 | 7019 | __init__(self, Window parent, int id=-1, Font initial=wxNullFont, |
b850e7f3 RD |
7020 | Point pos=DefaultPosition, Size size=DefaultSize, |
7021 | long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
7022 | String name=FontPickerCtrlNameStr) -> FontPickerCtrl | |
7023 | """ | |
7024 | _controls_.FontPickerCtrl_swiginit(self,_controls_.new_FontPickerCtrl(*args, **kwargs)) | |
7025 | self._setOORInfo(self) | |
7026 | ||
7027 | def Create(*args, **kwargs): | |
7028 | """ | |
f89238b9 | 7029 | Create(self, Window parent, int id=-1, Font initial=wxNullFont, |
b850e7f3 RD |
7030 | Point pos=DefaultPosition, Size size=DefaultSize, |
7031 | long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator, | |
7032 | String name=FontPickerCtrlNameStr) -> bool | |
7033 | """ | |
7034 | return _controls_.FontPickerCtrl_Create(*args, **kwargs) | |
7035 | ||
7036 | def GetSelectedFont(*args, **kwargs): | |
7037 | """GetSelectedFont(self) -> Font""" | |
7038 | return _controls_.FontPickerCtrl_GetSelectedFont(*args, **kwargs) | |
7039 | ||
7040 | def SetSelectedFont(*args, **kwargs): | |
7041 | """SetSelectedFont(self, Font f)""" | |
7042 | return _controls_.FontPickerCtrl_SetSelectedFont(*args, **kwargs) | |
7043 | ||
7044 | def SetMaxPointSize(*args, **kwargs): | |
7045 | """SetMaxPointSize(self, unsigned int max)""" | |
7046 | return _controls_.FontPickerCtrl_SetMaxPointSize(*args, **kwargs) | |
7047 | ||
7048 | def GetMaxPointSize(*args, **kwargs): | |
7049 | """GetMaxPointSize(self) -> unsigned int""" | |
7050 | return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs) | |
7051 | ||
97ab0f6a RD |
7052 | MaxPointSize = property(GetMaxPointSize,SetMaxPointSize,doc="See `GetMaxPointSize` and `SetMaxPointSize`") |
7053 | SelectedFont = property(GetSelectedFont,SetSelectedFont,doc="See `GetSelectedFont` and `SetSelectedFont`") | |
b850e7f3 RD |
7054 | _controls_.FontPickerCtrl_swigregister(FontPickerCtrl) |
7055 | FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr | |
7056 | ||
7057 | def PreFontPickerCtrl(*args, **kwargs): | |
7058 | """PreFontPickerCtrl() -> FontPickerCtrl""" | |
7059 | val = _controls_.new_PreFontPickerCtrl(*args, **kwargs) | |
7060 | return val | |
7061 | ||
7062 | wxEVT_COMMAND_FONTPICKER_CHANGED = _controls_.wxEVT_COMMAND_FONTPICKER_CHANGED | |
7063 | EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED, 1 ) | |
7064 | ||
7065 | class FontPickerEvent(_core.CommandEvent): | |
7066 | """Proxy of C++ FontPickerEvent class""" | |
7067 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
7068 | __repr__ = _swig_repr | |
7069 | def __init__(self, *args, **kwargs): | |
7070 | """__init__(self, Object generator, int id, Font f) -> FontPickerEvent""" | |
7071 | _controls_.FontPickerEvent_swiginit(self,_controls_.new_FontPickerEvent(*args, **kwargs)) | |
7072 | def GetFont(*args, **kwargs): | |
7073 | """GetFont(self) -> Font""" | |
7074 | return _controls_.FontPickerEvent_GetFont(*args, **kwargs) | |
7075 | ||
7076 | def SetFont(*args, **kwargs): | |
7077 | """SetFont(self, Font c)""" | |
7078 | return _controls_.FontPickerEvent_SetFont(*args, **kwargs) | |
7079 | ||
97ab0f6a | 7080 | Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`") |
b850e7f3 RD |
7081 | _controls_.FontPickerEvent_swigregister(FontPickerEvent) |
7082 | ||
5172800e RD |
7083 | #--------------------------------------------------------------------------- |
7084 | ||
7085 | CP_DEFAULT_STYLE = _controls_.CP_DEFAULT_STYLE | |
7086 | CP_NO_TLW_RESIZE = _controls_.CP_NO_TLW_RESIZE | |
7087 | class CollapsiblePane(_core.Control): | |
7088 | """ | |
7089 | A collapsable pane is a container with an embedded button-like | |
7090 | control which can be used by the user to collapse or expand the pane's | |
7091 | contents. | |
7092 | ||
7093 | Once constructed you should use the `GetPane` function to access the | |
7094 | pane and add your controls inside it (i.e. use the window returned | |
7095 | from `GetPane` as the parent for the controls which must go in the | |
7096 | pane, NOT the wx.CollapsiblePane itself!). | |
7097 | ||
7098 | Note that because of its nature of control which can dynamically (and | |
7099 | drastically) change its size at run-time under user-input, when | |
7100 | putting a wx.CollapsiblePane inside a `wx.Sizer` you should be careful | |
7101 | to add it with a proportion value of zero; this is because otherwise | |
7102 | all other windows with non-zero proportion values would automatically | |
7103 | get resized each time the user expands or collapses the pane window, | |
7104 | usually resulting a weird, flickering effect. | |
7105 | """ | |
7106 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
7107 | __repr__ = _swig_repr | |
7108 | def __init__(self, *args, **kwargs): | |
7109 | """ | |
7110 | __init__(self, Window parent, int winid=-1, String label=EmptyString, | |
7111 | Point pos=DefaultPosition, Size size=DefaultSize, | |
7112 | long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator, | |
7113 | String name=CollapsiblePaneNameStr) -> CollapsiblePane | |
7114 | ||
7115 | Create and show a wx.CollapsiblePane | |
7116 | """ | |
7117 | _controls_.CollapsiblePane_swiginit(self,_controls_.new_CollapsiblePane(*args, **kwargs)) | |
7118 | self._setOORInfo(self) | |
7119 | ||
7120 | def Create(*args, **kwargs): | |
7121 | """ | |
7122 | Create(self, Window parent, int winid=-1, String label=EmptyString, | |
7123 | Point pos=DefaultPosition, Size size=DefaultSize, | |
7124 | long style=CP_DEFAULT_STYLE, Validator val=DefaultValidator, | |
7125 | String name=CollapsiblePaneNameStr) -> bool | |
7126 | """ | |
7127 | return _controls_.CollapsiblePane_Create(*args, **kwargs) | |
7128 | ||
7129 | def Collapse(*args, **kwargs): | |
7130 | """ | |
7131 | Collapse(self, bool collapse=True) | |
7132 | ||
7133 | Collapses or expands the pane window. | |
7134 | """ | |
7135 | return _controls_.CollapsiblePane_Collapse(*args, **kwargs) | |
7136 | ||
7137 | def Expand(*args, **kwargs): | |
7138 | """ | |
7139 | Expand(self) | |
7140 | ||
7141 | Same as Collapse(False). | |
7142 | """ | |
7143 | return _controls_.CollapsiblePane_Expand(*args, **kwargs) | |
7144 | ||
7145 | def IsCollapsed(*args, **kwargs): | |
7146 | """ | |
7147 | IsCollapsed(self) -> bool | |
7148 | ||
7149 | Returns ``True`` if the pane window is currently hidden. | |
7150 | """ | |
7151 | return _controls_.CollapsiblePane_IsCollapsed(*args, **kwargs) | |
7152 | ||
7153 | def IsExpanded(*args, **kwargs): | |
7154 | """ | |
7155 | IsExpanded(self) -> bool | |
7156 | ||
7157 | Returns ``True`` if the pane window is currently shown. | |
7158 | """ | |
7159 | return _controls_.CollapsiblePane_IsExpanded(*args, **kwargs) | |
7160 | ||
7161 | def GetPane(*args, **kwargs): | |
7162 | """ | |
7163 | GetPane(self) -> Window | |
7164 | ||
7165 | Returns a reference to the pane window. Use the returned `wx.Window` | |
7166 | as the parent of widgets to make them part of the collapsible area. | |
7167 | """ | |
7168 | return _controls_.CollapsiblePane_GetPane(*args, **kwargs) | |
7169 | ||
f9bf356b RD |
7170 | Expanded = property(IsExpanded) |
7171 | Collapsed = property(IsCollapsed) | |
5172800e RD |
7172 | _controls_.CollapsiblePane_swigregister(CollapsiblePane) |
7173 | CollapsiblePaneNameStr = cvar.CollapsiblePaneNameStr | |
7174 | ||
7175 | def PreCollapsiblePane(*args, **kwargs): | |
7176 | """ | |
7177 | PreCollapsiblePane() -> CollapsiblePane | |
7178 | ||
7179 | Precreate a wx.CollapsiblePane for 2-phase creation. | |
7180 | """ | |
7181 | val = _controls_.new_PreCollapsiblePane(*args, **kwargs) | |
7182 | return val | |
7183 | ||
7184 | wxEVT_COMMAND_COLLPANE_CHANGED = _controls_.wxEVT_COMMAND_COLLPANE_CHANGED | |
7185 | EVT_COLLAPSIBLEPANE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLLPANE_CHANGED, 1 ) | |
7186 | ||
7187 | class CollapsiblePaneEvent(_core.CommandEvent): | |
7188 | """Proxy of C++ CollapsiblePaneEvent class""" | |
7189 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
7190 | __repr__ = _swig_repr | |
7191 | def __init__(self, *args, **kwargs): | |
7192 | """__init__(self, Object generator, int id, bool collapsed) -> CollapsiblePaneEvent""" | |
7193 | _controls_.CollapsiblePaneEvent_swiginit(self,_controls_.new_CollapsiblePaneEvent(*args, **kwargs)) | |
7194 | def GetCollapsed(*args, **kwargs): | |
7195 | """GetCollapsed(self) -> bool""" | |
7196 | return _controls_.CollapsiblePaneEvent_GetCollapsed(*args, **kwargs) | |
7197 | ||
7198 | def SetCollapsed(*args, **kwargs): | |
7199 | """SetCollapsed(self, bool c)""" | |
7200 | return _controls_.CollapsiblePaneEvent_SetCollapsed(*args, **kwargs) | |
7201 | ||
f9bf356b | 7202 | Collapsed = property(GetCollapsed,SetCollapsed) |
5172800e RD |
7203 | _controls_.CollapsiblePaneEvent_swigregister(CollapsiblePaneEvent) |
7204 | ||
3f7f284d RD |
7205 | #--------------------------------------------------------------------------- |
7206 | ||
7207 | class SearchCtrl(TextCtrl): | |
62358578 RD |
7208 | """ |
7209 | A search control is a composite of a `wx.TextCtrl` with optional | |
7210 | bitmap buttons and a drop-down menu. Controls like this can typically | |
7211 | be found on a toolbar of applications that support some form of search | |
e6239913 | 7212 | functionality. On the Mac this control is implemented using the |
62358578 RD |
7213 | native HISearchField control, on the other platforms a generic control |
7214 | is used, although that may change in the future as more platforms | |
7215 | introduce native search widgets. | |
7216 | ||
7217 | If you wish to use a drop-down menu with your wx.SearchCtrl then you | |
7218 | will need to manage its content and handle the menu events yourself, | |
7219 | but this is an easy thing to do. Simply build the menu, pass it to | |
7220 | `SetMenu`, and also bind a handler for a range of EVT_MENU events. | |
7221 | This gives you the flexibility to use the drop-down menu however you | |
7222 | wish, such as for a history of searches, or as a way to select | |
7223 | different kinds of searches. The ToolBar.py sample in the demo shows | |
7224 | one way to do this. | |
7225 | ||
7226 | Since the control derives from `wx.TextCtrl` it is convenient to use | |
7227 | the styles and events designed for `wx.TextCtrl`. For example you can | |
7228 | use the ``wx.TE_PROCESS_ENTER`` style and catch the | |
7229 | ``wx.EVT_TEXT_ENTER`` event to know when the user has pressed the | |
7230 | Enter key in the control and wishes to start a search. | |
7231 | ||
7232 | """ | |
3f7f284d RD |
7233 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
7234 | __repr__ = _swig_repr | |
7235 | def __init__(self, *args, **kwargs): | |
7236 | """ | |
7237 | __init__(self, Window parent, int id=-1, String value=wxEmptyString, | |
7238 | Point pos=DefaultPosition, Size size=DefaultSize, | |
7239 | long style=0, Validator validator=DefaultValidator, | |
7240 | String name=SearchCtrlNameStr) -> SearchCtrl | |
62358578 RD |
7241 | |
7242 | A search control is a composite of a `wx.TextCtrl` with optional | |
7243 | bitmap buttons and a drop-down menu. Controls like this can typically | |
7244 | be found on a toolbar of applications that support some form of search | |
e6239913 | 7245 | functionality. On the Mac this control is implemented using the |
62358578 RD |
7246 | native HISearchField control, on the other platforms a generic control |
7247 | is used, although that may change in the future as more platforms | |
7248 | introduce native search widgets. | |
7249 | ||
7250 | If you wish to use a drop-down menu with your wx.SearchCtrl then you | |
7251 | will need to manage its content and handle the menu events yourself, | |
7252 | but this is an easy thing to do. Simply build the menu, pass it to | |
7253 | `SetMenu`, and also bind a handler for a range of EVT_MENU events. | |
7254 | This gives you the flexibility to use the drop-down menu however you | |
7255 | wish, such as for a history of searches, or as a way to select | |
7256 | different kinds of searches. The ToolBar.py sample in the demo shows | |
7257 | one way to do this. | |
7258 | ||
7259 | Since the control derives from `wx.TextCtrl` it is convenient to use | |
7260 | the styles and events designed for `wx.TextCtrl`. For example you can | |
7261 | use the ``wx.TE_PROCESS_ENTER`` style and catch the | |
7262 | ``wx.EVT_TEXT_ENTER`` event to know when the user has pressed the | |
7263 | Enter key in the control and wishes to start a search. | |
7264 | ||
3f7f284d RD |
7265 | """ |
7266 | _controls_.SearchCtrl_swiginit(self,_controls_.new_SearchCtrl(*args, **kwargs)) | |
7267 | self._setOORInfo(self) | |
7268 | ||
7269 | def Create(*args, **kwargs): | |
7270 | """ | |
7271 | Create(self, Window parent, int id=-1, String value=wxEmptyString, | |
7272 | Point pos=DefaultPosition, Size size=DefaultSize, | |
7273 | long style=0, Validator validator=DefaultValidator, | |
7274 | String name=SearchCtrlNameStr) -> bool | |
7275 | """ | |
7276 | return _controls_.SearchCtrl_Create(*args, **kwargs) | |
7277 | ||
7278 | def SetMenu(*args, **kwargs): | |
62358578 RD |
7279 | """ |
7280 | SetMenu(self, Menu menu) | |
7281 | ||
7282 | Sets the search control's menu object. If there is already a menu | |
7283 | associated with the search control it is deleted. | |
7284 | """ | |
3f7f284d RD |
7285 | return _controls_.SearchCtrl_SetMenu(*args, **kwargs) |
7286 | ||
7287 | def GetMenu(*args, **kwargs): | |
62358578 RD |
7288 | """ |
7289 | GetMenu(self) -> Menu | |
7290 | ||
7291 | Returns a pointer to the search control's menu object or None if there | |
7292 | is no menu attached. | |
7293 | """ | |
3f7f284d RD |
7294 | return _controls_.SearchCtrl_GetMenu(*args, **kwargs) |
7295 | ||
70b63a99 | 7296 | def ShowSearchButton(*args, **kwargs): |
62358578 RD |
7297 | """ |
7298 | ShowSearchButton(self, bool show) | |
7299 | ||
7300 | Sets the search button visibility value on the search control. If | |
7301 | there is a menu attached, the search button will be visible regardless | |
7302 | of the search button visibility value. This has no effect in Mac OS X | |
7303 | v10.3 | |
7304 | """ | |
70b63a99 | 7305 | return _controls_.SearchCtrl_ShowSearchButton(*args, **kwargs) |
3f7f284d | 7306 | |
70b63a99 | 7307 | def IsSearchButtonVisible(*args, **kwargs): |
62358578 RD |
7308 | """ |
7309 | IsSearchButtonVisible(self) -> bool | |
7310 | ||
7311 | Returns the search button visibility value. If there is a menu | |
7312 | attached, the search button will be visible regardless of the search | |
7313 | button visibility value. This always returns false in Mac OS X v10.3 | |
7314 | """ | |
70b63a99 | 7315 | return _controls_.SearchCtrl_IsSearchButtonVisible(*args, **kwargs) |
3f7f284d | 7316 | |
70b63a99 | 7317 | def ShowCancelButton(*args, **kwargs): |
62358578 RD |
7318 | """ |
7319 | ShowCancelButton(self, bool show) | |
7320 | ||
7321 | Shows or hides the cancel button. | |
7322 | """ | |
70b63a99 | 7323 | return _controls_.SearchCtrl_ShowCancelButton(*args, **kwargs) |
3f7f284d | 7324 | |
70b63a99 | 7325 | def IsCancelButtonVisible(*args, **kwargs): |
62358578 RD |
7326 | """ |
7327 | IsCancelButtonVisible(self) -> bool | |
7328 | ||
7329 | Indicates whether the cancel button is visible. | |
7330 | """ | |
70b63a99 | 7331 | return _controls_.SearchCtrl_IsCancelButtonVisible(*args, **kwargs) |
3f7f284d | 7332 | |
6646ca90 RD |
7333 | def SetDescriptiveText(*args, **kwargs): |
7334 | """ | |
7335 | SetDescriptiveText(self, String text) | |
7336 | ||
7337 | Set the text to be displayed when the user has not yet typed anything | |
7338 | in the control. | |
7339 | """ | |
7340 | return _controls_.SearchCtrl_SetDescriptiveText(*args, **kwargs) | |
7341 | ||
7342 | def GetDescriptiveText(*args, **kwargs): | |
7343 | """ | |
7344 | GetDescriptiveText(self) -> String | |
7345 | ||
7346 | Get the text to be displayed when the user has not yet typed anything | |
7347 | in the control. | |
7348 | """ | |
7349 | return _controls_.SearchCtrl_GetDescriptiveText(*args, **kwargs) | |
7350 | ||
3f7f284d | 7351 | def SetSearchBitmap(*args, **kwargs): |
62358578 RD |
7352 | """ |
7353 | SetSearchBitmap(self, Bitmap bitmap) | |
7354 | ||
7355 | Sets the bitmap to use for the search button. This currently does not | |
7356 | work on the Mac. | |
7357 | """ | |
3f7f284d RD |
7358 | return _controls_.SearchCtrl_SetSearchBitmap(*args, **kwargs) |
7359 | ||
7360 | def SetSearchMenuBitmap(*args, **kwargs): | |
62358578 RD |
7361 | """ |
7362 | SetSearchMenuBitmap(self, Bitmap bitmap) | |
7363 | ||
7364 | Sets the bitmap to use for the search button when there is a drop-down | |
7365 | menu associated with the search control. This currently does not work | |
7366 | on the Mac. | |
7367 | """ | |
3f7f284d RD |
7368 | return _controls_.SearchCtrl_SetSearchMenuBitmap(*args, **kwargs) |
7369 | ||
7370 | def SetCancelBitmap(*args, **kwargs): | |
62358578 RD |
7371 | """ |
7372 | SetCancelBitmap(self, Bitmap bitmap) | |
7373 | ||
7374 | Sets the bitmap to use for the cancel button. This currently does not | |
7375 | work on the Mac. | |
7376 | """ | |
3f7f284d RD |
7377 | return _controls_.SearchCtrl_SetCancelBitmap(*args, **kwargs) |
7378 | ||
7379 | Menu = property(GetMenu,SetMenu) | |
70b63a99 RD |
7380 | SearchButtonVisible = property(IsSearchButtonVisible,ShowSearchButton) |
7381 | CancelButtonVisible = property(IsCancelButtonVisible,ShowCancelButton) | |
6646ca90 | 7382 | DescriptiveText = property(GetDescriptiveText,SetDescriptiveText) |
3f7f284d RD |
7383 | _controls_.SearchCtrl_swigregister(SearchCtrl) |
7384 | SearchCtrlNameStr = cvar.SearchCtrlNameStr | |
7385 | ||
7386 | def PreSearchCtrl(*args, **kwargs): | |
7387 | """ | |
7388 | PreSearchCtrl() -> SearchCtrl | |
7389 | ||
7390 | Precreate a wx.SearchCtrl for 2-phase creation. | |
7391 | """ | |
7392 | val = _controls_.new_PreSearchCtrl(*args, **kwargs) | |
7393 | return val | |
7394 | ||
4ed51f4d RD |
7395 | wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN = _controls_.wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN |
7396 | wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN = _controls_.wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN | |
7397 | EVT_SEARCHCTRL_CANCEL_BTN = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN, 1) | |
7398 | EVT_SEARCHCTRL_SEARCH_BTN = wx.PyEventBinder( wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN, 1) | |
3f7f284d | 7399 | |
70551f47 | 7400 | |
32fe5131 | 7401 |