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