1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 BU_LEFT
= _controls_
.BU_LEFT
11 BU_TOP
= _controls_
.BU_TOP
12 BU_RIGHT
= _controls_
.BU_RIGHT
13 BU_BOTTOM
= _controls_
.BU_BOTTOM
14 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
15 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
16 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
17 class Button(_core
.Control
):
19 A button is a control that contains a text string, and is one of the most
20 common elements of a GUI. It may be placed on a dialog box or panel, or
21 indeed almost any other window.
24 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
25 def __init__(self
, *args
, **kwargs
):
27 __init__(self, Window parent, int id=-1, String label=EmptyString,
28 Point pos=DefaultPosition, Size size=DefaultSize,
29 long style=0, Validator validator=DefaultValidator,
30 String name=ButtonNameStr) -> Button
32 Create and show a button. The preferred way to create standard
33 buttons is to use a standard ID and an empty label. In this case
34 wxWigets will automatically use a stock label that coresponds to the
35 ID given. In additon, the button will be decorated with stock icons
38 newobj
= _controls_
.new_Button(*args
, **kwargs
)
39 self
.this
= newobj
.this
42 self
._setOORInfo
(self
)
44 def Create(*args
, **kwargs
):
46 Create(self, Window parent, int id=-1, String label=EmptyString,
47 Point pos=DefaultPosition, Size size=DefaultSize,
48 long style=0, Validator validator=DefaultValidator,
49 String name=ButtonNameStr) -> bool
51 Acutally create the GUI Button for 2-phase creation.
53 return _controls_
.Button_Create(*args
, **kwargs
)
55 def SetDefault(*args
, **kwargs
):
59 This sets the button to be the default item for the panel or dialog box.
61 return _controls_
.Button_SetDefault(*args
, **kwargs
)
63 def GetDefaultSize(*args
, **kwargs
):
65 GetDefaultSize() -> Size
67 Returns the default button size for this platform.
69 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
71 GetDefaultSize
= staticmethod(GetDefaultSize
)
72 def GetClassDefaultAttributes(*args
, **kwargs
):
74 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
76 Get the default attributes for this class. This is useful if you want
77 to use the same font or colour in your own control as in a standard
78 control -- which is a much better idea than hard coding specific
79 colours or fonts which might look completely out of place on the
80 user's system, especially if it uses themes.
82 The variant parameter is only relevant under Mac currently and is
83 ignore under other platforms. Under Mac, it will change the size of
84 the returned font. See `wx.Window.SetWindowVariant` for more about
87 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
89 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
91 class ButtonPtr(Button
):
92 def __init__(self
, this
):
94 if not hasattr(self
,"thisown"): self
.thisown
= 0
95 self
.__class
__ = Button
96 _controls_
.Button_swigregister(ButtonPtr
)
97 cvar
= _controls_
.cvar
98 ButtonNameStr
= cvar
.ButtonNameStr
100 def PreButton(*args
, **kwargs
):
102 PreButton() -> Button
104 Precreate a Button for 2-phase creation.
106 val
= _controls_
.new_PreButton(*args
, **kwargs
)
110 def Button_GetDefaultSize(*args
, **kwargs
):
112 Button_GetDefaultSize() -> Size
114 Returns the default button size for this platform.
116 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
118 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
120 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
122 Get the default attributes for this class. This is useful if you want
123 to use the same font or colour in your own control as in a standard
124 control -- which is a much better idea than hard coding specific
125 colours or fonts which might look completely out of place on the
126 user's system, especially if it uses themes.
128 The variant parameter is only relevant under Mac currently and is
129 ignore under other platforms. Under Mac, it will change the size of
130 the returned font. See `wx.Window.SetWindowVariant` for more about
133 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
135 class BitmapButton(Button
):
137 A Button that contains a bitmap. A bitmap button can be supplied with a
138 single bitmap, and wxWidgets will draw all button states using this bitmap. If
139 the application needs more control, additional bitmaps for the selected state,
140 unpressed focused state, and greyed-out state may be supplied.
143 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
144 def __init__(self
, *args
, **kwargs
):
146 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
147 Point pos=DefaultPosition, Size size=DefaultSize,
148 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
149 String name=ButtonNameStr) -> BitmapButton
151 Create and show a button with a bitmap for the label.
153 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
154 self
.this
= newobj
.this
157 self
._setOORInfo
(self
)
159 def Create(*args
, **kwargs
):
161 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
162 Point pos=DefaultPosition, Size size=DefaultSize,
163 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
164 String name=ButtonNameStr) -> bool
166 Acutally create the GUI BitmapButton for 2-phase creation.
168 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
170 def GetBitmapLabel(*args
, **kwargs
):
172 GetBitmapLabel(self) -> Bitmap
174 Returns the label bitmap (the one passed to the constructor).
176 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
178 def GetBitmapDisabled(*args
, **kwargs
):
180 GetBitmapDisabled(self) -> Bitmap
182 Returns the bitmap for the disabled state.
184 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
186 def GetBitmapFocus(*args
, **kwargs
):
188 GetBitmapFocus(self) -> Bitmap
190 Returns the bitmap for the focused state.
192 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
194 def GetBitmapSelected(*args
, **kwargs
):
196 GetBitmapSelected(self) -> Bitmap
198 Returns the bitmap for the selected state.
200 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
202 def SetBitmapDisabled(*args
, **kwargs
):
204 SetBitmapDisabled(self, Bitmap bitmap)
206 Sets the bitmap for the disabled button appearance.
208 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
210 def SetBitmapFocus(*args
, **kwargs
):
212 SetBitmapFocus(self, Bitmap bitmap)
214 Sets the bitmap for the button appearance when it has the keyboard focus.
216 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
218 def SetBitmapSelected(*args
, **kwargs
):
220 SetBitmapSelected(self, Bitmap bitmap)
222 Sets the bitmap for the selected (depressed) button appearance.
224 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
226 def SetBitmapLabel(*args
, **kwargs
):
228 SetBitmapLabel(self, Bitmap bitmap)
230 Sets the bitmap label for the button. This is the bitmap used for the
231 unselected state, and for all other states if no other bitmaps are provided.
233 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
235 def SetMargins(*args
, **kwargs
):
236 """SetMargins(self, int x, int y)"""
237 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
239 def GetMarginX(*args
, **kwargs
):
240 """GetMarginX(self) -> int"""
241 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
243 def GetMarginY(*args
, **kwargs
):
244 """GetMarginY(self) -> int"""
245 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
248 class BitmapButtonPtr(BitmapButton
):
249 def __init__(self
, this
):
251 if not hasattr(self
,"thisown"): self
.thisown
= 0
252 self
.__class
__ = BitmapButton
253 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
255 def PreBitmapButton(*args
, **kwargs
):
257 PreBitmapButton() -> BitmapButton
259 Precreate a BitmapButton for 2-phase creation.
261 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
265 #---------------------------------------------------------------------------
267 CHK_2STATE
= _controls_
.CHK_2STATE
268 CHK_3STATE
= _controls_
.CHK_3STATE
269 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
270 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
271 CHK_CHECKED
= _controls_
.CHK_CHECKED
272 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
273 class CheckBox(_core
.Control
):
275 A checkbox is a labelled box which by default is either on (the
276 checkmark is visible) or off (no checkmark). Optionally (When the
277 wx.CHK_3STATE style flag is set) it can have a third state, called the
278 mixed or undetermined state. Often this is used as a "Does Not
282 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
283 def __init__(self
, *args
, **kwargs
):
285 __init__(self, Window parent, int id=-1, String label=EmptyString,
286 Point pos=DefaultPosition, Size size=DefaultSize,
287 long style=0, Validator validator=DefaultValidator,
288 String name=CheckBoxNameStr) -> CheckBox
290 Creates and shows a CheckBox control
292 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
293 self
.this
= newobj
.this
296 self
._setOORInfo
(self
)
298 def Create(*args
, **kwargs
):
300 Create(self, Window parent, int id=-1, String label=EmptyString,
301 Point pos=DefaultPosition, Size size=DefaultSize,
302 long style=0, Validator validator=DefaultValidator,
303 String name=CheckBoxNameStr) -> bool
305 Actually create the GUI CheckBox for 2-phase creation.
307 return _controls_
.CheckBox_Create(*args
, **kwargs
)
309 def GetValue(*args
, **kwargs
):
311 GetValue(self) -> bool
313 Gets the state of a 2-state CheckBox. Returns True if it is checked,
316 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
318 def IsChecked(*args
, **kwargs
):
320 IsChecked(self) -> bool
322 Similar to GetValue, but raises an exception if it is not a 2-state
325 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
327 def SetValue(*args
, **kwargs
):
329 SetValue(self, bool state)
331 Set the state of a 2-state CheckBox. Pass True for checked, False for
334 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
336 def Get3StateValue(*args
, **kwargs
):
338 Get3StateValue(self) -> int
340 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
341 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
342 the undetermined state. Raises an exceptiion when the function is
343 used with a 2-state CheckBox.
345 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
347 def Set3StateValue(*args
, **kwargs
):
349 Set3StateValue(self, int state)
351 Sets the CheckBox to the given state. The state parameter can be one
352 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
353 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
354 exception when the CheckBox is a 2-state checkbox and setting the
355 state to wx.CHK_UNDETERMINED.
357 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
359 def Is3State(*args
, **kwargs
):
361 Is3State(self) -> bool
363 Returns whether or not the CheckBox is a 3-state CheckBox.
365 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
367 def Is3rdStateAllowedForUser(*args
, **kwargs
):
369 Is3rdStateAllowedForUser(self) -> bool
371 Returns whether or not the user can set the CheckBox to the third
374 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
376 def GetClassDefaultAttributes(*args
, **kwargs
):
378 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
380 Get the default attributes for this class. This is useful if you want
381 to use the same font or colour in your own control as in a standard
382 control -- which is a much better idea than hard coding specific
383 colours or fonts which might look completely out of place on the
384 user's system, especially if it uses themes.
386 The variant parameter is only relevant under Mac currently and is
387 ignore under other platforms. Under Mac, it will change the size of
388 the returned font. See `wx.Window.SetWindowVariant` for more about
391 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
393 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
395 class CheckBoxPtr(CheckBox
):
396 def __init__(self
, this
):
398 if not hasattr(self
,"thisown"): self
.thisown
= 0
399 self
.__class
__ = CheckBox
400 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
401 CheckBoxNameStr
= cvar
.CheckBoxNameStr
403 def PreCheckBox(*args
, **kwargs
):
405 PreCheckBox() -> CheckBox
407 Precreate a CheckBox for 2-phase creation.
409 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
413 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
415 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
417 Get the default attributes for this class. This is useful if you want
418 to use the same font or colour in your own control as in a standard
419 control -- which is a much better idea than hard coding specific
420 colours or fonts which might look completely out of place on the
421 user's system, especially if it uses themes.
423 The variant parameter is only relevant under Mac currently and is
424 ignore under other platforms. Under Mac, it will change the size of
425 the returned font. See `wx.Window.SetWindowVariant` for more about
428 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
430 #---------------------------------------------------------------------------
432 class Choice(_core
.ControlWithItems
):
434 A Choice control is used to select one of a list of strings.
435 Unlike a `wx.ListBox`, only the selection is visible until the
436 user pulls down the menu of choices.
439 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
440 def __init__(self
, *args
, **kwargs
):
442 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
443 List choices=[], long style=0, Validator validator=DefaultValidator,
444 String name=ChoiceNameStr) -> Choice
446 Create and show a Choice control
448 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
449 self
.this
= newobj
.this
452 self
._setOORInfo
(self
)
454 def Create(*args
, **kwargs
):
456 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
457 List choices=[], long style=0, Validator validator=DefaultValidator,
458 String name=ChoiceNameStr) -> bool
460 Actually create the GUI Choice control for 2-phase creation
462 return _controls_
.Choice_Create(*args
, **kwargs
)
464 def SetSelection(*args
, **kwargs
):
466 SetSelection(self, int n)
468 Select the n'th item (zero based) in the list.
470 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
472 def SetStringSelection(*args
, **kwargs
):
474 SetStringSelection(self, String string) -> bool
476 Select the item with the specifed string
478 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
480 def SetString(*args
, **kwargs
):
482 SetString(self, int n, String string)
484 Set the label for the n'th item (zero based) in the list.
486 return _controls_
.Choice_SetString(*args
, **kwargs
)
488 Select
= SetSelection
489 def GetClassDefaultAttributes(*args
, **kwargs
):
491 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
493 Get the default attributes for this class. This is useful if you want
494 to use the same font or colour in your own control as in a standard
495 control -- which is a much better idea than hard coding specific
496 colours or fonts which might look completely out of place on the
497 user's system, especially if it uses themes.
499 The variant parameter is only relevant under Mac currently and is
500 ignore under other platforms. Under Mac, it will change the size of
501 the returned font. See `wx.Window.SetWindowVariant` for more about
504 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
506 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
508 class ChoicePtr(Choice
):
509 def __init__(self
, this
):
511 if not hasattr(self
,"thisown"): self
.thisown
= 0
512 self
.__class
__ = Choice
513 _controls_
.Choice_swigregister(ChoicePtr
)
514 ChoiceNameStr
= cvar
.ChoiceNameStr
516 def PreChoice(*args
, **kwargs
):
518 PreChoice() -> Choice
520 Precreate a Choice control for 2-phase creation.
522 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
526 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
528 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
530 Get the default attributes for this class. This is useful if you want
531 to use the same font or colour in your own control as in a standard
532 control -- which is a much better idea than hard coding specific
533 colours or fonts which might look completely out of place on the
534 user's system, especially if it uses themes.
536 The variant parameter is only relevant under Mac currently and is
537 ignore under other platforms. Under Mac, it will change the size of
538 the returned font. See `wx.Window.SetWindowVariant` for more about
541 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
543 #---------------------------------------------------------------------------
545 class ComboBox(_core
.Control
,_core
.ItemContainer
):
547 A combobox is like a combination of an edit control and a
548 listbox. It can be displayed as static list with editable or
549 read-only text field; or a drop-down list with text field.
551 A combobox permits a single selection only. Combobox items are
555 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
556 def __init__(self
, *args
, **kwargs
):
558 __init__(Window parent, int id, String value=EmptyString,
559 Point pos=DefaultPosition, Size size=DefaultSize,
560 List choices=[], long style=0, Validator validator=DefaultValidator,
561 String name=ComboBoxNameStr) -> ComboBox
563 Constructor, creates and shows a ComboBox control.
565 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
566 self
.this
= newobj
.this
569 self
._setOORInfo
(self
)
571 def Create(*args
, **kwargs
):
573 Create(Window parent, int id, String value=EmptyString,
574 Point pos=DefaultPosition, Size size=DefaultSize,
575 List choices=[], long style=0, Validator validator=DefaultValidator,
576 String name=ChoiceNameStr) -> bool
578 Actually create the GUI wxComboBox control for 2-phase creation
580 return _controls_
.ComboBox_Create(*args
, **kwargs
)
582 def GetValue(*args
, **kwargs
):
584 GetValue(self) -> String
586 Returns the current value in the combobox text field.
588 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
590 def SetValue(*args
, **kwargs
):
591 """SetValue(self, String value)"""
592 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
594 def Copy(*args
, **kwargs
):
598 Copies the selected text to the clipboard.
600 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
602 def Cut(*args
, **kwargs
):
606 Copies the selected text to the clipboard and removes the selection.
608 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
610 def Paste(*args
, **kwargs
):
614 Pastes text from the clipboard to the text field.
616 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
618 def SetInsertionPoint(*args
, **kwargs
):
620 SetInsertionPoint(self, long pos)
622 Sets the insertion point in the combobox text field.
624 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
626 def GetInsertionPoint(*args
, **kwargs
):
628 GetInsertionPoint(self) -> long
630 Returns the insertion point for the combobox's text field.
632 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
634 def GetLastPosition(*args
, **kwargs
):
636 GetLastPosition(self) -> long
638 Returns the last position in the combobox text field.
640 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
642 def Replace(*args
, **kwargs
):
644 Replace(self, long from, long to, String value)
646 Replaces the text between two positions with the given text, in the
649 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
651 def SetSelection(*args
, **kwargs
):
653 SetSelection(self, int n)
655 Sets the item at index 'n' to be the selected item.
657 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
659 def SetMark(*args
, **kwargs
):
661 SetMark(self, long from, long to)
663 Selects the text between the two positions in the combobox text field.
665 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
667 def SetStringSelection(*args
, **kwargs
):
669 SetStringSelection(self, String string) -> bool
671 Select the item with the specifed string
673 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
675 def SetString(*args
, **kwargs
):
677 SetString(self, int n, String string)
679 Set the label for the n'th item (zero based) in the list.
681 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
683 def SetEditable(*args
, **kwargs
):
684 """SetEditable(self, bool editable)"""
685 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
687 def SetInsertionPointEnd(*args
, **kwargs
):
689 SetInsertionPointEnd(self)
691 Sets the insertion point at the end of the combobox text field.
693 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
695 def Remove(*args
, **kwargs
):
697 Remove(self, long from, long to)
699 Removes the text between the two positions in the combobox text field.
701 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
703 def GetClassDefaultAttributes(*args
, **kwargs
):
705 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
707 Get the default attributes for this class. This is useful if you want
708 to use the same font or colour in your own control as in a standard
709 control -- which is a much better idea than hard coding specific
710 colours or fonts which might look completely out of place on the
711 user's system, especially if it uses themes.
713 The variant parameter is only relevant under Mac currently and is
714 ignore under other platforms. Under Mac, it will change the size of
715 the returned font. See `wx.Window.SetWindowVariant` for more about
718 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
720 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
722 class ComboBoxPtr(ComboBox
):
723 def __init__(self
, this
):
725 if not hasattr(self
,"thisown"): self
.thisown
= 0
726 self
.__class
__ = ComboBox
727 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
728 ComboBoxNameStr
= cvar
.ComboBoxNameStr
730 def PreComboBox(*args
, **kwargs
):
732 PreComboBox() -> ComboBox
734 Precreate a ComboBox control for 2-phase creation.
736 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
740 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
742 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
744 Get the default attributes for this class. This is useful if you want
745 to use the same font or colour in your own control as in a standard
746 control -- which is a much better idea than hard coding specific
747 colours or fonts which might look completely out of place on the
748 user's system, especially if it uses themes.
750 The variant parameter is only relevant under Mac currently and is
751 ignore under other platforms. Under Mac, it will change the size of
752 the returned font. See `wx.Window.SetWindowVariant` for more about
755 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
757 #---------------------------------------------------------------------------
759 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
760 GA_VERTICAL
= _controls_
.GA_VERTICAL
761 GA_SMOOTH
= _controls_
.GA_SMOOTH
762 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
763 class Gauge(_core
.Control
):
765 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
766 def __init__(self
, *args
, **kwargs
):
768 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
769 Size size=DefaultSize, long style=GA_HORIZONTAL,
770 Validator validator=DefaultValidator,
771 String name=GaugeNameStr) -> Gauge
773 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
774 self
.this
= newobj
.this
777 self
._setOORInfo
(self
)
779 def Create(*args
, **kwargs
):
781 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
782 Size size=DefaultSize, long style=GA_HORIZONTAL,
783 Validator validator=DefaultValidator,
784 String name=GaugeNameStr) -> bool
786 return _controls_
.Gauge_Create(*args
, **kwargs
)
788 def SetRange(*args
, **kwargs
):
789 """SetRange(self, int range)"""
790 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
792 def GetRange(*args
, **kwargs
):
793 """GetRange(self) -> int"""
794 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
796 def SetValue(*args
, **kwargs
):
797 """SetValue(self, int pos)"""
798 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
800 def GetValue(*args
, **kwargs
):
801 """GetValue(self) -> int"""
802 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
804 def IsVertical(*args
, **kwargs
):
805 """IsVertical(self) -> bool"""
806 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
808 def SetShadowWidth(*args
, **kwargs
):
809 """SetShadowWidth(self, int w)"""
810 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
812 def GetShadowWidth(*args
, **kwargs
):
813 """GetShadowWidth(self) -> int"""
814 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
816 def SetBezelFace(*args
, **kwargs
):
817 """SetBezelFace(self, int w)"""
818 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
820 def GetBezelFace(*args
, **kwargs
):
821 """GetBezelFace(self) -> int"""
822 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
824 def GetClassDefaultAttributes(*args
, **kwargs
):
826 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
828 Get the default attributes for this class. This is useful if you want
829 to use the same font or colour in your own control as in a standard
830 control -- which is a much better idea than hard coding specific
831 colours or fonts which might look completely out of place on the
832 user's system, especially if it uses themes.
834 The variant parameter is only relevant under Mac currently and is
835 ignore under other platforms. Under Mac, it will change the size of
836 the returned font. See `wx.Window.SetWindowVariant` for more about
839 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
841 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
843 class GaugePtr(Gauge
):
844 def __init__(self
, this
):
846 if not hasattr(self
,"thisown"): self
.thisown
= 0
847 self
.__class
__ = Gauge
848 _controls_
.Gauge_swigregister(GaugePtr
)
849 GaugeNameStr
= cvar
.GaugeNameStr
851 def PreGauge(*args
, **kwargs
):
852 """PreGauge() -> Gauge"""
853 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
857 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
859 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
861 Get the default attributes for this class. This is useful if you want
862 to use the same font or colour in your own control as in a standard
863 control -- which is a much better idea than hard coding specific
864 colours or fonts which might look completely out of place on the
865 user's system, especially if it uses themes.
867 The variant parameter is only relevant under Mac currently and is
868 ignore under other platforms. Under Mac, it will change the size of
869 the returned font. See `wx.Window.SetWindowVariant` for more about
872 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
874 #---------------------------------------------------------------------------
876 class StaticBox(_core
.Control
):
878 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
879 def __init__(self
, *args
, **kwargs
):
881 __init__(self, Window parent, int id=-1, String label=EmptyString,
882 Point pos=DefaultPosition, Size size=DefaultSize,
883 long style=0, String name=StaticBoxNameStr) -> StaticBox
885 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
886 self
.this
= newobj
.this
889 self
._setOORInfo
(self
)
891 def Create(*args
, **kwargs
):
893 Create(self, Window parent, int id=-1, String label=EmptyString,
894 Point pos=DefaultPosition, Size size=DefaultSize,
895 long style=0, String name=StaticBoxNameStr) -> bool
897 return _controls_
.StaticBox_Create(*args
, **kwargs
)
899 def GetClassDefaultAttributes(*args
, **kwargs
):
901 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
903 Get the default attributes for this class. This is useful if you want
904 to use the same font or colour in your own control as in a standard
905 control -- which is a much better idea than hard coding specific
906 colours or fonts which might look completely out of place on the
907 user's system, especially if it uses themes.
909 The variant parameter is only relevant under Mac currently and is
910 ignore under other platforms. Under Mac, it will change the size of
911 the returned font. See `wx.Window.SetWindowVariant` for more about
914 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
916 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
918 class StaticBoxPtr(StaticBox
):
919 def __init__(self
, this
):
921 if not hasattr(self
,"thisown"): self
.thisown
= 0
922 self
.__class
__ = StaticBox
923 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
924 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
925 StaticBoxNameStr
= cvar
.StaticBoxNameStr
926 StaticTextNameStr
= cvar
.StaticTextNameStr
928 def PreStaticBox(*args
, **kwargs
):
929 """PreStaticBox() -> StaticBox"""
930 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
934 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
936 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
938 Get the default attributes for this class. This is useful if you want
939 to use the same font or colour in your own control as in a standard
940 control -- which is a much better idea than hard coding specific
941 colours or fonts which might look completely out of place on the
942 user's system, especially if it uses themes.
944 The variant parameter is only relevant under Mac currently and is
945 ignore under other platforms. Under Mac, it will change the size of
946 the returned font. See `wx.Window.SetWindowVariant` for more about
949 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
951 #---------------------------------------------------------------------------
953 class StaticLine(_core
.Control
):
955 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
956 def __init__(self
, *args
, **kwargs
):
958 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
959 Size size=DefaultSize, long style=LI_HORIZONTAL,
960 String name=StaticTextNameStr) -> StaticLine
962 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
963 self
.this
= newobj
.this
966 self
._setOORInfo
(self
)
968 def Create(*args
, **kwargs
):
970 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
971 Size size=DefaultSize, long style=LI_HORIZONTAL,
972 String name=StaticTextNameStr) -> bool
974 return _controls_
.StaticLine_Create(*args
, **kwargs
)
976 def IsVertical(*args
, **kwargs
):
977 """IsVertical(self) -> bool"""
978 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
980 def GetDefaultSize(*args
, **kwargs
):
981 """GetDefaultSize() -> int"""
982 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
984 GetDefaultSize
= staticmethod(GetDefaultSize
)
985 def GetClassDefaultAttributes(*args
, **kwargs
):
987 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
989 Get the default attributes for this class. This is useful if you want
990 to use the same font or colour in your own control as in a standard
991 control -- which is a much better idea than hard coding specific
992 colours or fonts which might look completely out of place on the
993 user's system, especially if it uses themes.
995 The variant parameter is only relevant under Mac currently and is
996 ignore under other platforms. Under Mac, it will change the size of
997 the returned font. See `wx.Window.SetWindowVariant` for more about
1000 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1002 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1004 class StaticLinePtr(StaticLine
):
1005 def __init__(self
, this
):
1007 if not hasattr(self
,"thisown"): self
.thisown
= 0
1008 self
.__class
__ = StaticLine
1009 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1011 def PreStaticLine(*args
, **kwargs
):
1012 """PreStaticLine() -> StaticLine"""
1013 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1017 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1018 """StaticLine_GetDefaultSize() -> int"""
1019 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1021 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1023 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1025 Get the default attributes for this class. This is useful if you want
1026 to use the same font or colour in your own control as in a standard
1027 control -- which is a much better idea than hard coding specific
1028 colours or fonts which might look completely out of place on the
1029 user's system, especially if it uses themes.
1031 The variant parameter is only relevant under Mac currently and is
1032 ignore under other platforms. Under Mac, it will change the size of
1033 the returned font. See `wx.Window.SetWindowVariant` for more about
1036 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1038 #---------------------------------------------------------------------------
1040 class StaticText(_core
.Control
):
1042 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1043 def __init__(self
, *args
, **kwargs
):
1045 __init__(self, Window parent, int id=-1, String label=EmptyString,
1046 Point pos=DefaultPosition, Size size=DefaultSize,
1047 long style=0, String name=StaticTextNameStr) -> StaticText
1049 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1050 self
.this
= newobj
.this
1053 self
._setOORInfo
(self
)
1055 def Create(*args
, **kwargs
):
1057 Create(self, Window parent, int id=-1, String label=EmptyString,
1058 Point pos=DefaultPosition, Size size=DefaultSize,
1059 long style=0, String name=StaticTextNameStr) -> bool
1061 return _controls_
.StaticText_Create(*args
, **kwargs
)
1063 def GetClassDefaultAttributes(*args
, **kwargs
):
1065 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1067 Get the default attributes for this class. This is useful if you want
1068 to use the same font or colour in your own control as in a standard
1069 control -- which is a much better idea than hard coding specific
1070 colours or fonts which might look completely out of place on the
1071 user's system, especially if it uses themes.
1073 The variant parameter is only relevant under Mac currently and is
1074 ignore under other platforms. Under Mac, it will change the size of
1075 the returned font. See `wx.Window.SetWindowVariant` for more about
1078 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1080 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1082 class StaticTextPtr(StaticText
):
1083 def __init__(self
, this
):
1085 if not hasattr(self
,"thisown"): self
.thisown
= 0
1086 self
.__class
__ = StaticText
1087 _controls_
.StaticText_swigregister(StaticTextPtr
)
1089 def PreStaticText(*args
, **kwargs
):
1090 """PreStaticText() -> StaticText"""
1091 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1095 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1097 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1099 Get the default attributes for this class. This is useful if you want
1100 to use the same font or colour in your own control as in a standard
1101 control -- which is a much better idea than hard coding specific
1102 colours or fonts which might look completely out of place on the
1103 user's system, especially if it uses themes.
1105 The variant parameter is only relevant under Mac currently and is
1106 ignore under other platforms. Under Mac, it will change the size of
1107 the returned font. See `wx.Window.SetWindowVariant` for more about
1110 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1112 #---------------------------------------------------------------------------
1114 class StaticBitmap(_core
.Control
):
1116 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1117 def __init__(self
, *args
, **kwargs
):
1119 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1120 Point pos=DefaultPosition, Size size=DefaultSize,
1121 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1123 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1124 self
.this
= newobj
.this
1127 self
._setOORInfo
(self
)
1129 def Create(*args
, **kwargs
):
1131 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1132 Point pos=DefaultPosition, Size size=DefaultSize,
1133 long style=0, String name=StaticBitmapNameStr) -> bool
1135 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1137 def GetBitmap(*args
, **kwargs
):
1138 """GetBitmap(self) -> Bitmap"""
1139 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1141 def SetBitmap(*args
, **kwargs
):
1142 """SetBitmap(self, Bitmap bitmap)"""
1143 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1145 def SetIcon(*args
, **kwargs
):
1146 """SetIcon(self, Icon icon)"""
1147 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1149 def GetClassDefaultAttributes(*args
, **kwargs
):
1151 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1153 Get the default attributes for this class. This is useful if you want
1154 to use the same font or colour in your own control as in a standard
1155 control -- which is a much better idea than hard coding specific
1156 colours or fonts which might look completely out of place on the
1157 user's system, especially if it uses themes.
1159 The variant parameter is only relevant under Mac currently and is
1160 ignore under other platforms. Under Mac, it will change the size of
1161 the returned font. See `wx.Window.SetWindowVariant` for more about
1164 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1166 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1168 class StaticBitmapPtr(StaticBitmap
):
1169 def __init__(self
, this
):
1171 if not hasattr(self
,"thisown"): self
.thisown
= 0
1172 self
.__class
__ = StaticBitmap
1173 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1175 def PreStaticBitmap(*args
, **kwargs
):
1176 """PreStaticBitmap() -> StaticBitmap"""
1177 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1181 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1183 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1185 Get the default attributes for this class. This is useful if you want
1186 to use the same font or colour in your own control as in a standard
1187 control -- which is a much better idea than hard coding specific
1188 colours or fonts which might look completely out of place on the
1189 user's system, especially if it uses themes.
1191 The variant parameter is only relevant under Mac currently and is
1192 ignore under other platforms. Under Mac, it will change the size of
1193 the returned font. See `wx.Window.SetWindowVariant` for more about
1196 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1198 #---------------------------------------------------------------------------
1200 class ListBox(_core
.ControlWithItems
):
1202 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1203 def __init__(self
, *args
, **kwargs
):
1205 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1206 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1207 long style=0, Validator validator=DefaultValidator,
1208 String name=ListBoxNameStr) -> ListBox
1210 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1211 self
.this
= newobj
.this
1214 self
._setOORInfo
(self
)
1216 def Create(*args
, **kwargs
):
1218 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1219 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1220 long style=0, Validator validator=DefaultValidator,
1221 String name=ListBoxNameStr) -> bool
1223 return _controls_
.ListBox_Create(*args
, **kwargs
)
1225 def Insert(*args
, **kwargs
):
1227 Insert(self, String item, int pos, PyObject clientData=None)
1229 Insert an item into the control before the item at the ``pos`` index,
1230 optionally associating some data object with the item.
1232 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1234 def InsertItems(*args
, **kwargs
):
1235 """InsertItems(self, wxArrayString items, int pos)"""
1236 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1238 def Set(*args
, **kwargs
):
1239 """Set(self, wxArrayString items)"""
1240 return _controls_
.ListBox_Set(*args
, **kwargs
)
1242 def IsSelected(*args
, **kwargs
):
1243 """IsSelected(self, int n) -> bool"""
1244 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1246 def SetSelection(*args
, **kwargs
):
1247 """SetSelection(self, int n, bool select=True)"""
1248 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1250 def Select(*args
, **kwargs
):
1254 Sets the item at index 'n' to be the selected item.
1256 return _controls_
.ListBox_Select(*args
, **kwargs
)
1258 def Deselect(*args
, **kwargs
):
1259 """Deselect(self, int n)"""
1260 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1262 def DeselectAll(*args
, **kwargs
):
1263 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1264 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1266 def SetStringSelection(*args
, **kwargs
):
1267 """SetStringSelection(self, String s, bool select=True) -> bool"""
1268 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1270 def GetSelections(*args
, **kwargs
):
1271 """GetSelections(self) -> PyObject"""
1272 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1274 def SetFirstItem(*args
, **kwargs
):
1275 """SetFirstItem(self, int n)"""
1276 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1278 def SetFirstItemStr(*args
, **kwargs
):
1279 """SetFirstItemStr(self, String s)"""
1280 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1282 def EnsureVisible(*args
, **kwargs
):
1283 """EnsureVisible(self, int n)"""
1284 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1286 def AppendAndEnsureVisible(*args
, **kwargs
):
1287 """AppendAndEnsureVisible(self, String s)"""
1288 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1290 def IsSorted(*args
, **kwargs
):
1291 """IsSorted(self) -> bool"""
1292 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1294 def SetItemForegroundColour(*args
, **kwargs
):
1295 """SetItemForegroundColour(self, int item, Colour c)"""
1296 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1298 def SetItemBackgroundColour(*args
, **kwargs
):
1299 """SetItemBackgroundColour(self, int item, Colour c)"""
1300 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1302 def SetItemFont(*args
, **kwargs
):
1303 """SetItemFont(self, int item, Font f)"""
1304 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1306 def GetClassDefaultAttributes(*args
, **kwargs
):
1308 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1310 Get the default attributes for this class. This is useful if you want
1311 to use the same font or colour in your own control as in a standard
1312 control -- which is a much better idea than hard coding specific
1313 colours or fonts which might look completely out of place on the
1314 user's system, especially if it uses themes.
1316 The variant parameter is only relevant under Mac currently and is
1317 ignore under other platforms. Under Mac, it will change the size of
1318 the returned font. See `wx.Window.SetWindowVariant` for more about
1321 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1323 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1325 class ListBoxPtr(ListBox
):
1326 def __init__(self
, this
):
1328 if not hasattr(self
,"thisown"): self
.thisown
= 0
1329 self
.__class
__ = ListBox
1330 _controls_
.ListBox_swigregister(ListBoxPtr
)
1331 ListBoxNameStr
= cvar
.ListBoxNameStr
1333 def PreListBox(*args
, **kwargs
):
1334 """PreListBox() -> ListBox"""
1335 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1339 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1341 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1343 Get the default attributes for this class. This is useful if you want
1344 to use the same font or colour in your own control as in a standard
1345 control -- which is a much better idea than hard coding specific
1346 colours or fonts which might look completely out of place on the
1347 user's system, especially if it uses themes.
1349 The variant parameter is only relevant under Mac currently and is
1350 ignore under other platforms. Under Mac, it will change the size of
1351 the returned font. See `wx.Window.SetWindowVariant` for more about
1354 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1356 #---------------------------------------------------------------------------
1358 class CheckListBox(ListBox
):
1360 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1361 def __init__(self
, *args
, **kwargs
):
1363 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1364 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1365 long style=0, Validator validator=DefaultValidator,
1366 String name=ListBoxNameStr) -> CheckListBox
1368 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1369 self
.this
= newobj
.this
1372 self
._setOORInfo
(self
)
1374 def Create(*args
, **kwargs
):
1376 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1377 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1378 long style=0, Validator validator=DefaultValidator,
1379 String name=ListBoxNameStr) -> bool
1381 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1383 def IsChecked(*args
, **kwargs
):
1384 """IsChecked(self, int index) -> bool"""
1385 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1387 def Check(*args
, **kwargs
):
1388 """Check(self, int index, int check=True)"""
1389 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1391 def HitTest(*args
, **kwargs
):
1393 HitTest(self, Point pt) -> int
1395 Test where the given (in client coords) point lies
1397 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1399 def HitTestXY(*args
, **kwargs
):
1401 HitTestXY(self, int x, int y) -> int
1403 Test where the given (in client coords) point lies
1405 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1408 class CheckListBoxPtr(CheckListBox
):
1409 def __init__(self
, this
):
1411 if not hasattr(self
,"thisown"): self
.thisown
= 0
1412 self
.__class
__ = CheckListBox
1413 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1415 def PreCheckListBox(*args
, **kwargs
):
1416 """PreCheckListBox() -> CheckListBox"""
1417 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1421 #---------------------------------------------------------------------------
1423 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1424 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1425 TE_READONLY
= _controls_
.TE_READONLY
1426 TE_MULTILINE
= _controls_
.TE_MULTILINE
1427 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1428 TE_LEFT
= _controls_
.TE_LEFT
1429 TE_CENTER
= _controls_
.TE_CENTER
1430 TE_RIGHT
= _controls_
.TE_RIGHT
1431 TE_CENTRE
= _controls_
.TE_CENTRE
1432 TE_RICH
= _controls_
.TE_RICH
1433 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1434 TE_PASSWORD
= _controls_
.TE_PASSWORD
1435 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1436 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1437 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1438 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1439 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1440 TE_RICH2
= _controls_
.TE_RICH2
1441 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1442 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1443 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1444 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1445 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1446 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1447 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1448 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1449 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1450 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1451 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1452 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1453 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1454 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1455 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1456 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1457 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1458 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1459 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1460 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1461 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1462 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1463 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1464 class TextAttr(object):
1466 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1467 def __init__(self
, *args
, **kwargs
):
1469 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1470 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1472 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1473 self
.this
= newobj
.this
1476 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1479 if self
.thisown
: destroy(self
)
1482 def Init(*args
, **kwargs
):
1484 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1486 def SetTextColour(*args
, **kwargs
):
1487 """SetTextColour(self, Colour colText)"""
1488 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1490 def SetBackgroundColour(*args
, **kwargs
):
1491 """SetBackgroundColour(self, Colour colBack)"""
1492 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1494 def SetFont(*args
, **kwargs
):
1495 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1496 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1498 def SetAlignment(*args
, **kwargs
):
1499 """SetAlignment(self, int alignment)"""
1500 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1502 def SetTabs(*args
, **kwargs
):
1503 """SetTabs(self, wxArrayInt tabs)"""
1504 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1506 def SetLeftIndent(*args
, **kwargs
):
1507 """SetLeftIndent(self, int indent, int subIndent=0)"""
1508 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1510 def SetRightIndent(*args
, **kwargs
):
1511 """SetRightIndent(self, int indent)"""
1512 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1514 def SetFlags(*args
, **kwargs
):
1515 """SetFlags(self, long flags)"""
1516 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1518 def HasTextColour(*args
, **kwargs
):
1519 """HasTextColour(self) -> bool"""
1520 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1522 def HasBackgroundColour(*args
, **kwargs
):
1523 """HasBackgroundColour(self) -> bool"""
1524 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1526 def HasFont(*args
, **kwargs
):
1527 """HasFont(self) -> bool"""
1528 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1530 def HasAlignment(*args
, **kwargs
):
1531 """HasAlignment(self) -> bool"""
1532 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1534 def HasTabs(*args
, **kwargs
):
1535 """HasTabs(self) -> bool"""
1536 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1538 def HasLeftIndent(*args
, **kwargs
):
1539 """HasLeftIndent(self) -> bool"""
1540 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1542 def HasRightIndent(*args
, **kwargs
):
1543 """HasRightIndent(self) -> bool"""
1544 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1546 def HasFlag(*args
, **kwargs
):
1547 """HasFlag(self, long flag) -> bool"""
1548 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1550 def GetTextColour(*args
, **kwargs
):
1551 """GetTextColour(self) -> Colour"""
1552 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1554 def GetBackgroundColour(*args
, **kwargs
):
1555 """GetBackgroundColour(self) -> Colour"""
1556 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1558 def GetFont(*args
, **kwargs
):
1559 """GetFont(self) -> Font"""
1560 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1562 def GetAlignment(*args
, **kwargs
):
1563 """GetAlignment(self) -> int"""
1564 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1566 def GetTabs(*args
, **kwargs
):
1567 """GetTabs(self) -> wxArrayInt"""
1568 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1570 def GetLeftIndent(*args
, **kwargs
):
1571 """GetLeftIndent(self) -> long"""
1572 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1574 def GetLeftSubIndent(*args
, **kwargs
):
1575 """GetLeftSubIndent(self) -> long"""
1576 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1578 def GetRightIndent(*args
, **kwargs
):
1579 """GetRightIndent(self) -> long"""
1580 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1582 def GetFlags(*args
, **kwargs
):
1583 """GetFlags(self) -> long"""
1584 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1586 def IsDefault(*args
, **kwargs
):
1587 """IsDefault(self) -> bool"""
1588 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1590 def Combine(*args
, **kwargs
):
1591 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1592 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1594 Combine
= staticmethod(Combine
)
1596 class TextAttrPtr(TextAttr
):
1597 def __init__(self
, this
):
1599 if not hasattr(self
,"thisown"): self
.thisown
= 0
1600 self
.__class
__ = TextAttr
1601 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1602 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1604 def TextAttr_Combine(*args
, **kwargs
):
1605 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1606 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1608 class TextCtrl(_core
.Control
):
1610 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1611 def __init__(self
, *args
, **kwargs
):
1613 __init__(self, Window parent, int id=-1, String value=EmptyString,
1614 Point pos=DefaultPosition, Size size=DefaultSize,
1615 long style=0, Validator validator=DefaultValidator,
1616 String name=TextCtrlNameStr) -> TextCtrl
1618 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1619 self
.this
= newobj
.this
1622 self
._setOORInfo
(self
)
1624 def Create(*args
, **kwargs
):
1626 Create(self, Window parent, int id=-1, String value=EmptyString,
1627 Point pos=DefaultPosition, Size size=DefaultSize,
1628 long style=0, Validator validator=DefaultValidator,
1629 String name=TextCtrlNameStr) -> bool
1631 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1633 def GetValue(*args
, **kwargs
):
1634 """GetValue(self) -> String"""
1635 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1637 def SetValue(*args
, **kwargs
):
1638 """SetValue(self, String value)"""
1639 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1641 def GetRange(*args
, **kwargs
):
1642 """GetRange(self, long from, long to) -> String"""
1643 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1645 def GetLineLength(*args
, **kwargs
):
1646 """GetLineLength(self, long lineNo) -> int"""
1647 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1649 def GetLineText(*args
, **kwargs
):
1650 """GetLineText(self, long lineNo) -> String"""
1651 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1653 def GetNumberOfLines(*args
, **kwargs
):
1654 """GetNumberOfLines(self) -> int"""
1655 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1657 def IsModified(*args
, **kwargs
):
1658 """IsModified(self) -> bool"""
1659 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1661 def IsEditable(*args
, **kwargs
):
1662 """IsEditable(self) -> bool"""
1663 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1665 def IsSingleLine(*args
, **kwargs
):
1666 """IsSingleLine(self) -> bool"""
1667 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1669 def IsMultiLine(*args
, **kwargs
):
1670 """IsMultiLine(self) -> bool"""
1671 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1673 def GetSelection(*args
, **kwargs
):
1675 GetSelection() -> (from, to)
1677 If the return values from and to are the same, there is no selection.
1679 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1681 def GetStringSelection(*args
, **kwargs
):
1682 """GetStringSelection(self) -> String"""
1683 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1685 def Clear(*args
, **kwargs
):
1687 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1689 def Replace(*args
, **kwargs
):
1690 """Replace(self, long from, long to, String value)"""
1691 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1693 def Remove(*args
, **kwargs
):
1694 """Remove(self, long from, long to)"""
1695 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1697 def LoadFile(*args
, **kwargs
):
1698 """LoadFile(self, String file) -> bool"""
1699 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1701 def SaveFile(*args
, **kwargs
):
1702 """SaveFile(self, String file=EmptyString) -> bool"""
1703 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1705 def MarkDirty(*args
, **kwargs
):
1706 """MarkDirty(self)"""
1707 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1709 def DiscardEdits(*args
, **kwargs
):
1710 """DiscardEdits(self)"""
1711 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1713 def SetMaxLength(*args
, **kwargs
):
1714 """SetMaxLength(self, unsigned long len)"""
1715 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1717 def WriteText(*args
, **kwargs
):
1718 """WriteText(self, String text)"""
1719 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1721 def AppendText(*args
, **kwargs
):
1722 """AppendText(self, String text)"""
1723 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1725 def EmulateKeyPress(*args
, **kwargs
):
1726 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1727 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1729 def SetStyle(*args
, **kwargs
):
1730 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1731 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1733 def GetStyle(*args
, **kwargs
):
1734 """GetStyle(self, long position, TextAttr style) -> bool"""
1735 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1737 def SetDefaultStyle(*args
, **kwargs
):
1738 """SetDefaultStyle(self, TextAttr style) -> bool"""
1739 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1741 def GetDefaultStyle(*args
, **kwargs
):
1742 """GetDefaultStyle(self) -> TextAttr"""
1743 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1745 def XYToPosition(*args
, **kwargs
):
1746 """XYToPosition(self, long x, long y) -> long"""
1747 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1749 def PositionToXY(*args
, **kwargs
):
1750 """PositionToXY(long pos) -> (x, y)"""
1751 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1753 def ShowPosition(*args
, **kwargs
):
1754 """ShowPosition(self, long pos)"""
1755 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1757 def HitTest(*args
, **kwargs
):
1759 HitTest(Point pt) -> (result, row, col)
1761 Find the row, col coresponding to the character at the point given in
1762 pixels. NB: pt is in device coords but is not adjusted for the client
1763 area origin nor scrolling.
1765 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1767 def HitTestPos(*args
, **kwargs
):
1769 HitTestPos(Point pt) -> (result, position)
1771 Find the character position in the text coresponding to the point
1772 given in pixels. NB: pt is in device coords but is not adjusted for
1773 the client area origin nor scrolling.
1775 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1777 def Copy(*args
, **kwargs
):
1779 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1781 def Cut(*args
, **kwargs
):
1783 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1785 def Paste(*args
, **kwargs
):
1787 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1789 def CanCopy(*args
, **kwargs
):
1790 """CanCopy(self) -> bool"""
1791 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1793 def CanCut(*args
, **kwargs
):
1794 """CanCut(self) -> bool"""
1795 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1797 def CanPaste(*args
, **kwargs
):
1798 """CanPaste(self) -> bool"""
1799 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1801 def Undo(*args
, **kwargs
):
1803 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1805 def Redo(*args
, **kwargs
):
1807 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1809 def CanUndo(*args
, **kwargs
):
1810 """CanUndo(self) -> bool"""
1811 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1813 def CanRedo(*args
, **kwargs
):
1814 """CanRedo(self) -> bool"""
1815 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1817 def SetInsertionPoint(*args
, **kwargs
):
1818 """SetInsertionPoint(self, long pos)"""
1819 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1821 def SetInsertionPointEnd(*args
, **kwargs
):
1822 """SetInsertionPointEnd(self)"""
1823 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1825 def GetInsertionPoint(*args
, **kwargs
):
1826 """GetInsertionPoint(self) -> long"""
1827 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1829 def GetLastPosition(*args
, **kwargs
):
1830 """GetLastPosition(self) -> long"""
1831 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1833 def SetSelection(*args
, **kwargs
):
1834 """SetSelection(self, long from, long to)"""
1835 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1837 def SelectAll(*args
, **kwargs
):
1838 """SelectAll(self)"""
1839 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1841 def SetEditable(*args
, **kwargs
):
1842 """SetEditable(self, bool editable)"""
1843 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1845 def write(*args
, **kwargs
):
1846 """write(self, String text)"""
1847 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1849 def GetString(*args
, **kwargs
):
1850 """GetString(self, long from, long to) -> String"""
1851 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1853 def GetClassDefaultAttributes(*args
, **kwargs
):
1855 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1857 Get the default attributes for this class. This is useful if you want
1858 to use the same font or colour in your own control as in a standard
1859 control -- which is a much better idea than hard coding specific
1860 colours or fonts which might look completely out of place on the
1861 user's system, especially if it uses themes.
1863 The variant parameter is only relevant under Mac currently and is
1864 ignore under other platforms. Under Mac, it will change the size of
1865 the returned font. See `wx.Window.SetWindowVariant` for more about
1868 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1870 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1872 class TextCtrlPtr(TextCtrl
):
1873 def __init__(self
, this
):
1875 if not hasattr(self
,"thisown"): self
.thisown
= 0
1876 self
.__class
__ = TextCtrl
1877 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
1879 def PreTextCtrl(*args
, **kwargs
):
1880 """PreTextCtrl() -> TextCtrl"""
1881 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
1885 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
1887 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1889 Get the default attributes for this class. This is useful if you want
1890 to use the same font or colour in your own control as in a standard
1891 control -- which is a much better idea than hard coding specific
1892 colours or fonts which might look completely out of place on the
1893 user's system, especially if it uses themes.
1895 The variant parameter is only relevant under Mac currently and is
1896 ignore under other platforms. Under Mac, it will change the size of
1897 the returned font. See `wx.Window.SetWindowVariant` for more about
1900 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1902 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
1903 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
1904 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
1905 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
1906 class TextUrlEvent(_core
.CommandEvent
):
1908 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1909 def __init__(self
, *args
, **kwargs
):
1910 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
1911 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
1912 self
.this
= newobj
.this
1915 def GetMouseEvent(*args
, **kwargs
):
1916 """GetMouseEvent(self) -> MouseEvent"""
1917 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
1919 def GetURLStart(*args
, **kwargs
):
1920 """GetURLStart(self) -> long"""
1921 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
1923 def GetURLEnd(*args
, **kwargs
):
1924 """GetURLEnd(self) -> long"""
1925 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
1928 class TextUrlEventPtr(TextUrlEvent
):
1929 def __init__(self
, this
):
1931 if not hasattr(self
,"thisown"): self
.thisown
= 0
1932 self
.__class
__ = TextUrlEvent
1933 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
1935 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
1936 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
1937 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
1938 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
1940 #---------------------------------------------------------------------------
1942 class ScrollBar(_core
.Control
):
1944 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1945 def __init__(self
, *args
, **kwargs
):
1947 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1948 Size size=DefaultSize, long style=SB_HORIZONTAL,
1949 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
1951 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
1952 self
.this
= newobj
.this
1955 self
._setOORInfo
(self
)
1957 def Create(*args
, **kwargs
):
1959 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1960 Size size=DefaultSize, long style=SB_HORIZONTAL,
1961 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
1963 Do the 2nd phase and create the GUI control.
1965 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
1967 def GetThumbPosition(*args
, **kwargs
):
1968 """GetThumbPosition(self) -> int"""
1969 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
1971 def GetThumbSize(*args
, **kwargs
):
1972 """GetThumbSize(self) -> int"""
1973 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
1975 GetThumbLength
= GetThumbSize
1976 def GetPageSize(*args
, **kwargs
):
1977 """GetPageSize(self) -> int"""
1978 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
1980 def GetRange(*args
, **kwargs
):
1981 """GetRange(self) -> int"""
1982 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
1984 def IsVertical(*args
, **kwargs
):
1985 """IsVertical(self) -> bool"""
1986 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
1988 def SetThumbPosition(*args
, **kwargs
):
1989 """SetThumbPosition(self, int viewStart)"""
1990 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
1992 def SetScrollbar(*args
, **kwargs
):
1994 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
1997 Sets the scrollbar properties of a built-in scrollbar.
1999 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2001 def GetClassDefaultAttributes(*args
, **kwargs
):
2003 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2005 Get the default attributes for this class. This is useful if you want
2006 to use the same font or colour in your own control as in a standard
2007 control -- which is a much better idea than hard coding specific
2008 colours or fonts which might look completely out of place on the
2009 user's system, especially if it uses themes.
2011 The variant parameter is only relevant under Mac currently and is
2012 ignore under other platforms. Under Mac, it will change the size of
2013 the returned font. See `wx.Window.SetWindowVariant` for more about
2016 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2018 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2020 class ScrollBarPtr(ScrollBar
):
2021 def __init__(self
, this
):
2023 if not hasattr(self
,"thisown"): self
.thisown
= 0
2024 self
.__class
__ = ScrollBar
2025 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2026 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2028 def PreScrollBar(*args
, **kwargs
):
2029 """PreScrollBar() -> ScrollBar"""
2030 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2034 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2036 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2038 Get the default attributes for this class. This is useful if you want
2039 to use the same font or colour in your own control as in a standard
2040 control -- which is a much better idea than hard coding specific
2041 colours or fonts which might look completely out of place on the
2042 user's system, especially if it uses themes.
2044 The variant parameter is only relevant under Mac currently and is
2045 ignore under other platforms. Under Mac, it will change the size of
2046 the returned font. See `wx.Window.SetWindowVariant` for more about
2049 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2051 #---------------------------------------------------------------------------
2053 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2054 SP_VERTICAL
= _controls_
.SP_VERTICAL
2055 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2056 SP_WRAP
= _controls_
.SP_WRAP
2057 class SpinButton(_core
.Control
):
2059 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2060 def __init__(self
, *args
, **kwargs
):
2062 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2063 Size size=DefaultSize, long style=SP_HORIZONTAL,
2064 String name=SPIN_BUTTON_NAME) -> SpinButton
2066 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2067 self
.this
= newobj
.this
2070 self
._setOORInfo
(self
)
2072 def Create(*args
, **kwargs
):
2074 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2075 Size size=DefaultSize, long style=SP_HORIZONTAL,
2076 String name=SPIN_BUTTON_NAME) -> bool
2078 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2080 def GetValue(*args
, **kwargs
):
2081 """GetValue(self) -> int"""
2082 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2084 def GetMin(*args
, **kwargs
):
2085 """GetMin(self) -> int"""
2086 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2088 def GetMax(*args
, **kwargs
):
2089 """GetMax(self) -> int"""
2090 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2092 def SetValue(*args
, **kwargs
):
2093 """SetValue(self, int val)"""
2094 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2096 def SetMin(*args
, **kwargs
):
2097 """SetMin(self, int minVal)"""
2098 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2100 def SetMax(*args
, **kwargs
):
2101 """SetMax(self, int maxVal)"""
2102 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2104 def SetRange(*args
, **kwargs
):
2105 """SetRange(self, int minVal, int maxVal)"""
2106 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2108 def IsVertical(*args
, **kwargs
):
2109 """IsVertical(self) -> bool"""
2110 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2112 def GetClassDefaultAttributes(*args
, **kwargs
):
2114 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2116 Get the default attributes for this class. This is useful if you want
2117 to use the same font or colour in your own control as in a standard
2118 control -- which is a much better idea than hard coding specific
2119 colours or fonts which might look completely out of place on the
2120 user's system, especially if it uses themes.
2122 The variant parameter is only relevant under Mac currently and is
2123 ignore under other platforms. Under Mac, it will change the size of
2124 the returned font. See `wx.Window.SetWindowVariant` for more about
2127 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2129 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2131 class SpinButtonPtr(SpinButton
):
2132 def __init__(self
, this
):
2134 if not hasattr(self
,"thisown"): self
.thisown
= 0
2135 self
.__class
__ = SpinButton
2136 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2137 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2138 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2140 def PreSpinButton(*args
, **kwargs
):
2141 """PreSpinButton() -> SpinButton"""
2142 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2146 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2148 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2150 Get the default attributes for this class. This is useful if you want
2151 to use the same font or colour in your own control as in a standard
2152 control -- which is a much better idea than hard coding specific
2153 colours or fonts which might look completely out of place on the
2154 user's system, especially if it uses themes.
2156 The variant parameter is only relevant under Mac currently and is
2157 ignore under other platforms. Under Mac, it will change the size of
2158 the returned font. See `wx.Window.SetWindowVariant` for more about
2161 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2163 class SpinCtrl(_core
.Control
):
2165 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2166 def __init__(self
, *args
, **kwargs
):
2168 __init__(self, Window parent, int id=-1, String value=EmptyString,
2169 Point pos=DefaultPosition, Size size=DefaultSize,
2170 long style=SP_ARROW_KEYS, int min=0, int max=100,
2171 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2173 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2174 self
.this
= newobj
.this
2177 self
._setOORInfo
(self
)
2179 def Create(*args
, **kwargs
):
2181 Create(self, Window parent, int id=-1, String value=EmptyString,
2182 Point pos=DefaultPosition, Size size=DefaultSize,
2183 long style=SP_ARROW_KEYS, int min=0, int max=100,
2184 int initial=0, String name=SpinCtrlNameStr) -> bool
2186 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2188 def GetValue(*args
, **kwargs
):
2189 """GetValue(self) -> int"""
2190 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2192 def SetValue(*args
, **kwargs
):
2193 """SetValue(self, int value)"""
2194 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2196 def SetValueString(*args
, **kwargs
):
2197 """SetValueString(self, String text)"""
2198 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2200 def SetRange(*args
, **kwargs
):
2201 """SetRange(self, int minVal, int maxVal)"""
2202 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2204 def GetMin(*args
, **kwargs
):
2205 """GetMin(self) -> int"""
2206 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2208 def GetMax(*args
, **kwargs
):
2209 """GetMax(self) -> int"""
2210 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2212 def SetSelection(*args
, **kwargs
):
2213 """SetSelection(self, long from, long to)"""
2214 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2216 def GetClassDefaultAttributes(*args
, **kwargs
):
2218 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2220 Get the default attributes for this class. This is useful if you want
2221 to use the same font or colour in your own control as in a standard
2222 control -- which is a much better idea than hard coding specific
2223 colours or fonts which might look completely out of place on the
2224 user's system, especially if it uses themes.
2226 The variant parameter is only relevant under Mac currently and is
2227 ignore under other platforms. Under Mac, it will change the size of
2228 the returned font. See `wx.Window.SetWindowVariant` for more about
2231 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2233 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2235 class SpinCtrlPtr(SpinCtrl
):
2236 def __init__(self
, this
):
2238 if not hasattr(self
,"thisown"): self
.thisown
= 0
2239 self
.__class
__ = SpinCtrl
2240 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2242 def PreSpinCtrl(*args
, **kwargs
):
2243 """PreSpinCtrl() -> SpinCtrl"""
2244 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2248 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2250 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2252 Get the default attributes for this class. This is useful if you want
2253 to use the same font or colour in your own control as in a standard
2254 control -- which is a much better idea than hard coding specific
2255 colours or fonts which might look completely out of place on the
2256 user's system, especially if it uses themes.
2258 The variant parameter is only relevant under Mac currently and is
2259 ignore under other platforms. Under Mac, it will change the size of
2260 the returned font. See `wx.Window.SetWindowVariant` for more about
2263 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2265 class SpinEvent(_core
.NotifyEvent
):
2267 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2268 def __init__(self
, *args
, **kwargs
):
2269 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2270 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2271 self
.this
= newobj
.this
2274 def GetPosition(*args
, **kwargs
):
2275 """GetPosition(self) -> int"""
2276 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2278 def SetPosition(*args
, **kwargs
):
2279 """SetPosition(self, int pos)"""
2280 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2283 class SpinEventPtr(SpinEvent
):
2284 def __init__(self
, this
):
2286 if not hasattr(self
,"thisown"): self
.thisown
= 0
2287 self
.__class
__ = SpinEvent
2288 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2290 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2291 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2292 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2293 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2294 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2296 #---------------------------------------------------------------------------
2298 class RadioBox(_core
.Control
):
2300 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2301 def __init__(self
, *args
, **kwargs
):
2303 __init__(self, Window parent, int id=-1, String label=EmptyString,
2304 Point pos=DefaultPosition, Size size=DefaultSize,
2305 wxArrayString choices=wxPyEmptyStringArray,
2306 int majorDimension=0, long style=RA_HORIZONTAL,
2307 Validator validator=DefaultValidator,
2308 String name=RadioBoxNameStr) -> RadioBox
2310 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2311 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2312 self
.this
= newobj
.this
2315 self
._setOORInfo
(self
)
2317 def Create(*args
, **kwargs
):
2319 Create(self, Window parent, int id=-1, String label=EmptyString,
2320 Point pos=DefaultPosition, Size size=DefaultSize,
2321 wxArrayString choices=wxPyEmptyStringArray,
2322 int majorDimension=0, long style=RA_HORIZONTAL,
2323 Validator validator=DefaultValidator,
2324 String name=RadioBoxNameStr) -> bool
2326 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2328 def SetSelection(*args
, **kwargs
):
2329 """SetSelection(self, int n)"""
2330 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2332 def GetSelection(*args
, **kwargs
):
2333 """GetSelection(self) -> int"""
2334 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2336 def GetStringSelection(*args
, **kwargs
):
2337 """GetStringSelection(self) -> String"""
2338 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2340 def SetStringSelection(*args
, **kwargs
):
2341 """SetStringSelection(self, String s) -> bool"""
2342 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2344 def GetCount(*args
, **kwargs
):
2345 """GetCount(self) -> int"""
2346 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2348 def FindString(*args
, **kwargs
):
2349 """FindString(self, String s) -> int"""
2350 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2352 def GetString(*args
, **kwargs
):
2353 """GetString(self, int n) -> String"""
2354 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2356 def SetString(*args
, **kwargs
):
2357 """SetString(self, int n, String label)"""
2358 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2360 GetItemLabel
= GetString
2361 SetItemLabel
= SetString
2362 def EnableItem(*args
, **kwargs
):
2363 """EnableItem(self, int n, bool enable=True)"""
2364 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2366 def ShowItem(*args
, **kwargs
):
2367 """ShowItem(self, int n, bool show=True)"""
2368 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2370 def GetColumnCount(*args
, **kwargs
):
2371 """GetColumnCount(self) -> int"""
2372 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2374 def GetRowCount(*args
, **kwargs
):
2375 """GetRowCount(self) -> int"""
2376 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2378 def GetNextItem(*args
, **kwargs
):
2379 """GetNextItem(self, int item, int dir, long style) -> int"""
2380 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2382 def GetClassDefaultAttributes(*args
, **kwargs
):
2384 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2386 Get the default attributes for this class. This is useful if you want
2387 to use the same font or colour in your own control as in a standard
2388 control -- which is a much better idea than hard coding specific
2389 colours or fonts which might look completely out of place on the
2390 user's system, especially if it uses themes.
2392 The variant parameter is only relevant under Mac currently and is
2393 ignore under other platforms. Under Mac, it will change the size of
2394 the returned font. See `wx.Window.SetWindowVariant` for more about
2397 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2399 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2401 class RadioBoxPtr(RadioBox
):
2402 def __init__(self
, this
):
2404 if not hasattr(self
,"thisown"): self
.thisown
= 0
2405 self
.__class
__ = RadioBox
2406 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2407 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2408 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2410 def PreRadioBox(*args
, **kwargs
):
2411 """PreRadioBox() -> RadioBox"""
2412 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2416 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2418 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2420 Get the default attributes for this class. This is useful if you want
2421 to use the same font or colour in your own control as in a standard
2422 control -- which is a much better idea than hard coding specific
2423 colours or fonts which might look completely out of place on the
2424 user's system, especially if it uses themes.
2426 The variant parameter is only relevant under Mac currently and is
2427 ignore under other platforms. Under Mac, it will change the size of
2428 the returned font. See `wx.Window.SetWindowVariant` for more about
2431 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2433 #---------------------------------------------------------------------------
2435 class RadioButton(_core
.Control
):
2437 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2438 def __init__(self
, *args
, **kwargs
):
2440 __init__(self, Window parent, int id=-1, String label=EmptyString,
2441 Point pos=DefaultPosition, Size size=DefaultSize,
2442 long style=0, Validator validator=DefaultValidator,
2443 String name=RadioButtonNameStr) -> RadioButton
2445 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2446 self
.this
= newobj
.this
2449 self
._setOORInfo
(self
)
2451 def Create(*args
, **kwargs
):
2453 Create(self, Window parent, int id=-1, String label=EmptyString,
2454 Point pos=DefaultPosition, Size size=DefaultSize,
2455 long style=0, Validator validator=DefaultValidator,
2456 String name=RadioButtonNameStr) -> bool
2458 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2460 def GetValue(*args
, **kwargs
):
2461 """GetValue(self) -> bool"""
2462 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2464 def SetValue(*args
, **kwargs
):
2465 """SetValue(self, bool value)"""
2466 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2468 def GetClassDefaultAttributes(*args
, **kwargs
):
2470 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2472 Get the default attributes for this class. This is useful if you want
2473 to use the same font or colour in your own control as in a standard
2474 control -- which is a much better idea than hard coding specific
2475 colours or fonts which might look completely out of place on the
2476 user's system, especially if it uses themes.
2478 The variant parameter is only relevant under Mac currently and is
2479 ignore under other platforms. Under Mac, it will change the size of
2480 the returned font. See `wx.Window.SetWindowVariant` for more about
2483 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2485 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2487 class RadioButtonPtr(RadioButton
):
2488 def __init__(self
, this
):
2490 if not hasattr(self
,"thisown"): self
.thisown
= 0
2491 self
.__class
__ = RadioButton
2492 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2494 def PreRadioButton(*args
, **kwargs
):
2495 """PreRadioButton() -> RadioButton"""
2496 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2500 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2502 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2504 Get the default attributes for this class. This is useful if you want
2505 to use the same font or colour in your own control as in a standard
2506 control -- which is a much better idea than hard coding specific
2507 colours or fonts which might look completely out of place on the
2508 user's system, especially if it uses themes.
2510 The variant parameter is only relevant under Mac currently and is
2511 ignore under other platforms. Under Mac, it will change the size of
2512 the returned font. See `wx.Window.SetWindowVariant` for more about
2515 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2517 #---------------------------------------------------------------------------
2519 class Slider(_core
.Control
):
2521 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2522 def __init__(self
, *args
, **kwargs
):
2524 __init__(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) -> Slider
2530 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2531 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2532 self
.this
= newobj
.this
2535 self
._setOORInfo
(self
)
2537 def Create(*args
, **kwargs
):
2539 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2540 int maxValue=100, Point pos=DefaultPosition,
2541 Size size=DefaultSize, long style=SL_HORIZONTAL,
2542 Validator validator=DefaultValidator,
2543 String name=SliderNameStr) -> bool
2545 return _controls_
.Slider_Create(*args
, **kwargs
)
2547 def GetValue(*args
, **kwargs
):
2548 """GetValue(self) -> int"""
2549 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2551 def SetValue(*args
, **kwargs
):
2552 """SetValue(self, int value)"""
2553 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2555 def SetRange(*args
, **kwargs
):
2556 """SetRange(self, int minValue, int maxValue)"""
2557 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2559 def GetMin(*args
, **kwargs
):
2560 """GetMin(self) -> int"""
2561 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2563 def GetMax(*args
, **kwargs
):
2564 """GetMax(self) -> int"""
2565 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2567 def SetMin(*args
, **kwargs
):
2568 """SetMin(self, int minValue)"""
2569 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2571 def SetMax(*args
, **kwargs
):
2572 """SetMax(self, int maxValue)"""
2573 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2575 def SetLineSize(*args
, **kwargs
):
2576 """SetLineSize(self, int lineSize)"""
2577 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2579 def SetPageSize(*args
, **kwargs
):
2580 """SetPageSize(self, int pageSize)"""
2581 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2583 def GetLineSize(*args
, **kwargs
):
2584 """GetLineSize(self) -> int"""
2585 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2587 def GetPageSize(*args
, **kwargs
):
2588 """GetPageSize(self) -> int"""
2589 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2591 def SetThumbLength(*args
, **kwargs
):
2592 """SetThumbLength(self, int lenPixels)"""
2593 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2595 def GetThumbLength(*args
, **kwargs
):
2596 """GetThumbLength(self) -> int"""
2597 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2599 def SetTickFreq(*args
, **kwargs
):
2600 """SetTickFreq(self, int n, int pos=1)"""
2601 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2603 def GetTickFreq(*args
, **kwargs
):
2604 """GetTickFreq(self) -> int"""
2605 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2607 def ClearTicks(*args
, **kwargs
):
2608 """ClearTicks(self)"""
2609 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2611 def SetTick(*args
, **kwargs
):
2612 """SetTick(self, int tickPos)"""
2613 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2615 def ClearSel(*args
, **kwargs
):
2616 """ClearSel(self)"""
2617 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2619 def GetSelEnd(*args
, **kwargs
):
2620 """GetSelEnd(self) -> int"""
2621 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2623 def GetSelStart(*args
, **kwargs
):
2624 """GetSelStart(self) -> int"""
2625 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2627 def SetSelection(*args
, **kwargs
):
2628 """SetSelection(self, int min, int max)"""
2629 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2631 def GetClassDefaultAttributes(*args
, **kwargs
):
2633 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2635 Get the default attributes for this class. This is useful if you want
2636 to use the same font or colour in your own control as in a standard
2637 control -- which is a much better idea than hard coding specific
2638 colours or fonts which might look completely out of place on the
2639 user's system, especially if it uses themes.
2641 The variant parameter is only relevant under Mac currently and is
2642 ignore under other platforms. Under Mac, it will change the size of
2643 the returned font. See `wx.Window.SetWindowVariant` for more about
2646 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2648 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2650 class SliderPtr(Slider
):
2651 def __init__(self
, this
):
2653 if not hasattr(self
,"thisown"): self
.thisown
= 0
2654 self
.__class
__ = Slider
2655 _controls_
.Slider_swigregister(SliderPtr
)
2656 SliderNameStr
= cvar
.SliderNameStr
2658 def PreSlider(*args
, **kwargs
):
2659 """PreSlider() -> Slider"""
2660 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2664 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2666 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2668 Get the default attributes for this class. This is useful if you want
2669 to use the same font or colour in your own control as in a standard
2670 control -- which is a much better idea than hard coding specific
2671 colours or fonts which might look completely out of place on the
2672 user's system, especially if it uses themes.
2674 The variant parameter is only relevant under Mac currently and is
2675 ignore under other platforms. Under Mac, it will change the size of
2676 the returned font. See `wx.Window.SetWindowVariant` for more about
2679 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2681 #---------------------------------------------------------------------------
2683 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2684 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2686 class ToggleButton(_core
.Control
):
2688 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2689 def __init__(self
, *args
, **kwargs
):
2691 __init__(self, Window parent, int id=-1, String label=EmptyString,
2692 Point pos=DefaultPosition, Size size=DefaultSize,
2693 long style=0, Validator validator=DefaultValidator,
2694 String name=ToggleButtonNameStr) -> ToggleButton
2696 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2697 self
.this
= newobj
.this
2700 self
._setOORInfo
(self
)
2702 def Create(*args
, **kwargs
):
2704 Create(self, Window parent, int id=-1, String label=EmptyString,
2705 Point pos=DefaultPosition, Size size=DefaultSize,
2706 long style=0, Validator validator=DefaultValidator,
2707 String name=ToggleButtonNameStr) -> bool
2709 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2711 def SetValue(*args
, **kwargs
):
2712 """SetValue(self, bool value)"""
2713 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2715 def GetValue(*args
, **kwargs
):
2716 """GetValue(self) -> bool"""
2717 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2719 def SetLabel(*args
, **kwargs
):
2721 SetLabel(self, String label)
2723 Sets the item's text.
2725 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2727 def GetClassDefaultAttributes(*args
, **kwargs
):
2729 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2731 Get the default attributes for this class. This is useful if you want
2732 to use the same font or colour in your own control as in a standard
2733 control -- which is a much better idea than hard coding specific
2734 colours or fonts which might look completely out of place on the
2735 user's system, especially if it uses themes.
2737 The variant parameter is only relevant under Mac currently and is
2738 ignore under other platforms. Under Mac, it will change the size of
2739 the returned font. See `wx.Window.SetWindowVariant` for more about
2742 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2744 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2746 class ToggleButtonPtr(ToggleButton
):
2747 def __init__(self
, this
):
2749 if not hasattr(self
,"thisown"): self
.thisown
= 0
2750 self
.__class
__ = ToggleButton
2751 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2752 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2754 def PreToggleButton(*args
, **kwargs
):
2755 """PreToggleButton() -> ToggleButton"""
2756 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2760 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2762 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2764 Get the default attributes for this class. This is useful if you want
2765 to use the same font or colour in your own control as in a standard
2766 control -- which is a much better idea than hard coding specific
2767 colours or fonts which might look completely out of place on the
2768 user's system, especially if it uses themes.
2770 The variant parameter is only relevant under Mac currently and is
2771 ignore under other platforms. Under Mac, it will change the size of
2772 the returned font. See `wx.Window.SetWindowVariant` for more about
2775 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2777 #---------------------------------------------------------------------------
2779 class BookCtrlBase(_core
.Control
):
2780 def __init__(self
): raise RuntimeError, "No constructor defined"
2782 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2783 def GetPageCount(*args
, **kwargs
):
2784 """GetPageCount(self) -> size_t"""
2785 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2787 def GetPage(*args
, **kwargs
):
2788 """GetPage(self, size_t n) -> Window"""
2789 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2791 def GetCurrentPage(*args
, **kwargs
):
2792 """GetCurrentPage(self) -> Window"""
2793 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2795 def GetSelection(*args
, **kwargs
):
2796 """GetSelection(self) -> int"""
2797 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2799 def SetPageText(*args
, **kwargs
):
2800 """SetPageText(self, size_t n, String strText) -> bool"""
2801 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2803 def GetPageText(*args
, **kwargs
):
2804 """GetPageText(self, size_t n) -> String"""
2805 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2807 def SetImageList(*args
, **kwargs
):
2808 """SetImageList(self, ImageList imageList)"""
2809 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2811 def AssignImageList(*args
, **kwargs
):
2812 """AssignImageList(self, ImageList imageList)"""
2813 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2815 def GetImageList(*args
, **kwargs
):
2816 """GetImageList(self) -> ImageList"""
2817 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2819 def GetPageImage(*args
, **kwargs
):
2820 """GetPageImage(self, size_t n) -> int"""
2821 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2823 def SetPageImage(*args
, **kwargs
):
2824 """SetPageImage(self, size_t n, int imageId) -> bool"""
2825 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2827 def SetPageSize(*args
, **kwargs
):
2828 """SetPageSize(self, Size size)"""
2829 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2831 def CalcSizeFromPage(*args
, **kwargs
):
2832 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2833 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2835 def DeletePage(*args
, **kwargs
):
2836 """DeletePage(self, size_t n) -> bool"""
2837 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2839 def RemovePage(*args
, **kwargs
):
2840 """RemovePage(self, size_t n) -> bool"""
2841 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2843 def DeleteAllPages(*args
, **kwargs
):
2844 """DeleteAllPages(self) -> bool"""
2845 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2847 def AddPage(*args
, **kwargs
):
2848 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2849 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2851 def InsertPage(*args
, **kwargs
):
2853 InsertPage(self, size_t n, Window page, String text, bool select=False,
2854 int imageId=-1) -> bool
2856 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2858 def SetSelection(*args
, **kwargs
):
2859 """SetSelection(self, size_t n) -> int"""
2860 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
2862 def AdvanceSelection(*args
, **kwargs
):
2863 """AdvanceSelection(self, bool forward=True)"""
2864 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
2866 def GetClassDefaultAttributes(*args
, **kwargs
):
2868 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2870 Get the default attributes for this class. This is useful if you want
2871 to use the same font or colour in your own control as in a standard
2872 control -- which is a much better idea than hard coding specific
2873 colours or fonts which might look completely out of place on the
2874 user's system, especially if it uses themes.
2876 The variant parameter is only relevant under Mac currently and is
2877 ignore under other platforms. Under Mac, it will change the size of
2878 the returned font. See `wx.Window.SetWindowVariant` for more about
2881 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2883 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2885 class BookCtrlBasePtr(BookCtrlBase
):
2886 def __init__(self
, this
):
2888 if not hasattr(self
,"thisown"): self
.thisown
= 0
2889 self
.__class
__ = BookCtrlBase
2890 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
2891 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
2893 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
2895 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2897 Get the default attributes for this class. This is useful if you want
2898 to use the same font or colour in your own control as in a standard
2899 control -- which is a much better idea than hard coding specific
2900 colours or fonts which might look completely out of place on the
2901 user's system, especially if it uses themes.
2903 The variant parameter is only relevant under Mac currently and is
2904 ignore under other platforms. Under Mac, it will change the size of
2905 the returned font. See `wx.Window.SetWindowVariant` for more about
2908 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
2910 class BookCtrlBaseEvent(_core
.NotifyEvent
):
2912 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2913 def __init__(self
, *args
, **kwargs
):
2915 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
2916 int nOldSel=-1) -> BookCtrlBaseEvent
2918 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
2919 self
.this
= newobj
.this
2922 def GetSelection(*args
, **kwargs
):
2923 """GetSelection(self) -> int"""
2924 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
2926 def SetSelection(*args
, **kwargs
):
2927 """SetSelection(self, int nSel)"""
2928 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
2930 def GetOldSelection(*args
, **kwargs
):
2931 """GetOldSelection(self) -> int"""
2932 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
2934 def SetOldSelection(*args
, **kwargs
):
2935 """SetOldSelection(self, int nOldSel)"""
2936 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
2939 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
2940 def __init__(self
, this
):
2942 if not hasattr(self
,"thisown"): self
.thisown
= 0
2943 self
.__class
__ = BookCtrlBaseEvent
2944 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
2946 #---------------------------------------------------------------------------
2948 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
2949 NB_TOP
= _controls_
.NB_TOP
2950 NB_LEFT
= _controls_
.NB_LEFT
2951 NB_RIGHT
= _controls_
.NB_RIGHT
2952 NB_BOTTOM
= _controls_
.NB_BOTTOM
2953 NB_MULTILINE
= _controls_
.NB_MULTILINE
2954 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
2955 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
2956 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
2957 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
2958 class Notebook(BookCtrlBase
):
2960 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2961 def __init__(self
, *args
, **kwargs
):
2963 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2964 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
2966 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
2967 self
.this
= newobj
.this
2970 self
._setOORInfo
(self
)
2972 def Create(*args
, **kwargs
):
2974 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2975 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
2977 return _controls_
.Notebook_Create(*args
, **kwargs
)
2979 def GetRowCount(*args
, **kwargs
):
2980 """GetRowCount(self) -> int"""
2981 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
2983 def SetPadding(*args
, **kwargs
):
2984 """SetPadding(self, Size padding)"""
2985 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
2987 def SetTabSize(*args
, **kwargs
):
2988 """SetTabSize(self, Size sz)"""
2989 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
2991 def HitTest(*args
, **kwargs
):
2993 HitTest(Point pt) -> (tab, where)
2995 Returns the tab which is hit, and flags indicating where using
2996 wx.NB_HITTEST flags.
2998 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3000 def CalcSizeFromPage(*args
, **kwargs
):
3001 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3002 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3004 def GetClassDefaultAttributes(*args
, **kwargs
):
3006 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3008 Get the default attributes for this class. This is useful if you want
3009 to use the same font or colour in your own control as in a standard
3010 control -- which is a much better idea than hard coding specific
3011 colours or fonts which might look completely out of place on the
3012 user's system, especially if it uses themes.
3014 The variant parameter is only relevant under Mac currently and is
3015 ignore under other platforms. Under Mac, it will change the size of
3016 the returned font. See `wx.Window.SetWindowVariant` for more about
3019 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3021 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3023 class NotebookPtr(Notebook
):
3024 def __init__(self
, this
):
3026 if not hasattr(self
,"thisown"): self
.thisown
= 0
3027 self
.__class
__ = Notebook
3028 _controls_
.Notebook_swigregister(NotebookPtr
)
3030 def PreNotebook(*args
, **kwargs
):
3031 """PreNotebook() -> Notebook"""
3032 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3036 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3038 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3040 Get the default attributes for this class. This is useful if you want
3041 to use the same font or colour in your own control as in a standard
3042 control -- which is a much better idea than hard coding specific
3043 colours or fonts which might look completely out of place on the
3044 user's system, especially if it uses themes.
3046 The variant parameter is only relevant under Mac currently and is
3047 ignore under other platforms. Under Mac, it will change the size of
3048 the returned font. See `wx.Window.SetWindowVariant` for more about
3051 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3053 class NotebookEvent(BookCtrlBaseEvent
):
3055 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3056 def __init__(self
, *args
, **kwargs
):
3058 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3059 int nOldSel=-1) -> NotebookEvent
3061 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3062 self
.this
= newobj
.this
3066 class NotebookEventPtr(NotebookEvent
):
3067 def __init__(self
, this
):
3069 if not hasattr(self
,"thisown"): self
.thisown
= 0
3070 self
.__class
__ = NotebookEvent
3071 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3073 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3074 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3076 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3077 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3079 #----------------------------------------------------------------------------
3081 class NotebookPage(wx
.Panel
):
3083 There is an old (and apparently unsolvable) bug when placing a
3084 window with a nonstandard background colour in a wxNotebook on
3085 wxGTK, as the notbooks's background colour would always be used
3086 when the window is refreshed. The solution is to place a panel in
3087 the notbook and the coloured window on the panel, sized to cover
3088 the panel. This simple class does that for you, just put an
3089 instance of this in the notebook and make your regular window a
3090 child of this one and it will handle the resize for you.
3092 def __init__(self
, parent
, id=-1,
3093 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3094 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3095 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3097 EVT_SIZE(self
, self
.OnSize
)
3099 def OnSize(self
, evt
):
3100 if self
.child
is None:
3101 children
= self
.GetChildren()
3103 self
.child
= children
[0]
3105 self
.child
.SetPosition((0,0))
3106 self
.child
.SetSize(self
.GetSize())
3109 #---------------------------------------------------------------------------
3111 LB_DEFAULT
= _controls_
.LB_DEFAULT
3112 LB_TOP
= _controls_
.LB_TOP
3113 LB_BOTTOM
= _controls_
.LB_BOTTOM
3114 LB_LEFT
= _controls_
.LB_LEFT
3115 LB_RIGHT
= _controls_
.LB_RIGHT
3116 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3117 class Listbook(BookCtrlBase
):
3119 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3120 def __init__(self
, *args
, **kwargs
):
3122 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3123 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3125 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3126 self
.this
= newobj
.this
3129 self
._setOORInfo
(self
)
3131 def Create(*args
, **kwargs
):
3133 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3134 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3136 return _controls_
.Listbook_Create(*args
, **kwargs
)
3138 def IsVertical(*args
, **kwargs
):
3139 """IsVertical(self) -> bool"""
3140 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3142 def GetListView(*args
, **kwargs
):
3143 """GetListView(self) -> ListView"""
3144 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3147 class ListbookPtr(Listbook
):
3148 def __init__(self
, this
):
3150 if not hasattr(self
,"thisown"): self
.thisown
= 0
3151 self
.__class
__ = Listbook
3152 _controls_
.Listbook_swigregister(ListbookPtr
)
3154 def PreListbook(*args
, **kwargs
):
3155 """PreListbook() -> Listbook"""
3156 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3160 class ListbookEvent(BookCtrlBaseEvent
):
3162 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3163 def __init__(self
, *args
, **kwargs
):
3165 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3166 int nOldSel=-1) -> ListbookEvent
3168 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3169 self
.this
= newobj
.this
3173 class ListbookEventPtr(ListbookEvent
):
3174 def __init__(self
, this
):
3176 if not hasattr(self
,"thisown"): self
.thisown
= 0
3177 self
.__class
__ = ListbookEvent
3178 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3180 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3181 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3182 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3183 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3185 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3186 CHB_TOP
= _controls_
.CHB_TOP
3187 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3188 CHB_LEFT
= _controls_
.CHB_LEFT
3189 CHB_RIGHT
= _controls_
.CHB_RIGHT
3190 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3191 class Choicebook(BookCtrlBase
):
3193 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3194 def __init__(self
, *args
, **kwargs
):
3196 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3197 long style=0, String name=EmptyString) -> Choicebook
3199 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3200 self
.this
= newobj
.this
3203 self
._setOORInfo
(self
)
3205 def Create(*args
, **kwargs
):
3207 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3208 long style=0, String name=EmptyString) -> bool
3210 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3212 def IsVertical(*args
, **kwargs
):
3213 """IsVertical(self) -> bool"""
3214 return _controls_
.Choicebook_IsVertical(*args
, **kwargs
)
3216 def DeleteAllPages(*args
, **kwargs
):
3217 """DeleteAllPages(self) -> bool"""
3218 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3221 class ChoicebookPtr(Choicebook
):
3222 def __init__(self
, this
):
3224 if not hasattr(self
,"thisown"): self
.thisown
= 0
3225 self
.__class
__ = Choicebook
3226 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3228 def PreChoicebook(*args
, **kwargs
):
3229 """PreChoicebook() -> Choicebook"""
3230 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3234 class ChoicebookEvent(BookCtrlBaseEvent
):
3236 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3237 def __init__(self
, *args
, **kwargs
):
3239 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3240 int nOldSel=-1) -> ChoicebookEvent
3242 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3243 self
.this
= newobj
.this
3247 class ChoicebookEventPtr(ChoicebookEvent
):
3248 def __init__(self
, this
):
3250 if not hasattr(self
,"thisown"): self
.thisown
= 0
3251 self
.__class
__ = ChoicebookEvent
3252 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3254 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3255 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3256 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3257 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3259 #---------------------------------------------------------------------------
3261 class BookCtrlSizer(_core
.Sizer
):
3263 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3264 def __init__(self
, *args
, **kwargs
):
3265 """__init__(self, BookCtrlBase nb) -> BookCtrlSizer"""
3266 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3267 self
.this
= newobj
.this
3270 self
._setOORInfo
(self
)
3272 def RecalcSizes(*args
, **kwargs
):
3276 Using the sizes calculated by `CalcMin` reposition and resize all the
3277 items managed by this sizer. You should not need to call this directly as
3278 it is called by `Layout`.
3280 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3282 def CalcMin(*args
, **kwargs
):
3284 CalcMin(self) -> Size
3286 This method is where the sizer will do the actual calculation of its
3287 children's minimal sizes. You should not need to call this directly as
3288 it is called by `Layout`.
3290 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3292 def GetControl(*args
, **kwargs
):
3293 """GetControl(self) -> BookCtrlBase"""
3294 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3297 class BookCtrlSizerPtr(BookCtrlSizer
):
3298 def __init__(self
, this
):
3300 if not hasattr(self
,"thisown"): self
.thisown
= 0
3301 self
.__class
__ = BookCtrlSizer
3302 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3304 class NotebookSizer(_core
.Sizer
):
3306 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3307 def __init__(self
, *args
, **kwargs
):
3308 """__init__(self, Notebook nb) -> NotebookSizer"""
3309 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3310 self
.this
= newobj
.this
3313 self
._setOORInfo
(self
)
3315 def RecalcSizes(*args
, **kwargs
):
3319 Using the sizes calculated by `CalcMin` reposition and resize all the
3320 items managed by this sizer. You should not need to call this directly as
3321 it is called by `Layout`.
3323 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3325 def CalcMin(*args
, **kwargs
):
3327 CalcMin(self) -> Size
3329 This method is where the sizer will do the actual calculation of its
3330 children's minimal sizes. You should not need to call this directly as
3331 it is called by `Layout`.
3333 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3335 def GetNotebook(*args
, **kwargs
):
3336 """GetNotebook(self) -> Notebook"""
3337 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3340 class NotebookSizerPtr(NotebookSizer
):
3341 def __init__(self
, this
):
3343 if not hasattr(self
,"thisown"): self
.thisown
= 0
3344 self
.__class
__ = NotebookSizer
3345 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3347 #---------------------------------------------------------------------------
3349 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3350 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3351 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3352 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3353 TB_VERTICAL
= _controls_
.TB_VERTICAL
3354 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3355 TB_FLAT
= _controls_
.TB_FLAT
3356 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3357 TB_NOICONS
= _controls_
.TB_NOICONS
3358 TB_TEXT
= _controls_
.TB_TEXT
3359 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3360 TB_NOALIGN
= _controls_
.TB_NOALIGN
3361 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3362 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3363 class ToolBarToolBase(_core
.Object
):
3364 def __init__(self
): raise RuntimeError, "No constructor defined"
3366 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3367 def GetId(*args
, **kwargs
):
3368 """GetId(self) -> int"""
3369 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3371 def GetControl(*args
, **kwargs
):
3372 """GetControl(self) -> Control"""
3373 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3375 def GetToolBar(*args
, **kwargs
):
3376 """GetToolBar(self) -> ToolBarBase"""
3377 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3379 def IsButton(*args
, **kwargs
):
3380 """IsButton(self) -> int"""
3381 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3383 def IsControl(*args
, **kwargs
):
3384 """IsControl(self) -> int"""
3385 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3387 def IsSeparator(*args
, **kwargs
):
3388 """IsSeparator(self) -> int"""
3389 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3391 def GetStyle(*args
, **kwargs
):
3392 """GetStyle(self) -> int"""
3393 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3395 def GetKind(*args
, **kwargs
):
3396 """GetKind(self) -> int"""
3397 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3399 def IsEnabled(*args
, **kwargs
):
3400 """IsEnabled(self) -> bool"""
3401 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3403 def IsToggled(*args
, **kwargs
):
3404 """IsToggled(self) -> bool"""
3405 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3407 def CanBeToggled(*args
, **kwargs
):
3408 """CanBeToggled(self) -> bool"""
3409 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3411 def GetNormalBitmap(*args
, **kwargs
):
3412 """GetNormalBitmap(self) -> Bitmap"""
3413 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3415 def GetDisabledBitmap(*args
, **kwargs
):
3416 """GetDisabledBitmap(self) -> Bitmap"""
3417 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3419 def GetBitmap(*args
, **kwargs
):
3420 """GetBitmap(self) -> Bitmap"""
3421 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3423 def GetLabel(*args
, **kwargs
):
3424 """GetLabel(self) -> String"""
3425 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3427 def GetShortHelp(*args
, **kwargs
):
3428 """GetShortHelp(self) -> String"""
3429 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3431 def GetLongHelp(*args
, **kwargs
):
3432 """GetLongHelp(self) -> String"""
3433 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3435 def Enable(*args
, **kwargs
):
3436 """Enable(self, bool enable) -> bool"""
3437 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3439 def Toggle(*args
, **kwargs
):
3441 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3443 def SetToggle(*args
, **kwargs
):
3444 """SetToggle(self, bool toggle) -> bool"""
3445 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3447 def SetShortHelp(*args
, **kwargs
):
3448 """SetShortHelp(self, String help) -> bool"""
3449 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3451 def SetLongHelp(*args
, **kwargs
):
3452 """SetLongHelp(self, String help) -> bool"""
3453 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3455 def SetNormalBitmap(*args
, **kwargs
):
3456 """SetNormalBitmap(self, Bitmap bmp)"""
3457 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3459 def SetDisabledBitmap(*args
, **kwargs
):
3460 """SetDisabledBitmap(self, Bitmap bmp)"""
3461 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3463 def SetLabel(*args
, **kwargs
):
3464 """SetLabel(self, String label)"""
3465 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3467 def Detach(*args
, **kwargs
):
3469 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3471 def Attach(*args
, **kwargs
):
3472 """Attach(self, ToolBarBase tbar)"""
3473 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3475 def GetClientData(*args
, **kwargs
):
3476 """GetClientData(self) -> PyObject"""
3477 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3479 def SetClientData(*args
, **kwargs
):
3480 """SetClientData(self, PyObject clientData)"""
3481 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3483 GetBitmap1
= GetNormalBitmap
3484 GetBitmap2
= GetDisabledBitmap
3485 SetBitmap1
= SetNormalBitmap
3486 SetBitmap2
= SetDisabledBitmap
3489 class ToolBarToolBasePtr(ToolBarToolBase
):
3490 def __init__(self
, this
):
3492 if not hasattr(self
,"thisown"): self
.thisown
= 0
3493 self
.__class
__ = ToolBarToolBase
3494 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3496 class ToolBarBase(_core
.Control
):
3497 def __init__(self
): raise RuntimeError, "No constructor defined"
3499 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3500 def DoAddTool(*args
, **kwargs
):
3502 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3503 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3504 String longHelp=EmptyString,
3505 PyObject clientData=None) -> ToolBarToolBase
3507 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3509 def DoInsertTool(*args
, **kwargs
):
3511 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3512 int kind=ITEM_NORMAL,
3513 String shortHelp=EmptyString, String longHelp=EmptyString,
3514 PyObject clientData=None) -> ToolBarToolBase
3516 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3518 # These match the original Add methods for this class, kept for
3519 # backwards compatibility with versions < 2.3.3.
3522 def AddTool(self
, id, bitmap
,
3523 pushedBitmap
= wx
.NullBitmap
,
3526 shortHelpString
= '',
3527 longHelpString
= '') :
3528 '''Old style method to add a tool to the toolbar.'''
3529 kind
= wx
.ITEM_NORMAL
3530 if isToggle
: kind
= wx
.ITEM_CHECK
3531 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3532 shortHelpString
, longHelpString
, clientData
)
3534 def AddSimpleTool(self
, id, bitmap
,
3535 shortHelpString
= '',
3536 longHelpString
= '',
3538 '''Old style method to add a tool to the toolbar.'''
3539 kind
= wx
.ITEM_NORMAL
3540 if isToggle
: kind
= wx
.ITEM_CHECK
3541 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3542 shortHelpString
, longHelpString
, None)
3544 def InsertTool(self
, pos
, id, bitmap
,
3545 pushedBitmap
= wx
.NullBitmap
,
3548 shortHelpString
= '',
3549 longHelpString
= ''):
3550 '''Old style method to insert a tool in the toolbar.'''
3551 kind
= wx
.ITEM_NORMAL
3552 if isToggle
: kind
= wx
.ITEM_CHECK
3553 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3554 shortHelpString
, longHelpString
, clientData
)
3556 def InsertSimpleTool(self
, pos
, id, bitmap
,
3557 shortHelpString
= '',
3558 longHelpString
= '',
3560 '''Old style method to insert a tool in the toolbar.'''
3561 kind
= wx
.ITEM_NORMAL
3562 if isToggle
: kind
= wx
.ITEM_CHECK
3563 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3564 shortHelpString
, longHelpString
, None)
3567 # The following are the new toolbar Add methods starting with
3568 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3569 # able to keep backwards compatibility with using the above
3570 # methods. Eventually these should migrate to be the methods used
3571 # primarily and lose the 'Label' in the name...
3573 def AddLabelTool(self
, id, label
, bitmap
,
3574 bmpDisabled
= wx
.NullBitmap
,
3575 kind
= wx
.ITEM_NORMAL
,
3576 shortHelp
= '', longHelp
= '',
3579 The full AddTool() function.
3581 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3582 is created and used as the disabled image.
3584 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3585 shortHelp
, longHelp
, clientData
)
3588 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3589 bmpDisabled
= wx
.NullBitmap
,
3590 kind
= wx
.ITEM_NORMAL
,
3591 shortHelp
= '', longHelp
= '',
3594 Insert the new tool at the given position, if pos == GetToolsCount(), it
3595 is equivalent to AddTool()
3597 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3598 shortHelp
, longHelp
, clientData
)
3600 def AddCheckLabelTool(self
, id, label
, bitmap
,
3601 bmpDisabled
= wx
.NullBitmap
,
3602 shortHelp
= '', longHelp
= '',
3604 '''Add a check tool, i.e. a tool which can be toggled'''
3605 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3606 shortHelp
, longHelp
, clientData
)
3608 def AddRadioLabelTool(self
, id, label
, bitmap
,
3609 bmpDisabled
= wx
.NullBitmap
,
3610 shortHelp
= '', longHelp
= '',
3613 Add a radio tool, i.e. a tool which can be toggled and releases any
3614 other toggled radio tools in the same group when it happens
3616 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3617 shortHelp
, longHelp
, clientData
)
3620 # For consistency with the backwards compatible methods above, here are
3621 # some non-'Label' versions of the Check and Radio methods
3623 def AddCheckTool(self
, id, bitmap
,
3624 bmpDisabled
= wx
.NullBitmap
,
3625 shortHelp
= '', longHelp
= '',
3627 '''Add a check tool, i.e. a tool which can be toggled'''
3628 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3629 shortHelp
, longHelp
, clientData
)
3631 def AddRadioTool(self
, id, bitmap
,
3632 bmpDisabled
= wx
.NullBitmap
,
3633 shortHelp
= '', longHelp
= '',
3636 Add a radio tool, i.e. a tool which can be toggled and releases any
3637 other toggled radio tools in the same group when it happens
3639 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3640 shortHelp
, longHelp
, clientData
)
3642 def AddToolItem(*args
, **kwargs
):
3643 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3644 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3646 def InsertToolItem(*args
, **kwargs
):
3647 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3648 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3650 def AddControl(*args
, **kwargs
):
3651 """AddControl(self, Control control) -> ToolBarToolBase"""
3652 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3654 def InsertControl(*args
, **kwargs
):
3655 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3656 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3658 def FindControl(*args
, **kwargs
):
3659 """FindControl(self, int id) -> Control"""
3660 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3662 def AddSeparator(*args
, **kwargs
):
3663 """AddSeparator(self) -> ToolBarToolBase"""
3664 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3666 def InsertSeparator(*args
, **kwargs
):
3667 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3668 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3670 def RemoveTool(*args
, **kwargs
):
3671 """RemoveTool(self, int id) -> ToolBarToolBase"""
3672 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3674 def DeleteToolByPos(*args
, **kwargs
):
3675 """DeleteToolByPos(self, size_t pos) -> bool"""
3676 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3678 def DeleteTool(*args
, **kwargs
):
3679 """DeleteTool(self, int id) -> bool"""
3680 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3682 def ClearTools(*args
, **kwargs
):
3683 """ClearTools(self)"""
3684 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3686 def Realize(*args
, **kwargs
):
3687 """Realize(self) -> bool"""
3688 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3690 def EnableTool(*args
, **kwargs
):
3691 """EnableTool(self, int id, bool enable)"""
3692 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3694 def ToggleTool(*args
, **kwargs
):
3695 """ToggleTool(self, int id, bool toggle)"""
3696 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3698 def SetToggle(*args
, **kwargs
):
3699 """SetToggle(self, int id, bool toggle)"""
3700 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3702 def GetToolClientData(*args
, **kwargs
):
3703 """GetToolClientData(self, int id) -> PyObject"""
3704 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3706 def SetToolClientData(*args
, **kwargs
):
3707 """SetToolClientData(self, int id, PyObject clientData)"""
3708 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3710 def GetToolPos(*args
, **kwargs
):
3711 """GetToolPos(self, int id) -> int"""
3712 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3714 def GetToolState(*args
, **kwargs
):
3715 """GetToolState(self, int id) -> bool"""
3716 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3718 def GetToolEnabled(*args
, **kwargs
):
3719 """GetToolEnabled(self, int id) -> bool"""
3720 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3722 def SetToolShortHelp(*args
, **kwargs
):
3723 """SetToolShortHelp(self, int id, String helpString)"""
3724 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3726 def GetToolShortHelp(*args
, **kwargs
):
3727 """GetToolShortHelp(self, int id) -> String"""
3728 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3730 def SetToolLongHelp(*args
, **kwargs
):
3731 """SetToolLongHelp(self, int id, String helpString)"""
3732 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3734 def GetToolLongHelp(*args
, **kwargs
):
3735 """GetToolLongHelp(self, int id) -> String"""
3736 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3738 def SetMarginsXY(*args
, **kwargs
):
3739 """SetMarginsXY(self, int x, int y)"""
3740 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3742 def SetMargins(*args
, **kwargs
):
3743 """SetMargins(self, Size size)"""
3744 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3746 def SetToolPacking(*args
, **kwargs
):
3747 """SetToolPacking(self, int packing)"""
3748 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3750 def SetToolSeparation(*args
, **kwargs
):
3751 """SetToolSeparation(self, int separation)"""
3752 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3754 def GetToolMargins(*args
, **kwargs
):
3755 """GetToolMargins(self) -> Size"""
3756 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3758 def GetMargins(*args
, **kwargs
):
3759 """GetMargins(self) -> Size"""
3760 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3762 def GetToolPacking(*args
, **kwargs
):
3763 """GetToolPacking(self) -> int"""
3764 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3766 def GetToolSeparation(*args
, **kwargs
):
3767 """GetToolSeparation(self) -> int"""
3768 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3770 def SetRows(*args
, **kwargs
):
3771 """SetRows(self, int nRows)"""
3772 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3774 def SetMaxRowsCols(*args
, **kwargs
):
3775 """SetMaxRowsCols(self, int rows, int cols)"""
3776 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3778 def GetMaxRows(*args
, **kwargs
):
3779 """GetMaxRows(self) -> int"""
3780 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3782 def GetMaxCols(*args
, **kwargs
):
3783 """GetMaxCols(self) -> int"""
3784 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3786 def SetToolBitmapSize(*args
, **kwargs
):
3787 """SetToolBitmapSize(self, Size size)"""
3788 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3790 def GetToolBitmapSize(*args
, **kwargs
):
3791 """GetToolBitmapSize(self) -> Size"""
3792 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3794 def GetToolSize(*args
, **kwargs
):
3795 """GetToolSize(self) -> Size"""
3796 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3798 def FindToolForPosition(*args
, **kwargs
):
3799 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3800 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3802 def FindById(*args
, **kwargs
):
3803 """FindById(self, int toolid) -> ToolBarToolBase"""
3804 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3806 def IsVertical(*args
, **kwargs
):
3807 """IsVertical(self) -> bool"""
3808 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3811 class ToolBarBasePtr(ToolBarBase
):
3812 def __init__(self
, this
):
3814 if not hasattr(self
,"thisown"): self
.thisown
= 0
3815 self
.__class
__ = ToolBarBase
3816 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3818 class ToolBar(ToolBarBase
):
3820 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3821 def __init__(self
, *args
, **kwargs
):
3823 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3824 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3825 String name=wxPyToolBarNameStr) -> ToolBar
3827 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3828 self
.this
= newobj
.this
3831 self
._setOORInfo
(self
)
3833 def Create(*args
, **kwargs
):
3835 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3836 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3837 String name=wxPyToolBarNameStr) -> bool
3839 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3841 def FindToolForPosition(*args
, **kwargs
):
3842 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3843 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3845 def GetClassDefaultAttributes(*args
, **kwargs
):
3847 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3849 Get the default attributes for this class. This is useful if you want
3850 to use the same font or colour in your own control as in a standard
3851 control -- which is a much better idea than hard coding specific
3852 colours or fonts which might look completely out of place on the
3853 user's system, especially if it uses themes.
3855 The variant parameter is only relevant under Mac currently and is
3856 ignore under other platforms. Under Mac, it will change the size of
3857 the returned font. See `wx.Window.SetWindowVariant` for more about
3860 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3862 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3864 class ToolBarPtr(ToolBar
):
3865 def __init__(self
, this
):
3867 if not hasattr(self
,"thisown"): self
.thisown
= 0
3868 self
.__class
__ = ToolBar
3869 _controls_
.ToolBar_swigregister(ToolBarPtr
)
3871 def PreToolBar(*args
, **kwargs
):
3872 """PreToolBar() -> ToolBar"""
3873 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
3877 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
3879 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3881 Get the default attributes for this class. This is useful if you want
3882 to use the same font or colour in your own control as in a standard
3883 control -- which is a much better idea than hard coding specific
3884 colours or fonts which might look completely out of place on the
3885 user's system, especially if it uses themes.
3887 The variant parameter is only relevant under Mac currently and is
3888 ignore under other platforms. Under Mac, it will change the size of
3889 the returned font. See `wx.Window.SetWindowVariant` for more about
3892 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
3894 #---------------------------------------------------------------------------
3896 LC_VRULES
= _controls_
.LC_VRULES
3897 LC_HRULES
= _controls_
.LC_HRULES
3898 LC_ICON
= _controls_
.LC_ICON
3899 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
3900 LC_LIST
= _controls_
.LC_LIST
3901 LC_REPORT
= _controls_
.LC_REPORT
3902 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
3903 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
3904 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
3905 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
3906 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
3907 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
3908 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
3909 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
3910 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
3911 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
3912 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
3913 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
3914 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
3915 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
3916 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
3917 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
3918 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
3919 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
3920 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
3921 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
3922 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
3923 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
3924 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
3925 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
3926 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
3927 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
3928 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
3929 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
3930 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
3931 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
3932 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
3933 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
3934 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
3935 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
3936 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
3937 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
3938 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
3939 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
3940 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
3941 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
3942 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
3943 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
3944 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
3945 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
3946 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
3947 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
3948 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
3949 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
3950 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
3951 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
3952 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
3953 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
3954 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
3955 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
3956 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
3957 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
3958 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
3959 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
3960 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
3961 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
3962 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
3963 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
3964 #---------------------------------------------------------------------------
3966 class ListItemAttr(object):
3968 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3969 def __init__(self
, *args
, **kwargs
):
3971 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
3972 Font font=wxNullFont) -> ListItemAttr
3974 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
3975 self
.this
= newobj
.this
3978 def SetTextColour(*args
, **kwargs
):
3979 """SetTextColour(self, Colour colText)"""
3980 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
3982 def SetBackgroundColour(*args
, **kwargs
):
3983 """SetBackgroundColour(self, Colour colBack)"""
3984 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
3986 def SetFont(*args
, **kwargs
):
3987 """SetFont(self, Font font)"""
3988 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
3990 def HasTextColour(*args
, **kwargs
):
3991 """HasTextColour(self) -> bool"""
3992 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
3994 def HasBackgroundColour(*args
, **kwargs
):
3995 """HasBackgroundColour(self) -> bool"""
3996 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
3998 def HasFont(*args
, **kwargs
):
3999 """HasFont(self) -> bool"""
4000 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4002 def GetTextColour(*args
, **kwargs
):
4003 """GetTextColour(self) -> Colour"""
4004 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4006 def GetBackgroundColour(*args
, **kwargs
):
4007 """GetBackgroundColour(self) -> Colour"""
4008 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4010 def GetFont(*args
, **kwargs
):
4011 """GetFont(self) -> Font"""
4012 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4014 def Destroy(*args
, **kwargs
):
4016 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4019 class ListItemAttrPtr(ListItemAttr
):
4020 def __init__(self
, this
):
4022 if not hasattr(self
,"thisown"): self
.thisown
= 0
4023 self
.__class
__ = ListItemAttr
4024 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4025 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4027 #---------------------------------------------------------------------------
4029 class ListItem(_core
.Object
):
4031 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4032 def __init__(self
, *args
, **kwargs
):
4033 """__init__(self) -> ListItem"""
4034 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4035 self
.this
= newobj
.this
4038 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4041 if self
.thisown
: destroy(self
)
4044 def Clear(*args
, **kwargs
):
4046 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4048 def ClearAttributes(*args
, **kwargs
):
4049 """ClearAttributes(self)"""
4050 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4052 def SetMask(*args
, **kwargs
):
4053 """SetMask(self, long mask)"""
4054 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4056 def SetId(*args
, **kwargs
):
4057 """SetId(self, long id)"""
4058 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4060 def SetColumn(*args
, **kwargs
):
4061 """SetColumn(self, int col)"""
4062 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4064 def SetState(*args
, **kwargs
):
4065 """SetState(self, long state)"""
4066 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4068 def SetStateMask(*args
, **kwargs
):
4069 """SetStateMask(self, long stateMask)"""
4070 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4072 def SetText(*args
, **kwargs
):
4073 """SetText(self, String text)"""
4074 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4076 def SetImage(*args
, **kwargs
):
4077 """SetImage(self, int image)"""
4078 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4080 def SetData(*args
, **kwargs
):
4081 """SetData(self, long data)"""
4082 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4084 def SetWidth(*args
, **kwargs
):
4085 """SetWidth(self, int width)"""
4086 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4088 def SetAlign(*args
, **kwargs
):
4089 """SetAlign(self, int align)"""
4090 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4092 def SetTextColour(*args
, **kwargs
):
4093 """SetTextColour(self, Colour colText)"""
4094 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4096 def SetBackgroundColour(*args
, **kwargs
):
4097 """SetBackgroundColour(self, Colour colBack)"""
4098 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4100 def SetFont(*args
, **kwargs
):
4101 """SetFont(self, Font font)"""
4102 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4104 def GetMask(*args
, **kwargs
):
4105 """GetMask(self) -> long"""
4106 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4108 def GetId(*args
, **kwargs
):
4109 """GetId(self) -> long"""
4110 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4112 def GetColumn(*args
, **kwargs
):
4113 """GetColumn(self) -> int"""
4114 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4116 def GetState(*args
, **kwargs
):
4117 """GetState(self) -> long"""
4118 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4120 def GetText(*args
, **kwargs
):
4121 """GetText(self) -> String"""
4122 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4124 def GetImage(*args
, **kwargs
):
4125 """GetImage(self) -> int"""
4126 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4128 def GetData(*args
, **kwargs
):
4129 """GetData(self) -> long"""
4130 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4132 def GetWidth(*args
, **kwargs
):
4133 """GetWidth(self) -> int"""
4134 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4136 def GetAlign(*args
, **kwargs
):
4137 """GetAlign(self) -> int"""
4138 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4140 def GetAttributes(*args
, **kwargs
):
4141 """GetAttributes(self) -> ListItemAttr"""
4142 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4144 def HasAttributes(*args
, **kwargs
):
4145 """HasAttributes(self) -> bool"""
4146 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4148 def GetTextColour(*args
, **kwargs
):
4149 """GetTextColour(self) -> Colour"""
4150 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4152 def GetBackgroundColour(*args
, **kwargs
):
4153 """GetBackgroundColour(self) -> Colour"""
4154 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4156 def GetFont(*args
, **kwargs
):
4157 """GetFont(self) -> Font"""
4158 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4160 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4161 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4162 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4163 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4164 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4165 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4166 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4167 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4168 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4169 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4171 class ListItemPtr(ListItem
):
4172 def __init__(self
, this
):
4174 if not hasattr(self
,"thisown"): self
.thisown
= 0
4175 self
.__class
__ = ListItem
4176 _controls_
.ListItem_swigregister(ListItemPtr
)
4178 #---------------------------------------------------------------------------
4180 class ListEvent(_core
.NotifyEvent
):
4182 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4183 def __init__(self
, *args
, **kwargs
):
4184 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4185 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4186 self
.this
= newobj
.this
4189 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4190 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4191 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4192 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4193 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4194 m_item
= property(_controls_
.ListEvent_m_item_get
)
4195 def GetKeyCode(*args
, **kwargs
):
4196 """GetKeyCode(self) -> int"""
4197 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4199 GetCode
= GetKeyCode
4200 def GetIndex(*args
, **kwargs
):
4201 """GetIndex(self) -> long"""
4202 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4204 def GetColumn(*args
, **kwargs
):
4205 """GetColumn(self) -> int"""
4206 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4208 def GetPoint(*args
, **kwargs
):
4209 """GetPoint(self) -> Point"""
4210 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4212 GetPosition
= GetPoint
4213 def GetLabel(*args
, **kwargs
):
4214 """GetLabel(self) -> String"""
4215 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4217 def GetText(*args
, **kwargs
):
4218 """GetText(self) -> String"""
4219 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4221 def GetImage(*args
, **kwargs
):
4222 """GetImage(self) -> int"""
4223 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4225 def GetData(*args
, **kwargs
):
4226 """GetData(self) -> long"""
4227 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4229 def GetMask(*args
, **kwargs
):
4230 """GetMask(self) -> long"""
4231 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4233 def GetItem(*args
, **kwargs
):
4234 """GetItem(self) -> ListItem"""
4235 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4237 def GetCacheFrom(*args
, **kwargs
):
4238 """GetCacheFrom(self) -> long"""
4239 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4241 def GetCacheTo(*args
, **kwargs
):
4242 """GetCacheTo(self) -> long"""
4243 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4245 def IsEditCancelled(*args
, **kwargs
):
4246 """IsEditCancelled(self) -> bool"""
4247 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4249 def SetEditCanceled(*args
, **kwargs
):
4250 """SetEditCanceled(self, bool editCancelled)"""
4251 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4254 class ListEventPtr(ListEvent
):
4255 def __init__(self
, this
):
4257 if not hasattr(self
,"thisown"): self
.thisown
= 0
4258 self
.__class
__ = ListEvent
4259 _controls_
.ListEvent_swigregister(ListEventPtr
)
4261 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4262 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4263 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4264 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4265 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4266 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4267 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4268 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4269 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4270 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4271 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4272 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4273 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4274 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4275 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4276 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4277 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4278 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4279 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4280 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4281 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4282 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4283 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4284 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4285 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4286 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4287 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4288 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4289 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4290 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4291 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4292 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4293 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4294 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4295 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4296 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4297 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4298 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4299 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4300 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4301 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4302 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4303 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4304 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4306 EVT_LIST_GET_INFO
= wx
._deprecated
(EVT_LIST_GET_INFO
)
4307 EVT_LIST_SET_INFO
= wx
._deprecated
(EVT_LIST_SET_INFO
)
4309 #---------------------------------------------------------------------------
4311 class ListCtrl(_core
.Control
):
4313 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4314 def __init__(self
, *args
, **kwargs
):
4316 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4317 Size size=DefaultSize, long style=LC_ICON,
4318 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4320 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4321 self
.this
= newobj
.this
4324 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4326 def Create(*args
, **kwargs
):
4328 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4329 Size size=DefaultSize, long style=LC_ICON,
4330 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4332 Do the 2nd phase and create the GUI control.
4334 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4336 def _setCallbackInfo(*args
, **kwargs
):
4337 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4338 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4340 def SetForegroundColour(*args
, **kwargs
):
4341 """SetForegroundColour(self, Colour col) -> bool"""
4342 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4344 def SetBackgroundColour(*args
, **kwargs
):
4345 """SetBackgroundColour(self, Colour col) -> bool"""
4346 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4348 def GetColumn(*args
, **kwargs
):
4349 """GetColumn(self, int col) -> ListItem"""
4350 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4351 if val
is not None: val
.thisown
= 1
4354 def SetColumn(*args
, **kwargs
):
4355 """SetColumn(self, int col, ListItem item) -> bool"""
4356 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4358 def GetColumnWidth(*args
, **kwargs
):
4359 """GetColumnWidth(self, int col) -> int"""
4360 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4362 def SetColumnWidth(*args
, **kwargs
):
4363 """SetColumnWidth(self, int col, int width) -> bool"""
4364 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4366 def GetCountPerPage(*args
, **kwargs
):
4367 """GetCountPerPage(self) -> int"""
4368 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4370 def GetViewRect(*args
, **kwargs
):
4371 """GetViewRect(self) -> Rect"""
4372 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4374 def GetItem(*args
, **kwargs
):
4375 """GetItem(self, long itemId, int col=0) -> ListItem"""
4376 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4377 if val
is not None: val
.thisown
= 1
4380 def SetItem(*args
, **kwargs
):
4381 """SetItem(self, ListItem info) -> bool"""
4382 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4384 def SetStringItem(*args
, **kwargs
):
4385 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4386 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4388 def GetItemState(*args
, **kwargs
):
4389 """GetItemState(self, long item, long stateMask) -> int"""
4390 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4392 def SetItemState(*args
, **kwargs
):
4393 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4394 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4396 def SetItemImage(*args
, **kwargs
):
4397 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4398 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4400 def GetItemText(*args
, **kwargs
):
4401 """GetItemText(self, long item) -> String"""
4402 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4404 def SetItemText(*args
, **kwargs
):
4405 """SetItemText(self, long item, String str)"""
4406 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4408 def GetItemData(*args
, **kwargs
):
4409 """GetItemData(self, long item) -> long"""
4410 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4412 def SetItemData(*args
, **kwargs
):
4413 """SetItemData(self, long item, long data) -> bool"""
4414 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4416 def GetItemPosition(*args
, **kwargs
):
4417 """GetItemPosition(self, long item) -> Point"""
4418 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4420 def GetItemRect(*args
, **kwargs
):
4421 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4422 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4424 def SetItemPosition(*args
, **kwargs
):
4425 """SetItemPosition(self, long item, Point pos) -> bool"""
4426 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4428 def GetItemCount(*args
, **kwargs
):
4429 """GetItemCount(self) -> int"""
4430 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4432 def GetColumnCount(*args
, **kwargs
):
4433 """GetColumnCount(self) -> int"""
4434 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4436 def GetItemSpacing(*args
, **kwargs
):
4437 """GetItemSpacing(self) -> Size"""
4438 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4440 def SetItemSpacing(*args
, **kwargs
):
4441 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4442 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4444 def GetSelectedItemCount(*args
, **kwargs
):
4445 """GetSelectedItemCount(self) -> int"""
4446 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4448 def GetTextColour(*args
, **kwargs
):
4449 """GetTextColour(self) -> Colour"""
4450 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4452 def SetTextColour(*args
, **kwargs
):
4453 """SetTextColour(self, Colour col)"""
4454 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4456 def GetTopItem(*args
, **kwargs
):
4457 """GetTopItem(self) -> long"""
4458 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4460 def SetSingleStyle(*args
, **kwargs
):
4461 """SetSingleStyle(self, long style, bool add=True)"""
4462 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4464 def SetWindowStyleFlag(*args
, **kwargs
):
4466 SetWindowStyleFlag(self, long style)
4468 Sets the style of the window. Please note that some styles cannot be
4469 changed after the window creation and that Refresh() might need to be
4470 called after changing the others for the change to take place
4473 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4475 def GetNextItem(*args
, **kwargs
):
4476 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4477 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4479 def GetImageList(*args
, **kwargs
):
4480 """GetImageList(self, int which) -> ImageList"""
4481 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4483 def SetImageList(*args
, **kwargs
):
4484 """SetImageList(self, ImageList imageList, int which)"""
4485 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4487 def AssignImageList(*args
, **kwargs
):
4488 """AssignImageList(self, ImageList imageList, int which)"""
4489 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4491 def InReportView(*args
, **kwargs
):
4492 """InReportView(self) -> bool"""
4493 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4495 def IsVirtual(*args
, **kwargs
):
4496 """IsVirtual(self) -> bool"""
4497 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4499 def RefreshItem(*args
, **kwargs
):
4500 """RefreshItem(self, long item)"""
4501 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4503 def RefreshItems(*args
, **kwargs
):
4504 """RefreshItems(self, long itemFrom, long itemTo)"""
4505 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4507 def Arrange(*args
, **kwargs
):
4508 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4509 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4511 def DeleteItem(*args
, **kwargs
):
4512 """DeleteItem(self, long item) -> bool"""
4513 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4515 def DeleteAllItems(*args
, **kwargs
):
4516 """DeleteAllItems(self) -> bool"""
4517 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4519 def DeleteColumn(*args
, **kwargs
):
4520 """DeleteColumn(self, int col) -> bool"""
4521 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4523 def DeleteAllColumns(*args
, **kwargs
):
4524 """DeleteAllColumns(self) -> bool"""
4525 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4527 def ClearAll(*args
, **kwargs
):
4528 """ClearAll(self)"""
4529 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4531 def EditLabel(*args
, **kwargs
):
4532 """EditLabel(self, long item)"""
4533 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4535 def EnsureVisible(*args
, **kwargs
):
4536 """EnsureVisible(self, long item) -> bool"""
4537 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4539 def FindItem(*args
, **kwargs
):
4540 """FindItem(self, long start, String str, bool partial=False) -> long"""
4541 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4543 def FindItemData(*args
, **kwargs
):
4544 """FindItemData(self, long start, long data) -> long"""
4545 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4547 def FindItemAtPos(*args
, **kwargs
):
4548 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4549 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4551 def HitTest(*args
, **kwargs
):
4553 HitTest(Point point) -> (item, where)
4555 Determines which item (if any) is at the specified point, giving
4556 in the second return value (see wxLIST_HITTEST_... flags.)
4558 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4560 def InsertItem(*args
, **kwargs
):
4561 """InsertItem(self, ListItem info) -> long"""
4562 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4564 def InsertStringItem(*args
, **kwargs
):
4565 """InsertStringItem(self, long index, String label) -> long"""
4566 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4568 def InsertImageItem(*args
, **kwargs
):
4569 """InsertImageItem(self, long index, int imageIndex) -> long"""
4570 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4572 def InsertImageStringItem(*args
, **kwargs
):
4573 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4574 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4576 def InsertColumnInfo(*args
, **kwargs
):
4577 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4578 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4580 def InsertColumn(*args
, **kwargs
):
4582 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4583 int width=-1) -> long
4585 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4587 def SetItemCount(*args
, **kwargs
):
4588 """SetItemCount(self, long count)"""
4589 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4591 def ScrollList(*args
, **kwargs
):
4592 """ScrollList(self, int dx, int dy) -> bool"""
4593 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4595 def SetItemTextColour(*args
, **kwargs
):
4596 """SetItemTextColour(self, long item, Colour col)"""
4597 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4599 def GetItemTextColour(*args
, **kwargs
):
4600 """GetItemTextColour(self, long item) -> Colour"""
4601 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4603 def SetItemBackgroundColour(*args
, **kwargs
):
4604 """SetItemBackgroundColour(self, long item, Colour col)"""
4605 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4607 def GetItemBackgroundColour(*args
, **kwargs
):
4608 """GetItemBackgroundColour(self, long item) -> Colour"""
4609 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4613 def Select(self
, idx
, on
=1):
4614 '''[de]select an item'''
4615 if on
: state
= wx
.LIST_STATE_SELECTED
4617 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4619 def Focus(self
, idx
):
4620 '''Focus and show the given item'''
4621 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4622 self
.EnsureVisible(idx
)
4624 def GetFocusedItem(self
):
4625 '''get the currently focused item or -1 if none'''
4626 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4628 def GetFirstSelected(self
, *args
):
4629 '''return first selected item, or -1 when none'''
4630 return self
.GetNextSelected(-1)
4632 def GetNextSelected(self
, item
):
4633 '''return subsequent selected items, or -1 when no more'''
4634 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4636 def IsSelected(self
, idx
):
4637 '''return True if the item is selected'''
4638 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4640 def SetColumnImage(self
, col
, image
):
4641 item
= self
.GetColumn(col
)
4642 # preserve all other attributes too
4643 item
.SetMask( wx
.LIST_MASK_STATE |
4645 wx
.LIST_MASK_IMAGE |
4648 wx
.LIST_MASK_WIDTH |
4649 wx
.LIST_MASK_FORMAT
)
4650 item
.SetImage(image
)
4651 self
.SetColumn(col
, item
)
4653 def ClearColumnImage(self
, col
):
4654 self
.SetColumnImage(col
, -1)
4656 def Append(self
, entry
):
4657 '''Append an item to the list control. The entry parameter should be a
4658 sequence with an item for each column'''
4664 pos
= self
.GetItemCount()
4665 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4666 for i
in range(1, len(entry
)):
4667 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4670 def SortItems(*args
, **kwargs
):
4671 """SortItems(self, PyObject func) -> bool"""
4672 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4674 def GetMainWindow(*args
, **kwargs
):
4675 """GetMainWindow(self) -> Window"""
4676 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4678 def GetClassDefaultAttributes(*args
, **kwargs
):
4680 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4682 Get the default attributes for this class. This is useful if you want
4683 to use the same font or colour in your own control as in a standard
4684 control -- which is a much better idea than hard coding specific
4685 colours or fonts which might look completely out of place on the
4686 user's system, especially if it uses themes.
4688 The variant parameter is only relevant under Mac currently and is
4689 ignore under other platforms. Under Mac, it will change the size of
4690 the returned font. See `wx.Window.SetWindowVariant` for more about
4693 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4695 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4697 class ListCtrlPtr(ListCtrl
):
4698 def __init__(self
, this
):
4700 if not hasattr(self
,"thisown"): self
.thisown
= 0
4701 self
.__class
__ = ListCtrl
4702 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4704 def PreListCtrl(*args
, **kwargs
):
4705 """PreListCtrl() -> ListCtrl"""
4706 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4710 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4712 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4714 Get the default attributes for this class. This is useful if you want
4715 to use the same font or colour in your own control as in a standard
4716 control -- which is a much better idea than hard coding specific
4717 colours or fonts which might look completely out of place on the
4718 user's system, especially if it uses themes.
4720 The variant parameter is only relevant under Mac currently and is
4721 ignore under other platforms. Under Mac, it will change the size of
4722 the returned font. See `wx.Window.SetWindowVariant` for more about
4725 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4727 #---------------------------------------------------------------------------
4729 class ListView(ListCtrl
):
4731 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4732 def __init__(self
, *args
, **kwargs
):
4734 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4735 Size size=DefaultSize, long style=LC_REPORT,
4736 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4738 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4739 self
.this
= newobj
.this
4742 self
._setOORInfo
(self
)
4744 def Create(*args
, **kwargs
):
4746 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4747 Size size=DefaultSize, long style=LC_REPORT,
4748 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4750 Do the 2nd phase and create the GUI control.
4752 return _controls_
.ListView_Create(*args
, **kwargs
)
4754 def Select(*args
, **kwargs
):
4755 """Select(self, long n, bool on=True)"""
4756 return _controls_
.ListView_Select(*args
, **kwargs
)
4758 def Focus(*args
, **kwargs
):
4759 """Focus(self, long index)"""
4760 return _controls_
.ListView_Focus(*args
, **kwargs
)
4762 def GetFocusedItem(*args
, **kwargs
):
4763 """GetFocusedItem(self) -> long"""
4764 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4766 def GetNextSelected(*args
, **kwargs
):
4767 """GetNextSelected(self, long item) -> long"""
4768 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4770 def GetFirstSelected(*args
, **kwargs
):
4771 """GetFirstSelected(self) -> long"""
4772 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4774 def IsSelected(*args
, **kwargs
):
4775 """IsSelected(self, long index) -> bool"""
4776 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4778 def SetColumnImage(*args
, **kwargs
):
4779 """SetColumnImage(self, int col, int image)"""
4780 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4782 def ClearColumnImage(*args
, **kwargs
):
4783 """ClearColumnImage(self, int col)"""
4784 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4787 class ListViewPtr(ListView
):
4788 def __init__(self
, this
):
4790 if not hasattr(self
,"thisown"): self
.thisown
= 0
4791 self
.__class
__ = ListView
4792 _controls_
.ListView_swigregister(ListViewPtr
)
4794 def PreListView(*args
, **kwargs
):
4795 """PreListView() -> ListView"""
4796 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4800 #---------------------------------------------------------------------------
4802 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4803 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4804 TR_NO_LINES
= _controls_
.TR_NO_LINES
4805 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4806 TR_SINGLE
= _controls_
.TR_SINGLE
4807 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4808 TR_EXTENDED
= _controls_
.TR_EXTENDED
4809 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4810 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4811 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4812 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4813 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4814 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4815 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4816 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4817 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4818 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
4819 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
4820 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
4821 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
4822 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
4823 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
4824 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
4825 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
4826 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
4827 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
4828 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
4829 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
4830 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
4831 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
4832 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
4833 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
4834 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
4835 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
4836 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
4837 #---------------------------------------------------------------------------
4839 class TreeItemId(object):
4841 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4842 def __init__(self
, *args
, **kwargs
):
4843 """__init__(self) -> TreeItemId"""
4844 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
4845 self
.this
= newobj
.this
4848 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
4851 if self
.thisown
: destroy(self
)
4854 def IsOk(*args
, **kwargs
):
4855 """IsOk(self) -> bool"""
4856 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
4858 def __eq__(*args
, **kwargs
):
4859 """__eq__(self, TreeItemId other) -> bool"""
4860 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
4862 def __ne__(*args
, **kwargs
):
4863 """__ne__(self, TreeItemId other) -> bool"""
4864 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
4866 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
4868 def __nonzero__(self
): return self
.IsOk()
4870 class TreeItemIdPtr(TreeItemId
):
4871 def __init__(self
, this
):
4873 if not hasattr(self
,"thisown"): self
.thisown
= 0
4874 self
.__class
__ = TreeItemId
4875 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
4876 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
4878 class TreeItemData(object):
4880 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4881 def __init__(self
, *args
, **kwargs
):
4882 """__init__(self, PyObject obj=None) -> TreeItemData"""
4883 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
4884 self
.this
= newobj
.this
4887 def GetData(*args
, **kwargs
):
4888 """GetData(self) -> PyObject"""
4889 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
4891 def SetData(*args
, **kwargs
):
4892 """SetData(self, PyObject obj)"""
4893 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
4895 def GetId(*args
, **kwargs
):
4896 """GetId(self) -> TreeItemId"""
4897 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
4899 def SetId(*args
, **kwargs
):
4900 """SetId(self, TreeItemId id)"""
4901 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
4903 def Destroy(*args
, **kwargs
):
4905 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
4908 class TreeItemDataPtr(TreeItemData
):
4909 def __init__(self
, this
):
4911 if not hasattr(self
,"thisown"): self
.thisown
= 0
4912 self
.__class
__ = TreeItemData
4913 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
4915 #---------------------------------------------------------------------------
4917 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
4918 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
4919 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
4920 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
4921 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
4922 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
4923 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
4924 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
4925 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
4926 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
4927 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
4928 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
4929 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
4930 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
4931 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
4932 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
4933 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
4934 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
4935 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
4936 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
4937 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
4938 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
4939 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
4940 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
4941 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
4942 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
4943 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
4944 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
4945 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
4946 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
4947 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
4948 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
4949 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
4950 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
4951 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
4952 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
4953 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
4954 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
4955 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
4956 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
4958 class TreeEvent(_core
.NotifyEvent
):
4960 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4961 def __init__(self
, *args
, **kwargs
):
4962 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
4963 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
4964 self
.this
= newobj
.this
4967 def GetItem(*args
, **kwargs
):
4968 """GetItem(self) -> TreeItemId"""
4969 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
4971 def SetItem(*args
, **kwargs
):
4972 """SetItem(self, TreeItemId item)"""
4973 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
4975 def GetOldItem(*args
, **kwargs
):
4976 """GetOldItem(self) -> TreeItemId"""
4977 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
4979 def SetOldItem(*args
, **kwargs
):
4980 """SetOldItem(self, TreeItemId item)"""
4981 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
4983 def GetPoint(*args
, **kwargs
):
4984 """GetPoint(self) -> Point"""
4985 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
4987 def SetPoint(*args
, **kwargs
):
4988 """SetPoint(self, Point pt)"""
4989 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
4991 def GetKeyEvent(*args
, **kwargs
):
4992 """GetKeyEvent(self) -> KeyEvent"""
4993 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
4995 def GetKeyCode(*args
, **kwargs
):
4996 """GetKeyCode(self) -> int"""
4997 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
4999 def SetKeyEvent(*args
, **kwargs
):
5000 """SetKeyEvent(self, KeyEvent evt)"""
5001 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5003 def GetLabel(*args
, **kwargs
):
5004 """GetLabel(self) -> String"""
5005 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5007 def SetLabel(*args
, **kwargs
):
5008 """SetLabel(self, String label)"""
5009 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5011 def IsEditCancelled(*args
, **kwargs
):
5012 """IsEditCancelled(self) -> bool"""
5013 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5015 def SetEditCanceled(*args
, **kwargs
):
5016 """SetEditCanceled(self, bool editCancelled)"""
5017 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5019 def SetToolTip(*args
, **kwargs
):
5020 """SetToolTip(self, String toolTip)"""
5021 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5024 class TreeEventPtr(TreeEvent
):
5025 def __init__(self
, this
):
5027 if not hasattr(self
,"thisown"): self
.thisown
= 0
5028 self
.__class
__ = TreeEvent
5029 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5031 #---------------------------------------------------------------------------
5033 class TreeCtrl(_core
.Control
):
5035 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5036 def __init__(self
, *args
, **kwargs
):
5038 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5039 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5040 Validator validator=DefaultValidator,
5041 String name=TreeCtrlNameStr) -> TreeCtrl
5043 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5044 self
.this
= newobj
.this
5047 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5049 def Create(*args
, **kwargs
):
5051 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5052 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5053 Validator validator=DefaultValidator,
5054 String name=TreeCtrlNameStr) -> bool
5056 Do the 2nd phase and create the GUI control.
5058 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5060 def _setCallbackInfo(*args
, **kwargs
):
5061 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5062 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5064 def GetCount(*args
, **kwargs
):
5065 """GetCount(self) -> size_t"""
5066 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5068 def GetIndent(*args
, **kwargs
):
5069 """GetIndent(self) -> unsigned int"""
5070 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5072 def SetIndent(*args
, **kwargs
):
5073 """SetIndent(self, unsigned int indent)"""
5074 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5076 def GetSpacing(*args
, **kwargs
):
5077 """GetSpacing(self) -> unsigned int"""
5078 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5080 def SetSpacing(*args
, **kwargs
):
5081 """SetSpacing(self, unsigned int spacing)"""
5082 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5084 def GetImageList(*args
, **kwargs
):
5085 """GetImageList(self) -> ImageList"""
5086 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5088 def GetStateImageList(*args
, **kwargs
):
5089 """GetStateImageList(self) -> ImageList"""
5090 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5092 def SetImageList(*args
, **kwargs
):
5093 """SetImageList(self, ImageList imageList)"""
5094 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5096 def SetStateImageList(*args
, **kwargs
):
5097 """SetStateImageList(self, ImageList imageList)"""
5098 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5100 def AssignImageList(*args
, **kwargs
):
5101 """AssignImageList(self, ImageList imageList)"""
5102 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5104 def AssignStateImageList(*args
, **kwargs
):
5105 """AssignStateImageList(self, ImageList imageList)"""
5106 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5108 def GetItemText(*args
, **kwargs
):
5109 """GetItemText(self, TreeItemId item) -> String"""
5110 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5112 def GetItemImage(*args
, **kwargs
):
5113 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5114 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5116 def GetItemData(*args
, **kwargs
):
5117 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5118 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5120 def GetItemPyData(*args
, **kwargs
):
5121 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5122 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5124 GetPyData
= GetItemPyData
5125 def GetItemTextColour(*args
, **kwargs
):
5126 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5127 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5129 def GetItemBackgroundColour(*args
, **kwargs
):
5130 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5131 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5133 def GetItemFont(*args
, **kwargs
):
5134 """GetItemFont(self, TreeItemId item) -> Font"""
5135 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5137 def SetItemText(*args
, **kwargs
):
5138 """SetItemText(self, TreeItemId item, String text)"""
5139 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5141 def SetItemImage(*args
, **kwargs
):
5142 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5143 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5145 def SetItemData(*args
, **kwargs
):
5146 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5147 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5149 def SetItemPyData(*args
, **kwargs
):
5150 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5151 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5153 SetPyData
= SetItemPyData
5154 def SetItemHasChildren(*args
, **kwargs
):
5155 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5156 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5158 def SetItemBold(*args
, **kwargs
):
5159 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5160 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5162 def SetItemTextColour(*args
, **kwargs
):
5163 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5164 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5166 def SetItemBackgroundColour(*args
, **kwargs
):
5167 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5168 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5170 def SetItemFont(*args
, **kwargs
):
5171 """SetItemFont(self, TreeItemId item, Font font)"""
5172 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5174 def IsVisible(*args
, **kwargs
):
5175 """IsVisible(self, TreeItemId item) -> bool"""
5176 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5178 def ItemHasChildren(*args
, **kwargs
):
5179 """ItemHasChildren(self, TreeItemId item) -> bool"""
5180 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5182 def IsExpanded(*args
, **kwargs
):
5183 """IsExpanded(self, TreeItemId item) -> bool"""
5184 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5186 def IsSelected(*args
, **kwargs
):
5187 """IsSelected(self, TreeItemId item) -> bool"""
5188 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5190 def IsBold(*args
, **kwargs
):
5191 """IsBold(self, TreeItemId item) -> bool"""
5192 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5194 def GetChildrenCount(*args
, **kwargs
):
5195 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5196 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5198 def GetRootItem(*args
, **kwargs
):
5199 """GetRootItem(self) -> TreeItemId"""
5200 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5202 def GetSelection(*args
, **kwargs
):
5203 """GetSelection(self) -> TreeItemId"""
5204 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5206 def GetSelections(*args
, **kwargs
):
5207 """GetSelections(self) -> PyObject"""
5208 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5210 def GetItemParent(*args
, **kwargs
):
5211 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5212 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5214 def GetFirstChild(*args
, **kwargs
):
5215 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5216 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5218 def GetNextChild(*args
, **kwargs
):
5219 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5220 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5222 def GetLastChild(*args
, **kwargs
):
5223 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5224 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5226 def GetNextSibling(*args
, **kwargs
):
5227 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5228 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5230 def GetPrevSibling(*args
, **kwargs
):
5231 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5232 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5234 def GetFirstVisibleItem(*args
, **kwargs
):
5235 """GetFirstVisibleItem(self) -> TreeItemId"""
5236 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5238 def GetNextVisible(*args
, **kwargs
):
5239 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5240 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5242 def GetPrevVisible(*args
, **kwargs
):
5243 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5244 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5246 def AddRoot(*args
, **kwargs
):
5247 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5248 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5250 def PrependItem(*args
, **kwargs
):
5252 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5253 TreeItemData data=None) -> TreeItemId
5255 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5257 def InsertItem(*args
, **kwargs
):
5259 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5260 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5262 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5264 def InsertItemBefore(*args
, **kwargs
):
5266 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5267 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5269 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5271 def AppendItem(*args
, **kwargs
):
5273 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5274 TreeItemData data=None) -> TreeItemId
5276 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5278 def Delete(*args
, **kwargs
):
5279 """Delete(self, TreeItemId item)"""
5280 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5282 def DeleteChildren(*args
, **kwargs
):
5283 """DeleteChildren(self, TreeItemId item)"""
5284 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5286 def DeleteAllItems(*args
, **kwargs
):
5287 """DeleteAllItems(self)"""
5288 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5290 def Expand(*args
, **kwargs
):
5291 """Expand(self, TreeItemId item)"""
5292 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5294 def Collapse(*args
, **kwargs
):
5295 """Collapse(self, TreeItemId item)"""
5296 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5298 def CollapseAndReset(*args
, **kwargs
):
5299 """CollapseAndReset(self, TreeItemId item)"""
5300 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5302 def Toggle(*args
, **kwargs
):
5303 """Toggle(self, TreeItemId item)"""
5304 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5306 def Unselect(*args
, **kwargs
):
5307 """Unselect(self)"""
5308 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5310 def UnselectItem(*args
, **kwargs
):
5311 """UnselectItem(self, TreeItemId item)"""
5312 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5314 def UnselectAll(*args
, **kwargs
):
5315 """UnselectAll(self)"""
5316 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5318 def SelectItem(*args
, **kwargs
):
5319 """SelectItem(self, TreeItemId item, bool select=True)"""
5320 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5322 def ToggleItemSelection(*args
, **kwargs
):
5323 """ToggleItemSelection(self, TreeItemId item)"""
5324 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5326 def EnsureVisible(*args
, **kwargs
):
5327 """EnsureVisible(self, TreeItemId item)"""
5328 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5330 def ScrollTo(*args
, **kwargs
):
5331 """ScrollTo(self, TreeItemId item)"""
5332 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5334 def EditLabel(*args
, **kwargs
):
5335 """EditLabel(self, TreeItemId item)"""
5336 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5338 def GetEditControl(*args
, **kwargs
):
5339 """GetEditControl(self) -> TextCtrl"""
5340 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5342 def SortChildren(*args
, **kwargs
):
5343 """SortChildren(self, TreeItemId item)"""
5344 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5346 def HitTest(*args
, **kwargs
):
5348 HitTest(Point point) -> (item, where)
5350 Determine which item (if any) belongs the given point. The coordinates
5351 specified are relative to the client area of tree ctrl and the where return
5352 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5355 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5357 def GetBoundingRect(*args
, **kwargs
):
5358 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5359 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5361 def GetClassDefaultAttributes(*args
, **kwargs
):
5363 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5365 Get the default attributes for this class. This is useful if you want
5366 to use the same font or colour in your own control as in a standard
5367 control -- which is a much better idea than hard coding specific
5368 colours or fonts which might look completely out of place on the
5369 user's system, especially if it uses themes.
5371 The variant parameter is only relevant under Mac currently and is
5372 ignore under other platforms. Under Mac, it will change the size of
5373 the returned font. See `wx.Window.SetWindowVariant` for more about
5376 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5378 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5380 class TreeCtrlPtr(TreeCtrl
):
5381 def __init__(self
, this
):
5383 if not hasattr(self
,"thisown"): self
.thisown
= 0
5384 self
.__class
__ = TreeCtrl
5385 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5387 def PreTreeCtrl(*args
, **kwargs
):
5388 """PreTreeCtrl() -> TreeCtrl"""
5389 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5393 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5395 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5397 Get the default attributes for this class. This is useful if you want
5398 to use the same font or colour in your own control as in a standard
5399 control -- which is a much better idea than hard coding specific
5400 colours or fonts which might look completely out of place on the
5401 user's system, especially if it uses themes.
5403 The variant parameter is only relevant under Mac currently and is
5404 ignore under other platforms. Under Mac, it will change the size of
5405 the returned font. See `wx.Window.SetWindowVariant` for more about
5408 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5410 #---------------------------------------------------------------------------
5412 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5413 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5414 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5415 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5416 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5417 class GenericDirCtrl(_core
.Control
):
5419 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5420 def __init__(self
, *args
, **kwargs
):
5422 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5423 Point pos=DefaultPosition, Size size=DefaultSize,
5424 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5425 String filter=EmptyString,
5426 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5428 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5429 self
.this
= newobj
.this
5432 self
._setOORInfo
(self
)
5434 def Create(*args
, **kwargs
):
5436 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5437 Point pos=DefaultPosition, Size size=DefaultSize,
5438 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5439 String filter=EmptyString,
5440 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5442 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5444 def ExpandPath(*args
, **kwargs
):
5445 """ExpandPath(self, String path) -> bool"""
5446 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5448 def GetDefaultPath(*args
, **kwargs
):
5449 """GetDefaultPath(self) -> String"""
5450 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5452 def SetDefaultPath(*args
, **kwargs
):
5453 """SetDefaultPath(self, String path)"""
5454 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5456 def GetPath(*args
, **kwargs
):
5457 """GetPath(self) -> String"""
5458 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5460 def GetFilePath(*args
, **kwargs
):
5461 """GetFilePath(self) -> String"""
5462 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5464 def SetPath(*args
, **kwargs
):
5465 """SetPath(self, String path)"""
5466 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5468 def ShowHidden(*args
, **kwargs
):
5469 """ShowHidden(self, bool show)"""
5470 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5472 def GetShowHidden(*args
, **kwargs
):
5473 """GetShowHidden(self) -> bool"""
5474 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5476 def GetFilter(*args
, **kwargs
):
5477 """GetFilter(self) -> String"""
5478 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5480 def SetFilter(*args
, **kwargs
):
5481 """SetFilter(self, String filter)"""
5482 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5484 def GetFilterIndex(*args
, **kwargs
):
5485 """GetFilterIndex(self) -> int"""
5486 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5488 def SetFilterIndex(*args
, **kwargs
):
5489 """SetFilterIndex(self, int n)"""
5490 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5492 def GetRootId(*args
, **kwargs
):
5493 """GetRootId(self) -> TreeItemId"""
5494 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5496 def GetTreeCtrl(*args
, **kwargs
):
5497 """GetTreeCtrl(self) -> TreeCtrl"""
5498 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5500 def GetFilterListCtrl(*args
, **kwargs
):
5501 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5502 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5504 def FindChild(*args
, **kwargs
):
5506 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5508 Find the child that matches the first part of 'path'. E.g. if a child
5509 path is "/usr" and 'path' is "/usr/include" then the child for
5510 /usr is returned. If the path string has been used (we're at the
5511 leaf), done is set to True.
5514 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5516 def DoResize(*args
, **kwargs
):
5517 """DoResize(self)"""
5518 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5520 def ReCreateTree(*args
, **kwargs
):
5521 """ReCreateTree(self)"""
5522 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5525 class GenericDirCtrlPtr(GenericDirCtrl
):
5526 def __init__(self
, this
):
5528 if not hasattr(self
,"thisown"): self
.thisown
= 0
5529 self
.__class
__ = GenericDirCtrl
5530 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5531 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5533 def PreGenericDirCtrl(*args
, **kwargs
):
5534 """PreGenericDirCtrl() -> GenericDirCtrl"""
5535 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5539 class DirFilterListCtrl(Choice
):
5541 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5542 def __init__(self
, *args
, **kwargs
):
5544 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5545 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5547 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5548 self
.this
= newobj
.this
5551 self
._setOORInfo
(self
)
5553 def Create(*args
, **kwargs
):
5555 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5556 Size size=DefaultSize, long style=0) -> bool
5558 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5560 def FillFilterList(*args
, **kwargs
):
5561 """FillFilterList(self, String filter, int defaultFilter)"""
5562 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5565 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5566 def __init__(self
, this
):
5568 if not hasattr(self
,"thisown"): self
.thisown
= 0
5569 self
.__class
__ = DirFilterListCtrl
5570 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5572 def PreDirFilterListCtrl(*args
, **kwargs
):
5573 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5574 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5578 #---------------------------------------------------------------------------
5580 class PyControl(_core
.Control
):
5582 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5583 def __init__(self
, *args
, **kwargs
):
5585 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5586 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5587 String name=ControlNameStr) -> PyControl
5589 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5590 self
.this
= newobj
.this
5593 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5595 def _setCallbackInfo(*args
, **kwargs
):
5596 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5597 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5599 def SetBestSize(*args
, **kwargs
):
5600 """SetBestSize(self, Size size)"""
5601 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5603 def base_DoMoveWindow(*args
, **kwargs
):
5604 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5605 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5607 def base_DoSetSize(*args
, **kwargs
):
5608 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5609 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5611 def base_DoSetClientSize(*args
, **kwargs
):
5612 """base_DoSetClientSize(self, int width, int height)"""
5613 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5615 def base_DoSetVirtualSize(*args
, **kwargs
):
5616 """base_DoSetVirtualSize(self, int x, int y)"""
5617 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5619 def base_DoGetSize(*args
, **kwargs
):
5620 """base_DoGetSize() -> (width, height)"""
5621 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5623 def base_DoGetClientSize(*args
, **kwargs
):
5624 """base_DoGetClientSize() -> (width, height)"""
5625 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5627 def base_DoGetPosition(*args
, **kwargs
):
5628 """base_DoGetPosition() -> (x,y)"""
5629 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5631 def base_DoGetVirtualSize(*args
, **kwargs
):
5632 """base_DoGetVirtualSize(self) -> Size"""
5633 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5635 def base_DoGetBestSize(*args
, **kwargs
):
5636 """base_DoGetBestSize(self) -> Size"""
5637 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5639 def base_InitDialog(*args
, **kwargs
):
5640 """base_InitDialog(self)"""
5641 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5643 def base_TransferDataToWindow(*args
, **kwargs
):
5644 """base_TransferDataToWindow(self) -> bool"""
5645 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5647 def base_TransferDataFromWindow(*args
, **kwargs
):
5648 """base_TransferDataFromWindow(self) -> bool"""
5649 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5651 def base_Validate(*args
, **kwargs
):
5652 """base_Validate(self) -> bool"""
5653 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5655 def base_AcceptsFocus(*args
, **kwargs
):
5656 """base_AcceptsFocus(self) -> bool"""
5657 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5659 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5660 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5661 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5663 def base_GetMaxSize(*args
, **kwargs
):
5664 """base_GetMaxSize(self) -> Size"""
5665 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5667 def base_AddChild(*args
, **kwargs
):
5668 """base_AddChild(self, Window child)"""
5669 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5671 def base_RemoveChild(*args
, **kwargs
):
5672 """base_RemoveChild(self, Window child)"""
5673 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5675 def base_ShouldInheritColours(*args
, **kwargs
):
5676 """base_ShouldInheritColours(self) -> bool"""
5677 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5679 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5680 """base_ApplyParentThemeBackground(self, Colour c)"""
5681 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5683 def base_GetDefaultAttributes(*args
, **kwargs
):
5684 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5685 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5688 class PyControlPtr(PyControl
):
5689 def __init__(self
, this
):
5691 if not hasattr(self
,"thisown"): self
.thisown
= 0
5692 self
.__class
__ = PyControl
5693 _controls_
.PyControl_swigregister(PyControlPtr
)
5695 def PrePyControl(*args
, **kwargs
):
5696 """PrePyControl() -> PyControl"""
5697 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5701 #---------------------------------------------------------------------------
5703 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5704 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5705 wxEVT_HELP
= _controls_
.wxEVT_HELP
5706 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5707 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5708 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5709 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5710 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5712 class HelpEvent(_core
.CommandEvent
):
5714 A help event is sent when the user has requested context-sensitive
5715 help. This can either be caused by the application requesting
5716 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5717 the system generating a WM_HELP message when the user pressed F1 or
5718 clicked on the query button in a dialog caption.
5720 A help event is sent to the window that the user clicked on, and is
5721 propagated up the window hierarchy until the event is processed or
5722 there are no more event handlers. The application should call
5723 event.GetId to check the identity of the clicked-on window, and then
5724 either show some suitable help or call event.Skip if the identifier is
5725 unrecognised. Calling Skip is important because it allows wxWindows to
5726 generate further events for ancestors of the clicked-on
5727 window. Otherwise it would be impossible to show help for container
5728 windows, since processing would stop after the first window found.
5731 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5732 def __init__(self
, *args
, **kwargs
):
5733 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5734 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5735 self
.this
= newobj
.this
5738 def GetPosition(*args
, **kwargs
):
5740 GetPosition(self) -> Point
5742 Returns the left-click position of the mouse, in screen
5743 coordinates. This allows the application to position the help
5746 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5748 def SetPosition(*args
, **kwargs
):
5750 SetPosition(self, Point pos)
5752 Sets the left-click position of the mouse, in screen coordinates.
5754 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5756 def GetLink(*args
, **kwargs
):
5758 GetLink(self) -> String
5760 Get an optional link to further help
5762 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5764 def SetLink(*args
, **kwargs
):
5766 SetLink(self, String link)
5768 Set an optional link to further help
5770 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5772 def GetTarget(*args
, **kwargs
):
5774 GetTarget(self) -> String
5776 Get an optional target to display help in. E.g. a window specification
5778 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5780 def SetTarget(*args
, **kwargs
):
5782 SetTarget(self, String target)
5784 Set an optional target to display help in. E.g. a window specification
5786 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5789 class HelpEventPtr(HelpEvent
):
5790 def __init__(self
, this
):
5792 if not hasattr(self
,"thisown"): self
.thisown
= 0
5793 self
.__class
__ = HelpEvent
5794 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5796 class ContextHelp(_core
.Object
):
5798 This class changes the cursor to a query and puts the application into
5799 a 'context-sensitive help mode'. When the user left-clicks on a window
5800 within the specified window, a ``EVT_HELP`` event is sent to that
5801 control, and the application may respond to it by popping up some
5804 There are a couple of ways to invoke this behaviour implicitly:
5806 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5807 (Windows only). This will put a question mark in the titlebar,
5808 and Windows will put the application into context-sensitive help
5809 mode automatically, with further programming.
5811 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
5812 to create a context help object. Normally you will write your
5813 application so that this button is only added to a dialog for
5814 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
5817 :see: `wx.ContextHelpButton`
5821 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5822 def __init__(self
, *args
, **kwargs
):
5824 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
5826 Constructs a context help object, calling BeginContextHelp if doNow is
5829 If window is None, the top window is used.
5831 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
5832 self
.this
= newobj
.this
5835 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
5838 if self
.thisown
: destroy(self
)
5841 def BeginContextHelp(*args
, **kwargs
):
5843 BeginContextHelp(self, Window window=None) -> bool
5845 Puts the application into context-sensitive help mode. window is the
5846 window which will be used to catch events; if NULL, the top window
5849 Returns true if the application was successfully put into
5850 context-sensitive help mode. This function only returns when the event
5853 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
5855 def EndContextHelp(*args
, **kwargs
):
5857 EndContextHelp(self) -> bool
5859 Ends context-sensitive help mode. Not normally called by the
5862 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
5865 class ContextHelpPtr(ContextHelp
):
5866 def __init__(self
, this
):
5868 if not hasattr(self
,"thisown"): self
.thisown
= 0
5869 self
.__class
__ = ContextHelp
5870 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
5872 class ContextHelpButton(BitmapButton
):
5874 Instances of this class may be used to add a question mark button that
5875 when pressed, puts the application into context-help mode. It does
5876 this by creating a wx.ContextHelp object which itself generates a
5877 ``EVT_HELP`` event when the user clicks on a window.
5879 On Windows, you may add a question-mark icon to a dialog by use of the
5880 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
5881 will have to add a button explicitly, usually next to OK, Cancel or
5884 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
5888 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5889 def __init__(self
, *args
, **kwargs
):
5891 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
5892 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
5894 Constructor, creating and showing a context help button.
5896 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
5897 self
.this
= newobj
.this
5900 self
._setOORInfo
(self
)
5903 class ContextHelpButtonPtr(ContextHelpButton
):
5904 def __init__(self
, this
):
5906 if not hasattr(self
,"thisown"): self
.thisown
= 0
5907 self
.__class
__ = ContextHelpButton
5908 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
5910 class HelpProvider(object):
5912 wx.HelpProvider is an abstract class used by a program
5913 implementing context-sensitive help to show the help text for the
5916 The current help provider must be explicitly set by the
5917 application using wx.HelpProvider.Set().
5919 def __init__(self
): raise RuntimeError, "No constructor defined"
5921 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5922 def Set(*args
, **kwargs
):
5924 Set(HelpProvider helpProvider) -> HelpProvider
5926 Sset the current, application-wide help provider. Returns the previous
5927 one. Unlike some other classes, the help provider is not created on
5928 demand. This must be explicitly done by the application.
5930 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
5932 Set
= staticmethod(Set
)
5933 def Get(*args
, **kwargs
):
5935 Get() -> HelpProvider
5937 Return the current application-wide help provider.
5939 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
5941 Get
= staticmethod(Get
)
5942 def GetHelp(*args
, **kwargs
):
5944 GetHelp(self, Window window) -> String
5946 Gets the help string for this window. Its interpretation is dependent
5947 on the help provider except that empty string always means that no
5948 help is associated with the window.
5950 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
5952 def ShowHelp(*args
, **kwargs
):
5954 ShowHelp(self, Window window) -> bool
5956 Shows help for the given window. Uses GetHelp internally if
5957 applicable. Returns True if it was done, or False if no help was
5958 available for this window.
5960 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
5962 def AddHelp(*args
, **kwargs
):
5964 AddHelp(self, Window window, String text)
5966 Associates the text with the given window.
5968 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
5970 def AddHelpById(*args
, **kwargs
):
5972 AddHelpById(self, int id, String text)
5974 This version associates the given text with all windows with this
5975 id. May be used to set the same help string for all Cancel buttons in
5976 the application, for example.
5978 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
5980 def RemoveHelp(*args
, **kwargs
):
5982 RemoveHelp(self, Window window)
5984 Removes the association between the window pointer and the help
5985 text. This is called by the wx.Window destructor. Without this, the
5986 table of help strings will fill up and when window pointers are
5987 reused, the wrong help string will be found.
5989 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
5991 def Destroy(*args
, **kwargs
):
5993 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
5996 class HelpProviderPtr(HelpProvider
):
5997 def __init__(self
, this
):
5999 if not hasattr(self
,"thisown"): self
.thisown
= 0
6000 self
.__class
__ = HelpProvider
6001 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6003 def HelpProvider_Set(*args
, **kwargs
):
6005 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6007 Sset the current, application-wide help provider. Returns the previous
6008 one. Unlike some other classes, the help provider is not created on
6009 demand. This must be explicitly done by the application.
6011 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6013 def HelpProvider_Get(*args
, **kwargs
):
6015 HelpProvider_Get() -> HelpProvider
6017 Return the current application-wide help provider.
6019 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6021 class SimpleHelpProvider(HelpProvider
):
6023 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6024 supports only plain text help strings, and shows the string associated
6025 with the control (if any) in a tooltip.
6028 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6029 def __init__(self
, *args
, **kwargs
):
6031 __init__(self) -> SimpleHelpProvider
6033 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6034 supports only plain text help strings, and shows the string associated
6035 with the control (if any) in a tooltip.
6037 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6038 self
.this
= newobj
.this
6042 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6043 def __init__(self
, this
):
6045 if not hasattr(self
,"thisown"): self
.thisown
= 0
6046 self
.__class
__ = SimpleHelpProvider
6047 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6049 #---------------------------------------------------------------------------
6051 class DragImage(_core
.Object
):
6053 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6054 def __init__(self
, *args
, **kwargs
):
6055 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6056 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6057 self
.this
= newobj
.this
6060 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6063 if self
.thisown
: destroy(self
)
6066 def SetBackingBitmap(*args
, **kwargs
):
6067 """SetBackingBitmap(self, Bitmap bitmap)"""
6068 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6070 def BeginDrag(*args
, **kwargs
):
6072 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6073 Rect rect=None) -> bool
6075 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6077 def BeginDragBounded(*args
, **kwargs
):
6078 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6079 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6081 def EndDrag(*args
, **kwargs
):
6082 """EndDrag(self) -> bool"""
6083 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6085 def Move(*args
, **kwargs
):
6086 """Move(self, Point pt) -> bool"""
6087 return _controls_
.DragImage_Move(*args
, **kwargs
)
6089 def Show(*args
, **kwargs
):
6090 """Show(self) -> bool"""
6091 return _controls_
.DragImage_Show(*args
, **kwargs
)
6093 def Hide(*args
, **kwargs
):
6094 """Hide(self) -> bool"""
6095 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6097 def GetImageRect(*args
, **kwargs
):
6098 """GetImageRect(self, Point pos) -> Rect"""
6099 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6101 def DoDrawImage(*args
, **kwargs
):
6102 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6103 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6105 def UpdateBackingFromWindow(*args
, **kwargs
):
6106 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6107 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6109 def RedrawImage(*args
, **kwargs
):
6110 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6111 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6114 class DragImagePtr(DragImage
):
6115 def __init__(self
, this
):
6117 if not hasattr(self
,"thisown"): self
.thisown
= 0
6118 self
.__class
__ = DragImage
6119 _controls_
.DragImage_swigregister(DragImagePtr
)
6121 def DragIcon(*args
, **kwargs
):
6122 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6123 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6127 def DragString(*args
, **kwargs
):
6128 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6129 val
= _controls_
.new_DragString(*args
, **kwargs
)
6133 def DragTreeItem(*args
, **kwargs
):
6134 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6135 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6139 def DragListItem(*args
, **kwargs
):
6140 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6141 val
= _controls_
.new_DragListItem(*args
, **kwargs
)