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