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 HitTest(*args
, **kwargs
):
1519 HitTest(self, Point pt) -> int
1521 Test where the given (in client coords) point lies
1523 return _controls_
.CheckListBox_HitTest(*args
, **kwargs
)
1525 def HitTestXY(*args
, **kwargs
):
1527 HitTestXY(self, int x, int y) -> int
1529 Test where the given (in client coords) point lies
1531 return _controls_
.CheckListBox_HitTestXY(*args
, **kwargs
)
1534 class CheckListBoxPtr(CheckListBox
):
1535 def __init__(self
, this
):
1537 if not hasattr(self
,"thisown"): self
.thisown
= 0
1538 self
.__class
__ = CheckListBox
1539 _controls_
.CheckListBox_swigregister(CheckListBoxPtr
)
1541 def PreCheckListBox(*args
, **kwargs
):
1542 """PreCheckListBox() -> CheckListBox"""
1543 val
= _controls_
.new_PreCheckListBox(*args
, **kwargs
)
1547 #---------------------------------------------------------------------------
1549 TE_NO_VSCROLL
= _controls_
.TE_NO_VSCROLL
1550 TE_AUTO_SCROLL
= _controls_
.TE_AUTO_SCROLL
1551 TE_READONLY
= _controls_
.TE_READONLY
1552 TE_MULTILINE
= _controls_
.TE_MULTILINE
1553 TE_PROCESS_TAB
= _controls_
.TE_PROCESS_TAB
1554 TE_LEFT
= _controls_
.TE_LEFT
1555 TE_CENTER
= _controls_
.TE_CENTER
1556 TE_RIGHT
= _controls_
.TE_RIGHT
1557 TE_CENTRE
= _controls_
.TE_CENTRE
1558 TE_RICH
= _controls_
.TE_RICH
1559 TE_PROCESS_ENTER
= _controls_
.TE_PROCESS_ENTER
1560 TE_PASSWORD
= _controls_
.TE_PASSWORD
1561 TE_AUTO_URL
= _controls_
.TE_AUTO_URL
1562 TE_NOHIDESEL
= _controls_
.TE_NOHIDESEL
1563 TE_DONTWRAP
= _controls_
.TE_DONTWRAP
1564 TE_LINEWRAP
= _controls_
.TE_LINEWRAP
1565 TE_WORDWRAP
= _controls_
.TE_WORDWRAP
1566 TE_RICH2
= _controls_
.TE_RICH2
1567 TEXT_ALIGNMENT_DEFAULT
= _controls_
.TEXT_ALIGNMENT_DEFAULT
1568 TEXT_ALIGNMENT_LEFT
= _controls_
.TEXT_ALIGNMENT_LEFT
1569 TEXT_ALIGNMENT_CENTRE
= _controls_
.TEXT_ALIGNMENT_CENTRE
1570 TEXT_ALIGNMENT_CENTER
= _controls_
.TEXT_ALIGNMENT_CENTER
1571 TEXT_ALIGNMENT_RIGHT
= _controls_
.TEXT_ALIGNMENT_RIGHT
1572 TEXT_ALIGNMENT_JUSTIFIED
= _controls_
.TEXT_ALIGNMENT_JUSTIFIED
1573 TEXT_ATTR_TEXT_COLOUR
= _controls_
.TEXT_ATTR_TEXT_COLOUR
1574 TEXT_ATTR_BACKGROUND_COLOUR
= _controls_
.TEXT_ATTR_BACKGROUND_COLOUR
1575 TEXT_ATTR_FONT_FACE
= _controls_
.TEXT_ATTR_FONT_FACE
1576 TEXT_ATTR_FONT_SIZE
= _controls_
.TEXT_ATTR_FONT_SIZE
1577 TEXT_ATTR_FONT_WEIGHT
= _controls_
.TEXT_ATTR_FONT_WEIGHT
1578 TEXT_ATTR_FONT_ITALIC
= _controls_
.TEXT_ATTR_FONT_ITALIC
1579 TEXT_ATTR_FONT_UNDERLINE
= _controls_
.TEXT_ATTR_FONT_UNDERLINE
1580 TEXT_ATTR_FONT
= _controls_
.TEXT_ATTR_FONT
1581 TEXT_ATTR_ALIGNMENT
= _controls_
.TEXT_ATTR_ALIGNMENT
1582 TEXT_ATTR_LEFT_INDENT
= _controls_
.TEXT_ATTR_LEFT_INDENT
1583 TEXT_ATTR_RIGHT_INDENT
= _controls_
.TEXT_ATTR_RIGHT_INDENT
1584 TEXT_ATTR_TABS
= _controls_
.TEXT_ATTR_TABS
1585 TE_HT_UNKNOWN
= _controls_
.TE_HT_UNKNOWN
1586 TE_HT_BEFORE
= _controls_
.TE_HT_BEFORE
1587 TE_HT_ON_TEXT
= _controls_
.TE_HT_ON_TEXT
1588 TE_HT_BELOW
= _controls_
.TE_HT_BELOW
1589 TE_HT_BEYOND
= _controls_
.TE_HT_BEYOND
1590 class TextAttr(object):
1591 """Proxy of C++ TextAttr class"""
1593 return "<%s.%s; proxy of C++ wxTextAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1594 def __init__(self
, *args
, **kwargs
):
1596 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
1597 Font font=wxNullFont, int alignment=TEXT_ALIGNMENT_DEFAULT) -> TextAttr
1599 newobj
= _controls_
.new_TextAttr(*args
, **kwargs
)
1600 self
.this
= newobj
.this
1603 def __del__(self
, destroy
=_controls_
.delete_TextAttr
):
1606 if self
.thisown
: destroy(self
)
1609 def Init(*args
, **kwargs
):
1611 return _controls_
.TextAttr_Init(*args
, **kwargs
)
1613 def SetTextColour(*args
, **kwargs
):
1614 """SetTextColour(self, Colour colText)"""
1615 return _controls_
.TextAttr_SetTextColour(*args
, **kwargs
)
1617 def SetBackgroundColour(*args
, **kwargs
):
1618 """SetBackgroundColour(self, Colour colBack)"""
1619 return _controls_
.TextAttr_SetBackgroundColour(*args
, **kwargs
)
1621 def SetFont(*args
, **kwargs
):
1622 """SetFont(self, Font font, long flags=TEXT_ATTR_FONT)"""
1623 return _controls_
.TextAttr_SetFont(*args
, **kwargs
)
1625 def SetAlignment(*args
, **kwargs
):
1626 """SetAlignment(self, int alignment)"""
1627 return _controls_
.TextAttr_SetAlignment(*args
, **kwargs
)
1629 def SetTabs(*args
, **kwargs
):
1630 """SetTabs(self, wxArrayInt tabs)"""
1631 return _controls_
.TextAttr_SetTabs(*args
, **kwargs
)
1633 def SetLeftIndent(*args
, **kwargs
):
1634 """SetLeftIndent(self, int indent, int subIndent=0)"""
1635 return _controls_
.TextAttr_SetLeftIndent(*args
, **kwargs
)
1637 def SetRightIndent(*args
, **kwargs
):
1638 """SetRightIndent(self, int indent)"""
1639 return _controls_
.TextAttr_SetRightIndent(*args
, **kwargs
)
1641 def SetFlags(*args
, **kwargs
):
1642 """SetFlags(self, long flags)"""
1643 return _controls_
.TextAttr_SetFlags(*args
, **kwargs
)
1645 def HasTextColour(*args
, **kwargs
):
1646 """HasTextColour(self) -> bool"""
1647 return _controls_
.TextAttr_HasTextColour(*args
, **kwargs
)
1649 def HasBackgroundColour(*args
, **kwargs
):
1650 """HasBackgroundColour(self) -> bool"""
1651 return _controls_
.TextAttr_HasBackgroundColour(*args
, **kwargs
)
1653 def HasFont(*args
, **kwargs
):
1654 """HasFont(self) -> bool"""
1655 return _controls_
.TextAttr_HasFont(*args
, **kwargs
)
1657 def HasAlignment(*args
, **kwargs
):
1658 """HasAlignment(self) -> bool"""
1659 return _controls_
.TextAttr_HasAlignment(*args
, **kwargs
)
1661 def HasTabs(*args
, **kwargs
):
1662 """HasTabs(self) -> bool"""
1663 return _controls_
.TextAttr_HasTabs(*args
, **kwargs
)
1665 def HasLeftIndent(*args
, **kwargs
):
1666 """HasLeftIndent(self) -> bool"""
1667 return _controls_
.TextAttr_HasLeftIndent(*args
, **kwargs
)
1669 def HasRightIndent(*args
, **kwargs
):
1670 """HasRightIndent(self) -> bool"""
1671 return _controls_
.TextAttr_HasRightIndent(*args
, **kwargs
)
1673 def HasFlag(*args
, **kwargs
):
1674 """HasFlag(self, long flag) -> bool"""
1675 return _controls_
.TextAttr_HasFlag(*args
, **kwargs
)
1677 def GetTextColour(*args
, **kwargs
):
1678 """GetTextColour(self) -> Colour"""
1679 return _controls_
.TextAttr_GetTextColour(*args
, **kwargs
)
1681 def GetBackgroundColour(*args
, **kwargs
):
1682 """GetBackgroundColour(self) -> Colour"""
1683 return _controls_
.TextAttr_GetBackgroundColour(*args
, **kwargs
)
1685 def GetFont(*args
, **kwargs
):
1686 """GetFont(self) -> Font"""
1687 return _controls_
.TextAttr_GetFont(*args
, **kwargs
)
1689 def GetAlignment(*args
, **kwargs
):
1690 """GetAlignment(self) -> int"""
1691 return _controls_
.TextAttr_GetAlignment(*args
, **kwargs
)
1693 def GetTabs(*args
, **kwargs
):
1694 """GetTabs(self) -> wxArrayInt"""
1695 return _controls_
.TextAttr_GetTabs(*args
, **kwargs
)
1697 def GetLeftIndent(*args
, **kwargs
):
1698 """GetLeftIndent(self) -> long"""
1699 return _controls_
.TextAttr_GetLeftIndent(*args
, **kwargs
)
1701 def GetLeftSubIndent(*args
, **kwargs
):
1702 """GetLeftSubIndent(self) -> long"""
1703 return _controls_
.TextAttr_GetLeftSubIndent(*args
, **kwargs
)
1705 def GetRightIndent(*args
, **kwargs
):
1706 """GetRightIndent(self) -> long"""
1707 return _controls_
.TextAttr_GetRightIndent(*args
, **kwargs
)
1709 def GetFlags(*args
, **kwargs
):
1710 """GetFlags(self) -> long"""
1711 return _controls_
.TextAttr_GetFlags(*args
, **kwargs
)
1713 def IsDefault(*args
, **kwargs
):
1714 """IsDefault(self) -> bool"""
1715 return _controls_
.TextAttr_IsDefault(*args
, **kwargs
)
1717 def Combine(*args
, **kwargs
):
1718 """Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1719 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1721 Combine
= staticmethod(Combine
)
1723 class TextAttrPtr(TextAttr
):
1724 def __init__(self
, this
):
1726 if not hasattr(self
,"thisown"): self
.thisown
= 0
1727 self
.__class
__ = TextAttr
1728 _controls_
.TextAttr_swigregister(TextAttrPtr
)
1729 TextCtrlNameStr
= cvar
.TextCtrlNameStr
1731 def TextAttr_Combine(*args
, **kwargs
):
1732 """TextAttr_Combine(TextAttr attr, TextAttr attrDef, TextCtrl text) -> TextAttr"""
1733 return _controls_
.TextAttr_Combine(*args
, **kwargs
)
1735 class TextCtrl(_core
.Control
):
1736 """Proxy of C++ TextCtrl class"""
1738 return "<%s.%s; proxy of C++ wxTextCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1739 def __init__(self
, *args
, **kwargs
):
1741 __init__(self, Window parent, int id=-1, String value=EmptyString,
1742 Point pos=DefaultPosition, Size size=DefaultSize,
1743 long style=0, Validator validator=DefaultValidator,
1744 String name=TextCtrlNameStr) -> TextCtrl
1746 newobj
= _controls_
.new_TextCtrl(*args
, **kwargs
)
1747 self
.this
= newobj
.this
1750 self
._setOORInfo
(self
)
1752 def Create(*args
, **kwargs
):
1754 Create(self, Window parent, int id=-1, String value=EmptyString,
1755 Point pos=DefaultPosition, Size size=DefaultSize,
1756 long style=0, Validator validator=DefaultValidator,
1757 String name=TextCtrlNameStr) -> bool
1759 return _controls_
.TextCtrl_Create(*args
, **kwargs
)
1761 def GetValue(*args
, **kwargs
):
1762 """GetValue(self) -> String"""
1763 return _controls_
.TextCtrl_GetValue(*args
, **kwargs
)
1765 def SetValue(*args
, **kwargs
):
1766 """SetValue(self, String value)"""
1767 return _controls_
.TextCtrl_SetValue(*args
, **kwargs
)
1769 def GetRange(*args
, **kwargs
):
1770 """GetRange(self, long from, long to) -> String"""
1771 return _controls_
.TextCtrl_GetRange(*args
, **kwargs
)
1773 def GetLineLength(*args
, **kwargs
):
1774 """GetLineLength(self, long lineNo) -> int"""
1775 return _controls_
.TextCtrl_GetLineLength(*args
, **kwargs
)
1777 def GetLineText(*args
, **kwargs
):
1778 """GetLineText(self, long lineNo) -> String"""
1779 return _controls_
.TextCtrl_GetLineText(*args
, **kwargs
)
1781 def GetNumberOfLines(*args
, **kwargs
):
1782 """GetNumberOfLines(self) -> int"""
1783 return _controls_
.TextCtrl_GetNumberOfLines(*args
, **kwargs
)
1785 def IsModified(*args
, **kwargs
):
1786 """IsModified(self) -> bool"""
1787 return _controls_
.TextCtrl_IsModified(*args
, **kwargs
)
1789 def IsEditable(*args
, **kwargs
):
1790 """IsEditable(self) -> bool"""
1791 return _controls_
.TextCtrl_IsEditable(*args
, **kwargs
)
1793 def IsSingleLine(*args
, **kwargs
):
1794 """IsSingleLine(self) -> bool"""
1795 return _controls_
.TextCtrl_IsSingleLine(*args
, **kwargs
)
1797 def IsMultiLine(*args
, **kwargs
):
1798 """IsMultiLine(self) -> bool"""
1799 return _controls_
.TextCtrl_IsMultiLine(*args
, **kwargs
)
1801 def GetSelection(*args
, **kwargs
):
1803 GetSelection() -> (from, to)
1805 If the return values from and to are the same, there is no selection.
1807 return _controls_
.TextCtrl_GetSelection(*args
, **kwargs
)
1809 def GetStringSelection(*args
, **kwargs
):
1810 """GetStringSelection(self) -> String"""
1811 return _controls_
.TextCtrl_GetStringSelection(*args
, **kwargs
)
1813 def Clear(*args
, **kwargs
):
1815 return _controls_
.TextCtrl_Clear(*args
, **kwargs
)
1817 def Replace(*args
, **kwargs
):
1818 """Replace(self, long from, long to, String value)"""
1819 return _controls_
.TextCtrl_Replace(*args
, **kwargs
)
1821 def Remove(*args
, **kwargs
):
1822 """Remove(self, long from, long to)"""
1823 return _controls_
.TextCtrl_Remove(*args
, **kwargs
)
1825 def LoadFile(*args
, **kwargs
):
1826 """LoadFile(self, String file) -> bool"""
1827 return _controls_
.TextCtrl_LoadFile(*args
, **kwargs
)
1829 def SaveFile(*args
, **kwargs
):
1830 """SaveFile(self, String file=EmptyString) -> bool"""
1831 return _controls_
.TextCtrl_SaveFile(*args
, **kwargs
)
1833 def MarkDirty(*args
, **kwargs
):
1834 """MarkDirty(self)"""
1835 return _controls_
.TextCtrl_MarkDirty(*args
, **kwargs
)
1837 def DiscardEdits(*args
, **kwargs
):
1838 """DiscardEdits(self)"""
1839 return _controls_
.TextCtrl_DiscardEdits(*args
, **kwargs
)
1841 def SetMaxLength(*args
, **kwargs
):
1842 """SetMaxLength(self, unsigned long len)"""
1843 return _controls_
.TextCtrl_SetMaxLength(*args
, **kwargs
)
1845 def WriteText(*args
, **kwargs
):
1846 """WriteText(self, String text)"""
1847 return _controls_
.TextCtrl_WriteText(*args
, **kwargs
)
1849 def AppendText(*args
, **kwargs
):
1850 """AppendText(self, String text)"""
1851 return _controls_
.TextCtrl_AppendText(*args
, **kwargs
)
1853 def EmulateKeyPress(*args
, **kwargs
):
1854 """EmulateKeyPress(self, KeyEvent event) -> bool"""
1855 return _controls_
.TextCtrl_EmulateKeyPress(*args
, **kwargs
)
1857 def SetStyle(*args
, **kwargs
):
1858 """SetStyle(self, long start, long end, TextAttr style) -> bool"""
1859 return _controls_
.TextCtrl_SetStyle(*args
, **kwargs
)
1861 def GetStyle(*args
, **kwargs
):
1862 """GetStyle(self, long position, TextAttr style) -> bool"""
1863 return _controls_
.TextCtrl_GetStyle(*args
, **kwargs
)
1865 def SetDefaultStyle(*args
, **kwargs
):
1866 """SetDefaultStyle(self, TextAttr style) -> bool"""
1867 return _controls_
.TextCtrl_SetDefaultStyle(*args
, **kwargs
)
1869 def GetDefaultStyle(*args
, **kwargs
):
1870 """GetDefaultStyle(self) -> TextAttr"""
1871 return _controls_
.TextCtrl_GetDefaultStyle(*args
, **kwargs
)
1873 def XYToPosition(*args
, **kwargs
):
1874 """XYToPosition(self, long x, long y) -> long"""
1875 return _controls_
.TextCtrl_XYToPosition(*args
, **kwargs
)
1877 def PositionToXY(*args
, **kwargs
):
1878 """PositionToXY(long pos) -> (x, y)"""
1879 return _controls_
.TextCtrl_PositionToXY(*args
, **kwargs
)
1881 def ShowPosition(*args
, **kwargs
):
1882 """ShowPosition(self, long pos)"""
1883 return _controls_
.TextCtrl_ShowPosition(*args
, **kwargs
)
1885 def HitTest(*args
, **kwargs
):
1887 HitTest(Point pt) -> (result, row, col)
1889 Find the row, col coresponding to the character at the point given in
1890 pixels. NB: pt is in device coords but is not adjusted for the client
1891 area origin nor scrolling.
1893 return _controls_
.TextCtrl_HitTest(*args
, **kwargs
)
1895 def HitTestPos(*args
, **kwargs
):
1897 HitTestPos(Point pt) -> (result, position)
1899 Find the character position in the text coresponding to the point
1900 given in pixels. NB: pt is in device coords but is not adjusted for
1901 the client area origin nor scrolling.
1903 return _controls_
.TextCtrl_HitTestPos(*args
, **kwargs
)
1905 def Copy(*args
, **kwargs
):
1907 return _controls_
.TextCtrl_Copy(*args
, **kwargs
)
1909 def Cut(*args
, **kwargs
):
1911 return _controls_
.TextCtrl_Cut(*args
, **kwargs
)
1913 def Paste(*args
, **kwargs
):
1915 return _controls_
.TextCtrl_Paste(*args
, **kwargs
)
1917 def CanCopy(*args
, **kwargs
):
1918 """CanCopy(self) -> bool"""
1919 return _controls_
.TextCtrl_CanCopy(*args
, **kwargs
)
1921 def CanCut(*args
, **kwargs
):
1922 """CanCut(self) -> bool"""
1923 return _controls_
.TextCtrl_CanCut(*args
, **kwargs
)
1925 def CanPaste(*args
, **kwargs
):
1926 """CanPaste(self) -> bool"""
1927 return _controls_
.TextCtrl_CanPaste(*args
, **kwargs
)
1929 def Undo(*args
, **kwargs
):
1931 return _controls_
.TextCtrl_Undo(*args
, **kwargs
)
1933 def Redo(*args
, **kwargs
):
1935 return _controls_
.TextCtrl_Redo(*args
, **kwargs
)
1937 def CanUndo(*args
, **kwargs
):
1938 """CanUndo(self) -> bool"""
1939 return _controls_
.TextCtrl_CanUndo(*args
, **kwargs
)
1941 def CanRedo(*args
, **kwargs
):
1942 """CanRedo(self) -> bool"""
1943 return _controls_
.TextCtrl_CanRedo(*args
, **kwargs
)
1945 def SetInsertionPoint(*args
, **kwargs
):
1946 """SetInsertionPoint(self, long pos)"""
1947 return _controls_
.TextCtrl_SetInsertionPoint(*args
, **kwargs
)
1949 def SetInsertionPointEnd(*args
, **kwargs
):
1950 """SetInsertionPointEnd(self)"""
1951 return _controls_
.TextCtrl_SetInsertionPointEnd(*args
, **kwargs
)
1953 def GetInsertionPoint(*args
, **kwargs
):
1954 """GetInsertionPoint(self) -> long"""
1955 return _controls_
.TextCtrl_GetInsertionPoint(*args
, **kwargs
)
1957 def GetLastPosition(*args
, **kwargs
):
1958 """GetLastPosition(self) -> long"""
1959 return _controls_
.TextCtrl_GetLastPosition(*args
, **kwargs
)
1961 def SetSelection(*args
, **kwargs
):
1962 """SetSelection(self, long from, long to)"""
1963 return _controls_
.TextCtrl_SetSelection(*args
, **kwargs
)
1965 def SelectAll(*args
, **kwargs
):
1966 """SelectAll(self)"""
1967 return _controls_
.TextCtrl_SelectAll(*args
, **kwargs
)
1969 def SetEditable(*args
, **kwargs
):
1970 """SetEditable(self, bool editable)"""
1971 return _controls_
.TextCtrl_SetEditable(*args
, **kwargs
)
1973 def write(*args
, **kwargs
):
1974 """write(self, String text)"""
1975 return _controls_
.TextCtrl_write(*args
, **kwargs
)
1977 def GetString(*args
, **kwargs
):
1978 """GetString(self, long from, long to) -> String"""
1979 return _controls_
.TextCtrl_GetString(*args
, **kwargs
)
1981 def GetClassDefaultAttributes(*args
, **kwargs
):
1983 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1985 Get the default attributes for this class. This is useful if you want
1986 to use the same font or colour in your own control as in a standard
1987 control -- which is a much better idea than hard coding specific
1988 colours or fonts which might look completely out of place on the
1989 user's system, especially if it uses themes.
1991 The variant parameter is only relevant under Mac currently and is
1992 ignore under other platforms. Under Mac, it will change the size of
1993 the returned font. See `wx.Window.SetWindowVariant` for more about
1996 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
1998 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2000 class TextCtrlPtr(TextCtrl
):
2001 def __init__(self
, this
):
2003 if not hasattr(self
,"thisown"): self
.thisown
= 0
2004 self
.__class
__ = TextCtrl
2005 _controls_
.TextCtrl_swigregister(TextCtrlPtr
)
2007 def PreTextCtrl(*args
, **kwargs
):
2008 """PreTextCtrl() -> TextCtrl"""
2009 val
= _controls_
.new_PreTextCtrl(*args
, **kwargs
)
2013 def TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2015 TextCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2017 Get the default attributes for this class. This is useful if you want
2018 to use the same font or colour in your own control as in a standard
2019 control -- which is a much better idea than hard coding specific
2020 colours or fonts which might look completely out of place on the
2021 user's system, especially if it uses themes.
2023 The variant parameter is only relevant under Mac currently and is
2024 ignore under other platforms. Under Mac, it will change the size of
2025 the returned font. See `wx.Window.SetWindowVariant` for more about
2028 return _controls_
.TextCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2030 wxEVT_COMMAND_TEXT_UPDATED
= _controls_
.wxEVT_COMMAND_TEXT_UPDATED
2031 wxEVT_COMMAND_TEXT_ENTER
= _controls_
.wxEVT_COMMAND_TEXT_ENTER
2032 wxEVT_COMMAND_TEXT_URL
= _controls_
.wxEVT_COMMAND_TEXT_URL
2033 wxEVT_COMMAND_TEXT_MAXLEN
= _controls_
.wxEVT_COMMAND_TEXT_MAXLEN
2034 class TextUrlEvent(_core
.CommandEvent
):
2035 """Proxy of C++ TextUrlEvent class"""
2037 return "<%s.%s; proxy of C++ wxTextUrlEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2038 def __init__(self
, *args
, **kwargs
):
2039 """__init__(self, int winid, MouseEvent evtMouse, long start, long end) -> TextUrlEvent"""
2040 newobj
= _controls_
.new_TextUrlEvent(*args
, **kwargs
)
2041 self
.this
= newobj
.this
2044 def GetMouseEvent(*args
, **kwargs
):
2045 """GetMouseEvent(self) -> MouseEvent"""
2046 return _controls_
.TextUrlEvent_GetMouseEvent(*args
, **kwargs
)
2048 def GetURLStart(*args
, **kwargs
):
2049 """GetURLStart(self) -> long"""
2050 return _controls_
.TextUrlEvent_GetURLStart(*args
, **kwargs
)
2052 def GetURLEnd(*args
, **kwargs
):
2053 """GetURLEnd(self) -> long"""
2054 return _controls_
.TextUrlEvent_GetURLEnd(*args
, **kwargs
)
2057 class TextUrlEventPtr(TextUrlEvent
):
2058 def __init__(self
, this
):
2060 if not hasattr(self
,"thisown"): self
.thisown
= 0
2061 self
.__class
__ = TextUrlEvent
2062 _controls_
.TextUrlEvent_swigregister(TextUrlEventPtr
)
2064 EVT_TEXT
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_UPDATED
, 1)
2065 EVT_TEXT_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_ENTER
, 1)
2066 EVT_TEXT_URL
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_URL
, 1)
2067 EVT_TEXT_MAXLEN
= wx
.PyEventBinder( wxEVT_COMMAND_TEXT_MAXLEN
, 1)
2069 #---------------------------------------------------------------------------
2071 class ScrollBar(_core
.Control
):
2072 """Proxy of C++ ScrollBar class"""
2074 return "<%s.%s; proxy of C++ wxScrollBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2075 def __init__(self
, *args
, **kwargs
):
2077 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2078 Size size=DefaultSize, long style=SB_HORIZONTAL,
2079 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> ScrollBar
2081 newobj
= _controls_
.new_ScrollBar(*args
, **kwargs
)
2082 self
.this
= newobj
.this
2085 self
._setOORInfo
(self
)
2087 def Create(*args
, **kwargs
):
2089 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2090 Size size=DefaultSize, long style=SB_HORIZONTAL,
2091 Validator validator=DefaultValidator, String name=ScrollBarNameStr) -> bool
2093 Do the 2nd phase and create the GUI control.
2095 return _controls_
.ScrollBar_Create(*args
, **kwargs
)
2097 def GetThumbPosition(*args
, **kwargs
):
2098 """GetThumbPosition(self) -> int"""
2099 return _controls_
.ScrollBar_GetThumbPosition(*args
, **kwargs
)
2101 def GetThumbSize(*args
, **kwargs
):
2102 """GetThumbSize(self) -> int"""
2103 return _controls_
.ScrollBar_GetThumbSize(*args
, **kwargs
)
2105 GetThumbLength
= GetThumbSize
2106 def GetPageSize(*args
, **kwargs
):
2107 """GetPageSize(self) -> int"""
2108 return _controls_
.ScrollBar_GetPageSize(*args
, **kwargs
)
2110 def GetRange(*args
, **kwargs
):
2111 """GetRange(self) -> int"""
2112 return _controls_
.ScrollBar_GetRange(*args
, **kwargs
)
2114 def IsVertical(*args
, **kwargs
):
2115 """IsVertical(self) -> bool"""
2116 return _controls_
.ScrollBar_IsVertical(*args
, **kwargs
)
2118 def SetThumbPosition(*args
, **kwargs
):
2119 """SetThumbPosition(self, int viewStart)"""
2120 return _controls_
.ScrollBar_SetThumbPosition(*args
, **kwargs
)
2122 def SetScrollbar(*args
, **kwargs
):
2124 SetScrollbar(self, int position, int thumbSize, int range, int pageSize,
2127 Sets the scrollbar properties of a built-in scrollbar.
2129 return _controls_
.ScrollBar_SetScrollbar(*args
, **kwargs
)
2131 def GetClassDefaultAttributes(*args
, **kwargs
):
2133 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2135 Get the default attributes for this class. This is useful if you want
2136 to use the same font or colour in your own control as in a standard
2137 control -- which is a much better idea than hard coding specific
2138 colours or fonts which might look completely out of place on the
2139 user's system, especially if it uses themes.
2141 The variant parameter is only relevant under Mac currently and is
2142 ignore under other platforms. Under Mac, it will change the size of
2143 the returned font. See `wx.Window.SetWindowVariant` for more about
2146 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2148 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2150 class ScrollBarPtr(ScrollBar
):
2151 def __init__(self
, this
):
2153 if not hasattr(self
,"thisown"): self
.thisown
= 0
2154 self
.__class
__ = ScrollBar
2155 _controls_
.ScrollBar_swigregister(ScrollBarPtr
)
2156 ScrollBarNameStr
= cvar
.ScrollBarNameStr
2158 def PreScrollBar(*args
, **kwargs
):
2159 """PreScrollBar() -> ScrollBar"""
2160 val
= _controls_
.new_PreScrollBar(*args
, **kwargs
)
2164 def ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
):
2166 ScrollBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2168 Get the default attributes for this class. This is useful if you want
2169 to use the same font or colour in your own control as in a standard
2170 control -- which is a much better idea than hard coding specific
2171 colours or fonts which might look completely out of place on the
2172 user's system, especially if it uses themes.
2174 The variant parameter is only relevant under Mac currently and is
2175 ignore under other platforms. Under Mac, it will change the size of
2176 the returned font. See `wx.Window.SetWindowVariant` for more about
2179 return _controls_
.ScrollBar_GetClassDefaultAttributes(*args
, **kwargs
)
2181 #---------------------------------------------------------------------------
2183 SP_HORIZONTAL
= _controls_
.SP_HORIZONTAL
2184 SP_VERTICAL
= _controls_
.SP_VERTICAL
2185 SP_ARROW_KEYS
= _controls_
.SP_ARROW_KEYS
2186 SP_WRAP
= _controls_
.SP_WRAP
2187 class SpinButton(_core
.Control
):
2188 """Proxy of C++ SpinButton class"""
2190 return "<%s.%s; proxy of C++ wxSpinButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2191 def __init__(self
, *args
, **kwargs
):
2193 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2194 Size size=DefaultSize, long style=SP_HORIZONTAL,
2195 String name=SPIN_BUTTON_NAME) -> SpinButton
2197 newobj
= _controls_
.new_SpinButton(*args
, **kwargs
)
2198 self
.this
= newobj
.this
2201 self
._setOORInfo
(self
)
2203 def Create(*args
, **kwargs
):
2205 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2206 Size size=DefaultSize, long style=SP_HORIZONTAL,
2207 String name=SPIN_BUTTON_NAME) -> bool
2209 return _controls_
.SpinButton_Create(*args
, **kwargs
)
2211 def GetValue(*args
, **kwargs
):
2212 """GetValue(self) -> int"""
2213 return _controls_
.SpinButton_GetValue(*args
, **kwargs
)
2215 def GetMin(*args
, **kwargs
):
2216 """GetMin(self) -> int"""
2217 return _controls_
.SpinButton_GetMin(*args
, **kwargs
)
2219 def GetMax(*args
, **kwargs
):
2220 """GetMax(self) -> int"""
2221 return _controls_
.SpinButton_GetMax(*args
, **kwargs
)
2223 def SetValue(*args
, **kwargs
):
2224 """SetValue(self, int val)"""
2225 return _controls_
.SpinButton_SetValue(*args
, **kwargs
)
2227 def SetMin(*args
, **kwargs
):
2228 """SetMin(self, int minVal)"""
2229 return _controls_
.SpinButton_SetMin(*args
, **kwargs
)
2231 def SetMax(*args
, **kwargs
):
2232 """SetMax(self, int maxVal)"""
2233 return _controls_
.SpinButton_SetMax(*args
, **kwargs
)
2235 def SetRange(*args
, **kwargs
):
2236 """SetRange(self, int minVal, int maxVal)"""
2237 return _controls_
.SpinButton_SetRange(*args
, **kwargs
)
2239 def IsVertical(*args
, **kwargs
):
2240 """IsVertical(self) -> bool"""
2241 return _controls_
.SpinButton_IsVertical(*args
, **kwargs
)
2243 def GetClassDefaultAttributes(*args
, **kwargs
):
2245 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2247 Get the default attributes for this class. This is useful if you want
2248 to use the same font or colour in your own control as in a standard
2249 control -- which is a much better idea than hard coding specific
2250 colours or fonts which might look completely out of place on the
2251 user's system, especially if it uses themes.
2253 The variant parameter is only relevant under Mac currently and is
2254 ignore under other platforms. Under Mac, it will change the size of
2255 the returned font. See `wx.Window.SetWindowVariant` for more about
2258 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2260 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2262 class SpinButtonPtr(SpinButton
):
2263 def __init__(self
, this
):
2265 if not hasattr(self
,"thisown"): self
.thisown
= 0
2266 self
.__class
__ = SpinButton
2267 _controls_
.SpinButton_swigregister(SpinButtonPtr
)
2268 SPIN_BUTTON_NAME
= cvar
.SPIN_BUTTON_NAME
2269 SpinCtrlNameStr
= cvar
.SpinCtrlNameStr
2271 def PreSpinButton(*args
, **kwargs
):
2272 """PreSpinButton() -> SpinButton"""
2273 val
= _controls_
.new_PreSpinButton(*args
, **kwargs
)
2277 def SpinButton_GetClassDefaultAttributes(*args
, **kwargs
):
2279 SpinButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2281 Get the default attributes for this class. This is useful if you want
2282 to use the same font or colour in your own control as in a standard
2283 control -- which is a much better idea than hard coding specific
2284 colours or fonts which might look completely out of place on the
2285 user's system, especially if it uses themes.
2287 The variant parameter is only relevant under Mac currently and is
2288 ignore under other platforms. Under Mac, it will change the size of
2289 the returned font. See `wx.Window.SetWindowVariant` for more about
2292 return _controls_
.SpinButton_GetClassDefaultAttributes(*args
, **kwargs
)
2294 class SpinCtrl(_core
.Control
):
2295 """Proxy of C++ SpinCtrl class"""
2297 return "<%s.%s; proxy of C++ wxSpinCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2298 def __init__(self
, *args
, **kwargs
):
2300 __init__(self, Window parent, int id=-1, String value=EmptyString,
2301 Point pos=DefaultPosition, Size size=DefaultSize,
2302 long style=SP_ARROW_KEYS, int min=0, int max=100,
2303 int initial=0, String name=SpinCtrlNameStr) -> SpinCtrl
2305 newobj
= _controls_
.new_SpinCtrl(*args
, **kwargs
)
2306 self
.this
= newobj
.this
2309 self
._setOORInfo
(self
)
2311 def Create(*args
, **kwargs
):
2313 Create(self, Window parent, int id=-1, String value=EmptyString,
2314 Point pos=DefaultPosition, Size size=DefaultSize,
2315 long style=SP_ARROW_KEYS, int min=0, int max=100,
2316 int initial=0, String name=SpinCtrlNameStr) -> bool
2318 return _controls_
.SpinCtrl_Create(*args
, **kwargs
)
2320 def GetValue(*args
, **kwargs
):
2321 """GetValue(self) -> int"""
2322 return _controls_
.SpinCtrl_GetValue(*args
, **kwargs
)
2324 def SetValue(*args
, **kwargs
):
2325 """SetValue(self, int value)"""
2326 return _controls_
.SpinCtrl_SetValue(*args
, **kwargs
)
2328 def SetValueString(*args
, **kwargs
):
2329 """SetValueString(self, String text)"""
2330 return _controls_
.SpinCtrl_SetValueString(*args
, **kwargs
)
2332 def SetRange(*args
, **kwargs
):
2333 """SetRange(self, int minVal, int maxVal)"""
2334 return _controls_
.SpinCtrl_SetRange(*args
, **kwargs
)
2336 def GetMin(*args
, **kwargs
):
2337 """GetMin(self) -> int"""
2338 return _controls_
.SpinCtrl_GetMin(*args
, **kwargs
)
2340 def GetMax(*args
, **kwargs
):
2341 """GetMax(self) -> int"""
2342 return _controls_
.SpinCtrl_GetMax(*args
, **kwargs
)
2344 def SetSelection(*args
, **kwargs
):
2345 """SetSelection(self, long from, long to)"""
2346 return _controls_
.SpinCtrl_SetSelection(*args
, **kwargs
)
2348 def GetClassDefaultAttributes(*args
, **kwargs
):
2350 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2352 Get the default attributes for this class. This is useful if you want
2353 to use the same font or colour in your own control as in a standard
2354 control -- which is a much better idea than hard coding specific
2355 colours or fonts which might look completely out of place on the
2356 user's system, especially if it uses themes.
2358 The variant parameter is only relevant under Mac currently and is
2359 ignore under other platforms. Under Mac, it will change the size of
2360 the returned font. See `wx.Window.SetWindowVariant` for more about
2363 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2365 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2367 class SpinCtrlPtr(SpinCtrl
):
2368 def __init__(self
, this
):
2370 if not hasattr(self
,"thisown"): self
.thisown
= 0
2371 self
.__class
__ = SpinCtrl
2372 _controls_
.SpinCtrl_swigregister(SpinCtrlPtr
)
2374 def PreSpinCtrl(*args
, **kwargs
):
2375 """PreSpinCtrl() -> SpinCtrl"""
2376 val
= _controls_
.new_PreSpinCtrl(*args
, **kwargs
)
2380 def SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
2382 SpinCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2384 Get the default attributes for this class. This is useful if you want
2385 to use the same font or colour in your own control as in a standard
2386 control -- which is a much better idea than hard coding specific
2387 colours or fonts which might look completely out of place on the
2388 user's system, especially if it uses themes.
2390 The variant parameter is only relevant under Mac currently and is
2391 ignore under other platforms. Under Mac, it will change the size of
2392 the returned font. See `wx.Window.SetWindowVariant` for more about
2395 return _controls_
.SpinCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
2397 class SpinEvent(_core
.NotifyEvent
):
2398 """Proxy of C++ SpinEvent class"""
2400 return "<%s.%s; proxy of C++ wxSpinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2401 def __init__(self
, *args
, **kwargs
):
2402 """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> SpinEvent"""
2403 newobj
= _controls_
.new_SpinEvent(*args
, **kwargs
)
2404 self
.this
= newobj
.this
2407 def GetPosition(*args
, **kwargs
):
2408 """GetPosition(self) -> int"""
2409 return _controls_
.SpinEvent_GetPosition(*args
, **kwargs
)
2411 def SetPosition(*args
, **kwargs
):
2412 """SetPosition(self, int pos)"""
2413 return _controls_
.SpinEvent_SetPosition(*args
, **kwargs
)
2416 class SpinEventPtr(SpinEvent
):
2417 def __init__(self
, this
):
2419 if not hasattr(self
,"thisown"): self
.thisown
= 0
2420 self
.__class
__ = SpinEvent
2421 _controls_
.SpinEvent_swigregister(SpinEventPtr
)
2423 wxEVT_COMMAND_SPINCTRL_UPDATED
= _controls_
.wxEVT_COMMAND_SPINCTRL_UPDATED
2424 EVT_SPIN_UP
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEUP
, 1)
2425 EVT_SPIN_DOWN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_LINEDOWN
, 1)
2426 EVT_SPIN
= wx
.PyEventBinder( wx
.wxEVT_SCROLL_THUMBTRACK
, 1)
2427 EVT_SPINCTRL
= wx
.PyEventBinder( wxEVT_COMMAND_SPINCTRL_UPDATED
, 1)
2429 #---------------------------------------------------------------------------
2431 class RadioBox(_core
.Control
):
2432 """Proxy of C++ RadioBox class"""
2434 return "<%s.%s; proxy of C++ wxRadioBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2435 def __init__(self
, *args
, **kwargs
):
2437 __init__(self, Window parent, int id=-1, String label=EmptyString,
2438 Point pos=DefaultPosition, Size size=DefaultSize,
2439 wxArrayString choices=wxPyEmptyStringArray,
2440 int majorDimension=0, long style=RA_HORIZONTAL,
2441 Validator validator=DefaultValidator,
2442 String name=RadioBoxNameStr) -> RadioBox
2444 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2445 newobj
= _controls_
.new_RadioBox(*args
, **kwargs
)
2446 self
.this
= newobj
.this
2449 self
._setOORInfo
(self
)
2451 def Create(*args
, **kwargs
):
2453 Create(self, Window parent, int id=-1, String label=EmptyString,
2454 Point pos=DefaultPosition, Size size=DefaultSize,
2455 wxArrayString choices=wxPyEmptyStringArray,
2456 int majorDimension=0, long style=RA_HORIZONTAL,
2457 Validator validator=DefaultValidator,
2458 String name=RadioBoxNameStr) -> bool
2460 return _controls_
.RadioBox_Create(*args
, **kwargs
)
2462 def SetSelection(*args
, **kwargs
):
2463 """SetSelection(self, int n)"""
2464 return _controls_
.RadioBox_SetSelection(*args
, **kwargs
)
2466 def GetSelection(*args
, **kwargs
):
2467 """GetSelection(self) -> int"""
2468 return _controls_
.RadioBox_GetSelection(*args
, **kwargs
)
2470 def GetStringSelection(*args
, **kwargs
):
2471 """GetStringSelection(self) -> String"""
2472 return _controls_
.RadioBox_GetStringSelection(*args
, **kwargs
)
2474 def SetStringSelection(*args
, **kwargs
):
2475 """SetStringSelection(self, String s) -> bool"""
2476 return _controls_
.RadioBox_SetStringSelection(*args
, **kwargs
)
2478 def GetCount(*args
, **kwargs
):
2479 """GetCount(self) -> int"""
2480 return _controls_
.RadioBox_GetCount(*args
, **kwargs
)
2482 def FindString(*args
, **kwargs
):
2483 """FindString(self, String s) -> int"""
2484 return _controls_
.RadioBox_FindString(*args
, **kwargs
)
2486 def GetString(*args
, **kwargs
):
2487 """GetString(self, int n) -> String"""
2488 return _controls_
.RadioBox_GetString(*args
, **kwargs
)
2490 def SetString(*args
, **kwargs
):
2491 """SetString(self, int n, String label)"""
2492 return _controls_
.RadioBox_SetString(*args
, **kwargs
)
2494 GetItemLabel
= GetString
2495 SetItemLabel
= SetString
2496 def EnableItem(*args
, **kwargs
):
2497 """EnableItem(self, int n, bool enable=True)"""
2498 return _controls_
.RadioBox_EnableItem(*args
, **kwargs
)
2500 def ShowItem(*args
, **kwargs
):
2501 """ShowItem(self, int n, bool show=True)"""
2502 return _controls_
.RadioBox_ShowItem(*args
, **kwargs
)
2504 def GetColumnCount(*args
, **kwargs
):
2505 """GetColumnCount(self) -> int"""
2506 return _controls_
.RadioBox_GetColumnCount(*args
, **kwargs
)
2508 def GetRowCount(*args
, **kwargs
):
2509 """GetRowCount(self) -> int"""
2510 return _controls_
.RadioBox_GetRowCount(*args
, **kwargs
)
2512 def GetNextItem(*args
, **kwargs
):
2513 """GetNextItem(self, int item, int dir, long style) -> int"""
2514 return _controls_
.RadioBox_GetNextItem(*args
, **kwargs
)
2516 def GetClassDefaultAttributes(*args
, **kwargs
):
2518 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2520 Get the default attributes for this class. This is useful if you want
2521 to use the same font or colour in your own control as in a standard
2522 control -- which is a much better idea than hard coding specific
2523 colours or fonts which might look completely out of place on the
2524 user's system, especially if it uses themes.
2526 The variant parameter is only relevant under Mac currently and is
2527 ignore under other platforms. Under Mac, it will change the size of
2528 the returned font. See `wx.Window.SetWindowVariant` for more about
2531 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2533 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2535 class RadioBoxPtr(RadioBox
):
2536 def __init__(self
, this
):
2538 if not hasattr(self
,"thisown"): self
.thisown
= 0
2539 self
.__class
__ = RadioBox
2540 _controls_
.RadioBox_swigregister(RadioBoxPtr
)
2541 RadioBoxNameStr
= cvar
.RadioBoxNameStr
2542 RadioButtonNameStr
= cvar
.RadioButtonNameStr
2544 def PreRadioBox(*args
, **kwargs
):
2545 """PreRadioBox() -> RadioBox"""
2546 val
= _controls_
.new_PreRadioBox(*args
, **kwargs
)
2550 def RadioBox_GetClassDefaultAttributes(*args
, **kwargs
):
2552 RadioBox_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2554 Get the default attributes for this class. This is useful if you want
2555 to use the same font or colour in your own control as in a standard
2556 control -- which is a much better idea than hard coding specific
2557 colours or fonts which might look completely out of place on the
2558 user's system, especially if it uses themes.
2560 The variant parameter is only relevant under Mac currently and is
2561 ignore under other platforms. Under Mac, it will change the size of
2562 the returned font. See `wx.Window.SetWindowVariant` for more about
2565 return _controls_
.RadioBox_GetClassDefaultAttributes(*args
, **kwargs
)
2567 #---------------------------------------------------------------------------
2569 class RadioButton(_core
.Control
):
2570 """Proxy of C++ RadioButton class"""
2572 return "<%s.%s; proxy of C++ wxRadioButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2573 def __init__(self
, *args
, **kwargs
):
2575 __init__(self, Window parent, int id=-1, String label=EmptyString,
2576 Point pos=DefaultPosition, Size size=DefaultSize,
2577 long style=0, Validator validator=DefaultValidator,
2578 String name=RadioButtonNameStr) -> RadioButton
2580 newobj
= _controls_
.new_RadioButton(*args
, **kwargs
)
2581 self
.this
= newobj
.this
2584 self
._setOORInfo
(self
)
2586 def Create(*args
, **kwargs
):
2588 Create(self, Window parent, int id=-1, String label=EmptyString,
2589 Point pos=DefaultPosition, Size size=DefaultSize,
2590 long style=0, Validator validator=DefaultValidator,
2591 String name=RadioButtonNameStr) -> bool
2593 return _controls_
.RadioButton_Create(*args
, **kwargs
)
2595 def GetValue(*args
, **kwargs
):
2596 """GetValue(self) -> bool"""
2597 return _controls_
.RadioButton_GetValue(*args
, **kwargs
)
2599 def SetValue(*args
, **kwargs
):
2600 """SetValue(self, bool value)"""
2601 return _controls_
.RadioButton_SetValue(*args
, **kwargs
)
2603 def GetClassDefaultAttributes(*args
, **kwargs
):
2605 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2607 Get the default attributes for this class. This is useful if you want
2608 to use the same font or colour in your own control as in a standard
2609 control -- which is a much better idea than hard coding specific
2610 colours or fonts which might look completely out of place on the
2611 user's system, especially if it uses themes.
2613 The variant parameter is only relevant under Mac currently and is
2614 ignore under other platforms. Under Mac, it will change the size of
2615 the returned font. See `wx.Window.SetWindowVariant` for more about
2618 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2620 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2622 class RadioButtonPtr(RadioButton
):
2623 def __init__(self
, this
):
2625 if not hasattr(self
,"thisown"): self
.thisown
= 0
2626 self
.__class
__ = RadioButton
2627 _controls_
.RadioButton_swigregister(RadioButtonPtr
)
2629 def PreRadioButton(*args
, **kwargs
):
2630 """PreRadioButton() -> RadioButton"""
2631 val
= _controls_
.new_PreRadioButton(*args
, **kwargs
)
2635 def RadioButton_GetClassDefaultAttributes(*args
, **kwargs
):
2637 RadioButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2639 Get the default attributes for this class. This is useful if you want
2640 to use the same font or colour in your own control as in a standard
2641 control -- which is a much better idea than hard coding specific
2642 colours or fonts which might look completely out of place on the
2643 user's system, especially if it uses themes.
2645 The variant parameter is only relevant under Mac currently and is
2646 ignore under other platforms. Under Mac, it will change the size of
2647 the returned font. See `wx.Window.SetWindowVariant` for more about
2650 return _controls_
.RadioButton_GetClassDefaultAttributes(*args
, **kwargs
)
2652 #---------------------------------------------------------------------------
2654 class Slider(_core
.Control
):
2655 """Proxy of C++ Slider class"""
2657 return "<%s.%s; proxy of C++ wxSlider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2658 def __init__(self
, *args
, **kwargs
):
2660 __init__(self, Window parent, int id=-1, int value=0, int minValue=0,
2661 int maxValue=100, Point pos=DefaultPosition,
2662 Size size=DefaultSize, long style=SL_HORIZONTAL,
2663 Validator validator=DefaultValidator,
2664 String name=SliderNameStr) -> Slider
2666 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
2667 newobj
= _controls_
.new_Slider(*args
, **kwargs
)
2668 self
.this
= newobj
.this
2671 self
._setOORInfo
(self
)
2673 def Create(*args
, **kwargs
):
2675 Create(self, Window parent, int id=-1, int value=0, int minValue=0,
2676 int maxValue=100, Point pos=DefaultPosition,
2677 Size size=DefaultSize, long style=SL_HORIZONTAL,
2678 Validator validator=DefaultValidator,
2679 String name=SliderNameStr) -> bool
2681 return _controls_
.Slider_Create(*args
, **kwargs
)
2683 def GetValue(*args
, **kwargs
):
2684 """GetValue(self) -> int"""
2685 return _controls_
.Slider_GetValue(*args
, **kwargs
)
2687 def SetValue(*args
, **kwargs
):
2688 """SetValue(self, int value)"""
2689 return _controls_
.Slider_SetValue(*args
, **kwargs
)
2691 def SetRange(*args
, **kwargs
):
2692 """SetRange(self, int minValue, int maxValue)"""
2693 return _controls_
.Slider_SetRange(*args
, **kwargs
)
2695 def GetMin(*args
, **kwargs
):
2696 """GetMin(self) -> int"""
2697 return _controls_
.Slider_GetMin(*args
, **kwargs
)
2699 def GetMax(*args
, **kwargs
):
2700 """GetMax(self) -> int"""
2701 return _controls_
.Slider_GetMax(*args
, **kwargs
)
2703 def SetMin(*args
, **kwargs
):
2704 """SetMin(self, int minValue)"""
2705 return _controls_
.Slider_SetMin(*args
, **kwargs
)
2707 def SetMax(*args
, **kwargs
):
2708 """SetMax(self, int maxValue)"""
2709 return _controls_
.Slider_SetMax(*args
, **kwargs
)
2711 def SetLineSize(*args
, **kwargs
):
2712 """SetLineSize(self, int lineSize)"""
2713 return _controls_
.Slider_SetLineSize(*args
, **kwargs
)
2715 def SetPageSize(*args
, **kwargs
):
2716 """SetPageSize(self, int pageSize)"""
2717 return _controls_
.Slider_SetPageSize(*args
, **kwargs
)
2719 def GetLineSize(*args
, **kwargs
):
2720 """GetLineSize(self) -> int"""
2721 return _controls_
.Slider_GetLineSize(*args
, **kwargs
)
2723 def GetPageSize(*args
, **kwargs
):
2724 """GetPageSize(self) -> int"""
2725 return _controls_
.Slider_GetPageSize(*args
, **kwargs
)
2727 def SetThumbLength(*args
, **kwargs
):
2728 """SetThumbLength(self, int lenPixels)"""
2729 return _controls_
.Slider_SetThumbLength(*args
, **kwargs
)
2731 def GetThumbLength(*args
, **kwargs
):
2732 """GetThumbLength(self) -> int"""
2733 return _controls_
.Slider_GetThumbLength(*args
, **kwargs
)
2735 def SetTickFreq(*args
, **kwargs
):
2736 """SetTickFreq(self, int n, int pos=1)"""
2737 return _controls_
.Slider_SetTickFreq(*args
, **kwargs
)
2739 def GetTickFreq(*args
, **kwargs
):
2740 """GetTickFreq(self) -> int"""
2741 return _controls_
.Slider_GetTickFreq(*args
, **kwargs
)
2743 def ClearTicks(*args
, **kwargs
):
2744 """ClearTicks(self)"""
2745 return _controls_
.Slider_ClearTicks(*args
, **kwargs
)
2747 def SetTick(*args
, **kwargs
):
2748 """SetTick(self, int tickPos)"""
2749 return _controls_
.Slider_SetTick(*args
, **kwargs
)
2751 def ClearSel(*args
, **kwargs
):
2752 """ClearSel(self)"""
2753 return _controls_
.Slider_ClearSel(*args
, **kwargs
)
2755 def GetSelEnd(*args
, **kwargs
):
2756 """GetSelEnd(self) -> int"""
2757 return _controls_
.Slider_GetSelEnd(*args
, **kwargs
)
2759 def GetSelStart(*args
, **kwargs
):
2760 """GetSelStart(self) -> int"""
2761 return _controls_
.Slider_GetSelStart(*args
, **kwargs
)
2763 def SetSelection(*args
, **kwargs
):
2764 """SetSelection(self, int min, int max)"""
2765 return _controls_
.Slider_SetSelection(*args
, **kwargs
)
2767 def GetClassDefaultAttributes(*args
, **kwargs
):
2769 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2771 Get the default attributes for this class. This is useful if you want
2772 to use the same font or colour in your own control as in a standard
2773 control -- which is a much better idea than hard coding specific
2774 colours or fonts which might look completely out of place on the
2775 user's system, especially if it uses themes.
2777 The variant parameter is only relevant under Mac currently and is
2778 ignore under other platforms. Under Mac, it will change the size of
2779 the returned font. See `wx.Window.SetWindowVariant` for more about
2782 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2784 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2786 class SliderPtr(Slider
):
2787 def __init__(self
, this
):
2789 if not hasattr(self
,"thisown"): self
.thisown
= 0
2790 self
.__class
__ = Slider
2791 _controls_
.Slider_swigregister(SliderPtr
)
2792 SliderNameStr
= cvar
.SliderNameStr
2794 def PreSlider(*args
, **kwargs
):
2795 """PreSlider() -> Slider"""
2796 val
= _controls_
.new_PreSlider(*args
, **kwargs
)
2800 def Slider_GetClassDefaultAttributes(*args
, **kwargs
):
2802 Slider_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2804 Get the default attributes for this class. This is useful if you want
2805 to use the same font or colour in your own control as in a standard
2806 control -- which is a much better idea than hard coding specific
2807 colours or fonts which might look completely out of place on the
2808 user's system, especially if it uses themes.
2810 The variant parameter is only relevant under Mac currently and is
2811 ignore under other platforms. Under Mac, it will change the size of
2812 the returned font. See `wx.Window.SetWindowVariant` for more about
2815 return _controls_
.Slider_GetClassDefaultAttributes(*args
, **kwargs
)
2817 #---------------------------------------------------------------------------
2819 wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
= _controls_
.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
2820 EVT_TOGGLEBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, 1)
2822 class ToggleButton(_core
.Control
):
2823 """Proxy of C++ ToggleButton class"""
2825 return "<%s.%s; proxy of C++ wxToggleButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2826 def __init__(self
, *args
, **kwargs
):
2828 __init__(self, Window parent, int id=-1, String label=EmptyString,
2829 Point pos=DefaultPosition, Size size=DefaultSize,
2830 long style=0, Validator validator=DefaultValidator,
2831 String name=ToggleButtonNameStr) -> ToggleButton
2833 newobj
= _controls_
.new_ToggleButton(*args
, **kwargs
)
2834 self
.this
= newobj
.this
2837 self
._setOORInfo
(self
)
2839 def Create(*args
, **kwargs
):
2841 Create(self, Window parent, int id=-1, String label=EmptyString,
2842 Point pos=DefaultPosition, Size size=DefaultSize,
2843 long style=0, Validator validator=DefaultValidator,
2844 String name=ToggleButtonNameStr) -> bool
2846 return _controls_
.ToggleButton_Create(*args
, **kwargs
)
2848 def SetValue(*args
, **kwargs
):
2849 """SetValue(self, bool value)"""
2850 return _controls_
.ToggleButton_SetValue(*args
, **kwargs
)
2852 def GetValue(*args
, **kwargs
):
2853 """GetValue(self) -> bool"""
2854 return _controls_
.ToggleButton_GetValue(*args
, **kwargs
)
2856 def SetLabel(*args
, **kwargs
):
2858 SetLabel(self, String label)
2860 Sets the item's text.
2862 return _controls_
.ToggleButton_SetLabel(*args
, **kwargs
)
2864 def GetClassDefaultAttributes(*args
, **kwargs
):
2866 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2868 Get the default attributes for this class. This is useful if you want
2869 to use the same font or colour in your own control as in a standard
2870 control -- which is a much better idea than hard coding specific
2871 colours or fonts which might look completely out of place on the
2872 user's system, especially if it uses themes.
2874 The variant parameter is only relevant under Mac currently and is
2875 ignore under other platforms. Under Mac, it will change the size of
2876 the returned font. See `wx.Window.SetWindowVariant` for more about
2879 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2881 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
2883 class ToggleButtonPtr(ToggleButton
):
2884 def __init__(self
, this
):
2886 if not hasattr(self
,"thisown"): self
.thisown
= 0
2887 self
.__class
__ = ToggleButton
2888 _controls_
.ToggleButton_swigregister(ToggleButtonPtr
)
2889 ToggleButtonNameStr
= cvar
.ToggleButtonNameStr
2891 def PreToggleButton(*args
, **kwargs
):
2892 """PreToggleButton() -> ToggleButton"""
2893 val
= _controls_
.new_PreToggleButton(*args
, **kwargs
)
2897 def ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
):
2899 ToggleButton_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
2901 Get the default attributes for this class. This is useful if you want
2902 to use the same font or colour in your own control as in a standard
2903 control -- which is a much better idea than hard coding specific
2904 colours or fonts which might look completely out of place on the
2905 user's system, especially if it uses themes.
2907 The variant parameter is only relevant under Mac currently and is
2908 ignore under other platforms. Under Mac, it will change the size of
2909 the returned font. See `wx.Window.SetWindowVariant` for more about
2912 return _controls_
.ToggleButton_GetClassDefaultAttributes(*args
, **kwargs
)
2914 #---------------------------------------------------------------------------
2916 class BookCtrlBase(_core
.Control
):
2917 """Proxy of C++ BookCtrlBase class"""
2918 def __init__(self
): raise RuntimeError, "No constructor defined"
2920 return "<%s.%s; proxy of C++ wxBookCtrlBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2921 def GetPageCount(*args
, **kwargs
):
2922 """GetPageCount(self) -> size_t"""
2923 return _controls_
.BookCtrlBase_GetPageCount(*args
, **kwargs
)
2925 def GetPage(*args
, **kwargs
):
2926 """GetPage(self, size_t n) -> Window"""
2927 return _controls_
.BookCtrlBase_GetPage(*args
, **kwargs
)
2929 def GetCurrentPage(*args
, **kwargs
):
2930 """GetCurrentPage(self) -> Window"""
2931 return _controls_
.BookCtrlBase_GetCurrentPage(*args
, **kwargs
)
2933 def GetSelection(*args
, **kwargs
):
2934 """GetSelection(self) -> int"""
2935 return _controls_
.BookCtrlBase_GetSelection(*args
, **kwargs
)
2937 def SetPageText(*args
, **kwargs
):
2938 """SetPageText(self, size_t n, String strText) -> bool"""
2939 return _controls_
.BookCtrlBase_SetPageText(*args
, **kwargs
)
2941 def GetPageText(*args
, **kwargs
):
2942 """GetPageText(self, size_t n) -> String"""
2943 return _controls_
.BookCtrlBase_GetPageText(*args
, **kwargs
)
2945 def SetImageList(*args
, **kwargs
):
2946 """SetImageList(self, ImageList imageList)"""
2947 return _controls_
.BookCtrlBase_SetImageList(*args
, **kwargs
)
2949 def AssignImageList(*args
, **kwargs
):
2950 """AssignImageList(self, ImageList imageList)"""
2951 return _controls_
.BookCtrlBase_AssignImageList(*args
, **kwargs
)
2953 def GetImageList(*args
, **kwargs
):
2954 """GetImageList(self) -> ImageList"""
2955 return _controls_
.BookCtrlBase_GetImageList(*args
, **kwargs
)
2957 def GetPageImage(*args
, **kwargs
):
2958 """GetPageImage(self, size_t n) -> int"""
2959 return _controls_
.BookCtrlBase_GetPageImage(*args
, **kwargs
)
2961 def SetPageImage(*args
, **kwargs
):
2962 """SetPageImage(self, size_t n, int imageId) -> bool"""
2963 return _controls_
.BookCtrlBase_SetPageImage(*args
, **kwargs
)
2965 def SetPageSize(*args
, **kwargs
):
2966 """SetPageSize(self, Size size)"""
2967 return _controls_
.BookCtrlBase_SetPageSize(*args
, **kwargs
)
2969 def CalcSizeFromPage(*args
, **kwargs
):
2970 """CalcSizeFromPage(self, Size sizePage) -> Size"""
2971 return _controls_
.BookCtrlBase_CalcSizeFromPage(*args
, **kwargs
)
2973 def DeletePage(*args
, **kwargs
):
2974 """DeletePage(self, size_t n) -> bool"""
2975 return _controls_
.BookCtrlBase_DeletePage(*args
, **kwargs
)
2977 def RemovePage(*args
, **kwargs
):
2978 """RemovePage(self, size_t n) -> bool"""
2979 return _controls_
.BookCtrlBase_RemovePage(*args
, **kwargs
)
2981 def DeleteAllPages(*args
, **kwargs
):
2982 """DeleteAllPages(self) -> bool"""
2983 return _controls_
.BookCtrlBase_DeleteAllPages(*args
, **kwargs
)
2985 def AddPage(*args
, **kwargs
):
2986 """AddPage(self, Window page, String text, bool select=False, int imageId=-1) -> bool"""
2987 return _controls_
.BookCtrlBase_AddPage(*args
, **kwargs
)
2989 def InsertPage(*args
, **kwargs
):
2991 InsertPage(self, size_t n, Window page, String text, bool select=False,
2992 int imageId=-1) -> bool
2994 return _controls_
.BookCtrlBase_InsertPage(*args
, **kwargs
)
2996 def SetSelection(*args
, **kwargs
):
2997 """SetSelection(self, size_t n) -> int"""
2998 return _controls_
.BookCtrlBase_SetSelection(*args
, **kwargs
)
3000 def AdvanceSelection(*args
, **kwargs
):
3001 """AdvanceSelection(self, bool forward=True)"""
3002 return _controls_
.BookCtrlBase_AdvanceSelection(*args
, **kwargs
)
3004 def GetClassDefaultAttributes(*args
, **kwargs
):
3006 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3008 Get the default attributes for this class. This is useful if you want
3009 to use the same font or colour in your own control as in a standard
3010 control -- which is a much better idea than hard coding specific
3011 colours or fonts which might look completely out of place on the
3012 user's system, especially if it uses themes.
3014 The variant parameter is only relevant under Mac currently and is
3015 ignore under other platforms. Under Mac, it will change the size of
3016 the returned font. See `wx.Window.SetWindowVariant` for more about
3019 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3021 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3023 class BookCtrlBasePtr(BookCtrlBase
):
3024 def __init__(self
, this
):
3026 if not hasattr(self
,"thisown"): self
.thisown
= 0
3027 self
.__class
__ = BookCtrlBase
3028 _controls_
.BookCtrlBase_swigregister(BookCtrlBasePtr
)
3029 NOTEBOOK_NAME
= cvar
.NOTEBOOK_NAME
3031 def BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
):
3033 BookCtrlBase_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3035 Get the default attributes for this class. This is useful if you want
3036 to use the same font or colour in your own control as in a standard
3037 control -- which is a much better idea than hard coding specific
3038 colours or fonts which might look completely out of place on the
3039 user's system, especially if it uses themes.
3041 The variant parameter is only relevant under Mac currently and is
3042 ignore under other platforms. Under Mac, it will change the size of
3043 the returned font. See `wx.Window.SetWindowVariant` for more about
3046 return _controls_
.BookCtrlBase_GetClassDefaultAttributes(*args
, **kwargs
)
3048 class BookCtrlBaseEvent(_core
.NotifyEvent
):
3049 """Proxy of C++ BookCtrlBaseEvent class"""
3051 return "<%s.%s; proxy of C++ wxBookCtrlBaseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3052 def __init__(self
, *args
, **kwargs
):
3054 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3055 int nOldSel=-1) -> BookCtrlBaseEvent
3057 newobj
= _controls_
.new_BookCtrlBaseEvent(*args
, **kwargs
)
3058 self
.this
= newobj
.this
3061 def GetSelection(*args
, **kwargs
):
3062 """GetSelection(self) -> int"""
3063 return _controls_
.BookCtrlBaseEvent_GetSelection(*args
, **kwargs
)
3065 def SetSelection(*args
, **kwargs
):
3066 """SetSelection(self, int nSel)"""
3067 return _controls_
.BookCtrlBaseEvent_SetSelection(*args
, **kwargs
)
3069 def GetOldSelection(*args
, **kwargs
):
3070 """GetOldSelection(self) -> int"""
3071 return _controls_
.BookCtrlBaseEvent_GetOldSelection(*args
, **kwargs
)
3073 def SetOldSelection(*args
, **kwargs
):
3074 """SetOldSelection(self, int nOldSel)"""
3075 return _controls_
.BookCtrlBaseEvent_SetOldSelection(*args
, **kwargs
)
3078 class BookCtrlBaseEventPtr(BookCtrlBaseEvent
):
3079 def __init__(self
, this
):
3081 if not hasattr(self
,"thisown"): self
.thisown
= 0
3082 self
.__class
__ = BookCtrlBaseEvent
3083 _controls_
.BookCtrlBaseEvent_swigregister(BookCtrlBaseEventPtr
)
3085 #---------------------------------------------------------------------------
3087 NB_FIXEDWIDTH
= _controls_
.NB_FIXEDWIDTH
3088 NB_TOP
= _controls_
.NB_TOP
3089 NB_LEFT
= _controls_
.NB_LEFT
3090 NB_RIGHT
= _controls_
.NB_RIGHT
3091 NB_BOTTOM
= _controls_
.NB_BOTTOM
3092 NB_MULTILINE
= _controls_
.NB_MULTILINE
3093 NB_HITTEST_NOWHERE
= _controls_
.NB_HITTEST_NOWHERE
3094 NB_HITTEST_ONICON
= _controls_
.NB_HITTEST_ONICON
3095 NB_HITTEST_ONLABEL
= _controls_
.NB_HITTEST_ONLABEL
3096 NB_HITTEST_ONITEM
= _controls_
.NB_HITTEST_ONITEM
3097 class Notebook(BookCtrlBase
):
3098 """Proxy of C++ Notebook class"""
3100 return "<%s.%s; proxy of C++ wxNotebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3101 def __init__(self
, *args
, **kwargs
):
3103 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3104 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> Notebook
3106 newobj
= _controls_
.new_Notebook(*args
, **kwargs
)
3107 self
.this
= newobj
.this
3110 self
._setOORInfo
(self
)
3112 def Create(*args
, **kwargs
):
3114 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3115 Size size=DefaultSize, long style=0, String name=NOTEBOOK_NAME) -> bool
3117 return _controls_
.Notebook_Create(*args
, **kwargs
)
3119 def GetRowCount(*args
, **kwargs
):
3120 """GetRowCount(self) -> int"""
3121 return _controls_
.Notebook_GetRowCount(*args
, **kwargs
)
3123 def SetPadding(*args
, **kwargs
):
3124 """SetPadding(self, Size padding)"""
3125 return _controls_
.Notebook_SetPadding(*args
, **kwargs
)
3127 def SetTabSize(*args
, **kwargs
):
3128 """SetTabSize(self, Size sz)"""
3129 return _controls_
.Notebook_SetTabSize(*args
, **kwargs
)
3131 def HitTest(*args
, **kwargs
):
3133 HitTest(Point pt) -> (tab, where)
3135 Returns the tab which is hit, and flags indicating where using
3136 wx.NB_HITTEST flags.
3138 return _controls_
.Notebook_HitTest(*args
, **kwargs
)
3140 def CalcSizeFromPage(*args
, **kwargs
):
3141 """CalcSizeFromPage(self, Size sizePage) -> Size"""
3142 return _controls_
.Notebook_CalcSizeFromPage(*args
, **kwargs
)
3144 def GetClassDefaultAttributes(*args
, **kwargs
):
3146 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3148 Get the default attributes for this class. This is useful if you want
3149 to use the same font or colour in your own control as in a standard
3150 control -- which is a much better idea than hard coding specific
3151 colours or fonts which might look completely out of place on the
3152 user's system, especially if it uses themes.
3154 The variant parameter is only relevant under Mac currently and is
3155 ignore under other platforms. Under Mac, it will change the size of
3156 the returned font. See `wx.Window.SetWindowVariant` for more about
3159 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3161 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
3163 class NotebookPtr(Notebook
):
3164 def __init__(self
, this
):
3166 if not hasattr(self
,"thisown"): self
.thisown
= 0
3167 self
.__class
__ = Notebook
3168 _controls_
.Notebook_swigregister(NotebookPtr
)
3170 def PreNotebook(*args
, **kwargs
):
3171 """PreNotebook() -> Notebook"""
3172 val
= _controls_
.new_PreNotebook(*args
, **kwargs
)
3176 def Notebook_GetClassDefaultAttributes(*args
, **kwargs
):
3178 Notebook_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
3180 Get the default attributes for this class. This is useful if you want
3181 to use the same font or colour in your own control as in a standard
3182 control -- which is a much better idea than hard coding specific
3183 colours or fonts which might look completely out of place on the
3184 user's system, especially if it uses themes.
3186 The variant parameter is only relevant under Mac currently and is
3187 ignore under other platforms. Under Mac, it will change the size of
3188 the returned font. See `wx.Window.SetWindowVariant` for more about
3191 return _controls_
.Notebook_GetClassDefaultAttributes(*args
, **kwargs
)
3193 class NotebookEvent(BookCtrlBaseEvent
):
3194 """Proxy of C++ NotebookEvent class"""
3196 return "<%s.%s; proxy of C++ wxNotebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3197 def __init__(self
, *args
, **kwargs
):
3199 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3200 int nOldSel=-1) -> NotebookEvent
3202 newobj
= _controls_
.new_NotebookEvent(*args
, **kwargs
)
3203 self
.this
= newobj
.this
3207 class NotebookEventPtr(NotebookEvent
):
3208 def __init__(self
, this
):
3210 if not hasattr(self
,"thisown"): self
.thisown
= 0
3211 self
.__class
__ = NotebookEvent
3212 _controls_
.NotebookEvent_swigregister(NotebookEventPtr
)
3214 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
3215 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
3217 EVT_NOTEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, 1 )
3218 EVT_NOTEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, 1 )
3220 #----------------------------------------------------------------------------
3222 class NotebookPage(wx
.Panel
):
3224 There is an old (and apparently unsolvable) bug when placing a
3225 window with a nonstandard background colour in a wxNotebook on
3226 wxGTK, as the notbooks's background colour would always be used
3227 when the window is refreshed. The solution is to place a panel in
3228 the notbook and the coloured window on the panel, sized to cover
3229 the panel. This simple class does that for you, just put an
3230 instance of this in the notebook and make your regular window a
3231 child of this one and it will handle the resize for you.
3233 def __init__(self
, parent
, id=-1,
3234 pos
=wx
.DefaultPosition
, size
=wx
.DefaultSize
,
3235 style
=wx
.TAB_TRAVERSAL
, name
="panel"):
3236 wx
.Panel
.__init
__(self
, parent
, id, pos
, size
, style
, name
)
3238 EVT_SIZE(self
, self
.OnSize
)
3240 def OnSize(self
, evt
):
3241 if self
.child
is None:
3242 children
= self
.GetChildren()
3244 self
.child
= children
[0]
3246 self
.child
.SetPosition((0,0))
3247 self
.child
.SetSize(self
.GetSize())
3250 #---------------------------------------------------------------------------
3252 LB_DEFAULT
= _controls_
.LB_DEFAULT
3253 LB_TOP
= _controls_
.LB_TOP
3254 LB_BOTTOM
= _controls_
.LB_BOTTOM
3255 LB_LEFT
= _controls_
.LB_LEFT
3256 LB_RIGHT
= _controls_
.LB_RIGHT
3257 LB_ALIGN_MASK
= _controls_
.LB_ALIGN_MASK
3258 class Listbook(BookCtrlBase
):
3259 """Proxy of C++ Listbook class"""
3261 return "<%s.%s; proxy of C++ wxListbook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3262 def __init__(self
, *args
, **kwargs
):
3264 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3265 Size size=DefaultSize, long style=0, String name=EmptyString) -> Listbook
3267 newobj
= _controls_
.new_Listbook(*args
, **kwargs
)
3268 self
.this
= newobj
.this
3271 self
._setOORInfo
(self
)
3273 def Create(*args
, **kwargs
):
3275 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3276 Size size=DefaultSize, long style=0, String name=EmptyString) -> bool
3278 return _controls_
.Listbook_Create(*args
, **kwargs
)
3280 def IsVertical(*args
, **kwargs
):
3281 """IsVertical(self) -> bool"""
3282 return _controls_
.Listbook_IsVertical(*args
, **kwargs
)
3284 def GetListView(*args
, **kwargs
):
3285 """GetListView(self) -> ListView"""
3286 return _controls_
.Listbook_GetListView(*args
, **kwargs
)
3289 class ListbookPtr(Listbook
):
3290 def __init__(self
, this
):
3292 if not hasattr(self
,"thisown"): self
.thisown
= 0
3293 self
.__class
__ = Listbook
3294 _controls_
.Listbook_swigregister(ListbookPtr
)
3296 def PreListbook(*args
, **kwargs
):
3297 """PreListbook() -> Listbook"""
3298 val
= _controls_
.new_PreListbook(*args
, **kwargs
)
3302 class ListbookEvent(BookCtrlBaseEvent
):
3303 """Proxy of C++ ListbookEvent class"""
3305 return "<%s.%s; proxy of C++ wxListbookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3306 def __init__(self
, *args
, **kwargs
):
3308 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3309 int nOldSel=-1) -> ListbookEvent
3311 newobj
= _controls_
.new_ListbookEvent(*args
, **kwargs
)
3312 self
.this
= newobj
.this
3316 class ListbookEventPtr(ListbookEvent
):
3317 def __init__(self
, this
):
3319 if not hasattr(self
,"thisown"): self
.thisown
= 0
3320 self
.__class
__ = ListbookEvent
3321 _controls_
.ListbookEvent_swigregister(ListbookEventPtr
)
3323 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
3324 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
3325 EVT_LISTBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
, 1 )
3326 EVT_LISTBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
, 1 )
3328 CHB_DEFAULT
= _controls_
.CHB_DEFAULT
3329 CHB_TOP
= _controls_
.CHB_TOP
3330 CHB_BOTTOM
= _controls_
.CHB_BOTTOM
3331 CHB_LEFT
= _controls_
.CHB_LEFT
3332 CHB_RIGHT
= _controls_
.CHB_RIGHT
3333 CHB_ALIGN_MASK
= _controls_
.CHB_ALIGN_MASK
3334 class Choicebook(BookCtrlBase
):
3335 """Proxy of C++ Choicebook class"""
3337 return "<%s.%s; proxy of C++ wxChoicebook instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3338 def __init__(self
, *args
, **kwargs
):
3340 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3341 long style=0, String name=EmptyString) -> Choicebook
3343 newobj
= _controls_
.new_Choicebook(*args
, **kwargs
)
3344 self
.this
= newobj
.this
3347 self
._setOORInfo
(self
)
3349 def Create(*args
, **kwargs
):
3351 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3352 long style=0, String name=EmptyString) -> bool
3354 return _controls_
.Choicebook_Create(*args
, **kwargs
)
3356 def IsVertical(*args
, **kwargs
):
3357 """IsVertical(self) -> bool"""
3358 return _controls_
.Choicebook_IsVertical(*args
, **kwargs
)
3360 def DeleteAllPages(*args
, **kwargs
):
3361 """DeleteAllPages(self) -> bool"""
3362 return _controls_
.Choicebook_DeleteAllPages(*args
, **kwargs
)
3365 class ChoicebookPtr(Choicebook
):
3366 def __init__(self
, this
):
3368 if not hasattr(self
,"thisown"): self
.thisown
= 0
3369 self
.__class
__ = Choicebook
3370 _controls_
.Choicebook_swigregister(ChoicebookPtr
)
3372 def PreChoicebook(*args
, **kwargs
):
3373 """PreChoicebook() -> Choicebook"""
3374 val
= _controls_
.new_PreChoicebook(*args
, **kwargs
)
3378 class ChoicebookEvent(BookCtrlBaseEvent
):
3379 """Proxy of C++ ChoicebookEvent class"""
3381 return "<%s.%s; proxy of C++ wxChoicebookEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3382 def __init__(self
, *args
, **kwargs
):
3384 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=-1,
3385 int nOldSel=-1) -> ChoicebookEvent
3387 newobj
= _controls_
.new_ChoicebookEvent(*args
, **kwargs
)
3388 self
.this
= newobj
.this
3392 class ChoicebookEventPtr(ChoicebookEvent
):
3393 def __init__(self
, this
):
3395 if not hasattr(self
,"thisown"): self
.thisown
= 0
3396 self
.__class
__ = ChoicebookEvent
3397 _controls_
.ChoicebookEvent_swigregister(ChoicebookEventPtr
)
3399 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
3400 wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
= _controls_
.wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
3401 EVT_CHOICEBOOK_PAGE_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED
, 1 )
3402 EVT_CHOICEBOOK_PAGE_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING
, 1 )
3404 #---------------------------------------------------------------------------
3406 class BookCtrlSizer(_core
.Sizer
):
3407 """Proxy of C++ BookCtrlSizer class"""
3409 return "<%s.%s; proxy of C++ wxBookCtrlSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3410 def __init__(self
, *args
, **kwargs
):
3411 """__init__(self, BookCtrlBase nb) -> BookCtrlSizer"""
3412 newobj
= _controls_
.new_BookCtrlSizer(*args
, **kwargs
)
3413 self
.this
= newobj
.this
3416 self
._setOORInfo
(self
)
3418 def RecalcSizes(*args
, **kwargs
):
3422 Using the sizes calculated by `CalcMin` reposition and resize all the
3423 items managed by this sizer. You should not need to call this directly as
3424 it is called by `Layout`.
3426 return _controls_
.BookCtrlSizer_RecalcSizes(*args
, **kwargs
)
3428 def CalcMin(*args
, **kwargs
):
3430 CalcMin(self) -> Size
3432 This method is where the sizer will do the actual calculation of its
3433 children's minimal sizes. You should not need to call this directly as
3434 it is called by `Layout`.
3436 return _controls_
.BookCtrlSizer_CalcMin(*args
, **kwargs
)
3438 def GetControl(*args
, **kwargs
):
3439 """GetControl(self) -> BookCtrlBase"""
3440 return _controls_
.BookCtrlSizer_GetControl(*args
, **kwargs
)
3443 class BookCtrlSizerPtr(BookCtrlSizer
):
3444 def __init__(self
, this
):
3446 if not hasattr(self
,"thisown"): self
.thisown
= 0
3447 self
.__class
__ = BookCtrlSizer
3448 _controls_
.BookCtrlSizer_swigregister(BookCtrlSizerPtr
)
3450 class NotebookSizer(_core
.Sizer
):
3451 """Proxy of C++ NotebookSizer class"""
3453 return "<%s.%s; proxy of C++ wxNotebookSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3454 def __init__(self
, *args
, **kwargs
):
3455 """__init__(self, Notebook nb) -> NotebookSizer"""
3456 newobj
= _controls_
.new_NotebookSizer(*args
, **kwargs
)
3457 self
.this
= newobj
.this
3460 self
._setOORInfo
(self
)
3462 def RecalcSizes(*args
, **kwargs
):
3466 Using the sizes calculated by `CalcMin` reposition and resize all the
3467 items managed by this sizer. You should not need to call this directly as
3468 it is called by `Layout`.
3470 return _controls_
.NotebookSizer_RecalcSizes(*args
, **kwargs
)
3472 def CalcMin(*args
, **kwargs
):
3474 CalcMin(self) -> Size
3476 This method is where the sizer will do the actual calculation of its
3477 children's minimal sizes. You should not need to call this directly as
3478 it is called by `Layout`.
3480 return _controls_
.NotebookSizer_CalcMin(*args
, **kwargs
)
3482 def GetNotebook(*args
, **kwargs
):
3483 """GetNotebook(self) -> Notebook"""
3484 return _controls_
.NotebookSizer_GetNotebook(*args
, **kwargs
)
3487 class NotebookSizerPtr(NotebookSizer
):
3488 def __init__(self
, this
):
3490 if not hasattr(self
,"thisown"): self
.thisown
= 0
3491 self
.__class
__ = NotebookSizer
3492 _controls_
.NotebookSizer_swigregister(NotebookSizerPtr
)
3494 NotebookSizer
= wx
._deprecated
(NotebookSizer
, "NotebookSizer is no longer needed.")
3495 BookCtrlSizer
= wx
._deprecated
(BookCtrlSizer
, "BookCtrlSizer is no longer needed.")
3496 #---------------------------------------------------------------------------
3498 TOOL_STYLE_BUTTON
= _controls_
.TOOL_STYLE_BUTTON
3499 TOOL_STYLE_SEPARATOR
= _controls_
.TOOL_STYLE_SEPARATOR
3500 TOOL_STYLE_CONTROL
= _controls_
.TOOL_STYLE_CONTROL
3501 TB_HORIZONTAL
= _controls_
.TB_HORIZONTAL
3502 TB_VERTICAL
= _controls_
.TB_VERTICAL
3503 TB_3DBUTTONS
= _controls_
.TB_3DBUTTONS
3504 TB_FLAT
= _controls_
.TB_FLAT
3505 TB_DOCKABLE
= _controls_
.TB_DOCKABLE
3506 TB_NOICONS
= _controls_
.TB_NOICONS
3507 TB_TEXT
= _controls_
.TB_TEXT
3508 TB_NODIVIDER
= _controls_
.TB_NODIVIDER
3509 TB_NOALIGN
= _controls_
.TB_NOALIGN
3510 TB_HORZ_LAYOUT
= _controls_
.TB_HORZ_LAYOUT
3511 TB_HORZ_TEXT
= _controls_
.TB_HORZ_TEXT
3512 class ToolBarToolBase(_core
.Object
):
3513 """Proxy of C++ ToolBarToolBase class"""
3514 def __init__(self
): raise RuntimeError, "No constructor defined"
3516 return "<%s.%s; proxy of C++ wxToolBarToolBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3517 def GetId(*args
, **kwargs
):
3518 """GetId(self) -> int"""
3519 return _controls_
.ToolBarToolBase_GetId(*args
, **kwargs
)
3521 def GetControl(*args
, **kwargs
):
3522 """GetControl(self) -> Control"""
3523 return _controls_
.ToolBarToolBase_GetControl(*args
, **kwargs
)
3525 def GetToolBar(*args
, **kwargs
):
3526 """GetToolBar(self) -> ToolBarBase"""
3527 return _controls_
.ToolBarToolBase_GetToolBar(*args
, **kwargs
)
3529 def IsButton(*args
, **kwargs
):
3530 """IsButton(self) -> int"""
3531 return _controls_
.ToolBarToolBase_IsButton(*args
, **kwargs
)
3533 def IsControl(*args
, **kwargs
):
3534 """IsControl(self) -> int"""
3535 return _controls_
.ToolBarToolBase_IsControl(*args
, **kwargs
)
3537 def IsSeparator(*args
, **kwargs
):
3538 """IsSeparator(self) -> int"""
3539 return _controls_
.ToolBarToolBase_IsSeparator(*args
, **kwargs
)
3541 def GetStyle(*args
, **kwargs
):
3542 """GetStyle(self) -> int"""
3543 return _controls_
.ToolBarToolBase_GetStyle(*args
, **kwargs
)
3545 def GetKind(*args
, **kwargs
):
3546 """GetKind(self) -> int"""
3547 return _controls_
.ToolBarToolBase_GetKind(*args
, **kwargs
)
3549 def IsEnabled(*args
, **kwargs
):
3550 """IsEnabled(self) -> bool"""
3551 return _controls_
.ToolBarToolBase_IsEnabled(*args
, **kwargs
)
3553 def IsToggled(*args
, **kwargs
):
3554 """IsToggled(self) -> bool"""
3555 return _controls_
.ToolBarToolBase_IsToggled(*args
, **kwargs
)
3557 def CanBeToggled(*args
, **kwargs
):
3558 """CanBeToggled(self) -> bool"""
3559 return _controls_
.ToolBarToolBase_CanBeToggled(*args
, **kwargs
)
3561 def GetNormalBitmap(*args
, **kwargs
):
3562 """GetNormalBitmap(self) -> Bitmap"""
3563 return _controls_
.ToolBarToolBase_GetNormalBitmap(*args
, **kwargs
)
3565 def GetDisabledBitmap(*args
, **kwargs
):
3566 """GetDisabledBitmap(self) -> Bitmap"""
3567 return _controls_
.ToolBarToolBase_GetDisabledBitmap(*args
, **kwargs
)
3569 def GetBitmap(*args
, **kwargs
):
3570 """GetBitmap(self) -> Bitmap"""
3571 return _controls_
.ToolBarToolBase_GetBitmap(*args
, **kwargs
)
3573 def GetLabel(*args
, **kwargs
):
3574 """GetLabel(self) -> String"""
3575 return _controls_
.ToolBarToolBase_GetLabel(*args
, **kwargs
)
3577 def GetShortHelp(*args
, **kwargs
):
3578 """GetShortHelp(self) -> String"""
3579 return _controls_
.ToolBarToolBase_GetShortHelp(*args
, **kwargs
)
3581 def GetLongHelp(*args
, **kwargs
):
3582 """GetLongHelp(self) -> String"""
3583 return _controls_
.ToolBarToolBase_GetLongHelp(*args
, **kwargs
)
3585 def Enable(*args
, **kwargs
):
3586 """Enable(self, bool enable) -> bool"""
3587 return _controls_
.ToolBarToolBase_Enable(*args
, **kwargs
)
3589 def Toggle(*args
, **kwargs
):
3591 return _controls_
.ToolBarToolBase_Toggle(*args
, **kwargs
)
3593 def SetToggle(*args
, **kwargs
):
3594 """SetToggle(self, bool toggle) -> bool"""
3595 return _controls_
.ToolBarToolBase_SetToggle(*args
, **kwargs
)
3597 def SetShortHelp(*args
, **kwargs
):
3598 """SetShortHelp(self, String help) -> bool"""
3599 return _controls_
.ToolBarToolBase_SetShortHelp(*args
, **kwargs
)
3601 def SetLongHelp(*args
, **kwargs
):
3602 """SetLongHelp(self, String help) -> bool"""
3603 return _controls_
.ToolBarToolBase_SetLongHelp(*args
, **kwargs
)
3605 def SetNormalBitmap(*args
, **kwargs
):
3606 """SetNormalBitmap(self, Bitmap bmp)"""
3607 return _controls_
.ToolBarToolBase_SetNormalBitmap(*args
, **kwargs
)
3609 def SetDisabledBitmap(*args
, **kwargs
):
3610 """SetDisabledBitmap(self, Bitmap bmp)"""
3611 return _controls_
.ToolBarToolBase_SetDisabledBitmap(*args
, **kwargs
)
3613 def SetLabel(*args
, **kwargs
):
3614 """SetLabel(self, String label)"""
3615 return _controls_
.ToolBarToolBase_SetLabel(*args
, **kwargs
)
3617 def Detach(*args
, **kwargs
):
3619 return _controls_
.ToolBarToolBase_Detach(*args
, **kwargs
)
3621 def Attach(*args
, **kwargs
):
3622 """Attach(self, ToolBarBase tbar)"""
3623 return _controls_
.ToolBarToolBase_Attach(*args
, **kwargs
)
3625 def GetClientData(*args
, **kwargs
):
3626 """GetClientData(self) -> PyObject"""
3627 return _controls_
.ToolBarToolBase_GetClientData(*args
, **kwargs
)
3629 def SetClientData(*args
, **kwargs
):
3630 """SetClientData(self, PyObject clientData)"""
3631 return _controls_
.ToolBarToolBase_SetClientData(*args
, **kwargs
)
3633 GetBitmap1
= GetNormalBitmap
3634 GetBitmap2
= GetDisabledBitmap
3635 SetBitmap1
= SetNormalBitmap
3636 SetBitmap2
= SetDisabledBitmap
3639 class ToolBarToolBasePtr(ToolBarToolBase
):
3640 def __init__(self
, this
):
3642 if not hasattr(self
,"thisown"): self
.thisown
= 0
3643 self
.__class
__ = ToolBarToolBase
3644 _controls_
.ToolBarToolBase_swigregister(ToolBarToolBasePtr
)
3646 class ToolBarBase(_core
.Control
):
3647 """Proxy of C++ ToolBarBase class"""
3648 def __init__(self
): raise RuntimeError, "No constructor defined"
3650 return "<%s.%s; proxy of C++ wxToolBarBase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3651 def DoAddTool(*args
, **kwargs
):
3653 DoAddTool(self, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3654 int kind=ITEM_NORMAL, String shortHelp=EmptyString,
3655 String longHelp=EmptyString,
3656 PyObject clientData=None) -> ToolBarToolBase
3658 return _controls_
.ToolBarBase_DoAddTool(*args
, **kwargs
)
3660 def DoInsertTool(*args
, **kwargs
):
3662 DoInsertTool(self, size_t pos, int id, String label, Bitmap bitmap, Bitmap bmpDisabled=wxNullBitmap,
3663 int kind=ITEM_NORMAL,
3664 String shortHelp=EmptyString, String longHelp=EmptyString,
3665 PyObject clientData=None) -> ToolBarToolBase
3667 return _controls_
.ToolBarBase_DoInsertTool(*args
, **kwargs
)
3669 # These match the original Add methods for this class, kept for
3670 # backwards compatibility with versions < 2.3.3.
3673 def AddTool(self
, id, bitmap
,
3674 pushedBitmap
= wx
.NullBitmap
,
3677 shortHelpString
= '',
3678 longHelpString
= '') :
3679 '''Old style method to add a tool to the toolbar.'''
3680 kind
= wx
.ITEM_NORMAL
3681 if isToggle
: kind
= wx
.ITEM_CHECK
3682 return self
.DoAddTool(id, '', bitmap
, pushedBitmap
, kind
,
3683 shortHelpString
, longHelpString
, clientData
)
3685 def AddSimpleTool(self
, id, bitmap
,
3686 shortHelpString
= '',
3687 longHelpString
= '',
3689 '''Old style method to add a tool to the toolbar.'''
3690 kind
= wx
.ITEM_NORMAL
3691 if isToggle
: kind
= wx
.ITEM_CHECK
3692 return self
.DoAddTool(id, '', bitmap
, wx
.NullBitmap
, kind
,
3693 shortHelpString
, longHelpString
, None)
3695 def InsertTool(self
, pos
, id, bitmap
,
3696 pushedBitmap
= wx
.NullBitmap
,
3699 shortHelpString
= '',
3700 longHelpString
= ''):
3701 '''Old style method to insert a tool in the toolbar.'''
3702 kind
= wx
.ITEM_NORMAL
3703 if isToggle
: kind
= wx
.ITEM_CHECK
3704 return self
.DoInsertTool(pos
, id, '', bitmap
, pushedBitmap
, kind
,
3705 shortHelpString
, longHelpString
, clientData
)
3707 def InsertSimpleTool(self
, pos
, id, bitmap
,
3708 shortHelpString
= '',
3709 longHelpString
= '',
3711 '''Old style method to insert a tool in the toolbar.'''
3712 kind
= wx
.ITEM_NORMAL
3713 if isToggle
: kind
= wx
.ITEM_CHECK
3714 return self
.DoInsertTool(pos
, id, '', bitmap
, wx
.NullBitmap
, kind
,
3715 shortHelpString
, longHelpString
, None)
3718 # The following are the new toolbar Add methods starting with
3719 # 2.3.3. They are renamed to have 'Label' in the name so as to be
3720 # able to keep backwards compatibility with using the above
3721 # methods. Eventually these should migrate to be the methods used
3722 # primarily and lose the 'Label' in the name...
3724 def AddLabelTool(self
, id, label
, bitmap
,
3725 bmpDisabled
= wx
.NullBitmap
,
3726 kind
= wx
.ITEM_NORMAL
,
3727 shortHelp
= '', longHelp
= '',
3730 The full AddTool() function.
3732 If bmpDisabled is wx.NullBitmap, a shadowed version of the normal bitmap
3733 is created and used as the disabled image.
3735 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, kind
,
3736 shortHelp
, longHelp
, clientData
)
3739 def InsertLabelTool(self
, pos
, id, label
, bitmap
,
3740 bmpDisabled
= wx
.NullBitmap
,
3741 kind
= wx
.ITEM_NORMAL
,
3742 shortHelp
= '', longHelp
= '',
3745 Insert the new tool at the given position, if pos == GetToolsCount(), it
3746 is equivalent to AddTool()
3748 return self
.DoInsertTool(pos
, id, label
, bitmap
, bmpDisabled
, kind
,
3749 shortHelp
, longHelp
, clientData
)
3751 def AddCheckLabelTool(self
, id, label
, bitmap
,
3752 bmpDisabled
= wx
.NullBitmap
,
3753 shortHelp
= '', longHelp
= '',
3755 '''Add a check tool, i.e. a tool which can be toggled'''
3756 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3757 shortHelp
, longHelp
, clientData
)
3759 def AddRadioLabelTool(self
, id, label
, bitmap
,
3760 bmpDisabled
= wx
.NullBitmap
,
3761 shortHelp
= '', longHelp
= '',
3764 Add a radio tool, i.e. a tool which can be toggled and releases any
3765 other toggled radio tools in the same group when it happens
3767 return self
.DoAddTool(id, label
, bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3768 shortHelp
, longHelp
, clientData
)
3771 # For consistency with the backwards compatible methods above, here are
3772 # some non-'Label' versions of the Check and Radio methods
3774 def AddCheckTool(self
, id, bitmap
,
3775 bmpDisabled
= wx
.NullBitmap
,
3776 shortHelp
= '', longHelp
= '',
3778 '''Add a check tool, i.e. a tool which can be toggled'''
3779 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_CHECK
,
3780 shortHelp
, longHelp
, clientData
)
3782 def AddRadioTool(self
, id, bitmap
,
3783 bmpDisabled
= wx
.NullBitmap
,
3784 shortHelp
= '', longHelp
= '',
3787 Add a radio tool, i.e. a tool which can be toggled and releases any
3788 other toggled radio tools in the same group when it happens
3790 return self
.DoAddTool(id, '', bitmap
, bmpDisabled
, wx
.ITEM_RADIO
,
3791 shortHelp
, longHelp
, clientData
)
3793 def AddToolItem(*args
, **kwargs
):
3794 """AddToolItem(self, ToolBarToolBase tool) -> ToolBarToolBase"""
3795 return _controls_
.ToolBarBase_AddToolItem(*args
, **kwargs
)
3797 def InsertToolItem(*args
, **kwargs
):
3798 """InsertToolItem(self, size_t pos, ToolBarToolBase tool) -> ToolBarToolBase"""
3799 return _controls_
.ToolBarBase_InsertToolItem(*args
, **kwargs
)
3801 def AddControl(*args
, **kwargs
):
3802 """AddControl(self, Control control) -> ToolBarToolBase"""
3803 return _controls_
.ToolBarBase_AddControl(*args
, **kwargs
)
3805 def InsertControl(*args
, **kwargs
):
3806 """InsertControl(self, size_t pos, Control control) -> ToolBarToolBase"""
3807 return _controls_
.ToolBarBase_InsertControl(*args
, **kwargs
)
3809 def FindControl(*args
, **kwargs
):
3810 """FindControl(self, int id) -> Control"""
3811 return _controls_
.ToolBarBase_FindControl(*args
, **kwargs
)
3813 def AddSeparator(*args
, **kwargs
):
3814 """AddSeparator(self) -> ToolBarToolBase"""
3815 return _controls_
.ToolBarBase_AddSeparator(*args
, **kwargs
)
3817 def InsertSeparator(*args
, **kwargs
):
3818 """InsertSeparator(self, size_t pos) -> ToolBarToolBase"""
3819 return _controls_
.ToolBarBase_InsertSeparator(*args
, **kwargs
)
3821 def RemoveTool(*args
, **kwargs
):
3822 """RemoveTool(self, int id) -> ToolBarToolBase"""
3823 return _controls_
.ToolBarBase_RemoveTool(*args
, **kwargs
)
3825 def DeleteToolByPos(*args
, **kwargs
):
3826 """DeleteToolByPos(self, size_t pos) -> bool"""
3827 return _controls_
.ToolBarBase_DeleteToolByPos(*args
, **kwargs
)
3829 def DeleteTool(*args
, **kwargs
):
3830 """DeleteTool(self, int id) -> bool"""
3831 return _controls_
.ToolBarBase_DeleteTool(*args
, **kwargs
)
3833 def ClearTools(*args
, **kwargs
):
3834 """ClearTools(self)"""
3835 return _controls_
.ToolBarBase_ClearTools(*args
, **kwargs
)
3837 def Realize(*args
, **kwargs
):
3838 """Realize(self) -> bool"""
3839 return _controls_
.ToolBarBase_Realize(*args
, **kwargs
)
3841 def EnableTool(*args
, **kwargs
):
3842 """EnableTool(self, int id, bool enable)"""
3843 return _controls_
.ToolBarBase_EnableTool(*args
, **kwargs
)
3845 def ToggleTool(*args
, **kwargs
):
3846 """ToggleTool(self, int id, bool toggle)"""
3847 return _controls_
.ToolBarBase_ToggleTool(*args
, **kwargs
)
3849 def SetToggle(*args
, **kwargs
):
3850 """SetToggle(self, int id, bool toggle)"""
3851 return _controls_
.ToolBarBase_SetToggle(*args
, **kwargs
)
3853 def GetToolClientData(*args
, **kwargs
):
3854 """GetToolClientData(self, int id) -> PyObject"""
3855 return _controls_
.ToolBarBase_GetToolClientData(*args
, **kwargs
)
3857 def SetToolClientData(*args
, **kwargs
):
3858 """SetToolClientData(self, int id, PyObject clientData)"""
3859 return _controls_
.ToolBarBase_SetToolClientData(*args
, **kwargs
)
3861 def GetToolPos(*args
, **kwargs
):
3862 """GetToolPos(self, int id) -> int"""
3863 return _controls_
.ToolBarBase_GetToolPos(*args
, **kwargs
)
3865 def GetToolState(*args
, **kwargs
):
3866 """GetToolState(self, int id) -> bool"""
3867 return _controls_
.ToolBarBase_GetToolState(*args
, **kwargs
)
3869 def GetToolEnabled(*args
, **kwargs
):
3870 """GetToolEnabled(self, int id) -> bool"""
3871 return _controls_
.ToolBarBase_GetToolEnabled(*args
, **kwargs
)
3873 def SetToolShortHelp(*args
, **kwargs
):
3874 """SetToolShortHelp(self, int id, String helpString)"""
3875 return _controls_
.ToolBarBase_SetToolShortHelp(*args
, **kwargs
)
3877 def GetToolShortHelp(*args
, **kwargs
):
3878 """GetToolShortHelp(self, int id) -> String"""
3879 return _controls_
.ToolBarBase_GetToolShortHelp(*args
, **kwargs
)
3881 def SetToolLongHelp(*args
, **kwargs
):
3882 """SetToolLongHelp(self, int id, String helpString)"""
3883 return _controls_
.ToolBarBase_SetToolLongHelp(*args
, **kwargs
)
3885 def GetToolLongHelp(*args
, **kwargs
):
3886 """GetToolLongHelp(self, int id) -> String"""
3887 return _controls_
.ToolBarBase_GetToolLongHelp(*args
, **kwargs
)
3889 def SetMarginsXY(*args
, **kwargs
):
3890 """SetMarginsXY(self, int x, int y)"""
3891 return _controls_
.ToolBarBase_SetMarginsXY(*args
, **kwargs
)
3893 def SetMargins(*args
, **kwargs
):
3894 """SetMargins(self, Size size)"""
3895 return _controls_
.ToolBarBase_SetMargins(*args
, **kwargs
)
3897 def SetToolPacking(*args
, **kwargs
):
3898 """SetToolPacking(self, int packing)"""
3899 return _controls_
.ToolBarBase_SetToolPacking(*args
, **kwargs
)
3901 def SetToolSeparation(*args
, **kwargs
):
3902 """SetToolSeparation(self, int separation)"""
3903 return _controls_
.ToolBarBase_SetToolSeparation(*args
, **kwargs
)
3905 def GetToolMargins(*args
, **kwargs
):
3906 """GetToolMargins(self) -> Size"""
3907 return _controls_
.ToolBarBase_GetToolMargins(*args
, **kwargs
)
3909 def GetMargins(*args
, **kwargs
):
3910 """GetMargins(self) -> Size"""
3911 return _controls_
.ToolBarBase_GetMargins(*args
, **kwargs
)
3913 def GetToolPacking(*args
, **kwargs
):
3914 """GetToolPacking(self) -> int"""
3915 return _controls_
.ToolBarBase_GetToolPacking(*args
, **kwargs
)
3917 def GetToolSeparation(*args
, **kwargs
):
3918 """GetToolSeparation(self) -> int"""
3919 return _controls_
.ToolBarBase_GetToolSeparation(*args
, **kwargs
)
3921 def SetRows(*args
, **kwargs
):
3922 """SetRows(self, int nRows)"""
3923 return _controls_
.ToolBarBase_SetRows(*args
, **kwargs
)
3925 def SetMaxRowsCols(*args
, **kwargs
):
3926 """SetMaxRowsCols(self, int rows, int cols)"""
3927 return _controls_
.ToolBarBase_SetMaxRowsCols(*args
, **kwargs
)
3929 def GetMaxRows(*args
, **kwargs
):
3930 """GetMaxRows(self) -> int"""
3931 return _controls_
.ToolBarBase_GetMaxRows(*args
, **kwargs
)
3933 def GetMaxCols(*args
, **kwargs
):
3934 """GetMaxCols(self) -> int"""
3935 return _controls_
.ToolBarBase_GetMaxCols(*args
, **kwargs
)
3937 def SetToolBitmapSize(*args
, **kwargs
):
3938 """SetToolBitmapSize(self, Size size)"""
3939 return _controls_
.ToolBarBase_SetToolBitmapSize(*args
, **kwargs
)
3941 def GetToolBitmapSize(*args
, **kwargs
):
3942 """GetToolBitmapSize(self) -> Size"""
3943 return _controls_
.ToolBarBase_GetToolBitmapSize(*args
, **kwargs
)
3945 def GetToolSize(*args
, **kwargs
):
3946 """GetToolSize(self) -> Size"""
3947 return _controls_
.ToolBarBase_GetToolSize(*args
, **kwargs
)
3949 def FindToolForPosition(*args
, **kwargs
):
3950 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3951 return _controls_
.ToolBarBase_FindToolForPosition(*args
, **kwargs
)
3953 def FindById(*args
, **kwargs
):
3954 """FindById(self, int toolid) -> ToolBarToolBase"""
3955 return _controls_
.ToolBarBase_FindById(*args
, **kwargs
)
3957 def IsVertical(*args
, **kwargs
):
3958 """IsVertical(self) -> bool"""
3959 return _controls_
.ToolBarBase_IsVertical(*args
, **kwargs
)
3962 class ToolBarBasePtr(ToolBarBase
):
3963 def __init__(self
, this
):
3965 if not hasattr(self
,"thisown"): self
.thisown
= 0
3966 self
.__class
__ = ToolBarBase
3967 _controls_
.ToolBarBase_swigregister(ToolBarBasePtr
)
3969 class ToolBar(ToolBarBase
):
3970 """Proxy of C++ ToolBar class"""
3972 return "<%s.%s; proxy of C++ wxToolBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3973 def __init__(self
, *args
, **kwargs
):
3975 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3976 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3977 String name=wxPyToolBarNameStr) -> ToolBar
3979 newobj
= _controls_
.new_ToolBar(*args
, **kwargs
)
3980 self
.this
= newobj
.this
3983 self
._setOORInfo
(self
)
3985 def Create(*args
, **kwargs
):
3987 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
3988 Size size=DefaultSize, long style=wxNO_BORDER|wxTB_HORIZONTAL,
3989 String name=wxPyToolBarNameStr) -> bool
3991 return _controls_
.ToolBar_Create(*args
, **kwargs
)
3993 def FindToolForPosition(*args
, **kwargs
):
3994 """FindToolForPosition(self, int x, int y) -> ToolBarToolBase"""
3995 return _controls_
.ToolBar_FindToolForPosition(*args
, **kwargs
)
3997 def GetClassDefaultAttributes(*args
, **kwargs
):
3999 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4001 Get the default attributes for this class. This is useful if you want
4002 to use the same font or colour in your own control as in a standard
4003 control -- which is a much better idea than hard coding specific
4004 colours or fonts which might look completely out of place on the
4005 user's system, especially if it uses themes.
4007 The variant parameter is only relevant under Mac currently and is
4008 ignore under other platforms. Under Mac, it will change the size of
4009 the returned font. See `wx.Window.SetWindowVariant` for more about
4012 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4014 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4016 class ToolBarPtr(ToolBar
):
4017 def __init__(self
, this
):
4019 if not hasattr(self
,"thisown"): self
.thisown
= 0
4020 self
.__class
__ = ToolBar
4021 _controls_
.ToolBar_swigregister(ToolBarPtr
)
4023 def PreToolBar(*args
, **kwargs
):
4024 """PreToolBar() -> ToolBar"""
4025 val
= _controls_
.new_PreToolBar(*args
, **kwargs
)
4029 def ToolBar_GetClassDefaultAttributes(*args
, **kwargs
):
4031 ToolBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4033 Get the default attributes for this class. This is useful if you want
4034 to use the same font or colour in your own control as in a standard
4035 control -- which is a much better idea than hard coding specific
4036 colours or fonts which might look completely out of place on the
4037 user's system, especially if it uses themes.
4039 The variant parameter is only relevant under Mac currently and is
4040 ignore under other platforms. Under Mac, it will change the size of
4041 the returned font. See `wx.Window.SetWindowVariant` for more about
4044 return _controls_
.ToolBar_GetClassDefaultAttributes(*args
, **kwargs
)
4046 #---------------------------------------------------------------------------
4048 LC_VRULES
= _controls_
.LC_VRULES
4049 LC_HRULES
= _controls_
.LC_HRULES
4050 LC_ICON
= _controls_
.LC_ICON
4051 LC_SMALL_ICON
= _controls_
.LC_SMALL_ICON
4052 LC_LIST
= _controls_
.LC_LIST
4053 LC_REPORT
= _controls_
.LC_REPORT
4054 LC_ALIGN_TOP
= _controls_
.LC_ALIGN_TOP
4055 LC_ALIGN_LEFT
= _controls_
.LC_ALIGN_LEFT
4056 LC_AUTOARRANGE
= _controls_
.LC_AUTOARRANGE
4057 LC_VIRTUAL
= _controls_
.LC_VIRTUAL
4058 LC_EDIT_LABELS
= _controls_
.LC_EDIT_LABELS
4059 LC_NO_HEADER
= _controls_
.LC_NO_HEADER
4060 LC_NO_SORT_HEADER
= _controls_
.LC_NO_SORT_HEADER
4061 LC_SINGLE_SEL
= _controls_
.LC_SINGLE_SEL
4062 LC_SORT_ASCENDING
= _controls_
.LC_SORT_ASCENDING
4063 LC_SORT_DESCENDING
= _controls_
.LC_SORT_DESCENDING
4064 LC_MASK_TYPE
= _controls_
.LC_MASK_TYPE
4065 LC_MASK_ALIGN
= _controls_
.LC_MASK_ALIGN
4066 LC_MASK_SORT
= _controls_
.LC_MASK_SORT
4067 LIST_MASK_STATE
= _controls_
.LIST_MASK_STATE
4068 LIST_MASK_TEXT
= _controls_
.LIST_MASK_TEXT
4069 LIST_MASK_IMAGE
= _controls_
.LIST_MASK_IMAGE
4070 LIST_MASK_DATA
= _controls_
.LIST_MASK_DATA
4071 LIST_SET_ITEM
= _controls_
.LIST_SET_ITEM
4072 LIST_MASK_WIDTH
= _controls_
.LIST_MASK_WIDTH
4073 LIST_MASK_FORMAT
= _controls_
.LIST_MASK_FORMAT
4074 LIST_STATE_DONTCARE
= _controls_
.LIST_STATE_DONTCARE
4075 LIST_STATE_DROPHILITED
= _controls_
.LIST_STATE_DROPHILITED
4076 LIST_STATE_FOCUSED
= _controls_
.LIST_STATE_FOCUSED
4077 LIST_STATE_SELECTED
= _controls_
.LIST_STATE_SELECTED
4078 LIST_STATE_CUT
= _controls_
.LIST_STATE_CUT
4079 LIST_STATE_DISABLED
= _controls_
.LIST_STATE_DISABLED
4080 LIST_STATE_FILTERED
= _controls_
.LIST_STATE_FILTERED
4081 LIST_STATE_INUSE
= _controls_
.LIST_STATE_INUSE
4082 LIST_STATE_PICKED
= _controls_
.LIST_STATE_PICKED
4083 LIST_STATE_SOURCE
= _controls_
.LIST_STATE_SOURCE
4084 LIST_HITTEST_ABOVE
= _controls_
.LIST_HITTEST_ABOVE
4085 LIST_HITTEST_BELOW
= _controls_
.LIST_HITTEST_BELOW
4086 LIST_HITTEST_NOWHERE
= _controls_
.LIST_HITTEST_NOWHERE
4087 LIST_HITTEST_ONITEMICON
= _controls_
.LIST_HITTEST_ONITEMICON
4088 LIST_HITTEST_ONITEMLABEL
= _controls_
.LIST_HITTEST_ONITEMLABEL
4089 LIST_HITTEST_ONITEMRIGHT
= _controls_
.LIST_HITTEST_ONITEMRIGHT
4090 LIST_HITTEST_ONITEMSTATEICON
= _controls_
.LIST_HITTEST_ONITEMSTATEICON
4091 LIST_HITTEST_TOLEFT
= _controls_
.LIST_HITTEST_TOLEFT
4092 LIST_HITTEST_TORIGHT
= _controls_
.LIST_HITTEST_TORIGHT
4093 LIST_HITTEST_ONITEM
= _controls_
.LIST_HITTEST_ONITEM
4094 LIST_NEXT_ABOVE
= _controls_
.LIST_NEXT_ABOVE
4095 LIST_NEXT_ALL
= _controls_
.LIST_NEXT_ALL
4096 LIST_NEXT_BELOW
= _controls_
.LIST_NEXT_BELOW
4097 LIST_NEXT_LEFT
= _controls_
.LIST_NEXT_LEFT
4098 LIST_NEXT_RIGHT
= _controls_
.LIST_NEXT_RIGHT
4099 LIST_ALIGN_DEFAULT
= _controls_
.LIST_ALIGN_DEFAULT
4100 LIST_ALIGN_LEFT
= _controls_
.LIST_ALIGN_LEFT
4101 LIST_ALIGN_TOP
= _controls_
.LIST_ALIGN_TOP
4102 LIST_ALIGN_SNAP_TO_GRID
= _controls_
.LIST_ALIGN_SNAP_TO_GRID
4103 LIST_FORMAT_LEFT
= _controls_
.LIST_FORMAT_LEFT
4104 LIST_FORMAT_RIGHT
= _controls_
.LIST_FORMAT_RIGHT
4105 LIST_FORMAT_CENTRE
= _controls_
.LIST_FORMAT_CENTRE
4106 LIST_FORMAT_CENTER
= _controls_
.LIST_FORMAT_CENTER
4107 LIST_AUTOSIZE
= _controls_
.LIST_AUTOSIZE
4108 LIST_AUTOSIZE_USEHEADER
= _controls_
.LIST_AUTOSIZE_USEHEADER
4109 LIST_RECT_BOUNDS
= _controls_
.LIST_RECT_BOUNDS
4110 LIST_RECT_ICON
= _controls_
.LIST_RECT_ICON
4111 LIST_RECT_LABEL
= _controls_
.LIST_RECT_LABEL
4112 LIST_FIND_UP
= _controls_
.LIST_FIND_UP
4113 LIST_FIND_DOWN
= _controls_
.LIST_FIND_DOWN
4114 LIST_FIND_LEFT
= _controls_
.LIST_FIND_LEFT
4115 LIST_FIND_RIGHT
= _controls_
.LIST_FIND_RIGHT
4116 #---------------------------------------------------------------------------
4118 class ListItemAttr(object):
4119 """Proxy of C++ ListItemAttr class"""
4121 return "<%s.%s; proxy of C++ wxListItemAttr instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4122 def __init__(self
, *args
, **kwargs
):
4124 __init__(self, Colour colText=wxNullColour, Colour colBack=wxNullColour,
4125 Font font=wxNullFont) -> ListItemAttr
4127 newobj
= _controls_
.new_ListItemAttr(*args
, **kwargs
)
4128 self
.this
= newobj
.this
4131 def SetTextColour(*args
, **kwargs
):
4132 """SetTextColour(self, Colour colText)"""
4133 return _controls_
.ListItemAttr_SetTextColour(*args
, **kwargs
)
4135 def SetBackgroundColour(*args
, **kwargs
):
4136 """SetBackgroundColour(self, Colour colBack)"""
4137 return _controls_
.ListItemAttr_SetBackgroundColour(*args
, **kwargs
)
4139 def SetFont(*args
, **kwargs
):
4140 """SetFont(self, Font font)"""
4141 return _controls_
.ListItemAttr_SetFont(*args
, **kwargs
)
4143 def HasTextColour(*args
, **kwargs
):
4144 """HasTextColour(self) -> bool"""
4145 return _controls_
.ListItemAttr_HasTextColour(*args
, **kwargs
)
4147 def HasBackgroundColour(*args
, **kwargs
):
4148 """HasBackgroundColour(self) -> bool"""
4149 return _controls_
.ListItemAttr_HasBackgroundColour(*args
, **kwargs
)
4151 def HasFont(*args
, **kwargs
):
4152 """HasFont(self) -> bool"""
4153 return _controls_
.ListItemAttr_HasFont(*args
, **kwargs
)
4155 def GetTextColour(*args
, **kwargs
):
4156 """GetTextColour(self) -> Colour"""
4157 return _controls_
.ListItemAttr_GetTextColour(*args
, **kwargs
)
4159 def GetBackgroundColour(*args
, **kwargs
):
4160 """GetBackgroundColour(self) -> Colour"""
4161 return _controls_
.ListItemAttr_GetBackgroundColour(*args
, **kwargs
)
4163 def GetFont(*args
, **kwargs
):
4164 """GetFont(self) -> Font"""
4165 return _controls_
.ListItemAttr_GetFont(*args
, **kwargs
)
4167 def Destroy(*args
, **kwargs
):
4169 return _controls_
.ListItemAttr_Destroy(*args
, **kwargs
)
4172 class ListItemAttrPtr(ListItemAttr
):
4173 def __init__(self
, this
):
4175 if not hasattr(self
,"thisown"): self
.thisown
= 0
4176 self
.__class
__ = ListItemAttr
4177 _controls_
.ListItemAttr_swigregister(ListItemAttrPtr
)
4178 ListCtrlNameStr
= cvar
.ListCtrlNameStr
4180 #---------------------------------------------------------------------------
4182 class ListItem(_core
.Object
):
4183 """Proxy of C++ ListItem class"""
4185 return "<%s.%s; proxy of C++ wxListItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4186 def __init__(self
, *args
, **kwargs
):
4187 """__init__(self) -> ListItem"""
4188 newobj
= _controls_
.new_ListItem(*args
, **kwargs
)
4189 self
.this
= newobj
.this
4192 def __del__(self
, destroy
=_controls_
.delete_ListItem
):
4195 if self
.thisown
: destroy(self
)
4198 def Clear(*args
, **kwargs
):
4200 return _controls_
.ListItem_Clear(*args
, **kwargs
)
4202 def ClearAttributes(*args
, **kwargs
):
4203 """ClearAttributes(self)"""
4204 return _controls_
.ListItem_ClearAttributes(*args
, **kwargs
)
4206 def SetMask(*args
, **kwargs
):
4207 """SetMask(self, long mask)"""
4208 return _controls_
.ListItem_SetMask(*args
, **kwargs
)
4210 def SetId(*args
, **kwargs
):
4211 """SetId(self, long id)"""
4212 return _controls_
.ListItem_SetId(*args
, **kwargs
)
4214 def SetColumn(*args
, **kwargs
):
4215 """SetColumn(self, int col)"""
4216 return _controls_
.ListItem_SetColumn(*args
, **kwargs
)
4218 def SetState(*args
, **kwargs
):
4219 """SetState(self, long state)"""
4220 return _controls_
.ListItem_SetState(*args
, **kwargs
)
4222 def SetStateMask(*args
, **kwargs
):
4223 """SetStateMask(self, long stateMask)"""
4224 return _controls_
.ListItem_SetStateMask(*args
, **kwargs
)
4226 def SetText(*args
, **kwargs
):
4227 """SetText(self, String text)"""
4228 return _controls_
.ListItem_SetText(*args
, **kwargs
)
4230 def SetImage(*args
, **kwargs
):
4231 """SetImage(self, int image)"""
4232 return _controls_
.ListItem_SetImage(*args
, **kwargs
)
4234 def SetData(*args
, **kwargs
):
4235 """SetData(self, long data)"""
4236 return _controls_
.ListItem_SetData(*args
, **kwargs
)
4238 def SetWidth(*args
, **kwargs
):
4239 """SetWidth(self, int width)"""
4240 return _controls_
.ListItem_SetWidth(*args
, **kwargs
)
4242 def SetAlign(*args
, **kwargs
):
4243 """SetAlign(self, int align)"""
4244 return _controls_
.ListItem_SetAlign(*args
, **kwargs
)
4246 def SetTextColour(*args
, **kwargs
):
4247 """SetTextColour(self, Colour colText)"""
4248 return _controls_
.ListItem_SetTextColour(*args
, **kwargs
)
4250 def SetBackgroundColour(*args
, **kwargs
):
4251 """SetBackgroundColour(self, Colour colBack)"""
4252 return _controls_
.ListItem_SetBackgroundColour(*args
, **kwargs
)
4254 def SetFont(*args
, **kwargs
):
4255 """SetFont(self, Font font)"""
4256 return _controls_
.ListItem_SetFont(*args
, **kwargs
)
4258 def GetMask(*args
, **kwargs
):
4259 """GetMask(self) -> long"""
4260 return _controls_
.ListItem_GetMask(*args
, **kwargs
)
4262 def GetId(*args
, **kwargs
):
4263 """GetId(self) -> long"""
4264 return _controls_
.ListItem_GetId(*args
, **kwargs
)
4266 def GetColumn(*args
, **kwargs
):
4267 """GetColumn(self) -> int"""
4268 return _controls_
.ListItem_GetColumn(*args
, **kwargs
)
4270 def GetState(*args
, **kwargs
):
4271 """GetState(self) -> long"""
4272 return _controls_
.ListItem_GetState(*args
, **kwargs
)
4274 def GetText(*args
, **kwargs
):
4275 """GetText(self) -> String"""
4276 return _controls_
.ListItem_GetText(*args
, **kwargs
)
4278 def GetImage(*args
, **kwargs
):
4279 """GetImage(self) -> int"""
4280 return _controls_
.ListItem_GetImage(*args
, **kwargs
)
4282 def GetData(*args
, **kwargs
):
4283 """GetData(self) -> long"""
4284 return _controls_
.ListItem_GetData(*args
, **kwargs
)
4286 def GetWidth(*args
, **kwargs
):
4287 """GetWidth(self) -> int"""
4288 return _controls_
.ListItem_GetWidth(*args
, **kwargs
)
4290 def GetAlign(*args
, **kwargs
):
4291 """GetAlign(self) -> int"""
4292 return _controls_
.ListItem_GetAlign(*args
, **kwargs
)
4294 def GetAttributes(*args
, **kwargs
):
4295 """GetAttributes(self) -> ListItemAttr"""
4296 return _controls_
.ListItem_GetAttributes(*args
, **kwargs
)
4298 def HasAttributes(*args
, **kwargs
):
4299 """HasAttributes(self) -> bool"""
4300 return _controls_
.ListItem_HasAttributes(*args
, **kwargs
)
4302 def GetTextColour(*args
, **kwargs
):
4303 """GetTextColour(self) -> Colour"""
4304 return _controls_
.ListItem_GetTextColour(*args
, **kwargs
)
4306 def GetBackgroundColour(*args
, **kwargs
):
4307 """GetBackgroundColour(self) -> Colour"""
4308 return _controls_
.ListItem_GetBackgroundColour(*args
, **kwargs
)
4310 def GetFont(*args
, **kwargs
):
4311 """GetFont(self) -> Font"""
4312 return _controls_
.ListItem_GetFont(*args
, **kwargs
)
4314 m_mask
= property(_controls_
.ListItem_m_mask_get
, _controls_
.ListItem_m_mask_set
)
4315 m_itemId
= property(_controls_
.ListItem_m_itemId_get
, _controls_
.ListItem_m_itemId_set
)
4316 m_col
= property(_controls_
.ListItem_m_col_get
, _controls_
.ListItem_m_col_set
)
4317 m_state
= property(_controls_
.ListItem_m_state_get
, _controls_
.ListItem_m_state_set
)
4318 m_stateMask
= property(_controls_
.ListItem_m_stateMask_get
, _controls_
.ListItem_m_stateMask_set
)
4319 m_text
= property(_controls_
.ListItem_m_text_get
, _controls_
.ListItem_m_text_set
)
4320 m_image
= property(_controls_
.ListItem_m_image_get
, _controls_
.ListItem_m_image_set
)
4321 m_data
= property(_controls_
.ListItem_m_data_get
, _controls_
.ListItem_m_data_set
)
4322 m_format
= property(_controls_
.ListItem_m_format_get
, _controls_
.ListItem_m_format_set
)
4323 m_width
= property(_controls_
.ListItem_m_width_get
, _controls_
.ListItem_m_width_set
)
4325 class ListItemPtr(ListItem
):
4326 def __init__(self
, this
):
4328 if not hasattr(self
,"thisown"): self
.thisown
= 0
4329 self
.__class
__ = ListItem
4330 _controls_
.ListItem_swigregister(ListItemPtr
)
4332 #---------------------------------------------------------------------------
4334 class ListEvent(_core
.NotifyEvent
):
4335 """Proxy of C++ ListEvent class"""
4337 return "<%s.%s; proxy of C++ wxListEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4338 def __init__(self
, *args
, **kwargs
):
4339 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> ListEvent"""
4340 newobj
= _controls_
.new_ListEvent(*args
, **kwargs
)
4341 self
.this
= newobj
.this
4344 m_code
= property(_controls_
.ListEvent_m_code_get
, _controls_
.ListEvent_m_code_set
)
4345 m_oldItemIndex
= property(_controls_
.ListEvent_m_oldItemIndex_get
, _controls_
.ListEvent_m_oldItemIndex_set
)
4346 m_itemIndex
= property(_controls_
.ListEvent_m_itemIndex_get
, _controls_
.ListEvent_m_itemIndex_set
)
4347 m_col
= property(_controls_
.ListEvent_m_col_get
, _controls_
.ListEvent_m_col_set
)
4348 m_pointDrag
= property(_controls_
.ListEvent_m_pointDrag_get
, _controls_
.ListEvent_m_pointDrag_set
)
4349 m_item
= property(_controls_
.ListEvent_m_item_get
)
4350 def GetKeyCode(*args
, **kwargs
):
4351 """GetKeyCode(self) -> int"""
4352 return _controls_
.ListEvent_GetKeyCode(*args
, **kwargs
)
4354 GetCode
= GetKeyCode
4355 def GetIndex(*args
, **kwargs
):
4356 """GetIndex(self) -> long"""
4357 return _controls_
.ListEvent_GetIndex(*args
, **kwargs
)
4359 def GetColumn(*args
, **kwargs
):
4360 """GetColumn(self) -> int"""
4361 return _controls_
.ListEvent_GetColumn(*args
, **kwargs
)
4363 def GetPoint(*args
, **kwargs
):
4364 """GetPoint(self) -> Point"""
4365 return _controls_
.ListEvent_GetPoint(*args
, **kwargs
)
4367 GetPosition
= GetPoint
4368 def GetLabel(*args
, **kwargs
):
4369 """GetLabel(self) -> String"""
4370 return _controls_
.ListEvent_GetLabel(*args
, **kwargs
)
4372 def GetText(*args
, **kwargs
):
4373 """GetText(self) -> String"""
4374 return _controls_
.ListEvent_GetText(*args
, **kwargs
)
4376 def GetImage(*args
, **kwargs
):
4377 """GetImage(self) -> int"""
4378 return _controls_
.ListEvent_GetImage(*args
, **kwargs
)
4380 def GetData(*args
, **kwargs
):
4381 """GetData(self) -> long"""
4382 return _controls_
.ListEvent_GetData(*args
, **kwargs
)
4384 def GetMask(*args
, **kwargs
):
4385 """GetMask(self) -> long"""
4386 return _controls_
.ListEvent_GetMask(*args
, **kwargs
)
4388 def GetItem(*args
, **kwargs
):
4389 """GetItem(self) -> ListItem"""
4390 return _controls_
.ListEvent_GetItem(*args
, **kwargs
)
4392 def GetCacheFrom(*args
, **kwargs
):
4393 """GetCacheFrom(self) -> long"""
4394 return _controls_
.ListEvent_GetCacheFrom(*args
, **kwargs
)
4396 def GetCacheTo(*args
, **kwargs
):
4397 """GetCacheTo(self) -> long"""
4398 return _controls_
.ListEvent_GetCacheTo(*args
, **kwargs
)
4400 def IsEditCancelled(*args
, **kwargs
):
4401 """IsEditCancelled(self) -> bool"""
4402 return _controls_
.ListEvent_IsEditCancelled(*args
, **kwargs
)
4404 def SetEditCanceled(*args
, **kwargs
):
4405 """SetEditCanceled(self, bool editCancelled)"""
4406 return _controls_
.ListEvent_SetEditCanceled(*args
, **kwargs
)
4409 class ListEventPtr(ListEvent
):
4410 def __init__(self
, this
):
4412 if not hasattr(self
,"thisown"): self
.thisown
= 0
4413 self
.__class
__ = ListEvent
4414 _controls_
.ListEvent_swigregister(ListEventPtr
)
4416 wxEVT_COMMAND_LIST_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_DRAG
4417 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
4418 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
4419 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
4420 wxEVT_COMMAND_LIST_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ITEM
4421 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= _controls_
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
4422 wxEVT_COMMAND_LIST_GET_INFO
= _controls_
.wxEVT_COMMAND_LIST_GET_INFO
4423 wxEVT_COMMAND_LIST_SET_INFO
= _controls_
.wxEVT_COMMAND_LIST_SET_INFO
4424 wxEVT_COMMAND_LIST_ITEM_SELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_SELECTED
4425 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
4426 wxEVT_COMMAND_LIST_KEY_DOWN
= _controls_
.wxEVT_COMMAND_LIST_KEY_DOWN
4427 wxEVT_COMMAND_LIST_INSERT_ITEM
= _controls_
.wxEVT_COMMAND_LIST_INSERT_ITEM
4428 wxEVT_COMMAND_LIST_COL_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_CLICK
4429 wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
4430 wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
4431 wxEVT_COMMAND_LIST_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_ACTIVATED
4432 wxEVT_COMMAND_LIST_CACHE_HINT
= _controls_
.wxEVT_COMMAND_LIST_CACHE_HINT
4433 wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
4434 wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
4435 wxEVT_COMMAND_LIST_COL_DRAGGING
= _controls_
.wxEVT_COMMAND_LIST_COL_DRAGGING
4436 wxEVT_COMMAND_LIST_COL_END_DRAG
= _controls_
.wxEVT_COMMAND_LIST_COL_END_DRAG
4437 wxEVT_COMMAND_LIST_ITEM_FOCUSED
= _controls_
.wxEVT_COMMAND_LIST_ITEM_FOCUSED
4438 EVT_LIST_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_DRAG
, 1)
4439 EVT_LIST_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_RDRAG
, 1)
4440 EVT_LIST_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, 1)
4441 EVT_LIST_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_END_LABEL_EDIT
, 1)
4442 EVT_LIST_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ITEM
, 1)
4443 EVT_LIST_DELETE_ALL_ITEMS
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, 1)
4444 EVT_LIST_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_GET_INFO
, 1)
4445 EVT_LIST_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_SET_INFO
, 1)
4446 EVT_LIST_ITEM_SELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_SELECTED
, 1)
4447 EVT_LIST_ITEM_DESELECTED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_DESELECTED
, 1)
4448 EVT_LIST_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_KEY_DOWN
, 1)
4449 EVT_LIST_INSERT_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_INSERT_ITEM
, 1)
4450 EVT_LIST_COL_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_CLICK
, 1)
4451 EVT_LIST_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK
, 1)
4452 EVT_LIST_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK
, 1)
4453 EVT_LIST_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_ACTIVATED
, 1)
4454 EVT_LIST_CACHE_HINT
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_CACHE_HINT
, 1)
4455 EVT_LIST_COL_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK
, 1)
4456 EVT_LIST_COL_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG
, 1)
4457 EVT_LIST_COL_DRAGGING
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_DRAGGING
, 1)
4458 EVT_LIST_COL_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_COL_END_DRAG
, 1)
4459 EVT_LIST_ITEM_FOCUSED
= wx
.PyEventBinder(wxEVT_COMMAND_LIST_ITEM_FOCUSED
, 1)
4461 EVT_LIST_GET_INFO
= wx
._deprecated
(EVT_LIST_GET_INFO
)
4462 EVT_LIST_SET_INFO
= wx
._deprecated
(EVT_LIST_SET_INFO
)
4464 #---------------------------------------------------------------------------
4466 class ListCtrl(_core
.Control
):
4467 """Proxy of C++ ListCtrl class"""
4469 return "<%s.%s; proxy of C++ wxPyListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4470 def __init__(self
, *args
, **kwargs
):
4472 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4473 Size size=DefaultSize, long style=LC_ICON,
4474 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListCtrl
4476 newobj
= _controls_
.new_ListCtrl(*args
, **kwargs
)
4477 self
.this
= newobj
.this
4480 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, ListCtrl
)
4482 def Create(*args
, **kwargs
):
4484 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4485 Size size=DefaultSize, long style=LC_ICON,
4486 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4488 Do the 2nd phase and create the GUI control.
4490 return _controls_
.ListCtrl_Create(*args
, **kwargs
)
4492 def _setCallbackInfo(*args
, **kwargs
):
4493 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4494 return _controls_
.ListCtrl__setCallbackInfo(*args
, **kwargs
)
4496 def SetForegroundColour(*args
, **kwargs
):
4498 SetForegroundColour(self, Colour col) -> bool
4500 Sets the foreground colour of the window. Returns True is the colour
4501 was changed. The interpretation of foreground colour is dependent on
4502 the window class; it may be the text colour or other colour, or it may
4505 return _controls_
.ListCtrl_SetForegroundColour(*args
, **kwargs
)
4507 def SetBackgroundColour(*args
, **kwargs
):
4509 SetBackgroundColour(self, Colour col) -> bool
4511 Sets the background colour of the window. Returns True if the colour
4512 was changed. The background colour is usually painted by the default
4513 EVT_ERASE_BACKGROUND event handler function under Windows and
4514 automatically under GTK. Using `wx.NullColour` will reset the window
4515 to the default background colour.
4517 Note that setting the background colour may not cause an immediate
4518 refresh, so you may wish to call `ClearBackground` or `Refresh` after
4519 calling this function.
4521 Using this function will disable attempts to use themes for this
4522 window, if the system supports them. Use with care since usually the
4523 themes represent the appearance chosen by the user to be used for all
4524 applications on the system.
4526 return _controls_
.ListCtrl_SetBackgroundColour(*args
, **kwargs
)
4528 def GetColumn(*args
, **kwargs
):
4529 """GetColumn(self, int col) -> ListItem"""
4530 val
= _controls_
.ListCtrl_GetColumn(*args
, **kwargs
)
4531 if val
is not None: val
.thisown
= 1
4534 def SetColumn(*args
, **kwargs
):
4535 """SetColumn(self, int col, ListItem item) -> bool"""
4536 return _controls_
.ListCtrl_SetColumn(*args
, **kwargs
)
4538 def GetColumnWidth(*args
, **kwargs
):
4539 """GetColumnWidth(self, int col) -> int"""
4540 return _controls_
.ListCtrl_GetColumnWidth(*args
, **kwargs
)
4542 def SetColumnWidth(*args
, **kwargs
):
4543 """SetColumnWidth(self, int col, int width) -> bool"""
4544 return _controls_
.ListCtrl_SetColumnWidth(*args
, **kwargs
)
4546 def GetCountPerPage(*args
, **kwargs
):
4547 """GetCountPerPage(self) -> int"""
4548 return _controls_
.ListCtrl_GetCountPerPage(*args
, **kwargs
)
4550 def GetViewRect(*args
, **kwargs
):
4551 """GetViewRect(self) -> Rect"""
4552 return _controls_
.ListCtrl_GetViewRect(*args
, **kwargs
)
4554 def GetItem(*args
, **kwargs
):
4555 """GetItem(self, long itemId, int col=0) -> ListItem"""
4556 val
= _controls_
.ListCtrl_GetItem(*args
, **kwargs
)
4557 if val
is not None: val
.thisown
= 1
4560 def SetItem(*args
, **kwargs
):
4561 """SetItem(self, ListItem info) -> bool"""
4562 return _controls_
.ListCtrl_SetItem(*args
, **kwargs
)
4564 def SetStringItem(*args
, **kwargs
):
4565 """SetStringItem(self, long index, int col, String label, int imageId=-1) -> long"""
4566 return _controls_
.ListCtrl_SetStringItem(*args
, **kwargs
)
4568 def GetItemState(*args
, **kwargs
):
4569 """GetItemState(self, long item, long stateMask) -> int"""
4570 return _controls_
.ListCtrl_GetItemState(*args
, **kwargs
)
4572 def SetItemState(*args
, **kwargs
):
4573 """SetItemState(self, long item, long state, long stateMask) -> bool"""
4574 return _controls_
.ListCtrl_SetItemState(*args
, **kwargs
)
4576 def SetItemImage(*args
, **kwargs
):
4577 """SetItemImage(self, long item, int image, int selImage=-1) -> bool"""
4578 return _controls_
.ListCtrl_SetItemImage(*args
, **kwargs
)
4580 def GetItemText(*args
, **kwargs
):
4581 """GetItemText(self, long item) -> String"""
4582 return _controls_
.ListCtrl_GetItemText(*args
, **kwargs
)
4584 def SetItemText(*args
, **kwargs
):
4585 """SetItemText(self, long item, String str)"""
4586 return _controls_
.ListCtrl_SetItemText(*args
, **kwargs
)
4588 def GetItemData(*args
, **kwargs
):
4589 """GetItemData(self, long item) -> long"""
4590 return _controls_
.ListCtrl_GetItemData(*args
, **kwargs
)
4592 def SetItemData(*args
, **kwargs
):
4593 """SetItemData(self, long item, long data) -> bool"""
4594 return _controls_
.ListCtrl_SetItemData(*args
, **kwargs
)
4596 def GetItemPosition(*args
, **kwargs
):
4597 """GetItemPosition(self, long item) -> Point"""
4598 return _controls_
.ListCtrl_GetItemPosition(*args
, **kwargs
)
4600 def GetItemRect(*args
, **kwargs
):
4601 """GetItemRect(self, long item, int code=LIST_RECT_BOUNDS) -> Rect"""
4602 return _controls_
.ListCtrl_GetItemRect(*args
, **kwargs
)
4604 def SetItemPosition(*args
, **kwargs
):
4605 """SetItemPosition(self, long item, Point pos) -> bool"""
4606 return _controls_
.ListCtrl_SetItemPosition(*args
, **kwargs
)
4608 def GetItemCount(*args
, **kwargs
):
4609 """GetItemCount(self) -> int"""
4610 return _controls_
.ListCtrl_GetItemCount(*args
, **kwargs
)
4612 def GetColumnCount(*args
, **kwargs
):
4613 """GetColumnCount(self) -> int"""
4614 return _controls_
.ListCtrl_GetColumnCount(*args
, **kwargs
)
4616 def GetItemSpacing(*args
, **kwargs
):
4617 """GetItemSpacing(self) -> Size"""
4618 return _controls_
.ListCtrl_GetItemSpacing(*args
, **kwargs
)
4620 def SetItemSpacing(*args
, **kwargs
):
4621 """SetItemSpacing(self, int spacing, bool isSmall=False)"""
4622 return _controls_
.ListCtrl_SetItemSpacing(*args
, **kwargs
)
4624 def GetSelectedItemCount(*args
, **kwargs
):
4625 """GetSelectedItemCount(self) -> int"""
4626 return _controls_
.ListCtrl_GetSelectedItemCount(*args
, **kwargs
)
4628 def GetTextColour(*args
, **kwargs
):
4629 """GetTextColour(self) -> Colour"""
4630 return _controls_
.ListCtrl_GetTextColour(*args
, **kwargs
)
4632 def SetTextColour(*args
, **kwargs
):
4633 """SetTextColour(self, Colour col)"""
4634 return _controls_
.ListCtrl_SetTextColour(*args
, **kwargs
)
4636 def GetTopItem(*args
, **kwargs
):
4637 """GetTopItem(self) -> long"""
4638 return _controls_
.ListCtrl_GetTopItem(*args
, **kwargs
)
4640 def SetSingleStyle(*args
, **kwargs
):
4641 """SetSingleStyle(self, long style, bool add=True)"""
4642 return _controls_
.ListCtrl_SetSingleStyle(*args
, **kwargs
)
4644 def SetWindowStyleFlag(*args
, **kwargs
):
4646 SetWindowStyleFlag(self, long style)
4648 Sets the style of the window. Please note that some styles cannot be
4649 changed after the window creation and that Refresh() might need to be
4650 called after changing the others for the change to take place
4653 return _controls_
.ListCtrl_SetWindowStyleFlag(*args
, **kwargs
)
4655 def GetNextItem(*args
, **kwargs
):
4656 """GetNextItem(self, long item, int geometry=LIST_NEXT_ALL, int state=LIST_STATE_DONTCARE) -> long"""
4657 return _controls_
.ListCtrl_GetNextItem(*args
, **kwargs
)
4659 def GetImageList(*args
, **kwargs
):
4660 """GetImageList(self, int which) -> ImageList"""
4661 return _controls_
.ListCtrl_GetImageList(*args
, **kwargs
)
4663 def SetImageList(*args
, **kwargs
):
4664 """SetImageList(self, ImageList imageList, int which)"""
4665 return _controls_
.ListCtrl_SetImageList(*args
, **kwargs
)
4667 def AssignImageList(*args
, **kwargs
):
4668 """AssignImageList(self, ImageList imageList, int which)"""
4669 return _controls_
.ListCtrl_AssignImageList(*args
, **kwargs
)
4671 def InReportView(*args
, **kwargs
):
4672 """InReportView(self) -> bool"""
4673 return _controls_
.ListCtrl_InReportView(*args
, **kwargs
)
4675 def IsVirtual(*args
, **kwargs
):
4676 """IsVirtual(self) -> bool"""
4677 return _controls_
.ListCtrl_IsVirtual(*args
, **kwargs
)
4679 def RefreshItem(*args
, **kwargs
):
4680 """RefreshItem(self, long item)"""
4681 return _controls_
.ListCtrl_RefreshItem(*args
, **kwargs
)
4683 def RefreshItems(*args
, **kwargs
):
4684 """RefreshItems(self, long itemFrom, long itemTo)"""
4685 return _controls_
.ListCtrl_RefreshItems(*args
, **kwargs
)
4687 def Arrange(*args
, **kwargs
):
4688 """Arrange(self, int flag=LIST_ALIGN_DEFAULT) -> bool"""
4689 return _controls_
.ListCtrl_Arrange(*args
, **kwargs
)
4691 def DeleteItem(*args
, **kwargs
):
4692 """DeleteItem(self, long item) -> bool"""
4693 return _controls_
.ListCtrl_DeleteItem(*args
, **kwargs
)
4695 def DeleteAllItems(*args
, **kwargs
):
4696 """DeleteAllItems(self) -> bool"""
4697 return _controls_
.ListCtrl_DeleteAllItems(*args
, **kwargs
)
4699 def DeleteColumn(*args
, **kwargs
):
4700 """DeleteColumn(self, int col) -> bool"""
4701 return _controls_
.ListCtrl_DeleteColumn(*args
, **kwargs
)
4703 def DeleteAllColumns(*args
, **kwargs
):
4704 """DeleteAllColumns(self) -> bool"""
4705 return _controls_
.ListCtrl_DeleteAllColumns(*args
, **kwargs
)
4707 def ClearAll(*args
, **kwargs
):
4708 """ClearAll(self)"""
4709 return _controls_
.ListCtrl_ClearAll(*args
, **kwargs
)
4711 def EditLabel(*args
, **kwargs
):
4712 """EditLabel(self, long item)"""
4713 return _controls_
.ListCtrl_EditLabel(*args
, **kwargs
)
4715 def EnsureVisible(*args
, **kwargs
):
4716 """EnsureVisible(self, long item) -> bool"""
4717 return _controls_
.ListCtrl_EnsureVisible(*args
, **kwargs
)
4719 def FindItem(*args
, **kwargs
):
4720 """FindItem(self, long start, String str, bool partial=False) -> long"""
4721 return _controls_
.ListCtrl_FindItem(*args
, **kwargs
)
4723 def FindItemData(*args
, **kwargs
):
4724 """FindItemData(self, long start, long data) -> long"""
4725 return _controls_
.ListCtrl_FindItemData(*args
, **kwargs
)
4727 def FindItemAtPos(*args
, **kwargs
):
4728 """FindItemAtPos(self, long start, Point pt, int direction) -> long"""
4729 return _controls_
.ListCtrl_FindItemAtPos(*args
, **kwargs
)
4731 def HitTest(*args
, **kwargs
):
4733 HitTest(Point point) -> (item, where)
4735 Determines which item (if any) is at the specified point, giving
4736 in the second return value (see wxLIST_HITTEST_... flags.)
4738 return _controls_
.ListCtrl_HitTest(*args
, **kwargs
)
4740 def InsertItem(*args
, **kwargs
):
4741 """InsertItem(self, ListItem info) -> long"""
4742 return _controls_
.ListCtrl_InsertItem(*args
, **kwargs
)
4744 def InsertStringItem(*args
, **kwargs
):
4745 """InsertStringItem(self, long index, String label) -> long"""
4746 return _controls_
.ListCtrl_InsertStringItem(*args
, **kwargs
)
4748 def InsertImageItem(*args
, **kwargs
):
4749 """InsertImageItem(self, long index, int imageIndex) -> long"""
4750 return _controls_
.ListCtrl_InsertImageItem(*args
, **kwargs
)
4752 def InsertImageStringItem(*args
, **kwargs
):
4753 """InsertImageStringItem(self, long index, String label, int imageIndex) -> long"""
4754 return _controls_
.ListCtrl_InsertImageStringItem(*args
, **kwargs
)
4756 def InsertColumnInfo(*args
, **kwargs
):
4757 """InsertColumnInfo(self, long col, ListItem info) -> long"""
4758 return _controls_
.ListCtrl_InsertColumnInfo(*args
, **kwargs
)
4760 def InsertColumn(*args
, **kwargs
):
4762 InsertColumn(self, long col, String heading, int format=LIST_FORMAT_LEFT,
4763 int width=-1) -> long
4765 return _controls_
.ListCtrl_InsertColumn(*args
, **kwargs
)
4767 def SetItemCount(*args
, **kwargs
):
4768 """SetItemCount(self, long count)"""
4769 return _controls_
.ListCtrl_SetItemCount(*args
, **kwargs
)
4771 def ScrollList(*args
, **kwargs
):
4772 """ScrollList(self, int dx, int dy) -> bool"""
4773 return _controls_
.ListCtrl_ScrollList(*args
, **kwargs
)
4775 def SetItemTextColour(*args
, **kwargs
):
4776 """SetItemTextColour(self, long item, Colour col)"""
4777 return _controls_
.ListCtrl_SetItemTextColour(*args
, **kwargs
)
4779 def GetItemTextColour(*args
, **kwargs
):
4780 """GetItemTextColour(self, long item) -> Colour"""
4781 return _controls_
.ListCtrl_GetItemTextColour(*args
, **kwargs
)
4783 def SetItemBackgroundColour(*args
, **kwargs
):
4784 """SetItemBackgroundColour(self, long item, Colour col)"""
4785 return _controls_
.ListCtrl_SetItemBackgroundColour(*args
, **kwargs
)
4787 def GetItemBackgroundColour(*args
, **kwargs
):
4788 """GetItemBackgroundColour(self, long item) -> Colour"""
4789 return _controls_
.ListCtrl_GetItemBackgroundColour(*args
, **kwargs
)
4793 def Select(self
, idx
, on
=1):
4794 '''[de]select an item'''
4795 if on
: state
= wx
.LIST_STATE_SELECTED
4797 self
.SetItemState(idx
, state
, wx
.LIST_STATE_SELECTED
)
4799 def Focus(self
, idx
):
4800 '''Focus and show the given item'''
4801 self
.SetItemState(idx
, wx
.LIST_STATE_FOCUSED
, wx
.LIST_STATE_FOCUSED
)
4802 self
.EnsureVisible(idx
)
4804 def GetFocusedItem(self
):
4805 '''get the currently focused item or -1 if none'''
4806 return self
.GetNextItem(-1, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_FOCUSED
)
4808 def GetFirstSelected(self
, *args
):
4809 '''return first selected item, or -1 when none'''
4810 return self
.GetNextSelected(-1)
4812 def GetNextSelected(self
, item
):
4813 '''return subsequent selected items, or -1 when no more'''
4814 return self
.GetNextItem(item
, wx
.LIST_NEXT_ALL
, wx
.LIST_STATE_SELECTED
)
4816 def IsSelected(self
, idx
):
4817 '''return True if the item is selected'''
4818 return self
.GetItemState(idx
, wx
.LIST_STATE_SELECTED
) != 0
4820 def SetColumnImage(self
, col
, image
):
4821 item
= self
.GetColumn(col
)
4822 # preserve all other attributes too
4823 item
.SetMask( wx
.LIST_MASK_STATE |
4825 wx
.LIST_MASK_IMAGE |
4828 wx
.LIST_MASK_WIDTH |
4829 wx
.LIST_MASK_FORMAT
)
4830 item
.SetImage(image
)
4831 self
.SetColumn(col
, item
)
4833 def ClearColumnImage(self
, col
):
4834 self
.SetColumnImage(col
, -1)
4836 def Append(self
, entry
):
4837 '''Append an item to the list control. The entry parameter should be a
4838 sequence with an item for each column'''
4844 pos
= self
.GetItemCount()
4845 self
.InsertStringItem(pos
, cvtfunc(entry
[0]))
4846 for i
in range(1, len(entry
)):
4847 self
.SetStringItem(pos
, i
, cvtfunc(entry
[i
]))
4850 def SortItems(*args
, **kwargs
):
4851 """SortItems(self, PyObject func) -> bool"""
4852 return _controls_
.ListCtrl_SortItems(*args
, **kwargs
)
4854 def GetMainWindow(*args
, **kwargs
):
4855 """GetMainWindow(self) -> Window"""
4856 return _controls_
.ListCtrl_GetMainWindow(*args
, **kwargs
)
4858 def GetClassDefaultAttributes(*args
, **kwargs
):
4860 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4862 Get the default attributes for this class. This is useful if you want
4863 to use the same font or colour in your own control as in a standard
4864 control -- which is a much better idea than hard coding specific
4865 colours or fonts which might look completely out of place on the
4866 user's system, especially if it uses themes.
4868 The variant parameter is only relevant under Mac currently and is
4869 ignore under other platforms. Under Mac, it will change the size of
4870 the returned font. See `wx.Window.SetWindowVariant` for more about
4873 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4875 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
4877 class ListCtrlPtr(ListCtrl
):
4878 def __init__(self
, this
):
4880 if not hasattr(self
,"thisown"): self
.thisown
= 0
4881 self
.__class
__ = ListCtrl
4882 _controls_
.ListCtrl_swigregister(ListCtrlPtr
)
4884 def PreListCtrl(*args
, **kwargs
):
4885 """PreListCtrl() -> ListCtrl"""
4886 val
= _controls_
.new_PreListCtrl(*args
, **kwargs
)
4890 def ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
4892 ListCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
4894 Get the default attributes for this class. This is useful if you want
4895 to use the same font or colour in your own control as in a standard
4896 control -- which is a much better idea than hard coding specific
4897 colours or fonts which might look completely out of place on the
4898 user's system, especially if it uses themes.
4900 The variant parameter is only relevant under Mac currently and is
4901 ignore under other platforms. Under Mac, it will change the size of
4902 the returned font. See `wx.Window.SetWindowVariant` for more about
4905 return _controls_
.ListCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
4907 #---------------------------------------------------------------------------
4909 class ListView(ListCtrl
):
4910 """Proxy of C++ ListView class"""
4912 return "<%s.%s; proxy of C++ wxListView instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4913 def __init__(self
, *args
, **kwargs
):
4915 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4916 Size size=DefaultSize, long style=LC_REPORT,
4917 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> ListView
4919 newobj
= _controls_
.new_ListView(*args
, **kwargs
)
4920 self
.this
= newobj
.this
4923 self
._setOORInfo
(self
)
4925 def Create(*args
, **kwargs
):
4927 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
4928 Size size=DefaultSize, long style=LC_REPORT,
4929 Validator validator=DefaultValidator, String name=ListCtrlNameStr) -> bool
4931 Do the 2nd phase and create the GUI control.
4933 return _controls_
.ListView_Create(*args
, **kwargs
)
4935 def Select(*args
, **kwargs
):
4936 """Select(self, long n, bool on=True)"""
4937 return _controls_
.ListView_Select(*args
, **kwargs
)
4939 def Focus(*args
, **kwargs
):
4940 """Focus(self, long index)"""
4941 return _controls_
.ListView_Focus(*args
, **kwargs
)
4943 def GetFocusedItem(*args
, **kwargs
):
4944 """GetFocusedItem(self) -> long"""
4945 return _controls_
.ListView_GetFocusedItem(*args
, **kwargs
)
4947 def GetNextSelected(*args
, **kwargs
):
4948 """GetNextSelected(self, long item) -> long"""
4949 return _controls_
.ListView_GetNextSelected(*args
, **kwargs
)
4951 def GetFirstSelected(*args
, **kwargs
):
4952 """GetFirstSelected(self) -> long"""
4953 return _controls_
.ListView_GetFirstSelected(*args
, **kwargs
)
4955 def IsSelected(*args
, **kwargs
):
4956 """IsSelected(self, long index) -> bool"""
4957 return _controls_
.ListView_IsSelected(*args
, **kwargs
)
4959 def SetColumnImage(*args
, **kwargs
):
4960 """SetColumnImage(self, int col, int image)"""
4961 return _controls_
.ListView_SetColumnImage(*args
, **kwargs
)
4963 def ClearColumnImage(*args
, **kwargs
):
4964 """ClearColumnImage(self, int col)"""
4965 return _controls_
.ListView_ClearColumnImage(*args
, **kwargs
)
4968 class ListViewPtr(ListView
):
4969 def __init__(self
, this
):
4971 if not hasattr(self
,"thisown"): self
.thisown
= 0
4972 self
.__class
__ = ListView
4973 _controls_
.ListView_swigregister(ListViewPtr
)
4975 def PreListView(*args
, **kwargs
):
4976 """PreListView() -> ListView"""
4977 val
= _controls_
.new_PreListView(*args
, **kwargs
)
4981 #---------------------------------------------------------------------------
4983 TR_NO_BUTTONS
= _controls_
.TR_NO_BUTTONS
4984 TR_HAS_BUTTONS
= _controls_
.TR_HAS_BUTTONS
4985 TR_NO_LINES
= _controls_
.TR_NO_LINES
4986 TR_LINES_AT_ROOT
= _controls_
.TR_LINES_AT_ROOT
4987 TR_SINGLE
= _controls_
.TR_SINGLE
4988 TR_MULTIPLE
= _controls_
.TR_MULTIPLE
4989 TR_EXTENDED
= _controls_
.TR_EXTENDED
4990 TR_HAS_VARIABLE_ROW_HEIGHT
= _controls_
.TR_HAS_VARIABLE_ROW_HEIGHT
4991 TR_EDIT_LABELS
= _controls_
.TR_EDIT_LABELS
4992 TR_HIDE_ROOT
= _controls_
.TR_HIDE_ROOT
4993 TR_ROW_LINES
= _controls_
.TR_ROW_LINES
4994 TR_FULL_ROW_HIGHLIGHT
= _controls_
.TR_FULL_ROW_HIGHLIGHT
4995 TR_DEFAULT_STYLE
= _controls_
.TR_DEFAULT_STYLE
4996 TR_TWIST_BUTTONS
= _controls_
.TR_TWIST_BUTTONS
4997 TR_MAC_BUTTONS
= _controls_
.TR_MAC_BUTTONS
4998 TR_AQUA_BUTTONS
= _controls_
.TR_AQUA_BUTTONS
4999 TreeItemIcon_Normal
= _controls_
.TreeItemIcon_Normal
5000 TreeItemIcon_Selected
= _controls_
.TreeItemIcon_Selected
5001 TreeItemIcon_Expanded
= _controls_
.TreeItemIcon_Expanded
5002 TreeItemIcon_SelectedExpanded
= _controls_
.TreeItemIcon_SelectedExpanded
5003 TreeItemIcon_Max
= _controls_
.TreeItemIcon_Max
5004 TREE_HITTEST_ABOVE
= _controls_
.TREE_HITTEST_ABOVE
5005 TREE_HITTEST_BELOW
= _controls_
.TREE_HITTEST_BELOW
5006 TREE_HITTEST_NOWHERE
= _controls_
.TREE_HITTEST_NOWHERE
5007 TREE_HITTEST_ONITEMBUTTON
= _controls_
.TREE_HITTEST_ONITEMBUTTON
5008 TREE_HITTEST_ONITEMICON
= _controls_
.TREE_HITTEST_ONITEMICON
5009 TREE_HITTEST_ONITEMINDENT
= _controls_
.TREE_HITTEST_ONITEMINDENT
5010 TREE_HITTEST_ONITEMLABEL
= _controls_
.TREE_HITTEST_ONITEMLABEL
5011 TREE_HITTEST_ONITEMRIGHT
= _controls_
.TREE_HITTEST_ONITEMRIGHT
5012 TREE_HITTEST_ONITEMSTATEICON
= _controls_
.TREE_HITTEST_ONITEMSTATEICON
5013 TREE_HITTEST_TOLEFT
= _controls_
.TREE_HITTEST_TOLEFT
5014 TREE_HITTEST_TORIGHT
= _controls_
.TREE_HITTEST_TORIGHT
5015 TREE_HITTEST_ONITEMUPPERPART
= _controls_
.TREE_HITTEST_ONITEMUPPERPART
5016 TREE_HITTEST_ONITEMLOWERPART
= _controls_
.TREE_HITTEST_ONITEMLOWERPART
5017 TREE_HITTEST_ONITEM
= _controls_
.TREE_HITTEST_ONITEM
5018 #---------------------------------------------------------------------------
5020 class TreeItemId(object):
5021 """Proxy of C++ TreeItemId class"""
5023 return "<%s.%s; proxy of C++ wxTreeItemId instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5024 def __init__(self
, *args
, **kwargs
):
5025 """__init__(self) -> TreeItemId"""
5026 newobj
= _controls_
.new_TreeItemId(*args
, **kwargs
)
5027 self
.this
= newobj
.this
5030 def __del__(self
, destroy
=_controls_
.delete_TreeItemId
):
5033 if self
.thisown
: destroy(self
)
5036 def IsOk(*args
, **kwargs
):
5037 """IsOk(self) -> bool"""
5038 return _controls_
.TreeItemId_IsOk(*args
, **kwargs
)
5040 def __eq__(*args
, **kwargs
):
5041 """__eq__(self, TreeItemId other) -> bool"""
5042 return _controls_
.TreeItemId___eq__(*args
, **kwargs
)
5044 def __ne__(*args
, **kwargs
):
5045 """__ne__(self, TreeItemId other) -> bool"""
5046 return _controls_
.TreeItemId___ne__(*args
, **kwargs
)
5048 m_pItem
= property(_controls_
.TreeItemId_m_pItem_get
, _controls_
.TreeItemId_m_pItem_set
)
5050 def __nonzero__(self
): return self
.IsOk()
5052 class TreeItemIdPtr(TreeItemId
):
5053 def __init__(self
, this
):
5055 if not hasattr(self
,"thisown"): self
.thisown
= 0
5056 self
.__class
__ = TreeItemId
5057 _controls_
.TreeItemId_swigregister(TreeItemIdPtr
)
5058 TreeCtrlNameStr
= cvar
.TreeCtrlNameStr
5060 class TreeItemData(object):
5061 """Proxy of C++ TreeItemData class"""
5063 return "<%s.%s; proxy of C++ wxPyTreeItemData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5064 def __init__(self
, *args
, **kwargs
):
5065 """__init__(self, PyObject obj=None) -> TreeItemData"""
5066 newobj
= _controls_
.new_TreeItemData(*args
, **kwargs
)
5067 self
.this
= newobj
.this
5070 def GetData(*args
, **kwargs
):
5071 """GetData(self) -> PyObject"""
5072 return _controls_
.TreeItemData_GetData(*args
, **kwargs
)
5074 def SetData(*args
, **kwargs
):
5075 """SetData(self, PyObject obj)"""
5076 return _controls_
.TreeItemData_SetData(*args
, **kwargs
)
5078 def GetId(*args
, **kwargs
):
5079 """GetId(self) -> TreeItemId"""
5080 return _controls_
.TreeItemData_GetId(*args
, **kwargs
)
5082 def SetId(*args
, **kwargs
):
5083 """SetId(self, TreeItemId id)"""
5084 return _controls_
.TreeItemData_SetId(*args
, **kwargs
)
5086 def Destroy(*args
, **kwargs
):
5088 return _controls_
.TreeItemData_Destroy(*args
, **kwargs
)
5091 class TreeItemDataPtr(TreeItemData
):
5092 def __init__(self
, this
):
5094 if not hasattr(self
,"thisown"): self
.thisown
= 0
5095 self
.__class
__ = TreeItemData
5096 _controls_
.TreeItemData_swigregister(TreeItemDataPtr
)
5098 #---------------------------------------------------------------------------
5100 wxEVT_COMMAND_TREE_BEGIN_DRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_DRAG
5101 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
5102 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
5103 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= _controls_
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
5104 wxEVT_COMMAND_TREE_DELETE_ITEM
= _controls_
.wxEVT_COMMAND_TREE_DELETE_ITEM
5105 wxEVT_COMMAND_TREE_GET_INFO
= _controls_
.wxEVT_COMMAND_TREE_GET_INFO
5106 wxEVT_COMMAND_TREE_SET_INFO
= _controls_
.wxEVT_COMMAND_TREE_SET_INFO
5107 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
5108 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
5109 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
5110 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= _controls_
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
5111 wxEVT_COMMAND_TREE_SEL_CHANGED
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGED
5112 wxEVT_COMMAND_TREE_SEL_CHANGING
= _controls_
.wxEVT_COMMAND_TREE_SEL_CHANGING
5113 wxEVT_COMMAND_TREE_KEY_DOWN
= _controls_
.wxEVT_COMMAND_TREE_KEY_DOWN
5114 wxEVT_COMMAND_TREE_ITEM_ACTIVATED
= _controls_
.wxEVT_COMMAND_TREE_ITEM_ACTIVATED
5115 wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
5116 wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
5117 wxEVT_COMMAND_TREE_END_DRAG
= _controls_
.wxEVT_COMMAND_TREE_END_DRAG
5118 wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
= _controls_
.wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
5119 wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
= _controls_
.wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
5120 wxEVT_COMMAND_TREE_ITEM_MENU
= _controls_
.wxEVT_COMMAND_TREE_ITEM_MENU
5121 EVT_TREE_BEGIN_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_DRAG
, 1)
5122 EVT_TREE_BEGIN_RDRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_RDRAG
, 1)
5123 EVT_TREE_BEGIN_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, 1)
5124 EVT_TREE_END_LABEL_EDIT
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_LABEL_EDIT
, 1)
5125 EVT_TREE_DELETE_ITEM
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_DELETE_ITEM
, 1)
5126 EVT_TREE_GET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_GET_INFO
, 1)
5127 EVT_TREE_SET_INFO
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SET_INFO
, 1)
5128 EVT_TREE_ITEM_EXPANDED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDED
, 1)
5129 EVT_TREE_ITEM_EXPANDING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_EXPANDING
, 1)
5130 EVT_TREE_ITEM_COLLAPSED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, 1)
5131 EVT_TREE_ITEM_COLLAPSING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, 1)
5132 EVT_TREE_SEL_CHANGED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGED
, 1)
5133 EVT_TREE_SEL_CHANGING
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_SEL_CHANGING
, 1)
5134 EVT_TREE_KEY_DOWN
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_KEY_DOWN
, 1)
5135 EVT_TREE_ITEM_ACTIVATED
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_ACTIVATED
, 1)
5136 EVT_TREE_ITEM_RIGHT_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK
, 1)
5137 EVT_TREE_ITEM_MIDDLE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK
, 1)
5138 EVT_TREE_END_DRAG
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG
, 1)
5139 EVT_TREE_STATE_IMAGE_CLICK
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK
, 1)
5140 EVT_TREE_ITEM_GETTOOLTIP
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP
, 1)
5141 EVT_COMMAND_TREE_ITEM_MENU
= wx
.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MENU
, 1)
5143 class TreeEvent(_core
.NotifyEvent
):
5144 """Proxy of C++ TreeEvent class"""
5146 return "<%s.%s; proxy of C++ wxTreeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5147 def __init__(self
, *args
, **kwargs
):
5148 """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> TreeEvent"""
5149 newobj
= _controls_
.new_TreeEvent(*args
, **kwargs
)
5150 self
.this
= newobj
.this
5153 def GetItem(*args
, **kwargs
):
5154 """GetItem(self) -> TreeItemId"""
5155 return _controls_
.TreeEvent_GetItem(*args
, **kwargs
)
5157 def SetItem(*args
, **kwargs
):
5158 """SetItem(self, TreeItemId item)"""
5159 return _controls_
.TreeEvent_SetItem(*args
, **kwargs
)
5161 def GetOldItem(*args
, **kwargs
):
5162 """GetOldItem(self) -> TreeItemId"""
5163 return _controls_
.TreeEvent_GetOldItem(*args
, **kwargs
)
5165 def SetOldItem(*args
, **kwargs
):
5166 """SetOldItem(self, TreeItemId item)"""
5167 return _controls_
.TreeEvent_SetOldItem(*args
, **kwargs
)
5169 def GetPoint(*args
, **kwargs
):
5170 """GetPoint(self) -> Point"""
5171 return _controls_
.TreeEvent_GetPoint(*args
, **kwargs
)
5173 def SetPoint(*args
, **kwargs
):
5174 """SetPoint(self, Point pt)"""
5175 return _controls_
.TreeEvent_SetPoint(*args
, **kwargs
)
5177 def GetKeyEvent(*args
, **kwargs
):
5178 """GetKeyEvent(self) -> KeyEvent"""
5179 return _controls_
.TreeEvent_GetKeyEvent(*args
, **kwargs
)
5181 def GetKeyCode(*args
, **kwargs
):
5182 """GetKeyCode(self) -> int"""
5183 return _controls_
.TreeEvent_GetKeyCode(*args
, **kwargs
)
5185 def SetKeyEvent(*args
, **kwargs
):
5186 """SetKeyEvent(self, KeyEvent evt)"""
5187 return _controls_
.TreeEvent_SetKeyEvent(*args
, **kwargs
)
5189 def GetLabel(*args
, **kwargs
):
5190 """GetLabel(self) -> String"""
5191 return _controls_
.TreeEvent_GetLabel(*args
, **kwargs
)
5193 def SetLabel(*args
, **kwargs
):
5194 """SetLabel(self, String label)"""
5195 return _controls_
.TreeEvent_SetLabel(*args
, **kwargs
)
5197 def IsEditCancelled(*args
, **kwargs
):
5198 """IsEditCancelled(self) -> bool"""
5199 return _controls_
.TreeEvent_IsEditCancelled(*args
, **kwargs
)
5201 def SetEditCanceled(*args
, **kwargs
):
5202 """SetEditCanceled(self, bool editCancelled)"""
5203 return _controls_
.TreeEvent_SetEditCanceled(*args
, **kwargs
)
5205 def SetToolTip(*args
, **kwargs
):
5206 """SetToolTip(self, String toolTip)"""
5207 return _controls_
.TreeEvent_SetToolTip(*args
, **kwargs
)
5210 class TreeEventPtr(TreeEvent
):
5211 def __init__(self
, this
):
5213 if not hasattr(self
,"thisown"): self
.thisown
= 0
5214 self
.__class
__ = TreeEvent
5215 _controls_
.TreeEvent_swigregister(TreeEventPtr
)
5217 #---------------------------------------------------------------------------
5219 class TreeCtrl(_core
.Control
):
5220 """Proxy of C++ TreeCtrl class"""
5222 return "<%s.%s; proxy of C++ wxPyTreeCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5223 def __init__(self
, *args
, **kwargs
):
5225 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5226 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5227 Validator validator=DefaultValidator,
5228 String name=TreeCtrlNameStr) -> TreeCtrl
5230 newobj
= _controls_
.new_TreeCtrl(*args
, **kwargs
)
5231 self
.this
= newobj
.this
5234 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, TreeCtrl
)
5236 def Create(*args
, **kwargs
):
5238 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
5239 Size size=DefaultSize, long style=TR_DEFAULT_STYLE,
5240 Validator validator=DefaultValidator,
5241 String name=TreeCtrlNameStr) -> bool
5243 Do the 2nd phase and create the GUI control.
5245 return _controls_
.TreeCtrl_Create(*args
, **kwargs
)
5247 def _setCallbackInfo(*args
, **kwargs
):
5248 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5249 return _controls_
.TreeCtrl__setCallbackInfo(*args
, **kwargs
)
5251 def GetCount(*args
, **kwargs
):
5252 """GetCount(self) -> size_t"""
5253 return _controls_
.TreeCtrl_GetCount(*args
, **kwargs
)
5255 def GetIndent(*args
, **kwargs
):
5256 """GetIndent(self) -> unsigned int"""
5257 return _controls_
.TreeCtrl_GetIndent(*args
, **kwargs
)
5259 def SetIndent(*args
, **kwargs
):
5260 """SetIndent(self, unsigned int indent)"""
5261 return _controls_
.TreeCtrl_SetIndent(*args
, **kwargs
)
5263 def GetSpacing(*args
, **kwargs
):
5264 """GetSpacing(self) -> unsigned int"""
5265 return _controls_
.TreeCtrl_GetSpacing(*args
, **kwargs
)
5267 def SetSpacing(*args
, **kwargs
):
5268 """SetSpacing(self, unsigned int spacing)"""
5269 return _controls_
.TreeCtrl_SetSpacing(*args
, **kwargs
)
5271 def GetImageList(*args
, **kwargs
):
5272 """GetImageList(self) -> ImageList"""
5273 return _controls_
.TreeCtrl_GetImageList(*args
, **kwargs
)
5275 def GetStateImageList(*args
, **kwargs
):
5276 """GetStateImageList(self) -> ImageList"""
5277 return _controls_
.TreeCtrl_GetStateImageList(*args
, **kwargs
)
5279 def SetImageList(*args
, **kwargs
):
5280 """SetImageList(self, ImageList imageList)"""
5281 return _controls_
.TreeCtrl_SetImageList(*args
, **kwargs
)
5283 def SetStateImageList(*args
, **kwargs
):
5284 """SetStateImageList(self, ImageList imageList)"""
5285 return _controls_
.TreeCtrl_SetStateImageList(*args
, **kwargs
)
5287 def AssignImageList(*args
, **kwargs
):
5288 """AssignImageList(self, ImageList imageList)"""
5289 return _controls_
.TreeCtrl_AssignImageList(*args
, **kwargs
)
5291 def AssignStateImageList(*args
, **kwargs
):
5292 """AssignStateImageList(self, ImageList imageList)"""
5293 return _controls_
.TreeCtrl_AssignStateImageList(*args
, **kwargs
)
5295 def GetItemText(*args
, **kwargs
):
5296 """GetItemText(self, TreeItemId item) -> String"""
5297 return _controls_
.TreeCtrl_GetItemText(*args
, **kwargs
)
5299 def GetItemImage(*args
, **kwargs
):
5300 """GetItemImage(self, TreeItemId item, int which=TreeItemIcon_Normal) -> int"""
5301 return _controls_
.TreeCtrl_GetItemImage(*args
, **kwargs
)
5303 def GetItemData(*args
, **kwargs
):
5304 """GetItemData(self, TreeItemId item) -> TreeItemData"""
5305 return _controls_
.TreeCtrl_GetItemData(*args
, **kwargs
)
5307 def GetItemPyData(*args
, **kwargs
):
5308 """GetItemPyData(self, TreeItemId item) -> PyObject"""
5309 return _controls_
.TreeCtrl_GetItemPyData(*args
, **kwargs
)
5311 GetPyData
= GetItemPyData
5312 def GetItemTextColour(*args
, **kwargs
):
5313 """GetItemTextColour(self, TreeItemId item) -> Colour"""
5314 return _controls_
.TreeCtrl_GetItemTextColour(*args
, **kwargs
)
5316 def GetItemBackgroundColour(*args
, **kwargs
):
5317 """GetItemBackgroundColour(self, TreeItemId item) -> Colour"""
5318 return _controls_
.TreeCtrl_GetItemBackgroundColour(*args
, **kwargs
)
5320 def GetItemFont(*args
, **kwargs
):
5321 """GetItemFont(self, TreeItemId item) -> Font"""
5322 return _controls_
.TreeCtrl_GetItemFont(*args
, **kwargs
)
5324 def SetItemText(*args
, **kwargs
):
5325 """SetItemText(self, TreeItemId item, String text)"""
5326 return _controls_
.TreeCtrl_SetItemText(*args
, **kwargs
)
5328 def SetItemImage(*args
, **kwargs
):
5329 """SetItemImage(self, TreeItemId item, int image, int which=TreeItemIcon_Normal)"""
5330 return _controls_
.TreeCtrl_SetItemImage(*args
, **kwargs
)
5332 def SetItemData(*args
, **kwargs
):
5333 """SetItemData(self, TreeItemId item, TreeItemData data)"""
5334 return _controls_
.TreeCtrl_SetItemData(*args
, **kwargs
)
5336 def SetItemPyData(*args
, **kwargs
):
5337 """SetItemPyData(self, TreeItemId item, PyObject obj)"""
5338 return _controls_
.TreeCtrl_SetItemPyData(*args
, **kwargs
)
5340 SetPyData
= SetItemPyData
5341 def SetItemHasChildren(*args
, **kwargs
):
5342 """SetItemHasChildren(self, TreeItemId item, bool has=True)"""
5343 return _controls_
.TreeCtrl_SetItemHasChildren(*args
, **kwargs
)
5345 def SetItemBold(*args
, **kwargs
):
5346 """SetItemBold(self, TreeItemId item, bool bold=True)"""
5347 return _controls_
.TreeCtrl_SetItemBold(*args
, **kwargs
)
5349 def SetItemTextColour(*args
, **kwargs
):
5350 """SetItemTextColour(self, TreeItemId item, Colour col)"""
5351 return _controls_
.TreeCtrl_SetItemTextColour(*args
, **kwargs
)
5353 def SetItemBackgroundColour(*args
, **kwargs
):
5354 """SetItemBackgroundColour(self, TreeItemId item, Colour col)"""
5355 return _controls_
.TreeCtrl_SetItemBackgroundColour(*args
, **kwargs
)
5357 def SetItemFont(*args
, **kwargs
):
5358 """SetItemFont(self, TreeItemId item, Font font)"""
5359 return _controls_
.TreeCtrl_SetItemFont(*args
, **kwargs
)
5361 def IsVisible(*args
, **kwargs
):
5362 """IsVisible(self, TreeItemId item) -> bool"""
5363 return _controls_
.TreeCtrl_IsVisible(*args
, **kwargs
)
5365 def ItemHasChildren(*args
, **kwargs
):
5366 """ItemHasChildren(self, TreeItemId item) -> bool"""
5367 return _controls_
.TreeCtrl_ItemHasChildren(*args
, **kwargs
)
5369 def IsExpanded(*args
, **kwargs
):
5370 """IsExpanded(self, TreeItemId item) -> bool"""
5371 return _controls_
.TreeCtrl_IsExpanded(*args
, **kwargs
)
5373 def IsSelected(*args
, **kwargs
):
5374 """IsSelected(self, TreeItemId item) -> bool"""
5375 return _controls_
.TreeCtrl_IsSelected(*args
, **kwargs
)
5377 def IsBold(*args
, **kwargs
):
5378 """IsBold(self, TreeItemId item) -> bool"""
5379 return _controls_
.TreeCtrl_IsBold(*args
, **kwargs
)
5381 def GetChildrenCount(*args
, **kwargs
):
5382 """GetChildrenCount(self, TreeItemId item, bool recursively=True) -> size_t"""
5383 return _controls_
.TreeCtrl_GetChildrenCount(*args
, **kwargs
)
5385 def GetRootItem(*args
, **kwargs
):
5386 """GetRootItem(self) -> TreeItemId"""
5387 return _controls_
.TreeCtrl_GetRootItem(*args
, **kwargs
)
5389 def GetSelection(*args
, **kwargs
):
5390 """GetSelection(self) -> TreeItemId"""
5391 return _controls_
.TreeCtrl_GetSelection(*args
, **kwargs
)
5393 def GetSelections(*args
, **kwargs
):
5394 """GetSelections(self) -> PyObject"""
5395 return _controls_
.TreeCtrl_GetSelections(*args
, **kwargs
)
5397 def GetItemParent(*args
, **kwargs
):
5398 """GetItemParent(self, TreeItemId item) -> TreeItemId"""
5399 return _controls_
.TreeCtrl_GetItemParent(*args
, **kwargs
)
5401 def GetFirstChild(*args
, **kwargs
):
5402 """GetFirstChild(self, TreeItemId item) -> PyObject"""
5403 return _controls_
.TreeCtrl_GetFirstChild(*args
, **kwargs
)
5405 def GetNextChild(*args
, **kwargs
):
5406 """GetNextChild(self, TreeItemId item, void cookie) -> PyObject"""
5407 return _controls_
.TreeCtrl_GetNextChild(*args
, **kwargs
)
5409 def GetLastChild(*args
, **kwargs
):
5410 """GetLastChild(self, TreeItemId item) -> TreeItemId"""
5411 return _controls_
.TreeCtrl_GetLastChild(*args
, **kwargs
)
5413 def GetNextSibling(*args
, **kwargs
):
5414 """GetNextSibling(self, TreeItemId item) -> TreeItemId"""
5415 return _controls_
.TreeCtrl_GetNextSibling(*args
, **kwargs
)
5417 def GetPrevSibling(*args
, **kwargs
):
5418 """GetPrevSibling(self, TreeItemId item) -> TreeItemId"""
5419 return _controls_
.TreeCtrl_GetPrevSibling(*args
, **kwargs
)
5421 def GetFirstVisibleItem(*args
, **kwargs
):
5422 """GetFirstVisibleItem(self) -> TreeItemId"""
5423 return _controls_
.TreeCtrl_GetFirstVisibleItem(*args
, **kwargs
)
5425 def GetNextVisible(*args
, **kwargs
):
5426 """GetNextVisible(self, TreeItemId item) -> TreeItemId"""
5427 return _controls_
.TreeCtrl_GetNextVisible(*args
, **kwargs
)
5429 def GetPrevVisible(*args
, **kwargs
):
5430 """GetPrevVisible(self, TreeItemId item) -> TreeItemId"""
5431 return _controls_
.TreeCtrl_GetPrevVisible(*args
, **kwargs
)
5433 def AddRoot(*args
, **kwargs
):
5434 """AddRoot(self, String text, int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId"""
5435 return _controls_
.TreeCtrl_AddRoot(*args
, **kwargs
)
5437 def PrependItem(*args
, **kwargs
):
5439 PrependItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5440 TreeItemData data=None) -> TreeItemId
5442 return _controls_
.TreeCtrl_PrependItem(*args
, **kwargs
)
5444 def InsertItem(*args
, **kwargs
):
5446 InsertItem(self, TreeItemId parent, TreeItemId idPrevious, String text,
5447 int image=-1, int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5449 return _controls_
.TreeCtrl_InsertItem(*args
, **kwargs
)
5451 def InsertItemBefore(*args
, **kwargs
):
5453 InsertItemBefore(self, TreeItemId parent, size_t index, String text, int image=-1,
5454 int selectedImage=-1, TreeItemData data=None) -> TreeItemId
5456 return _controls_
.TreeCtrl_InsertItemBefore(*args
, **kwargs
)
5458 def AppendItem(*args
, **kwargs
):
5460 AppendItem(self, TreeItemId parent, String text, int image=-1, int selectedImage=-1,
5461 TreeItemData data=None) -> TreeItemId
5463 return _controls_
.TreeCtrl_AppendItem(*args
, **kwargs
)
5465 def Delete(*args
, **kwargs
):
5466 """Delete(self, TreeItemId item)"""
5467 return _controls_
.TreeCtrl_Delete(*args
, **kwargs
)
5469 def DeleteChildren(*args
, **kwargs
):
5470 """DeleteChildren(self, TreeItemId item)"""
5471 return _controls_
.TreeCtrl_DeleteChildren(*args
, **kwargs
)
5473 def DeleteAllItems(*args
, **kwargs
):
5474 """DeleteAllItems(self)"""
5475 return _controls_
.TreeCtrl_DeleteAllItems(*args
, **kwargs
)
5477 def Expand(*args
, **kwargs
):
5478 """Expand(self, TreeItemId item)"""
5479 return _controls_
.TreeCtrl_Expand(*args
, **kwargs
)
5481 def Collapse(*args
, **kwargs
):
5482 """Collapse(self, TreeItemId item)"""
5483 return _controls_
.TreeCtrl_Collapse(*args
, **kwargs
)
5485 def CollapseAndReset(*args
, **kwargs
):
5486 """CollapseAndReset(self, TreeItemId item)"""
5487 return _controls_
.TreeCtrl_CollapseAndReset(*args
, **kwargs
)
5489 def Toggle(*args
, **kwargs
):
5490 """Toggle(self, TreeItemId item)"""
5491 return _controls_
.TreeCtrl_Toggle(*args
, **kwargs
)
5493 def Unselect(*args
, **kwargs
):
5494 """Unselect(self)"""
5495 return _controls_
.TreeCtrl_Unselect(*args
, **kwargs
)
5497 def UnselectItem(*args
, **kwargs
):
5498 """UnselectItem(self, TreeItemId item)"""
5499 return _controls_
.TreeCtrl_UnselectItem(*args
, **kwargs
)
5501 def UnselectAll(*args
, **kwargs
):
5502 """UnselectAll(self)"""
5503 return _controls_
.TreeCtrl_UnselectAll(*args
, **kwargs
)
5505 def SelectItem(*args
, **kwargs
):
5506 """SelectItem(self, TreeItemId item, bool select=True)"""
5507 return _controls_
.TreeCtrl_SelectItem(*args
, **kwargs
)
5509 def ToggleItemSelection(*args
, **kwargs
):
5510 """ToggleItemSelection(self, TreeItemId item)"""
5511 return _controls_
.TreeCtrl_ToggleItemSelection(*args
, **kwargs
)
5513 def EnsureVisible(*args
, **kwargs
):
5514 """EnsureVisible(self, TreeItemId item)"""
5515 return _controls_
.TreeCtrl_EnsureVisible(*args
, **kwargs
)
5517 def ScrollTo(*args
, **kwargs
):
5518 """ScrollTo(self, TreeItemId item)"""
5519 return _controls_
.TreeCtrl_ScrollTo(*args
, **kwargs
)
5521 def EditLabel(*args
, **kwargs
):
5522 """EditLabel(self, TreeItemId item)"""
5523 return _controls_
.TreeCtrl_EditLabel(*args
, **kwargs
)
5525 def GetEditControl(*args
, **kwargs
):
5526 """GetEditControl(self) -> TextCtrl"""
5527 return _controls_
.TreeCtrl_GetEditControl(*args
, **kwargs
)
5529 def SortChildren(*args
, **kwargs
):
5530 """SortChildren(self, TreeItemId item)"""
5531 return _controls_
.TreeCtrl_SortChildren(*args
, **kwargs
)
5533 def HitTest(*args
, **kwargs
):
5535 HitTest(Point point) -> (item, where)
5537 Determine which item (if any) belongs the given point. The coordinates
5538 specified are relative to the client area of tree ctrl and the where return
5539 value is set to a bitmask of wxTREE_HITTEST_xxx constants.
5542 return _controls_
.TreeCtrl_HitTest(*args
, **kwargs
)
5544 def GetBoundingRect(*args
, **kwargs
):
5545 """GetBoundingRect(self, TreeItemId item, bool textOnly=False) -> PyObject"""
5546 return _controls_
.TreeCtrl_GetBoundingRect(*args
, **kwargs
)
5548 def GetClassDefaultAttributes(*args
, **kwargs
):
5550 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5552 Get the default attributes for this class. This is useful if you want
5553 to use the same font or colour in your own control as in a standard
5554 control -- which is a much better idea than hard coding specific
5555 colours or fonts which might look completely out of place on the
5556 user's system, especially if it uses themes.
5558 The variant parameter is only relevant under Mac currently and is
5559 ignore under other platforms. Under Mac, it will change the size of
5560 the returned font. See `wx.Window.SetWindowVariant` for more about
5563 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5565 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
5567 class TreeCtrlPtr(TreeCtrl
):
5568 def __init__(self
, this
):
5570 if not hasattr(self
,"thisown"): self
.thisown
= 0
5571 self
.__class
__ = TreeCtrl
5572 _controls_
.TreeCtrl_swigregister(TreeCtrlPtr
)
5574 def PreTreeCtrl(*args
, **kwargs
):
5575 """PreTreeCtrl() -> TreeCtrl"""
5576 val
= _controls_
.new_PreTreeCtrl(*args
, **kwargs
)
5580 def TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
):
5582 TreeCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
5584 Get the default attributes for this class. This is useful if you want
5585 to use the same font or colour in your own control as in a standard
5586 control -- which is a much better idea than hard coding specific
5587 colours or fonts which might look completely out of place on the
5588 user's system, especially if it uses themes.
5590 The variant parameter is only relevant under Mac currently and is
5591 ignore under other platforms. Under Mac, it will change the size of
5592 the returned font. See `wx.Window.SetWindowVariant` for more about
5595 return _controls_
.TreeCtrl_GetClassDefaultAttributes(*args
, **kwargs
)
5597 #---------------------------------------------------------------------------
5599 DIRCTRL_DIR_ONLY
= _controls_
.DIRCTRL_DIR_ONLY
5600 DIRCTRL_SELECT_FIRST
= _controls_
.DIRCTRL_SELECT_FIRST
5601 DIRCTRL_SHOW_FILTERS
= _controls_
.DIRCTRL_SHOW_FILTERS
5602 DIRCTRL_3D_INTERNAL
= _controls_
.DIRCTRL_3D_INTERNAL
5603 DIRCTRL_EDIT_LABELS
= _controls_
.DIRCTRL_EDIT_LABELS
5604 class GenericDirCtrl(_core
.Control
):
5605 """Proxy of C++ GenericDirCtrl class"""
5607 return "<%s.%s; proxy of C++ wxGenericDirCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5608 def __init__(self
, *args
, **kwargs
):
5610 __init__(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5611 Point pos=DefaultPosition, Size size=DefaultSize,
5612 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5613 String filter=EmptyString,
5614 int defaultFilter=0, String name=TreeCtrlNameStr) -> GenericDirCtrl
5616 newobj
= _controls_
.new_GenericDirCtrl(*args
, **kwargs
)
5617 self
.this
= newobj
.this
5620 self
._setOORInfo
(self
)
5622 def Create(*args
, **kwargs
):
5624 Create(self, Window parent, int id=-1, String dir=DirDialogDefaultFolderStr,
5625 Point pos=DefaultPosition, Size size=DefaultSize,
5626 long style=wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER,
5627 String filter=EmptyString,
5628 int defaultFilter=0, String name=TreeCtrlNameStr) -> bool
5630 return _controls_
.GenericDirCtrl_Create(*args
, **kwargs
)
5632 def ExpandPath(*args
, **kwargs
):
5633 """ExpandPath(self, String path) -> bool"""
5634 return _controls_
.GenericDirCtrl_ExpandPath(*args
, **kwargs
)
5636 def GetDefaultPath(*args
, **kwargs
):
5637 """GetDefaultPath(self) -> String"""
5638 return _controls_
.GenericDirCtrl_GetDefaultPath(*args
, **kwargs
)
5640 def SetDefaultPath(*args
, **kwargs
):
5641 """SetDefaultPath(self, String path)"""
5642 return _controls_
.GenericDirCtrl_SetDefaultPath(*args
, **kwargs
)
5644 def GetPath(*args
, **kwargs
):
5645 """GetPath(self) -> String"""
5646 return _controls_
.GenericDirCtrl_GetPath(*args
, **kwargs
)
5648 def GetFilePath(*args
, **kwargs
):
5649 """GetFilePath(self) -> String"""
5650 return _controls_
.GenericDirCtrl_GetFilePath(*args
, **kwargs
)
5652 def SetPath(*args
, **kwargs
):
5653 """SetPath(self, String path)"""
5654 return _controls_
.GenericDirCtrl_SetPath(*args
, **kwargs
)
5656 def ShowHidden(*args
, **kwargs
):
5657 """ShowHidden(self, bool show)"""
5658 return _controls_
.GenericDirCtrl_ShowHidden(*args
, **kwargs
)
5660 def GetShowHidden(*args
, **kwargs
):
5661 """GetShowHidden(self) -> bool"""
5662 return _controls_
.GenericDirCtrl_GetShowHidden(*args
, **kwargs
)
5664 def GetFilter(*args
, **kwargs
):
5665 """GetFilter(self) -> String"""
5666 return _controls_
.GenericDirCtrl_GetFilter(*args
, **kwargs
)
5668 def SetFilter(*args
, **kwargs
):
5669 """SetFilter(self, String filter)"""
5670 return _controls_
.GenericDirCtrl_SetFilter(*args
, **kwargs
)
5672 def GetFilterIndex(*args
, **kwargs
):
5673 """GetFilterIndex(self) -> int"""
5674 return _controls_
.GenericDirCtrl_GetFilterIndex(*args
, **kwargs
)
5676 def SetFilterIndex(*args
, **kwargs
):
5677 """SetFilterIndex(self, int n)"""
5678 return _controls_
.GenericDirCtrl_SetFilterIndex(*args
, **kwargs
)
5680 def GetRootId(*args
, **kwargs
):
5681 """GetRootId(self) -> TreeItemId"""
5682 return _controls_
.GenericDirCtrl_GetRootId(*args
, **kwargs
)
5684 def GetTreeCtrl(*args
, **kwargs
):
5685 """GetTreeCtrl(self) -> TreeCtrl"""
5686 return _controls_
.GenericDirCtrl_GetTreeCtrl(*args
, **kwargs
)
5688 def GetFilterListCtrl(*args
, **kwargs
):
5689 """GetFilterListCtrl(self) -> DirFilterListCtrl"""
5690 return _controls_
.GenericDirCtrl_GetFilterListCtrl(*args
, **kwargs
)
5692 def FindChild(*args
, **kwargs
):
5694 FindChild(wxTreeItemId parentId, wxString path) -> (item, done)
5696 Find the child that matches the first part of 'path'. E.g. if a child
5697 path is "/usr" and 'path' is "/usr/include" then the child for
5698 /usr is returned. If the path string has been used (we're at the
5699 leaf), done is set to True.
5702 return _controls_
.GenericDirCtrl_FindChild(*args
, **kwargs
)
5704 def DoResize(*args
, **kwargs
):
5705 """DoResize(self)"""
5706 return _controls_
.GenericDirCtrl_DoResize(*args
, **kwargs
)
5708 def ReCreateTree(*args
, **kwargs
):
5709 """ReCreateTree(self)"""
5710 return _controls_
.GenericDirCtrl_ReCreateTree(*args
, **kwargs
)
5713 class GenericDirCtrlPtr(GenericDirCtrl
):
5714 def __init__(self
, this
):
5716 if not hasattr(self
,"thisown"): self
.thisown
= 0
5717 self
.__class
__ = GenericDirCtrl
5718 _controls_
.GenericDirCtrl_swigregister(GenericDirCtrlPtr
)
5719 DirDialogDefaultFolderStr
= cvar
.DirDialogDefaultFolderStr
5721 def PreGenericDirCtrl(*args
, **kwargs
):
5722 """PreGenericDirCtrl() -> GenericDirCtrl"""
5723 val
= _controls_
.new_PreGenericDirCtrl(*args
, **kwargs
)
5727 class DirFilterListCtrl(Choice
):
5728 """Proxy of C++ DirFilterListCtrl class"""
5730 return "<%s.%s; proxy of C++ wxDirFilterListCtrl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5731 def __init__(self
, *args
, **kwargs
):
5733 __init__(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5734 Size size=DefaultSize, long style=0) -> DirFilterListCtrl
5736 newobj
= _controls_
.new_DirFilterListCtrl(*args
, **kwargs
)
5737 self
.this
= newobj
.this
5740 self
._setOORInfo
(self
)
5742 def Create(*args
, **kwargs
):
5744 Create(self, GenericDirCtrl parent, int id=-1, Point pos=DefaultPosition,
5745 Size size=DefaultSize, long style=0) -> bool
5747 return _controls_
.DirFilterListCtrl_Create(*args
, **kwargs
)
5749 def FillFilterList(*args
, **kwargs
):
5750 """FillFilterList(self, String filter, int defaultFilter)"""
5751 return _controls_
.DirFilterListCtrl_FillFilterList(*args
, **kwargs
)
5754 class DirFilterListCtrlPtr(DirFilterListCtrl
):
5755 def __init__(self
, this
):
5757 if not hasattr(self
,"thisown"): self
.thisown
= 0
5758 self
.__class
__ = DirFilterListCtrl
5759 _controls_
.DirFilterListCtrl_swigregister(DirFilterListCtrlPtr
)
5761 def PreDirFilterListCtrl(*args
, **kwargs
):
5762 """PreDirFilterListCtrl() -> DirFilterListCtrl"""
5763 val
= _controls_
.new_PreDirFilterListCtrl(*args
, **kwargs
)
5767 #---------------------------------------------------------------------------
5769 class PyControl(_core
.Control
):
5770 """Proxy of C++ PyControl class"""
5772 return "<%s.%s; proxy of C++ wxPyControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5773 def __init__(self
, *args
, **kwargs
):
5775 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
5776 Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,
5777 String name=ControlNameStr) -> PyControl
5779 newobj
= _controls_
.new_PyControl(*args
, **kwargs
)
5780 self
.this
= newobj
.this
5783 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyControl
)
5785 def _setCallbackInfo(*args
, **kwargs
):
5786 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5787 return _controls_
.PyControl__setCallbackInfo(*args
, **kwargs
)
5789 def SetBestSize(*args
, **kwargs
):
5790 """SetBestSize(self, Size size)"""
5791 return _controls_
.PyControl_SetBestSize(*args
, **kwargs
)
5793 def base_DoMoveWindow(*args
, **kwargs
):
5794 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
5795 return _controls_
.PyControl_base_DoMoveWindow(*args
, **kwargs
)
5797 def base_DoSetSize(*args
, **kwargs
):
5798 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
5799 return _controls_
.PyControl_base_DoSetSize(*args
, **kwargs
)
5801 def base_DoSetClientSize(*args
, **kwargs
):
5802 """base_DoSetClientSize(self, int width, int height)"""
5803 return _controls_
.PyControl_base_DoSetClientSize(*args
, **kwargs
)
5805 def base_DoSetVirtualSize(*args
, **kwargs
):
5806 """base_DoSetVirtualSize(self, int x, int y)"""
5807 return _controls_
.PyControl_base_DoSetVirtualSize(*args
, **kwargs
)
5809 def base_DoGetSize(*args
, **kwargs
):
5810 """base_DoGetSize() -> (width, height)"""
5811 return _controls_
.PyControl_base_DoGetSize(*args
, **kwargs
)
5813 def base_DoGetClientSize(*args
, **kwargs
):
5814 """base_DoGetClientSize() -> (width, height)"""
5815 return _controls_
.PyControl_base_DoGetClientSize(*args
, **kwargs
)
5817 def base_DoGetPosition(*args
, **kwargs
):
5818 """base_DoGetPosition() -> (x,y)"""
5819 return _controls_
.PyControl_base_DoGetPosition(*args
, **kwargs
)
5821 def base_DoGetVirtualSize(*args
, **kwargs
):
5822 """base_DoGetVirtualSize(self) -> Size"""
5823 return _controls_
.PyControl_base_DoGetVirtualSize(*args
, **kwargs
)
5825 def base_DoGetBestSize(*args
, **kwargs
):
5826 """base_DoGetBestSize(self) -> Size"""
5827 return _controls_
.PyControl_base_DoGetBestSize(*args
, **kwargs
)
5829 def base_InitDialog(*args
, **kwargs
):
5830 """base_InitDialog(self)"""
5831 return _controls_
.PyControl_base_InitDialog(*args
, **kwargs
)
5833 def base_TransferDataToWindow(*args
, **kwargs
):
5834 """base_TransferDataToWindow(self) -> bool"""
5835 return _controls_
.PyControl_base_TransferDataToWindow(*args
, **kwargs
)
5837 def base_TransferDataFromWindow(*args
, **kwargs
):
5838 """base_TransferDataFromWindow(self) -> bool"""
5839 return _controls_
.PyControl_base_TransferDataFromWindow(*args
, **kwargs
)
5841 def base_Validate(*args
, **kwargs
):
5842 """base_Validate(self) -> bool"""
5843 return _controls_
.PyControl_base_Validate(*args
, **kwargs
)
5845 def base_AcceptsFocus(*args
, **kwargs
):
5846 """base_AcceptsFocus(self) -> bool"""
5847 return _controls_
.PyControl_base_AcceptsFocus(*args
, **kwargs
)
5849 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
5850 """base_AcceptsFocusFromKeyboard(self) -> bool"""
5851 return _controls_
.PyControl_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
5853 def base_GetMaxSize(*args
, **kwargs
):
5854 """base_GetMaxSize(self) -> Size"""
5855 return _controls_
.PyControl_base_GetMaxSize(*args
, **kwargs
)
5857 def base_AddChild(*args
, **kwargs
):
5858 """base_AddChild(self, Window child)"""
5859 return _controls_
.PyControl_base_AddChild(*args
, **kwargs
)
5861 def base_RemoveChild(*args
, **kwargs
):
5862 """base_RemoveChild(self, Window child)"""
5863 return _controls_
.PyControl_base_RemoveChild(*args
, **kwargs
)
5865 def base_ShouldInheritColours(*args
, **kwargs
):
5866 """base_ShouldInheritColours(self) -> bool"""
5867 return _controls_
.PyControl_base_ShouldInheritColours(*args
, **kwargs
)
5869 def base_ApplyParentThemeBackground(*args
, **kwargs
):
5870 """base_ApplyParentThemeBackground(self, Colour c)"""
5871 return _controls_
.PyControl_base_ApplyParentThemeBackground(*args
, **kwargs
)
5873 def base_GetDefaultAttributes(*args
, **kwargs
):
5874 """base_GetDefaultAttributes(self) -> VisualAttributes"""
5875 return _controls_
.PyControl_base_GetDefaultAttributes(*args
, **kwargs
)
5878 class PyControlPtr(PyControl
):
5879 def __init__(self
, this
):
5881 if not hasattr(self
,"thisown"): self
.thisown
= 0
5882 self
.__class
__ = PyControl
5883 _controls_
.PyControl_swigregister(PyControlPtr
)
5885 def PrePyControl(*args
, **kwargs
):
5886 """PrePyControl() -> PyControl"""
5887 val
= _controls_
.new_PrePyControl(*args
, **kwargs
)
5891 #---------------------------------------------------------------------------
5893 FRAME_EX_CONTEXTHELP
= _controls_
.FRAME_EX_CONTEXTHELP
5894 DIALOG_EX_CONTEXTHELP
= _controls_
.DIALOG_EX_CONTEXTHELP
5895 wxEVT_HELP
= _controls_
.wxEVT_HELP
5896 wxEVT_DETAILED_HELP
= _controls_
.wxEVT_DETAILED_HELP
5897 EVT_HELP
= wx
.PyEventBinder( wxEVT_HELP
, 1)
5898 EVT_HELP_RANGE
= wx
.PyEventBinder( wxEVT_HELP
, 2)
5899 EVT_DETAILED_HELP
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 1)
5900 EVT_DETAILED_HELP_RANGE
= wx
.PyEventBinder( wxEVT_DETAILED_HELP
, 2)
5902 class HelpEvent(_core
.CommandEvent
):
5904 A help event is sent when the user has requested context-sensitive
5905 help. This can either be caused by the application requesting
5906 context-sensitive help mode via wx.ContextHelp, or (on MS Windows) by
5907 the system generating a WM_HELP message when the user pressed F1 or
5908 clicked on the query button in a dialog caption.
5910 A help event is sent to the window that the user clicked on, and is
5911 propagated up the window hierarchy until the event is processed or
5912 there are no more event handlers. The application should call
5913 event.GetId to check the identity of the clicked-on window, and then
5914 either show some suitable help or call event.Skip if the identifier is
5915 unrecognised. Calling Skip is important because it allows wxWindows to
5916 generate further events for ancestors of the clicked-on
5917 window. Otherwise it would be impossible to show help for container
5918 windows, since processing would stop after the first window found.
5921 return "<%s.%s; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5922 def __init__(self
, *args
, **kwargs
):
5923 """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> HelpEvent"""
5924 newobj
= _controls_
.new_HelpEvent(*args
, **kwargs
)
5925 self
.this
= newobj
.this
5928 def GetPosition(*args
, **kwargs
):
5930 GetPosition(self) -> Point
5932 Returns the left-click position of the mouse, in screen
5933 coordinates. This allows the application to position the help
5936 return _controls_
.HelpEvent_GetPosition(*args
, **kwargs
)
5938 def SetPosition(*args
, **kwargs
):
5940 SetPosition(self, Point pos)
5942 Sets the left-click position of the mouse, in screen coordinates.
5944 return _controls_
.HelpEvent_SetPosition(*args
, **kwargs
)
5946 def GetLink(*args
, **kwargs
):
5948 GetLink(self) -> String
5950 Get an optional link to further help
5952 return _controls_
.HelpEvent_GetLink(*args
, **kwargs
)
5954 def SetLink(*args
, **kwargs
):
5956 SetLink(self, String link)
5958 Set an optional link to further help
5960 return _controls_
.HelpEvent_SetLink(*args
, **kwargs
)
5962 def GetTarget(*args
, **kwargs
):
5964 GetTarget(self) -> String
5966 Get an optional target to display help in. E.g. a window specification
5968 return _controls_
.HelpEvent_GetTarget(*args
, **kwargs
)
5970 def SetTarget(*args
, **kwargs
):
5972 SetTarget(self, String target)
5974 Set an optional target to display help in. E.g. a window specification
5976 return _controls_
.HelpEvent_SetTarget(*args
, **kwargs
)
5979 class HelpEventPtr(HelpEvent
):
5980 def __init__(self
, this
):
5982 if not hasattr(self
,"thisown"): self
.thisown
= 0
5983 self
.__class
__ = HelpEvent
5984 _controls_
.HelpEvent_swigregister(HelpEventPtr
)
5986 class ContextHelp(_core
.Object
):
5988 This class changes the cursor to a query and puts the application into
5989 a 'context-sensitive help mode'. When the user left-clicks on a window
5990 within the specified window, a ``EVT_HELP`` event is sent to that
5991 control, and the application may respond to it by popping up some
5994 There are a couple of ways to invoke this behaviour implicitly:
5996 * Use the wx.DIALOG_EX_CONTEXTHELP extended style for a dialog
5997 (Windows only). This will put a question mark in the titlebar,
5998 and Windows will put the application into context-sensitive help
5999 mode automatically, with further programming.
6001 * Create a `wx.ContextHelpButton`, whose predefined behaviour is
6002 to create a context help object. Normally you will write your
6003 application so that this button is only added to a dialog for
6004 non-Windows platforms (use ``wx.DIALOG_EX_CONTEXTHELP`` on
6007 :see: `wx.ContextHelpButton`
6011 return "<%s.%s; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6012 def __init__(self
, *args
, **kwargs
):
6014 __init__(self, Window window=None, bool doNow=True) -> ContextHelp
6016 Constructs a context help object, calling BeginContextHelp if doNow is
6019 If window is None, the top window is used.
6021 newobj
= _controls_
.new_ContextHelp(*args
, **kwargs
)
6022 self
.this
= newobj
.this
6025 def __del__(self
, destroy
=_controls_
.delete_ContextHelp
):
6028 if self
.thisown
: destroy(self
)
6031 def BeginContextHelp(*args
, **kwargs
):
6033 BeginContextHelp(self, Window window=None) -> bool
6035 Puts the application into context-sensitive help mode. window is the
6036 window which will be used to catch events; if NULL, the top window
6039 Returns true if the application was successfully put into
6040 context-sensitive help mode. This function only returns when the event
6043 return _controls_
.ContextHelp_BeginContextHelp(*args
, **kwargs
)
6045 def EndContextHelp(*args
, **kwargs
):
6047 EndContextHelp(self) -> bool
6049 Ends context-sensitive help mode. Not normally called by the
6052 return _controls_
.ContextHelp_EndContextHelp(*args
, **kwargs
)
6055 class ContextHelpPtr(ContextHelp
):
6056 def __init__(self
, this
):
6058 if not hasattr(self
,"thisown"): self
.thisown
= 0
6059 self
.__class
__ = ContextHelp
6060 _controls_
.ContextHelp_swigregister(ContextHelpPtr
)
6062 class ContextHelpButton(BitmapButton
):
6064 Instances of this class may be used to add a question mark button that
6065 when pressed, puts the application into context-help mode. It does
6066 this by creating a wx.ContextHelp object which itself generates a
6067 ``EVT_HELP`` event when the user clicks on a window.
6069 On Windows, you may add a question-mark icon to a dialog by use of the
6070 ``wx.DIALOG_EX_CONTEXTHELP`` extra style, but on other platforms you
6071 will have to add a button explicitly, usually next to OK, Cancel or
6074 :see: `wx.ContextHelp`, `wx.ContextHelpButton`
6078 return "<%s.%s; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6079 def __init__(self
, *args
, **kwargs
):
6081 __init__(self, Window parent, int id=ID_CONTEXT_HELP, Point pos=DefaultPosition,
6082 Size size=DefaultSize, long style=BU_AUTODRAW) -> ContextHelpButton
6084 Constructor, creating and showing a context help button.
6086 newobj
= _controls_
.new_ContextHelpButton(*args
, **kwargs
)
6087 self
.this
= newobj
.this
6090 self
._setOORInfo
(self
)
6093 class ContextHelpButtonPtr(ContextHelpButton
):
6094 def __init__(self
, this
):
6096 if not hasattr(self
,"thisown"): self
.thisown
= 0
6097 self
.__class
__ = ContextHelpButton
6098 _controls_
.ContextHelpButton_swigregister(ContextHelpButtonPtr
)
6100 class HelpProvider(object):
6102 wx.HelpProvider is an abstract class used by a program
6103 implementing context-sensitive help to show the help text for the
6106 The current help provider must be explicitly set by the
6107 application using wx.HelpProvider.Set().
6109 def __init__(self
): raise RuntimeError, "No constructor defined"
6111 return "<%s.%s; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6112 def Set(*args
, **kwargs
):
6114 Set(HelpProvider helpProvider) -> HelpProvider
6116 Sset the current, application-wide help provider. Returns the previous
6117 one. Unlike some other classes, the help provider is not created on
6118 demand. This must be explicitly done by the application.
6120 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6122 Set
= staticmethod(Set
)
6123 def Get(*args
, **kwargs
):
6125 Get() -> HelpProvider
6127 Return the current application-wide help provider.
6129 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6131 Get
= staticmethod(Get
)
6132 def GetHelp(*args
, **kwargs
):
6134 GetHelp(self, Window window) -> String
6136 Gets the help string for this window. Its interpretation is dependent
6137 on the help provider except that empty string always means that no
6138 help is associated with the window.
6140 return _controls_
.HelpProvider_GetHelp(*args
, **kwargs
)
6142 def ShowHelp(*args
, **kwargs
):
6144 ShowHelp(self, Window window) -> bool
6146 Shows help for the given window. Uses GetHelp internally if
6147 applicable. Returns True if it was done, or False if no help was
6148 available for this window.
6150 return _controls_
.HelpProvider_ShowHelp(*args
, **kwargs
)
6152 def AddHelp(*args
, **kwargs
):
6154 AddHelp(self, Window window, String text)
6156 Associates the text with the given window.
6158 return _controls_
.HelpProvider_AddHelp(*args
, **kwargs
)
6160 def AddHelpById(*args
, **kwargs
):
6162 AddHelpById(self, int id, String text)
6164 This version associates the given text with all windows with this
6165 id. May be used to set the same help string for all Cancel buttons in
6166 the application, for example.
6168 return _controls_
.HelpProvider_AddHelpById(*args
, **kwargs
)
6170 def RemoveHelp(*args
, **kwargs
):
6172 RemoveHelp(self, Window window)
6174 Removes the association between the window pointer and the help
6175 text. This is called by the wx.Window destructor. Without this, the
6176 table of help strings will fill up and when window pointers are
6177 reused, the wrong help string will be found.
6179 return _controls_
.HelpProvider_RemoveHelp(*args
, **kwargs
)
6181 def Destroy(*args
, **kwargs
):
6183 return _controls_
.HelpProvider_Destroy(*args
, **kwargs
)
6186 class HelpProviderPtr(HelpProvider
):
6187 def __init__(self
, this
):
6189 if not hasattr(self
,"thisown"): self
.thisown
= 0
6190 self
.__class
__ = HelpProvider
6191 _controls_
.HelpProvider_swigregister(HelpProviderPtr
)
6193 def HelpProvider_Set(*args
, **kwargs
):
6195 HelpProvider_Set(HelpProvider helpProvider) -> HelpProvider
6197 Sset the current, application-wide help provider. Returns the previous
6198 one. Unlike some other classes, the help provider is not created on
6199 demand. This must be explicitly done by the application.
6201 return _controls_
.HelpProvider_Set(*args
, **kwargs
)
6203 def HelpProvider_Get(*args
, **kwargs
):
6205 HelpProvider_Get() -> HelpProvider
6207 Return the current application-wide help provider.
6209 return _controls_
.HelpProvider_Get(*args
, **kwargs
)
6211 class SimpleHelpProvider(HelpProvider
):
6213 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6214 supports only plain text help strings, and shows the string associated
6215 with the control (if any) in a tooltip.
6218 return "<%s.%s; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6219 def __init__(self
, *args
, **kwargs
):
6221 __init__(self) -> SimpleHelpProvider
6223 wx.SimpleHelpProvider is an implementation of `wx.HelpProvider` which
6224 supports only plain text help strings, and shows the string associated
6225 with the control (if any) in a tooltip.
6227 newobj
= _controls_
.new_SimpleHelpProvider(*args
, **kwargs
)
6228 self
.this
= newobj
.this
6232 class SimpleHelpProviderPtr(SimpleHelpProvider
):
6233 def __init__(self
, this
):
6235 if not hasattr(self
,"thisown"): self
.thisown
= 0
6236 self
.__class
__ = SimpleHelpProvider
6237 _controls_
.SimpleHelpProvider_swigregister(SimpleHelpProviderPtr
)
6239 #---------------------------------------------------------------------------
6241 class DragImage(_core
.Object
):
6242 """Proxy of C++ DragImage class"""
6244 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
6245 def __init__(self
, *args
, **kwargs
):
6246 """__init__(self, Bitmap image, Cursor cursor=wxNullCursor) -> DragImage"""
6247 newobj
= _controls_
.new_DragImage(*args
, **kwargs
)
6248 self
.this
= newobj
.this
6251 def __del__(self
, destroy
=_controls_
.delete_DragImage
):
6254 if self
.thisown
: destroy(self
)
6257 def SetBackingBitmap(*args
, **kwargs
):
6258 """SetBackingBitmap(self, Bitmap bitmap)"""
6259 return _controls_
.DragImage_SetBackingBitmap(*args
, **kwargs
)
6261 def BeginDrag(*args
, **kwargs
):
6263 BeginDrag(self, Point hotspot, Window window, bool fullScreen=False,
6264 Rect rect=None) -> bool
6266 return _controls_
.DragImage_BeginDrag(*args
, **kwargs
)
6268 def BeginDragBounded(*args
, **kwargs
):
6269 """BeginDragBounded(self, Point hotspot, Window window, Window boundingWindow) -> bool"""
6270 return _controls_
.DragImage_BeginDragBounded(*args
, **kwargs
)
6272 def EndDrag(*args
, **kwargs
):
6273 """EndDrag(self) -> bool"""
6274 return _controls_
.DragImage_EndDrag(*args
, **kwargs
)
6276 def Move(*args
, **kwargs
):
6277 """Move(self, Point pt) -> bool"""
6278 return _controls_
.DragImage_Move(*args
, **kwargs
)
6280 def Show(*args
, **kwargs
):
6281 """Show(self) -> bool"""
6282 return _controls_
.DragImage_Show(*args
, **kwargs
)
6284 def Hide(*args
, **kwargs
):
6285 """Hide(self) -> bool"""
6286 return _controls_
.DragImage_Hide(*args
, **kwargs
)
6288 def GetImageRect(*args
, **kwargs
):
6289 """GetImageRect(self, Point pos) -> Rect"""
6290 return _controls_
.DragImage_GetImageRect(*args
, **kwargs
)
6292 def DoDrawImage(*args
, **kwargs
):
6293 """DoDrawImage(self, DC dc, Point pos) -> bool"""
6294 return _controls_
.DragImage_DoDrawImage(*args
, **kwargs
)
6296 def UpdateBackingFromWindow(*args
, **kwargs
):
6297 """UpdateBackingFromWindow(self, DC windowDC, MemoryDC destDC, Rect sourceRect, Rect destRect) -> bool"""
6298 return _controls_
.DragImage_UpdateBackingFromWindow(*args
, **kwargs
)
6300 def RedrawImage(*args
, **kwargs
):
6301 """RedrawImage(self, Point oldPos, Point newPos, bool eraseOld, bool drawNew) -> bool"""
6302 return _controls_
.DragImage_RedrawImage(*args
, **kwargs
)
6305 class DragImagePtr(DragImage
):
6306 def __init__(self
, this
):
6308 if not hasattr(self
,"thisown"): self
.thisown
= 0
6309 self
.__class
__ = DragImage
6310 _controls_
.DragImage_swigregister(DragImagePtr
)
6312 def DragIcon(*args
, **kwargs
):
6313 """DragIcon(Icon image, Cursor cursor=wxNullCursor) -> DragImage"""
6314 val
= _controls_
.new_DragIcon(*args
, **kwargs
)
6318 def DragString(*args
, **kwargs
):
6319 """DragString(String str, Cursor cursor=wxNullCursor) -> DragImage"""
6320 val
= _controls_
.new_DragString(*args
, **kwargs
)
6324 def DragTreeItem(*args
, **kwargs
):
6325 """DragTreeItem(TreeCtrl treeCtrl, TreeItemId id) -> DragImage"""
6326 val
= _controls_
.new_DragTreeItem(*args
, **kwargs
)
6330 def DragListItem(*args
, **kwargs
):
6331 """DragListItem(ListCtrl listCtrl, long id) -> DragImage"""
6332 val
= _controls_
.new_DragListItem(*args
, **kwargs
)