]>
Commit | Line | Data |
---|---|---|
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 | |
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 | """ | |
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 | |
30 | ||
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. | |
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 | """ | |
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 | |
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): | |
63 | """ | |
64 | GetDefaultSize() -> Size | |
65 | ||
66 | Returns the default button size for this platform. | |
67 | """ | |
68 | return _controls_.Button_GetDefaultSize(*args, **kwargs) | |
69 | ||
70 | GetDefaultSize = staticmethod(GetDefaultSize) | |
71 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
86 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) | |
87 | ||
88 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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): | |
110 | """ | |
111 | Button_GetDefaultSize() -> Size | |
112 | ||
113 | Returns the default button size for this platform. | |
114 | """ | |
115 | return _controls_.Button_GetDefaultSize(*args, **kwargs) | |
116 | ||
117 | def Button_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
132 | return _controls_.Button_GetClassDefaultAttributes(*args, **kwargs) | |
133 | ||
134 | class BitmapButton(Button): | |
135 | """ | |
136 | A Button that contains a bitmap. A bitmap button can be supplied with a | |
137 | single bitmap, and wxWidgets will draw all button states using this bitmap. If | |
138 | the application needs more control, additional bitmaps for the selected state, | |
139 | unpressed focused state, and greyed-out state may be supplied. | |
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 | """ | |
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, | |
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 | """ | |
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, | |
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 | """ | |
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. | |
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 | """ | |
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 | |
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 | """ | |
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 | |
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 | ||
321 | Similar to GetValue, but raises an exception if it is not a 2-state | |
322 | CheckBox. | |
323 | """ | |
324 | return _controls_.CheckBox_IsChecked(*args, **kwargs) | |
325 | ||
326 | def SetValue(*args, **kwargs): | |
327 | """ | |
328 | SetValue(self, bool state) | |
329 | ||
330 | Set the state of a 2-state CheckBox. Pass True for checked, False for | |
331 | unchecked. | |
332 | """ | |
333 | return _controls_.CheckBox_SetValue(*args, **kwargs) | |
334 | ||
335 | def Get3StateValue(*args, **kwargs): | |
336 | """ | |
337 | Get3StateValue(self) -> int | |
338 | ||
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. | |
343 | """ | |
344 | return _controls_.CheckBox_Get3StateValue(*args, **kwargs) | |
345 | ||
346 | def Set3StateValue(*args, **kwargs): | |
347 | """ | |
348 | Set3StateValue(self, int state) | |
349 | ||
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. | |
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 | ||
370 | Returns whether or not the user can set the CheckBox to the third | |
371 | state. | |
372 | """ | |
373 | return _controls_.CheckBox_Is3rdStateAllowedForUser(*args, **kwargs) | |
374 | ||
375 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
390 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) | |
391 | ||
392 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
412 | def CheckBox_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
427 | return _controls_.CheckBox_GetClassDefaultAttributes(*args, **kwargs) | |
428 | ||
429 | #--------------------------------------------------------------------------- | |
430 | ||
431 | class Choice(_core.ControlWithItems): | |
432 | """ | |
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. | |
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 | |
458 | ||
459 | Actually create the GUI Choice control for 2-phase creation | |
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 | """ | |
473 | SetStringSelection(self, String string) -> bool | |
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 | |
488 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
503 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) | |
504 | ||
505 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
525 | def Choice_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
540 | return _controls_.Choice_GetClassDefaultAttributes(*args, **kwargs) | |
541 | ||
542 | #--------------------------------------------------------------------------- | |
543 | ||
544 | class ComboBox(_core.Control,_core.ItemContainer): | |
545 | """ | |
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. | |
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, | |
559 | List choices=[], long style=0, Validator validator=DefaultValidator, | |
560 | String name=ComboBoxNameStr) -> ComboBox | |
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 | |
576 | ||
577 | Actually create the GUI wxComboBox control for 2-phase creation | |
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 | ||
654 | Sets the item at index 'n' to be the selected item. | |
655 | """ | |
656 | return _controls_.ComboBox_SetSelection(*args, **kwargs) | |
657 | ||
658 | def SetMark(*args, **kwargs): | |
659 | """ | |
660 | SetMark(self, long from, long to) | |
661 | ||
662 | Selects the text between the two positions in the combobox text field. | |
663 | """ | |
664 | return _controls_.ComboBox_SetMark(*args, **kwargs) | |
665 | ||
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 | ||
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 | ||
702 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
717 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) | |
718 | ||
719 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
739 | def ComboBox_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
754 | return _controls_.ComboBox_GetClassDefaultAttributes(*args, **kwargs) | |
755 | ||
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 | """ | |
767 | __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, | |
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 | """ | |
780 | Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition, | |
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 | ||
823 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
838 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) | |
839 | ||
840 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
856 | def Gauge_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
871 | return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs) | |
872 | ||
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 | """ | |
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 | |
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 | """ | |
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 | |
895 | """ | |
896 | return _controls_.StaticBox_Create(*args, **kwargs) | |
897 | ||
898 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
913 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) | |
914 | ||
915 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
933 | def StaticBox_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
948 | return _controls_.StaticBox_GetClassDefaultAttributes(*args, **kwargs) | |
949 | ||
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 | """ | |
957 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
958 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
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 | """ | |
969 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
970 | Size size=DefaultSize, long style=LI_HORIZONTAL, | |
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): | |
980 | """GetDefaultSize() -> int""" | |
981 | return _controls_.StaticLine_GetDefaultSize(*args, **kwargs) | |
982 | ||
983 | GetDefaultSize = staticmethod(GetDefaultSize) | |
984 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
999 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) | |
1000 | ||
1001 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
1020 | def StaticLine_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
1035 | return _controls_.StaticLine_GetClassDefaultAttributes(*args, **kwargs) | |
1036 | ||
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 | """ | |
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 | |
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 | """ | |
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 | |
1059 | """ | |
1060 | return _controls_.StaticText_Create(*args, **kwargs) | |
1061 | ||
1062 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
1077 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) | |
1078 | ||
1079 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
1094 | def StaticText_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
1109 | return _controls_.StaticText_GetClassDefaultAttributes(*args, **kwargs) | |
1110 | ||
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 | """ | |
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 | |
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 | """ | |
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 | |
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 | ||
1148 | def GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
1163 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) | |
1164 | ||
1165 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
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 | ||
1180 | def StaticBitmap_GetClassDefaultAttributes(*args, **kwargs): | |
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 | """ | |
1195 | return _controls_.StaticBitmap_GetClassDefaultAttributes(*args, **kwargs) | |
1196 | ||
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 | """ | |
1204 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1205 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
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 | """ | |
1217 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1218 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
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 | ||
1228 | Insert an item into the control before the item at the ``pos`` index, | |
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): | |
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 | """ | |
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): | |
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 | """ | |
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 | """ | |
1362 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1363 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
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 | """ | |
1375 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1376 | Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray, | |
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,) | |
1470 | def __init__(self, *args, **kwargs): | |
1471 | """ | |
1472 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, | |
1473 | Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr | |
1474 | """ | |
1475 | newobj = _controls_.new_TextAttr(*args, **kwargs) | |
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): | |
1510 | """SetLeftIndent(self, int indent, int subIndent=0)""" | |
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 | ||
1577 | def GetLeftSubIndent(*args, **kwargs): | |
1578 | """GetLeftSubIndent(self) -> long""" | |
1579 | return _controls_.TextAttr_GetLeftSubIndent(*args, **kwargs) | |
1580 | ||
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): | |
1594 | """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr""" | |
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 | """ | |
1616 | __init__(self, Window parent, int id=-1, String value=EmptyString, | |
1617 | Point pos=DefaultPosition, Size size=DefaultSize, | |
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 | """ | |
1629 | Create(self, Window parent, int id=-1, String value=EmptyString, | |
1630 | Point pos=DefaultPosition, Size size=DefaultSize, | |
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): | |
1677 | """ | |
1678 | GetSelection() -> (from, to) | |
1679 | ||
1680 | If the return values from and to are the same, there is no selection. | |
1681 | """ | |
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): | |
1761 | """ | |
1762 | HitTest(Point pt) -> (result, row, col) | |
1763 | ||
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. | |
1767 | """ | |
1768 | return _controls_.TextCtrl_HitTest(*args, **kwargs) | |
1769 | ||
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 | ||
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 write(*args, **kwargs): | |
1849 | """write(self, String text)""" | |
1850 | return _controls_.TextCtrl_write(*args, **kwargs) | |
1851 | ||
1852 | def GetString(*args, **kwargs): | |
1853 | """GetString(self, long from, long to) -> String""" | |
1854 | return _controls_.TextCtrl_GetString(*args, **kwargs) | |
1855 | ||
1856 | def GetClassDefaultAttributes(*args, **kwargs): | |
1857 | """ | |
1858 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1859 | ||
1860 | Get the default attributes for this class. This is useful if you want | |
1861 | to use the same font or colour in your own control as in a standard | |
1862 | control -- which is a much better idea than hard coding specific | |
1863 | colours or fonts which might look completely out of place on the | |
1864 | user's system, especially if it uses themes. | |
1865 | ||
1866 | The variant parameter is only relevant under Mac currently and is | |
1867 | ignore under other platforms. Under Mac, it will change the size of | |
1868 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1869 | this. | |
1870 | """ | |
1871 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
1872 | ||
1873 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
1874 | ||
1875 | class TextCtrlPtr(TextCtrl): | |
1876 | def __init__(self, this): | |
1877 | self.this = this | |
1878 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1879 | self.__class__ = TextCtrl | |
1880 | _controls_.TextCtrl_swigregister(TextCtrlPtr) | |
1881 | ||
1882 | def PreTextCtrl(*args, **kwargs): | |
1883 | """PreTextCtrl() -> TextCtrl""" | |
1884 | val = _controls_.new_PreTextCtrl(*args, **kwargs) | |
1885 | val.thisown = 1 | |
1886 | return val | |
1887 | ||
1888 | def TextCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
1889 | """ | |
1890 | TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1891 | ||
1892 | Get the default attributes for this class. This is useful if you want | |
1893 | to use the same font or colour in your own control as in a standard | |
1894 | control -- which is a much better idea than hard coding specific | |
1895 | colours or fonts which might look completely out of place on the | |
1896 | user's system, especially if it uses themes. | |
1897 | ||
1898 | The variant parameter is only relevant under Mac currently and is | |
1899 | ignore under other platforms. Under Mac, it will change the size of | |
1900 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
1901 | this. | |
1902 | """ | |
1903 | return _controls_.TextCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
1904 | ||
1905 | wxEVT_COMMAND_TEXT_UPDATED = _controls_.wxEVT_COMMAND_TEXT_UPDATED | |
1906 | wxEVT_COMMAND_TEXT_ENTER = _controls_.wxEVT_COMMAND_TEXT_ENTER | |
1907 | wxEVT_COMMAND_TEXT_URL = _controls_.wxEVT_COMMAND_TEXT_URL | |
1908 | wxEVT_COMMAND_TEXT_MAXLEN = _controls_.wxEVT_COMMAND_TEXT_MAXLEN | |
1909 | class TextUrlEvent(_core.CommandEvent): | |
1910 | def __repr__(self): | |
1911 | return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1912 | def __init__(self, *args, **kwargs): | |
1913 | """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent""" | |
1914 | newobj = _controls_.new_TextUrlEvent(*args, **kwargs) | |
1915 | self.this = newobj.this | |
1916 | self.thisown = 1 | |
1917 | del newobj.thisown | |
1918 | def GetMouseEvent(*args, **kwargs): | |
1919 | """GetMouseEvent(self) -> MouseEvent""" | |
1920 | return _controls_.TextUrlEvent_GetMouseEvent(*args, **kwargs) | |
1921 | ||
1922 | def GetURLStart(*args, **kwargs): | |
1923 | """GetURLStart(self) -> long""" | |
1924 | return _controls_.TextUrlEvent_GetURLStart(*args, **kwargs) | |
1925 | ||
1926 | def GetURLEnd(*args, **kwargs): | |
1927 | """GetURLEnd(self) -> long""" | |
1928 | return _controls_.TextUrlEvent_GetURLEnd(*args, **kwargs) | |
1929 | ||
1930 | ||
1931 | class TextUrlEventPtr(TextUrlEvent): | |
1932 | def __init__(self, this): | |
1933 | self.this = this | |
1934 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1935 | self.__class__ = TextUrlEvent | |
1936 | _controls_.TextUrlEvent_swigregister(TextUrlEventPtr) | |
1937 | ||
1938 | EVT_TEXT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED, 1) | |
1939 | EVT_TEXT_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER, 1) | |
1940 | EVT_TEXT_URL = wx.PyEventBinder( wxEVT_COMMAND_TEXT_URL, 1) | |
1941 | EVT_TEXT_MAXLEN = wx.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN, 1) | |
1942 | ||
1943 | #--------------------------------------------------------------------------- | |
1944 | ||
1945 | class ScrollBar(_core.Control): | |
1946 | def __repr__(self): | |
1947 | return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1948 | def __init__(self, *args, **kwargs): | |
1949 | """ | |
1950 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1951 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1952 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar | |
1953 | """ | |
1954 | newobj = _controls_.new_ScrollBar(*args, **kwargs) | |
1955 | self.this = newobj.this | |
1956 | self.thisown = 1 | |
1957 | del newobj.thisown | |
1958 | self._setOORInfo(self) | |
1959 | ||
1960 | def Create(*args, **kwargs): | |
1961 | """ | |
1962 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
1963 | Size size=DefaultSize, long style=SB_HORIZONTAL, | |
1964 | Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool | |
1965 | ||
1966 | Do the 2nd phase and create the GUI control. | |
1967 | """ | |
1968 | return _controls_.ScrollBar_Create(*args, **kwargs) | |
1969 | ||
1970 | def GetThumbPosition(*args, **kwargs): | |
1971 | """GetThumbPosition(self) -> int""" | |
1972 | return _controls_.ScrollBar_GetThumbPosition(*args, **kwargs) | |
1973 | ||
1974 | def GetThumbSize(*args, **kwargs): | |
1975 | """GetThumbSize(self) -> int""" | |
1976 | return _controls_.ScrollBar_GetThumbSize(*args, **kwargs) | |
1977 | ||
1978 | GetThumbLength = GetThumbSize | |
1979 | def GetPageSize(*args, **kwargs): | |
1980 | """GetPageSize(self) -> int""" | |
1981 | return _controls_.ScrollBar_GetPageSize(*args, **kwargs) | |
1982 | ||
1983 | def GetRange(*args, **kwargs): | |
1984 | """GetRange(self) -> int""" | |
1985 | return _controls_.ScrollBar_GetRange(*args, **kwargs) | |
1986 | ||
1987 | def IsVertical(*args, **kwargs): | |
1988 | """IsVertical(self) -> bool""" | |
1989 | return _controls_.ScrollBar_IsVertical(*args, **kwargs) | |
1990 | ||
1991 | def SetThumbPosition(*args, **kwargs): | |
1992 | """SetThumbPosition(self, int viewStart)""" | |
1993 | return _controls_.ScrollBar_SetThumbPosition(*args, **kwargs) | |
1994 | ||
1995 | def SetScrollbar(*args, **kwargs): | |
1996 | """ | |
1997 | SetScrollbar(self, int position, int thumbSize, int range, int pageSize, | |
1998 | bool refresh=True) | |
1999 | ||
2000 | Sets the scrollbar properties of a built-in scrollbar. | |
2001 | """ | |
2002 | return _controls_.ScrollBar_SetScrollbar(*args, **kwargs) | |
2003 | ||
2004 | def GetClassDefaultAttributes(*args, **kwargs): | |
2005 | """ | |
2006 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2007 | ||
2008 | Get the default attributes for this class. This is useful if you want | |
2009 | to use the same font or colour in your own control as in a standard | |
2010 | control -- which is a much better idea than hard coding specific | |
2011 | colours or fonts which might look completely out of place on the | |
2012 | user's system, especially if it uses themes. | |
2013 | ||
2014 | The variant parameter is only relevant under Mac currently and is | |
2015 | ignore under other platforms. Under Mac, it will change the size of | |
2016 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2017 | this. | |
2018 | """ | |
2019 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) | |
2020 | ||
2021 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2022 | ||
2023 | class ScrollBarPtr(ScrollBar): | |
2024 | def __init__(self, this): | |
2025 | self.this = this | |
2026 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2027 | self.__class__ = ScrollBar | |
2028 | _controls_.ScrollBar_swigregister(ScrollBarPtr) | |
2029 | ScrollBarNameStr = cvar.ScrollBarNameStr | |
2030 | ||
2031 | def PreScrollBar(*args, **kwargs): | |
2032 | """PreScrollBar() -> ScrollBar""" | |
2033 | val = _controls_.new_PreScrollBar(*args, **kwargs) | |
2034 | val.thisown = 1 | |
2035 | return val | |
2036 | ||
2037 | def ScrollBar_GetClassDefaultAttributes(*args, **kwargs): | |
2038 | """ | |
2039 | ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2040 | ||
2041 | Get the default attributes for this class. This is useful if you want | |
2042 | to use the same font or colour in your own control as in a standard | |
2043 | control -- which is a much better idea than hard coding specific | |
2044 | colours or fonts which might look completely out of place on the | |
2045 | user's system, especially if it uses themes. | |
2046 | ||
2047 | The variant parameter is only relevant under Mac currently and is | |
2048 | ignore under other platforms. Under Mac, it will change the size of | |
2049 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2050 | this. | |
2051 | """ | |
2052 | return _controls_.ScrollBar_GetClassDefaultAttributes(*args, **kwargs) | |
2053 | ||
2054 | #--------------------------------------------------------------------------- | |
2055 | ||
2056 | SP_HORIZONTAL = _controls_.SP_HORIZONTAL | |
2057 | SP_VERTICAL = _controls_.SP_VERTICAL | |
2058 | SP_ARROW_KEYS = _controls_.SP_ARROW_KEYS | |
2059 | SP_WRAP = _controls_.SP_WRAP | |
2060 | class SpinButton(_core.Control): | |
2061 | def __repr__(self): | |
2062 | return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2063 | def __init__(self, *args, **kwargs): | |
2064 | """ | |
2065 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2066 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
2067 | String name=SPIN_BUTTON_NAME) -> SpinButton | |
2068 | """ | |
2069 | newobj = _controls_.new_SpinButton(*args, **kwargs) | |
2070 | self.this = newobj.this | |
2071 | self.thisown = 1 | |
2072 | del newobj.thisown | |
2073 | self._setOORInfo(self) | |
2074 | ||
2075 | def Create(*args, **kwargs): | |
2076 | """ | |
2077 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2078 | Size size=DefaultSize, long style=SP_HORIZONTAL, | |
2079 | String name=SPIN_BUTTON_NAME) -> bool | |
2080 | """ | |
2081 | return _controls_.SpinButton_Create(*args, **kwargs) | |
2082 | ||
2083 | def GetValue(*args, **kwargs): | |
2084 | """GetValue(self) -> int""" | |
2085 | return _controls_.SpinButton_GetValue(*args, **kwargs) | |
2086 | ||
2087 | def GetMin(*args, **kwargs): | |
2088 | """GetMin(self) -> int""" | |
2089 | return _controls_.SpinButton_GetMin(*args, **kwargs) | |
2090 | ||
2091 | def GetMax(*args, **kwargs): | |
2092 | """GetMax(self) -> int""" | |
2093 | return _controls_.SpinButton_GetMax(*args, **kwargs) | |
2094 | ||
2095 | def SetValue(*args, **kwargs): | |
2096 | """SetValue(self, int val)""" | |
2097 | return _controls_.SpinButton_SetValue(*args, **kwargs) | |
2098 | ||
2099 | def SetMin(*args, **kwargs): | |
2100 | """SetMin(self, int minVal)""" | |
2101 | return _controls_.SpinButton_SetMin(*args, **kwargs) | |
2102 | ||
2103 | def SetMax(*args, **kwargs): | |
2104 | """SetMax(self, int maxVal)""" | |
2105 | return _controls_.SpinButton_SetMax(*args, **kwargs) | |
2106 | ||
2107 | def SetRange(*args, **kwargs): | |
2108 | """SetRange(self, int minVal, int maxVal)""" | |
2109 | return _controls_.SpinButton_SetRange(*args, **kwargs) | |
2110 | ||
2111 | def IsVertical(*args, **kwargs): | |
2112 | """IsVertical(self) -> bool""" | |
2113 | return _controls_.SpinButton_IsVertical(*args, **kwargs) | |
2114 | ||
2115 | def GetClassDefaultAttributes(*args, **kwargs): | |
2116 | """ | |
2117 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2118 | ||
2119 | Get the default attributes for this class. This is useful if you want | |
2120 | to use the same font or colour in your own control as in a standard | |
2121 | control -- which is a much better idea than hard coding specific | |
2122 | colours or fonts which might look completely out of place on the | |
2123 | user's system, especially if it uses themes. | |
2124 | ||
2125 | The variant parameter is only relevant under Mac currently and is | |
2126 | ignore under other platforms. Under Mac, it will change the size of | |
2127 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2128 | this. | |
2129 | """ | |
2130 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) | |
2131 | ||
2132 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2133 | ||
2134 | class SpinButtonPtr(SpinButton): | |
2135 | def __init__(self, this): | |
2136 | self.this = this | |
2137 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2138 | self.__class__ = SpinButton | |
2139 | _controls_.SpinButton_swigregister(SpinButtonPtr) | |
2140 | SPIN_BUTTON_NAME = cvar.SPIN_BUTTON_NAME | |
2141 | SpinCtrlNameStr = cvar.SpinCtrlNameStr | |
2142 | ||
2143 | def PreSpinButton(*args, **kwargs): | |
2144 | """PreSpinButton() -> SpinButton""" | |
2145 | val = _controls_.new_PreSpinButton(*args, **kwargs) | |
2146 | val.thisown = 1 | |
2147 | return val | |
2148 | ||
2149 | def SpinButton_GetClassDefaultAttributes(*args, **kwargs): | |
2150 | """ | |
2151 | SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2152 | ||
2153 | Get the default attributes for this class. This is useful if you want | |
2154 | to use the same font or colour in your own control as in a standard | |
2155 | control -- which is a much better idea than hard coding specific | |
2156 | colours or fonts which might look completely out of place on the | |
2157 | user's system, especially if it uses themes. | |
2158 | ||
2159 | The variant parameter is only relevant under Mac currently and is | |
2160 | ignore under other platforms. Under Mac, it will change the size of | |
2161 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2162 | this. | |
2163 | """ | |
2164 | return _controls_.SpinButton_GetClassDefaultAttributes(*args, **kwargs) | |
2165 | ||
2166 | class SpinCtrl(_core.Control): | |
2167 | def __repr__(self): | |
2168 | return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2169 | def __init__(self, *args, **kwargs): | |
2170 | """ | |
2171 | __init__(self, Window parent, int id=-1, String value=EmptyString, | |
2172 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2173 | long style=SP_ARROW_KEYS, int min=0, int max=100, | |
2174 | int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl | |
2175 | """ | |
2176 | newobj = _controls_.new_SpinCtrl(*args, **kwargs) | |
2177 | self.this = newobj.this | |
2178 | self.thisown = 1 | |
2179 | del newobj.thisown | |
2180 | self._setOORInfo(self) | |
2181 | ||
2182 | def Create(*args, **kwargs): | |
2183 | """ | |
2184 | Create(self, Window parent, int id=-1, String value=EmptyString, | |
2185 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2186 | long style=SP_ARROW_KEYS, int min=0, int max=100, | |
2187 | int initial=0, String name=SpinCtrlNameStr) -> bool | |
2188 | """ | |
2189 | return _controls_.SpinCtrl_Create(*args, **kwargs) | |
2190 | ||
2191 | def GetValue(*args, **kwargs): | |
2192 | """GetValue(self) -> int""" | |
2193 | return _controls_.SpinCtrl_GetValue(*args, **kwargs) | |
2194 | ||
2195 | def SetValue(*args, **kwargs): | |
2196 | """SetValue(self, int value)""" | |
2197 | return _controls_.SpinCtrl_SetValue(*args, **kwargs) | |
2198 | ||
2199 | def SetValueString(*args, **kwargs): | |
2200 | """SetValueString(self, String text)""" | |
2201 | return _controls_.SpinCtrl_SetValueString(*args, **kwargs) | |
2202 | ||
2203 | def SetRange(*args, **kwargs): | |
2204 | """SetRange(self, int minVal, int maxVal)""" | |
2205 | return _controls_.SpinCtrl_SetRange(*args, **kwargs) | |
2206 | ||
2207 | def GetMin(*args, **kwargs): | |
2208 | """GetMin(self) -> int""" | |
2209 | return _controls_.SpinCtrl_GetMin(*args, **kwargs) | |
2210 | ||
2211 | def GetMax(*args, **kwargs): | |
2212 | """GetMax(self) -> int""" | |
2213 | return _controls_.SpinCtrl_GetMax(*args, **kwargs) | |
2214 | ||
2215 | def SetSelection(*args, **kwargs): | |
2216 | """SetSelection(self, long from, long to)""" | |
2217 | return _controls_.SpinCtrl_SetSelection(*args, **kwargs) | |
2218 | ||
2219 | def GetClassDefaultAttributes(*args, **kwargs): | |
2220 | """ | |
2221 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2222 | ||
2223 | Get the default attributes for this class. This is useful if you want | |
2224 | to use the same font or colour in your own control as in a standard | |
2225 | control -- which is a much better idea than hard coding specific | |
2226 | colours or fonts which might look completely out of place on the | |
2227 | user's system, especially if it uses themes. | |
2228 | ||
2229 | The variant parameter is only relevant under Mac currently and is | |
2230 | ignore under other platforms. Under Mac, it will change the size of | |
2231 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2232 | this. | |
2233 | """ | |
2234 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
2235 | ||
2236 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2237 | ||
2238 | class SpinCtrlPtr(SpinCtrl): | |
2239 | def __init__(self, this): | |
2240 | self.this = this | |
2241 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2242 | self.__class__ = SpinCtrl | |
2243 | _controls_.SpinCtrl_swigregister(SpinCtrlPtr) | |
2244 | ||
2245 | def PreSpinCtrl(*args, **kwargs): | |
2246 | """PreSpinCtrl() -> SpinCtrl""" | |
2247 | val = _controls_.new_PreSpinCtrl(*args, **kwargs) | |
2248 | val.thisown = 1 | |
2249 | return val | |
2250 | ||
2251 | def SpinCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
2252 | """ | |
2253 | SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2254 | ||
2255 | Get the default attributes for this class. This is useful if you want | |
2256 | to use the same font or colour in your own control as in a standard | |
2257 | control -- which is a much better idea than hard coding specific | |
2258 | colours or fonts which might look completely out of place on the | |
2259 | user's system, especially if it uses themes. | |
2260 | ||
2261 | The variant parameter is only relevant under Mac currently and is | |
2262 | ignore under other platforms. Under Mac, it will change the size of | |
2263 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2264 | this. | |
2265 | """ | |
2266 | return _controls_.SpinCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
2267 | ||
2268 | class SpinEvent(_core.NotifyEvent): | |
2269 | def __repr__(self): | |
2270 | return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2271 | def __init__(self, *args, **kwargs): | |
2272 | """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent""" | |
2273 | newobj = _controls_.new_SpinEvent(*args, **kwargs) | |
2274 | self.this = newobj.this | |
2275 | self.thisown = 1 | |
2276 | del newobj.thisown | |
2277 | def GetPosition(*args, **kwargs): | |
2278 | """GetPosition(self) -> int""" | |
2279 | return _controls_.SpinEvent_GetPosition(*args, **kwargs) | |
2280 | ||
2281 | def SetPosition(*args, **kwargs): | |
2282 | """SetPosition(self, int pos)""" | |
2283 | return _controls_.SpinEvent_SetPosition(*args, **kwargs) | |
2284 | ||
2285 | ||
2286 | class SpinEventPtr(SpinEvent): | |
2287 | def __init__(self, this): | |
2288 | self.this = this | |
2289 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2290 | self.__class__ = SpinEvent | |
2291 | _controls_.SpinEvent_swigregister(SpinEventPtr) | |
2292 | ||
2293 | wxEVT_COMMAND_SPINCTRL_UPDATED = _controls_.wxEVT_COMMAND_SPINCTRL_UPDATED | |
2294 | EVT_SPIN_UP = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEUP, 1) | |
2295 | EVT_SPIN_DOWN = wx.PyEventBinder( wx.wxEVT_SCROLL_LINEDOWN, 1) | |
2296 | EVT_SPIN = wx.PyEventBinder( wx.wxEVT_SCROLL_THUMBTRACK, 1) | |
2297 | EVT_SPINCTRL = wx.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED, 1) | |
2298 | ||
2299 | #--------------------------------------------------------------------------- | |
2300 | ||
2301 | class RadioBox(_core.Control): | |
2302 | def __repr__(self): | |
2303 | return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2304 | def __init__(self, *args, **kwargs): | |
2305 | """ | |
2306 | __init__(self, Window parent, int id=-1, String label=EmptyString, | |
2307 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2308 | wxArrayString choices=wxPyEmptyStringArray, | |
2309 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2310 | Validator validator=DefaultValidator, | |
2311 | String name=RadioBoxNameStr) -> RadioBox | |
2312 | """ | |
2313 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
2314 | newobj = _controls_.new_RadioBox(*args, **kwargs) | |
2315 | self.this = newobj.this | |
2316 | self.thisown = 1 | |
2317 | del newobj.thisown | |
2318 | self._setOORInfo(self) | |
2319 | ||
2320 | def Create(*args, **kwargs): | |
2321 | """ | |
2322 | Create(self, Window parent, int id=-1, String label=EmptyString, | |
2323 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2324 | wxArrayString choices=wxPyEmptyStringArray, | |
2325 | int majorDimension=0, long style=RA_HORIZONTAL, | |
2326 | Validator validator=DefaultValidator, | |
2327 | String name=RadioBoxNameStr) -> bool | |
2328 | """ | |
2329 | return _controls_.RadioBox_Create(*args, **kwargs) | |
2330 | ||
2331 | def SetSelection(*args, **kwargs): | |
2332 | """SetSelection(self, int n)""" | |
2333 | return _controls_.RadioBox_SetSelection(*args, **kwargs) | |
2334 | ||
2335 | def GetSelection(*args, **kwargs): | |
2336 | """GetSelection(self) -> int""" | |
2337 | return _controls_.RadioBox_GetSelection(*args, **kwargs) | |
2338 | ||
2339 | def GetStringSelection(*args, **kwargs): | |
2340 | """GetStringSelection(self) -> String""" | |
2341 | return _controls_.RadioBox_GetStringSelection(*args, **kwargs) | |
2342 | ||
2343 | def SetStringSelection(*args, **kwargs): | |
2344 | """SetStringSelection(self, String s) -> bool""" | |
2345 | return _controls_.RadioBox_SetStringSelection(*args, **kwargs) | |
2346 | ||
2347 | def GetCount(*args, **kwargs): | |
2348 | """GetCount(self) -> int""" | |
2349 | return _controls_.RadioBox_GetCount(*args, **kwargs) | |
2350 | ||
2351 | def FindString(*args, **kwargs): | |
2352 | """FindString(self, String s) -> int""" | |
2353 | return _controls_.RadioBox_FindString(*args, **kwargs) | |
2354 | ||
2355 | def GetString(*args, **kwargs): | |
2356 | """GetString(self, int n) -> String""" | |
2357 | return _controls_.RadioBox_GetString(*args, **kwargs) | |
2358 | ||
2359 | def SetString(*args, **kwargs): | |
2360 | """SetString(self, int n, String label)""" | |
2361 | return _controls_.RadioBox_SetString(*args, **kwargs) | |
2362 | ||
2363 | GetItemLabel = GetString | |
2364 | SetItemLabel = SetString | |
2365 | def EnableItem(*args, **kwargs): | |
2366 | """EnableItem(self, int n, bool enable=True)""" | |
2367 | return _controls_.RadioBox_EnableItem(*args, **kwargs) | |
2368 | ||
2369 | def ShowItem(*args, **kwargs): | |
2370 | """ShowItem(self, int n, bool show=True)""" | |
2371 | return _controls_.RadioBox_ShowItem(*args, **kwargs) | |
2372 | ||
2373 | def GetColumnCount(*args, **kwargs): | |
2374 | """GetColumnCount(self) -> int""" | |
2375 | return _controls_.RadioBox_GetColumnCount(*args, **kwargs) | |
2376 | ||
2377 | def GetRowCount(*args, **kwargs): | |
2378 | """GetRowCount(self) -> int""" | |
2379 | return _controls_.RadioBox_GetRowCount(*args, **kwargs) | |
2380 | ||
2381 | def GetNextItem(*args, **kwargs): | |
2382 | """GetNextItem(self, int item, int dir, long style) -> int""" | |
2383 | return _controls_.RadioBox_GetNextItem(*args, **kwargs) | |
2384 | ||
2385 | def GetClassDefaultAttributes(*args, **kwargs): | |
2386 | """ | |
2387 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2388 | ||
2389 | Get the default attributes for this class. This is useful if you want | |
2390 | to use the same font or colour in your own control as in a standard | |
2391 | control -- which is a much better idea than hard coding specific | |
2392 | colours or fonts which might look completely out of place on the | |
2393 | user's system, especially if it uses themes. | |
2394 | ||
2395 | The variant parameter is only relevant under Mac currently and is | |
2396 | ignore under other platforms. Under Mac, it will change the size of | |
2397 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2398 | this. | |
2399 | """ | |
2400 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) | |
2401 | ||
2402 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2403 | ||
2404 | class RadioBoxPtr(RadioBox): | |
2405 | def __init__(self, this): | |
2406 | self.this = this | |
2407 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2408 | self.__class__ = RadioBox | |
2409 | _controls_.RadioBox_swigregister(RadioBoxPtr) | |
2410 | RadioBoxNameStr = cvar.RadioBoxNameStr | |
2411 | RadioButtonNameStr = cvar.RadioButtonNameStr | |
2412 | ||
2413 | def PreRadioBox(*args, **kwargs): | |
2414 | """PreRadioBox() -> RadioBox""" | |
2415 | val = _controls_.new_PreRadioBox(*args, **kwargs) | |
2416 | val.thisown = 1 | |
2417 | return val | |
2418 | ||
2419 | def RadioBox_GetClassDefaultAttributes(*args, **kwargs): | |
2420 | """ | |
2421 | RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2422 | ||
2423 | Get the default attributes for this class. This is useful if you want | |
2424 | to use the same font or colour in your own control as in a standard | |
2425 | control -- which is a much better idea than hard coding specific | |
2426 | colours or fonts which might look completely out of place on the | |
2427 | user's system, especially if it uses themes. | |
2428 | ||
2429 | The variant parameter is only relevant under Mac currently and is | |
2430 | ignore under other platforms. Under Mac, it will change the size of | |
2431 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2432 | this. | |
2433 | """ | |
2434 | return _controls_.RadioBox_GetClassDefaultAttributes(*args, **kwargs) | |
2435 | ||
2436 | #--------------------------------------------------------------------------- | |
2437 | ||
2438 | class RadioButton(_core.Control): | |
2439 | def __repr__(self): | |
2440 | return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2441 | def __init__(self, *args, **kwargs): | |
2442 | """ | |
2443 | __init__(self, Window parent, int id=-1, String label=EmptyString, | |
2444 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2445 | long style=0, Validator validator=DefaultValidator, | |
2446 | String name=RadioButtonNameStr) -> RadioButton | |
2447 | """ | |
2448 | newobj = _controls_.new_RadioButton(*args, **kwargs) | |
2449 | self.this = newobj.this | |
2450 | self.thisown = 1 | |
2451 | del newobj.thisown | |
2452 | self._setOORInfo(self) | |
2453 | ||
2454 | def Create(*args, **kwargs): | |
2455 | """ | |
2456 | Create(self, Window parent, int id=-1, String label=EmptyString, | |
2457 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2458 | long style=0, Validator validator=DefaultValidator, | |
2459 | String name=RadioButtonNameStr) -> bool | |
2460 | """ | |
2461 | return _controls_.RadioButton_Create(*args, **kwargs) | |
2462 | ||
2463 | def GetValue(*args, **kwargs): | |
2464 | """GetValue(self) -> bool""" | |
2465 | return _controls_.RadioButton_GetValue(*args, **kwargs) | |
2466 | ||
2467 | def SetValue(*args, **kwargs): | |
2468 | """SetValue(self, bool value)""" | |
2469 | return _controls_.RadioButton_SetValue(*args, **kwargs) | |
2470 | ||
2471 | def GetClassDefaultAttributes(*args, **kwargs): | |
2472 | """ | |
2473 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2474 | ||
2475 | Get the default attributes for this class. This is useful if you want | |
2476 | to use the same font or colour in your own control as in a standard | |
2477 | control -- which is a much better idea than hard coding specific | |
2478 | colours or fonts which might look completely out of place on the | |
2479 | user's system, especially if it uses themes. | |
2480 | ||
2481 | The variant parameter is only relevant under Mac currently and is | |
2482 | ignore under other platforms. Under Mac, it will change the size of | |
2483 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2484 | this. | |
2485 | """ | |
2486 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) | |
2487 | ||
2488 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2489 | ||
2490 | class RadioButtonPtr(RadioButton): | |
2491 | def __init__(self, this): | |
2492 | self.this = this | |
2493 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2494 | self.__class__ = RadioButton | |
2495 | _controls_.RadioButton_swigregister(RadioButtonPtr) | |
2496 | ||
2497 | def PreRadioButton(*args, **kwargs): | |
2498 | """PreRadioButton() -> RadioButton""" | |
2499 | val = _controls_.new_PreRadioButton(*args, **kwargs) | |
2500 | val.thisown = 1 | |
2501 | return val | |
2502 | ||
2503 | def RadioButton_GetClassDefaultAttributes(*args, **kwargs): | |
2504 | """ | |
2505 | RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2506 | ||
2507 | Get the default attributes for this class. This is useful if you want | |
2508 | to use the same font or colour in your own control as in a standard | |
2509 | control -- which is a much better idea than hard coding specific | |
2510 | colours or fonts which might look completely out of place on the | |
2511 | user's system, especially if it uses themes. | |
2512 | ||
2513 | The variant parameter is only relevant under Mac currently and is | |
2514 | ignore under other platforms. Under Mac, it will change the size of | |
2515 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2516 | this. | |
2517 | """ | |
2518 | return _controls_.RadioButton_GetClassDefaultAttributes(*args, **kwargs) | |
2519 | ||
2520 | #--------------------------------------------------------------------------- | |
2521 | ||
2522 | class Slider(_core.Control): | |
2523 | def __repr__(self): | |
2524 | return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2525 | def __init__(self, *args, **kwargs): | |
2526 | """ | |
2527 | __init__(self, Window parent, int id=-1, int value=0, int minValue=0, | |
2528 | int maxValue=100, Point pos=DefaultPosition, | |
2529 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2530 | Validator validator=DefaultValidator, | |
2531 | String name=SliderNameStr) -> Slider | |
2532 | """ | |
2533 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
2534 | newobj = _controls_.new_Slider(*args, **kwargs) | |
2535 | self.this = newobj.this | |
2536 | self.thisown = 1 | |
2537 | del newobj.thisown | |
2538 | self._setOORInfo(self) | |
2539 | ||
2540 | def Create(*args, **kwargs): | |
2541 | """ | |
2542 | Create(self, Window parent, int id=-1, int value=0, int minValue=0, | |
2543 | int maxValue=100, Point pos=DefaultPosition, | |
2544 | Size size=DefaultSize, long style=SL_HORIZONTAL, | |
2545 | Validator validator=DefaultValidator, | |
2546 | String name=SliderNameStr) -> bool | |
2547 | """ | |
2548 | return _controls_.Slider_Create(*args, **kwargs) | |
2549 | ||
2550 | def GetValue(*args, **kwargs): | |
2551 | """GetValue(self) -> int""" | |
2552 | return _controls_.Slider_GetValue(*args, **kwargs) | |
2553 | ||
2554 | def SetValue(*args, **kwargs): | |
2555 | """SetValue(self, int value)""" | |
2556 | return _controls_.Slider_SetValue(*args, **kwargs) | |
2557 | ||
2558 | def SetRange(*args, **kwargs): | |
2559 | """SetRange(self, int minValue, int maxValue)""" | |
2560 | return _controls_.Slider_SetRange(*args, **kwargs) | |
2561 | ||
2562 | def GetMin(*args, **kwargs): | |
2563 | """GetMin(self) -> int""" | |
2564 | return _controls_.Slider_GetMin(*args, **kwargs) | |
2565 | ||
2566 | def GetMax(*args, **kwargs): | |
2567 | """GetMax(self) -> int""" | |
2568 | return _controls_.Slider_GetMax(*args, **kwargs) | |
2569 | ||
2570 | def SetMin(*args, **kwargs): | |
2571 | """SetMin(self, int minValue)""" | |
2572 | return _controls_.Slider_SetMin(*args, **kwargs) | |
2573 | ||
2574 | def SetMax(*args, **kwargs): | |
2575 | """SetMax(self, int maxValue)""" | |
2576 | return _controls_.Slider_SetMax(*args, **kwargs) | |
2577 | ||
2578 | def SetLineSize(*args, **kwargs): | |
2579 | """SetLineSize(self, int lineSize)""" | |
2580 | return _controls_.Slider_SetLineSize(*args, **kwargs) | |
2581 | ||
2582 | def SetPageSize(*args, **kwargs): | |
2583 | """SetPageSize(self, int pageSize)""" | |
2584 | return _controls_.Slider_SetPageSize(*args, **kwargs) | |
2585 | ||
2586 | def GetLineSize(*args, **kwargs): | |
2587 | """GetLineSize(self) -> int""" | |
2588 | return _controls_.Slider_GetLineSize(*args, **kwargs) | |
2589 | ||
2590 | def GetPageSize(*args, **kwargs): | |
2591 | """GetPageSize(self) -> int""" | |
2592 | return _controls_.Slider_GetPageSize(*args, **kwargs) | |
2593 | ||
2594 | def SetThumbLength(*args, **kwargs): | |
2595 | """SetThumbLength(self, int lenPixels)""" | |
2596 | return _controls_.Slider_SetThumbLength(*args, **kwargs) | |
2597 | ||
2598 | def GetThumbLength(*args, **kwargs): | |
2599 | """GetThumbLength(self) -> int""" | |
2600 | return _controls_.Slider_GetThumbLength(*args, **kwargs) | |
2601 | ||
2602 | def SetTickFreq(*args, **kwargs): | |
2603 | """SetTickFreq(self, int n, int pos=1)""" | |
2604 | return _controls_.Slider_SetTickFreq(*args, **kwargs) | |
2605 | ||
2606 | def GetTickFreq(*args, **kwargs): | |
2607 | """GetTickFreq(self) -> int""" | |
2608 | return _controls_.Slider_GetTickFreq(*args, **kwargs) | |
2609 | ||
2610 | def ClearTicks(*args, **kwargs): | |
2611 | """ClearTicks(self)""" | |
2612 | return _controls_.Slider_ClearTicks(*args, **kwargs) | |
2613 | ||
2614 | def SetTick(*args, **kwargs): | |
2615 | """SetTick(self, int tickPos)""" | |
2616 | return _controls_.Slider_SetTick(*args, **kwargs) | |
2617 | ||
2618 | def ClearSel(*args, **kwargs): | |
2619 | """ClearSel(self)""" | |
2620 | return _controls_.Slider_ClearSel(*args, **kwargs) | |
2621 | ||
2622 | def GetSelEnd(*args, **kwargs): | |
2623 | """GetSelEnd(self) -> int""" | |
2624 | return _controls_.Slider_GetSelEnd(*args, **kwargs) | |
2625 | ||
2626 | def GetSelStart(*args, **kwargs): | |
2627 | """GetSelStart(self) -> int""" | |
2628 | return _controls_.Slider_GetSelStart(*args, **kwargs) | |
2629 | ||
2630 | def SetSelection(*args, **kwargs): | |
2631 | """SetSelection(self, int min, int max)""" | |
2632 | return _controls_.Slider_SetSelection(*args, **kwargs) | |
2633 | ||
2634 | def GetClassDefaultAttributes(*args, **kwargs): | |
2635 | """ | |
2636 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2637 | ||
2638 | Get the default attributes for this class. This is useful if you want | |
2639 | to use the same font or colour in your own control as in a standard | |
2640 | control -- which is a much better idea than hard coding specific | |
2641 | colours or fonts which might look completely out of place on the | |
2642 | user's system, especially if it uses themes. | |
2643 | ||
2644 | The variant parameter is only relevant under Mac currently and is | |
2645 | ignore under other platforms. Under Mac, it will change the size of | |
2646 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2647 | this. | |
2648 | """ | |
2649 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) | |
2650 | ||
2651 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2652 | ||
2653 | class SliderPtr(Slider): | |
2654 | def __init__(self, this): | |
2655 | self.this = this | |
2656 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2657 | self.__class__ = Slider | |
2658 | _controls_.Slider_swigregister(SliderPtr) | |
2659 | SliderNameStr = cvar.SliderNameStr | |
2660 | ||
2661 | def PreSlider(*args, **kwargs): | |
2662 | """PreSlider() -> Slider""" | |
2663 | val = _controls_.new_PreSlider(*args, **kwargs) | |
2664 | val.thisown = 1 | |
2665 | return val | |
2666 | ||
2667 | def Slider_GetClassDefaultAttributes(*args, **kwargs): | |
2668 | """ | |
2669 | Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2670 | ||
2671 | Get the default attributes for this class. This is useful if you want | |
2672 | to use the same font or colour in your own control as in a standard | |
2673 | control -- which is a much better idea than hard coding specific | |
2674 | colours or fonts which might look completely out of place on the | |
2675 | user's system, especially if it uses themes. | |
2676 | ||
2677 | The variant parameter is only relevant under Mac currently and is | |
2678 | ignore under other platforms. Under Mac, it will change the size of | |
2679 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2680 | this. | |
2681 | """ | |
2682 | return _controls_.Slider_GetClassDefaultAttributes(*args, **kwargs) | |
2683 | ||
2684 | #--------------------------------------------------------------------------- | |
2685 | ||
2686 | wxEVT_COMMAND_TOGGLEBUTTON_CLICKED = _controls_.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED | |
2687 | EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1) | |
2688 | ||
2689 | class ToggleButton(_core.Control): | |
2690 | def __repr__(self): | |
2691 | return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2692 | def __init__(self, *args, **kwargs): | |
2693 | """ | |
2694 | __init__(self, Window parent, int id=-1, String label=EmptyString, | |
2695 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2696 | long style=0, Validator validator=DefaultValidator, | |
2697 | String name=ToggleButtonNameStr) -> ToggleButton | |
2698 | """ | |
2699 | newobj = _controls_.new_ToggleButton(*args, **kwargs) | |
2700 | self.this = newobj.this | |
2701 | self.thisown = 1 | |
2702 | del newobj.thisown | |
2703 | self._setOORInfo(self) | |
2704 | ||
2705 | def Create(*args, **kwargs): | |
2706 | """ | |
2707 | Create(self, Window parent, int id=-1, String label=EmptyString, | |
2708 | Point pos=DefaultPosition, Size size=DefaultSize, | |
2709 | long style=0, Validator validator=DefaultValidator, | |
2710 | String name=ToggleButtonNameStr) -> bool | |
2711 | """ | |
2712 | return _controls_.ToggleButton_Create(*args, **kwargs) | |
2713 | ||
2714 | def SetValue(*args, **kwargs): | |
2715 | """SetValue(self, bool value)""" | |
2716 | return _controls_.ToggleButton_SetValue(*args, **kwargs) | |
2717 | ||
2718 | def GetValue(*args, **kwargs): | |
2719 | """GetValue(self) -> bool""" | |
2720 | return _controls_.ToggleButton_GetValue(*args, **kwargs) | |
2721 | ||
2722 | def SetLabel(*args, **kwargs): | |
2723 | """ | |
2724 | SetLabel(self, String label) | |
2725 | ||
2726 | Sets the item's text. | |
2727 | """ | |
2728 | return _controls_.ToggleButton_SetLabel(*args, **kwargs) | |
2729 | ||
2730 | def GetClassDefaultAttributes(*args, **kwargs): | |
2731 | """ | |
2732 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2733 | ||
2734 | Get the default attributes for this class. This is useful if you want | |
2735 | to use the same font or colour in your own control as in a standard | |
2736 | control -- which is a much better idea than hard coding specific | |
2737 | colours or fonts which might look completely out of place on the | |
2738 | user's system, especially if it uses themes. | |
2739 | ||
2740 | The variant parameter is only relevant under Mac currently and is | |
2741 | ignore under other platforms. Under Mac, it will change the size of | |
2742 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2743 | this. | |
2744 | """ | |
2745 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) | |
2746 | ||
2747 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2748 | ||
2749 | class ToggleButtonPtr(ToggleButton): | |
2750 | def __init__(self, this): | |
2751 | self.this = this | |
2752 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2753 | self.__class__ = ToggleButton | |
2754 | _controls_.ToggleButton_swigregister(ToggleButtonPtr) | |
2755 | ToggleButtonNameStr = cvar.ToggleButtonNameStr | |
2756 | ||
2757 | def PreToggleButton(*args, **kwargs): | |
2758 | """PreToggleButton() -> ToggleButton""" | |
2759 | val = _controls_.new_PreToggleButton(*args, **kwargs) | |
2760 | val.thisown = 1 | |
2761 | return val | |
2762 | ||
2763 | def ToggleButton_GetClassDefaultAttributes(*args, **kwargs): | |
2764 | """ | |
2765 | ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2766 | ||
2767 | Get the default attributes for this class. This is useful if you want | |
2768 | to use the same font or colour in your own control as in a standard | |
2769 | control -- which is a much better idea than hard coding specific | |
2770 | colours or fonts which might look completely out of place on the | |
2771 | user's system, especially if it uses themes. | |
2772 | ||
2773 | The variant parameter is only relevant under Mac currently and is | |
2774 | ignore under other platforms. Under Mac, it will change the size of | |
2775 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2776 | this. | |
2777 | """ | |
2778 | return _controls_.ToggleButton_GetClassDefaultAttributes(*args, **kwargs) | |
2779 | ||
2780 | #--------------------------------------------------------------------------- | |
2781 | ||
2782 | class BookCtrl(_core.Control): | |
2783 | def __init__(self): raise RuntimeError, "No constructor defined" | |
2784 | def __repr__(self): | |
2785 | return "<%s.%s; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2786 | def GetPageCount(*args, **kwargs): | |
2787 | """GetPageCount(self) -> size_t""" | |
2788 | return _controls_.BookCtrl_GetPageCount(*args, **kwargs) | |
2789 | ||
2790 | def GetPage(*args, **kwargs): | |
2791 | """GetPage(self, size_t n) -> Window""" | |
2792 | return _controls_.BookCtrl_GetPage(*args, **kwargs) | |
2793 | ||
2794 | def GetSelection(*args, **kwargs): | |
2795 | """GetSelection(self) -> int""" | |
2796 | return _controls_.BookCtrl_GetSelection(*args, **kwargs) | |
2797 | ||
2798 | def SetPageText(*args, **kwargs): | |
2799 | """SetPageText(self, size_t n, String strText) -> bool""" | |
2800 | return _controls_.BookCtrl_SetPageText(*args, **kwargs) | |
2801 | ||
2802 | def GetPageText(*args, **kwargs): | |
2803 | """GetPageText(self, size_t n) -> String""" | |
2804 | return _controls_.BookCtrl_GetPageText(*args, **kwargs) | |
2805 | ||
2806 | def SetImageList(*args, **kwargs): | |
2807 | """SetImageList(self, ImageList imageList)""" | |
2808 | return _controls_.BookCtrl_SetImageList(*args, **kwargs) | |
2809 | ||
2810 | def AssignImageList(*args, **kwargs): | |
2811 | """AssignImageList(self, ImageList imageList)""" | |
2812 | return _controls_.BookCtrl_AssignImageList(*args, **kwargs) | |
2813 | ||
2814 | def GetImageList(*args, **kwargs): | |
2815 | """GetImageList(self) -> ImageList""" | |
2816 | return _controls_.BookCtrl_GetImageList(*args, **kwargs) | |
2817 | ||
2818 | def GetPageImage(*args, **kwargs): | |
2819 | """GetPageImage(self, size_t n) -> int""" | |
2820 | return _controls_.BookCtrl_GetPageImage(*args, **kwargs) | |
2821 | ||
2822 | def SetPageImage(*args, **kwargs): | |
2823 | """SetPageImage(self, size_t n, int imageId) -> bool""" | |
2824 | return _controls_.BookCtrl_SetPageImage(*args, **kwargs) | |
2825 | ||
2826 | def SetPageSize(*args, **kwargs): | |
2827 | """SetPageSize(self, Size size)""" | |
2828 | return _controls_.BookCtrl_SetPageSize(*args, **kwargs) | |
2829 | ||
2830 | def CalcSizeFromPage(*args, **kwargs): | |
2831 | """CalcSizeFromPage(self, Size sizePage) -> Size""" | |
2832 | return _controls_.BookCtrl_CalcSizeFromPage(*args, **kwargs) | |
2833 | ||
2834 | def DeletePage(*args, **kwargs): | |
2835 | """DeletePage(self, size_t n) -> bool""" | |
2836 | return _controls_.BookCtrl_DeletePage(*args, **kwargs) | |
2837 | ||
2838 | def RemovePage(*args, **kwargs): | |
2839 | """RemovePage(self, size_t n) -> bool""" | |
2840 | return _controls_.BookCtrl_RemovePage(*args, **kwargs) | |
2841 | ||
2842 | def DeleteAllPages(*args, **kwargs): | |
2843 | """DeleteAllPages(self) -> bool""" | |
2844 | return _controls_.BookCtrl_DeleteAllPages(*args, **kwargs) | |
2845 | ||
2846 | def AddPage(*args, **kwargs): | |
2847 | """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool""" | |
2848 | return _controls_.BookCtrl_AddPage(*args, **kwargs) | |
2849 | ||
2850 | def InsertPage(*args, **kwargs): | |
2851 | """ | |
2852 | InsertPage(self, size_t n, Window page, String text, bool select=False, | |
2853 | int imageId=-1) -> bool | |
2854 | """ | |
2855 | return _controls_.BookCtrl_InsertPage(*args, **kwargs) | |
2856 | ||
2857 | def SetSelection(*args, **kwargs): | |
2858 | """SetSelection(self, size_t n) -> int""" | |
2859 | return _controls_.BookCtrl_SetSelection(*args, **kwargs) | |
2860 | ||
2861 | def AdvanceSelection(*args, **kwargs): | |
2862 | """AdvanceSelection(self, bool forward=True)""" | |
2863 | return _controls_.BookCtrl_AdvanceSelection(*args, **kwargs) | |
2864 | ||
2865 | def GetClassDefaultAttributes(*args, **kwargs): | |
2866 | """ | |
2867 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2868 | ||
2869 | Get the default attributes for this class. This is useful if you want | |
2870 | to use the same font or colour in your own control as in a standard | |
2871 | control -- which is a much better idea than hard coding specific | |
2872 | colours or fonts which might look completely out of place on the | |
2873 | user's system, especially if it uses themes. | |
2874 | ||
2875 | The variant parameter is only relevant under Mac currently and is | |
2876 | ignore under other platforms. Under Mac, it will change the size of | |
2877 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2878 | this. | |
2879 | """ | |
2880 | return _controls_.BookCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
2881 | ||
2882 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2883 | ||
2884 | class BookCtrlPtr(BookCtrl): | |
2885 | def __init__(self, this): | |
2886 | self.this = this | |
2887 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2888 | self.__class__ = BookCtrl | |
2889 | _controls_.BookCtrl_swigregister(BookCtrlPtr) | |
2890 | NOTEBOOK_NAME = cvar.NOTEBOOK_NAME | |
2891 | ||
2892 | def BookCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
2893 | """ | |
2894 | BookCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
2895 | ||
2896 | Get the default attributes for this class. This is useful if you want | |
2897 | to use the same font or colour in your own control as in a standard | |
2898 | control -- which is a much better idea than hard coding specific | |
2899 | colours or fonts which might look completely out of place on the | |
2900 | user's system, especially if it uses themes. | |
2901 | ||
2902 | The variant parameter is only relevant under Mac currently and is | |
2903 | ignore under other platforms. Under Mac, it will change the size of | |
2904 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
2905 | this. | |
2906 | """ | |
2907 | return _controls_.BookCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
2908 | ||
2909 | class BookCtrlEvent(_core.NotifyEvent): | |
2910 | def __repr__(self): | |
2911 | return "<%s.%s; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2912 | def __init__(self, *args, **kwargs): | |
2913 | """ | |
2914 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
2915 | int nOldSel=-1) -> BookCtrlEvent | |
2916 | """ | |
2917 | newobj = _controls_.new_BookCtrlEvent(*args, **kwargs) | |
2918 | self.this = newobj.this | |
2919 | self.thisown = 1 | |
2920 | del newobj.thisown | |
2921 | def GetSelection(*args, **kwargs): | |
2922 | """GetSelection(self) -> int""" | |
2923 | return _controls_.BookCtrlEvent_GetSelection(*args, **kwargs) | |
2924 | ||
2925 | def SetSelection(*args, **kwargs): | |
2926 | """SetSelection(self, int nSel)""" | |
2927 | return _controls_.BookCtrlEvent_SetSelection(*args, **kwargs) | |
2928 | ||
2929 | def GetOldSelection(*args, **kwargs): | |
2930 | """GetOldSelection(self) -> int""" | |
2931 | return _controls_.BookCtrlEvent_GetOldSelection(*args, **kwargs) | |
2932 | ||
2933 | def SetOldSelection(*args, **kwargs): | |
2934 | """SetOldSelection(self, int nOldSel)""" | |
2935 | return _controls_.BookCtrlEvent_SetOldSelection(*args, **kwargs) | |
2936 | ||
2937 | ||
2938 | class BookCtrlEventPtr(BookCtrlEvent): | |
2939 | def __init__(self, this): | |
2940 | self.this = this | |
2941 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2942 | self.__class__ = BookCtrlEvent | |
2943 | _controls_.BookCtrlEvent_swigregister(BookCtrlEventPtr) | |
2944 | ||
2945 | #--------------------------------------------------------------------------- | |
2946 | ||
2947 | NB_FIXEDWIDTH = _controls_.NB_FIXEDWIDTH | |
2948 | NB_TOP = _controls_.NB_TOP | |
2949 | NB_LEFT = _controls_.NB_LEFT | |
2950 | NB_RIGHT = _controls_.NB_RIGHT | |
2951 | NB_BOTTOM = _controls_.NB_BOTTOM | |
2952 | NB_MULTILINE = _controls_.NB_MULTILINE | |
2953 | NB_HITTEST_NOWHERE = _controls_.NB_HITTEST_NOWHERE | |
2954 | NB_HITTEST_ONICON = _controls_.NB_HITTEST_ONICON | |
2955 | NB_HITTEST_ONLABEL = _controls_.NB_HITTEST_ONLABEL | |
2956 | NB_HITTEST_ONITEM = _controls_.NB_HITTEST_ONITEM | |
2957 | class Notebook(BookCtrl): | |
2958 | def __repr__(self): | |
2959 | return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
2960 | def __init__(self, *args, **kwargs): | |
2961 | """ | |
2962 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2963 | Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook | |
2964 | """ | |
2965 | newobj = _controls_.new_Notebook(*args, **kwargs) | |
2966 | self.this = newobj.this | |
2967 | self.thisown = 1 | |
2968 | del newobj.thisown | |
2969 | self._setOORInfo(self) | |
2970 | ||
2971 | def Create(*args, **kwargs): | |
2972 | """ | |
2973 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
2974 | Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool | |
2975 | """ | |
2976 | return _controls_.Notebook_Create(*args, **kwargs) | |
2977 | ||
2978 | def GetRowCount(*args, **kwargs): | |
2979 | """GetRowCount(self) -> int""" | |
2980 | return _controls_.Notebook_GetRowCount(*args, **kwargs) | |
2981 | ||
2982 | def SetPadding(*args, **kwargs): | |
2983 | """SetPadding(self, Size padding)""" | |
2984 | return _controls_.Notebook_SetPadding(*args, **kwargs) | |
2985 | ||
2986 | def SetTabSize(*args, **kwargs): | |
2987 | """SetTabSize(self, Size sz)""" | |
2988 | return _controls_.Notebook_SetTabSize(*args, **kwargs) | |
2989 | ||
2990 | def HitTest(*args, **kwargs): | |
2991 | """ | |
2992 | HitTest(Point pt) -> (tab, where) | |
2993 | ||
2994 | Returns the tab which is hit, and flags indicating where using | |
2995 | wx.NB_HITTEST flags. | |
2996 | """ | |
2997 | return _controls_.Notebook_HitTest(*args, **kwargs) | |
2998 | ||
2999 | def CalcSizeFromPage(*args, **kwargs): | |
3000 | """CalcSizeFromPage(self, Size sizePage) -> Size""" | |
3001 | return _controls_.Notebook_CalcSizeFromPage(*args, **kwargs) | |
3002 | ||
3003 | def GetClassDefaultAttributes(*args, **kwargs): | |
3004 | """ | |
3005 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3006 | ||
3007 | Get the default attributes for this class. This is useful if you want | |
3008 | to use the same font or colour in your own control as in a standard | |
3009 | control -- which is a much better idea than hard coding specific | |
3010 | colours or fonts which might look completely out of place on the | |
3011 | user's system, especially if it uses themes. | |
3012 | ||
3013 | The variant parameter is only relevant under Mac currently and is | |
3014 | ignore under other platforms. Under Mac, it will change the size of | |
3015 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3016 | this. | |
3017 | """ | |
3018 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) | |
3019 | ||
3020 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
3021 | ||
3022 | class NotebookPtr(Notebook): | |
3023 | def __init__(self, this): | |
3024 | self.this = this | |
3025 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3026 | self.__class__ = Notebook | |
3027 | _controls_.Notebook_swigregister(NotebookPtr) | |
3028 | ||
3029 | def PreNotebook(*args, **kwargs): | |
3030 | """PreNotebook() -> Notebook""" | |
3031 | val = _controls_.new_PreNotebook(*args, **kwargs) | |
3032 | val.thisown = 1 | |
3033 | return val | |
3034 | ||
3035 | def Notebook_GetClassDefaultAttributes(*args, **kwargs): | |
3036 | """ | |
3037 | Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3038 | ||
3039 | Get the default attributes for this class. This is useful if you want | |
3040 | to use the same font or colour in your own control as in a standard | |
3041 | control -- which is a much better idea than hard coding specific | |
3042 | colours or fonts which might look completely out of place on the | |
3043 | user's system, especially if it uses themes. | |
3044 | ||
3045 | The variant parameter is only relevant under Mac currently and is | |
3046 | ignore under other platforms. Under Mac, it will change the size of | |
3047 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3048 | this. | |
3049 | """ | |
3050 | return _controls_.Notebook_GetClassDefaultAttributes(*args, **kwargs) | |
3051 | ||
3052 | class NotebookEvent(BookCtrlEvent): | |
3053 | def __repr__(self): | |
3054 | return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3055 | def __init__(self, *args, **kwargs): | |
3056 | """ | |
3057 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
3058 | int nOldSel=-1) -> NotebookEvent | |
3059 | """ | |
3060 | newobj = _controls_.new_NotebookEvent(*args, **kwargs) | |
3061 | self.this = newobj.this | |
3062 | self.thisown = 1 | |
3063 | del newobj.thisown | |
3064 | ||
3065 | class NotebookEventPtr(NotebookEvent): | |
3066 | def __init__(self, this): | |
3067 | self.this = this | |
3068 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3069 | self.__class__ = NotebookEvent | |
3070 | _controls_.NotebookEvent_swigregister(NotebookEventPtr) | |
3071 | ||
3072 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED | |
3073 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
3074 | # wxNotebook events | |
3075 | EVT_NOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 1 ) | |
3076 | EVT_NOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 1 ) | |
3077 | ||
3078 | #---------------------------------------------------------------------------- | |
3079 | ||
3080 | class NotebookPage(wx.Panel): | |
3081 | """ | |
3082 | There is an old (and apparently unsolvable) bug when placing a | |
3083 | window with a nonstandard background colour in a wxNotebook on | |
3084 | wxGTK, as the notbooks's background colour would always be used | |
3085 | when the window is refreshed. The solution is to place a panel in | |
3086 | the notbook and the coloured window on the panel, sized to cover | |
3087 | the panel. This simple class does that for you, just put an | |
3088 | instance of this in the notebook and make your regular window a | |
3089 | child of this one and it will handle the resize for you. | |
3090 | """ | |
3091 | def __init__(self, parent, id=-1, | |
3092 | pos=wx.DefaultPosition, size=wx.DefaultSize, | |
3093 | style=wx.TAB_TRAVERSAL, name="panel"): | |
3094 | wx.Panel.__init__(self, parent, id, pos, size, style, name) | |
3095 | self.child = None | |
3096 | EVT_SIZE(self, self.OnSize) | |
3097 | ||
3098 | def OnSize(self, evt): | |
3099 | if self.child is None: | |
3100 | children = self.GetChildren() | |
3101 | if len(children): | |
3102 | self.child = children[0] | |
3103 | if self.child: | |
3104 | self.child.SetPosition((0,0)) | |
3105 | self.child.SetSize(self.GetSize()) | |
3106 | ||
3107 | ||
3108 | #--------------------------------------------------------------------------- | |
3109 | ||
3110 | LB_DEFAULT = _controls_.LB_DEFAULT | |
3111 | LB_TOP = _controls_.LB_TOP | |
3112 | LB_BOTTOM = _controls_.LB_BOTTOM | |
3113 | LB_LEFT = _controls_.LB_LEFT | |
3114 | LB_RIGHT = _controls_.LB_RIGHT | |
3115 | LB_ALIGN_MASK = _controls_.LB_ALIGN_MASK | |
3116 | class Listbook(BookCtrl): | |
3117 | def __repr__(self): | |
3118 | return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3119 | def __init__(self, *args, **kwargs): | |
3120 | """ | |
3121 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
3122 | Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook | |
3123 | """ | |
3124 | newobj = _controls_.new_Listbook(*args, **kwargs) | |
3125 | self.this = newobj.this | |
3126 | self.thisown = 1 | |
3127 | del newobj.thisown | |
3128 | self._setOORInfo(self) | |
3129 | ||
3130 | def Create(*args, **kwargs): | |
3131 | """ | |
3132 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
3133 | Size size=DefaultSize, long style=0, String name=EmptyString) -> bool | |
3134 | """ | |
3135 | return _controls_.Listbook_Create(*args, **kwargs) | |
3136 | ||
3137 | def IsVertical(*args, **kwargs): | |
3138 | """IsVertical(self) -> bool""" | |
3139 | return _controls_.Listbook_IsVertical(*args, **kwargs) | |
3140 | ||
3141 | def GetListView(*args, **kwargs): | |
3142 | """GetListView(self) -> ListView""" | |
3143 | return _controls_.Listbook_GetListView(*args, **kwargs) | |
3144 | ||
3145 | ||
3146 | class ListbookPtr(Listbook): | |
3147 | def __init__(self, this): | |
3148 | self.this = this | |
3149 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3150 | self.__class__ = Listbook | |
3151 | _controls_.Listbook_swigregister(ListbookPtr) | |
3152 | ||
3153 | def PreListbook(*args, **kwargs): | |
3154 | """PreListbook() -> Listbook""" | |
3155 | val = _controls_.new_PreListbook(*args, **kwargs) | |
3156 | val.thisown = 1 | |
3157 | return val | |
3158 | ||
3159 | class ListbookEvent(BookCtrlEvent): | |
3160 | def __repr__(self): | |
3161 | return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3162 | def __init__(self, *args, **kwargs): | |
3163 | """ | |
3164 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
3165 | int nOldSel=-1) -> ListbookEvent | |
3166 | """ | |
3167 | newobj = _controls_.new_ListbookEvent(*args, **kwargs) | |
3168 | self.this = newobj.this | |
3169 | self.thisown = 1 | |
3170 | del newobj.thisown | |
3171 | ||
3172 | class ListbookEventPtr(ListbookEvent): | |
3173 | def __init__(self, this): | |
3174 | self.this = this | |
3175 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3176 | self.__class__ = ListbookEvent | |
3177 | _controls_.ListbookEvent_swigregister(ListbookEventPtr) | |
3178 | ||
3179 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED | |
3180 | wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING | |
3181 | EVT_LISTBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 1 ) | |
3182 | EVT_LISTBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 1 ) | |
3183 | ||
3184 | CHB_DEFAULT = _controls_.CHB_DEFAULT | |
3185 | CHB_TOP = _controls_.CHB_TOP | |
3186 | CHB_BOTTOM = _controls_.CHB_BOTTOM | |
3187 | CHB_LEFT = _controls_.CHB_LEFT | |
3188 | CHB_RIGHT = _controls_.CHB_RIGHT | |
3189 | CHB_ALIGN_MASK = _controls_.CHB_ALIGN_MASK | |
3190 | class Choicebook(BookCtrl): | |
3191 | def __repr__(self): | |
3192 | return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3193 | def __init__(self, *args, **kwargs): | |
3194 | """ | |
3195 | __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3196 | long style=0, String name=EmptyString) -> Choicebook | |
3197 | """ | |
3198 | newobj = _controls_.new_Choicebook(*args, **kwargs) | |
3199 | self.this = newobj.this | |
3200 | self.thisown = 1 | |
3201 | del newobj.thisown | |
3202 | self._setOORInfo(self) | |
3203 | ||
3204 | def Create(*args, **kwargs): | |
3205 | """ | |
3206 | Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
3207 | long style=0, String name=EmptyString) -> bool | |
3208 | """ | |
3209 | return _controls_.Choicebook_Create(*args, **kwargs) | |
3210 | ||
3211 | def IsVertical(*args, **kwargs): | |
3212 | """IsVertical(self) -> bool""" | |
3213 | return _controls_.Choicebook_IsVertical(*args, **kwargs) | |
3214 | ||
3215 | def DeleteAllPages(*args, **kwargs): | |
3216 | """DeleteAllPages(self) -> bool""" | |
3217 | return _controls_.Choicebook_DeleteAllPages(*args, **kwargs) | |
3218 | ||
3219 | ||
3220 | class ChoicebookPtr(Choicebook): | |
3221 | def __init__(self, this): | |
3222 | self.this = this | |
3223 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3224 | self.__class__ = Choicebook | |
3225 | _controls_.Choicebook_swigregister(ChoicebookPtr) | |
3226 | ||
3227 | def PreChoicebook(*args, **kwargs): | |
3228 | """PreChoicebook() -> Choicebook""" | |
3229 | val = _controls_.new_PreChoicebook(*args, **kwargs) | |
3230 | val.thisown = 1 | |
3231 | return val | |
3232 | ||
3233 | class ChoicebookEvent(BookCtrlEvent): | |
3234 | def __repr__(self): | |
3235 | return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3236 | def __init__(self, *args, **kwargs): | |
3237 | """ | |
3238 | __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1, | |
3239 | int nOldSel=-1) -> ChoicebookEvent | |
3240 | """ | |
3241 | newobj = _controls_.new_ChoicebookEvent(*args, **kwargs) | |
3242 | self.this = newobj.this | |
3243 | self.thisown = 1 | |
3244 | del newobj.thisown | |
3245 | ||
3246 | class ChoicebookEventPtr(ChoicebookEvent): | |
3247 | def __init__(self, this): | |
3248 | self.this = this | |
3249 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3250 | self.__class__ = ChoicebookEvent | |
3251 | _controls_.ChoicebookEvent_swigregister(ChoicebookEventPtr) | |
3252 | ||
3253 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED | |
3254 | wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING | |
3255 | EVT_CHOICEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, 1 ) | |
3256 | EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, 1 ) | |
3257 | ||
3258 | #--------------------------------------------------------------------------- | |
3259 | ||
3260 | class BookCtrlSizer(_core.Sizer): | |
3261 | def __repr__(self): | |
3262 | return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3263 | def __init__(self, *args, **kwargs): | |
3264 | """__init__(self, BookCtrl nb) -> BookCtrlSizer""" | |
3265 | newobj = _controls_.new_BookCtrlSizer(*args, **kwargs) | |
3266 | self.this = newobj.this | |
3267 | self.thisown = 1 | |
3268 | del newobj.thisown | |
3269 | self._setOORInfo(self) | |
3270 | ||
3271 | def RecalcSizes(*args, **kwargs): | |
3272 | """ | |
3273 | RecalcSizes(self) | |
3274 | ||
3275 | Using the sizes calculated by `CalcMin` reposition and resize all the | |
3276 | items managed by this sizer. You should not need to call this directly as | |
3277 | it is called by `Layout`. | |
3278 | """ | |
3279 | return _controls_.BookCtrlSizer_RecalcSizes(*args, **kwargs) | |
3280 | ||
3281 | def CalcMin(*args, **kwargs): | |
3282 | """ | |
3283 | CalcMin(self) -> Size | |
3284 | ||
3285 | This method is where the sizer will do the actual calculation of its | |
3286 | children's minimal sizes. You should not need to call this directly as | |
3287 | it is called by `Layout`. | |
3288 | """ | |
3289 | return _controls_.BookCtrlSizer_CalcMin(*args, **kwargs) | |
3290 | ||
3291 | def GetControl(*args, **kwargs): | |
3292 | """GetControl(self) -> BookCtrl""" | |
3293 | return _controls_.BookCtrlSizer_GetControl(*args, **kwargs) | |
3294 | ||
3295 | ||
3296 | class BookCtrlSizerPtr(BookCtrlSizer): | |
3297 | def __init__(self, this): | |
3298 | self.this = this | |
3299 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3300 | self.__class__ = BookCtrlSizer | |
3301 | _controls_.BookCtrlSizer_swigregister(BookCtrlSizerPtr) | |
3302 | ||
3303 | class NotebookSizer(_core.Sizer): | |
3304 | def __repr__(self): | |
3305 | return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3306 | def __init__(self, *args, **kwargs): | |
3307 | """__init__(self, Notebook nb) -> NotebookSizer""" | |
3308 | newobj = _controls_.new_NotebookSizer(*args, **kwargs) | |
3309 | self.this = newobj.this | |
3310 | self.thisown = 1 | |
3311 | del newobj.thisown | |
3312 | self._setOORInfo(self) | |
3313 | ||
3314 | def RecalcSizes(*args, **kwargs): | |
3315 | """ | |
3316 | RecalcSizes(self) | |
3317 | ||
3318 | Using the sizes calculated by `CalcMin` reposition and resize all the | |
3319 | items managed by this sizer. You should not need to call this directly as | |
3320 | it is called by `Layout`. | |
3321 | """ | |
3322 | return _controls_.NotebookSizer_RecalcSizes(*args, **kwargs) | |
3323 | ||
3324 | def CalcMin(*args, **kwargs): | |
3325 | """ | |
3326 | CalcMin(self) -> Size | |
3327 | ||
3328 | This method is where the sizer will do the actual calculation of its | |
3329 | children's minimal sizes. You should not need to call this directly as | |
3330 | it is called by `Layout`. | |
3331 | """ | |
3332 | return _controls_.NotebookSizer_CalcMin(*args, **kwargs) | |
3333 | ||
3334 | def GetNotebook(*args, **kwargs): | |
3335 | """GetNotebook(self) -> Notebook""" | |
3336 | return _controls_.NotebookSizer_GetNotebook(*args, **kwargs) | |
3337 | ||
3338 | ||
3339 | class NotebookSizerPtr(NotebookSizer): | |
3340 | def __init__(self, this): | |
3341 | self.this = this | |
3342 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3343 | self.__class__ = NotebookSizer | |
3344 | _controls_.NotebookSizer_swigregister(NotebookSizerPtr) | |
3345 | ||
3346 | #--------------------------------------------------------------------------- | |
3347 | ||
3348 | TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON | |
3349 | TOOL_STYLE_SEPARATOR = _controls_.TOOL_STYLE_SEPARATOR | |
3350 | TOOL_STYLE_CONTROL = _controls_.TOOL_STYLE_CONTROL | |
3351 | TB_HORIZONTAL = _controls_.TB_HORIZONTAL | |
3352 | TB_VERTICAL = _controls_.TB_VERTICAL | |
3353 | TB_3DBUTTONS = _controls_.TB_3DBUTTONS | |
3354 | TB_FLAT = _controls_.TB_FLAT | |
3355 | TB_DOCKABLE = _controls_.TB_DOCKABLE | |
3356 | TB_NOICONS = _controls_.TB_NOICONS | |
3357 | TB_TEXT = _controls_.TB_TEXT | |
3358 | TB_NODIVIDER = _controls_.TB_NODIVIDER | |
3359 | TB_NOALIGN = _controls_.TB_NOALIGN | |
3360 | TB_HORZ_LAYOUT = _controls_.TB_HORZ_LAYOUT | |
3361 | TB_HORZ_TEXT = _controls_.TB_HORZ_TEXT | |
3362 | class ToolBarToolBase(_core.Object): | |
3363 | def __init__(self): raise RuntimeError, "No constructor defined" | |
3364 | def __repr__(self): | |
3365 | return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3366 | def GetId(*args, **kwargs): | |
3367 | """GetId(self) -> int""" | |
3368 | return _controls_.ToolBarToolBase_GetId(*args, **kwargs) | |
3369 | ||
3370 | def GetControl(*args, **kwargs): | |
3371 | """GetControl(self) -> Control""" | |
3372 | return _controls_.ToolBarToolBase_GetControl(*args, **kwargs) | |
3373 | ||
3374 | def GetToolBar(*args, **kwargs): | |
3375 | """GetToolBar(self) -> ToolBarBase""" | |
3376 | return _controls_.ToolBarToolBase_GetToolBar(*args, **kwargs) | |
3377 | ||
3378 | def IsButton(*args, **kwargs): | |
3379 | """IsButton(self) -> int""" | |
3380 | return _controls_.ToolBarToolBase_IsButton(*args, **kwargs) | |
3381 | ||
3382 | def IsControl(*args, **kwargs): | |
3383 | """IsControl(self) -> int""" | |
3384 | return _controls_.ToolBarToolBase_IsControl(*args, **kwargs) | |
3385 | ||
3386 | def IsSeparator(*args, **kwargs): | |
3387 | """IsSeparator(self) -> int""" | |
3388 | return _controls_.ToolBarToolBase_IsSeparator(*args, **kwargs) | |
3389 | ||
3390 | def GetStyle(*args, **kwargs): | |
3391 | """GetStyle(self) -> int""" | |
3392 | return _controls_.ToolBarToolBase_GetStyle(*args, **kwargs) | |
3393 | ||
3394 | def GetKind(*args, **kwargs): | |
3395 | """GetKind(self) -> int""" | |
3396 | return _controls_.ToolBarToolBase_GetKind(*args, **kwargs) | |
3397 | ||
3398 | def IsEnabled(*args, **kwargs): | |
3399 | """IsEnabled(self) -> bool""" | |
3400 | return _controls_.ToolBarToolBase_IsEnabled(*args, **kwargs) | |
3401 | ||
3402 | def IsToggled(*args, **kwargs): | |
3403 | """IsToggled(self) -> bool""" | |
3404 | return _controls_.ToolBarToolBase_IsToggled(*args, **kwargs) | |
3405 | ||
3406 | def CanBeToggled(*args, **kwargs): | |
3407 | """CanBeToggled(self) -> bool""" | |
3408 | return _controls_.ToolBarToolBase_CanBeToggled(*args, **kwargs) | |
3409 | ||
3410 | def GetNormalBitmap(*args, **kwargs): | |
3411 | """GetNormalBitmap(self) -> Bitmap""" | |
3412 | return _controls_.ToolBarToolBase_GetNormalBitmap(*args, **kwargs) | |
3413 | ||
3414 | def GetDisabledBitmap(*args, **kwargs): | |
3415 | """GetDisabledBitmap(self) -> Bitmap""" | |
3416 | return _controls_.ToolBarToolBase_GetDisabledBitmap(*args, **kwargs) | |
3417 | ||
3418 | def GetBitmap(*args, **kwargs): | |
3419 | """GetBitmap(self) -> Bitmap""" | |
3420 | return _controls_.ToolBarToolBase_GetBitmap(*args, **kwargs) | |
3421 | ||
3422 | def GetLabel(*args, **kwargs): | |
3423 | """GetLabel(self) -> String""" | |
3424 | return _controls_.ToolBarToolBase_GetLabel(*args, **kwargs) | |
3425 | ||
3426 | def GetShortHelp(*args, **kwargs): | |
3427 | """GetShortHelp(self) -> String""" | |
3428 | return _controls_.ToolBarToolBase_GetShortHelp(*args, **kwargs) | |
3429 | ||
3430 | def GetLongHelp(*args, **kwargs): | |
3431 | """GetLongHelp(self) -> String""" | |
3432 | return _controls_.ToolBarToolBase_GetLongHelp(*args, **kwargs) | |
3433 | ||
3434 | def Enable(*args, **kwargs): | |
3435 | """Enable(self, bool enable) -> bool""" | |
3436 | return _controls_.ToolBarToolBase_Enable(*args, **kwargs) | |
3437 | ||
3438 | def Toggle(*args, **kwargs): | |
3439 | """Toggle(self)""" | |
3440 | return _controls_.ToolBarToolBase_Toggle(*args, **kwargs) | |
3441 | ||
3442 | def SetToggle(*args, **kwargs): | |
3443 | """SetToggle(self, bool toggle) -> bool""" | |
3444 | return _controls_.ToolBarToolBase_SetToggle(*args, **kwargs) | |
3445 | ||
3446 | def SetShortHelp(*args, **kwargs): | |
3447 | """SetShortHelp(self, String help) -> bool""" | |
3448 | return _controls_.ToolBarToolBase_SetShortHelp(*args, **kwargs) | |
3449 | ||
3450 | def SetLongHelp(*args, **kwargs): | |
3451 | """SetLongHelp(self, String help) -> bool""" | |
3452 | return _controls_.ToolBarToolBase_SetLongHelp(*args, **kwargs) | |
3453 | ||
3454 | def SetNormalBitmap(*args, **kwargs): | |
3455 | """SetNormalBitmap(self, Bitmap bmp)""" | |
3456 | return _controls_.ToolBarToolBase_SetNormalBitmap(*args, **kwargs) | |
3457 | ||
3458 | def SetDisabledBitmap(*args, **kwargs): | |
3459 | """SetDisabledBitmap(self, Bitmap bmp)""" | |
3460 | return _controls_.ToolBarToolBase_SetDisabledBitmap(*args, **kwargs) | |
3461 | ||
3462 | def SetLabel(*args, **kwargs): | |
3463 | """SetLabel(self, String label)""" | |
3464 | return _controls_.ToolBarToolBase_SetLabel(*args, **kwargs) | |
3465 | ||
3466 | def Detach(*args, **kwargs): | |
3467 | """Detach(self)""" | |
3468 | return _controls_.ToolBarToolBase_Detach(*args, **kwargs) | |
3469 | ||
3470 | def Attach(*args, **kwargs): | |
3471 | """Attach(self, ToolBarBase tbar)""" | |
3472 | return _controls_.ToolBarToolBase_Attach(*args, **kwargs) | |
3473 | ||
3474 | def GetClientData(*args, **kwargs): | |
3475 | """GetClientData(self) -> PyObject""" | |
3476 | return _controls_.ToolBarToolBase_GetClientData(*args, **kwargs) | |
3477 | ||
3478 | def SetClientData(*args, **kwargs): | |
3479 | """SetClientData(self, PyObject clientData)""" | |
3480 | return _controls_.ToolBarToolBase_SetClientData(*args, **kwargs) | |
3481 | ||
3482 | GetBitmap1 = GetNormalBitmap | |
3483 | GetBitmap2 = GetDisabledBitmap | |
3484 | SetBitmap1 = SetNormalBitmap | |
3485 | SetBitmap2 = SetDisabledBitmap | |
3486 | ||
3487 | ||
3488 | class ToolBarToolBasePtr(ToolBarToolBase): | |
3489 | def __init__(self, this): | |
3490 | self.this = this | |
3491 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3492 | self.__class__ = ToolBarToolBase | |
3493 | _controls_.ToolBarToolBase_swigregister(ToolBarToolBasePtr) | |
3494 | ||
3495 | class ToolBarBase(_core.Control): | |
3496 | def __init__(self): raise RuntimeError, "No constructor defined" | |
3497 | def __repr__(self): | |
3498 | return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3499 | def DoAddTool(*args, **kwargs): | |
3500 | """ | |
3501 | DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, | |
3502 | int kind=ITEM_NORMAL, String shortHelp=EmptyString, | |
3503 | String longHelp=EmptyString, | |
3504 | PyObject clientData=None) -> ToolBarToolBase | |
3505 | """ | |
3506 | return _controls_.ToolBarBase_DoAddTool(*args, **kwargs) | |
3507 | ||
3508 | def DoInsertTool(*args, **kwargs): | |
3509 | """ | |
3510 | DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap, | |
3511 | int kind=ITEM_NORMAL, | |
3512 | String shortHelp=EmptyString, String longHelp=EmptyString, | |
3513 | PyObject clientData=None) -> ToolBarToolBase | |
3514 | """ | |
3515 | return _controls_.ToolBarBase_DoInsertTool(*args, **kwargs) | |
3516 | ||
3517 | # These match the original Add methods for this class, kept for | |
3518 | # backwards compatibility with versions < 2.3.3. | |
3519 | ||
3520 | ||
3521 | def AddTool(self, id, bitmap, | |
3522 | pushedBitmap = wx.NullBitmap, | |
3523 | isToggle = 0, | |
3524 | clientData = None, | |
3525 | shortHelpString = '', | |
3526 | longHelpString = '') : | |
3527 | '''Old style method to add a tool to the toolbar.''' | |
3528 | kind = wx.ITEM_NORMAL | |
3529 | if isToggle: kind = wx.ITEM_CHECK | |
3530 | return self.DoAddTool(id, '', bitmap, pushedBitmap, kind, | |
3531 | shortHelpString, longHelpString, clientData) | |
3532 | ||
3533 | def AddSimpleTool(self, id, bitmap, | |
3534 | shortHelpString = '', | |
3535 | longHelpString = '', | |
3536 | isToggle = 0): | |
3537 | '''Old style method to add a tool to the toolbar.''' | |
3538 | kind = wx.ITEM_NORMAL | |
3539 | if isToggle: kind = wx.ITEM_CHECK | |
3540 | return self.DoAddTool(id, '', bitmap, wx.NullBitmap, kind, | |
3541 | shortHelpString, longHelpString, None) | |
3542 | ||
3543 | def InsertTool(self, pos, id, bitmap, | |
3544 | pushedBitmap = wx.NullBitmap, | |
3545 | isToggle = 0, | |
3546 | clientData = None, | |
3547 | shortHelpString = '', | |
3548 | longHelpString = ''): | |
3549 | '''Old style method to insert a tool in the toolbar.''' | |
3550 | kind = wx.ITEM_NORMAL | |
3551 | if isToggle: kind = wx.ITEM_CHECK | |
3552 | return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind, | |
3553 | shortHelpString, longHelpString, clientData) | |
3554 | ||
3555 | def InsertSimpleTool(self, pos, id, bitmap, | |
3556 | shortHelpString = '', | |
3557 | longHelpString = '', | |
3558 | isToggle = 0): | |
3559 | '''Old style method to insert a tool in the toolbar.''' | |
3560 | kind = wx.ITEM_NORMAL | |
3561 | if isToggle: kind = wx.ITEM_CHECK | |
3562 | return self.DoInsertTool(pos, id, '', bitmap, wx.NullBitmap, kind, | |
3563 | shortHelpString, longHelpString, None) | |
3564 | ||
3565 | ||
3566 | # The following are the new toolbar Add methods starting with | |
3567 | # 2.3.3. They are renamed to have 'Label' in the name so as to be | |
3568 | # able to keep backwards compatibility with using the above | |
3569 | # methods. Eventually these should migrate to be the methods used | |
3570 | # primarily and lose the 'Label' in the name... | |
3571 | ||
3572 | def AddLabelTool(self, id, label, bitmap, | |
3573 | bmpDisabled = wx.NullBitmap, | |
3574 | kind = wx.ITEM_NORMAL, | |
3575 | shortHelp = '', longHelp = '', | |
3576 | clientData = None): | |
3577 | ''' | |
3578 | The full AddTool() function. | |
3579 | ||
3580 | If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap | |
3581 | is created and used as the disabled image. | |
3582 | ''' | |
3583 | return self.DoAddTool(id, label, bitmap, bmpDisabled, kind, | |
3584 | shortHelp, longHelp, clientData) | |
3585 | ||
3586 | ||
3587 | def InsertLabelTool(self, pos, id, label, bitmap, | |
3588 | bmpDisabled = wx.NullBitmap, | |
3589 | kind = wx.ITEM_NORMAL, | |
3590 | shortHelp = '', longHelp = '', | |
3591 | clientData = None): | |
3592 | ''' | |
3593 | Insert the new tool at the given position, if pos == GetToolsCount(), it | |
3594 | is equivalent to AddTool() | |
3595 | ''' | |
3596 | return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
3597 | shortHelp, longHelp, clientData) | |
3598 | ||
3599 | def AddCheckLabelTool(self, id, label, bitmap, | |
3600 | bmpDisabled = wx.NullBitmap, | |
3601 | shortHelp = '', longHelp = '', | |
3602 | clientData = None): | |
3603 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3604 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3605 | shortHelp, longHelp, clientData) | |
3606 | ||
3607 | def AddRadioLabelTool(self, id, label, bitmap, | |
3608 | bmpDisabled = wx.NullBitmap, | |
3609 | shortHelp = '', longHelp = '', | |
3610 | clientData = None): | |
3611 | ''' | |
3612 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3613 | other toggled radio tools in the same group when it happens | |
3614 | ''' | |
3615 | return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3616 | shortHelp, longHelp, clientData) | |
3617 | ||
3618 | ||
3619 | # For consistency with the backwards compatible methods above, here are | |
3620 | # some non-'Label' versions of the Check and Radio methods | |
3621 | ||
3622 | def AddCheckTool(self, id, bitmap, | |
3623 | bmpDisabled = wx.NullBitmap, | |
3624 | shortHelp = '', longHelp = '', | |
3625 | clientData = None): | |
3626 | '''Add a check tool, i.e. a tool which can be toggled''' | |
3627 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_CHECK, | |
3628 | shortHelp, longHelp, clientData) | |
3629 | ||
3630 | def AddRadioTool(self, id, bitmap, | |
3631 | bmpDisabled = wx.NullBitmap, | |
3632 | shortHelp = '', longHelp = '', | |
3633 | clientData = None): | |
3634 | ''' | |
3635 | Add a radio tool, i.e. a tool which can be toggled and releases any | |
3636 | other toggled radio tools in the same group when it happens | |
3637 | ''' | |
3638 | return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.ITEM_RADIO, | |
3639 | shortHelp, longHelp, clientData) | |
3640 | ||
3641 | def AddToolItem(*args, **kwargs): | |
3642 | """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase""" | |
3643 | return _controls_.ToolBarBase_AddToolItem(*args, **kwargs) | |
3644 | ||
3645 | def InsertToolItem(*args, **kwargs): | |
3646 | """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase""" | |
3647 | return _controls_.ToolBarBase_InsertToolItem(*args, **kwargs) | |
3648 | ||
3649 | def AddControl(*args, **kwargs): | |
3650 | """AddControl(self, Control control) -> ToolBarToolBase""" | |
3651 | return _controls_.ToolBarBase_AddControl(*args, **kwargs) | |
3652 | ||
3653 | def InsertControl(*args, **kwargs): | |
3654 | """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase""" | |
3655 | return _controls_.ToolBarBase_InsertControl(*args, **kwargs) | |
3656 | ||
3657 | def FindControl(*args, **kwargs): | |
3658 | """FindControl(self, int id) -> Control""" | |
3659 | return _controls_.ToolBarBase_FindControl(*args, **kwargs) | |
3660 | ||
3661 | def AddSeparator(*args, **kwargs): | |
3662 | """AddSeparator(self) -> ToolBarToolBase""" | |
3663 | return _controls_.ToolBarBase_AddSeparator(*args, **kwargs) | |
3664 | ||
3665 | def InsertSeparator(*args, **kwargs): | |
3666 | """InsertSeparator(self, size_t pos) -> ToolBarToolBase""" | |
3667 | return _controls_.ToolBarBase_InsertSeparator(*args, **kwargs) | |
3668 | ||
3669 | def RemoveTool(*args, **kwargs): | |
3670 | """RemoveTool(self, int id) -> ToolBarToolBase""" | |
3671 | return _controls_.ToolBarBase_RemoveTool(*args, **kwargs) | |
3672 | ||
3673 | def DeleteToolByPos(*args, **kwargs): | |
3674 | """DeleteToolByPos(self, size_t pos) -> bool""" | |
3675 | return _controls_.ToolBarBase_DeleteToolByPos(*args, **kwargs) | |
3676 | ||
3677 | def DeleteTool(*args, **kwargs): | |
3678 | """DeleteTool(self, int id) -> bool""" | |
3679 | return _controls_.ToolBarBase_DeleteTool(*args, **kwargs) | |
3680 | ||
3681 | def ClearTools(*args, **kwargs): | |
3682 | """ClearTools(self)""" | |
3683 | return _controls_.ToolBarBase_ClearTools(*args, **kwargs) | |
3684 | ||
3685 | def Realize(*args, **kwargs): | |
3686 | """Realize(self) -> bool""" | |
3687 | return _controls_.ToolBarBase_Realize(*args, **kwargs) | |
3688 | ||
3689 | def EnableTool(*args, **kwargs): | |
3690 | """EnableTool(self, int id, bool enable)""" | |
3691 | return _controls_.ToolBarBase_EnableTool(*args, **kwargs) | |
3692 | ||
3693 | def ToggleTool(*args, **kwargs): | |
3694 | """ToggleTool(self, int id, bool toggle)""" | |
3695 | return _controls_.ToolBarBase_ToggleTool(*args, **kwargs) | |
3696 | ||
3697 | def SetToggle(*args, **kwargs): | |
3698 | """SetToggle(self, int id, bool toggle)""" | |
3699 | return _controls_.ToolBarBase_SetToggle(*args, **kwargs) | |
3700 | ||
3701 | def GetToolClientData(*args, **kwargs): | |
3702 | """GetToolClientData(self, int id) -> PyObject""" | |
3703 | return _controls_.ToolBarBase_GetToolClientData(*args, **kwargs) | |
3704 | ||
3705 | def SetToolClientData(*args, **kwargs): | |
3706 | """SetToolClientData(self, int id, PyObject clientData)""" | |
3707 | return _controls_.ToolBarBase_SetToolClientData(*args, **kwargs) | |
3708 | ||
3709 | def GetToolPos(*args, **kwargs): | |
3710 | """GetToolPos(self, int id) -> int""" | |
3711 | return _controls_.ToolBarBase_GetToolPos(*args, **kwargs) | |
3712 | ||
3713 | def GetToolState(*args, **kwargs): | |
3714 | """GetToolState(self, int id) -> bool""" | |
3715 | return _controls_.ToolBarBase_GetToolState(*args, **kwargs) | |
3716 | ||
3717 | def GetToolEnabled(*args, **kwargs): | |
3718 | """GetToolEnabled(self, int id) -> bool""" | |
3719 | return _controls_.ToolBarBase_GetToolEnabled(*args, **kwargs) | |
3720 | ||
3721 | def SetToolShortHelp(*args, **kwargs): | |
3722 | """SetToolShortHelp(self, int id, String helpString)""" | |
3723 | return _controls_.ToolBarBase_SetToolShortHelp(*args, **kwargs) | |
3724 | ||
3725 | def GetToolShortHelp(*args, **kwargs): | |
3726 | """GetToolShortHelp(self, int id) -> String""" | |
3727 | return _controls_.ToolBarBase_GetToolShortHelp(*args, **kwargs) | |
3728 | ||
3729 | def SetToolLongHelp(*args, **kwargs): | |
3730 | """SetToolLongHelp(self, int id, String helpString)""" | |
3731 | return _controls_.ToolBarBase_SetToolLongHelp(*args, **kwargs) | |
3732 | ||
3733 | def GetToolLongHelp(*args, **kwargs): | |
3734 | """GetToolLongHelp(self, int id) -> String""" | |
3735 | return _controls_.ToolBarBase_GetToolLongHelp(*args, **kwargs) | |
3736 | ||
3737 | def SetMarginsXY(*args, **kwargs): | |
3738 | """SetMarginsXY(self, int x, int y)""" | |
3739 | return _controls_.ToolBarBase_SetMarginsXY(*args, **kwargs) | |
3740 | ||
3741 | def SetMargins(*args, **kwargs): | |
3742 | """SetMargins(self, Size size)""" | |
3743 | return _controls_.ToolBarBase_SetMargins(*args, **kwargs) | |
3744 | ||
3745 | def SetToolPacking(*args, **kwargs): | |
3746 | """SetToolPacking(self, int packing)""" | |
3747 | return _controls_.ToolBarBase_SetToolPacking(*args, **kwargs) | |
3748 | ||
3749 | def SetToolSeparation(*args, **kwargs): | |
3750 | """SetToolSeparation(self, int separation)""" | |
3751 | return _controls_.ToolBarBase_SetToolSeparation(*args, **kwargs) | |
3752 | ||
3753 | def GetToolMargins(*args, **kwargs): | |
3754 | """GetToolMargins(self) -> Size""" | |
3755 | return _controls_.ToolBarBase_GetToolMargins(*args, **kwargs) | |
3756 | ||
3757 | def GetMargins(*args, **kwargs): | |
3758 | """GetMargins(self) -> Size""" | |
3759 | return _controls_.ToolBarBase_GetMargins(*args, **kwargs) | |
3760 | ||
3761 | def GetToolPacking(*args, **kwargs): | |
3762 | """GetToolPacking(self) -> int""" | |
3763 | return _controls_.ToolBarBase_GetToolPacking(*args, **kwargs) | |
3764 | ||
3765 | def GetToolSeparation(*args, **kwargs): | |
3766 | """GetToolSeparation(self) -> int""" | |
3767 | return _controls_.ToolBarBase_GetToolSeparation(*args, **kwargs) | |
3768 | ||
3769 | def SetRows(*args, **kwargs): | |
3770 | """SetRows(self, int nRows)""" | |
3771 | return _controls_.ToolBarBase_SetRows(*args, **kwargs) | |
3772 | ||
3773 | def SetMaxRowsCols(*args, **kwargs): | |
3774 | """SetMaxRowsCols(self, int rows, int cols)""" | |
3775 | return _controls_.ToolBarBase_SetMaxRowsCols(*args, **kwargs) | |
3776 | ||
3777 | def GetMaxRows(*args, **kwargs): | |
3778 | """GetMaxRows(self) -> int""" | |
3779 | return _controls_.ToolBarBase_GetMaxRows(*args, **kwargs) | |
3780 | ||
3781 | def GetMaxCols(*args, **kwargs): | |
3782 | """GetMaxCols(self) -> int""" | |
3783 | return _controls_.ToolBarBase_GetMaxCols(*args, **kwargs) | |
3784 | ||
3785 | def SetToolBitmapSize(*args, **kwargs): | |
3786 | """SetToolBitmapSize(self, Size size)""" | |
3787 | return _controls_.ToolBarBase_SetToolBitmapSize(*args, **kwargs) | |
3788 | ||
3789 | def GetToolBitmapSize(*args, **kwargs): | |
3790 | """GetToolBitmapSize(self) -> Size""" | |
3791 | return _controls_.ToolBarBase_GetToolBitmapSize(*args, **kwargs) | |
3792 | ||
3793 | def GetToolSize(*args, **kwargs): | |
3794 | """GetToolSize(self) -> Size""" | |
3795 | return _controls_.ToolBarBase_GetToolSize(*args, **kwargs) | |
3796 | ||
3797 | def FindToolForPosition(*args, **kwargs): | |
3798 | """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" | |
3799 | return _controls_.ToolBarBase_FindToolForPosition(*args, **kwargs) | |
3800 | ||
3801 | def FindById(*args, **kwargs): | |
3802 | """FindById(self, int toolid) -> ToolBarToolBase""" | |
3803 | return _controls_.ToolBarBase_FindById(*args, **kwargs) | |
3804 | ||
3805 | def IsVertical(*args, **kwargs): | |
3806 | """IsVertical(self) -> bool""" | |
3807 | return _controls_.ToolBarBase_IsVertical(*args, **kwargs) | |
3808 | ||
3809 | ||
3810 | class ToolBarBasePtr(ToolBarBase): | |
3811 | def __init__(self, this): | |
3812 | self.this = this | |
3813 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3814 | self.__class__ = ToolBarBase | |
3815 | _controls_.ToolBarBase_swigregister(ToolBarBasePtr) | |
3816 | ||
3817 | class ToolBar(ToolBarBase): | |
3818 | def __repr__(self): | |
3819 | return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3820 | def __init__(self, *args, **kwargs): | |
3821 | """ | |
3822 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
3823 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
3824 | String name=wxPyToolBarNameStr) -> ToolBar | |
3825 | """ | |
3826 | newobj = _controls_.new_ToolBar(*args, **kwargs) | |
3827 | self.this = newobj.this | |
3828 | self.thisown = 1 | |
3829 | del newobj.thisown | |
3830 | self._setOORInfo(self) | |
3831 | ||
3832 | def Create(*args, **kwargs): | |
3833 | """ | |
3834 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
3835 | Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL, | |
3836 | String name=wxPyToolBarNameStr) -> bool | |
3837 | """ | |
3838 | return _controls_.ToolBar_Create(*args, **kwargs) | |
3839 | ||
3840 | def FindToolForPosition(*args, **kwargs): | |
3841 | """FindToolForPosition(self, int x, int y) -> ToolBarToolBase""" | |
3842 | return _controls_.ToolBar_FindToolForPosition(*args, **kwargs) | |
3843 | ||
3844 | def GetClassDefaultAttributes(*args, **kwargs): | |
3845 | """ | |
3846 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3847 | ||
3848 | Get the default attributes for this class. This is useful if you want | |
3849 | to use the same font or colour in your own control as in a standard | |
3850 | control -- which is a much better idea than hard coding specific | |
3851 | colours or fonts which might look completely out of place on the | |
3852 | user's system, especially if it uses themes. | |
3853 | ||
3854 | The variant parameter is only relevant under Mac currently and is | |
3855 | ignore under other platforms. Under Mac, it will change the size of | |
3856 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3857 | this. | |
3858 | """ | |
3859 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) | |
3860 | ||
3861 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
3862 | ||
3863 | class ToolBarPtr(ToolBar): | |
3864 | def __init__(self, this): | |
3865 | self.this = this | |
3866 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3867 | self.__class__ = ToolBar | |
3868 | _controls_.ToolBar_swigregister(ToolBarPtr) | |
3869 | ||
3870 | def PreToolBar(*args, **kwargs): | |
3871 | """PreToolBar() -> ToolBar""" | |
3872 | val = _controls_.new_PreToolBar(*args, **kwargs) | |
3873 | val.thisown = 1 | |
3874 | return val | |
3875 | ||
3876 | def ToolBar_GetClassDefaultAttributes(*args, **kwargs): | |
3877 | """ | |
3878 | ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
3879 | ||
3880 | Get the default attributes for this class. This is useful if you want | |
3881 | to use the same font or colour in your own control as in a standard | |
3882 | control -- which is a much better idea than hard coding specific | |
3883 | colours or fonts which might look completely out of place on the | |
3884 | user's system, especially if it uses themes. | |
3885 | ||
3886 | The variant parameter is only relevant under Mac currently and is | |
3887 | ignore under other platforms. Under Mac, it will change the size of | |
3888 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
3889 | this. | |
3890 | """ | |
3891 | return _controls_.ToolBar_GetClassDefaultAttributes(*args, **kwargs) | |
3892 | ||
3893 | #--------------------------------------------------------------------------- | |
3894 | ||
3895 | LC_VRULES = _controls_.LC_VRULES | |
3896 | LC_HRULES = _controls_.LC_HRULES | |
3897 | LC_ICON = _controls_.LC_ICON | |
3898 | LC_SMALL_ICON = _controls_.LC_SMALL_ICON | |
3899 | LC_LIST = _controls_.LC_LIST | |
3900 | LC_REPORT = _controls_.LC_REPORT | |
3901 | LC_ALIGN_TOP = _controls_.LC_ALIGN_TOP | |
3902 | LC_ALIGN_LEFT = _controls_.LC_ALIGN_LEFT | |
3903 | LC_AUTOARRANGE = _controls_.LC_AUTOARRANGE | |
3904 | LC_VIRTUAL = _controls_.LC_VIRTUAL | |
3905 | LC_EDIT_LABELS = _controls_.LC_EDIT_LABELS | |
3906 | LC_NO_HEADER = _controls_.LC_NO_HEADER | |
3907 | LC_NO_SORT_HEADER = _controls_.LC_NO_SORT_HEADER | |
3908 | LC_SINGLE_SEL = _controls_.LC_SINGLE_SEL | |
3909 | LC_SORT_ASCENDING = _controls_.LC_SORT_ASCENDING | |
3910 | LC_SORT_DESCENDING = _controls_.LC_SORT_DESCENDING | |
3911 | LC_MASK_TYPE = _controls_.LC_MASK_TYPE | |
3912 | LC_MASK_ALIGN = _controls_.LC_MASK_ALIGN | |
3913 | LC_MASK_SORT = _controls_.LC_MASK_SORT | |
3914 | LIST_MASK_STATE = _controls_.LIST_MASK_STATE | |
3915 | LIST_MASK_TEXT = _controls_.LIST_MASK_TEXT | |
3916 | LIST_MASK_IMAGE = _controls_.LIST_MASK_IMAGE | |
3917 | LIST_MASK_DATA = _controls_.LIST_MASK_DATA | |
3918 | LIST_SET_ITEM = _controls_.LIST_SET_ITEM | |
3919 | LIST_MASK_WIDTH = _controls_.LIST_MASK_WIDTH | |
3920 | LIST_MASK_FORMAT = _controls_.LIST_MASK_FORMAT | |
3921 | LIST_STATE_DONTCARE = _controls_.LIST_STATE_DONTCARE | |
3922 | LIST_STATE_DROPHILITED = _controls_.LIST_STATE_DROPHILITED | |
3923 | LIST_STATE_FOCUSED = _controls_.LIST_STATE_FOCUSED | |
3924 | LIST_STATE_SELECTED = _controls_.LIST_STATE_SELECTED | |
3925 | LIST_STATE_CUT = _controls_.LIST_STATE_CUT | |
3926 | LIST_STATE_DISABLED = _controls_.LIST_STATE_DISABLED | |
3927 | LIST_STATE_FILTERED = _controls_.LIST_STATE_FILTERED | |
3928 | LIST_STATE_INUSE = _controls_.LIST_STATE_INUSE | |
3929 | LIST_STATE_PICKED = _controls_.LIST_STATE_PICKED | |
3930 | LIST_STATE_SOURCE = _controls_.LIST_STATE_SOURCE | |
3931 | LIST_HITTEST_ABOVE = _controls_.LIST_HITTEST_ABOVE | |
3932 | LIST_HITTEST_BELOW = _controls_.LIST_HITTEST_BELOW | |
3933 | LIST_HITTEST_NOWHERE = _controls_.LIST_HITTEST_NOWHERE | |
3934 | LIST_HITTEST_ONITEMICON = _controls_.LIST_HITTEST_ONITEMICON | |
3935 | LIST_HITTEST_ONITEMLABEL = _controls_.LIST_HITTEST_ONITEMLABEL | |
3936 | LIST_HITTEST_ONITEMRIGHT = _controls_.LIST_HITTEST_ONITEMRIGHT | |
3937 | LIST_HITTEST_ONITEMSTATEICON = _controls_.LIST_HITTEST_ONITEMSTATEICON | |
3938 | LIST_HITTEST_TOLEFT = _controls_.LIST_HITTEST_TOLEFT | |
3939 | LIST_HITTEST_TORIGHT = _controls_.LIST_HITTEST_TORIGHT | |
3940 | LIST_HITTEST_ONITEM = _controls_.LIST_HITTEST_ONITEM | |
3941 | LIST_NEXT_ABOVE = _controls_.LIST_NEXT_ABOVE | |
3942 | LIST_NEXT_ALL = _controls_.LIST_NEXT_ALL | |
3943 | LIST_NEXT_BELOW = _controls_.LIST_NEXT_BELOW | |
3944 | LIST_NEXT_LEFT = _controls_.LIST_NEXT_LEFT | |
3945 | LIST_NEXT_RIGHT = _controls_.LIST_NEXT_RIGHT | |
3946 | LIST_ALIGN_DEFAULT = _controls_.LIST_ALIGN_DEFAULT | |
3947 | LIST_ALIGN_LEFT = _controls_.LIST_ALIGN_LEFT | |
3948 | LIST_ALIGN_TOP = _controls_.LIST_ALIGN_TOP | |
3949 | LIST_ALIGN_SNAP_TO_GRID = _controls_.LIST_ALIGN_SNAP_TO_GRID | |
3950 | LIST_FORMAT_LEFT = _controls_.LIST_FORMAT_LEFT | |
3951 | LIST_FORMAT_RIGHT = _controls_.LIST_FORMAT_RIGHT | |
3952 | LIST_FORMAT_CENTRE = _controls_.LIST_FORMAT_CENTRE | |
3953 | LIST_FORMAT_CENTER = _controls_.LIST_FORMAT_CENTER | |
3954 | LIST_AUTOSIZE = _controls_.LIST_AUTOSIZE | |
3955 | LIST_AUTOSIZE_USEHEADER = _controls_.LIST_AUTOSIZE_USEHEADER | |
3956 | LIST_RECT_BOUNDS = _controls_.LIST_RECT_BOUNDS | |
3957 | LIST_RECT_ICON = _controls_.LIST_RECT_ICON | |
3958 | LIST_RECT_LABEL = _controls_.LIST_RECT_LABEL | |
3959 | LIST_FIND_UP = _controls_.LIST_FIND_UP | |
3960 | LIST_FIND_DOWN = _controls_.LIST_FIND_DOWN | |
3961 | LIST_FIND_LEFT = _controls_.LIST_FIND_LEFT | |
3962 | LIST_FIND_RIGHT = _controls_.LIST_FIND_RIGHT | |
3963 | #--------------------------------------------------------------------------- | |
3964 | ||
3965 | class ListItemAttr(object): | |
3966 | def __repr__(self): | |
3967 | return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
3968 | def __init__(self, *args, **kwargs): | |
3969 | """ | |
3970 | __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour, | |
3971 | Font font=wxNullFont) -> ListItemAttr | |
3972 | """ | |
3973 | newobj = _controls_.new_ListItemAttr(*args, **kwargs) | |
3974 | self.this = newobj.this | |
3975 | self.thisown = 1 | |
3976 | del newobj.thisown | |
3977 | def SetTextColour(*args, **kwargs): | |
3978 | """SetTextColour(self, Colour colText)""" | |
3979 | return _controls_.ListItemAttr_SetTextColour(*args, **kwargs) | |
3980 | ||
3981 | def SetBackgroundColour(*args, **kwargs): | |
3982 | """SetBackgroundColour(self, Colour colBack)""" | |
3983 | return _controls_.ListItemAttr_SetBackgroundColour(*args, **kwargs) | |
3984 | ||
3985 | def SetFont(*args, **kwargs): | |
3986 | """SetFont(self, Font font)""" | |
3987 | return _controls_.ListItemAttr_SetFont(*args, **kwargs) | |
3988 | ||
3989 | def HasTextColour(*args, **kwargs): | |
3990 | """HasTextColour(self) -> bool""" | |
3991 | return _controls_.ListItemAttr_HasTextColour(*args, **kwargs) | |
3992 | ||
3993 | def HasBackgroundColour(*args, **kwargs): | |
3994 | """HasBackgroundColour(self) -> bool""" | |
3995 | return _controls_.ListItemAttr_HasBackgroundColour(*args, **kwargs) | |
3996 | ||
3997 | def HasFont(*args, **kwargs): | |
3998 | """HasFont(self) -> bool""" | |
3999 | return _controls_.ListItemAttr_HasFont(*args, **kwargs) | |
4000 | ||
4001 | def GetTextColour(*args, **kwargs): | |
4002 | """GetTextColour(self) -> Colour""" | |
4003 | return _controls_.ListItemAttr_GetTextColour(*args, **kwargs) | |
4004 | ||
4005 | def GetBackgroundColour(*args, **kwargs): | |
4006 | """GetBackgroundColour(self) -> Colour""" | |
4007 | return _controls_.ListItemAttr_GetBackgroundColour(*args, **kwargs) | |
4008 | ||
4009 | def GetFont(*args, **kwargs): | |
4010 | """GetFont(self) -> Font""" | |
4011 | return _controls_.ListItemAttr_GetFont(*args, **kwargs) | |
4012 | ||
4013 | def Destroy(*args, **kwargs): | |
4014 | """Destroy(self)""" | |
4015 | return _controls_.ListItemAttr_Destroy(*args, **kwargs) | |
4016 | ||
4017 | ||
4018 | class ListItemAttrPtr(ListItemAttr): | |
4019 | def __init__(self, this): | |
4020 | self.this = this | |
4021 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4022 | self.__class__ = ListItemAttr | |
4023 | _controls_.ListItemAttr_swigregister(ListItemAttrPtr) | |
4024 | ListCtrlNameStr = cvar.ListCtrlNameStr | |
4025 | ||
4026 | #--------------------------------------------------------------------------- | |
4027 | ||
4028 | class ListItem(_core.Object): | |
4029 | def __repr__(self): | |
4030 | return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4031 | def __init__(self, *args, **kwargs): | |
4032 | """__init__(self) -> ListItem""" | |
4033 | newobj = _controls_.new_ListItem(*args, **kwargs) | |
4034 | self.this = newobj.this | |
4035 | self.thisown = 1 | |
4036 | del newobj.thisown | |
4037 | def __del__(self, destroy=_controls_.delete_ListItem): | |
4038 | """__del__(self)""" | |
4039 | try: | |
4040 | if self.thisown: destroy(self) | |
4041 | except: pass | |
4042 | ||
4043 | def Clear(*args, **kwargs): | |
4044 | """Clear(self)""" | |
4045 | return _controls_.ListItem_Clear(*args, **kwargs) | |
4046 | ||
4047 | def ClearAttributes(*args, **kwargs): | |
4048 | """ClearAttributes(self)""" | |
4049 | return _controls_.ListItem_ClearAttributes(*args, **kwargs) | |
4050 | ||
4051 | def SetMask(*args, **kwargs): | |
4052 | """SetMask(self, long mask)""" | |
4053 | return _controls_.ListItem_SetMask(*args, **kwargs) | |
4054 | ||
4055 | def SetId(*args, **kwargs): | |
4056 | """SetId(self, long id)""" | |
4057 | return _controls_.ListItem_SetId(*args, **kwargs) | |
4058 | ||
4059 | def SetColumn(*args, **kwargs): | |
4060 | """SetColumn(self, int col)""" | |
4061 | return _controls_.ListItem_SetColumn(*args, **kwargs) | |
4062 | ||
4063 | def SetState(*args, **kwargs): | |
4064 | """SetState(self, long state)""" | |
4065 | return _controls_.ListItem_SetState(*args, **kwargs) | |
4066 | ||
4067 | def SetStateMask(*args, **kwargs): | |
4068 | """SetStateMask(self, long stateMask)""" | |
4069 | return _controls_.ListItem_SetStateMask(*args, **kwargs) | |
4070 | ||
4071 | def SetText(*args, **kwargs): | |
4072 | """SetText(self, String text)""" | |
4073 | return _controls_.ListItem_SetText(*args, **kwargs) | |
4074 | ||
4075 | def SetImage(*args, **kwargs): | |
4076 | """SetImage(self, int image)""" | |
4077 | return _controls_.ListItem_SetImage(*args, **kwargs) | |
4078 | ||
4079 | def SetData(*args, **kwargs): | |
4080 | """SetData(self, long data)""" | |
4081 | return _controls_.ListItem_SetData(*args, **kwargs) | |
4082 | ||
4083 | def SetWidth(*args, **kwargs): | |
4084 | """SetWidth(self, int width)""" | |
4085 | return _controls_.ListItem_SetWidth(*args, **kwargs) | |
4086 | ||
4087 | def SetAlign(*args, **kwargs): | |
4088 | """SetAlign(self, int align)""" | |
4089 | return _controls_.ListItem_SetAlign(*args, **kwargs) | |
4090 | ||
4091 | def SetTextColour(*args, **kwargs): | |
4092 | """SetTextColour(self, Colour colText)""" | |
4093 | return _controls_.ListItem_SetTextColour(*args, **kwargs) | |
4094 | ||
4095 | def SetBackgroundColour(*args, **kwargs): | |
4096 | """SetBackgroundColour(self, Colour colBack)""" | |
4097 | return _controls_.ListItem_SetBackgroundColour(*args, **kwargs) | |
4098 | ||
4099 | def SetFont(*args, **kwargs): | |
4100 | """SetFont(self, Font font)""" | |
4101 | return _controls_.ListItem_SetFont(*args, **kwargs) | |
4102 | ||
4103 | def GetMask(*args, **kwargs): | |
4104 | """GetMask(self) -> long""" | |
4105 | return _controls_.ListItem_GetMask(*args, **kwargs) | |
4106 | ||
4107 | def GetId(*args, **kwargs): | |
4108 | """GetId(self) -> long""" | |
4109 | return _controls_.ListItem_GetId(*args, **kwargs) | |
4110 | ||
4111 | def GetColumn(*args, **kwargs): | |
4112 | """GetColumn(self) -> int""" | |
4113 | return _controls_.ListItem_GetColumn(*args, **kwargs) | |
4114 | ||
4115 | def GetState(*args, **kwargs): | |
4116 | """GetState(self) -> long""" | |
4117 | return _controls_.ListItem_GetState(*args, **kwargs) | |
4118 | ||
4119 | def GetText(*args, **kwargs): | |
4120 | """GetText(self) -> String""" | |
4121 | return _controls_.ListItem_GetText(*args, **kwargs) | |
4122 | ||
4123 | def GetImage(*args, **kwargs): | |
4124 | """GetImage(self) -> int""" | |
4125 | return _controls_.ListItem_GetImage(*args, **kwargs) | |
4126 | ||
4127 | def GetData(*args, **kwargs): | |
4128 | """GetData(self) -> long""" | |
4129 | return _controls_.ListItem_GetData(*args, **kwargs) | |
4130 | ||
4131 | def GetWidth(*args, **kwargs): | |
4132 | """GetWidth(self) -> int""" | |
4133 | return _controls_.ListItem_GetWidth(*args, **kwargs) | |
4134 | ||
4135 | def GetAlign(*args, **kwargs): | |
4136 | """GetAlign(self) -> int""" | |
4137 | return _controls_.ListItem_GetAlign(*args, **kwargs) | |
4138 | ||
4139 | def GetAttributes(*args, **kwargs): | |
4140 | """GetAttributes(self) -> ListItemAttr""" | |
4141 | return _controls_.ListItem_GetAttributes(*args, **kwargs) | |
4142 | ||
4143 | def HasAttributes(*args, **kwargs): | |
4144 | """HasAttributes(self) -> bool""" | |
4145 | return _controls_.ListItem_HasAttributes(*args, **kwargs) | |
4146 | ||
4147 | def GetTextColour(*args, **kwargs): | |
4148 | """GetTextColour(self) -> Colour""" | |
4149 | return _controls_.ListItem_GetTextColour(*args, **kwargs) | |
4150 | ||
4151 | def GetBackgroundColour(*args, **kwargs): | |
4152 | """GetBackgroundColour(self) -> Colour""" | |
4153 | return _controls_.ListItem_GetBackgroundColour(*args, **kwargs) | |
4154 | ||
4155 | def GetFont(*args, **kwargs): | |
4156 | """GetFont(self) -> Font""" | |
4157 | return _controls_.ListItem_GetFont(*args, **kwargs) | |
4158 | ||
4159 | m_mask = property(_controls_.ListItem_m_mask_get, _controls_.ListItem_m_mask_set) | |
4160 | m_itemId = property(_controls_.ListItem_m_itemId_get, _controls_.ListItem_m_itemId_set) | |
4161 | m_col = property(_controls_.ListItem_m_col_get, _controls_.ListItem_m_col_set) | |
4162 | m_state = property(_controls_.ListItem_m_state_get, _controls_.ListItem_m_state_set) | |
4163 | m_stateMask = property(_controls_.ListItem_m_stateMask_get, _controls_.ListItem_m_stateMask_set) | |
4164 | m_text = property(_controls_.ListItem_m_text_get, _controls_.ListItem_m_text_set) | |
4165 | m_image = property(_controls_.ListItem_m_image_get, _controls_.ListItem_m_image_set) | |
4166 | m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set) | |
4167 | m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set) | |
4168 | m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set) | |
4169 | ||
4170 | class ListItemPtr(ListItem): | |
4171 | def __init__(self, this): | |
4172 | self.this = this | |
4173 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4174 | self.__class__ = ListItem | |
4175 | _controls_.ListItem_swigregister(ListItemPtr) | |
4176 | ||
4177 | #--------------------------------------------------------------------------- | |
4178 | ||
4179 | class ListEvent(_core.NotifyEvent): | |
4180 | def __repr__(self): | |
4181 | return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4182 | def __init__(self, *args, **kwargs): | |
4183 | """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent""" | |
4184 | newobj = _controls_.new_ListEvent(*args, **kwargs) | |
4185 | self.this = newobj.this | |
4186 | self.thisown = 1 | |
4187 | del newobj.thisown | |
4188 | m_code = property(_controls_.ListEvent_m_code_get, _controls_.ListEvent_m_code_set) | |
4189 | m_oldItemIndex = property(_controls_.ListEvent_m_oldItemIndex_get, _controls_.ListEvent_m_oldItemIndex_set) | |
4190 | m_itemIndex = property(_controls_.ListEvent_m_itemIndex_get, _controls_.ListEvent_m_itemIndex_set) | |
4191 | m_col = property(_controls_.ListEvent_m_col_get, _controls_.ListEvent_m_col_set) | |
4192 | m_pointDrag = property(_controls_.ListEvent_m_pointDrag_get, _controls_.ListEvent_m_pointDrag_set) | |
4193 | m_item = property(_controls_.ListEvent_m_item_get) | |
4194 | def GetKeyCode(*args, **kwargs): | |
4195 | """GetKeyCode(self) -> int""" | |
4196 | return _controls_.ListEvent_GetKeyCode(*args, **kwargs) | |
4197 | ||
4198 | GetCode = GetKeyCode | |
4199 | def GetIndex(*args, **kwargs): | |
4200 | """GetIndex(self) -> long""" | |
4201 | return _controls_.ListEvent_GetIndex(*args, **kwargs) | |
4202 | ||
4203 | def GetColumn(*args, **kwargs): | |
4204 | """GetColumn(self) -> int""" | |
4205 | return _controls_.ListEvent_GetColumn(*args, **kwargs) | |
4206 | ||
4207 | def GetPoint(*args, **kwargs): | |
4208 | """GetPoint(self) -> Point""" | |
4209 | return _controls_.ListEvent_GetPoint(*args, **kwargs) | |
4210 | ||
4211 | GetPosition = GetPoint | |
4212 | def GetLabel(*args, **kwargs): | |
4213 | """GetLabel(self) -> String""" | |
4214 | return _controls_.ListEvent_GetLabel(*args, **kwargs) | |
4215 | ||
4216 | def GetText(*args, **kwargs): | |
4217 | """GetText(self) -> String""" | |
4218 | return _controls_.ListEvent_GetText(*args, **kwargs) | |
4219 | ||
4220 | def GetImage(*args, **kwargs): | |
4221 | """GetImage(self) -> int""" | |
4222 | return _controls_.ListEvent_GetImage(*args, **kwargs) | |
4223 | ||
4224 | def GetData(*args, **kwargs): | |
4225 | """GetData(self) -> long""" | |
4226 | return _controls_.ListEvent_GetData(*args, **kwargs) | |
4227 | ||
4228 | def GetMask(*args, **kwargs): | |
4229 | """GetMask(self) -> long""" | |
4230 | return _controls_.ListEvent_GetMask(*args, **kwargs) | |
4231 | ||
4232 | def GetItem(*args, **kwargs): | |
4233 | """GetItem(self) -> ListItem""" | |
4234 | return _controls_.ListEvent_GetItem(*args, **kwargs) | |
4235 | ||
4236 | def GetCacheFrom(*args, **kwargs): | |
4237 | """GetCacheFrom(self) -> long""" | |
4238 | return _controls_.ListEvent_GetCacheFrom(*args, **kwargs) | |
4239 | ||
4240 | def GetCacheTo(*args, **kwargs): | |
4241 | """GetCacheTo(self) -> long""" | |
4242 | return _controls_.ListEvent_GetCacheTo(*args, **kwargs) | |
4243 | ||
4244 | def IsEditCancelled(*args, **kwargs): | |
4245 | """IsEditCancelled(self) -> bool""" | |
4246 | return _controls_.ListEvent_IsEditCancelled(*args, **kwargs) | |
4247 | ||
4248 | def SetEditCanceled(*args, **kwargs): | |
4249 | """SetEditCanceled(self, bool editCancelled)""" | |
4250 | return _controls_.ListEvent_SetEditCanceled(*args, **kwargs) | |
4251 | ||
4252 | ||
4253 | class ListEventPtr(ListEvent): | |
4254 | def __init__(self, this): | |
4255 | self.this = this | |
4256 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4257 | self.__class__ = ListEvent | |
4258 | _controls_.ListEvent_swigregister(ListEventPtr) | |
4259 | ||
4260 | wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
4261 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
4262 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
4263 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
4264 | wxEVT_COMMAND_LIST_DELETE_ITEM = _controls_.wxEVT_COMMAND_LIST_DELETE_ITEM | |
4265 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = _controls_.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
4266 | wxEVT_COMMAND_LIST_GET_INFO = _controls_.wxEVT_COMMAND_LIST_GET_INFO | |
4267 | wxEVT_COMMAND_LIST_SET_INFO = _controls_.wxEVT_COMMAND_LIST_SET_INFO | |
4268 | wxEVT_COMMAND_LIST_ITEM_SELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_SELECTED | |
4269 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = _controls_.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
4270 | wxEVT_COMMAND_LIST_KEY_DOWN = _controls_.wxEVT_COMMAND_LIST_KEY_DOWN | |
4271 | wxEVT_COMMAND_LIST_INSERT_ITEM = _controls_.wxEVT_COMMAND_LIST_INSERT_ITEM | |
4272 | wxEVT_COMMAND_LIST_COL_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_CLICK | |
4273 | wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK | |
4274 | wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK | |
4275 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_LIST_ITEM_ACTIVATED | |
4276 | wxEVT_COMMAND_LIST_CACHE_HINT = _controls_.wxEVT_COMMAND_LIST_CACHE_HINT | |
4277 | wxEVT_COMMAND_LIST_COL_RIGHT_CLICK = _controls_.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK | |
4278 | wxEVT_COMMAND_LIST_COL_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG | |
4279 | wxEVT_COMMAND_LIST_COL_DRAGGING = _controls_.wxEVT_COMMAND_LIST_COL_DRAGGING | |
4280 | wxEVT_COMMAND_LIST_COL_END_DRAG = _controls_.wxEVT_COMMAND_LIST_COL_END_DRAG | |
4281 | wxEVT_COMMAND_LIST_ITEM_FOCUSED = _controls_.wxEVT_COMMAND_LIST_ITEM_FOCUSED | |
4282 | EVT_LIST_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG , 1) | |
4283 | EVT_LIST_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG , 1) | |
4284 | EVT_LIST_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT , 1) | |
4285 | EVT_LIST_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT , 1) | |
4286 | EVT_LIST_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM , 1) | |
4287 | EVT_LIST_DELETE_ALL_ITEMS = wx.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS , 1) | |
4288 | EVT_LIST_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO , 1) | |
4289 | EVT_LIST_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO , 1) | |
4290 | EVT_LIST_ITEM_SELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED , 1) | |
4291 | EVT_LIST_ITEM_DESELECTED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED , 1) | |
4292 | EVT_LIST_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN , 1) | |
4293 | EVT_LIST_INSERT_ITEM = wx.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM , 1) | |
4294 | EVT_LIST_COL_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK , 1) | |
4295 | EVT_LIST_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK , 1) | |
4296 | EVT_LIST_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 1) | |
4297 | EVT_LIST_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED , 1) | |
4298 | EVT_LIST_CACHE_HINT = wx.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT , 1) | |
4299 | EVT_LIST_COL_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK , 1) | |
4300 | EVT_LIST_COL_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , 1) | |
4301 | EVT_LIST_COL_DRAGGING = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING , 1) | |
4302 | EVT_LIST_COL_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG , 1) | |
4303 | EVT_LIST_ITEM_FOCUSED = wx.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED , 1) | |
4304 | ||
4305 | EVT_LIST_GET_INFO = wx._deprecated(EVT_LIST_GET_INFO) | |
4306 | EVT_LIST_SET_INFO = wx._deprecated(EVT_LIST_SET_INFO) | |
4307 | ||
4308 | #--------------------------------------------------------------------------- | |
4309 | ||
4310 | class ListCtrl(_core.Control): | |
4311 | def __repr__(self): | |
4312 | return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4313 | def __init__(self, *args, **kwargs): | |
4314 | """ | |
4315 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4316 | Size size=DefaultSize, long style=LC_ICON, | |
4317 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl | |
4318 | """ | |
4319 | newobj = _controls_.new_ListCtrl(*args, **kwargs) | |
4320 | self.this = newobj.this | |
4321 | self.thisown = 1 | |
4322 | del newobj.thisown | |
4323 | self._setOORInfo(self);self._setCallbackInfo(self, ListCtrl) | |
4324 | ||
4325 | def Create(*args, **kwargs): | |
4326 | """ | |
4327 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4328 | Size size=DefaultSize, long style=LC_ICON, | |
4329 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool | |
4330 | ||
4331 | Do the 2nd phase and create the GUI control. | |
4332 | """ | |
4333 | return _controls_.ListCtrl_Create(*args, **kwargs) | |
4334 | ||
4335 | def _setCallbackInfo(*args, **kwargs): | |
4336 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4337 | return _controls_.ListCtrl__setCallbackInfo(*args, **kwargs) | |
4338 | ||
4339 | def SetForegroundColour(*args, **kwargs): | |
4340 | """SetForegroundColour(self, Colour col) -> bool""" | |
4341 | return _controls_.ListCtrl_SetForegroundColour(*args, **kwargs) | |
4342 | ||
4343 | def SetBackgroundColour(*args, **kwargs): | |
4344 | """SetBackgroundColour(self, Colour col) -> bool""" | |
4345 | return _controls_.ListCtrl_SetBackgroundColour(*args, **kwargs) | |
4346 | ||
4347 | def GetColumn(*args, **kwargs): | |
4348 | """GetColumn(self, int col) -> ListItem""" | |
4349 | val = _controls_.ListCtrl_GetColumn(*args, **kwargs) | |
4350 | if val is not None: val.thisown = 1 | |
4351 | return val | |
4352 | ||
4353 | def SetColumn(*args, **kwargs): | |
4354 | """SetColumn(self, int col, ListItem item) -> bool""" | |
4355 | return _controls_.ListCtrl_SetColumn(*args, **kwargs) | |
4356 | ||
4357 | def GetColumnWidth(*args, **kwargs): | |
4358 | """GetColumnWidth(self, int col) -> int""" | |
4359 | return _controls_.ListCtrl_GetColumnWidth(*args, **kwargs) | |
4360 | ||
4361 | def SetColumnWidth(*args, **kwargs): | |
4362 | """SetColumnWidth(self, int col, int width) -> bool""" | |
4363 | return _controls_.ListCtrl_SetColumnWidth(*args, **kwargs) | |
4364 | ||
4365 | def GetCountPerPage(*args, **kwargs): | |
4366 | """GetCountPerPage(self) -> int""" | |
4367 | return _controls_.ListCtrl_GetCountPerPage(*args, **kwargs) | |
4368 | ||
4369 | def GetViewRect(*args, **kwargs): | |
4370 | """GetViewRect(self) -> Rect""" | |
4371 | return _controls_.ListCtrl_GetViewRect(*args, **kwargs) | |
4372 | ||
4373 | def GetItem(*args, **kwargs): | |
4374 | """GetItem(self, long itemId, int col=0) -> ListItem""" | |
4375 | val = _controls_.ListCtrl_GetItem(*args, **kwargs) | |
4376 | if val is not None: val.thisown = 1 | |
4377 | return val | |
4378 | ||
4379 | def SetItem(*args, **kwargs): | |
4380 | """SetItem(self, ListItem info) -> bool""" | |
4381 | return _controls_.ListCtrl_SetItem(*args, **kwargs) | |
4382 | ||
4383 | def SetStringItem(*args, **kwargs): | |
4384 | """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long""" | |
4385 | return _controls_.ListCtrl_SetStringItem(*args, **kwargs) | |
4386 | ||
4387 | def GetItemState(*args, **kwargs): | |
4388 | """GetItemState(self, long item, long stateMask) -> int""" | |
4389 | return _controls_.ListCtrl_GetItemState(*args, **kwargs) | |
4390 | ||
4391 | def SetItemState(*args, **kwargs): | |
4392 | """SetItemState(self, long item, long state, long stateMask) -> bool""" | |
4393 | return _controls_.ListCtrl_SetItemState(*args, **kwargs) | |
4394 | ||
4395 | def SetItemImage(*args, **kwargs): | |
4396 | """SetItemImage(self, long item, int image, int selImage=-1) -> bool""" | |
4397 | return _controls_.ListCtrl_SetItemImage(*args, **kwargs) | |
4398 | ||
4399 | def GetItemText(*args, **kwargs): | |
4400 | """GetItemText(self, long item) -> String""" | |
4401 | return _controls_.ListCtrl_GetItemText(*args, **kwargs) | |
4402 | ||
4403 | def SetItemText(*args, **kwargs): | |
4404 | """SetItemText(self, long item, String str)""" | |
4405 | return _controls_.ListCtrl_SetItemText(*args, **kwargs) | |
4406 | ||
4407 | def GetItemData(*args, **kwargs): | |
4408 | """GetItemData(self, long item) -> long""" | |
4409 | return _controls_.ListCtrl_GetItemData(*args, **kwargs) | |
4410 | ||
4411 | def SetItemData(*args, **kwargs): | |
4412 | """SetItemData(self, long item, long data) -> bool""" | |
4413 | return _controls_.ListCtrl_SetItemData(*args, **kwargs) | |
4414 | ||
4415 | def GetItemPosition(*args, **kwargs): | |
4416 | """GetItemPosition(self, long item) -> Point""" | |
4417 | return _controls_.ListCtrl_GetItemPosition(*args, **kwargs) | |
4418 | ||
4419 | def GetItemRect(*args, **kwargs): | |
4420 | """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect""" | |
4421 | return _controls_.ListCtrl_GetItemRect(*args, **kwargs) | |
4422 | ||
4423 | def SetItemPosition(*args, **kwargs): | |
4424 | """SetItemPosition(self, long item, Point pos) -> bool""" | |
4425 | return _controls_.ListCtrl_SetItemPosition(*args, **kwargs) | |
4426 | ||
4427 | def GetItemCount(*args, **kwargs): | |
4428 | """GetItemCount(self) -> int""" | |
4429 | return _controls_.ListCtrl_GetItemCount(*args, **kwargs) | |
4430 | ||
4431 | def GetColumnCount(*args, **kwargs): | |
4432 | """GetColumnCount(self) -> int""" | |
4433 | return _controls_.ListCtrl_GetColumnCount(*args, **kwargs) | |
4434 | ||
4435 | def GetItemSpacing(*args, **kwargs): | |
4436 | """GetItemSpacing(self) -> Size""" | |
4437 | return _controls_.ListCtrl_GetItemSpacing(*args, **kwargs) | |
4438 | ||
4439 | def SetItemSpacing(*args, **kwargs): | |
4440 | """SetItemSpacing(self, int spacing, bool isSmall=False)""" | |
4441 | return _controls_.ListCtrl_SetItemSpacing(*args, **kwargs) | |
4442 | ||
4443 | def GetSelectedItemCount(*args, **kwargs): | |
4444 | """GetSelectedItemCount(self) -> int""" | |
4445 | return _controls_.ListCtrl_GetSelectedItemCount(*args, **kwargs) | |
4446 | ||
4447 | def GetTextColour(*args, **kwargs): | |
4448 | """GetTextColour(self) -> Colour""" | |
4449 | return _controls_.ListCtrl_GetTextColour(*args, **kwargs) | |
4450 | ||
4451 | def SetTextColour(*args, **kwargs): | |
4452 | """SetTextColour(self, Colour col)""" | |
4453 | return _controls_.ListCtrl_SetTextColour(*args, **kwargs) | |
4454 | ||
4455 | def GetTopItem(*args, **kwargs): | |
4456 | """GetTopItem(self) -> long""" | |
4457 | return _controls_.ListCtrl_GetTopItem(*args, **kwargs) | |
4458 | ||
4459 | def SetSingleStyle(*args, **kwargs): | |
4460 | """SetSingleStyle(self, long style, bool add=True)""" | |
4461 | return _controls_.ListCtrl_SetSingleStyle(*args, **kwargs) | |
4462 | ||
4463 | def SetWindowStyleFlag(*args, **kwargs): | |
4464 | """ | |
4465 | SetWindowStyleFlag(self, long style) | |
4466 | ||
4467 | Sets the style of the window. Please note that some styles cannot be | |
4468 | changed after the window creation and that Refresh() might need to be | |
4469 | called after changing the others for the change to take place | |
4470 | immediately. | |
4471 | """ | |
4472 | return _controls_.ListCtrl_SetWindowStyleFlag(*args, **kwargs) | |
4473 | ||
4474 | def GetNextItem(*args, **kwargs): | |
4475 | """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long""" | |
4476 | return _controls_.ListCtrl_GetNextItem(*args, **kwargs) | |
4477 | ||
4478 | def GetImageList(*args, **kwargs): | |
4479 | """GetImageList(self, int which) -> ImageList""" | |
4480 | return _controls_.ListCtrl_GetImageList(*args, **kwargs) | |
4481 | ||
4482 | def SetImageList(*args, **kwargs): | |
4483 | """SetImageList(self, ImageList imageList, int which)""" | |
4484 | return _controls_.ListCtrl_SetImageList(*args, **kwargs) | |
4485 | ||
4486 | def AssignImageList(*args, **kwargs): | |
4487 | """AssignImageList(self, ImageList imageList, int which)""" | |
4488 | return _controls_.ListCtrl_AssignImageList(*args, **kwargs) | |
4489 | ||
4490 | def InReportView(*args, **kwargs): | |
4491 | """InReportView(self) -> bool""" | |
4492 | return _controls_.ListCtrl_InReportView(*args, **kwargs) | |
4493 | ||
4494 | def IsVirtual(*args, **kwargs): | |
4495 | """IsVirtual(self) -> bool""" | |
4496 | return _controls_.ListCtrl_IsVirtual(*args, **kwargs) | |
4497 | ||
4498 | def RefreshItem(*args, **kwargs): | |
4499 | """RefreshItem(self, long item)""" | |
4500 | return _controls_.ListCtrl_RefreshItem(*args, **kwargs) | |
4501 | ||
4502 | def RefreshItems(*args, **kwargs): | |
4503 | """RefreshItems(self, long itemFrom, long itemTo)""" | |
4504 | return _controls_.ListCtrl_RefreshItems(*args, **kwargs) | |
4505 | ||
4506 | def Arrange(*args, **kwargs): | |
4507 | """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool""" | |
4508 | return _controls_.ListCtrl_Arrange(*args, **kwargs) | |
4509 | ||
4510 | def DeleteItem(*args, **kwargs): | |
4511 | """DeleteItem(self, long item) -> bool""" | |
4512 | return _controls_.ListCtrl_DeleteItem(*args, **kwargs) | |
4513 | ||
4514 | def DeleteAllItems(*args, **kwargs): | |
4515 | """DeleteAllItems(self) -> bool""" | |
4516 | return _controls_.ListCtrl_DeleteAllItems(*args, **kwargs) | |
4517 | ||
4518 | def DeleteColumn(*args, **kwargs): | |
4519 | """DeleteColumn(self, int col) -> bool""" | |
4520 | return _controls_.ListCtrl_DeleteColumn(*args, **kwargs) | |
4521 | ||
4522 | def DeleteAllColumns(*args, **kwargs): | |
4523 | """DeleteAllColumns(self) -> bool""" | |
4524 | return _controls_.ListCtrl_DeleteAllColumns(*args, **kwargs) | |
4525 | ||
4526 | def ClearAll(*args, **kwargs): | |
4527 | """ClearAll(self)""" | |
4528 | return _controls_.ListCtrl_ClearAll(*args, **kwargs) | |
4529 | ||
4530 | def EditLabel(*args, **kwargs): | |
4531 | """EditLabel(self, long item)""" | |
4532 | return _controls_.ListCtrl_EditLabel(*args, **kwargs) | |
4533 | ||
4534 | def EnsureVisible(*args, **kwargs): | |
4535 | """EnsureVisible(self, long item) -> bool""" | |
4536 | return _controls_.ListCtrl_EnsureVisible(*args, **kwargs) | |
4537 | ||
4538 | def FindItem(*args, **kwargs): | |
4539 | """FindItem(self, long start, String str, bool partial=False) -> long""" | |
4540 | return _controls_.ListCtrl_FindItem(*args, **kwargs) | |
4541 | ||
4542 | def FindItemData(*args, **kwargs): | |
4543 | """FindItemData(self, long start, long data) -> long""" | |
4544 | return _controls_.ListCtrl_FindItemData(*args, **kwargs) | |
4545 | ||
4546 | def FindItemAtPos(*args, **kwargs): | |
4547 | """FindItemAtPos(self, long start, Point pt, int direction) -> long""" | |
4548 | return _controls_.ListCtrl_FindItemAtPos(*args, **kwargs) | |
4549 | ||
4550 | def HitTest(*args, **kwargs): | |
4551 | """ | |
4552 | HitTest(Point point) -> (item, where) | |
4553 | ||
4554 | Determines which item (if any) is at the specified point, giving | |
4555 | in the second return value (see wxLIST_HITTEST_... flags.) | |
4556 | """ | |
4557 | return _controls_.ListCtrl_HitTest(*args, **kwargs) | |
4558 | ||
4559 | def InsertItem(*args, **kwargs): | |
4560 | """InsertItem(self, ListItem info) -> long""" | |
4561 | return _controls_.ListCtrl_InsertItem(*args, **kwargs) | |
4562 | ||
4563 | def InsertStringItem(*args, **kwargs): | |
4564 | """InsertStringItem(self, long index, String label) -> long""" | |
4565 | return _controls_.ListCtrl_InsertStringItem(*args, **kwargs) | |
4566 | ||
4567 | def InsertImageItem(*args, **kwargs): | |
4568 | """InsertImageItem(self, long index, int imageIndex) -> long""" | |
4569 | return _controls_.ListCtrl_InsertImageItem(*args, **kwargs) | |
4570 | ||
4571 | def InsertImageStringItem(*args, **kwargs): | |
4572 | """InsertImageStringItem(self, long index, String label, int imageIndex) -> long""" | |
4573 | return _controls_.ListCtrl_InsertImageStringItem(*args, **kwargs) | |
4574 | ||
4575 | def InsertColumnInfo(*args, **kwargs): | |
4576 | """InsertColumnInfo(self, long col, ListItem info) -> long""" | |
4577 | return _controls_.ListCtrl_InsertColumnInfo(*args, **kwargs) | |
4578 | ||
4579 | def InsertColumn(*args, **kwargs): | |
4580 | """ | |
4581 | InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT, | |
4582 | int width=-1) -> long | |
4583 | """ | |
4584 | return _controls_.ListCtrl_InsertColumn(*args, **kwargs) | |
4585 | ||
4586 | def SetItemCount(*args, **kwargs): | |
4587 | """SetItemCount(self, long count)""" | |
4588 | return _controls_.ListCtrl_SetItemCount(*args, **kwargs) | |
4589 | ||
4590 | def ScrollList(*args, **kwargs): | |
4591 | """ScrollList(self, int dx, int dy) -> bool""" | |
4592 | return _controls_.ListCtrl_ScrollList(*args, **kwargs) | |
4593 | ||
4594 | def SetItemTextColour(*args, **kwargs): | |
4595 | """SetItemTextColour(self, long item, Colour col)""" | |
4596 | return _controls_.ListCtrl_SetItemTextColour(*args, **kwargs) | |
4597 | ||
4598 | def GetItemTextColour(*args, **kwargs): | |
4599 | """GetItemTextColour(self, long item) -> Colour""" | |
4600 | return _controls_.ListCtrl_GetItemTextColour(*args, **kwargs) | |
4601 | ||
4602 | def SetItemBackgroundColour(*args, **kwargs): | |
4603 | """SetItemBackgroundColour(self, long item, Colour col)""" | |
4604 | return _controls_.ListCtrl_SetItemBackgroundColour(*args, **kwargs) | |
4605 | ||
4606 | def GetItemBackgroundColour(*args, **kwargs): | |
4607 | """GetItemBackgroundColour(self, long item) -> Colour""" | |
4608 | return _controls_.ListCtrl_GetItemBackgroundColour(*args, **kwargs) | |
4609 | ||
4610 | # | |
4611 | # Some helpers... | |
4612 | def Select(self, idx, on=1): | |
4613 | '''[de]select an item''' | |
4614 | if on: state = wx.LIST_STATE_SELECTED | |
4615 | else: state = 0 | |
4616 | self.SetItemState(idx, state, wx.LIST_STATE_SELECTED) | |
4617 | ||
4618 | def Focus(self, idx): | |
4619 | '''Focus and show the given item''' | |
4620 | self.SetItemState(idx, wx.LIST_STATE_FOCUSED, wx.LIST_STATE_FOCUSED) | |
4621 | self.EnsureVisible(idx) | |
4622 | ||
4623 | def GetFocusedItem(self): | |
4624 | '''get the currently focused item or -1 if none''' | |
4625 | return self.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_FOCUSED) | |
4626 | ||
4627 | def GetFirstSelected(self, *args): | |
4628 | '''return first selected item, or -1 when none''' | |
4629 | return self.GetNextSelected(-1) | |
4630 | ||
4631 | def GetNextSelected(self, item): | |
4632 | '''return subsequent selected items, or -1 when no more''' | |
4633 | return self.GetNextItem(item, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) | |
4634 | ||
4635 | def IsSelected(self, idx): | |
4636 | '''return True if the item is selected''' | |
4637 | return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0 | |
4638 | ||
4639 | def SetColumnImage(self, col, image): | |
4640 | item = self.GetColumn(col) | |
4641 | # preserve all other attributes too | |
4642 | item.SetMask( wx.LIST_MASK_STATE | | |
4643 | wx.LIST_MASK_TEXT | | |
4644 | wx.LIST_MASK_IMAGE | | |
4645 | wx.LIST_MASK_DATA | | |
4646 | wx.LIST_SET_ITEM | | |
4647 | wx.LIST_MASK_WIDTH | | |
4648 | wx.LIST_MASK_FORMAT ) | |
4649 | item.SetImage(image) | |
4650 | self.SetColumn(col, item) | |
4651 | ||
4652 | def ClearColumnImage(self, col): | |
4653 | self.SetColumnImage(col, -1) | |
4654 | ||
4655 | def Append(self, entry): | |
4656 | '''Append an item to the list control. The entry parameter should be a | |
4657 | sequence with an item for each column''' | |
4658 | if len(entry): | |
4659 | if wx.USE_UNICODE: | |
4660 | cvtfunc = unicode | |
4661 | else: | |
4662 | cvtfunc = str | |
4663 | pos = self.GetItemCount() | |
4664 | self.InsertStringItem(pos, cvtfunc(entry[0])) | |
4665 | for i in range(1, len(entry)): | |
4666 | self.SetStringItem(pos, i, cvtfunc(entry[i])) | |
4667 | return pos | |
4668 | ||
4669 | def SortItems(*args, **kwargs): | |
4670 | """SortItems(self, PyObject func) -> bool""" | |
4671 | return _controls_.ListCtrl_SortItems(*args, **kwargs) | |
4672 | ||
4673 | def GetMainWindow(*args, **kwargs): | |
4674 | """GetMainWindow(self) -> Window""" | |
4675 | return _controls_.ListCtrl_GetMainWindow(*args, **kwargs) | |
4676 | ||
4677 | def GetClassDefaultAttributes(*args, **kwargs): | |
4678 | """ | |
4679 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4680 | ||
4681 | Get the default attributes for this class. This is useful if you want | |
4682 | to use the same font or colour in your own control as in a standard | |
4683 | control -- which is a much better idea than hard coding specific | |
4684 | colours or fonts which might look completely out of place on the | |
4685 | user's system, especially if it uses themes. | |
4686 | ||
4687 | The variant parameter is only relevant under Mac currently and is | |
4688 | ignore under other platforms. Under Mac, it will change the size of | |
4689 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4690 | this. | |
4691 | """ | |
4692 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
4693 | ||
4694 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
4695 | ||
4696 | class ListCtrlPtr(ListCtrl): | |
4697 | def __init__(self, this): | |
4698 | self.this = this | |
4699 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4700 | self.__class__ = ListCtrl | |
4701 | _controls_.ListCtrl_swigregister(ListCtrlPtr) | |
4702 | ||
4703 | def PreListCtrl(*args, **kwargs): | |
4704 | """PreListCtrl() -> ListCtrl""" | |
4705 | val = _controls_.new_PreListCtrl(*args, **kwargs) | |
4706 | val.thisown = 1 | |
4707 | return val | |
4708 | ||
4709 | def ListCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
4710 | """ | |
4711 | ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
4712 | ||
4713 | Get the default attributes for this class. This is useful if you want | |
4714 | to use the same font or colour in your own control as in a standard | |
4715 | control -- which is a much better idea than hard coding specific | |
4716 | colours or fonts which might look completely out of place on the | |
4717 | user's system, especially if it uses themes. | |
4718 | ||
4719 | The variant parameter is only relevant under Mac currently and is | |
4720 | ignore under other platforms. Under Mac, it will change the size of | |
4721 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
4722 | this. | |
4723 | """ | |
4724 | return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
4725 | ||
4726 | #--------------------------------------------------------------------------- | |
4727 | ||
4728 | class ListView(ListCtrl): | |
4729 | def __repr__(self): | |
4730 | return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4731 | def __init__(self, *args, **kwargs): | |
4732 | """ | |
4733 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4734 | Size size=DefaultSize, long style=LC_REPORT, | |
4735 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView | |
4736 | """ | |
4737 | newobj = _controls_.new_ListView(*args, **kwargs) | |
4738 | self.this = newobj.this | |
4739 | self.thisown = 1 | |
4740 | del newobj.thisown | |
4741 | self._setOORInfo(self) | |
4742 | ||
4743 | def Create(*args, **kwargs): | |
4744 | """ | |
4745 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
4746 | Size size=DefaultSize, long style=LC_REPORT, | |
4747 | Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool | |
4748 | ||
4749 | Do the 2nd phase and create the GUI control. | |
4750 | """ | |
4751 | return _controls_.ListView_Create(*args, **kwargs) | |
4752 | ||
4753 | def Select(*args, **kwargs): | |
4754 | """Select(self, long n, bool on=True)""" | |
4755 | return _controls_.ListView_Select(*args, **kwargs) | |
4756 | ||
4757 | def Focus(*args, **kwargs): | |
4758 | """Focus(self, long index)""" | |
4759 | return _controls_.ListView_Focus(*args, **kwargs) | |
4760 | ||
4761 | def GetFocusedItem(*args, **kwargs): | |
4762 | """GetFocusedItem(self) -> long""" | |
4763 | return _controls_.ListView_GetFocusedItem(*args, **kwargs) | |
4764 | ||
4765 | def GetNextSelected(*args, **kwargs): | |
4766 | """GetNextSelected(self, long item) -> long""" | |
4767 | return _controls_.ListView_GetNextSelected(*args, **kwargs) | |
4768 | ||
4769 | def GetFirstSelected(*args, **kwargs): | |
4770 | """GetFirstSelected(self) -> long""" | |
4771 | return _controls_.ListView_GetFirstSelected(*args, **kwargs) | |
4772 | ||
4773 | def IsSelected(*args, **kwargs): | |
4774 | """IsSelected(self, long index) -> bool""" | |
4775 | return _controls_.ListView_IsSelected(*args, **kwargs) | |
4776 | ||
4777 | def SetColumnImage(*args, **kwargs): | |
4778 | """SetColumnImage(self, int col, int image)""" | |
4779 | return _controls_.ListView_SetColumnImage(*args, **kwargs) | |
4780 | ||
4781 | def ClearColumnImage(*args, **kwargs): | |
4782 | """ClearColumnImage(self, int col)""" | |
4783 | return _controls_.ListView_ClearColumnImage(*args, **kwargs) | |
4784 | ||
4785 | ||
4786 | class ListViewPtr(ListView): | |
4787 | def __init__(self, this): | |
4788 | self.this = this | |
4789 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4790 | self.__class__ = ListView | |
4791 | _controls_.ListView_swigregister(ListViewPtr) | |
4792 | ||
4793 | def PreListView(*args, **kwargs): | |
4794 | """PreListView() -> ListView""" | |
4795 | val = _controls_.new_PreListView(*args, **kwargs) | |
4796 | val.thisown = 1 | |
4797 | return val | |
4798 | ||
4799 | #--------------------------------------------------------------------------- | |
4800 | ||
4801 | TR_NO_BUTTONS = _controls_.TR_NO_BUTTONS | |
4802 | TR_HAS_BUTTONS = _controls_.TR_HAS_BUTTONS | |
4803 | TR_NO_LINES = _controls_.TR_NO_LINES | |
4804 | TR_LINES_AT_ROOT = _controls_.TR_LINES_AT_ROOT | |
4805 | TR_SINGLE = _controls_.TR_SINGLE | |
4806 | TR_MULTIPLE = _controls_.TR_MULTIPLE | |
4807 | TR_EXTENDED = _controls_.TR_EXTENDED | |
4808 | TR_HAS_VARIABLE_ROW_HEIGHT = _controls_.TR_HAS_VARIABLE_ROW_HEIGHT | |
4809 | TR_EDIT_LABELS = _controls_.TR_EDIT_LABELS | |
4810 | TR_HIDE_ROOT = _controls_.TR_HIDE_ROOT | |
4811 | TR_ROW_LINES = _controls_.TR_ROW_LINES | |
4812 | TR_FULL_ROW_HIGHLIGHT = _controls_.TR_FULL_ROW_HIGHLIGHT | |
4813 | TR_DEFAULT_STYLE = _controls_.TR_DEFAULT_STYLE | |
4814 | TR_TWIST_BUTTONS = _controls_.TR_TWIST_BUTTONS | |
4815 | TR_MAC_BUTTONS = _controls_.TR_MAC_BUTTONS | |
4816 | TR_AQUA_BUTTONS = _controls_.TR_AQUA_BUTTONS | |
4817 | TreeItemIcon_Normal = _controls_.TreeItemIcon_Normal | |
4818 | TreeItemIcon_Selected = _controls_.TreeItemIcon_Selected | |
4819 | TreeItemIcon_Expanded = _controls_.TreeItemIcon_Expanded | |
4820 | TreeItemIcon_SelectedExpanded = _controls_.TreeItemIcon_SelectedExpanded | |
4821 | TreeItemIcon_Max = _controls_.TreeItemIcon_Max | |
4822 | TREE_HITTEST_ABOVE = _controls_.TREE_HITTEST_ABOVE | |
4823 | TREE_HITTEST_BELOW = _controls_.TREE_HITTEST_BELOW | |
4824 | TREE_HITTEST_NOWHERE = _controls_.TREE_HITTEST_NOWHERE | |
4825 | TREE_HITTEST_ONITEMBUTTON = _controls_.TREE_HITTEST_ONITEMBUTTON | |
4826 | TREE_HITTEST_ONITEMICON = _controls_.TREE_HITTEST_ONITEMICON | |
4827 | TREE_HITTEST_ONITEMINDENT = _controls_.TREE_HITTEST_ONITEMINDENT | |
4828 | TREE_HITTEST_ONITEMLABEL = _controls_.TREE_HITTEST_ONITEMLABEL | |
4829 | TREE_HITTEST_ONITEMRIGHT = _controls_.TREE_HITTEST_ONITEMRIGHT | |
4830 | TREE_HITTEST_ONITEMSTATEICON = _controls_.TREE_HITTEST_ONITEMSTATEICON | |
4831 | TREE_HITTEST_TOLEFT = _controls_.TREE_HITTEST_TOLEFT | |
4832 | TREE_HITTEST_TORIGHT = _controls_.TREE_HITTEST_TORIGHT | |
4833 | TREE_HITTEST_ONITEMUPPERPART = _controls_.TREE_HITTEST_ONITEMUPPERPART | |
4834 | TREE_HITTEST_ONITEMLOWERPART = _controls_.TREE_HITTEST_ONITEMLOWERPART | |
4835 | TREE_HITTEST_ONITEM = _controls_.TREE_HITTEST_ONITEM | |
4836 | #--------------------------------------------------------------------------- | |
4837 | ||
4838 | class TreeItemId(object): | |
4839 | def __repr__(self): | |
4840 | return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4841 | def __init__(self, *args, **kwargs): | |
4842 | """__init__(self) -> TreeItemId""" | |
4843 | newobj = _controls_.new_TreeItemId(*args, **kwargs) | |
4844 | self.this = newobj.this | |
4845 | self.thisown = 1 | |
4846 | del newobj.thisown | |
4847 | def __del__(self, destroy=_controls_.delete_TreeItemId): | |
4848 | """__del__(self)""" | |
4849 | try: | |
4850 | if self.thisown: destroy(self) | |
4851 | except: pass | |
4852 | ||
4853 | def IsOk(*args, **kwargs): | |
4854 | """IsOk(self) -> bool""" | |
4855 | return _controls_.TreeItemId_IsOk(*args, **kwargs) | |
4856 | ||
4857 | def __eq__(*args, **kwargs): | |
4858 | """__eq__(self, TreeItemId other) -> bool""" | |
4859 | return _controls_.TreeItemId___eq__(*args, **kwargs) | |
4860 | ||
4861 | def __ne__(*args, **kwargs): | |
4862 | """__ne__(self, TreeItemId other) -> bool""" | |
4863 | return _controls_.TreeItemId___ne__(*args, **kwargs) | |
4864 | ||
4865 | m_pItem = property(_controls_.TreeItemId_m_pItem_get, _controls_.TreeItemId_m_pItem_set) | |
4866 | Ok = IsOk | |
4867 | def __nonzero__(self): return self.IsOk() | |
4868 | ||
4869 | class TreeItemIdPtr(TreeItemId): | |
4870 | def __init__(self, this): | |
4871 | self.this = this | |
4872 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4873 | self.__class__ = TreeItemId | |
4874 | _controls_.TreeItemId_swigregister(TreeItemIdPtr) | |
4875 | TreeCtrlNameStr = cvar.TreeCtrlNameStr | |
4876 | ||
4877 | class TreeItemData(object): | |
4878 | def __repr__(self): | |
4879 | return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4880 | def __init__(self, *args, **kwargs): | |
4881 | """__init__(self, PyObject obj=None) -> TreeItemData""" | |
4882 | newobj = _controls_.new_TreeItemData(*args, **kwargs) | |
4883 | self.this = newobj.this | |
4884 | self.thisown = 1 | |
4885 | del newobj.thisown | |
4886 | def GetData(*args, **kwargs): | |
4887 | """GetData(self) -> PyObject""" | |
4888 | return _controls_.TreeItemData_GetData(*args, **kwargs) | |
4889 | ||
4890 | def SetData(*args, **kwargs): | |
4891 | """SetData(self, PyObject obj)""" | |
4892 | return _controls_.TreeItemData_SetData(*args, **kwargs) | |
4893 | ||
4894 | def GetId(*args, **kwargs): | |
4895 | """GetId(self) -> TreeItemId""" | |
4896 | return _controls_.TreeItemData_GetId(*args, **kwargs) | |
4897 | ||
4898 | def SetId(*args, **kwargs): | |
4899 | """SetId(self, TreeItemId id)""" | |
4900 | return _controls_.TreeItemData_SetId(*args, **kwargs) | |
4901 | ||
4902 | def Destroy(*args, **kwargs): | |
4903 | """Destroy(self)""" | |
4904 | return _controls_.TreeItemData_Destroy(*args, **kwargs) | |
4905 | ||
4906 | ||
4907 | class TreeItemDataPtr(TreeItemData): | |
4908 | def __init__(self, this): | |
4909 | self.this = this | |
4910 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4911 | self.__class__ = TreeItemData | |
4912 | _controls_.TreeItemData_swigregister(TreeItemDataPtr) | |
4913 | ||
4914 | #--------------------------------------------------------------------------- | |
4915 | ||
4916 | wxEVT_COMMAND_TREE_BEGIN_DRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_DRAG | |
4917 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = _controls_.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
4918 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
4919 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = _controls_.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
4920 | wxEVT_COMMAND_TREE_DELETE_ITEM = _controls_.wxEVT_COMMAND_TREE_DELETE_ITEM | |
4921 | wxEVT_COMMAND_TREE_GET_INFO = _controls_.wxEVT_COMMAND_TREE_GET_INFO | |
4922 | wxEVT_COMMAND_TREE_SET_INFO = _controls_.wxEVT_COMMAND_TREE_SET_INFO | |
4923 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
4924 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = _controls_.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
4925 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
4926 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = _controls_.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
4927 | wxEVT_COMMAND_TREE_SEL_CHANGED = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGED | |
4928 | wxEVT_COMMAND_TREE_SEL_CHANGING = _controls_.wxEVT_COMMAND_TREE_SEL_CHANGING | |
4929 | wxEVT_COMMAND_TREE_KEY_DOWN = _controls_.wxEVT_COMMAND_TREE_KEY_DOWN | |
4930 | wxEVT_COMMAND_TREE_ITEM_ACTIVATED = _controls_.wxEVT_COMMAND_TREE_ITEM_ACTIVATED | |
4931 | wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK | |
4932 | wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK = _controls_.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK | |
4933 | wxEVT_COMMAND_TREE_END_DRAG = _controls_.wxEVT_COMMAND_TREE_END_DRAG | |
4934 | wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK = _controls_.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK | |
4935 | wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP = _controls_.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP | |
4936 | EVT_TREE_BEGIN_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG , 1) | |
4937 | EVT_TREE_BEGIN_RDRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG , 1) | |
4938 | EVT_TREE_BEGIN_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT , 1) | |
4939 | EVT_TREE_END_LABEL_EDIT = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT , 1) | |
4940 | EVT_TREE_DELETE_ITEM = wx.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM , 1) | |
4941 | EVT_TREE_GET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO , 1) | |
4942 | EVT_TREE_SET_INFO = wx.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO , 1) | |
4943 | EVT_TREE_ITEM_EXPANDED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED , 1) | |
4944 | EVT_TREE_ITEM_EXPANDING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING , 1) | |
4945 | EVT_TREE_ITEM_COLLAPSED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED , 1) | |
4946 | EVT_TREE_ITEM_COLLAPSING = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING , 1) | |
4947 | EVT_TREE_SEL_CHANGED = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED , 1) | |
4948 | EVT_TREE_SEL_CHANGING = wx.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING , 1) | |
4949 | EVT_TREE_KEY_DOWN = wx.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN , 1) | |
4950 | EVT_TREE_ITEM_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED , 1) | |
4951 | EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK , 1) | |
4952 | EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1) | |
4953 | EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1) | |
4954 | EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1) | |
4955 | EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1) | |
4956 | ||
4957 | class TreeEvent(_core.NotifyEvent): | |
4958 | def __repr__(self): | |
4959 | return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
4960 | def __init__(self, *args, **kwargs): | |
4961 | """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent""" | |
4962 | newobj = _controls_.new_TreeEvent(*args, **kwargs) | |
4963 | self.this = newobj.this | |
4964 | self.thisown = 1 | |
4965 | del newobj.thisown | |
4966 | def GetItem(*args, **kwargs): | |
4967 | """GetItem(self) -> TreeItemId""" | |
4968 | return _controls_.TreeEvent_GetItem(*args, **kwargs) | |
4969 | ||
4970 | def SetItem(*args, **kwargs): | |
4971 | """SetItem(self, TreeItemId item)""" | |
4972 | return _controls_.TreeEvent_SetItem(*args, **kwargs) | |
4973 | ||
4974 | def GetOldItem(*args, **kwargs): | |
4975 | """GetOldItem(self) -> TreeItemId""" | |
4976 | return _controls_.TreeEvent_GetOldItem(*args, **kwargs) | |
4977 | ||
4978 | def SetOldItem(*args, **kwargs): | |
4979 | """SetOldItem(self, TreeItemId item)""" | |
4980 | return _controls_.TreeEvent_SetOldItem(*args, **kwargs) | |
4981 | ||
4982 | def GetPoint(*args, **kwargs): | |
4983 | """GetPoint(self) -> Point""" | |
4984 | return _controls_.TreeEvent_GetPoint(*args, **kwargs) | |
4985 | ||
4986 | def SetPoint(*args, **kwargs): | |
4987 | """SetPoint(self, Point pt)""" | |
4988 | return _controls_.TreeEvent_SetPoint(*args, **kwargs) | |
4989 | ||
4990 | def GetKeyEvent(*args, **kwargs): | |
4991 | """GetKeyEvent(self) -> KeyEvent""" | |
4992 | return _controls_.TreeEvent_GetKeyEvent(*args, **kwargs) | |
4993 | ||
4994 | def GetKeyCode(*args, **kwargs): | |
4995 | """GetKeyCode(self) -> int""" | |
4996 | return _controls_.TreeEvent_GetKeyCode(*args, **kwargs) | |
4997 | ||
4998 | def SetKeyEvent(*args, **kwargs): | |
4999 | """SetKeyEvent(self, KeyEvent evt)""" | |
5000 | return _controls_.TreeEvent_SetKeyEvent(*args, **kwargs) | |
5001 | ||
5002 | def GetLabel(*args, **kwargs): | |
5003 | """GetLabel(self) -> String""" | |
5004 | return _controls_.TreeEvent_GetLabel(*args, **kwargs) | |
5005 | ||
5006 | def SetLabel(*args, **kwargs): | |
5007 | """SetLabel(self, String label)""" | |
5008 | return _controls_.TreeEvent_SetLabel(*args, **kwargs) | |
5009 | ||
5010 | def IsEditCancelled(*args, **kwargs): | |
5011 | """IsEditCancelled(self) -> bool""" | |
5012 | return _controls_.TreeEvent_IsEditCancelled(*args, **kwargs) | |
5013 | ||
5014 | def SetEditCanceled(*args, **kwargs): | |
5015 | """SetEditCanceled(self, bool editCancelled)""" | |
5016 | return _controls_.TreeEvent_SetEditCanceled(*args, **kwargs) | |
5017 | ||
5018 | def SetToolTip(*args, **kwargs): | |
5019 | """SetToolTip(self, String toolTip)""" | |
5020 | return _controls_.TreeEvent_SetToolTip(*args, **kwargs) | |
5021 | ||
5022 | ||
5023 | class TreeEventPtr(TreeEvent): | |
5024 | def __init__(self, this): | |
5025 | self.this = this | |
5026 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5027 | self.__class__ = TreeEvent | |
5028 | _controls_.TreeEvent_swigregister(TreeEventPtr) | |
5029 | ||
5030 | #--------------------------------------------------------------------------- | |
5031 | ||
5032 | class TreeCtrl(_core.Control): | |
5033 | def __repr__(self): | |
5034 | return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5035 | def __init__(self, *args, **kwargs): | |
5036 | """ | |
5037 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
5038 | Size size=DefaultSize, long style=TR_DEFAULT_STYLE, | |
5039 | Validator validator=DefaultValidator, | |
5040 | String name=TreeCtrlNameStr) -> TreeCtrl | |
5041 | """ | |
5042 | newobj = _controls_.new_TreeCtrl(*args, **kwargs) | |
5043 | self.this = newobj.this | |
5044 | self.thisown = 1 | |
5045 | del newobj.thisown | |
5046 | self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl) | |
5047 | ||
5048 | def Create(*args, **kwargs): | |
5049 | """ | |
5050 | Create(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) -> bool | |
5054 | ||
5055 | Do the 2nd phase and create the GUI control. | |
5056 | """ | |
5057 | return _controls_.TreeCtrl_Create(*args, **kwargs) | |
5058 | ||
5059 | def _setCallbackInfo(*args, **kwargs): | |
5060 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5061 | return _controls_.TreeCtrl__setCallbackInfo(*args, **kwargs) | |
5062 | ||
5063 | def GetCount(*args, **kwargs): | |
5064 | """GetCount(self) -> size_t""" | |
5065 | return _controls_.TreeCtrl_GetCount(*args, **kwargs) | |
5066 | ||
5067 | def GetIndent(*args, **kwargs): | |
5068 | """GetIndent(self) -> unsigned int""" | |
5069 | return _controls_.TreeCtrl_GetIndent(*args, **kwargs) | |
5070 | ||
5071 | def SetIndent(*args, **kwargs): | |
5072 | """SetIndent(self, unsigned int indent)""" | |
5073 | return _controls_.TreeCtrl_SetIndent(*args, **kwargs) | |
5074 | ||
5075 | def GetSpacing(*args, **kwargs): | |
5076 | """GetSpacing(self) -> unsigned int""" | |
5077 | return _controls_.TreeCtrl_GetSpacing(*args, **kwargs) | |
5078 | ||
5079 | def SetSpacing(*args, **kwargs): | |
5080 | """SetSpacing(self, unsigned int spacing)""" | |
5081 | return _controls_.TreeCtrl_SetSpacing(*args, **kwargs) | |
5082 | ||
5083 | def GetImageList(*args, **kwargs): | |
5084 | """GetImageList(self) -> ImageList""" | |
5085 | return _controls_.TreeCtrl_GetImageList(*args, **kwargs) | |
5086 | ||
5087 | def GetStateImageList(*args, **kwargs): | |
5088 | """GetStateImageList(self) -> ImageList""" | |
5089 | return _controls_.TreeCtrl_GetStateImageList(*args, **kwargs) | |
5090 | ||
5091 | def SetImageList(*args, **kwargs): | |
5092 | """SetImageList(self, ImageList imageList)""" | |
5093 | return _controls_.TreeCtrl_SetImageList(*args, **kwargs) | |
5094 | ||
5095 | def SetStateImageList(*args, **kwargs): | |
5096 | """SetStateImageList(self, ImageList imageList)""" | |
5097 | return _controls_.TreeCtrl_SetStateImageList(*args, **kwargs) | |
5098 | ||
5099 | def AssignImageList(*args, **kwargs): | |
5100 | """AssignImageList(self, ImageList imageList)""" | |
5101 | return _controls_.TreeCtrl_AssignImageList(*args, **kwargs) | |
5102 | ||
5103 | def AssignStateImageList(*args, **kwargs): | |
5104 | """AssignStateImageList(self, ImageList imageList)""" | |
5105 | return _controls_.TreeCtrl_AssignStateImageList(*args, **kwargs) | |
5106 | ||
5107 | def GetItemText(*args, **kwargs): | |
5108 | """GetItemText(self, TreeItemId item) -> String""" | |
5109 | return _controls_.TreeCtrl_GetItemText(*args, **kwargs) | |
5110 | ||
5111 | def GetItemImage(*args, **kwargs): | |
5112 | """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int""" | |
5113 | return _controls_.TreeCtrl_GetItemImage(*args, **kwargs) | |
5114 | ||
5115 | def GetItemData(*args, **kwargs): | |
5116 | """GetItemData(self, TreeItemId item) -> TreeItemData""" | |
5117 | return _controls_.TreeCtrl_GetItemData(*args, **kwargs) | |
5118 | ||
5119 | def GetItemPyData(*args, **kwargs): | |
5120 | """GetItemPyData(self, TreeItemId item) -> PyObject""" | |
5121 | return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs) | |
5122 | ||
5123 | GetPyData = GetItemPyData | |
5124 | def GetItemTextColour(*args, **kwargs): | |
5125 | """GetItemTextColour(self, TreeItemId item) -> Colour""" | |
5126 | return _controls_.TreeCtrl_GetItemTextColour(*args, **kwargs) | |
5127 | ||
5128 | def GetItemBackgroundColour(*args, **kwargs): | |
5129 | """GetItemBackgroundColour(self, TreeItemId item) -> Colour""" | |
5130 | return _controls_.TreeCtrl_GetItemBackgroundColour(*args, **kwargs) | |
5131 | ||
5132 | def GetItemFont(*args, **kwargs): | |
5133 | """GetItemFont(self, TreeItemId item) -> Font""" | |
5134 | return _controls_.TreeCtrl_GetItemFont(*args, **kwargs) | |
5135 | ||
5136 | def SetItemText(*args, **kwargs): | |
5137 | """SetItemText(self, TreeItemId item, String text)""" | |
5138 | return _controls_.TreeCtrl_SetItemText(*args, **kwargs) | |
5139 | ||
5140 | def SetItemImage(*args, **kwargs): | |
5141 | """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)""" | |
5142 | return _controls_.TreeCtrl_SetItemImage(*args, **kwargs) | |
5143 | ||
5144 | def SetItemData(*args, **kwargs): | |
5145 | """SetItemData(self, TreeItemId item, TreeItemData data)""" | |
5146 | return _controls_.TreeCtrl_SetItemData(*args, **kwargs) | |
5147 | ||
5148 | def SetItemPyData(*args, **kwargs): | |
5149 | """SetItemPyData(self, TreeItemId item, PyObject obj)""" | |
5150 | return _controls_.TreeCtrl_SetItemPyData(*args, **kwargs) | |
5151 | ||
5152 | SetPyData = SetItemPyData | |
5153 | def SetItemHasChildren(*args, **kwargs): | |
5154 | """SetItemHasChildren(self, TreeItemId item, bool has=True)""" | |
5155 | return _controls_.TreeCtrl_SetItemHasChildren(*args, **kwargs) | |
5156 | ||
5157 | def SetItemBold(*args, **kwargs): | |
5158 | """SetItemBold(self, TreeItemId item, bool bold=True)""" | |
5159 | return _controls_.TreeCtrl_SetItemBold(*args, **kwargs) | |
5160 | ||
5161 | def SetItemTextColour(*args, **kwargs): | |
5162 | """SetItemTextColour(self, TreeItemId item, Colour col)""" | |
5163 | return _controls_.TreeCtrl_SetItemTextColour(*args, **kwargs) | |
5164 | ||
5165 | def SetItemBackgroundColour(*args, **kwargs): | |
5166 | """SetItemBackgroundColour(self, TreeItemId item, Colour col)""" | |
5167 | return _controls_.TreeCtrl_SetItemBackgroundColour(*args, **kwargs) | |
5168 | ||
5169 | def SetItemFont(*args, **kwargs): | |
5170 | """SetItemFont(self, TreeItemId item, Font font)""" | |
5171 | return _controls_.TreeCtrl_SetItemFont(*args, **kwargs) | |
5172 | ||
5173 | def IsVisible(*args, **kwargs): | |
5174 | """IsVisible(self, TreeItemId item) -> bool""" | |
5175 | return _controls_.TreeCtrl_IsVisible(*args, **kwargs) | |
5176 | ||
5177 | def ItemHasChildren(*args, **kwargs): | |
5178 | """ItemHasChildren(self, TreeItemId item) -> bool""" | |
5179 | return _controls_.TreeCtrl_ItemHasChildren(*args, **kwargs) | |
5180 | ||
5181 | def IsExpanded(*args, **kwargs): | |
5182 | """IsExpanded(self, TreeItemId item) -> bool""" | |
5183 | return _controls_.TreeCtrl_IsExpanded(*args, **kwargs) | |
5184 | ||
5185 | def IsSelected(*args, **kwargs): | |
5186 | """IsSelected(self, TreeItemId item) -> bool""" | |
5187 | return _controls_.TreeCtrl_IsSelected(*args, **kwargs) | |
5188 | ||
5189 | def IsBold(*args, **kwargs): | |
5190 | """IsBold(self, TreeItemId item) -> bool""" | |
5191 | return _controls_.TreeCtrl_IsBold(*args, **kwargs) | |
5192 | ||
5193 | def GetChildrenCount(*args, **kwargs): | |
5194 | """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t""" | |
5195 | return _controls_.TreeCtrl_GetChildrenCount(*args, **kwargs) | |
5196 | ||
5197 | def GetRootItem(*args, **kwargs): | |
5198 | """GetRootItem(self) -> TreeItemId""" | |
5199 | return _controls_.TreeCtrl_GetRootItem(*args, **kwargs) | |
5200 | ||
5201 | def GetSelection(*args, **kwargs): | |
5202 | """GetSelection(self) -> TreeItemId""" | |
5203 | return _controls_.TreeCtrl_GetSelection(*args, **kwargs) | |
5204 | ||
5205 | def GetSelections(*args, **kwargs): | |
5206 | """GetSelections(self) -> PyObject""" | |
5207 | return _controls_.TreeCtrl_GetSelections(*args, **kwargs) | |
5208 | ||
5209 | def GetItemParent(*args, **kwargs): | |
5210 | """GetItemParent(self, TreeItemId item) -> TreeItemId""" | |
5211 | return _controls_.TreeCtrl_GetItemParent(*args, **kwargs) | |
5212 | ||
5213 | def GetFirstChild(*args, **kwargs): | |
5214 | """GetFirstChild(self, TreeItemId item) -> PyObject""" | |
5215 | return _controls_.TreeCtrl_GetFirstChild(*args, **kwargs) | |
5216 | ||
5217 | def GetNextChild(*args, **kwargs): | |
5218 | """GetNextChild(self, TreeItemId item, void cookie) -> PyObject""" | |
5219 | return _controls_.TreeCtrl_GetNextChild(*args, **kwargs) | |
5220 | ||
5221 | def GetLastChild(*args, **kwargs): | |
5222 | """GetLastChild(self, TreeItemId item) -> TreeItemId""" | |
5223 | return _controls_.TreeCtrl_GetLastChild(*args, **kwargs) | |
5224 | ||
5225 | def GetNextSibling(*args, **kwargs): | |
5226 | """GetNextSibling(self, TreeItemId item) -> TreeItemId""" | |
5227 | return _controls_.TreeCtrl_GetNextSibling(*args, **kwargs) | |
5228 | ||
5229 | def GetPrevSibling(*args, **kwargs): | |
5230 | """GetPrevSibling(self, TreeItemId item) -> TreeItemId""" | |
5231 | return _controls_.TreeCtrl_GetPrevSibling(*args, **kwargs) | |
5232 | ||
5233 | def GetFirstVisibleItem(*args, **kwargs): | |
5234 | """GetFirstVisibleItem(self) -> TreeItemId""" | |
5235 | return _controls_.TreeCtrl_GetFirstVisibleItem(*args, **kwargs) | |
5236 | ||
5237 | def GetNextVisible(*args, **kwargs): | |
5238 | """GetNextVisible(self, TreeItemId item) -> TreeItemId""" | |
5239 | return _controls_.TreeCtrl_GetNextVisible(*args, **kwargs) | |
5240 | ||
5241 | def GetPrevVisible(*args, **kwargs): | |
5242 | """GetPrevVisible(self, TreeItemId item) -> TreeItemId""" | |
5243 | return _controls_.TreeCtrl_GetPrevVisible(*args, **kwargs) | |
5244 | ||
5245 | def AddRoot(*args, **kwargs): | |
5246 | """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId""" | |
5247 | return _controls_.TreeCtrl_AddRoot(*args, **kwargs) | |
5248 | ||
5249 | def PrependItem(*args, **kwargs): | |
5250 | """ | |
5251 | PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, | |
5252 | TreeItemData data=None) -> TreeItemId | |
5253 | """ | |
5254 | return _controls_.TreeCtrl_PrependItem(*args, **kwargs) | |
5255 | ||
5256 | def InsertItem(*args, **kwargs): | |
5257 | """ | |
5258 | InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text, | |
5259 | int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId | |
5260 | """ | |
5261 | return _controls_.TreeCtrl_InsertItem(*args, **kwargs) | |
5262 | ||
5263 | def InsertItemBefore(*args, **kwargs): | |
5264 | """ | |
5265 | InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1, | |
5266 | int selectedImage=-1, TreeItemData data=None) -> TreeItemId | |
5267 | """ | |
5268 | return _controls_.TreeCtrl_InsertItemBefore(*args, **kwargs) | |
5269 | ||
5270 | def AppendItem(*args, **kwargs): | |
5271 | """ | |
5272 | AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1, | |
5273 | TreeItemData data=None) -> TreeItemId | |
5274 | """ | |
5275 | return _controls_.TreeCtrl_AppendItem(*args, **kwargs) | |
5276 | ||
5277 | def Delete(*args, **kwargs): | |
5278 | """Delete(self, TreeItemId item)""" | |
5279 | return _controls_.TreeCtrl_Delete(*args, **kwargs) | |
5280 | ||
5281 | def DeleteChildren(*args, **kwargs): | |
5282 | """DeleteChildren(self, TreeItemId item)""" | |
5283 | return _controls_.TreeCtrl_DeleteChildren(*args, **kwargs) | |
5284 | ||
5285 | def DeleteAllItems(*args, **kwargs): | |
5286 | """DeleteAllItems(self)""" | |
5287 | return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs) | |
5288 | ||
5289 | def Expand(*args, **kwargs): | |
5290 | """Expand(self, TreeItemId item)""" | |
5291 | return _controls_.TreeCtrl_Expand(*args, **kwargs) | |
5292 | ||
5293 | def Collapse(*args, **kwargs): | |
5294 | """Collapse(self, TreeItemId item)""" | |
5295 | return _controls_.TreeCtrl_Collapse(*args, **kwargs) | |
5296 | ||
5297 | def CollapseAndReset(*args, **kwargs): | |
5298 | """CollapseAndReset(self, TreeItemId item)""" | |
5299 | return _controls_.TreeCtrl_CollapseAndReset(*args, **kwargs) | |
5300 | ||
5301 | def Toggle(*args, **kwargs): | |
5302 | """Toggle(self, TreeItemId item)""" | |
5303 | return _controls_.TreeCtrl_Toggle(*args, **kwargs) | |
5304 | ||
5305 | def Unselect(*args, **kwargs): | |
5306 | """Unselect(self)""" | |
5307 | return _controls_.TreeCtrl_Unselect(*args, **kwargs) | |
5308 | ||
5309 | def UnselectItem(*args, **kwargs): | |
5310 | """UnselectItem(self, TreeItemId item)""" | |
5311 | return _controls_.TreeCtrl_UnselectItem(*args, **kwargs) | |
5312 | ||
5313 | def UnselectAll(*args, **kwargs): | |
5314 | """UnselectAll(self)""" | |
5315 | return _controls_.TreeCtrl_UnselectAll(*args, **kwargs) | |
5316 | ||
5317 | def SelectItem(*args, **kwargs): | |
5318 | """SelectItem(self, TreeItemId item, bool select=True)""" | |
5319 | return _controls_.TreeCtrl_SelectItem(*args, **kwargs) | |
5320 | ||
5321 | def ToggleItemSelection(*args, **kwargs): | |
5322 | """ToggleItemSelection(self, TreeItemId item)""" | |
5323 | return _controls_.TreeCtrl_ToggleItemSelection(*args, **kwargs) | |
5324 | ||
5325 | def EnsureVisible(*args, **kwargs): | |
5326 | """EnsureVisible(self, TreeItemId item)""" | |
5327 | return _controls_.TreeCtrl_EnsureVisible(*args, **kwargs) | |
5328 | ||
5329 | def ScrollTo(*args, **kwargs): | |
5330 | """ScrollTo(self, TreeItemId item)""" | |
5331 | return _controls_.TreeCtrl_ScrollTo(*args, **kwargs) | |
5332 | ||
5333 | def EditLabel(*args, **kwargs): | |
5334 | """EditLabel(self, TreeItemId item)""" | |
5335 | return _controls_.TreeCtrl_EditLabel(*args, **kwargs) | |
5336 | ||
5337 | def GetEditControl(*args, **kwargs): | |
5338 | """GetEditControl(self) -> TextCtrl""" | |
5339 | return _controls_.TreeCtrl_GetEditControl(*args, **kwargs) | |
5340 | ||
5341 | def SortChildren(*args, **kwargs): | |
5342 | """SortChildren(self, TreeItemId item)""" | |
5343 | return _controls_.TreeCtrl_SortChildren(*args, **kwargs) | |
5344 | ||
5345 | def HitTest(*args, **kwargs): | |
5346 | """ | |
5347 | HitTest(Point point) -> (item, where) | |
5348 | ||
5349 | Determine which item (if any) belongs the given point. The coordinates | |
5350 | specified are relative to the client area of tree ctrl and the where return | |
5351 | value is set to a bitmask of wxTREE_HITTEST_xxx constants. | |
5352 | ||
5353 | """ | |
5354 | return _controls_.TreeCtrl_HitTest(*args, **kwargs) | |
5355 | ||
5356 | def GetBoundingRect(*args, **kwargs): | |
5357 | """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject""" | |
5358 | return _controls_.TreeCtrl_GetBoundingRect(*args, **kwargs) | |
5359 | ||
5360 | def GetClassDefaultAttributes(*args, **kwargs): | |
5361 | """ | |
5362 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
5363 | ||
5364 | Get the default attributes for this class. This is useful if you want | |
5365 | to use the same font or colour in your own control as in a standard | |
5366 | control -- which is a much better idea than hard coding specific | |
5367 | colours or fonts which might look completely out of place on the | |
5368 | user's system, especially if it uses themes. | |
5369 | ||
5370 | The variant parameter is only relevant under Mac currently and is | |
5371 | ignore under other platforms. Under Mac, it will change the size of | |
5372 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5373 | this. | |
5374 | """ | |
5375 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
5376 | ||
5377 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
5378 | ||
5379 | class TreeCtrlPtr(TreeCtrl): | |
5380 | def __init__(self, this): | |
5381 | self.this = this | |
5382 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5383 | self.__class__ = TreeCtrl | |
5384 | _controls_.TreeCtrl_swigregister(TreeCtrlPtr) | |
5385 | ||
5386 | def PreTreeCtrl(*args, **kwargs): | |
5387 | """PreTreeCtrl() -> TreeCtrl""" | |
5388 | val = _controls_.new_PreTreeCtrl(*args, **kwargs) | |
5389 | val.thisown = 1 | |
5390 | return val | |
5391 | ||
5392 | def TreeCtrl_GetClassDefaultAttributes(*args, **kwargs): | |
5393 | """ | |
5394 | TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
5395 | ||
5396 | Get the default attributes for this class. This is useful if you want | |
5397 | to use the same font or colour in your own control as in a standard | |
5398 | control -- which is a much better idea than hard coding specific | |
5399 | colours or fonts which might look completely out of place on the | |
5400 | user's system, especially if it uses themes. | |
5401 | ||
5402 | The variant parameter is only relevant under Mac currently and is | |
5403 | ignore under other platforms. Under Mac, it will change the size of | |
5404 | the returned font. See `wx.Window.SetWindowVariant` for more about | |
5405 | this. | |
5406 | """ | |
5407 | return _controls_.TreeCtrl_GetClassDefaultAttributes(*args, **kwargs) | |
5408 | ||
5409 | #--------------------------------------------------------------------------- | |
5410 | ||
5411 | DIRCTRL_DIR_ONLY = _controls_.DIRCTRL_DIR_ONLY | |
5412 | DIRCTRL_SELECT_FIRST = _controls_.DIRCTRL_SELECT_FIRST | |
5413 | DIRCTRL_SHOW_FILTERS = _controls_.DIRCTRL_SHOW_FILTERS | |
5414 | DIRCTRL_3D_INTERNAL = _controls_.DIRCTRL_3D_INTERNAL | |
5415 | DIRCTRL_EDIT_LABELS = _controls_.DIRCTRL_EDIT_LABELS | |
5416 | class GenericDirCtrl(_core.Control): | |
5417 | def __repr__(self): | |
5418 | return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5419 | def __init__(self, *args, **kwargs): | |
5420 | """ | |
5421 | __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, | |
5422 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5423 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5424 | String filter=EmptyString, | |
5425 | int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl | |
5426 | """ | |
5427 | newobj = _controls_.new_GenericDirCtrl(*args, **kwargs) | |
5428 | self.this = newobj.this | |
5429 | self.thisown = 1 | |
5430 | del newobj.thisown | |
5431 | self._setOORInfo(self) | |
5432 | ||
5433 | def Create(*args, **kwargs): | |
5434 | """ | |
5435 | Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr, | |
5436 | Point pos=DefaultPosition, Size size=DefaultSize, | |
5437 | long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, | |
5438 | String filter=EmptyString, | |
5439 | int defaultFilter=0, String name=TreeCtrlNameStr) -> bool | |
5440 | """ | |
5441 | return _controls_.GenericDirCtrl_Create(*args, **kwargs) | |
5442 | ||
5443 | def ExpandPath(*args, **kwargs): | |
5444 | """ExpandPath(self, String path) -> bool""" | |
5445 | return _controls_.GenericDirCtrl_ExpandPath(*args, **kwargs) | |
5446 | ||
5447 | def GetDefaultPath(*args, **kwargs): | |
5448 | """GetDefaultPath(self) -> String""" | |
5449 | return _controls_.GenericDirCtrl_GetDefaultPath(*args, **kwargs) | |
5450 | ||
5451 | def SetDefaultPath(*args, **kwargs): | |
5452 | """SetDefaultPath(self, String path)""" | |
5453 | return _controls_.GenericDirCtrl_SetDefaultPath(*args, **kwargs) | |
5454 | ||
5455 | def GetPath(*args, **kwargs): | |
5456 | """GetPath(self) -> String""" | |
5457 | return _controls_.GenericDirCtrl_GetPath(*args, **kwargs) | |
5458 | ||
5459 | def GetFilePath(*args, **kwargs): | |
5460 | """GetFilePath(self) -> String""" | |
5461 | return _controls_.GenericDirCtrl_GetFilePath(*args, **kwargs) | |
5462 | ||
5463 | def SetPath(*args, **kwargs): | |
5464 | """SetPath(self, String path)""" | |
5465 | return _controls_.GenericDirCtrl_SetPath(*args, **kwargs) | |
5466 | ||
5467 | def ShowHidden(*args, **kwargs): | |
5468 | """ShowHidden(self, bool show)""" | |
5469 | return _controls_.GenericDirCtrl_ShowHidden(*args, **kwargs) | |
5470 | ||
5471 | def GetShowHidden(*args, **kwargs): | |
5472 | """GetShowHidden(self) -> bool""" | |
5473 | return _controls_.GenericDirCtrl_GetShowHidden(*args, **kwargs) | |
5474 | ||
5475 | def GetFilter(*args, **kwargs): | |
5476 | """GetFilter(self) -> String""" | |
5477 | return _controls_.GenericDirCtrl_GetFilter(*args, **kwargs) | |
5478 | ||
5479 | def SetFilter(*args, **kwargs): | |
5480 | """SetFilter(self, String filter)""" | |
5481 | return _controls_.GenericDirCtrl_SetFilter(*args, **kwargs) | |
5482 | ||
5483 | def GetFilterIndex(*args, **kwargs): | |
5484 | """GetFilterIndex(self) -> int""" | |
5485 | return _controls_.GenericDirCtrl_GetFilterIndex(*args, **kwargs) | |
5486 | ||
5487 | def SetFilterIndex(*args, **kwargs): | |
5488 | """SetFilterIndex(self, int n)""" | |
5489 | return _controls_.GenericDirCtrl_SetFilterIndex(*args, **kwargs) | |
5490 | ||
5491 | def GetRootId(*args, **kwargs): | |
5492 | """GetRootId(self) -> TreeItemId""" | |
5493 | return _controls_.GenericDirCtrl_GetRootId(*args, **kwargs) | |
5494 | ||
5495 | def GetTreeCtrl(*args, **kwargs): | |
5496 | """GetTreeCtrl(self) -> TreeCtrl""" | |
5497 | return _controls_.GenericDirCtrl_GetTreeCtrl(*args, **kwargs) | |
5498 | ||
5499 | def GetFilterListCtrl(*args, **kwargs): | |
5500 | """GetFilterListCtrl(self) -> DirFilterListCtrl""" | |
5501 | return _controls_.GenericDirCtrl_GetFilterListCtrl(*args, **kwargs) | |
5502 | ||
5503 | def FindChild(*args, **kwargs): | |
5504 | """ | |
5505 | FindChild(wxTreeItemId parentId, wxString path) -> (item, done) | |
5506 | ||
5507 | Find the child that matches the first part of 'path'. E.g. if a child | |
5508 | path is "/usr" and 'path' is "/usr/include" then the child for | |
5509 | /usr is returned. If the path string has been used (we're at the | |
5510 | leaf), done is set to True. | |
5511 | ||
5512 | """ | |
5513 | return _controls_.GenericDirCtrl_FindChild(*args, **kwargs) | |
5514 | ||
5515 | def DoResize(*args, **kwargs): | |
5516 | """DoResize(self)""" | |
5517 | return _controls_.GenericDirCtrl_DoResize(*args, **kwargs) | |
5518 | ||
5519 | def ReCreateTree(*args, **kwargs): | |
5520 | """ReCreateTree(self)""" | |
5521 | return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs) | |
5522 | ||
5523 | ||
5524 | class GenericDirCtrlPtr(GenericDirCtrl): | |
5525 | def __init__(self, this): | |
5526 | self.this = this | |
5527 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5528 | self.__class__ = GenericDirCtrl | |
5529 | _controls_.GenericDirCtrl_swigregister(GenericDirCtrlPtr) | |
5530 | DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr | |
5531 | ||
5532 | def PreGenericDirCtrl(*args, **kwargs): | |
5533 | """PreGenericDirCtrl() -> GenericDirCtrl""" | |
5534 | val = _controls_.new_PreGenericDirCtrl(*args, **kwargs) | |
5535 | val.thisown = 1 | |
5536 | return val | |
5537 | ||
5538 | class DirFilterListCtrl(Choice): | |
5539 | def __repr__(self): | |
5540 | return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5541 | def __init__(self, *args, **kwargs): | |
5542 | """ | |
5543 | __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
5544 | Size size=DefaultSize, long style=0) -> DirFilterListCtrl | |
5545 | """ | |
5546 | newobj = _controls_.new_DirFilterListCtrl(*args, **kwargs) | |
5547 | self.this = newobj.this | |
5548 | self.thisown = 1 | |
5549 | del newobj.thisown | |
5550 | self._setOORInfo(self) | |
5551 | ||
5552 | def Create(*args, **kwargs): | |
5553 | """ | |
5554 | Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition, | |
5555 | Size size=DefaultSize, long style=0) -> bool | |
5556 | """ | |
5557 | return _controls_.DirFilterListCtrl_Create(*args, **kwargs) | |
5558 | ||
5559 | def FillFilterList(*args, **kwargs): | |
5560 | """FillFilterList(self, String filter, int defaultFilter)""" | |
5561 | return _controls_.DirFilterListCtrl_FillFilterList(*args, **kwargs) | |
5562 | ||
5563 | ||
5564 | class DirFilterListCtrlPtr(DirFilterListCtrl): | |
5565 | def __init__(self, this): | |
5566 | self.this = this | |
5567 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5568 | self.__class__ = DirFilterListCtrl | |
5569 | _controls_.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr) | |
5570 | ||
5571 | def PreDirFilterListCtrl(*args, **kwargs): | |
5572 | """PreDirFilterListCtrl() -> DirFilterListCtrl""" | |
5573 | val = _controls_.new_PreDirFilterListCtrl(*args, **kwargs) | |
5574 | val.thisown = 1 | |
5575 | return val | |
5576 | ||
5577 | #--------------------------------------------------------------------------- | |
5578 | ||
5579 | class PyControl(_core.Control): | |
5580 | def __repr__(self): | |
5581 | return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5582 | def __init__(self, *args, **kwargs): | |
5583 | """ | |
5584 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
5585 | Size size=DefaultSize, long style=0, Validator validator=DefaultValidator, | |
5586 | String name=ControlNameStr) -> PyControl | |
5587 | """ | |
5588 | newobj = _controls_.new_PyControl(*args, **kwargs) | |
5589 | self.this = newobj.this | |
5590 | self.thisown = 1 | |
5591 | del newobj.thisown | |
5592 | self._setOORInfo(self); self._setCallbackInfo(self, PyControl) | |
5593 | ||
5594 | def _setCallbackInfo(*args, **kwargs): | |
5595 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
5596 | return _controls_.PyControl__setCallbackInfo(*args, **kwargs) | |
5597 | ||
5598 | def SetBestSize(*args, **kwargs): | |
5599 | """SetBestSize(self, Size size)""" | |
5600 | return _controls_.PyControl_SetBestSize(*args, **kwargs) | |
5601 | ||
5602 | def base_DoMoveWindow(*args, **kwargs): | |
5603 | """base_DoMoveWindow(self, int x, int y, int width, int height)""" | |
5604 | return _controls_.PyControl_base_DoMoveWindow(*args, **kwargs) | |
5605 | ||
5606 | def base_DoSetSize(*args, **kwargs): | |
5607 | """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
5608 | return _controls_.PyControl_base_DoSetSize(*args, **kwargs) | |
5609 | ||
5610 | def base_DoSetClientSize(*args, **kwargs): | |
5611 | """base_DoSetClientSize(self, int width, int height)""" | |
5612 | return _controls_.PyControl_base_DoSetClientSize(*args, **kwargs) | |
5613 | ||
5614 | def base_DoSetVirtualSize(*args, **kwargs): | |
5615 | """base_DoSetVirtualSize(self, int x, int y)""" | |
5616 | return _controls_.PyControl_base_DoSetVirtualSize(*args, **kwargs) | |
5617 | ||
5618 | def base_DoGetSize(*args, **kwargs): | |
5619 | """base_DoGetSize() -> (width, height)""" | |
5620 | return _controls_.PyControl_base_DoGetSize(*args, **kwargs) | |
5621 | ||
5622 | def base_DoGetClientSize(*args, **kwargs): | |
5623 | """base_DoGetClientSize() -> (width, height)""" | |
5624 | return _controls_.PyControl_base_DoGetClientSize(*args, **kwargs) | |
5625 | ||
5626 | def base_DoGetPosition(*args, **kwargs): | |
5627 | """base_DoGetPosition() -> (x,y)""" | |
5628 | return _controls_.PyControl_base_DoGetPosition(*args, **kwargs) | |
5629 | ||
5630 | def base_DoGetVirtualSize(*args, **kwargs): | |
5631 | """base_DoGetVirtualSize(self) -> Size""" | |
5632 | return _controls_.PyControl_base_DoGetVirtualSize(*args, **kwargs) | |
5633 | ||
5634 | def base_DoGetBestSize(*args, **kwargs): | |
5635 | """base_DoGetBestSize(self) -> Size""" | |
5636 | return _controls_.PyControl_base_DoGetBestSize(*args, **kwargs) | |
5637 | ||
5638 | def base_InitDialog(*args, **kwargs): | |
5639 | """base_InitDialog(self)""" | |
5640 | return _controls_.PyControl_base_InitDialog(*args, **kwargs) | |
5641 | ||
5642 | def base_TransferDataToWindow(*args, **kwargs): | |
5643 | """base_TransferDataToWindow(self) -> bool""" | |
5644 | return _controls_.PyControl_base_TransferDataToWindow(*args, **kwargs) | |
5645 | ||
5646 | def base_TransferDataFromWindow(*args, **kwargs): | |
5647 | """base_TransferDataFromWindow(self) -> bool""" | |
5648 | return _controls_.PyControl_base_TransferDataFromWindow(*args, **kwargs) | |
5649 | ||
5650 | def base_Validate(*args, **kwargs): | |
5651 | """base_Validate(self) -> bool""" | |
5652 | return _controls_.PyControl_base_Validate(*args, **kwargs) | |
5653 | ||
5654 | def base_AcceptsFocus(*args, **kwargs): | |
5655 | """base_AcceptsFocus(self) -> bool""" | |
5656 | return _controls_.PyControl_base_AcceptsFocus(*args, **kwargs) | |
5657 | ||
5658 | def base_AcceptsFocusFromKeyboard(*args, **kwargs): | |
5659 | """base_AcceptsFocusFromKeyboard(self) -> bool""" | |
5660 | return _controls_.PyControl_base_AcceptsFocusFromKeyboard(*args, **kwargs) | |
5661 | ||
5662 | def base_GetMaxSize(*args, **kwargs): | |
5663 | """base_GetMaxSize(self) -> Size""" | |
5664 | return _controls_.PyControl_base_GetMaxSize(*args, **kwargs) | |
5665 | ||
5666 | def base_AddChild(*args, **kwargs): | |
5667 | """base_AddChild(self, Window child)""" | |
5668 | return _controls_.PyControl_base_AddChild(*args, **kwargs) | |
5669 | ||
5670 | def base_RemoveChild(*args, **kwargs): | |
5671 | """base_RemoveChild(self, Window child)""" | |
5672 | return _controls_.PyControl_base_RemoveChild(*args, **kwargs) | |
5673 | ||
5674 | def base_ShouldInheritColours(*args, **kwargs): | |
5675 | """base_ShouldInheritColours(self) -> bool""" | |
5676 | return _controls_.PyControl_base_ShouldInheritColours(*args, **kwargs) | |
5677 | ||
5678 | def base_ApplyParentThemeBackground(*args, **kwargs): | |
5679 | """base_ApplyParentThemeBackground(self, Colour c)""" | |
5680 | return _controls_.PyControl_base_ApplyParentThemeBackground(*args, **kwargs) | |
5681 | ||
5682 | def base_GetDefaultAttributes(*args, **kwargs): | |
5683 | """base_GetDefaultAttributes(self) -> VisualAttributes""" | |
5684 | return _controls_.PyControl_base_GetDefaultAttributes(*args, **kwargs) | |
5685 | ||
5686 | ||
5687 | class PyControlPtr(PyControl): | |
5688 | def __init__(self, this): | |
5689 | self.this = this | |
5690 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5691 | self.__class__ = PyControl | |
5692 | _controls_.PyControl_swigregister(PyControlPtr) | |
5693 | ||
5694 | def PrePyControl(*args, **kwargs): | |
5695 | """PrePyControl() -> PyControl""" | |
5696 | val = _controls_.new_PrePyControl(*args, **kwargs) | |
5697 | val.thisown = 1 | |
5698 | return val | |
5699 | ||
5700 | #--------------------------------------------------------------------------- | |
5701 | ||
5702 | FRAME_EX_CONTEXTHELP = _controls_.FRAME_EX_CONTEXTHELP | |
5703 | DIALOG_EX_CONTEXTHELP = _controls_.DIALOG_EX_CONTEXTHELP | |
5704 | wxEVT_HELP = _controls_.wxEVT_HELP | |
5705 | wxEVT_DETAILED_HELP = _controls_.wxEVT_DETAILED_HELP | |
5706 | EVT_HELP = wx.PyEventBinder( wxEVT_HELP, 1) | |
5707 | EVT_HELP_RANGE = wx.PyEventBinder( wxEVT_HELP, 2) | |
5708 | EVT_DETAILED_HELP = wx.PyEventBinder( wxEVT_DETAILED_HELP, 1) | |
5709 | EVT_DETAILED_HELP_RANGE = wx.PyEventBinder( wxEVT_DETAILED_HELP, 2) | |
5710 | ||
5711 | class HelpEvent(_core.CommandEvent): | |
5712 | """ | |
5713 | A help event is sent when the user has requested context-sensitive | |
5714 | help. This can either be caused by the application requesting | |
5715 | context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by | |
5716 | the system generating a WM_HELP message when the user pressed F1 or | |
5717 | clicked on the query button in a dialog caption. | |
5718 | ||
5719 | A help event is sent to the window that the user clicked on, and is | |
5720 | propagated up the window hierarchy until the event is processed or | |
5721 | there are no more event handlers. The application should call | |
5722 | event.GetId to check the identity of the clicked-on window, and then | |
5723 | either show some suitable help or call event.Skip if the identifier is | |
5724 | unrecognised. Calling Skip is important because it allows wxWindows to | |
5725 | generate further events for ancestors of the clicked-on | |
5726 | window. Otherwise it would be impossible to show help for container | |
5727 | windows, since processing would stop after the first window found. | |
5728 | """ | |
5729 | def __repr__(self): | |
5730 | return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5731 | def __init__(self, *args, **kwargs): | |
5732 | """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent""" | |
5733 | newobj = _controls_.new_HelpEvent(*args, **kwargs) | |
5734 | self.this = newobj.this | |
5735 | self.thisown = 1 | |
5736 | del newobj.thisown | |
5737 | def GetPosition(*args, **kwargs): | |
5738 | """ | |
5739 | GetPosition(self) -> Point | |
5740 | ||
5741 | Returns the left-click position of the mouse, in screen | |
5742 | coordinates. This allows the application to position the help | |
5743 | appropriately. | |
5744 | """ | |
5745 | return _controls_.HelpEvent_GetPosition(*args, **kwargs) | |
5746 | ||
5747 | def SetPosition(*args, **kwargs): | |
5748 | """ | |
5749 | SetPosition(self, Point pos) | |
5750 | ||
5751 | Sets the left-click position of the mouse, in screen coordinates. | |
5752 | """ | |
5753 | return _controls_.HelpEvent_SetPosition(*args, **kwargs) | |
5754 | ||
5755 | def GetLink(*args, **kwargs): | |
5756 | """ | |
5757 | GetLink(self) -> String | |
5758 | ||
5759 | Get an optional link to further help | |
5760 | """ | |
5761 | return _controls_.HelpEvent_GetLink(*args, **kwargs) | |
5762 | ||
5763 | def SetLink(*args, **kwargs): | |
5764 | """ | |
5765 | SetLink(self, String link) | |
5766 | ||
5767 | Set an optional link to further help | |
5768 | """ | |
5769 | return _controls_.HelpEvent_SetLink(*args, **kwargs) | |
5770 | ||
5771 | def GetTarget(*args, **kwargs): | |
5772 | """ | |
5773 | GetTarget(self) -> String | |
5774 | ||
5775 | Get an optional target to display help in. E.g. a window specification | |
5776 | """ | |
5777 | return _controls_.HelpEvent_GetTarget(*args, **kwargs) | |
5778 | ||
5779 | def SetTarget(*args, **kwargs): | |
5780 | """ | |
5781 | SetTarget(self, String target) | |
5782 | ||
5783 | Set an optional target to display help in. E.g. a window specification | |
5784 | """ | |
5785 | return _controls_.HelpEvent_SetTarget(*args, **kwargs) | |
5786 | ||
5787 | ||
5788 | class HelpEventPtr(HelpEvent): | |
5789 | def __init__(self, this): | |
5790 | self.this = this | |
5791 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5792 | self.__class__ = HelpEvent | |
5793 | _controls_.HelpEvent_swigregister(HelpEventPtr) | |
5794 | ||
5795 | class ContextHelp(_core.Object): | |
5796 | """ | |
5797 | This class changes the cursor to a query and puts the application into | |
5798 | a 'context-sensitive help mode'. When the user left-clicks on a window | |
5799 | within the specified window, a ``EVT_HELP`` event is sent to that | |
5800 | control, and the application may respond to it by popping up some | |
5801 | help. | |
5802 | ||
5803 | There are a couple of ways to invoke this behaviour implicitly: | |
5804 | ||
5805 | * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog | |
5806 | (Windows only). This will put a question mark in the titlebar, | |
5807 | and Windows will put the application into context-sensitive help | |
5808 | mode automatically, with further programming. | |
5809 | ||
5810 | * Create a `wx.ContextHelpButton`, whose predefined behaviour is | |
5811 | to create a context help object. Normally you will write your | |
5812 | application so that this button is only added to a dialog for | |
5813 | non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on | |
5814 | Windows). | |
5815 | ||
5816 | :see: `wx.ContextHelpButton` | |
5817 | ||
5818 | """ | |
5819 | def __repr__(self): | |
5820 | return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5821 | def __init__(self, *args, **kwargs): | |
5822 | """ | |
5823 | __init__(self, Window window=None, bool doNow=True) -> ContextHelp | |
5824 | ||
5825 | Constructs a context help object, calling BeginContextHelp if doNow is | |
5826 | true (the default). | |
5827 | ||
5828 | If window is None, the top window is used. | |
5829 | """ | |
5830 | newobj = _controls_.new_ContextHelp(*args, **kwargs) | |
5831 | self.this = newobj.this | |
5832 | self.thisown = 1 | |
5833 | del newobj.thisown | |
5834 | def __del__(self, destroy=_controls_.delete_ContextHelp): | |
5835 | """__del__(self)""" | |
5836 | try: | |
5837 | if self.thisown: destroy(self) | |
5838 | except: pass | |
5839 | ||
5840 | def BeginContextHelp(*args, **kwargs): | |
5841 | """ | |
5842 | BeginContextHelp(self, Window window=None) -> bool | |
5843 | ||
5844 | Puts the application into context-sensitive help mode. window is the | |
5845 | window which will be used to catch events; if NULL, the top window | |
5846 | will be used. | |
5847 | ||
5848 | Returns true if the application was successfully put into | |
5849 | context-sensitive help mode. This function only returns when the event | |
5850 | loop has finished. | |
5851 | """ | |
5852 | return _controls_.ContextHelp_BeginContextHelp(*args, **kwargs) | |
5853 | ||
5854 | def EndContextHelp(*args, **kwargs): | |
5855 | """ | |
5856 | EndContextHelp(self) -> bool | |
5857 | ||
5858 | Ends context-sensitive help mode. Not normally called by the | |
5859 | application. | |
5860 | """ | |
5861 | return _controls_.ContextHelp_EndContextHelp(*args, **kwargs) | |
5862 | ||
5863 | ||
5864 | class ContextHelpPtr(ContextHelp): | |
5865 | def __init__(self, this): | |
5866 | self.this = this | |
5867 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5868 | self.__class__ = ContextHelp | |
5869 | _controls_.ContextHelp_swigregister(ContextHelpPtr) | |
5870 | ||
5871 | class ContextHelpButton(BitmapButton): | |
5872 | """ | |
5873 | Instances of this class may be used to add a question mark button that | |
5874 | when pressed, puts the application into context-help mode. It does | |
5875 | this by creating a wx.ContextHelp object which itself generates a | |
5876 | ``EVT_HELP`` event when the user clicks on a window. | |
5877 | ||
5878 | On Windows, you may add a question-mark icon to a dialog by use of the | |
5879 | ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you | |
5880 | will have to add a button explicitly, usually next to OK, Cancel or | |
5881 | similar buttons. | |
5882 | ||
5883 | :see: `wx.ContextHelp`, `wx.ContextHelpButton` | |
5884 | ||
5885 | """ | |
5886 | def __repr__(self): | |
5887 | return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5888 | def __init__(self, *args, **kwargs): | |
5889 | """ | |
5890 | __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition, | |
5891 | Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton | |
5892 | ||
5893 | Constructor, creating and showing a context help button. | |
5894 | """ | |
5895 | newobj = _controls_.new_ContextHelpButton(*args, **kwargs) | |
5896 | self.this = newobj.this | |
5897 | self.thisown = 1 | |
5898 | del newobj.thisown | |
5899 | self._setOORInfo(self) | |
5900 | ||
5901 | ||
5902 | class ContextHelpButtonPtr(ContextHelpButton): | |
5903 | def __init__(self, this): | |
5904 | self.this = this | |
5905 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5906 | self.__class__ = ContextHelpButton | |
5907 | _controls_.ContextHelpButton_swigregister(ContextHelpButtonPtr) | |
5908 | ||
5909 | class HelpProvider(object): | |
5910 | """ | |
5911 | wx.HelpProvider is an abstract class used by a program | |
5912 | implementing context-sensitive help to show the help text for the | |
5913 | given window. | |
5914 | ||
5915 | The current help provider must be explicitly set by the | |
5916 | application using wx.HelpProvider.Set(). | |
5917 | """ | |
5918 | def __init__(self): raise RuntimeError, "No constructor defined" | |
5919 | def __repr__(self): | |
5920 | return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5921 | def Set(*args, **kwargs): | |
5922 | """ | |
5923 | Set(HelpProvider helpProvider) -> HelpProvider | |
5924 | ||
5925 | Sset the current, application-wide help provider. Returns the previous | |
5926 | one. Unlike some other classes, the help provider is not created on | |
5927 | demand. This must be explicitly done by the application. | |
5928 | """ | |
5929 | return _controls_.HelpProvider_Set(*args, **kwargs) | |
5930 | ||
5931 | Set = staticmethod(Set) | |
5932 | def Get(*args, **kwargs): | |
5933 | """ | |
5934 | Get() -> HelpProvider | |
5935 | ||
5936 | Return the current application-wide help provider. | |
5937 | """ | |
5938 | return _controls_.HelpProvider_Get(*args, **kwargs) | |
5939 | ||
5940 | Get = staticmethod(Get) | |
5941 | def GetHelp(*args, **kwargs): | |
5942 | """ | |
5943 | GetHelp(self, Window window) -> String | |
5944 | ||
5945 | Gets the help string for this window. Its interpretation is dependent | |
5946 | on the help provider except that empty string always means that no | |
5947 | help is associated with the window. | |
5948 | """ | |
5949 | return _controls_.HelpProvider_GetHelp(*args, **kwargs) | |
5950 | ||
5951 | def ShowHelp(*args, **kwargs): | |
5952 | """ | |
5953 | ShowHelp(self, Window window) -> bool | |
5954 | ||
5955 | Shows help for the given window. Uses GetHelp internally if | |
5956 | applicable. Returns True if it was done, or False if no help was | |
5957 | available for this window. | |
5958 | """ | |
5959 | return _controls_.HelpProvider_ShowHelp(*args, **kwargs) | |
5960 | ||
5961 | def AddHelp(*args, **kwargs): | |
5962 | """ | |
5963 | AddHelp(self, Window window, String text) | |
5964 | ||
5965 | Associates the text with the given window. | |
5966 | """ | |
5967 | return _controls_.HelpProvider_AddHelp(*args, **kwargs) | |
5968 | ||
5969 | def AddHelpById(*args, **kwargs): | |
5970 | """ | |
5971 | AddHelpById(self, int id, String text) | |
5972 | ||
5973 | This version associates the given text with all windows with this | |
5974 | id. May be used to set the same help string for all Cancel buttons in | |
5975 | the application, for example. | |
5976 | """ | |
5977 | return _controls_.HelpProvider_AddHelpById(*args, **kwargs) | |
5978 | ||
5979 | def RemoveHelp(*args, **kwargs): | |
5980 | """ | |
5981 | RemoveHelp(self, Window window) | |
5982 | ||
5983 | Removes the association between the window pointer and the help | |
5984 | text. This is called by the wx.Window destructor. Without this, the | |
5985 | table of help strings will fill up and when window pointers are | |
5986 | reused, the wrong help string will be found. | |
5987 | """ | |
5988 | return _controls_.HelpProvider_RemoveHelp(*args, **kwargs) | |
5989 | ||
5990 | def Destroy(*args, **kwargs): | |
5991 | """Destroy(self)""" | |
5992 | return _controls_.HelpProvider_Destroy(*args, **kwargs) | |
5993 | ||
5994 | ||
5995 | class HelpProviderPtr(HelpProvider): | |
5996 | def __init__(self, this): | |
5997 | self.this = this | |
5998 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5999 | self.__class__ = HelpProvider | |
6000 | _controls_.HelpProvider_swigregister(HelpProviderPtr) | |
6001 | ||
6002 | def HelpProvider_Set(*args, **kwargs): | |
6003 | """ | |
6004 | HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider | |
6005 | ||
6006 | Sset the current, application-wide help provider. Returns the previous | |
6007 | one. Unlike some other classes, the help provider is not created on | |
6008 | demand. This must be explicitly done by the application. | |
6009 | """ | |
6010 | return _controls_.HelpProvider_Set(*args, **kwargs) | |
6011 | ||
6012 | def HelpProvider_Get(*args, **kwargs): | |
6013 | """ | |
6014 | HelpProvider_Get() -> HelpProvider | |
6015 | ||
6016 | Return the current application-wide help provider. | |
6017 | """ | |
6018 | return _controls_.HelpProvider_Get(*args, **kwargs) | |
6019 | ||
6020 | class SimpleHelpProvider(HelpProvider): | |
6021 | """ | |
6022 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which | |
6023 | supports only plain text help strings, and shows the string associated | |
6024 | with the control (if any) in a tooltip. | |
6025 | """ | |
6026 | def __repr__(self): | |
6027 | return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
6028 | def __init__(self, *args, **kwargs): | |
6029 | """ | |
6030 | __init__(self) -> SimpleHelpProvider | |
6031 | ||
6032 | wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which | |
6033 | supports only plain text help strings, and shows the string associated | |
6034 | with the control (if any) in a tooltip. | |
6035 | """ | |
6036 | newobj = _controls_.new_SimpleHelpProvider(*args, **kwargs) | |
6037 | self.this = newobj.this | |
6038 | self.thisown = 1 | |
6039 | del newobj.thisown | |
6040 | ||
6041 | class SimpleHelpProviderPtr(SimpleHelpProvider): | |
6042 | def __init__(self, this): | |
6043 | self.this = this | |
6044 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6045 | self.__class__ = SimpleHelpProvider | |
6046 | _controls_.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr) | |
6047 | ||
6048 | #--------------------------------------------------------------------------- | |
6049 | ||
6050 | class DragImage(_core.Object): | |
6051 | def __repr__(self): | |
6052 | return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
6053 | def __init__(self, *args, **kwargs): | |
6054 | """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage""" | |
6055 | newobj = _controls_.new_DragImage(*args, **kwargs) | |
6056 | self.this = newobj.this | |
6057 | self.thisown = 1 | |
6058 | del newobj.thisown | |
6059 | def __del__(self, destroy=_controls_.delete_DragImage): | |
6060 | """__del__(self)""" | |
6061 | try: | |
6062 | if self.thisown: destroy(self) | |
6063 | except: pass | |
6064 | ||
6065 | def SetBackingBitmap(*args, **kwargs): | |
6066 | """SetBackingBitmap(self, Bitmap bitmap)""" | |
6067 | return _controls_.DragImage_SetBackingBitmap(*args, **kwargs) | |
6068 | ||
6069 | def BeginDrag(*args, **kwargs): | |
6070 | """ | |
6071 | BeginDrag(self, Point hotspot, Window window, bool fullScreen=False, | |
6072 | Rect rect=None) -> bool | |
6073 | """ | |
6074 | return _controls_.DragImage_BeginDrag(*args, **kwargs) | |
6075 | ||
6076 | def BeginDragBounded(*args, **kwargs): | |
6077 | """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool""" | |
6078 | return _controls_.DragImage_BeginDragBounded(*args, **kwargs) | |
6079 | ||
6080 | def EndDrag(*args, **kwargs): | |
6081 | """EndDrag(self) -> bool""" | |
6082 | return _controls_.DragImage_EndDrag(*args, **kwargs) | |
6083 | ||
6084 | def Move(*args, **kwargs): | |
6085 | """Move(self, Point pt) -> bool""" | |
6086 | return _controls_.DragImage_Move(*args, **kwargs) | |
6087 | ||
6088 | def Show(*args, **kwargs): | |
6089 | """Show(self) -> bool""" | |
6090 | return _controls_.DragImage_Show(*args, **kwargs) | |
6091 | ||
6092 | def Hide(*args, **kwargs): | |
6093 | """Hide(self) -> bool""" | |
6094 | return _controls_.DragImage_Hide(*args, **kwargs) | |
6095 | ||
6096 | def GetImageRect(*args, **kwargs): | |
6097 | """GetImageRect(self, Point pos) -> Rect""" | |
6098 | return _controls_.DragImage_GetImageRect(*args, **kwargs) | |
6099 | ||
6100 | def DoDrawImage(*args, **kwargs): | |
6101 | """DoDrawImage(self, DC dc, Point pos) -> bool""" | |
6102 | return _controls_.DragImage_DoDrawImage(*args, **kwargs) | |
6103 | ||
6104 | def UpdateBackingFromWindow(*args, **kwargs): | |
6105 | """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool""" | |
6106 | return _controls_.DragImage_UpdateBackingFromWindow(*args, **kwargs) | |
6107 | ||
6108 | def RedrawImage(*args, **kwargs): | |
6109 | """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool""" | |
6110 | return _controls_.DragImage_RedrawImage(*args, **kwargs) | |
6111 | ||
6112 | ||
6113 | class DragImagePtr(DragImage): | |
6114 | def __init__(self, this): | |
6115 | self.this = this | |
6116 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6117 | self.__class__ = DragImage | |
6118 | _controls_.DragImage_swigregister(DragImagePtr) | |
6119 | ||
6120 | def DragIcon(*args, **kwargs): | |
6121 | """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage""" | |
6122 | val = _controls_.new_DragIcon(*args, **kwargs) | |
6123 | val.thisown = 1 | |
6124 | return val | |
6125 | ||
6126 | def DragString(*args, **kwargs): | |
6127 | """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage""" | |
6128 | val = _controls_.new_DragString(*args, **kwargs) | |
6129 | val.thisown = 1 | |
6130 | return val | |
6131 | ||
6132 | def DragTreeItem(*args, **kwargs): | |
6133 | """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage""" | |
6134 | val = _controls_.new_DragTreeItem(*args, **kwargs) | |
6135 | val.thisown = 1 | |
6136 | return val | |
6137 | ||
6138 | def DragListItem(*args, **kwargs): | |
6139 | """DragListItem(ListCtrl listCtrl, long id) -> DragImage""" | |
6140 | val = _controls_.new_DragListItem(*args, **kwargs) | |
6141 | val.thisown = 1 | |
6142 | return val | |
6143 | ||
6144 |