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