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