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