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