1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 BU_LEFT
= _controls_
.BU_LEFT
52 BU_TOP
= _controls_
.BU_TOP
53 BU_RIGHT
= _controls_
.BU_RIGHT
54 BU_BOTTOM
= _controls_
.BU_BOTTOM
55 BU_ALIGN_MASK
= _controls_
.BU_ALIGN_MASK
56 BU_EXACTFIT
= _controls_
.BU_EXACTFIT
57 BU_AUTODRAW
= _controls_
.BU_AUTODRAW
58 class Button(_core
.Control
):
60 A button is a control that contains a text string, and is one of the most
61 common elements of a GUI. It may be placed on a dialog box or panel, or
62 indeed almost any other window.
65 return "<%s.%s; proxy of C++ wxButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
66 def __init__(self
, *args
, **kwargs
):
68 __init__(self, Window parent, int id=-1, String label=EmptyString,
69 Point pos=DefaultPosition, Size size=DefaultSize,
70 long style=0, Validator validator=DefaultValidator,
71 String name=ButtonNameStr) -> Button
73 Create and show a button. The preferred way to create standard
74 buttons is to use a standard ID and an empty label. In this case
75 wxWigets will automatically use a stock label that coresponds to the
76 ID given. In additon, the button will be decorated with stock icons
79 newobj
= _controls_
.new_Button(*args
, **kwargs
)
80 self
.this
= newobj
.this
83 self
._setOORInfo
(self
)
85 def Create(*args
, **kwargs
):
87 Create(self, Window parent, int id=-1, String label=EmptyString,
88 Point pos=DefaultPosition, Size size=DefaultSize,
89 long style=0, Validator validator=DefaultValidator,
90 String name=ButtonNameStr) -> bool
92 Acutally create the GUI Button for 2-phase creation.
94 return _controls_
.Button_Create(*args
, **kwargs
)
96 def SetDefault(*args
, **kwargs
):
100 This sets the button to be the default item for the panel or dialog box.
102 return _controls_
.Button_SetDefault(*args
, **kwargs
)
104 def GetDefaultSize(*args
, **kwargs
):
106 GetDefaultSize() -> Size
108 Returns the default button size for this platform.
110 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
112 GetDefaultSize
= staticmethod(GetDefaultSize
)
113 def GetClassDefaultAttributes(*args
, **kwargs
):
115 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
117 Get the default attributes for this class. This is useful if you want
118 to use the same font or colour in your own control as in a standard
119 control -- which is a much better idea than hard coding specific
120 colours or fonts which might look completely out of place on the
121 user's system, especially if it uses themes.
123 The variant parameter is only relevant under Mac currently and is
124 ignore under other platforms. Under Mac, it will change the size of
125 the returned font. See `wx.Window.SetWindowVariant` for more about
128 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
130 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
132 class ButtonPtr(Button
):
133 def __init__(self
, this
):
135 if not hasattr(self
,"thisown"): self
.thisown
= 0
136 self
.__class
__ = Button
137 _controls_
.Button_swigregister(ButtonPtr
)
138 cvar
= _controls_
.cvar
139 ButtonNameStr
= cvar
.ButtonNameStr
141 def PreButton(*args
, **kwargs
):
143 PreButton() -> Button
145 Precreate a Button for 2-phase creation.
147 val
= _controls_
.new_PreButton(*args
, **kwargs
)
151 def Button_GetDefaultSize(*args
, **kwargs
):
153 Button_GetDefaultSize() -> Size
155 Returns the default button size for this platform.
157 return _controls_
.Button_GetDefaultSize(*args
, **kwargs
)
159 def Button_GetClassDefaultAttributes(*args
, **kwargs
):
161 Button_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
163 Get the default attributes for this class. This is useful if you want
164 to use the same font or colour in your own control as in a standard
165 control -- which is a much better idea than hard coding specific
166 colours or fonts which might look completely out of place on the
167 user's system, especially if it uses themes.
169 The variant parameter is only relevant under Mac currently and is
170 ignore under other platforms. Under Mac, it will change the size of
171 the returned font. See `wx.Window.SetWindowVariant` for more about
174 return _controls_
.Button_GetClassDefaultAttributes(*args
, **kwargs
)
176 class BitmapButton(Button
):
178 A Button that contains a bitmap. A bitmap button can be supplied with a
179 single bitmap, and wxWidgets will draw all button states using this bitmap. If
180 the application needs more control, additional bitmaps for the selected state,
181 unpressed focused state, and greyed-out state may be supplied.
184 return "<%s.%s; proxy of C++ wxBitmapButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
185 def __init__(self
, *args
, **kwargs
):
187 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
188 Point pos=DefaultPosition, Size size=DefaultSize,
189 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
190 String name=ButtonNameStr) -> BitmapButton
192 Create and show a button with a bitmap for the label.
194 newobj
= _controls_
.new_BitmapButton(*args
, **kwargs
)
195 self
.this
= newobj
.this
198 self
._setOORInfo
(self
)
200 def Create(*args
, **kwargs
):
202 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
203 Point pos=DefaultPosition, Size size=DefaultSize,
204 long style=BU_AUTODRAW, Validator validator=DefaultValidator,
205 String name=ButtonNameStr) -> bool
207 Acutally create the GUI BitmapButton for 2-phase creation.
209 return _controls_
.BitmapButton_Create(*args
, **kwargs
)
211 def GetBitmapLabel(*args
, **kwargs
):
213 GetBitmapLabel(self) -> Bitmap
215 Returns the label bitmap (the one passed to the constructor).
217 return _controls_
.BitmapButton_GetBitmapLabel(*args
, **kwargs
)
219 def GetBitmapDisabled(*args
, **kwargs
):
221 GetBitmapDisabled(self) -> Bitmap
223 Returns the bitmap for the disabled state.
225 return _controls_
.BitmapButton_GetBitmapDisabled(*args
, **kwargs
)
227 def GetBitmapFocus(*args
, **kwargs
):
229 GetBitmapFocus(self) -> Bitmap
231 Returns the bitmap for the focused state.
233 return _controls_
.BitmapButton_GetBitmapFocus(*args
, **kwargs
)
235 def GetBitmapSelected(*args
, **kwargs
):
237 GetBitmapSelected(self) -> Bitmap
239 Returns the bitmap for the selected state.
241 return _controls_
.BitmapButton_GetBitmapSelected(*args
, **kwargs
)
243 def SetBitmapDisabled(*args
, **kwargs
):
245 SetBitmapDisabled(self, Bitmap bitmap)
247 Sets the bitmap for the disabled button appearance.
249 return _controls_
.BitmapButton_SetBitmapDisabled(*args
, **kwargs
)
251 def SetBitmapFocus(*args
, **kwargs
):
253 SetBitmapFocus(self, Bitmap bitmap)
255 Sets the bitmap for the button appearance when it has the keyboard focus.
257 return _controls_
.BitmapButton_SetBitmapFocus(*args
, **kwargs
)
259 def SetBitmapSelected(*args
, **kwargs
):
261 SetBitmapSelected(self, Bitmap bitmap)
263 Sets the bitmap for the selected (depressed) button appearance.
265 return _controls_
.BitmapButton_SetBitmapSelected(*args
, **kwargs
)
267 def SetBitmapLabel(*args
, **kwargs
):
269 SetBitmapLabel(self, Bitmap bitmap)
271 Sets the bitmap label for the button. This is the bitmap used for the
272 unselected state, and for all other states if no other bitmaps are provided.
274 return _controls_
.BitmapButton_SetBitmapLabel(*args
, **kwargs
)
276 def SetMargins(*args
, **kwargs
):
277 """SetMargins(self, int x, int y)"""
278 return _controls_
.BitmapButton_SetMargins(*args
, **kwargs
)
280 def GetMarginX(*args
, **kwargs
):
281 """GetMarginX(self) -> int"""
282 return _controls_
.BitmapButton_GetMarginX(*args
, **kwargs
)
284 def GetMarginY(*args
, **kwargs
):
285 """GetMarginY(self) -> int"""
286 return _controls_
.BitmapButton_GetMarginY(*args
, **kwargs
)
289 class BitmapButtonPtr(BitmapButton
):
290 def __init__(self
, this
):
292 if not hasattr(self
,"thisown"): self
.thisown
= 0
293 self
.__class
__ = BitmapButton
294 _controls_
.BitmapButton_swigregister(BitmapButtonPtr
)
296 def PreBitmapButton(*args
, **kwargs
):
298 PreBitmapButton() -> BitmapButton
300 Precreate a BitmapButton for 2-phase creation.
302 val
= _controls_
.new_PreBitmapButton(*args
, **kwargs
)
306 #---------------------------------------------------------------------------
308 CHK_2STATE
= _controls_
.CHK_2STATE
309 CHK_3STATE
= _controls_
.CHK_3STATE
310 CHK_ALLOW_3RD_STATE_FOR_USER
= _controls_
.CHK_ALLOW_3RD_STATE_FOR_USER
311 CHK_UNCHECKED
= _controls_
.CHK_UNCHECKED
312 CHK_CHECKED
= _controls_
.CHK_CHECKED
313 CHK_UNDETERMINED
= _controls_
.CHK_UNDETERMINED
314 class CheckBox(_core
.Control
):
316 A checkbox is a labelled box which by default is either on (the
317 checkmark is visible) or off (no checkmark). Optionally (When the
318 wx.CHK_3STATE style flag is set) it can have a third state, called the
319 mixed or undetermined state. Often this is used as a "Does Not
323 return "<%s.%s; proxy of C++ wxCheckBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
324 def __init__(self
, *args
, **kwargs
):
326 __init__(self, Window parent, int id=-1, String label=EmptyString,
327 Point pos=DefaultPosition, Size size=DefaultSize,
328 long style=0, Validator validator=DefaultValidator,
329 String name=CheckBoxNameStr) -> CheckBox
331 Creates and shows a CheckBox control
333 newobj
= _controls_
.new_CheckBox(*args
, **kwargs
)
334 self
.this
= newobj
.this
337 self
._setOORInfo
(self
)
339 def Create(*args
, **kwargs
):
341 Create(self, Window parent, int id=-1, String label=EmptyString,
342 Point pos=DefaultPosition, Size size=DefaultSize,
343 long style=0, Validator validator=DefaultValidator,
344 String name=CheckBoxNameStr) -> bool
346 Actually create the GUI CheckBox for 2-phase creation.
348 return _controls_
.CheckBox_Create(*args
, **kwargs
)
350 def GetValue(*args
, **kwargs
):
352 GetValue(self) -> bool
354 Gets the state of a 2-state CheckBox. Returns True if it is checked,
357 return _controls_
.CheckBox_GetValue(*args
, **kwargs
)
359 def IsChecked(*args
, **kwargs
):
361 IsChecked(self) -> bool
363 Similar to GetValue, but raises an exception if it is not a 2-state
366 return _controls_
.CheckBox_IsChecked(*args
, **kwargs
)
368 def SetValue(*args
, **kwargs
):
370 SetValue(self, bool state)
372 Set the state of a 2-state CheckBox. Pass True for checked, False for
375 return _controls_
.CheckBox_SetValue(*args
, **kwargs
)
377 def Get3StateValue(*args
, **kwargs
):
379 Get3StateValue(self) -> int
381 Returns wx.CHK_UNCHECKED when the CheckBox is unchecked,
382 wx.CHK_CHECKED when it is checked and wx.CHK_UNDETERMINED when it's in
383 the undetermined state. Raises an exceptiion when the function is
384 used with a 2-state CheckBox.
386 return _controls_
.CheckBox_Get3StateValue(*args
, **kwargs
)
388 def Set3StateValue(*args
, **kwargs
):
390 Set3StateValue(self, int state)
392 Sets the CheckBox to the given state. The state parameter can be one
393 of the following: wx.CHK_UNCHECKED (Check is off), wx.CHK_CHECKED (the
394 Check is on) or wx.CHK_UNDETERMINED (Check is mixed). Raises an
395 exception when the CheckBox is a 2-state checkbox and setting the
396 state to wx.CHK_UNDETERMINED.
398 return _controls_
.CheckBox_Set3StateValue(*args
, **kwargs
)
400 def Is3State(*args
, **kwargs
):
402 Is3State(self) -> bool
404 Returns whether or not the CheckBox is a 3-state CheckBox.
406 return _controls_
.CheckBox_Is3State(*args
, **kwargs
)
408 def Is3rdStateAllowedForUser(*args
, **kwargs
):
410 Is3rdStateAllowedForUser(self) -> bool
412 Returns whether or not the user can set the CheckBox to the third
415 return _controls_
.CheckBox_Is3rdStateAllowedForUser(*args
, **kwargs
)
417 def GetClassDefaultAttributes(*args
, **kwargs
):
419 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
421 Get the default attributes for this class. This is useful if you want
422 to use the same font or colour in your own control as in a standard
423 control -- which is a much better idea than hard coding specific
424 colours or fonts which might look completely out of place on the
425 user's system, especially if it uses themes.
427 The variant parameter is only relevant under Mac currently and is
428 ignore under other platforms. Under Mac, it will change the size of
429 the returned font. See `wx.Window.SetWindowVariant` for more about
432 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
434 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
436 class CheckBoxPtr(CheckBox
):
437 def __init__(self
, this
):
439 if not hasattr(self
,"thisown"): self
.thisown
= 0
440 self
.__class
__ = CheckBox
441 _controls_
.CheckBox_swigregister(CheckBoxPtr
)
442 CheckBoxNameStr
= cvar
.CheckBoxNameStr
444 def PreCheckBox(*args
, **kwargs
):
446 PreCheckBox() -> CheckBox
448 Precreate a CheckBox for 2-phase creation.
450 val
= _controls_
.new_PreCheckBox(*args
, **kwargs
)
454 def CheckBox_GetClassDefaultAttributes(*args
, **kwargs
):
456 CheckBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
458 Get the default attributes for this class. This is useful if you want
459 to use the same font or colour in your own control as in a standard
460 control -- which is a much better idea than hard coding specific
461 colours or fonts which might look completely out of place on the
462 user's system, especially if it uses themes.
464 The variant parameter is only relevant under Mac currently and is
465 ignore under other platforms. Under Mac, it will change the size of
466 the returned font. See `wx.Window.SetWindowVariant` for more about
469 return _controls_
.CheckBox_GetClassDefaultAttributes(*args
, **kwargs
)
471 #---------------------------------------------------------------------------
473 class Choice(_core
.ControlWithItems
):
475 A Choice control is used to select one of a list of strings.
476 Unlike a `wx.ListBox`, only the selection is visible until the
477 user pulls down the menu of choices.
480 return "<%s.%s; proxy of C++ wxChoice instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
481 def __init__(self
, *args
, **kwargs
):
483 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
484 List choices=[], long style=0, Validator validator=DefaultValidator,
485 String name=ChoiceNameStr) -> Choice
487 Create and show a Choice control
489 newobj
= _controls_
.new_Choice(*args
, **kwargs
)
490 self
.this
= newobj
.this
493 self
._setOORInfo
(self
)
495 def Create(*args
, **kwargs
):
497 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
498 List choices=[], long style=0, Validator validator=DefaultValidator,
499 String name=ChoiceNameStr) -> bool
501 Actually create the GUI Choice control for 2-phase creation
503 return _controls_
.Choice_Create(*args
, **kwargs
)
505 def SetSelection(*args
, **kwargs
):
507 SetSelection(self, int n)
509 Select the n'th item (zero based) in the list.
511 return _controls_
.Choice_SetSelection(*args
, **kwargs
)
513 def SetStringSelection(*args
, **kwargs
):
515 SetStringSelection(self, String string) -> bool
517 Select the item with the specifed string
519 return _controls_
.Choice_SetStringSelection(*args
, **kwargs
)
521 def SetString(*args
, **kwargs
):
523 SetString(self, int n, String string)
525 Set the label for the n'th item (zero based) in the list.
527 return _controls_
.Choice_SetString(*args
, **kwargs
)
529 Select
= SetSelection
530 def GetClassDefaultAttributes(*args
, **kwargs
):
532 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
534 Get the default attributes for this class. This is useful if you want
535 to use the same font or colour in your own control as in a standard
536 control -- which is a much better idea than hard coding specific
537 colours or fonts which might look completely out of place on the
538 user's system, especially if it uses themes.
540 The variant parameter is only relevant under Mac currently and is
541 ignore under other platforms. Under Mac, it will change the size of
542 the returned font. See `wx.Window.SetWindowVariant` for more about
545 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
547 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
549 class ChoicePtr(Choice
):
550 def __init__(self
, this
):
552 if not hasattr(self
,"thisown"): self
.thisown
= 0
553 self
.__class
__ = Choice
554 _controls_
.Choice_swigregister(ChoicePtr
)
555 ChoiceNameStr
= cvar
.ChoiceNameStr
557 def PreChoice(*args
, **kwargs
):
559 PreChoice() -> Choice
561 Precreate a Choice control for 2-phase creation.
563 val
= _controls_
.new_PreChoice(*args
, **kwargs
)
567 def Choice_GetClassDefaultAttributes(*args
, **kwargs
):
569 Choice_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
571 Get the default attributes for this class. This is useful if you want
572 to use the same font or colour in your own control as in a standard
573 control -- which is a much better idea than hard coding specific
574 colours or fonts which might look completely out of place on the
575 user's system, especially if it uses themes.
577 The variant parameter is only relevant under Mac currently and is
578 ignore under other platforms. Under Mac, it will change the size of
579 the returned font. See `wx.Window.SetWindowVariant` for more about
582 return _controls_
.Choice_GetClassDefaultAttributes(*args
, **kwargs
)
584 #---------------------------------------------------------------------------
586 class ComboBox(_core
.Control
,_core
.ItemContainer
):
588 A combobox is like a combination of an edit control and a
589 listbox. It can be displayed as static list with editable or
590 read-only text field; or a drop-down list with text field.
592 A combobox permits a single selection only. Combobox items are
596 return "<%s.%s; proxy of C++ wxComboBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
597 def __init__(self
, *args
, **kwargs
):
599 __init__(Window parent, int id, String value=EmptyString,
600 Point pos=DefaultPosition, Size size=DefaultSize,
601 List choices=[], long style=0, Validator validator=DefaultValidator,
602 String name=ComboBoxNameStr) -> ComboBox
604 Constructor, creates and shows a ComboBox control.
606 newobj
= _controls_
.new_ComboBox(*args
, **kwargs
)
607 self
.this
= newobj
.this
610 self
._setOORInfo
(self
)
612 def Create(*args
, **kwargs
):
614 Create(Window parent, int id, String value=EmptyString,
615 Point pos=DefaultPosition, Size size=DefaultSize,
616 List choices=[], long style=0, Validator validator=DefaultValidator,
617 String name=ChoiceNameStr) -> bool
619 Actually create the GUI wxComboBox control for 2-phase creation
621 return _controls_
.ComboBox_Create(*args
, **kwargs
)
623 def GetValue(*args
, **kwargs
):
625 GetValue(self) -> String
627 Returns the current value in the combobox text field.
629 return _controls_
.ComboBox_GetValue(*args
, **kwargs
)
631 def SetValue(*args
, **kwargs
):
632 """SetValue(self, String value)"""
633 return _controls_
.ComboBox_SetValue(*args
, **kwargs
)
635 def Copy(*args
, **kwargs
):
639 Copies the selected text to the clipboard.
641 return _controls_
.ComboBox_Copy(*args
, **kwargs
)
643 def Cut(*args
, **kwargs
):
647 Copies the selected text to the clipboard and removes the selection.
649 return _controls_
.ComboBox_Cut(*args
, **kwargs
)
651 def Paste(*args
, **kwargs
):
655 Pastes text from the clipboard to the text field.
657 return _controls_
.ComboBox_Paste(*args
, **kwargs
)
659 def SetInsertionPoint(*args
, **kwargs
):
661 SetInsertionPoint(self, long pos)
663 Sets the insertion point in the combobox text field.
665 return _controls_
.ComboBox_SetInsertionPoint(*args
, **kwargs
)
667 def GetInsertionPoint(*args
, **kwargs
):
669 GetInsertionPoint(self) -> long
671 Returns the insertion point for the combobox's text field.
673 return _controls_
.ComboBox_GetInsertionPoint(*args
, **kwargs
)
675 def GetLastPosition(*args
, **kwargs
):
677 GetLastPosition(self) -> long
679 Returns the last position in the combobox text field.
681 return _controls_
.ComboBox_GetLastPosition(*args
, **kwargs
)
683 def Replace(*args
, **kwargs
):
685 Replace(self, long from, long to, String value)
687 Replaces the text between two positions with the given text, in the
690 return _controls_
.ComboBox_Replace(*args
, **kwargs
)
692 def SetSelection(*args
, **kwargs
):
694 SetSelection(self, int n)
696 Sets the item at index 'n' to be the selected item.
698 return _controls_
.ComboBox_SetSelection(*args
, **kwargs
)
700 def SetMark(*args
, **kwargs
):
702 SetMark(self, long from, long to)
704 Selects the text between the two positions in the combobox text field.
706 return _controls_
.ComboBox_SetMark(*args
, **kwargs
)
708 def SetStringSelection(*args
, **kwargs
):
710 SetStringSelection(self, String string) -> bool
712 Select the item with the specifed string
714 return _controls_
.ComboBox_SetStringSelection(*args
, **kwargs
)
716 def SetString(*args
, **kwargs
):
718 SetString(self, int n, String string)
720 Set the label for the n'th item (zero based) in the list.
722 return _controls_
.ComboBox_SetString(*args
, **kwargs
)
724 def SetEditable(*args
, **kwargs
):
725 """SetEditable(self, bool editable)"""
726 return _controls_
.ComboBox_SetEditable(*args
, **kwargs
)
728 def SetInsertionPointEnd(*args
, **kwargs
):
730 SetInsertionPointEnd(self)
732 Sets the insertion point at the end of the combobox text field.
734 return _controls_
.ComboBox_SetInsertionPointEnd(*args
, **kwargs
)
736 def Remove(*args
, **kwargs
):
738 Remove(self, long from, long to)
740 Removes the text between the two positions in the combobox text field.
742 return _controls_
.ComboBox_Remove(*args
, **kwargs
)
744 def IsEditable(*args
, **kwargs
):
746 IsEditable(self) -> bool
748 Returns True if the combo is ediatable (not read-only.)
750 return _controls_
.ComboBox_IsEditable(*args
, **kwargs
)
752 def Undo(*args
, **kwargs
):
756 Redoes the last undo in the text field. Windows only.
758 return _controls_
.ComboBox_Undo(*args
, **kwargs
)
760 def Redo(*args
, **kwargs
):
764 Undoes the last edit in the text field. Windows only.
766 return _controls_
.ComboBox_Redo(*args
, **kwargs
)
768 def SelectAll(*args
, **kwargs
):
772 Select all the text in the combo's text field.
774 return _controls_
.ComboBox_SelectAll(*args
, **kwargs
)
776 def CanCopy(*args
, **kwargs
):
778 CanCopy(self) -> bool
780 Returns True if the combobox is editable and there is a text selection
781 to copy to the clipboard. Only available on Windows.
783 return _controls_
.ComboBox_CanCopy(*args
, **kwargs
)
785 def CanCut(*args
, **kwargs
):
789 Returns True if the combobox is editable and there is a text selection
790 to copy to the clipboard. Only available on Windows.
792 return _controls_
.ComboBox_CanCut(*args
, **kwargs
)
794 def CanPaste(*args
, **kwargs
):
796 CanPaste(self) -> bool
798 Returns True if the combobox is editable and there is text on the
799 clipboard that can be pasted into the text field. Only available on
802 return _controls_
.ComboBox_CanPaste(*args
, **kwargs
)
804 def CanUndo(*args
, **kwargs
):
806 CanUndo(self) -> bool
808 Returns True if the combobox is editable and the last edit can be
809 undone. Only available on Windows.
811 return _controls_
.ComboBox_CanUndo(*args
, **kwargs
)
813 def CanRedo(*args
, **kwargs
):
815 CanRedo(self) -> bool
817 Returns True if the combobox is editable and the last undo can be
818 redone. Only available on Windows.
820 return _controls_
.ComboBox_CanRedo(*args
, **kwargs
)
822 def GetClassDefaultAttributes(*args
, **kwargs
):
824 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
826 Get the default attributes for this class. This is useful if you want
827 to use the same font or colour in your own control as in a standard
828 control -- which is a much better idea than hard coding specific
829 colours or fonts which might look completely out of place on the
830 user's system, especially if it uses themes.
832 The variant parameter is only relevant under Mac currently and is
833 ignore under other platforms. Under Mac, it will change the size of
834 the returned font. See `wx.Window.SetWindowVariant` for more about
837 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
839 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
841 class ComboBoxPtr(ComboBox
):
842 def __init__(self
, this
):
844 if not hasattr(self
,"thisown"): self
.thisown
= 0
845 self
.__class
__ = ComboBox
846 _controls_
.ComboBox_swigregister(ComboBoxPtr
)
847 ComboBoxNameStr
= cvar
.ComboBoxNameStr
849 def PreComboBox(*args
, **kwargs
):
851 PreComboBox() -> ComboBox
853 Precreate a ComboBox control for 2-phase creation.
855 val
= _controls_
.new_PreComboBox(*args
, **kwargs
)
859 def ComboBox_GetClassDefaultAttributes(*args
, **kwargs
):
861 ComboBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
863 Get the default attributes for this class. This is useful if you want
864 to use the same font or colour in your own control as in a standard
865 control -- which is a much better idea than hard coding specific
866 colours or fonts which might look completely out of place on the
867 user's system, especially if it uses themes.
869 The variant parameter is only relevant under Mac currently and is
870 ignore under other platforms. Under Mac, it will change the size of
871 the returned font. See `wx.Window.SetWindowVariant` for more about
874 return _controls_
.ComboBox_GetClassDefaultAttributes(*args
, **kwargs
)
876 #---------------------------------------------------------------------------
878 GA_HORIZONTAL
= _controls_
.GA_HORIZONTAL
879 GA_VERTICAL
= _controls_
.GA_VERTICAL
880 GA_SMOOTH
= _controls_
.GA_SMOOTH
881 GA_PROGRESSBAR
= _controls_
.GA_PROGRESSBAR
882 class Gauge(_core
.Control
):
883 """Proxy of C++ Gauge class"""
885 return "<%s.%s; proxy of C++ wxGauge instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
886 def __init__(self
, *args
, **kwargs
):
888 __init__(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
889 Size size=DefaultSize, long style=GA_HORIZONTAL,
890 Validator validator=DefaultValidator,
891 String name=GaugeNameStr) -> Gauge
893 newobj
= _controls_
.new_Gauge(*args
, **kwargs
)
894 self
.this
= newobj
.this
897 self
._setOORInfo
(self
)
899 def Create(*args
, **kwargs
):
901 Create(self, Window parent, int id=-1, int range=100, Point pos=DefaultPosition,
902 Size size=DefaultSize, long style=GA_HORIZONTAL,
903 Validator validator=DefaultValidator,
904 String name=GaugeNameStr) -> bool
906 return _controls_
.Gauge_Create(*args
, **kwargs
)
908 def SetRange(*args
, **kwargs
):
909 """SetRange(self, int range)"""
910 return _controls_
.Gauge_SetRange(*args
, **kwargs
)
912 def GetRange(*args
, **kwargs
):
913 """GetRange(self) -> int"""
914 return _controls_
.Gauge_GetRange(*args
, **kwargs
)
916 def SetValue(*args
, **kwargs
):
917 """SetValue(self, int pos)"""
918 return _controls_
.Gauge_SetValue(*args
, **kwargs
)
920 def GetValue(*args
, **kwargs
):
921 """GetValue(self) -> int"""
922 return _controls_
.Gauge_GetValue(*args
, **kwargs
)
924 def IsVertical(*args
, **kwargs
):
925 """IsVertical(self) -> bool"""
926 return _controls_
.Gauge_IsVertical(*args
, **kwargs
)
928 def SetShadowWidth(*args
, **kwargs
):
929 """SetShadowWidth(self, int w)"""
930 return _controls_
.Gauge_SetShadowWidth(*args
, **kwargs
)
932 def GetShadowWidth(*args
, **kwargs
):
933 """GetShadowWidth(self) -> int"""
934 return _controls_
.Gauge_GetShadowWidth(*args
, **kwargs
)
936 def SetBezelFace(*args
, **kwargs
):
937 """SetBezelFace(self, int w)"""
938 return _controls_
.Gauge_SetBezelFace(*args
, **kwargs
)
940 def GetBezelFace(*args
, **kwargs
):
941 """GetBezelFace(self) -> int"""
942 return _controls_
.Gauge_GetBezelFace(*args
, **kwargs
)
944 def GetClassDefaultAttributes(*args
, **kwargs
):
946 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
948 Get the default attributes for this class. This is useful if you want
949 to use the same font or colour in your own control as in a standard
950 control -- which is a much better idea than hard coding specific
951 colours or fonts which might look completely out of place on the
952 user's system, especially if it uses themes.
954 The variant parameter is only relevant under Mac currently and is
955 ignore under other platforms. Under Mac, it will change the size of
956 the returned font. See `wx.Window.SetWindowVariant` for more about
959 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
961 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
963 class GaugePtr(Gauge
):
964 def __init__(self
, this
):
966 if not hasattr(self
,"thisown"): self
.thisown
= 0
967 self
.__class
__ = Gauge
968 _controls_
.Gauge_swigregister(GaugePtr
)
969 GaugeNameStr
= cvar
.GaugeNameStr
971 def PreGauge(*args
, **kwargs
):
972 """PreGauge() -> Gauge"""
973 val
= _controls_
.new_PreGauge(*args
, **kwargs
)
977 def Gauge_GetClassDefaultAttributes(*args
, **kwargs
):
979 Gauge_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
981 Get the default attributes for this class. This is useful if you want
982 to use the same font or colour in your own control as in a standard
983 control -- which is a much better idea than hard coding specific
984 colours or fonts which might look completely out of place on the
985 user's system, especially if it uses themes.
987 The variant parameter is only relevant under Mac currently and is
988 ignore under other platforms. Under Mac, it will change the size of
989 the returned font. See `wx.Window.SetWindowVariant` for more about
992 return _controls_
.Gauge_GetClassDefaultAttributes(*args
, **kwargs
)
994 #---------------------------------------------------------------------------
996 class StaticBox(_core
.Control
):
997 """Proxy of C++ StaticBox class"""
999 return "<%s.%s; proxy of C++ wxStaticBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1000 def __init__(self
, *args
, **kwargs
):
1002 __init__(self, Window parent, int id=-1, String label=EmptyString,
1003 Point pos=DefaultPosition, Size size=DefaultSize,
1004 long style=0, String name=StaticBoxNameStr) -> StaticBox
1006 newobj
= _controls_
.new_StaticBox(*args
, **kwargs
)
1007 self
.this
= newobj
.this
1010 self
._setOORInfo
(self
)
1012 def Create(*args
, **kwargs
):
1014 Create(self, Window parent, int id=-1, String label=EmptyString,
1015 Point pos=DefaultPosition, Size size=DefaultSize,
1016 long style=0, String name=StaticBoxNameStr) -> bool
1018 return _controls_
.StaticBox_Create(*args
, **kwargs
)
1020 def GetClassDefaultAttributes(*args
, **kwargs
):
1022 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1024 Get the default attributes for this class. This is useful if you want
1025 to use the same font or colour in your own control as in a standard
1026 control -- which is a much better idea than hard coding specific
1027 colours or fonts which might look completely out of place on the
1028 user's system, especially if it uses themes.
1030 The variant parameter is only relevant under Mac currently and is
1031 ignore under other platforms. Under Mac, it will change the size of
1032 the returned font. See `wx.Window.SetWindowVariant` for more about
1035 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1037 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1039 class StaticBoxPtr(StaticBox
):
1040 def __init__(self
, this
):
1042 if not hasattr(self
,"thisown"): self
.thisown
= 0
1043 self
.__class
__ = StaticBox
1044 _controls_
.StaticBox_swigregister(StaticBoxPtr
)
1045 StaticBitmapNameStr
= cvar
.StaticBitmapNameStr
1046 StaticBoxNameStr
= cvar
.StaticBoxNameStr
1047 StaticTextNameStr
= cvar
.StaticTextNameStr
1049 def PreStaticBox(*args
, **kwargs
):
1050 """PreStaticBox() -> StaticBox"""
1051 val
= _controls_
.new_PreStaticBox(*args
, **kwargs
)
1055 def StaticBox_GetClassDefaultAttributes(*args
, **kwargs
):
1057 StaticBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1059 Get the default attributes for this class. This is useful if you want
1060 to use the same font or colour in your own control as in a standard
1061 control -- which is a much better idea than hard coding specific
1062 colours or fonts which might look completely out of place on the
1063 user's system, especially if it uses themes.
1065 The variant parameter is only relevant under Mac currently and is
1066 ignore under other platforms. Under Mac, it will change the size of
1067 the returned font. See `wx.Window.SetWindowVariant` for more about
1070 return _controls_
.StaticBox_GetClassDefaultAttributes(*args
, **kwargs
)
1072 #---------------------------------------------------------------------------
1074 class StaticLine(_core
.Control
):
1075 """Proxy of C++ StaticLine class"""
1077 return "<%s.%s; proxy of C++ wxStaticLine instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1078 def __init__(self
, *args
, **kwargs
):
1080 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1081 Size size=DefaultSize, long style=LI_HORIZONTAL,
1082 String name=StaticTextNameStr) -> StaticLine
1084 newobj
= _controls_
.new_StaticLine(*args
, **kwargs
)
1085 self
.this
= newobj
.this
1088 self
._setOORInfo
(self
)
1090 def Create(*args
, **kwargs
):
1092 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1093 Size size=DefaultSize, long style=LI_HORIZONTAL,
1094 String name=StaticTextNameStr) -> bool
1096 return _controls_
.StaticLine_Create(*args
, **kwargs
)
1098 def IsVertical(*args
, **kwargs
):
1099 """IsVertical(self) -> bool"""
1100 return _controls_
.StaticLine_IsVertical(*args
, **kwargs
)
1102 def GetDefaultSize(*args
, **kwargs
):
1103 """GetDefaultSize() -> int"""
1104 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1106 GetDefaultSize
= staticmethod(GetDefaultSize
)
1107 def GetClassDefaultAttributes(*args
, **kwargs
):
1109 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1111 Get the default attributes for this class. This is useful if you want
1112 to use the same font or colour in your own control as in a standard
1113 control -- which is a much better idea than hard coding specific
1114 colours or fonts which might look completely out of place on the
1115 user's system, especially if it uses themes.
1117 The variant parameter is only relevant under Mac currently and is
1118 ignore under other platforms. Under Mac, it will change the size of
1119 the returned font. See `wx.Window.SetWindowVariant` for more about
1122 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1124 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1126 class StaticLinePtr(StaticLine
):
1127 def __init__(self
, this
):
1129 if not hasattr(self
,"thisown"): self
.thisown
= 0
1130 self
.__class
__ = StaticLine
1131 _controls_
.StaticLine_swigregister(StaticLinePtr
)
1133 def PreStaticLine(*args
, **kwargs
):
1134 """PreStaticLine() -> StaticLine"""
1135 val
= _controls_
.new_PreStaticLine(*args
, **kwargs
)
1139 def StaticLine_GetDefaultSize(*args
, **kwargs
):
1140 """StaticLine_GetDefaultSize() -> int"""
1141 return _controls_
.StaticLine_GetDefaultSize(*args
, **kwargs
)
1143 def StaticLine_GetClassDefaultAttributes(*args
, **kwargs
):
1145 StaticLine_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1147 Get the default attributes for this class. This is useful if you want
1148 to use the same font or colour in your own control as in a standard
1149 control -- which is a much better idea than hard coding specific
1150 colours or fonts which might look completely out of place on the
1151 user's system, especially if it uses themes.
1153 The variant parameter is only relevant under Mac currently and is
1154 ignore under other platforms. Under Mac, it will change the size of
1155 the returned font. See `wx.Window.SetWindowVariant` for more about
1158 return _controls_
.StaticLine_GetClassDefaultAttributes(*args
, **kwargs
)
1160 #---------------------------------------------------------------------------
1162 class StaticText(_core
.Control
):
1163 """Proxy of C++ StaticText class"""
1165 return "<%s.%s; proxy of C++ wxStaticText instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1166 def __init__(self
, *args
, **kwargs
):
1168 __init__(self, Window parent, int id=-1, String label=EmptyString,
1169 Point pos=DefaultPosition, Size size=DefaultSize,
1170 long style=0, String name=StaticTextNameStr) -> StaticText
1172 newobj
= _controls_
.new_StaticText(*args
, **kwargs
)
1173 self
.this
= newobj
.this
1176 self
._setOORInfo
(self
)
1178 def Create(*args
, **kwargs
):
1180 Create(self, Window parent, int id=-1, String label=EmptyString,
1181 Point pos=DefaultPosition, Size size=DefaultSize,
1182 long style=0, String name=StaticTextNameStr) -> bool
1184 return _controls_
.StaticText_Create(*args
, **kwargs
)
1186 def GetClassDefaultAttributes(*args
, **kwargs
):
1188 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1190 Get the default attributes for this class. This is useful if you want
1191 to use the same font or colour in your own control as in a standard
1192 control -- which is a much better idea than hard coding specific
1193 colours or fonts which might look completely out of place on the
1194 user's system, especially if it uses themes.
1196 The variant parameter is only relevant under Mac currently and is
1197 ignore under other platforms. Under Mac, it will change the size of
1198 the returned font. See `wx.Window.SetWindowVariant` for more about
1201 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1203 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1205 class StaticTextPtr(StaticText
):
1206 def __init__(self
, this
):
1208 if not hasattr(self
,"thisown"): self
.thisown
= 0
1209 self
.__class
__ = StaticText
1210 _controls_
.StaticText_swigregister(StaticTextPtr
)
1212 def PreStaticText(*args
, **kwargs
):
1213 """PreStaticText() -> StaticText"""
1214 val
= _controls_
.new_PreStaticText(*args
, **kwargs
)
1218 def StaticText_GetClassDefaultAttributes(*args
, **kwargs
):
1220 StaticText_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1222 Get the default attributes for this class. This is useful if you want
1223 to use the same font or colour in your own control as in a standard
1224 control -- which is a much better idea than hard coding specific
1225 colours or fonts which might look completely out of place on the
1226 user's system, especially if it uses themes.
1228 The variant parameter is only relevant under Mac currently and is
1229 ignore under other platforms. Under Mac, it will change the size of
1230 the returned font. See `wx.Window.SetWindowVariant` for more about
1233 return _controls_
.StaticText_GetClassDefaultAttributes(*args
, **kwargs
)
1235 #---------------------------------------------------------------------------
1237 class StaticBitmap(_core
.Control
):
1238 """Proxy of C++ StaticBitmap class"""
1240 return "<%s.%s; proxy of C++ wxStaticBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1241 def __init__(self
, *args
, **kwargs
):
1243 __init__(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1244 Point pos=DefaultPosition, Size size=DefaultSize,
1245 long style=0, String name=StaticBitmapNameStr) -> StaticBitmap
1247 newobj
= _controls_
.new_StaticBitmap(*args
, **kwargs
)
1248 self
.this
= newobj
.this
1251 self
._setOORInfo
(self
)
1253 def Create(*args
, **kwargs
):
1255 Create(self, Window parent, int id=-1, Bitmap bitmap=wxNullBitmap,
1256 Point pos=DefaultPosition, Size size=DefaultSize,
1257 long style=0, String name=StaticBitmapNameStr) -> bool
1259 return _controls_
.StaticBitmap_Create(*args
, **kwargs
)
1261 def GetBitmap(*args
, **kwargs
):
1262 """GetBitmap(self) -> Bitmap"""
1263 return _controls_
.StaticBitmap_GetBitmap(*args
, **kwargs
)
1265 def SetBitmap(*args
, **kwargs
):
1266 """SetBitmap(self, Bitmap bitmap)"""
1267 return _controls_
.StaticBitmap_SetBitmap(*args
, **kwargs
)
1269 def SetIcon(*args
, **kwargs
):
1270 """SetIcon(self, Icon icon)"""
1271 return _controls_
.StaticBitmap_SetIcon(*args
, **kwargs
)
1273 def GetClassDefaultAttributes(*args
, **kwargs
):
1275 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1277 Get the default attributes for this class. This is useful if you want
1278 to use the same font or colour in your own control as in a standard
1279 control -- which is a much better idea than hard coding specific
1280 colours or fonts which might look completely out of place on the
1281 user's system, especially if it uses themes.
1283 The variant parameter is only relevant under Mac currently and is
1284 ignore under other platforms. Under Mac, it will change the size of
1285 the returned font. See `wx.Window.SetWindowVariant` for more about
1288 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1290 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1292 class StaticBitmapPtr(StaticBitmap
):
1293 def __init__(self
, this
):
1295 if not hasattr(self
,"thisown"): self
.thisown
= 0
1296 self
.__class
__ = StaticBitmap
1297 _controls_
.StaticBitmap_swigregister(StaticBitmapPtr
)
1299 def PreStaticBitmap(*args
, **kwargs
):
1300 """PreStaticBitmap() -> StaticBitmap"""
1301 val
= _controls_
.new_PreStaticBitmap(*args
, **kwargs
)
1305 def StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
):
1307 StaticBitmap_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1309 Get the default attributes for this class. This is useful if you want
1310 to use the same font or colour in your own control as in a standard
1311 control -- which is a much better idea than hard coding specific
1312 colours or fonts which might look completely out of place on the
1313 user's system, especially if it uses themes.
1315 The variant parameter is only relevant under Mac currently and is
1316 ignore under other platforms. Under Mac, it will change the size of
1317 the returned font. See `wx.Window.SetWindowVariant` for more about
1320 return _controls_
.StaticBitmap_GetClassDefaultAttributes(*args
, **kwargs
)
1322 #---------------------------------------------------------------------------
1324 class ListBox(_core
.ControlWithItems
):
1325 """Proxy of C++ ListBox class"""
1327 return "<%s.%s; proxy of C++ wxListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1328 def __init__(self
, *args
, **kwargs
):
1330 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1331 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1332 long style=0, Validator validator=DefaultValidator,
1333 String name=ListBoxNameStr) -> ListBox
1335 newobj
= _controls_
.new_ListBox(*args
, **kwargs
)
1336 self
.this
= newobj
.this
1339 self
._setOORInfo
(self
)
1341 def Create(*args
, **kwargs
):
1343 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1344 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1345 long style=0, Validator validator=DefaultValidator,
1346 String name=ListBoxNameStr) -> bool
1348 return _controls_
.ListBox_Create(*args
, **kwargs
)
1350 def Insert(*args
, **kwargs
):
1352 Insert(self, String item, int pos, PyObject clientData=None)
1354 Insert an item into the control before the item at the ``pos`` index,
1355 optionally associating some data object with the item.
1357 return _controls_
.ListBox_Insert(*args
, **kwargs
)
1359 def InsertItems(*args
, **kwargs
):
1360 """InsertItems(self, wxArrayString items, int pos)"""
1361 return _controls_
.ListBox_InsertItems(*args
, **kwargs
)
1363 def Set(*args
, **kwargs
):
1364 """Set(self, wxArrayString items)"""
1365 return _controls_
.ListBox_Set(*args
, **kwargs
)
1367 def IsSelected(*args
, **kwargs
):
1368 """IsSelected(self, int n) -> bool"""
1369 return _controls_
.ListBox_IsSelected(*args
, **kwargs
)
1371 def SetSelection(*args
, **kwargs
):
1372 """SetSelection(self, int n, bool select=True)"""
1373 return _controls_
.ListBox_SetSelection(*args
, **kwargs
)
1375 def Select(*args
, **kwargs
):
1379 Sets the item at index 'n' to be the selected item.
1381 return _controls_
.ListBox_Select(*args
, **kwargs
)
1383 def Deselect(*args
, **kwargs
):
1384 """Deselect(self, int n)"""
1385 return _controls_
.ListBox_Deselect(*args
, **kwargs
)
1387 def DeselectAll(*args
, **kwargs
):
1388 """DeselectAll(self, int itemToLeaveSelected=-1)"""
1389 return _controls_
.ListBox_DeselectAll(*args
, **kwargs
)
1391 def SetStringSelection(*args
, **kwargs
):
1392 """SetStringSelection(self, String s, bool select=True) -> bool"""
1393 return _controls_
.ListBox_SetStringSelection(*args
, **kwargs
)
1395 def GetSelections(*args
, **kwargs
):
1396 """GetSelections(self) -> PyObject"""
1397 return _controls_
.ListBox_GetSelections(*args
, **kwargs
)
1399 def SetFirstItem(*args
, **kwargs
):
1400 """SetFirstItem(self, int n)"""
1401 return _controls_
.ListBox_SetFirstItem(*args
, **kwargs
)
1403 def SetFirstItemStr(*args
, **kwargs
):
1404 """SetFirstItemStr(self, String s)"""
1405 return _controls_
.ListBox_SetFirstItemStr(*args
, **kwargs
)
1407 def EnsureVisible(*args
, **kwargs
):
1408 """EnsureVisible(self, int n)"""
1409 return _controls_
.ListBox_EnsureVisible(*args
, **kwargs
)
1411 def AppendAndEnsureVisible(*args
, **kwargs
):
1412 """AppendAndEnsureVisible(self, String s)"""
1413 return _controls_
.ListBox_AppendAndEnsureVisible(*args
, **kwargs
)
1415 def IsSorted(*args
, **kwargs
):
1416 """IsSorted(self) -> bool"""
1417 return _controls_
.ListBox_IsSorted(*args
, **kwargs
)
1419 def SetItemForegroundColour(*args
, **kwargs
):
1420 """SetItemForegroundColour(self, int item, Colour c)"""
1421 return _controls_
.ListBox_SetItemForegroundColour(*args
, **kwargs
)
1423 def SetItemBackgroundColour(*args
, **kwargs
):
1424 """SetItemBackgroundColour(self, int item, Colour c)"""
1425 return _controls_
.ListBox_SetItemBackgroundColour(*args
, **kwargs
)
1427 def SetItemFont(*args
, **kwargs
):
1428 """SetItemFont(self, int item, Font f)"""
1429 return _controls_
.ListBox_SetItemFont(*args
, **kwargs
)
1431 def GetClassDefaultAttributes(*args
, **kwargs
):
1433 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1435 Get the default attributes for this class. This is useful if you want
1436 to use the same font or colour in your own control as in a standard
1437 control -- which is a much better idea than hard coding specific
1438 colours or fonts which might look completely out of place on the
1439 user's system, especially if it uses themes.
1441 The variant parameter is only relevant under Mac currently and is
1442 ignore under other platforms. Under Mac, it will change the size of
1443 the returned font. See `wx.Window.SetWindowVariant` for more about
1446 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1448 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1450 class ListBoxPtr(ListBox
):
1451 def __init__(self
, this
):
1453 if not hasattr(self
,"thisown"): self
.thisown
= 0
1454 self
.__class
__ = ListBox
1455 _controls_
.ListBox_swigregister(ListBoxPtr
)
1456 ListBoxNameStr
= cvar
.ListBoxNameStr
1458 def PreListBox(*args
, **kwargs
):
1459 """PreListBox() -> ListBox"""
1460 val
= _controls_
.new_PreListBox(*args
, **kwargs
)
1464 def ListBox_GetClassDefaultAttributes(*args
, **kwargs
):
1466 ListBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1468 Get the default attributes for this class. This is useful if you want
1469 to use the same font or colour in your own control as in a standard
1470 control -- which is a much better idea than hard coding specific
1471 colours or fonts which might look completely out of place on the
1472 user's system, especially if it uses themes.
1474 The variant parameter is only relevant under Mac currently and is
1475 ignore under other platforms. Under Mac, it will change the size of
1476 the returned font. See `wx.Window.SetWindowVariant` for more about
1479 return _controls_
.ListBox_GetClassDefaultAttributes(*args
, **kwargs
)
1481 #---------------------------------------------------------------------------
1483 class CheckListBox(ListBox
):
1484 """Proxy of C++ CheckListBox class"""
1486 return "<%s.%s; proxy of C++ wxCheckListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1487 def __init__(self
, *args
, **kwargs
):
1489 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1490 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1491 long style=0, Validator validator=DefaultValidator,
1492 String name=ListBoxNameStr) -> CheckListBox
1494 newobj
= _controls_
.new_CheckListBox(*args
, **kwargs
)
1495 self
.this
= newobj
.this
1498 self
._setOORInfo
(self
)
1500 def Create(*args
, **kwargs
):
1502 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1503 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
1504 long style=0, Validator validator=DefaultValidator,
1505 String name=ListBoxNameStr) -> bool
1507 return _controls_
.CheckListBox_Create(*args
, **kwargs
)
1509 def IsChecked(*args
, **kwargs
):
1510 """IsChecked(self, int index) -> bool"""
1511 return _controls_
.CheckListBox_IsChecked(*args
, **kwargs
)
1513 def Check(*args
, **kwargs
):
1514 """Check(self, int index, int check=True)"""
1515 return _controls_
.CheckListBox_Check(*args
, **kwargs
)
1517 def GetItemHeight(*args
, **kwargs
):
1518 """GetItemHeight(self) -> int"""
1519 return _controls_
.CheckListBox_GetItemHeight(*args
, **kwargs
)
1521 def HitTest(*args
, **kwargs
):
1523 HitTest(self, Point pt) -> int
1525 Test where the given (in client coords) point lies
1527 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1529 def HitTestXY(*args
, **kwargs
):
1531 HitTestXY(self, int x, int y) -> int
1533 Test where the given (in client coords) point lies
1535 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1538 class CheckListBoxPtr(CheckListBox
):
1539 def __init__(self
, this
):
1541 if not hasattr(self
,"thisown"): self
.thisown
= 0
1542 self
.__class
__ = CheckListBox
1543 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1545 def PreCheckListBox(*args
, **kwargs
):
1546 """PreCheckListBox() -> CheckListBox"""
1547 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1551 #---------------------------------------------------------------------------
1553 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1554 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1555 TE_READONLY
= _controls_
.TE_READONLY
1556 TE_MULTILINE
= _controls_
.TE_MULTILINE
1557 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1558 TE_LEFT
= _controls_
.TE_LEFT
1559 TE_CENTER
= _controls_
.TE_CENTER
1560 TE_RIGHT
= _controls_
.TE_RIGHT
1561 TE_CENTRE
= _controls_
.TE_CENTRE
1562 TE_RICH
= _controls_
.TE_RICH
1563 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1564 TE_PASSWORD
= _controls_
.TE_PASSWORD
1565 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1566 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1567 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1568 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1569 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1570 TE_RICH2
= _controls_
.TE_RICH2
1571 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1572 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1573 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1574 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1575 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1576 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1577 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1578 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1579 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1580 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1581 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1582 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1583 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1584 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1585 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1586 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1587 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1588 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1589 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1590 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1591 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1592 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1593 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1594 class TextAttr(object):
1595 """Proxy of C++ TextAttr class"""
1597 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1598 def __init__(self
, *args
, **kwargs
):
1600 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1601 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1603 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1604 self
.this
= newobj
.this
1607 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1610 if self
.thisown
: destroy(self
)
1613 def Init(*args
, **kwargs
):
1615 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1617 def SetTextColour(*args
, **kwargs
):
1618 """SetTextColour(self, Colour colText)"""
1619 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1621 def SetBackgroundColour(*args
, **kwargs
):
1622 """SetBackgroundColour(self, Colour colBack)"""
1623 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1625 def SetFont(*args
, **kwargs
):
1626 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1627 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1629 def SetAlignment(*args
, **kwargs
):
1630 """SetAlignment(self, int alignment)"""
1631 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1633 def SetTabs(*args
, **kwargs
):
1634 """SetTabs(self, wxArrayInt tabs)"""
1635 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1637 def SetLeftIndent(*args
, **kwargs
):
1638 """SetLeftIndent(self, int indent, int subIndent=0)"""
1639 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1641 def SetRightIndent(*args
, **kwargs
):
1642 """SetRightIndent(self, int indent)"""
1643 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1645 def SetFlags(*args
, **kwargs
):
1646 """SetFlags(self, long flags)"""
1647 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1649 def HasTextColour(*args
, **kwargs
):
1650 """HasTextColour(self) -> bool"""
1651 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1653 def HasBackgroundColour(*args
, **kwargs
):
1654 """HasBackgroundColour(self) -> bool"""
1655 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1657 def HasFont(*args
, **kwargs
):
1658 """HasFont(self) -> bool"""
1659 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1661 def HasAlignment(*args
, **kwargs
):
1662 """HasAlignment(self) -> bool"""
1663 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1665 def HasTabs(*args
, **kwargs
):
1666 """HasTabs(self) -> bool"""
1667 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1669 def HasLeftIndent(*args
, **kwargs
):
1670 """HasLeftIndent(self) -> bool"""
1671 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1673 def HasRightIndent(*args
, **kwargs
):
1674 """HasRightIndent(self) -> bool"""
1675 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1677 def HasFlag(*args
, **kwargs
):
1678 """HasFlag(self, long flag) -> bool"""
1679 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1681 def GetTextColour(*args
, **kwargs
):
1682 """GetTextColour(self) -> Colour"""
1683 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1685 def GetBackgroundColour(*args
, **kwargs
):
1686 """GetBackgroundColour(self) -> Colour"""
1687 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1689 def GetFont(*args
, **kwargs
):
1690 """GetFont(self) -> Font"""
1691 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1693 def GetAlignment(*args
, **kwargs
):
1694 """GetAlignment(self) -> int"""
1695 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1697 def GetTabs(*args
, **kwargs
):
1698 """GetTabs(self) -> wxArrayInt"""
1699 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1701 def GetLeftIndent(*args
, **kwargs
):
1702 """GetLeftIndent(self) -> long"""
1703 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1705 def GetLeftSubIndent(*args
, **kwargs
):
1706 """GetLeftSubIndent(self) -> long"""
1707 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1709 def GetRightIndent(*args
, **kwargs
):
1710 """GetRightIndent(self) -> long"""
1711 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1713 def GetFlags(*args
, **kwargs
):
1714 """GetFlags(self) -> long"""
1715 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1717 def IsDefault(*args
, **kwargs
):
1718 """IsDefault(self) -> bool"""
1719 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1721 def Combine(*args
, **kwargs
):
1722 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1723 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1725 Combine
= staticmethod(Combine
)
1727 class TextAttrPtr(TextAttr
):
1728 def __init__(self
, this
):
1730 if not hasattr(self
,"thisown"): self
.thisown
= 0
1731 self
.__class
__ = TextAttr
1732 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1733 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1735 def TextAttr_Combine(*args
, **kwargs
):
1736 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1737 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1739 class TextCtrl(_core
.Control
):
1740 """Proxy of C++ TextCtrl class"""
1742 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1743 def __init__(self
, *args
, **kwargs
):
1745 __init__(self, Window parent, int id=-1, String value=EmptyString,
1746 Point pos=DefaultPosition, Size size=DefaultSize,
1747 long style=0, Validator validator=DefaultValidator,
1748 String name=TextCtrlNameStr) -> TextCtrl
1750 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1751 self
.this
= newobj
.this
1754 self
._setOORInfo
(self
)
1756 def Create(*args
, **kwargs
):
1758 Create(self, Window parent, int id=-1, String value=EmptyString,
1759 Point pos=DefaultPosition, Size size=DefaultSize,
1760 long style=0, Validator validator=DefaultValidator,
1761 String name=TextCtrlNameStr) -> bool
1763 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1765 def GetValue(*args
, **kwargs
):
1766 """GetValue(self) -> String"""
1767 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1769 def SetValue(*args
, **kwargs
):
1770 """SetValue(self, String value)"""
1771 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1773 def GetRange(*args
, **kwargs
):
1774 """GetRange(self, long from, long to) -> String"""
1775 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1777 def GetLineLength(*args
, **kwargs
):
1778 """GetLineLength(self, long lineNo) -> int"""
1779 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1781 def GetLineText(*args
, **kwargs
):
1782 """GetLineText(self, long lineNo) -> String"""
1783 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1785 def GetNumberOfLines(*args
, **kwargs
):
1786 """GetNumberOfLines(self) -> int"""
1787 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1789 def IsModified(*args
, **kwargs
):
1790 """IsModified(self) -> bool"""
1791 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1793 def IsEditable(*args
, **kwargs
):
1794 """IsEditable(self) -> bool"""
1795 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1797 def IsSingleLine(*args
, **kwargs
):
1798 """IsSingleLine(self) -> bool"""
1799 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1801 def IsMultiLine(*args
, **kwargs
):
1802 """IsMultiLine(self) -> bool"""
1803 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1805 def GetSelection(*args
, **kwargs
):
1807 GetSelection() -> (from, to)
1809 If the return values from and to are the same, there is no selection.
1811 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1813 def GetStringSelection(*args
, **kwargs
):
1814 """GetStringSelection(self) -> String"""
1815 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1817 def Clear(*args
, **kwargs
):
1819 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1821 def Replace(*args
, **kwargs
):
1822 """Replace(self, long from, long to, String value)"""
1823 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1825 def Remove(*args
, **kwargs
):
1826 """Remove(self, long from, long to)"""
1827 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1829 def LoadFile(*args
, **kwargs
):
1830 """LoadFile(self, String file) -> bool"""
1831 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1833 def SaveFile(*args
, **kwargs
):
1834 """SaveFile(self, String file=EmptyString) -> bool"""
1835 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1837 def MarkDirty(*args
, **kwargs
):
1838 """MarkDirty(self)"""
1839 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1841 def DiscardEdits(*args
, **kwargs
):
1842 """DiscardEdits(self)"""
1843 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1845 def SetMaxLength(*args
, **kwargs
):
1846 """SetMaxLength(self, unsigned long len)"""
1847 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1849 def WriteText(*args
, **kwargs
):
1850 """WriteText(self, String text)"""
1851 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1853 def AppendText(*args
, **kwargs
):
1854 """AppendText(self, String text)"""
1855 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1857 def EmulateKeyPress(*args
, **kwargs
):
1858 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1859 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1861 def SetStyle(*args
, **kwargs
):
1862 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1863 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1865 def GetStyle(*args
, **kwargs
):
1866 """GetStyle(self, long position, TextAttr style) -> bool"""
1867 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1869 def SetDefaultStyle(*args
, **kwargs
):
1870 """SetDefaultStyle(self, TextAttr style) -> bool"""
1871 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1873 def GetDefaultStyle(*args
, **kwargs
):
1874 """GetDefaultStyle(self) -> TextAttr"""
1875 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1877 def XYToPosition(*args
, **kwargs
):
1878 """XYToPosition(self, long x, long y) -> long"""
1879 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1881 def PositionToXY(*args
, **kwargs
):
1882 """PositionToXY(long pos) -> (x, y)"""
1883 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1885 def ShowPosition(*args
, **kwargs
):
1886 """ShowPosition(self, long pos)"""
1887 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1889 def HitTest(*args
, **kwargs
):
1891 HitTest(Point pt) -> (result, col, row)
1893 Find the row, col coresponding to the character at the point given in
1894 pixels. NB: pt is in device coords but is not adjusted for the client
1895 area origin nor scrolling.
1897 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1899 def HitTestPos(*args
, **kwargs
):
1901 HitTestPos(Point pt) -> (result, position)
1903 Find the character position in the text coresponding to the point
1904 given in pixels. NB: pt is in device coords but is not adjusted for
1905 the client area origin nor scrolling.
1907 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1909 def Copy(*args
, **kwargs
):
1911 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1913 def Cut(*args
, **kwargs
):
1915 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1917 def Paste(*args
, **kwargs
):
1919 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1921 def CanCopy(*args
, **kwargs
):
1922 """CanCopy(self) -> bool"""
1923 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1925 def CanCut(*args
, **kwargs
):
1926 """CanCut(self) -> bool"""
1927 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1929 def CanPaste(*args
, **kwargs
):
1930 """CanPaste(self) -> bool"""
1931 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1933 def Undo(*args
, **kwargs
):
1935 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1937 def Redo(*args
, **kwargs
):
1939 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1941 def CanUndo(*args
, **kwargs
):
1942 """CanUndo(self) -> bool"""
1943 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1945 def CanRedo(*args
, **kwargs
):
1946 """CanRedo(self) -> bool"""
1947 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1949 def SetInsertionPoint(*args
, **kwargs
):
1950 """SetInsertionPoint(self, long pos)"""
1951 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1953 def SetInsertionPointEnd(*args
, **kwargs
):
1954 """SetInsertionPointEnd(self)"""
1955 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1957 def GetInsertionPoint(*args
, **kwargs
):
1958 """GetInsertionPoint(self) -> long"""
1959 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1961 def GetLastPosition(*args
, **kwargs
):
1962 """GetLastPosition(self) -> long"""
1963 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1965 def SetSelection(*args
, **kwargs
):
1966 """SetSelection(self, long from, long to)"""
1967 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1969 def SelectAll(*args
, **kwargs
):
1970 """SelectAll(self)"""
1971 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1973 def SetEditable(*args
, **kwargs
):
1974 """SetEditable(self, bool editable)"""
1975 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1977 def write(*args
, **kwargs
):
1978 """write(self, String text)"""
1979 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1981 def GetString(*args
, **kwargs
):
1982 """GetString(self, long from, long to) -> String"""
1983 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1985 def GetClassDefaultAttributes(*args
, **kwargs
):
1987 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1989 Get the default attributes for this class. This is useful if you want
1990 to use the same font or colour in your own control as in a standard
1991 control -- which is a much better idea than hard coding specific
1992 colours or fonts which might look completely out of place on the
1993 user's system, especially if it uses themes.
1995 The variant parameter is only relevant under Mac currently and is
1996 ignore under other platforms. Under Mac, it will change the size of
1997 the returned font. See `wx.Window.SetWindowVariant` for more about
2000 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2002 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2004 class TextCtrlPtr(TextCtrl
):
2005 def __init__(self
, this
):
2007 if not hasattr(self
,"thisown"): self
.thisown
= 0
2008 self
.__class
__ = TextCtrl
2009 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
2011 def PreTextCtrl(*args
, **kwargs
):
2012 """PreTextCtrl() -> TextCtrl"""
2013 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
2017 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2019 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2021 Get the default attributes for this class. This is useful if you want
2022 to use the same font or colour in your own control as in a standard
2023 control -- which is a much better idea than hard coding specific
2024 colours or fonts which might look completely out of place on the
2025 user's system, especially if it uses themes.
2027 The variant parameter is only relevant under Mac currently and is
2028 ignore under other platforms. Under Mac, it will change the size of
2029 the returned font. See `wx.Window.SetWindowVariant` for more about
2032 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2034 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
2035 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
2036 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
2037 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
2038 class TextUrlEvent(_core
.CommandEvent
):
2039 """Proxy of C++ TextUrlEvent class"""
2041 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2042 def __init__(self
, *args
, **kwargs
):
2043 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
2044 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
2045 self
.this
= newobj
.this
2048 def GetMouseEvent(*args
, **kwargs
):
2049 """GetMouseEvent(self) -> MouseEvent"""
2050 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
2052 def GetURLStart(*args
, **kwargs
):
2053 """GetURLStart(self) -> long"""
2054 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
2056 def GetURLEnd(*args
, **kwargs
):
2057 """GetURLEnd(self) -> long"""
2058 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
2061 class TextUrlEventPtr(TextUrlEvent
):
2062 def __init__(self
, this
):
2064 if not hasattr(self
,"thisown"): self
.thisown
= 0
2065 self
.__class
__ = TextUrlEvent
2066 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
2068 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
2069 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
2070 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
2071 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
2073 #---------------------------------------------------------------------------
2075 class ScrollBar(_core
.Control
):
2076 """Proxy of C++ ScrollBar class"""
2078 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2079 def __init__(self
, *args
, **kwargs
):
2081 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2082 Size size=DefaultSize, long style=SB_HORIZONTAL,
2083 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2085 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
2086 self
.this
= newobj
.this
2089 self
._setOORInfo
(self
)
2091 def Create(*args
, **kwargs
):
2093 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2094 Size size=DefaultSize, long style=SB_HORIZONTAL,
2095 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2097 Do the 2nd phase and create the GUI control.
2099 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2101 def GetThumbPosition(*args
, **kwargs
):
2102 """GetThumbPosition(self) -> int"""
2103 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2105 def GetThumbSize(*args
, **kwargs
):
2106 """GetThumbSize(self) -> int"""
2107 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2109 GetThumbLength
= GetThumbSize
2110 def GetPageSize(*args
, **kwargs
):
2111 """GetPageSize(self) -> int"""
2112 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2114 def GetRange(*args
, **kwargs
):
2115 """GetRange(self) -> int"""
2116 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2118 def IsVertical(*args
, **kwargs
):
2119 """IsVertical(self) -> bool"""
2120 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2122 def SetThumbPosition(*args
, **kwargs
):
2123 """SetThumbPosition(self, int viewStart)"""
2124 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2126 def SetScrollbar(*args
, **kwargs
):
2128 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2131 Sets the scrollbar properties of a built-in scrollbar.
2133 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2135 def GetClassDefaultAttributes(*args
, **kwargs
):
2137 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2139 Get the default attributes for this class. This is useful if you want
2140 to use the same font or colour in your own control as in a standard
2141 control -- which is a much better idea than hard coding specific
2142 colours or fonts which might look completely out of place on the
2143 user's system, especially if it uses themes.
2145 The variant parameter is only relevant under Mac currently and is
2146 ignore under other platforms. Under Mac, it will change the size of
2147 the returned font. See `wx.Window.SetWindowVariant` for more about
2150 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2152 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2154 class ScrollBarPtr(ScrollBar
):
2155 def __init__(self
, this
):
2157 if not hasattr(self
,"thisown"): self
.thisown
= 0
2158 self
.__class
__ = ScrollBar
2159 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2160 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2162 def PreScrollBar(*args
, **kwargs
):
2163 """PreScrollBar() -> ScrollBar"""
2164 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2168 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2170 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2172 Get the default attributes for this class. This is useful if you want
2173 to use the same font or colour in your own control as in a standard
2174 control -- which is a much better idea than hard coding specific
2175 colours or fonts which might look completely out of place on the
2176 user's system, especially if it uses themes.
2178 The variant parameter is only relevant under Mac currently and is
2179 ignore under other platforms. Under Mac, it will change the size of
2180 the returned font. See `wx.Window.SetWindowVariant` for more about
2183 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2185 #---------------------------------------------------------------------------
2187 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2188 SP_VERTICAL
= _controls_
.SP_VERTICAL
2189 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2190 SP_WRAP
= _controls_
.SP_WRAP
2191 class SpinButton(_core
.Control
):
2192 """Proxy of C++ SpinButton class"""
2194 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2195 def __init__(self
, *args
, **kwargs
):
2197 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2198 Size size=DefaultSize, long style=SP_HORIZONTAL,
2199 String name=SPIN_BUTTON_NAME) -> SpinButton
2201 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2202 self
.this
= newobj
.this
2205 self
._setOORInfo
(self
)
2207 def Create(*args
, **kwargs
):
2209 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2210 Size size=DefaultSize, long style=SP_HORIZONTAL,
2211 String name=SPIN_BUTTON_NAME) -> bool
2213 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2215 def GetValue(*args
, **kwargs
):
2216 """GetValue(self) -> int"""
2217 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2219 def GetMin(*args
, **kwargs
):
2220 """GetMin(self) -> int"""
2221 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2223 def GetMax(*args
, **kwargs
):
2224 """GetMax(self) -> int"""
2225 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2227 def SetValue(*args
, **kwargs
):
2228 """SetValue(self, int val)"""
2229 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2231 def SetMin(*args
, **kwargs
):
2232 """SetMin(self, int minVal)"""
2233 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2235 def SetMax(*args
, **kwargs
):
2236 """SetMax(self, int maxVal)"""
2237 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2239 def SetRange(*args
, **kwargs
):
2240 """SetRange(self, int minVal, int maxVal)"""
2241 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2243 def IsVertical(*args
, **kwargs
):
2244 """IsVertical(self) -> bool"""
2245 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2247 def GetClassDefaultAttributes(*args
, **kwargs
):
2249 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2251 Get the default attributes for this class. This is useful if you want
2252 to use the same font or colour in your own control as in a standard
2253 control -- which is a much better idea than hard coding specific
2254 colours or fonts which might look completely out of place on the
2255 user's system, especially if it uses themes.
2257 The variant parameter is only relevant under Mac currently and is
2258 ignore under other platforms. Under Mac, it will change the size of
2259 the returned font. See `wx.Window.SetWindowVariant` for more about
2262 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2264 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2266 class SpinButtonPtr(SpinButton
):
2267 def __init__(self
, this
):
2269 if not hasattr(self
,"thisown"): self
.thisown
= 0
2270 self
.__class
__ = SpinButton
2271 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2272 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2273 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2275 def PreSpinButton(*args
, **kwargs
):
2276 """PreSpinButton() -> SpinButton"""
2277 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2281 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2283 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2285 Get the default attributes for this class. This is useful if you want
2286 to use the same font or colour in your own control as in a standard
2287 control -- which is a much better idea than hard coding specific
2288 colours or fonts which might look completely out of place on the
2289 user's system, especially if it uses themes.
2291 The variant parameter is only relevant under Mac currently and is
2292 ignore under other platforms. Under Mac, it will change the size of
2293 the returned font. See `wx.Window.SetWindowVariant` for more about
2296 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2298 class SpinCtrl(_core
.Control
):
2299 """Proxy of C++ SpinCtrl class"""
2301 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2302 def __init__(self
, *args
, **kwargs
):
2304 __init__(self, Window parent, int id=-1, String value=EmptyString,
2305 Point pos=DefaultPosition, Size size=DefaultSize,
2306 long style=SP_ARROW_KEYS, int min=0, int max=100,
2307 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2309 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2310 self
.this
= newobj
.this
2313 self
._setOORInfo
(self
)
2315 def Create(*args
, **kwargs
):
2317 Create(self, Window parent, int id=-1, String value=EmptyString,
2318 Point pos=DefaultPosition, Size size=DefaultSize,
2319 long style=SP_ARROW_KEYS, int min=0, int max=100,
2320 int initial=0, String name=SpinCtrlNameStr) -> bool
2322 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2324 def GetValue(*args
, **kwargs
):
2325 """GetValue(self) -> int"""
2326 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2328 def SetValue(*args
, **kwargs
):
2329 """SetValue(self, int value)"""
2330 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2332 def SetValueString(*args
, **kwargs
):
2333 """SetValueString(self, String text)"""
2334 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2336 def SetRange(*args
, **kwargs
):
2337 """SetRange(self, int minVal, int maxVal)"""
2338 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2340 def GetMin(*args
, **kwargs
):
2341 """GetMin(self) -> int"""
2342 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2344 def GetMax(*args
, **kwargs
):
2345 """GetMax(self) -> int"""
2346 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2348 def SetSelection(*args
, **kwargs
):
2349 """SetSelection(self, long from, long to)"""
2350 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2352 def GetClassDefaultAttributes(*args
, **kwargs
):
2354 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2356 Get the default attributes for this class. This is useful if you want
2357 to use the same font or colour in your own control as in a standard
2358 control -- which is a much better idea than hard coding specific
2359 colours or fonts which might look completely out of place on the
2360 user's system, especially if it uses themes.
2362 The variant parameter is only relevant under Mac currently and is
2363 ignore under other platforms. Under Mac, it will change the size of
2364 the returned font. See `wx.Window.SetWindowVariant` for more about
2367 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2369 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2371 class SpinCtrlPtr(SpinCtrl
):
2372 def __init__(self
, this
):
2374 if not hasattr(self
,"thisown"): self
.thisown
= 0
2375 self
.__class
__ = SpinCtrl
2376 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2378 def PreSpinCtrl(*args
, **kwargs
):
2379 """PreSpinCtrl() -> SpinCtrl"""
2380 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2384 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2386 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2388 Get the default attributes for this class. This is useful if you want
2389 to use the same font or colour in your own control as in a standard
2390 control -- which is a much better idea than hard coding specific
2391 colours or fonts which might look completely out of place on the
2392 user's system, especially if it uses themes.
2394 The variant parameter is only relevant under Mac currently and is
2395 ignore under other platforms. Under Mac, it will change the size of
2396 the returned font. See `wx.Window.SetWindowVariant` for more about
2399 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2401 class SpinEvent(_core
.NotifyEvent
):
2402 """Proxy of C++ SpinEvent class"""
2404 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2405 def __init__(self
, *args
, **kwargs
):
2406 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2407 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2408 self
.this
= newobj
.this
2411 def GetPosition(*args
, **kwargs
):
2412 """GetPosition(self) -> int"""
2413 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2415 def SetPosition(*args
, **kwargs
):
2416 """SetPosition(self, int pos)"""
2417 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2420 class SpinEventPtr(SpinEvent
):
2421 def __init__(self
, this
):
2423 if not hasattr(self
,"thisown"): self
.thisown
= 0
2424 self
.__class
__ = SpinEvent
2425 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2427 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2428 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2429 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2430 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2431 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2433 #---------------------------------------------------------------------------
2435 class RadioBox(_core
.Control
):
2436 """Proxy of C++ RadioBox class"""
2438 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2439 def __init__(self
, *args
, **kwargs
):
2441 __init__(self, Window parent, int id=-1, String label=EmptyString,
2442 Point pos=DefaultPosition, Size size=DefaultSize,
2443 wxArrayString choices=wxPyEmptyStringArray,
2444 int majorDimension=0, long style=RA_HORIZONTAL,
2445 Validator validator=DefaultValidator,
2446 String name=RadioBoxNameStr) -> RadioBox
2448 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2449 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2450 self
.this
= newobj
.this
2453 self
._setOORInfo
(self
)
2455 def Create(*args
, **kwargs
):
2457 Create(self, Window parent, int id=-1, String label=EmptyString,
2458 Point pos=DefaultPosition, Size size=DefaultSize,
2459 wxArrayString choices=wxPyEmptyStringArray,
2460 int majorDimension=0, long style=RA_HORIZONTAL,
2461 Validator validator=DefaultValidator,
2462 String name=RadioBoxNameStr) -> bool
2464 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2466 def SetSelection(*args
, **kwargs
):
2467 """SetSelection(self, int n)"""
2468 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2470 def GetSelection(*args
, **kwargs
):
2471 """GetSelection(self) -> int"""
2472 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2474 def GetStringSelection(*args
, **kwargs
):
2475 """GetStringSelection(self) -> String"""
2476 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2478 def SetStringSelection(*args
, **kwargs
):
2479 """SetStringSelection(self, String s) -> bool"""
2480 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2482 def GetCount(*args
, **kwargs
):
2483 """GetCount(self) -> int"""
2484 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2486 def FindString(*args
, **kwargs
):
2487 """FindString(self, String s) -> int"""
2488 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2490 def GetString(*args
, **kwargs
):
2491 """GetString(self, int n) -> String"""
2492 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2494 def SetString(*args
, **kwargs
):
2495 """SetString(self, int n, String label)"""
2496 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2498 GetItemLabel
= GetString
2499 SetItemLabel
= SetString
2500 def EnableItem(*args
, **kwargs
):
2501 """EnableItem(self, int n, bool enable=True)"""
2502 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2504 def ShowItem(*args
, **kwargs
):
2505 """ShowItem(self, int n, bool show=True)"""
2506 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2508 def GetColumnCount(*args
, **kwargs
):
2509 """GetColumnCount(self) -> int"""
2510 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2512 def GetRowCount(*args
, **kwargs
):
2513 """GetRowCount(self) -> int"""
2514 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2516 def GetNextItem(*args
, **kwargs
):
2517 """GetNextItem(self, int item, int dir, long style) -> int"""
2518 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2520 def GetClassDefaultAttributes(*args
, **kwargs
):
2522 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2524 Get the default attributes for this class. This is useful if you want
2525 to use the same font or colour in your own control as in a standard
2526 control -- which is a much better idea than hard coding specific
2527 colours or fonts which might look completely out of place on the
2528 user's system, especially if it uses themes.
2530 The variant parameter is only relevant under Mac currently and is
2531 ignore under other platforms. Under Mac, it will change the size of
2532 the returned font. See `wx.Window.SetWindowVariant` for more about
2535 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2537 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2539 class RadioBoxPtr(RadioBox
):
2540 def __init__(self
, this
):
2542 if not hasattr(self
,"thisown"): self
.thisown
= 0
2543 self
.__class
__ = RadioBox
2544 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2545 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2546 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2548 def PreRadioBox(*args
, **kwargs
):
2549 """PreRadioBox() -> RadioBox"""
2550 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2554 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2556 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2558 Get the default attributes for this class. This is useful if you want
2559 to use the same font or colour in your own control as in a standard
2560 control -- which is a much better idea than hard coding specific
2561 colours or fonts which might look completely out of place on the
2562 user's system, especially if it uses themes.
2564 The variant parameter is only relevant under Mac currently and is
2565 ignore under other platforms. Under Mac, it will change the size of
2566 the returned font. See `wx.Window.SetWindowVariant` for more about
2569 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2571 #---------------------------------------------------------------------------
2573 class RadioButton(_core
.Control
):
2574 """Proxy of C++ RadioButton class"""
2576 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2577 def __init__(self
, *args
, **kwargs
):
2579 __init__(self, Window parent, int id=-1, String label=EmptyString,
2580 Point pos=DefaultPosition, Size size=DefaultSize,
2581 long style=0, Validator validator=DefaultValidator,
2582 String name=RadioButtonNameStr) -> RadioButton
2584 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2585 self
.this
= newobj
.this
2588 self
._setOORInfo
(self
)
2590 def Create(*args
, **kwargs
):
2592 Create(self, Window parent, int id=-1, String label=EmptyString,
2593 Point pos=DefaultPosition, Size size=DefaultSize,
2594 long style=0, Validator validator=DefaultValidator,
2595 String name=RadioButtonNameStr) -> bool
2597 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2599 def GetValue(*args
, **kwargs
):
2600 """GetValue(self) -> bool"""
2601 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2603 def SetValue(*args
, **kwargs
):
2604 """SetValue(self, bool value)"""
2605 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2607 def GetClassDefaultAttributes(*args
, **kwargs
):
2609 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2611 Get the default attributes for this class. This is useful if you want
2612 to use the same font or colour in your own control as in a standard
2613 control -- which is a much better idea than hard coding specific
2614 colours or fonts which might look completely out of place on the
2615 user's system, especially if it uses themes.
2617 The variant parameter is only relevant under Mac currently and is
2618 ignore under other platforms. Under Mac, it will change the size of
2619 the returned font. See `wx.Window.SetWindowVariant` for more about
2622 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2624 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2626 class RadioButtonPtr(RadioButton
):
2627 def __init__(self
, this
):
2629 if not hasattr(self
,"thisown"): self
.thisown
= 0
2630 self
.__class
__ = RadioButton
2631 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2633 def PreRadioButton(*args
, **kwargs
):
2634 """PreRadioButton() -> RadioButton"""
2635 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2639 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2641 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2643 Get the default attributes for this class. This is useful if you want
2644 to use the same font or colour in your own control as in a standard
2645 control -- which is a much better idea than hard coding specific
2646 colours or fonts which might look completely out of place on the
2647 user's system, especially if it uses themes.
2649 The variant parameter is only relevant under Mac currently and is
2650 ignore under other platforms. Under Mac, it will change the size of
2651 the returned font. See `wx.Window.SetWindowVariant` for more about
2654 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2656 #---------------------------------------------------------------------------
2658 class Slider(_core
.Control
):
2659 """Proxy of C++ Slider class"""
2661 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2662 def __init__(self
, *args
, **kwargs
):
2664 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2665 int maxValue=100, Point pos=DefaultPosition,
2666 Size size=DefaultSize, long style=SL_HORIZONTAL,
2667 Validator validator=DefaultValidator,
2668 String name=SliderNameStr) -> Slider
2670 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2671 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2672 self
.this
= newobj
.this
2675 self
._setOORInfo
(self
)
2677 def Create(*args
, **kwargs
):
2679 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2680 int maxValue=100, Point pos=DefaultPosition,
2681 Size size=DefaultSize, long style=SL_HORIZONTAL,
2682 Validator validator=DefaultValidator,
2683 String name=SliderNameStr) -> bool
2685 return _controls_
.Slider_Create(*args
, **kwargs
)
2687 def GetValue(*args
, **kwargs
):
2688 """GetValue(self) -> int"""
2689 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2691 def SetValue(*args
, **kwargs
):
2692 """SetValue(self, int value)"""
2693 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2695 def SetRange(*args
, **kwargs
):
2696 """SetRange(self, int minValue, int maxValue)"""
2697 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2699 def GetMin(*args
, **kwargs
):
2700 """GetMin(self) -> int"""
2701 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2703 def GetMax(*args
, **kwargs
):
2704 """GetMax(self) -> int"""
2705 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2707 def SetMin(*args
, **kwargs
):
2708 """SetMin(self, int minValue)"""
2709 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2711 def SetMax(*args
, **kwargs
):
2712 """SetMax(self, int maxValue)"""
2713 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2715 def SetLineSize(*args
, **kwargs
):
2716 """SetLineSize(self, int lineSize)"""
2717 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2719 def SetPageSize(*args
, **kwargs
):
2720 """SetPageSize(self, int pageSize)"""
2721 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2723 def GetLineSize(*args
, **kwargs
):
2724 """GetLineSize(self) -> int"""
2725 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2727 def GetPageSize(*args
, **kwargs
):
2728 """GetPageSize(self) -> int"""
2729 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2731 def SetThumbLength(*args
, **kwargs
):
2732 """SetThumbLength(self, int lenPixels)"""
2733 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2735 def GetThumbLength(*args
, **kwargs
):
2736 """GetThumbLength(self) -> int"""
2737 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2739 def SetTickFreq(*args
, **kwargs
):
2740 """SetTickFreq(self, int n, int pos=1)"""
2741 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2743 def GetTickFreq(*args
, **kwargs
):
2744 """GetTickFreq(self) -> int"""
2745 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2747 def ClearTicks(*args
, **kwargs
):
2748 """ClearTicks(self)"""
2749 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2751 def SetTick(*args
, **kwargs
):
2752 """SetTick(self, int tickPos)"""
2753 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2755 def ClearSel(*args
, **kwargs
):
2756 """ClearSel(self)"""
2757 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2759 def GetSelEnd(*args
, **kwargs
):
2760 """GetSelEnd(self) -> int"""
2761 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2763 def GetSelStart(*args
, **kwargs
):
2764 """GetSelStart(self) -> int"""
2765 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2767 def SetSelection(*args
, **kwargs
):
2768 """SetSelection(self, int min, int max)"""
2769 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2771 def GetClassDefaultAttributes(*args
, **kwargs
):
2773 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2775 Get the default attributes for this class. This is useful if you want
2776 to use the same font or colour in your own control as in a standard
2777 control -- which is a much better idea than hard coding specific
2778 colours or fonts which might look completely out of place on the
2779 user's system, especially if it uses themes.
2781 The variant parameter is only relevant under Mac currently and is
2782 ignore under other platforms. Under Mac, it will change the size of
2783 the returned font. See `wx.Window.SetWindowVariant` for more about
2786 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2788 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2790 class SliderPtr(Slider
):
2791 def __init__(self
, this
):
2793 if not hasattr(self
,"thisown"): self
.thisown
= 0
2794 self
.__class
__ = Slider
2795 _controls_
.Slider_swigregister(SliderPtr
)
2796 SliderNameStr
= cvar
.SliderNameStr
2798 def PreSlider(*args
, **kwargs
):
2799 """PreSlider() -> Slider"""
2800 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2804 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2806 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2808 Get the default attributes for this class. This is useful if you want
2809 to use the same font or colour in your own control as in a standard
2810 control -- which is a much better idea than hard coding specific
2811 colours or fonts which might look completely out of place on the
2812 user's system, especially if it uses themes.
2814 The variant parameter is only relevant under Mac currently and is
2815 ignore under other platforms. Under Mac, it will change the size of
2816 the returned font. See `wx.Window.SetWindowVariant` for more about
2819 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2821 #---------------------------------------------------------------------------
2823 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2824 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2826 class ToggleButton(_core
.Control
):
2827 """Proxy of C++ ToggleButton class"""
2829 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2830 def __init__(self
, *args
, **kwargs
):
2832 __init__(self, Window parent, int id=-1, String label=EmptyString,
2833 Point pos=DefaultPosition, Size size=DefaultSize,
2834 long style=0, Validator validator=DefaultValidator,
2835 String name=ToggleButtonNameStr) -> ToggleButton
2837 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2838 self
.this
= newobj
.this
2841 self
._setOORInfo
(self
)
2843 def Create(*args
, **kwargs
):
2845 Create(self, Window parent, int id=-1, String label=EmptyString,
2846 Point pos=DefaultPosition, Size size=DefaultSize,
2847 long style=0, Validator validator=DefaultValidator,
2848 String name=ToggleButtonNameStr) -> bool
2850 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2852 def SetValue(*args
, **kwargs
):
2853 """SetValue(self, bool value)"""
2854 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2856 def GetValue(*args
, **kwargs
):
2857 """GetValue(self) -> bool"""
2858 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2860 def SetLabel(*args
, **kwargs
):
2862 SetLabel(self, String label)
2864 Sets the item's text.
2866 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2868 def GetClassDefaultAttributes(*args
, **kwargs
):
2870 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2872 Get the default attributes for this class. This is useful if you want
2873 to use the same font or colour in your own control as in a standard
2874 control -- which is a much better idea than hard coding specific
2875 colours or fonts which might look completely out of place on the
2876 user's system, especially if it uses themes.
2878 The variant parameter is only relevant under Mac currently and is
2879 ignore under other platforms. Under Mac, it will change the size of
2880 the returned font. See `wx.Window.SetWindowVariant` for more about
2883 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2885 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2887 class ToggleButtonPtr(ToggleButton
):
2888 def __init__(self
, this
):
2890 if not hasattr(self
,"thisown"): self
.thisown
= 0
2891 self
.__class
__ = ToggleButton
2892 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2893 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2895 def PreToggleButton(*args
, **kwargs
):
2896 """PreToggleButton() -> ToggleButton"""
2897 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2901 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2903 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2905 Get the default attributes for this class. This is useful if you want
2906 to use the same font or colour in your own control as in a standard
2907 control -- which is a much better idea than hard coding specific
2908 colours or fonts which might look completely out of place on the
2909 user's system, especially if it uses themes.
2911 The variant parameter is only relevant under Mac currently and is
2912 ignore under other platforms. Under Mac, it will change the size of
2913 the returned font. See `wx.Window.SetWindowVariant` for more about
2916 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2918 #---------------------------------------------------------------------------
2920 class BookCtrlBase(_core
.Control
):
2921 """Proxy of C++ BookCtrlBase class"""
2922 def __init__(self
): raise RuntimeError, "No constructor defined"
2924 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2925 def GetPageCount(*args
, **kwargs
):
2926 """GetPageCount(self) -> size_t"""
2927 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2929 def GetPage(*args
, **kwargs
):
2930 """GetPage(self, size_t n) -> Window"""
2931 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2933 def GetCurrentPage(*args
, **kwargs
):
2934 """GetCurrentPage(self) -> Window"""
2935 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2937 def GetSelection(*args
, **kwargs
):
2938 """GetSelection(self) -> int"""
2939 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2941 def SetPageText(*args
, **kwargs
):
2942 """SetPageText(self, size_t n, String strText) -> bool"""
2943 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2945 def GetPageText(*args
, **kwargs
):
2946 """GetPageText(self, size_t n) -> String"""
2947 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2949 def SetImageList(*args
, **kwargs
):
2950 """SetImageList(self, ImageList imageList)"""
2951 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2953 def AssignImageList(*args
, **kwargs
):
2954 """AssignImageList(self, ImageList imageList)"""
2955 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2957 def GetImageList(*args
, **kwargs
):
2958 """GetImageList(self) -> ImageList"""
2959 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2961 def GetPageImage(*args
, **kwargs
):
2962 """GetPageImage(self, size_t n) -> int"""
2963 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2965 def SetPageImage(*args
, **kwargs
):
2966 """SetPageImage(self, size_t n, int imageId) -> bool"""
2967 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2969 def SetPageSize(*args
, **kwargs
):
2970 """SetPageSize(self, Size size)"""
2971 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2973 def CalcSizeFromPage(*args
, **kwargs
):
2974 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2975 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2977 def DeletePage(*args
, **kwargs
):
2978 """DeletePage(self, size_t n) -> bool"""
2979 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2981 def RemovePage(*args
, **kwargs
):
2982 """RemovePage(self, size_t n) -> bool"""
2983 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2985 def DeleteAllPages(*args
, **kwargs
):
2986 """DeleteAllPages(self) -> bool"""
2987 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2989 def AddPage(*args
, **kwargs
):
2990 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2991 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2993 def InsertPage(*args
, **kwargs
):
2995 InsertPage(self, size_t n, Window page, String text, bool select=False,
2996 int imageId=-1) -> bool
2998 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
3000 def SetSelection(*args
, **kwargs
):
3001 """SetSelection(self, size_t n) -> int"""
3002 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3004 def AdvanceSelection(*args
, **kwargs
):
3005 """AdvanceSelection(self, bool forward=True)"""
3006 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3008 def GetClassDefaultAttributes(*args
, **kwargs
):
3010 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3012 Get the default attributes for this class. This is useful if you want
3013 to use the same font or colour in your own control as in a standard
3014 control -- which is a much better idea than hard coding specific
3015 colours or fonts which might look completely out of place on the
3016 user's system, especially if it uses themes.
3018 The variant parameter is only relevant under Mac currently and is
3019 ignore under other platforms. Under Mac, it will change the size of
3020 the returned font. See `wx.Window.SetWindowVariant` for more about
3023 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3025 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3027 class BookCtrlBasePtr(BookCtrlBase
):
3028 def __init__(self
, this
):
3030 if not hasattr(self
,"thisown"): self
.thisown
= 0
3031 self
.__class
__ = BookCtrlBase
3032 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3033 NotebookNameStr
= cvar
.NotebookNameStr
3035 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3037 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3039 Get the default attributes for this class. This is useful if you want
3040 to use the same font or colour in your own control as in a standard
3041 control -- which is a much better idea than hard coding specific
3042 colours or fonts which might look completely out of place on the
3043 user's system, especially if it uses themes.
3045 The variant parameter is only relevant under Mac currently and is
3046 ignore under other platforms. Under Mac, it will change the size of
3047 the returned font. See `wx.Window.SetWindowVariant` for more about
3050 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3052 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3053 """Proxy of C++ BookCtrlBaseEvent class"""
3055 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent 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) -> BookCtrlBaseEvent
3061 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3062 self
.this
= newobj
.this
3065 def GetSelection(*args
, **kwargs
):
3066 """GetSelection(self) -> int"""
3067 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3069 def SetSelection(*args
, **kwargs
):
3070 """SetSelection(self, int nSel)"""
3071 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3073 def GetOldSelection(*args
, **kwargs
):
3074 """GetOldSelection(self) -> int"""
3075 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3077 def SetOldSelection(*args
, **kwargs
):
3078 """SetOldSelection(self, int nOldSel)"""
3079 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3082 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3083 def __init__(self
, this
):
3085 if not hasattr(self
,"thisown"): self
.thisown
= 0
3086 self
.__class
__ = BookCtrlBaseEvent
3087 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3089 #---------------------------------------------------------------------------
3091 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3092 NB_TOP
= _controls_
.NB_TOP
3093 NB_LEFT
= _controls_
.NB_LEFT
3094 NB_RIGHT
= _controls_
.NB_RIGHT
3095 NB_BOTTOM
= _controls_
.NB_BOTTOM
3096 NB_MULTILINE
= _controls_
.NB_MULTILINE
3097 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3098 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3099 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3100 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3101 class Notebook(BookCtrlBase
):
3102 """Proxy of C++ Notebook class"""
3104 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3105 def __init__(self
, *args
, **kwargs
):
3107 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3108 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> Notebook
3110 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3111 self
.this
= newobj
.this
3114 self
._setOORInfo
(self
)
3116 def Create(*args
, **kwargs
):
3118 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3119 Size size=DefaultSize, long style=0, String name=NotebookNameStr) -> bool
3121 return _controls_
.Notebook_Create(*args
, **kwargs
)
3123 def GetRowCount(*args
, **kwargs
):
3124 """GetRowCount(self) -> int"""
3125 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3127 def SetPadding(*args
, **kwargs
):
3128 """SetPadding(self, Size padding)"""
3129 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3131 def SetTabSize(*args
, **kwargs
):
3132 """SetTabSize(self, Size sz)"""
3133 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3135 def HitTest(*args
, **kwargs
):
3137 HitTest(Point pt) -> (tab, where)
3139 Returns the tab which is hit, and flags indicating where using
3140 wx.NB_HITTEST flags.
3142 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3144 def CalcSizeFromPage(*args
, **kwargs
):
3145 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3146 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3148 def GetClassDefaultAttributes(*args
, **kwargs
):
3150 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3152 Get the default attributes for this class. This is useful if you want
3153 to use the same font or colour in your own control as in a standard
3154 control -- which is a much better idea than hard coding specific
3155 colours or fonts which might look completely out of place on the
3156 user's system, especially if it uses themes.
3158 The variant parameter is only relevant under Mac currently and is
3159 ignore under other platforms. Under Mac, it will change the size of
3160 the returned font. See `wx.Window.SetWindowVariant` for more about
3163 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3165 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3167 class NotebookPtr(Notebook
):
3168 def __init__(self
, this
):
3170 if not hasattr(self
,"thisown"): self
.thisown
= 0
3171 self
.__class
__ = Notebook
3172 _controls_
.Notebook_swigregister(NotebookPtr
)
3174 def PreNotebook(*args
, **kwargs
):
3175 """PreNotebook() -> Notebook"""
3176 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3180 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3182 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3184 Get the default attributes for this class. This is useful if you want
3185 to use the same font or colour in your own control as in a standard
3186 control -- which is a much better idea than hard coding specific
3187 colours or fonts which might look completely out of place on the
3188 user's system, especially if it uses themes.
3190 The variant parameter is only relevant under Mac currently and is
3191 ignore under other platforms. Under Mac, it will change the size of
3192 the returned font. See `wx.Window.SetWindowVariant` for more about
3195 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3197 class NotebookEvent(BookCtrlBaseEvent
):
3198 """Proxy of C++ NotebookEvent class"""
3200 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3201 def __init__(self
, *args
, **kwargs
):
3203 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3204 int nOldSel=-1) -> NotebookEvent
3206 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3207 self
.this
= newobj
.this
3211 class NotebookEventPtr(NotebookEvent
):
3212 def __init__(self
, this
):
3214 if not hasattr(self
,"thisown"): self
.thisown
= 0
3215 self
.__class
__ = NotebookEvent
3216 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3218 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3219 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3221 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3222 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3224 #----------------------------------------------------------------------------
3226 class NotebookPage(wx
.Panel
):
3228 There is an old (and apparently unsolvable) bug when placing a
3229 window with a nonstandard background colour in a wxNotebook on
3230 wxGTK, as the notbooks's background colour would always be used
3231 when the window is refreshed. The solution is to place a panel in
3232 the notbook and the coloured window on the panel, sized to cover
3233 the panel. This simple class does that for you, just put an
3234 instance of this in the notebook and make your regular window a
3235 child of this one and it will handle the resize for you.
3237 def __init__(self
, parent
, id=-1,
3238 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3239 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3240 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3242 EVT_SIZE(self
, self
.OnSize
)
3244 def OnSize(self
, evt
):
3245 if self
.child
is None:
3246 children
= self
.GetChildren()
3248 self
.child
= children
[0]
3250 self
.child
.SetPosition((0,0))
3251 self
.child
.SetSize(self
.GetSize())
3254 #---------------------------------------------------------------------------
3256 LB_DEFAULT
= _controls_
.LB_DEFAULT
3257 LB_TOP
= _controls_
.LB_TOP
3258 LB_BOTTOM
= _controls_
.LB_BOTTOM
3259 LB_LEFT
= _controls_
.LB_LEFT
3260 LB_RIGHT
= _controls_
.LB_RIGHT
3261 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3262 class Listbook(BookCtrlBase
):
3263 """Proxy of C++ Listbook class"""
3265 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3266 def __init__(self
, *args
, **kwargs
):
3268 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3269 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3271 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3272 self
.this
= newobj
.this
3275 self
._setOORInfo
(self
)
3277 def Create(*args
, **kwargs
):
3279 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3280 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3282 return _controls_
.Listbook_Create(*args
, **kwargs
)
3284 def IsVertical(*args
, **kwargs
):
3285 """IsVertical(self) -> bool"""
3286 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3288 def GetListView(*args
, **kwargs
):
3289 """GetListView(self) -> ListView"""
3290 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3293 class ListbookPtr(Listbook
):
3294 def __init__(self
, this
):
3296 if not hasattr(self
,"thisown"): self
.thisown
= 0
3297 self
.__class
__ = Listbook
3298 _controls_
.Listbook_swigregister(ListbookPtr
)
3300 def PreListbook(*args
, **kwargs
):
3301 """PreListbook() -> Listbook"""
3302 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3306 class ListbookEvent(BookCtrlBaseEvent
):
3307 """Proxy of C++ ListbookEvent class"""
3309 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3310 def __init__(self
, *args
, **kwargs
):
3312 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3313 int nOldSel=-1) -> ListbookEvent
3315 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3316 self
.this
= newobj
.this
3320 class ListbookEventPtr(ListbookEvent
):
3321 def __init__(self
, this
):
3323 if not hasattr(self
,"thisown"): self
.thisown
= 0
3324 self
.__class
__ = ListbookEvent
3325 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3327 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3328 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3329 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3330 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3332 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3333 CHB_TOP
= _controls_
.CHB_TOP
3334 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3335 CHB_LEFT
= _controls_
.CHB_LEFT
3336 CHB_RIGHT
= _controls_
.CHB_RIGHT
3337 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3338 class Choicebook(BookCtrlBase
):
3339 """Proxy of C++ Choicebook class"""
3341 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3342 def __init__(self
, *args
, **kwargs
):
3344 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3345 long style=0, String name=EmptyString) -> Choicebook
3347 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3348 self
.this
= newobj
.this
3351 self
._setOORInfo
(self
)
3353 def Create(*args
, **kwargs
):
3355 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3356 long style=0, String name=EmptyString) -> bool
3358 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3360 def IsVertical(*args
, **kwargs
):
3361 """IsVertical(self) -> bool"""
3362 return _controls_
.Choicebook_IsVertical(*args
, **kwargs
)
3364 def DeleteAllPages(*args
, **kwargs
):
3365 """DeleteAllPages(self) -> bool"""
3366 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3369 class ChoicebookPtr(Choicebook
):
3370 def __init__(self
, this
):
3372 if not hasattr(self
,"thisown"): self
.thisown
= 0
3373 self
.__class
__ = Choicebook
3374 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3376 def PreChoicebook(*args
, **kwargs
):
3377 """PreChoicebook() -> Choicebook"""
3378 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3382 class ChoicebookEvent(BookCtrlBaseEvent
):
3383 """Proxy of C++ ChoicebookEvent class"""
3385 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3386 def __init__(self
, *args
, **kwargs
):
3388 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3389 int nOldSel=-1) -> ChoicebookEvent
3391 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3392 self
.this
= newobj
.this
3396 class ChoicebookEventPtr(ChoicebookEvent
):
3397 def __init__(self
, this
):
3399 if not hasattr(self
,"thisown"): self
.thisown
= 0
3400 self
.__class
__ = ChoicebookEvent
3401 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3403 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3404 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3405 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3406 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3408 #---------------------------------------------------------------------------
3410 class BookCtrlSizer(_core
.Sizer
):
3411 """Proxy of C++ BookCtrlSizer class"""
3413 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3414 def __init__(self
, *args
, **kwargs
):
3415 """__init__(self, BookCtrlBase nb) -> BookCtrlSizer"""
3416 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3417 self
.this
= newobj
.this
3420 self
._setOORInfo
(self
)
3422 def RecalcSizes(*args
, **kwargs
):
3426 Using the sizes calculated by `CalcMin` reposition and resize all the
3427 items managed by this sizer. You should not need to call this directly as
3428 it is called by `Layout`.
3430 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3432 def CalcMin(*args
, **kwargs
):
3434 CalcMin(self) -> Size
3436 This method is where the sizer will do the actual calculation of its
3437 children's minimal sizes. You should not need to call this directly as
3438 it is called by `Layout`.
3440 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3442 def GetControl(*args
, **kwargs
):
3443 """GetControl(self) -> BookCtrlBase"""
3444 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3447 class BookCtrlSizerPtr(BookCtrlSizer
):
3448 def __init__(self
, this
):
3450 if not hasattr(self
,"thisown"): self
.thisown
= 0
3451 self
.__class
__ = BookCtrlSizer
3452 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3454 class NotebookSizer(_core
.Sizer
):
3455 """Proxy of C++ NotebookSizer class"""
3457 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3458 def __init__(self
, *args
, **kwargs
):
3459 """__init__(self, Notebook nb) -> NotebookSizer"""
3460 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3461 self
.this
= newobj
.this
3464 self
._setOORInfo
(self
)
3466 def RecalcSizes(*args
, **kwargs
):
3470 Using the sizes calculated by `CalcMin` reposition and resize all the
3471 items managed by this sizer. You should not need to call this directly as
3472 it is called by `Layout`.
3474 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3476 def CalcMin(*args
, **kwargs
):
3478 CalcMin(self) -> Size
3480 This method is where the sizer will do the actual calculation of its
3481 children's minimal sizes. You should not need to call this directly as
3482 it is called by `Layout`.
3484 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3486 def GetNotebook(*args
, **kwargs
):
3487 """GetNotebook(self) -> Notebook"""
3488 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3491 class NotebookSizerPtr(NotebookSizer
):
3492 def __init__(self
, this
):
3494 if not hasattr(self
,"thisown"): self
.thisown
= 0
3495 self
.__class
__ = NotebookSizer
3496 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3498 NotebookSizer
= wx
._deprecated
(NotebookSizer
, "NotebookSizer is no longer needed.")
3499 BookCtrlSizer
= wx
._deprecated
(BookCtrlSizer
, "BookCtrlSizer is no longer needed.")
3500 #---------------------------------------------------------------------------
3502 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3503 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3504 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3505 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3506 TB_VERTICAL
= _controls_
.TB_VERTICAL
3507 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3508 TB_FLAT
= _controls_
.TB_FLAT
3509 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3510 TB_NOICONS
= _controls_
.TB_NOICONS
3511 TB_TEXT
= _controls_
.TB_TEXT
3512 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3513 TB_NOALIGN
= _controls_
.TB_NOALIGN
3514 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3515 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3516 class ToolBarToolBase(_core
.Object
):
3517 """Proxy of C++ ToolBarToolBase class"""
3518 def __init__(self
): raise RuntimeError, "No constructor defined"
3520 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3521 def GetId(*args
, **kwargs
):
3522 """GetId(self) -> int"""
3523 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3525 def GetControl(*args
, **kwargs
):
3526 """GetControl(self) -> Control"""
3527 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3529 def GetToolBar(*args
, **kwargs
):
3530 """GetToolBar(self) -> ToolBarBase"""
3531 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3533 def IsButton(*args
, **kwargs
):
3534 """IsButton(self) -> int"""
3535 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3537 def IsControl(*args
, **kwargs
):
3538 """IsControl(self) -> int"""
3539 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3541 def IsSeparator(*args
, **kwargs
):
3542 """IsSeparator(self) -> int"""
3543 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3545 def GetStyle(*args
, **kwargs
):
3546 """GetStyle(self) -> int"""
3547 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3549 def GetKind(*args
, **kwargs
):
3550 """GetKind(self) -> int"""
3551 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3553 def IsEnabled(*args
, **kwargs
):
3554 """IsEnabled(self) -> bool"""
3555 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3557 def IsToggled(*args
, **kwargs
):
3558 """IsToggled(self) -> bool"""
3559 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3561 def CanBeToggled(*args
, **kwargs
):
3562 """CanBeToggled(self) -> bool"""
3563 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3565 def GetNormalBitmap(*args
, **kwargs
):
3566 """GetNormalBitmap(self) -> Bitmap"""
3567 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3569 def GetDisabledBitmap(*args
, **kwargs
):
3570 """GetDisabledBitmap(self) -> Bitmap"""
3571 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3573 def GetBitmap(*args
, **kwargs
):
3574 """GetBitmap(self) -> Bitmap"""
3575 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3577 def GetLabel(*args
, **kwargs
):
3578 """GetLabel(self) -> String"""
3579 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3581 def GetShortHelp(*args
, **kwargs
):
3582 """GetShortHelp(self) -> String"""
3583 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3585 def GetLongHelp(*args
, **kwargs
):
3586 """GetLongHelp(self) -> String"""
3587 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3589 def Enable(*args
, **kwargs
):
3590 """Enable(self, bool enable) -> bool"""
3591 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3593 def Toggle(*args
, **kwargs
):
3595 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3597 def SetToggle(*args
, **kwargs
):
3598 """SetToggle(self, bool toggle) -> bool"""
3599 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3601 def SetShortHelp(*args
, **kwargs
):
3602 """SetShortHelp(self, String help) -> bool"""
3603 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3605 def SetLongHelp(*args
, **kwargs
):
3606 """SetLongHelp(self, String help) -> bool"""
3607 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3609 def SetNormalBitmap(*args
, **kwargs
):
3610 """SetNormalBitmap(self, Bitmap bmp)"""
3611 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3613 def SetDisabledBitmap(*args
, **kwargs
):
3614 """SetDisabledBitmap(self, Bitmap bmp)"""
3615 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3617 def SetLabel(*args
, **kwargs
):
3618 """SetLabel(self, String label)"""
3619 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3621 def Detach(*args
, **kwargs
):
3623 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3625 def Attach(*args
, **kwargs
):
3626 """Attach(self, ToolBarBase tbar)"""
3627 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3629 def GetClientData(*args
, **kwargs
):
3630 """GetClientData(self) -> PyObject"""
3631 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3633 def SetClientData(*args
, **kwargs
):
3634 """SetClientData(self, PyObject clientData)"""
3635 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3637 GetBitmap1
= GetNormalBitmap
3638 GetBitmap2
= GetDisabledBitmap
3639 SetBitmap1
= SetNormalBitmap
3640 SetBitmap2
= SetDisabledBitmap
3643 class ToolBarToolBasePtr(ToolBarToolBase
):
3644 def __init__(self
, this
):
3646 if not hasattr(self
,"thisown"): self
.thisown
= 0
3647 self
.__class
__ = ToolBarToolBase
3648 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3650 class ToolBarBase(_core
.Control
):
3651 """Proxy of C++ ToolBarBase class"""
3652 def __init__(self
): raise RuntimeError, "No constructor defined"
3654 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3655 def DoAddTool(*args
, **kwargs
):
3657 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3658 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3659 String longHelp=EmptyString,
3660 PyObject clientData=None) -> ToolBarToolBase
3662 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3664 def DoInsertTool(*args
, **kwargs
):
3666 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3667 int kind=ITEM_NORMAL,
3668 String shortHelp=EmptyString, String longHelp=EmptyString,
3669 PyObject clientData=None) -> ToolBarToolBase
3671 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3673 # These match the original Add methods for this class, kept for
3674 # backwards compatibility with versions < 2.3.3.
3677 def AddTool(self
, id, bitmap
,
3678 pushedBitmap
= wx
.NullBitmap
,
3681 shortHelpString
= '',
3682 longHelpString
= '') :
3683 '''Old style method to add a tool to the toolbar.'''
3684 kind
= wx
.ITEM_NORMAL
3685 if isToggle
: kind
= wx
.ITEM_CHECK
3686 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3687 shortHelpString
, longHelpString
, clientData
)
3689 def AddSimpleTool(self
, id, bitmap
,
3690 shortHelpString
= '',
3691 longHelpString
= '',
3693 '''Old style method to add a tool to the toolbar.'''
3694 kind
= wx
.ITEM_NORMAL
3695 if isToggle
: kind
= wx
.ITEM_CHECK
3696 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3697 shortHelpString
, longHelpString
, None)
3699 def InsertTool(self
, pos
, id, bitmap
,
3700 pushedBitmap
= wx
.NullBitmap
,
3703 shortHelpString
= '',
3704 longHelpString
= ''):
3705 '''Old style method to insert a tool in the toolbar.'''
3706 kind
= wx
.ITEM_NORMAL
3707 if isToggle
: kind
= wx
.ITEM_CHECK
3708 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3709 shortHelpString
, longHelpString
, clientData
)
3711 def InsertSimpleTool(self
, pos
, id, bitmap
,
3712 shortHelpString
= '',
3713 longHelpString
= '',
3715 '''Old style method to insert a tool in the toolbar.'''
3716 kind
= wx
.ITEM_NORMAL
3717 if isToggle
: kind
= wx
.ITEM_CHECK
3718 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3719 shortHelpString
, longHelpString
, None)
3722 # The following are the new toolbar Add methods starting with
3723 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3724 # able to keep backwards compatibility with using the above
3725 # methods. Eventually these should migrate to be the methods used
3726 # primarily and lose the 'Label' in the name...
3728 def AddLabelTool(self
, id, label
, bitmap
,
3729 bmpDisabled
= wx
.NullBitmap
,
3730 kind
= wx
.ITEM_NORMAL
,
3731 shortHelp
= '', longHelp
= '',
3734 The full AddTool() function.
3736 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3737 is created and used as the disabled image.
3739 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3740 shortHelp
, longHelp
, clientData
)
3743 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3744 bmpDisabled
= wx
.NullBitmap
,
3745 kind
= wx
.ITEM_NORMAL
,
3746 shortHelp
= '', longHelp
= '',
3749 Insert the new tool at the given position, if pos == GetToolsCount(), it
3750 is equivalent to AddTool()
3752 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3753 shortHelp
, longHelp
, clientData
)
3755 def AddCheckLabelTool(self
, id, label
, bitmap
,
3756 bmpDisabled
= wx
.NullBitmap
,
3757 shortHelp
= '', longHelp
= '',
3759 '''Add a check tool, i.e. a tool which can be toggled'''
3760 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3761 shortHelp
, longHelp
, clientData
)
3763 def AddRadioLabelTool(self
, id, label
, bitmap
,
3764 bmpDisabled
= wx
.NullBitmap
,
3765 shortHelp
= '', longHelp
= '',
3768 Add a radio tool, i.e. a tool which can be toggled and releases any
3769 other toggled radio tools in the same group when it happens
3771 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3772 shortHelp
, longHelp
, clientData
)
3775 # For consistency with the backwards compatible methods above, here are
3776 # some non-'Label' versions of the Check and Radio methods
3778 def AddCheckTool(self
, id, bitmap
,
3779 bmpDisabled
= wx
.NullBitmap
,
3780 shortHelp
= '', longHelp
= '',
3782 '''Add a check tool, i.e. a tool which can be toggled'''
3783 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3784 shortHelp
, longHelp
, clientData
)
3786 def AddRadioTool(self
, id, bitmap
,
3787 bmpDisabled
= wx
.NullBitmap
,
3788 shortHelp
= '', longHelp
= '',
3791 Add a radio tool, i.e. a tool which can be toggled and releases any
3792 other toggled radio tools in the same group when it happens
3794 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3795 shortHelp
, longHelp
, clientData
)
3797 def AddToolItem(*args
, **kwargs
):
3798 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3799 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3801 def InsertToolItem(*args
, **kwargs
):
3802 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3803 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3805 def AddControl(*args
, **kwargs
):
3806 """AddControl(self, Control control) -> ToolBarToolBase"""
3807 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3809 def InsertControl(*args
, **kwargs
):
3810 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3811 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3813 def FindControl(*args
, **kwargs
):
3814 """FindControl(self, int id) -> Control"""
3815 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3817 def AddSeparator(*args
, **kwargs
):
3818 """AddSeparator(self) -> ToolBarToolBase"""
3819 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3821 def InsertSeparator(*args
, **kwargs
):
3822 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3823 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3825 def RemoveTool(*args
, **kwargs
):
3826 """RemoveTool(self, int id) -> ToolBarToolBase"""
3827 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3829 def DeleteToolByPos(*args
, **kwargs
):
3830 """DeleteToolByPos(self, size_t pos) -> bool"""
3831 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3833 def DeleteTool(*args
, **kwargs
):
3834 """DeleteTool(self, int id) -> bool"""
3835 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3837 def ClearTools(*args
, **kwargs
):
3838 """ClearTools(self)"""
3839 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3841 def Realize(*args
, **kwargs
):
3842 """Realize(self) -> bool"""
3843 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3845 def EnableTool(*args
, **kwargs
):
3846 """EnableTool(self, int id, bool enable)"""
3847 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3849 def ToggleTool(*args
, **kwargs
):
3850 """ToggleTool(self, int id, bool toggle)"""
3851 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3853 def SetToggle(*args
, **kwargs
):
3854 """SetToggle(self, int id, bool toggle)"""
3855 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3857 def GetToolClientData(*args
, **kwargs
):
3858 """GetToolClientData(self, int id) -> PyObject"""
3859 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3861 def SetToolClientData(*args
, **kwargs
):
3862 """SetToolClientData(self, int id, PyObject clientData)"""
3863 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3865 def GetToolPos(*args
, **kwargs
):
3866 """GetToolPos(self, int id) -> int"""
3867 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3869 def GetToolState(*args
, **kwargs
):
3870 """GetToolState(self, int id) -> bool"""
3871 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3873 def GetToolEnabled(*args
, **kwargs
):
3874 """GetToolEnabled(self, int id) -> bool"""
3875 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3877 def SetToolShortHelp(*args
, **kwargs
):
3878 """SetToolShortHelp(self, int id, String helpString)"""
3879 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3881 def GetToolShortHelp(*args
, **kwargs
):
3882 """GetToolShortHelp(self, int id) -> String"""
3883 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3885 def SetToolLongHelp(*args
, **kwargs
):
3886 """SetToolLongHelp(self, int id, String helpString)"""
3887 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3889 def GetToolLongHelp(*args
, **kwargs
):
3890 """GetToolLongHelp(self, int id) -> String"""
3891 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3893 def SetMarginsXY(*args
, **kwargs
):
3894 """SetMarginsXY(self, int x, int y)"""
3895 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3897 def SetMargins(*args
, **kwargs
):
3898 """SetMargins(self, Size size)"""
3899 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3901 def SetToolPacking(*args
, **kwargs
):
3902 """SetToolPacking(self, int packing)"""
3903 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3905 def SetToolSeparation(*args
, **kwargs
):
3906 """SetToolSeparation(self, int separation)"""
3907 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3909 def GetToolMargins(*args
, **kwargs
):
3910 """GetToolMargins(self) -> Size"""
3911 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3913 def GetMargins(*args
, **kwargs
):
3914 """GetMargins(self) -> Size"""
3915 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3917 def GetToolPacking(*args
, **kwargs
):
3918 """GetToolPacking(self) -> int"""
3919 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3921 def GetToolSeparation(*args
, **kwargs
):
3922 """GetToolSeparation(self) -> int"""
3923 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3925 def SetRows(*args
, **kwargs
):
3926 """SetRows(self, int nRows)"""
3927 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3929 def SetMaxRowsCols(*args
, **kwargs
):
3930 """SetMaxRowsCols(self, int rows, int cols)"""
3931 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3933 def GetMaxRows(*args
, **kwargs
):
3934 """GetMaxRows(self) -> int"""
3935 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3937 def GetMaxCols(*args
, **kwargs
):
3938 """GetMaxCols(self) -> int"""
3939 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3941 def SetToolBitmapSize(*args
, **kwargs
):
3942 """SetToolBitmapSize(self, Size size)"""
3943 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3945 def GetToolBitmapSize(*args
, **kwargs
):
3946 """GetToolBitmapSize(self) -> Size"""
3947 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3949 def GetToolSize(*args
, **kwargs
):
3950 """GetToolSize(self) -> Size"""
3951 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3953 def FindToolForPosition(*args
, **kwargs
):
3954 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3955 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3957 def FindById(*args
, **kwargs
):
3958 """FindById(self, int toolid) -> ToolBarToolBase"""
3959 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3961 def IsVertical(*args
, **kwargs
):
3962 """IsVertical(self) -> bool"""
3963 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3966 class ToolBarBasePtr(ToolBarBase
):
3967 def __init__(self
, this
):
3969 if not hasattr(self
,"thisown"): self
.thisown
= 0
3970 self
.__class
__ = ToolBarBase
3971 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3973 class ToolBar(ToolBarBase
):
3974 """Proxy of C++ ToolBar class"""
3976 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3977 def __init__(self
, *args
, **kwargs
):
3979 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3980 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3981 String name=wxPyToolBarNameStr) -> ToolBar
3983 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3984 self
.this
= newobj
.this
3987 self
._setOORInfo
(self
)
3989 def Create(*args
, **kwargs
):
3991 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3992 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3993 String name=wxPyToolBarNameStr) -> bool
3995 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3997 def FindToolForPosition(*args
, **kwargs
):
3998 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3999 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
4001 def GetClassDefaultAttributes(*args
, **kwargs
):
4003 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4005 Get the default attributes for this class. This is useful if you want
4006 to use the same font or colour in your own control as in a standard
4007 control -- which is a much better idea than hard coding specific
4008 colours or fonts which might look completely out of place on the
4009 user's system, especially if it uses themes.
4011 The variant parameter is only relevant under Mac currently and is
4012 ignore under other platforms. Under Mac, it will change the size of
4013 the returned font. See `wx.Window.SetWindowVariant` for more about
4016 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4018 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4020 class ToolBarPtr(ToolBar
):
4021 def __init__(self
, this
):
4023 if not hasattr(self
,"thisown"): self
.thisown
= 0
4024 self
.__class
__ = ToolBar
4025 _controls_
.ToolBar_swigregister(ToolBarPtr
)
4027 def PreToolBar(*args
, **kwargs
):
4028 """PreToolBar() -> ToolBar"""
4029 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
4033 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
4035 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4037 Get the default attributes for this class. This is useful if you want
4038 to use the same font or colour in your own control as in a standard
4039 control -- which is a much better idea than hard coding specific
4040 colours or fonts which might look completely out of place on the
4041 user's system, especially if it uses themes.
4043 The variant parameter is only relevant under Mac currently and is
4044 ignore under other platforms. Under Mac, it will change the size of
4045 the returned font. See `wx.Window.SetWindowVariant` for more about
4048 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4050 #---------------------------------------------------------------------------
4052 LC_VRULES
= _controls_
.LC_VRULES
4053 LC_HRULES
= _controls_
.LC_HRULES
4054 LC_ICON
= _controls_
.LC_ICON
4055 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4056 LC_LIST
= _controls_
.LC_LIST
4057 LC_REPORT
= _controls_
.LC_REPORT
4058 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4059 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4060 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4061 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4062 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4063 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4064 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4065 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4066 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4067 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4068 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4069 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4070 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4071 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4072 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4073 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4074 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4075 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4076 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4077 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4078 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4079 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4080 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4081 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4082 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4083 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4084 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4085 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4086 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4087 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4088 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4089 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4090 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4091 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4092 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4093 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4094 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4095 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4096 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4097 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4098 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4099 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4100 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4101 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4102 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4103 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4104 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4105 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4106 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4107 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4108 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4109 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4110 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4111 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4112 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4113 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4114 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4115 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4116 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4117 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4118 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4119 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4120 #---------------------------------------------------------------------------
4122 class ListItemAttr(object):
4123 """Proxy of C++ ListItemAttr class"""
4125 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4126 def __init__(self
, *args
, **kwargs
):
4128 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4129 Font font=wxNullFont) -> ListItemAttr
4131 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4132 self
.this
= newobj
.this
4135 def SetTextColour(*args
, **kwargs
):
4136 """SetTextColour(self, Colour colText)"""
4137 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4139 def SetBackgroundColour(*args
, **kwargs
):
4140 """SetBackgroundColour(self, Colour colBack)"""
4141 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4143 def SetFont(*args
, **kwargs
):
4144 """SetFont(self, Font font)"""
4145 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4147 def HasTextColour(*args
, **kwargs
):
4148 """HasTextColour(self) -> bool"""
4149 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4151 def HasBackgroundColour(*args
, **kwargs
):
4152 """HasBackgroundColour(self) -> bool"""
4153 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4155 def HasFont(*args
, **kwargs
):
4156 """HasFont(self) -> bool"""
4157 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4159 def GetTextColour(*args
, **kwargs
):
4160 """GetTextColour(self) -> Colour"""
4161 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4163 def GetBackgroundColour(*args
, **kwargs
):
4164 """GetBackgroundColour(self) -> Colour"""
4165 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4167 def GetFont(*args
, **kwargs
):
4168 """GetFont(self) -> Font"""
4169 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4171 def Destroy(*args
, **kwargs
):
4173 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4176 class ListItemAttrPtr(ListItemAttr
):
4177 def __init__(self
, this
):
4179 if not hasattr(self
,"thisown"): self
.thisown
= 0
4180 self
.__class
__ = ListItemAttr
4181 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4182 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4184 #---------------------------------------------------------------------------
4186 class ListItem(_core
.Object
):
4187 """Proxy of C++ ListItem class"""
4189 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4190 def __init__(self
, *args
, **kwargs
):
4191 """__init__(self) -> ListItem"""
4192 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4193 self
.this
= newobj
.this
4196 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4199 if self
.thisown
: destroy(self
)
4202 def Clear(*args
, **kwargs
):
4204 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4206 def ClearAttributes(*args
, **kwargs
):
4207 """ClearAttributes(self)"""
4208 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4210 def SetMask(*args
, **kwargs
):
4211 """SetMask(self, long mask)"""
4212 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4214 def SetId(*args
, **kwargs
):
4215 """SetId(self, long id)"""
4216 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4218 def SetColumn(*args
, **kwargs
):
4219 """SetColumn(self, int col)"""
4220 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4222 def SetState(*args
, **kwargs
):
4223 """SetState(self, long state)"""
4224 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4226 def SetStateMask(*args
, **kwargs
):
4227 """SetStateMask(self, long stateMask)"""
4228 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4230 def SetText(*args
, **kwargs
):
4231 """SetText(self, String text)"""
4232 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4234 def SetImage(*args
, **kwargs
):
4235 """SetImage(self, int image)"""
4236 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4238 def SetData(*args
, **kwargs
):
4239 """SetData(self, long data)"""
4240 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4242 def SetWidth(*args
, **kwargs
):
4243 """SetWidth(self, int width)"""
4244 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4246 def SetAlign(*args
, **kwargs
):
4247 """SetAlign(self, int align)"""
4248 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4250 def SetTextColour(*args
, **kwargs
):
4251 """SetTextColour(self, Colour colText)"""
4252 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4254 def SetBackgroundColour(*args
, **kwargs
):
4255 """SetBackgroundColour(self, Colour colBack)"""
4256 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4258 def SetFont(*args
, **kwargs
):
4259 """SetFont(self, Font font)"""
4260 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4262 def GetMask(*args
, **kwargs
):
4263 """GetMask(self) -> long"""
4264 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4266 def GetId(*args
, **kwargs
):
4267 """GetId(self) -> long"""
4268 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4270 def GetColumn(*args
, **kwargs
):
4271 """GetColumn(self) -> int"""
4272 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4274 def GetState(*args
, **kwargs
):
4275 """GetState(self) -> long"""
4276 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4278 def GetText(*args
, **kwargs
):
4279 """GetText(self) -> String"""
4280 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4282 def GetImage(*args
, **kwargs
):
4283 """GetImage(self) -> int"""
4284 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4286 def GetData(*args
, **kwargs
):
4287 """GetData(self) -> long"""
4288 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4290 def GetWidth(*args
, **kwargs
):
4291 """GetWidth(self) -> int"""
4292 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4294 def GetAlign(*args
, **kwargs
):
4295 """GetAlign(self) -> int"""
4296 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4298 def GetAttributes(*args
, **kwargs
):
4299 """GetAttributes(self) -> ListItemAttr"""
4300 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4302 def HasAttributes(*args
, **kwargs
):
4303 """HasAttributes(self) -> bool"""
4304 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4306 def GetTextColour(*args
, **kwargs
):
4307 """GetTextColour(self) -> Colour"""
4308 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4310 def GetBackgroundColour(*args
, **kwargs
):
4311 """GetBackgroundColour(self) -> Colour"""
4312 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4314 def GetFont(*args
, **kwargs
):
4315 """GetFont(self) -> Font"""
4316 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4318 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4319 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4320 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4321 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4322 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4323 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4324 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4325 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4326 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4327 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4329 class ListItemPtr(ListItem
):
4330 def __init__(self
, this
):
4332 if not hasattr(self
,"thisown"): self
.thisown
= 0
4333 self
.__class
__ = ListItem
4334 _controls_
.ListItem_swigregister(ListItemPtr
)
4336 #---------------------------------------------------------------------------
4338 class ListEvent(_core
.NotifyEvent
):
4339 """Proxy of C++ ListEvent class"""
4341 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4342 def __init__(self
, *args
, **kwargs
):
4343 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4344 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4345 self
.this
= newobj
.this
4348 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4349 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4350 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4351 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4352 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4353 m_item
= property(_controls_
.ListEvent_m_item_get
)
4354 def GetKeyCode(*args
, **kwargs
):
4355 """GetKeyCode(self) -> int"""
4356 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4358 GetCode
= GetKeyCode
4359 def GetIndex(*args
, **kwargs
):
4360 """GetIndex(self) -> long"""
4361 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4363 def GetColumn(*args
, **kwargs
):
4364 """GetColumn(self) -> int"""
4365 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4367 def GetPoint(*args
, **kwargs
):
4368 """GetPoint(self) -> Point"""
4369 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4371 GetPosition
= GetPoint
4372 def GetLabel(*args
, **kwargs
):
4373 """GetLabel(self) -> String"""
4374 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4376 def GetText(*args
, **kwargs
):
4377 """GetText(self) -> String"""
4378 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4380 def GetImage(*args
, **kwargs
):
4381 """GetImage(self) -> int"""
4382 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4384 def GetData(*args
, **kwargs
):
4385 """GetData(self) -> long"""
4386 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4388 def GetMask(*args
, **kwargs
):
4389 """GetMask(self) -> long"""
4390 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4392 def GetItem(*args
, **kwargs
):
4393 """GetItem(self) -> ListItem"""
4394 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4396 def GetCacheFrom(*args
, **kwargs
):
4397 """GetCacheFrom(self) -> long"""
4398 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4400 def GetCacheTo(*args
, **kwargs
):
4401 """GetCacheTo(self) -> long"""
4402 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4404 def IsEditCancelled(*args
, **kwargs
):
4405 """IsEditCancelled(self) -> bool"""
4406 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4408 def SetEditCanceled(*args
, **kwargs
):
4409 """SetEditCanceled(self, bool editCancelled)"""
4410 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4413 class ListEventPtr(ListEvent
):
4414 def __init__(self
, this
):
4416 if not hasattr(self
,"thisown"): self
.thisown
= 0
4417 self
.__class
__ = ListEvent
4418 _controls_
.ListEvent_swigregister(ListEventPtr
)
4420 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4421 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4422 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4423 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4424 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4425 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4426 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4427 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4428 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4429 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4430 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4431 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4432 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4433 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4434 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4435 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4436 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4437 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4438 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4439 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4440 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4441 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4442 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4443 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4444 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4445 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4446 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4447 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4448 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4449 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4450 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4451 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4452 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4453 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4454 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4455 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4456 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4457 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4458 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4459 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4460 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4461 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4462 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4463 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4465 EVT_LIST_GET_INFO
= wx
._deprecated
(EVT_LIST_GET_INFO
)
4466 EVT_LIST_SET_INFO
= wx
._deprecated
(EVT_LIST_SET_INFO
)
4468 #---------------------------------------------------------------------------
4470 class ListCtrl(_core
.Control
):
4471 """Proxy of C++ ListCtrl class"""
4473 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4474 def __init__(self
, *args
, **kwargs
):
4476 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4477 Size size=DefaultSize, long style=LC_ICON,
4478 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4480 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4481 self
.this
= newobj
.this
4484 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4486 def Create(*args
, **kwargs
):
4488 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4489 Size size=DefaultSize, long style=LC_ICON,
4490 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4492 Do the 2nd phase and create the GUI control.
4494 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4496 def _setCallbackInfo(*args
, **kwargs
):
4497 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4498 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4500 def SetForegroundColour(*args
, **kwargs
):
4502 SetForegroundColour(self, Colour col) -> bool
4504 Sets the foreground colour of the window. Returns True is the colour
4505 was changed. The interpretation of foreground colour is dependent on
4506 the window class; it may be the text colour or other colour, or it may
4509 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4511 def SetBackgroundColour(*args
, **kwargs
):
4513 SetBackgroundColour(self, Colour col) -> bool
4515 Sets the background colour of the window. Returns True if the colour
4516 was changed. The background colour is usually painted by the default
4517 EVT_ERASE_BACKGROUND event handler function under Windows and
4518 automatically under GTK. Using `wx.NullColour` will reset the window
4519 to the default background colour.
4521 Note that setting the background colour may not cause an immediate
4522 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4523 calling this function.
4525 Using this function will disable attempts to use themes for this
4526 window, if the system supports them. Use with care since usually the
4527 themes represent the appearance chosen by the user to be used for all
4528 applications on the system.
4530 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4532 def GetColumn(*args
, **kwargs
):
4533 """GetColumn(self, int col) -> ListItem"""
4534 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4535 if val
is not None: val
.thisown
= 1
4538 def SetColumn(*args
, **kwargs
):
4539 """SetColumn(self, int col, ListItem item) -> bool"""
4540 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4542 def GetColumnWidth(*args
, **kwargs
):
4543 """GetColumnWidth(self, int col) -> int"""
4544 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4546 def SetColumnWidth(*args
, **kwargs
):
4547 """SetColumnWidth(self, int col, int width) -> bool"""
4548 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4550 def GetCountPerPage(*args
, **kwargs
):
4551 """GetCountPerPage(self) -> int"""
4552 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4554 def GetViewRect(*args
, **kwargs
):
4555 """GetViewRect(self) -> Rect"""
4556 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4558 def GetItem(*args
, **kwargs
):
4559 """GetItem(self, long itemId, int col=0) -> ListItem"""
4560 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4561 if val
is not None: val
.thisown
= 1
4564 def SetItem(*args
, **kwargs
):
4565 """SetItem(self, ListItem info) -> bool"""
4566 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4568 def SetStringItem(*args
, **kwargs
):
4569 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4570 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4572 def GetItemState(*args
, **kwargs
):
4573 """GetItemState(self, long item, long stateMask) -> int"""
4574 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4576 def SetItemState(*args
, **kwargs
):
4577 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4578 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4580 def SetItemImage(*args
, **kwargs
):
4581 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4582 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4584 def GetItemText(*args
, **kwargs
):
4585 """GetItemText(self, long item) -> String"""
4586 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4588 def SetItemText(*args
, **kwargs
):
4589 """SetItemText(self, long item, String str)"""
4590 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4592 def GetItemData(*args
, **kwargs
):
4593 """GetItemData(self, long item) -> long"""
4594 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4596 def SetItemData(*args
, **kwargs
):
4597 """SetItemData(self, long item, long data) -> bool"""
4598 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4600 def GetItemPosition(*args
, **kwargs
):
4601 """GetItemPosition(self, long item) -> Point"""
4602 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4604 def GetItemRect(*args
, **kwargs
):
4605 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4606 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4608 def SetItemPosition(*args
, **kwargs
):
4609 """SetItemPosition(self, long item, Point pos) -> bool"""
4610 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4612 def GetItemCount(*args
, **kwargs
):
4613 """GetItemCount(self) -> int"""
4614 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4616 def GetColumnCount(*args
, **kwargs
):
4617 """GetColumnCount(self) -> int"""
4618 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4620 def GetItemSpacing(*args
, **kwargs
):
4621 """GetItemSpacing(self) -> Size"""
4622 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4624 def SetItemSpacing(*args
, **kwargs
):
4625 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4626 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4628 def GetSelectedItemCount(*args
, **kwargs
):
4629 """GetSelectedItemCount(self) -> int"""
4630 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4632 def GetTextColour(*args
, **kwargs
):
4633 """GetTextColour(self) -> Colour"""
4634 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4636 def SetTextColour(*args
, **kwargs
):
4637 """SetTextColour(self, Colour col)"""
4638 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4640 def GetTopItem(*args
, **kwargs
):
4641 """GetTopItem(self) -> long"""
4642 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4644 def SetSingleStyle(*args
, **kwargs
):
4645 """SetSingleStyle(self, long style, bool add=True)"""
4646 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4648 def SetWindowStyleFlag(*args
, **kwargs
):
4650 SetWindowStyleFlag(self, long style)
4652 Sets the style of the window. Please note that some styles cannot be
4653 changed after the window creation and that Refresh() might need to be
4654 called after changing the others for the change to take place
4657 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4659 def GetNextItem(*args
, **kwargs
):
4660 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4661 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4663 def GetImageList(*args
, **kwargs
):
4664 """GetImageList(self, int which) -> ImageList"""
4665 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4667 def SetImageList(*args
, **kwargs
):
4668 """SetImageList(self, ImageList imageList, int which)"""
4669 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4671 def AssignImageList(*args
, **kwargs
):
4672 """AssignImageList(self, ImageList imageList, int which)"""
4673 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4675 def InReportView(*args
, **kwargs
):
4676 """InReportView(self) -> bool"""
4677 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4679 def IsVirtual(*args
, **kwargs
):
4680 """IsVirtual(self) -> bool"""
4681 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4683 def RefreshItem(*args
, **kwargs
):
4684 """RefreshItem(self, long item)"""
4685 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4687 def RefreshItems(*args
, **kwargs
):
4688 """RefreshItems(self, long itemFrom, long itemTo)"""
4689 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4691 def Arrange(*args
, **kwargs
):
4692 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4693 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4695 def DeleteItem(*args
, **kwargs
):
4696 """DeleteItem(self, long item) -> bool"""
4697 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4699 def DeleteAllItems(*args
, **kwargs
):
4700 """DeleteAllItems(self) -> bool"""
4701 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4703 def DeleteColumn(*args
, **kwargs
):
4704 """DeleteColumn(self, int col) -> bool"""
4705 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4707 def DeleteAllColumns(*args
, **kwargs
):
4708 """DeleteAllColumns(self) -> bool"""
4709 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4711 def ClearAll(*args
, **kwargs
):
4712 """ClearAll(self)"""
4713 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4715 def EditLabel(*args
, **kwargs
):
4716 """EditLabel(self, long item)"""
4717 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4719 def EnsureVisible(*args
, **kwargs
):
4720 """EnsureVisible(self, long item) -> bool"""
4721 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4723 def FindItem(*args
, **kwargs
):
4724 """FindItem(self, long start, String str, bool partial=False) -> long"""
4725 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4727 def FindItemData(*args
, **kwargs
):
4728 """FindItemData(self, long start, long data) -> long"""
4729 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4731 def FindItemAtPos(*args
, **kwargs
):
4732 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4733 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4735 def HitTest(*args
, **kwargs
):
4737 HitTest(Point point) -> (item, where)
4739 Determines which item (if any) is at the specified point, giving
4740 in the second return value (see wxLIST_HITTEST_... flags.)
4742 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4744 def InsertItem(*args
, **kwargs
):
4745 """InsertItem(self, ListItem info) -> long"""
4746 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4748 def InsertStringItem(*args
, **kwargs
):
4749 """InsertStringItem(self, long index, String label) -> long"""
4750 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4752 def InsertImageItem(*args
, **kwargs
):
4753 """InsertImageItem(self, long index, int imageIndex) -> long"""
4754 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4756 def InsertImageStringItem(*args
, **kwargs
):
4757 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4758 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4760 def InsertColumnInfo(*args
, **kwargs
):
4761 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4762 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4764 def InsertColumn(*args
, **kwargs
):
4766 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4767 int width=-1) -> long
4769 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4771 def SetItemCount(*args
, **kwargs
):
4772 """SetItemCount(self, long count)"""
4773 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4775 def ScrollList(*args
, **kwargs
):
4776 """ScrollList(self, int dx, int dy) -> bool"""
4777 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4779 def SetItemTextColour(*args
, **kwargs
):
4780 """SetItemTextColour(self, long item, Colour col)"""
4781 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4783 def GetItemTextColour(*args
, **kwargs
):
4784 """GetItemTextColour(self, long item) -> Colour"""
4785 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4787 def SetItemBackgroundColour(*args
, **kwargs
):
4788 """SetItemBackgroundColour(self, long item, Colour col)"""
4789 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4791 def GetItemBackgroundColour(*args
, **kwargs
):
4792 """GetItemBackgroundColour(self, long item) -> Colour"""
4793 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4797 def Select(self
, idx
, on
=1):
4798 '''[de]select an item'''
4799 if on
: state
= wx
.LIST_STATE_SELECTED
4801 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4803 def Focus(self
, idx
):
4804 '''Focus and show the given item'''
4805 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4806 self
.EnsureVisible(idx
)
4808 def GetFocusedItem(self
):
4809 '''get the currently focused item or -1 if none'''
4810 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4812 def GetFirstSelected(self
, *args
):
4813 '''return first selected item, or -1 when none'''
4814 return self
.GetNextSelected(-1)
4816 def GetNextSelected(self
, item
):
4817 '''return subsequent selected items, or -1 when no more'''
4818 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4820 def IsSelected(self
, idx
):
4821 '''return True if the item is selected'''
4822 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4824 def SetColumnImage(self
, col
, image
):
4825 item
= self
.GetColumn(col
)
4826 # preserve all other attributes too
4827 item
.SetMask( wx
.LIST_MASK_STATE |
4829 wx
.LIST_MASK_IMAGE |
4832 wx
.LIST_MASK_WIDTH |
4833 wx
.LIST_MASK_FORMAT
)
4834 item
.SetImage(image
)
4835 self
.SetColumn(col
, item
)
4837 def ClearColumnImage(self
, col
):
4838 self
.SetColumnImage(col
, -1)
4840 def Append(self
, entry
):
4841 '''Append an item to the list control. The entry parameter should be a
4842 sequence with an item for each column'''
4848 pos
= self
.GetItemCount()
4849 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4850 for i
in range(1, len(entry
)):
4851 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4854 def SortItems(*args
, **kwargs
):
4855 """SortItems(self, PyObject func) -> bool"""
4856 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4858 def GetMainWindow(*args
, **kwargs
):
4859 """GetMainWindow(self) -> Window"""
4860 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4862 def GetClassDefaultAttributes(*args
, **kwargs
):
4864 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4866 Get the default attributes for this class. This is useful if you want
4867 to use the same font or colour in your own control as in a standard
4868 control -- which is a much better idea than hard coding specific
4869 colours or fonts which might look completely out of place on the
4870 user's system, especially if it uses themes.
4872 The variant parameter is only relevant under Mac currently and is
4873 ignore under other platforms. Under Mac, it will change the size of
4874 the returned font. See `wx.Window.SetWindowVariant` for more about
4877 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4879 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4881 class ListCtrlPtr(ListCtrl
):
4882 def __init__(self
, this
):
4884 if not hasattr(self
,"thisown"): self
.thisown
= 0
4885 self
.__class
__ = ListCtrl
4886 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4888 def PreListCtrl(*args
, **kwargs
):
4889 """PreListCtrl() -> ListCtrl"""
4890 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4894 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4896 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4898 Get the default attributes for this class. This is useful if you want
4899 to use the same font or colour in your own control as in a standard
4900 control -- which is a much better idea than hard coding specific
4901 colours or fonts which might look completely out of place on the
4902 user's system, especially if it uses themes.
4904 The variant parameter is only relevant under Mac currently and is
4905 ignore under other platforms. Under Mac, it will change the size of
4906 the returned font. See `wx.Window.SetWindowVariant` for more about
4909 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4911 #---------------------------------------------------------------------------
4913 class ListView(ListCtrl
):
4914 """Proxy of C++ ListView class"""
4916 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4917 def __init__(self
, *args
, **kwargs
):
4919 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4920 Size size=DefaultSize, long style=LC_REPORT,
4921 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4923 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4924 self
.this
= newobj
.this
4927 self
._setOORInfo
(self
)
4929 def Create(*args
, **kwargs
):
4931 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4932 Size size=DefaultSize, long style=LC_REPORT,
4933 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4935 Do the 2nd phase and create the GUI control.
4937 return _controls_
.ListView_Create(*args
, **kwargs
)
4939 def Select(*args
, **kwargs
):
4940 """Select(self, long n, bool on=True)"""
4941 return _controls_
.ListView_Select(*args
, **kwargs
)
4943 def Focus(*args
, **kwargs
):
4944 """Focus(self, long index)"""
4945 return _controls_
.ListView_Focus(*args
, **kwargs
)
4947 def GetFocusedItem(*args
, **kwargs
):
4948 """GetFocusedItem(self) -> long"""
4949 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4951 def GetNextSelected(*args
, **kwargs
):
4952 """GetNextSelected(self, long item) -> long"""
4953 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4955 def GetFirstSelected(*args
, **kwargs
):
4956 """GetFirstSelected(self) -> long"""
4957 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4959 def IsSelected(*args
, **kwargs
):
4960 """IsSelected(self, long index) -> bool"""
4961 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4963 def SetColumnImage(*args
, **kwargs
):
4964 """SetColumnImage(self, int col, int image)"""
4965 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4967 def ClearColumnImage(*args
, **kwargs
):
4968 """ClearColumnImage(self, int col)"""
4969 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4972 class ListViewPtr(ListView
):
4973 def __init__(self
, this
):
4975 if not hasattr(self
,"thisown"): self
.thisown
= 0
4976 self
.__class
__ = ListView
4977 _controls_
.ListView_swigregister(ListViewPtr
)
4979 def PreListView(*args
, **kwargs
):
4980 """PreListView() -> ListView"""
4981 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4985 #---------------------------------------------------------------------------
4987 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4988 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4989 TR_NO_LINES
= _controls_
.TR_NO_LINES
4990 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4991 TR_SINGLE
= _controls_
.TR_SINGLE
4992 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4993 TR_EXTENDED
= _controls_
.TR_EXTENDED
4994 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4995 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4996 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4997 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4998 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4999 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
5000 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
5001 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
5002 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
5003 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
5004 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
5005 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
5006 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
5007 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
5008 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
5009 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
5010 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
5011 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
5012 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
5013 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
5014 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
5015 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
5016 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
5017 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
5018 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
5019 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
5020 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
5021 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
5022 #---------------------------------------------------------------------------
5024 class TreeItemId(object):
5025 """Proxy of C++ TreeItemId class"""
5027 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5028 def __init__(self
, *args
, **kwargs
):
5029 """__init__(self) -> TreeItemId"""
5030 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
5031 self
.this
= newobj
.this
5034 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
5037 if self
.thisown
: destroy(self
)
5040 def IsOk(*args
, **kwargs
):
5041 """IsOk(self) -> bool"""
5042 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5044 def __eq__(*args
, **kwargs
):
5045 """__eq__(self, TreeItemId other) -> bool"""
5046 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5048 def __ne__(*args
, **kwargs
):
5049 """__ne__(self, TreeItemId other) -> bool"""
5050 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5052 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5054 def __nonzero__(self
): return self
.IsOk()
5056 class TreeItemIdPtr(TreeItemId
):
5057 def __init__(self
, this
):
5059 if not hasattr(self
,"thisown"): self
.thisown
= 0
5060 self
.__class
__ = TreeItemId
5061 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5062 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5064 class TreeItemData(object):
5065 """Proxy of C++ TreeItemData class"""
5067 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5068 def __init__(self
, *args
, **kwargs
):
5069 """__init__(self, PyObject obj=None) -> TreeItemData"""
5070 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5071 self
.this
= newobj
.this
5074 def GetData(*args
, **kwargs
):
5075 """GetData(self) -> PyObject"""
5076 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5078 def SetData(*args
, **kwargs
):
5079 """SetData(self, PyObject obj)"""
5080 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5082 def GetId(*args
, **kwargs
):
5083 """GetId(self) -> TreeItemId"""
5084 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5086 def SetId(*args
, **kwargs
):
5087 """SetId(self, TreeItemId id)"""
5088 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5090 def Destroy(*args
, **kwargs
):
5092 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5095 class TreeItemDataPtr(TreeItemData
):
5096 def __init__(self
, this
):
5098 if not hasattr(self
,"thisown"): self
.thisown
= 0
5099 self
.__class
__ = TreeItemData
5100 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5102 #---------------------------------------------------------------------------
5104 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5105 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5106 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5107 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5108 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5109 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5110 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5111 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5112 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5113 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5114 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5115 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5116 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5117 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5118 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5119 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5120 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5121 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5122 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5123 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5124 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5125 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5126 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5127 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5128 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5129 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5130 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5131 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5132 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5133 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5134 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5135 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5136 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5137 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5138 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5139 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5140 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5141 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5142 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5143 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5144 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5145 EVT_COMMAND_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5147 class TreeEvent(_core
.NotifyEvent
):
5148 """Proxy of C++ TreeEvent class"""
5150 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5151 def __init__(self
, *args
, **kwargs
):
5152 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5153 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5154 self
.this
= newobj
.this
5157 def GetItem(*args
, **kwargs
):
5158 """GetItem(self) -> TreeItemId"""
5159 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5161 def SetItem(*args
, **kwargs
):
5162 """SetItem(self, TreeItemId item)"""
5163 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5165 def GetOldItem(*args
, **kwargs
):
5166 """GetOldItem(self) -> TreeItemId"""
5167 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5169 def SetOldItem(*args
, **kwargs
):
5170 """SetOldItem(self, TreeItemId item)"""
5171 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5173 def GetPoint(*args
, **kwargs
):
5174 """GetPoint(self) -> Point"""
5175 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5177 def SetPoint(*args
, **kwargs
):
5178 """SetPoint(self, Point pt)"""
5179 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5181 def GetKeyEvent(*args
, **kwargs
):
5182 """GetKeyEvent(self) -> KeyEvent"""
5183 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5185 def GetKeyCode(*args
, **kwargs
):
5186 """GetKeyCode(self) -> int"""
5187 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5189 def SetKeyEvent(*args
, **kwargs
):
5190 """SetKeyEvent(self, KeyEvent evt)"""
5191 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5193 def GetLabel(*args
, **kwargs
):
5194 """GetLabel(self) -> String"""
5195 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5197 def SetLabel(*args
, **kwargs
):
5198 """SetLabel(self, String label)"""
5199 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5201 def IsEditCancelled(*args
, **kwargs
):
5202 """IsEditCancelled(self) -> bool"""
5203 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5205 def SetEditCanceled(*args
, **kwargs
):
5206 """SetEditCanceled(self, bool editCancelled)"""
5207 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5209 def SetToolTip(*args
, **kwargs
):
5210 """SetToolTip(self, String toolTip)"""
5211 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5214 class TreeEventPtr(TreeEvent
):
5215 def __init__(self
, this
):
5217 if not hasattr(self
,"thisown"): self
.thisown
= 0
5218 self
.__class
__ = TreeEvent
5219 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5221 #---------------------------------------------------------------------------
5223 class TreeCtrl(_core
.Control
):
5224 """Proxy of C++ TreeCtrl class"""
5226 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5227 def __init__(self
, *args
, **kwargs
):
5229 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5230 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5231 Validator validator=DefaultValidator,
5232 String name=TreeCtrlNameStr) -> TreeCtrl
5234 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5235 self
.this
= newobj
.this
5238 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5240 def Create(*args
, **kwargs
):
5242 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5243 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5244 Validator validator=DefaultValidator,
5245 String name=TreeCtrlNameStr) -> bool
5247 Do the 2nd phase and create the GUI control.
5249 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5251 def _setCallbackInfo(*args
, **kwargs
):
5252 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5253 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5255 def GetCount(*args
, **kwargs
):
5256 """GetCount(self) -> size_t"""
5257 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5259 def GetIndent(*args
, **kwargs
):
5260 """GetIndent(self) -> unsigned int"""
5261 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5263 def SetIndent(*args
, **kwargs
):
5264 """SetIndent(self, unsigned int indent)"""
5265 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5267 def GetSpacing(*args
, **kwargs
):
5268 """GetSpacing(self) -> unsigned int"""
5269 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5271 def SetSpacing(*args
, **kwargs
):
5272 """SetSpacing(self, unsigned int spacing)"""
5273 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5275 def GetImageList(*args
, **kwargs
):
5276 """GetImageList(self) -> ImageList"""
5277 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5279 def GetStateImageList(*args
, **kwargs
):
5280 """GetStateImageList(self) -> ImageList"""
5281 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5283 def SetImageList(*args
, **kwargs
):
5284 """SetImageList(self, ImageList imageList)"""
5285 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5287 def SetStateImageList(*args
, **kwargs
):
5288 """SetStateImageList(self, ImageList imageList)"""
5289 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5291 def AssignImageList(*args
, **kwargs
):
5292 """AssignImageList(self, ImageList imageList)"""
5293 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5295 def AssignStateImageList(*args
, **kwargs
):
5296 """AssignStateImageList(self, ImageList imageList)"""
5297 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5299 def GetItemText(*args
, **kwargs
):
5300 """GetItemText(self, TreeItemId item) -> String"""
5301 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5303 def GetItemImage(*args
, **kwargs
):
5304 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5305 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5307 def GetItemData(*args
, **kwargs
):
5308 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5309 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5311 def GetItemPyData(*args
, **kwargs
):
5312 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5313 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5315 GetPyData
= GetItemPyData
5316 def GetItemTextColour(*args
, **kwargs
):
5317 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5318 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5320 def GetItemBackgroundColour(*args
, **kwargs
):
5321 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5322 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5324 def GetItemFont(*args
, **kwargs
):
5325 """GetItemFont(self, TreeItemId item) -> Font"""
5326 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5328 def SetItemText(*args
, **kwargs
):
5329 """SetItemText(self, TreeItemId item, String text)"""
5330 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5332 def SetItemImage(*args
, **kwargs
):
5333 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5334 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5336 def SetItemData(*args
, **kwargs
):
5337 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5338 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5340 def SetItemPyData(*args
, **kwargs
):
5341 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5342 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5344 SetPyData
= SetItemPyData
5345 def SetItemHasChildren(*args
, **kwargs
):
5346 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5347 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5349 def SetItemBold(*args
, **kwargs
):
5350 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5351 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5353 def SetItemTextColour(*args
, **kwargs
):
5354 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5355 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5357 def SetItemBackgroundColour(*args
, **kwargs
):
5358 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5359 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5361 def SetItemFont(*args
, **kwargs
):
5362 """SetItemFont(self, TreeItemId item, Font font)"""
5363 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5365 def IsVisible(*args
, **kwargs
):
5366 """IsVisible(self, TreeItemId item) -> bool"""
5367 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5369 def ItemHasChildren(*args
, **kwargs
):
5370 """ItemHasChildren(self, TreeItemId item) -> bool"""
5371 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5373 def IsExpanded(*args
, **kwargs
):
5374 """IsExpanded(self, TreeItemId item) -> bool"""
5375 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5377 def IsSelected(*args
, **kwargs
):
5378 """IsSelected(self, TreeItemId item) -> bool"""
5379 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5381 def IsBold(*args
, **kwargs
):
5382 """IsBold(self, TreeItemId item) -> bool"""
5383 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5385 def GetChildrenCount(*args
, **kwargs
):
5386 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5387 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5389 def GetRootItem(*args
, **kwargs
):
5390 """GetRootItem(self) -> TreeItemId"""
5391 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5393 def GetSelection(*args
, **kwargs
):
5394 """GetSelection(self) -> TreeItemId"""
5395 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5397 def GetSelections(*args
, **kwargs
):
5398 """GetSelections(self) -> PyObject"""
5399 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5401 def GetItemParent(*args
, **kwargs
):
5402 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5403 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5405 def GetFirstChild(*args
, **kwargs
):
5406 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5407 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5409 def GetNextChild(*args
, **kwargs
):
5410 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5411 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5413 def GetLastChild(*args
, **kwargs
):
5414 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5415 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5417 def GetNextSibling(*args
, **kwargs
):
5418 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5419 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5421 def GetPrevSibling(*args
, **kwargs
):
5422 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5423 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5425 def GetFirstVisibleItem(*args
, **kwargs
):
5426 """GetFirstVisibleItem(self) -> TreeItemId"""
5427 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5429 def GetNextVisible(*args
, **kwargs
):
5430 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5431 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5433 def GetPrevVisible(*args
, **kwargs
):
5434 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5435 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5437 def AddRoot(*args
, **kwargs
):
5438 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5439 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5441 def PrependItem(*args
, **kwargs
):
5443 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5444 TreeItemData data=None) -> TreeItemId
5446 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5448 def InsertItem(*args
, **kwargs
):
5450 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5451 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5453 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5455 def InsertItemBefore(*args
, **kwargs
):
5457 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5458 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5460 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5462 def AppendItem(*args
, **kwargs
):
5464 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5465 TreeItemData data=None) -> TreeItemId
5467 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5469 def Delete(*args
, **kwargs
):
5470 """Delete(self, TreeItemId item)"""
5471 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5473 def DeleteChildren(*args
, **kwargs
):
5474 """DeleteChildren(self, TreeItemId item)"""
5475 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5477 def DeleteAllItems(*args
, **kwargs
):
5478 """DeleteAllItems(self)"""
5479 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5481 def Expand(*args
, **kwargs
):
5482 """Expand(self, TreeItemId item)"""
5483 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5485 def Collapse(*args
, **kwargs
):
5486 """Collapse(self, TreeItemId item)"""
5487 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5489 def CollapseAndReset(*args
, **kwargs
):
5490 """CollapseAndReset(self, TreeItemId item)"""
5491 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5493 def Toggle(*args
, **kwargs
):
5494 """Toggle(self, TreeItemId item)"""
5495 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5497 def Unselect(*args
, **kwargs
):
5498 """Unselect(self)"""
5499 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5501 def UnselectItem(*args
, **kwargs
):
5502 """UnselectItem(self, TreeItemId item)"""
5503 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5505 def UnselectAll(*args
, **kwargs
):
5506 """UnselectAll(self)"""
5507 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5509 def SelectItem(*args
, **kwargs
):
5510 """SelectItem(self, TreeItemId item, bool select=True)"""
5511 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5513 def ToggleItemSelection(*args
, **kwargs
):
5514 """ToggleItemSelection(self, TreeItemId item)"""
5515 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5517 def EnsureVisible(*args
, **kwargs
):
5518 """EnsureVisible(self, TreeItemId item)"""
5519 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5521 def ScrollTo(*args
, **kwargs
):
5522 """ScrollTo(self, TreeItemId item)"""
5523 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5525 def EditLabel(*args
, **kwargs
):
5526 """EditLabel(self, TreeItemId item)"""
5527 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5529 def GetEditControl(*args
, **kwargs
):
5530 """GetEditControl(self) -> TextCtrl"""
5531 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5533 def SortChildren(*args
, **kwargs
):
5534 """SortChildren(self, TreeItemId item)"""
5535 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5537 def HitTest(*args
, **kwargs
):
5539 HitTest(Point point) -> (item, where)
5541 Determine which item (if any) belongs the given point. The coordinates
5542 specified are relative to the client area of tree ctrl and the where return
5543 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5546 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5548 def GetBoundingRect(*args
, **kwargs
):
5549 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5550 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5552 def GetClassDefaultAttributes(*args
, **kwargs
):
5554 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5556 Get the default attributes for this class. This is useful if you want
5557 to use the same font or colour in your own control as in a standard
5558 control -- which is a much better idea than hard coding specific
5559 colours or fonts which might look completely out of place on the
5560 user's system, especially if it uses themes.
5562 The variant parameter is only relevant under Mac currently and is
5563 ignore under other platforms. Under Mac, it will change the size of
5564 the returned font. See `wx.Window.SetWindowVariant` for more about
5567 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5569 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5571 class TreeCtrlPtr(TreeCtrl
):
5572 def __init__(self
, this
):
5574 if not hasattr(self
,"thisown"): self
.thisown
= 0
5575 self
.__class
__ = TreeCtrl
5576 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5578 def PreTreeCtrl(*args
, **kwargs
):
5579 """PreTreeCtrl() -> TreeCtrl"""
5580 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5584 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5586 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5588 Get the default attributes for this class. This is useful if you want
5589 to use the same font or colour in your own control as in a standard
5590 control -- which is a much better idea than hard coding specific
5591 colours or fonts which might look completely out of place on the
5592 user's system, especially if it uses themes.
5594 The variant parameter is only relevant under Mac currently and is
5595 ignore under other platforms. Under Mac, it will change the size of
5596 the returned font. See `wx.Window.SetWindowVariant` for more about
5599 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5601 #---------------------------------------------------------------------------
5603 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5604 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5605 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5606 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5607 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5608 class GenericDirCtrl(_core
.Control
):
5609 """Proxy of C++ GenericDirCtrl class"""
5611 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5612 def __init__(self
, *args
, **kwargs
):
5614 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5615 Point pos=DefaultPosition, Size size=DefaultSize,
5616 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5617 String filter=EmptyString,
5618 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5620 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5621 self
.this
= newobj
.this
5624 self
._setOORInfo
(self
)
5626 def Create(*args
, **kwargs
):
5628 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5629 Point pos=DefaultPosition, Size size=DefaultSize,
5630 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5631 String filter=EmptyString,
5632 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5634 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5636 def ExpandPath(*args
, **kwargs
):
5637 """ExpandPath(self, String path) -> bool"""
5638 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5640 def GetDefaultPath(*args
, **kwargs
):
5641 """GetDefaultPath(self) -> String"""
5642 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5644 def SetDefaultPath(*args
, **kwargs
):
5645 """SetDefaultPath(self, String path)"""
5646 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5648 def GetPath(*args
, **kwargs
):
5649 """GetPath(self) -> String"""
5650 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5652 def GetFilePath(*args
, **kwargs
):
5653 """GetFilePath(self) -> String"""
5654 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5656 def SetPath(*args
, **kwargs
):
5657 """SetPath(self, String path)"""
5658 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5660 def ShowHidden(*args
, **kwargs
):
5661 """ShowHidden(self, bool show)"""
5662 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5664 def GetShowHidden(*args
, **kwargs
):
5665 """GetShowHidden(self) -> bool"""
5666 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5668 def GetFilter(*args
, **kwargs
):
5669 """GetFilter(self) -> String"""
5670 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5672 def SetFilter(*args
, **kwargs
):
5673 """SetFilter(self, String filter)"""
5674 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5676 def GetFilterIndex(*args
, **kwargs
):
5677 """GetFilterIndex(self) -> int"""
5678 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5680 def SetFilterIndex(*args
, **kwargs
):
5681 """SetFilterIndex(self, int n)"""
5682 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5684 def GetRootId(*args
, **kwargs
):
5685 """GetRootId(self) -> TreeItemId"""
5686 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5688 def GetTreeCtrl(*args
, **kwargs
):
5689 """GetTreeCtrl(self) -> TreeCtrl"""
5690 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5692 def GetFilterListCtrl(*args
, **kwargs
):
5693 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5694 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5696 def FindChild(*args
, **kwargs
):
5698 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5700 Find the child that matches the first part of 'path'. E.g. if a child
5701 path is "/usr" and 'path' is "/usr/include" then the child for
5702 /usr is returned. If the path string has been used (we're at the
5703 leaf), done is set to True.
5706 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5708 def DoResize(*args
, **kwargs
):
5709 """DoResize(self)"""
5710 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5712 def ReCreateTree(*args
, **kwargs
):
5713 """ReCreateTree(self)"""
5714 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5717 class GenericDirCtrlPtr(GenericDirCtrl
):
5718 def __init__(self
, this
):
5720 if not hasattr(self
,"thisown"): self
.thisown
= 0
5721 self
.__class
__ = GenericDirCtrl
5722 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5723 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5725 def PreGenericDirCtrl(*args
, **kwargs
):
5726 """PreGenericDirCtrl() -> GenericDirCtrl"""
5727 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5731 class DirFilterListCtrl(Choice
):
5732 """Proxy of C++ DirFilterListCtrl class"""
5734 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5735 def __init__(self
, *args
, **kwargs
):
5737 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5738 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5740 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5741 self
.this
= newobj
.this
5744 self
._setOORInfo
(self
)
5746 def Create(*args
, **kwargs
):
5748 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5749 Size size=DefaultSize, long style=0) -> bool
5751 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5753 def FillFilterList(*args
, **kwargs
):
5754 """FillFilterList(self, String filter, int defaultFilter)"""
5755 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5758 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5759 def __init__(self
, this
):
5761 if not hasattr(self
,"thisown"): self
.thisown
= 0
5762 self
.__class
__ = DirFilterListCtrl
5763 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5765 def PreDirFilterListCtrl(*args
, **kwargs
):
5766 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5767 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5771 #---------------------------------------------------------------------------
5773 class PyControl(_core
.Control
):
5774 """Proxy of C++ PyControl class"""
5776 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5777 def __init__(self
, *args
, **kwargs
):
5779 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5780 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5781 String name=ControlNameStr) -> PyControl
5783 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5784 self
.this
= newobj
.this
5787 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5789 def _setCallbackInfo(*args
, **kwargs
):
5790 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5791 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5793 def SetBestSize(*args
, **kwargs
):
5794 """SetBestSize(self, Size size)"""
5795 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5797 def base_DoMoveWindow(*args
, **kwargs
):
5798 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5799 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5801 def base_DoSetSize(*args
, **kwargs
):
5802 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5803 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5805 def base_DoSetClientSize(*args
, **kwargs
):
5806 """base_DoSetClientSize(self, int width, int height)"""
5807 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5809 def base_DoSetVirtualSize(*args
, **kwargs
):
5810 """base_DoSetVirtualSize(self, int x, int y)"""
5811 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5813 def base_DoGetSize(*args
, **kwargs
):
5814 """base_DoGetSize() -> (width, height)"""
5815 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5817 def base_DoGetClientSize(*args
, **kwargs
):
5818 """base_DoGetClientSize() -> (width, height)"""
5819 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5821 def base_DoGetPosition(*args
, **kwargs
):
5822 """base_DoGetPosition() -> (x,y)"""
5823 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5825 def base_DoGetVirtualSize(*args
, **kwargs
):
5826 """base_DoGetVirtualSize(self) -> Size"""
5827 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5829 def base_DoGetBestSize(*args
, **kwargs
):
5830 """base_DoGetBestSize(self) -> Size"""
5831 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5833 def base_InitDialog(*args
, **kwargs
):
5834 """base_InitDialog(self)"""
5835 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5837 def base_TransferDataToWindow(*args
, **kwargs
):
5838 """base_TransferDataToWindow(self) -> bool"""
5839 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5841 def base_TransferDataFromWindow(*args
, **kwargs
):
5842 """base_TransferDataFromWindow(self) -> bool"""
5843 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5845 def base_Validate(*args
, **kwargs
):
5846 """base_Validate(self) -> bool"""
5847 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5849 def base_AcceptsFocus(*args
, **kwargs
):
5850 """base_AcceptsFocus(self) -> bool"""
5851 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5853 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5854 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5855 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5857 def base_GetMaxSize(*args
, **kwargs
):
5858 """base_GetMaxSize(self) -> Size"""
5859 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5861 def base_AddChild(*args
, **kwargs
):
5862 """base_AddChild(self, Window child)"""
5863 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5865 def base_RemoveChild(*args
, **kwargs
):
5866 """base_RemoveChild(self, Window child)"""
5867 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5869 def base_ShouldInheritColours(*args
, **kwargs
):
5870 """base_ShouldInheritColours(self) -> bool"""
5871 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5873 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5874 """base_ApplyParentThemeBackground(self, Colour c)"""
5875 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5877 def base_GetDefaultAttributes(*args
, **kwargs
):
5878 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5879 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5882 class PyControlPtr(PyControl
):
5883 def __init__(self
, this
):
5885 if not hasattr(self
,"thisown"): self
.thisown
= 0
5886 self
.__class
__ = PyControl
5887 _controls_
.PyControl_swigregister(PyControlPtr
)
5889 def PrePyControl(*args
, **kwargs
):
5890 """PrePyControl() -> PyControl"""
5891 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5895 #---------------------------------------------------------------------------
5897 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5898 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5899 wxEVT_HELP
= _controls_
.wxEVT_HELP
5900 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5901 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5902 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5903 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5904 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5906 class HelpEvent(_core
.CommandEvent
):
5908 A help event is sent when the user has requested context-sensitive
5909 help. This can either be caused by the application requesting
5910 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5911 the system generating a WM_HELP message when the user pressed F1 or
5912 clicked on the query button in a dialog caption.
5914 A help event is sent to the window that the user clicked on, and is
5915 propagated up the window hierarchy until the event is processed or
5916 there are no more event handlers. The application should call
5917 event.GetId to check the identity of the clicked-on window, and then
5918 either show some suitable help or call event.Skip if the identifier is
5919 unrecognised. Calling Skip is important because it allows wxWindows to
5920 generate further events for ancestors of the clicked-on
5921 window. Otherwise it would be impossible to show help for container
5922 windows, since processing would stop after the first window found.
5925 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5926 def __init__(self
, *args
, **kwargs
):
5927 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5928 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5929 self
.this
= newobj
.this
5932 def GetPosition(*args
, **kwargs
):
5934 GetPosition(self) -> Point
5936 Returns the left-click position of the mouse, in screen
5937 coordinates. This allows the application to position the help
5940 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5942 def SetPosition(*args
, **kwargs
):
5944 SetPosition(self, Point pos)
5946 Sets the left-click position of the mouse, in screen coordinates.
5948 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5950 def GetLink(*args
, **kwargs
):
5952 GetLink(self) -> String
5954 Get an optional link to further help
5956 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5958 def SetLink(*args
, **kwargs
):
5960 SetLink(self, String link)
5962 Set an optional link to further help
5964 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5966 def GetTarget(*args
, **kwargs
):
5968 GetTarget(self) -> String
5970 Get an optional target to display help in. E.g. a window specification
5972 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5974 def SetTarget(*args
, **kwargs
):
5976 SetTarget(self, String target)
5978 Set an optional target to display help in. E.g. a window specification
5980 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5983 class HelpEventPtr(HelpEvent
):
5984 def __init__(self
, this
):
5986 if not hasattr(self
,"thisown"): self
.thisown
= 0
5987 self
.__class
__ = HelpEvent
5988 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5990 class ContextHelp(_core
.Object
):
5992 This class changes the cursor to a query and puts the application into
5993 a 'context-sensitive help mode'. When the user left-clicks on a window
5994 within the specified window, a ``EVT_HELP`` event is sent to that
5995 control, and the application may respond to it by popping up some
5998 There are a couple of ways to invoke this behaviour implicitly:
6000 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
6001 (Windows only). This will put a question mark in the titlebar,
6002 and Windows will put the application into context-sensitive help
6003 mode automatically, with further programming.
6005 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
6006 to create a context help object. Normally you will write your
6007 application so that this button is only added to a dialog for
6008 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
6011 :see: `wx.ContextHelpButton`
6015 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6016 def __init__(self
, *args
, **kwargs
):
6018 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
6020 Constructs a context help object, calling BeginContextHelp if doNow is
6023 If window is None, the top window is used.
6025 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
6026 self
.this
= newobj
.this
6029 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6032 if self
.thisown
: destroy(self
)
6035 def BeginContextHelp(*args
, **kwargs
):
6037 BeginContextHelp(self, Window window=None) -> bool
6039 Puts the application into context-sensitive help mode. window is the
6040 window which will be used to catch events; if NULL, the top window
6043 Returns true if the application was successfully put into
6044 context-sensitive help mode. This function only returns when the event
6047 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6049 def EndContextHelp(*args
, **kwargs
):
6051 EndContextHelp(self) -> bool
6053 Ends context-sensitive help mode. Not normally called by the
6056 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6059 class ContextHelpPtr(ContextHelp
):
6060 def __init__(self
, this
):
6062 if not hasattr(self
,"thisown"): self
.thisown
= 0
6063 self
.__class
__ = ContextHelp
6064 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6066 class ContextHelpButton(BitmapButton
):
6068 Instances of this class may be used to add a question mark button that
6069 when pressed, puts the application into context-help mode. It does
6070 this by creating a wx.ContextHelp object which itself generates a
6071 ``EVT_HELP`` event when the user clicks on a window.
6073 On Windows, you may add a question-mark icon to a dialog by use of the
6074 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6075 will have to add a button explicitly, usually next to OK, Cancel or
6078 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6082 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6083 def __init__(self
, *args
, **kwargs
):
6085 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6086 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6088 Constructor, creating and showing a context help button.
6090 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6091 self
.this
= newobj
.this
6094 self
._setOORInfo
(self
)
6097 class ContextHelpButtonPtr(ContextHelpButton
):
6098 def __init__(self
, this
):
6100 if not hasattr(self
,"thisown"): self
.thisown
= 0
6101 self
.__class
__ = ContextHelpButton
6102 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6104 class HelpProvider(object):
6106 wx.HelpProvider is an abstract class used by a program
6107 implementing context-sensitive help to show the help text for the
6110 The current help provider must be explicitly set by the
6111 application using wx.HelpProvider.Set().
6113 def __init__(self
): raise RuntimeError, "No constructor defined"
6115 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6116 def Set(*args
, **kwargs
):
6118 Set(HelpProvider helpProvider) -> HelpProvider
6120 Sset the current, application-wide help provider. Returns the previous
6121 one. Unlike some other classes, the help provider is not created on
6122 demand. This must be explicitly done by the application.
6124 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6126 Set
= staticmethod(Set
)
6127 def Get(*args
, **kwargs
):
6129 Get() -> HelpProvider
6131 Return the current application-wide help provider.
6133 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6135 Get
= staticmethod(Get
)
6136 def GetHelp(*args
, **kwargs
):
6138 GetHelp(self, Window window) -> String
6140 Gets the help string for this window. Its interpretation is dependent
6141 on the help provider except that empty string always means that no
6142 help is associated with the window.
6144 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6146 def ShowHelp(*args
, **kwargs
):
6148 ShowHelp(self, Window window) -> bool
6150 Shows help for the given window. Uses GetHelp internally if
6151 applicable. Returns True if it was done, or False if no help was
6152 available for this window.
6154 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6156 def AddHelp(*args
, **kwargs
):
6158 AddHelp(self, Window window, String text)
6160 Associates the text with the given window.
6162 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6164 def AddHelpById(*args
, **kwargs
):
6166 AddHelpById(self, int id, String text)
6168 This version associates the given text with all windows with this
6169 id. May be used to set the same help string for all Cancel buttons in
6170 the application, for example.
6172 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6174 def RemoveHelp(*args
, **kwargs
):
6176 RemoveHelp(self, Window window)
6178 Removes the association between the window pointer and the help
6179 text. This is called by the wx.Window destructor. Without this, the
6180 table of help strings will fill up and when window pointers are
6181 reused, the wrong help string will be found.
6183 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6185 def Destroy(*args
, **kwargs
):
6187 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6190 class HelpProviderPtr(HelpProvider
):
6191 def __init__(self
, this
):
6193 if not hasattr(self
,"thisown"): self
.thisown
= 0
6194 self
.__class
__ = HelpProvider
6195 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6197 def HelpProvider_Set(*args
, **kwargs
):
6199 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6201 Sset the current, application-wide help provider. Returns the previous
6202 one. Unlike some other classes, the help provider is not created on
6203 demand. This must be explicitly done by the application.
6205 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6207 def HelpProvider_Get(*args
, **kwargs
):
6209 HelpProvider_Get() -> HelpProvider
6211 Return the current application-wide help provider.
6213 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6215 class SimpleHelpProvider(HelpProvider
):
6217 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6218 supports only plain text help strings, and shows the string associated
6219 with the control (if any) in a tooltip.
6222 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6223 def __init__(self
, *args
, **kwargs
):
6225 __init__(self) -> SimpleHelpProvider
6227 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6228 supports only plain text help strings, and shows the string associated
6229 with the control (if any) in a tooltip.
6231 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6232 self
.this
= newobj
.this
6236 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6237 def __init__(self
, this
):
6239 if not hasattr(self
,"thisown"): self
.thisown
= 0
6240 self
.__class
__ = SimpleHelpProvider
6241 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6243 #---------------------------------------------------------------------------
6245 class DragImage(_core
.Object
):
6246 """Proxy of C++ DragImage class"""
6248 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6249 def __init__(self
, *args
, **kwargs
):
6250 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6251 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6252 self
.this
= newobj
.this
6255 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6258 if self
.thisown
: destroy(self
)
6261 def SetBackingBitmap(*args
, **kwargs
):
6262 """SetBackingBitmap(self, Bitmap bitmap)"""
6263 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6265 def BeginDrag(*args
, **kwargs
):
6267 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6268 Rect rect=None) -> bool
6270 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6272 def BeginDragBounded(*args
, **kwargs
):
6273 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6274 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6276 def EndDrag(*args
, **kwargs
):
6277 """EndDrag(self) -> bool"""
6278 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6280 def Move(*args
, **kwargs
):
6281 """Move(self, Point pt) -> bool"""
6282 return _controls_
.DragImage_Move(*args
, **kwargs
)
6284 def Show(*args
, **kwargs
):
6285 """Show(self) -> bool"""
6286 return _controls_
.DragImage_Show(*args
, **kwargs
)
6288 def Hide(*args
, **kwargs
):
6289 """Hide(self) -> bool"""
6290 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6292 def GetImageRect(*args
, **kwargs
):
6293 """GetImageRect(self, Point pos) -> Rect"""
6294 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6296 def DoDrawImage(*args
, **kwargs
):
6297 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6298 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6300 def UpdateBackingFromWindow(*args
, **kwargs
):
6301 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6302 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6304 def RedrawImage(*args
, **kwargs
):
6305 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6306 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6309 class DragImagePtr(DragImage
):
6310 def __init__(self
, this
):
6312 if not hasattr(self
,"thisown"): self
.thisown
= 0
6313 self
.__class
__ = DragImage
6314 _controls_
.DragImage_swigregister(DragImagePtr
)
6316 def DragIcon(*args
, **kwargs
):
6317 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6318 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6322 def DragString(*args
, **kwargs
):
6323 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6324 val
= _controls_
.new_DragString(*args
, **kwargs
)
6328 def DragTreeItem(*args
, **kwargs
):
6329 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6330 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6334 def DragListItem(*args
, **kwargs
):
6335 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6336 val
= _controls_
.new_DragListItem(*args
, **kwargs
)