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